Match Group 0 of size 3+213 ---- Ranked Result: 1. (size 3) close previous connection ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java: 566-568 Length: 3 * try { * stream.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-core-model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java: 169-171 Length: 3 * try { * is.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java: 498-500 Length: 3 * try { * stream.close(); * } catch (IOException e) { ---- /home/edmund/database-mana/databaseGitHub/hadoop-20/src/hdfs/org/apache/hadoop/hdfs/qjournal/client/URLLogInputStream.java: 102-104 Length: 3 local sim: [[close]] global sim: [[]] close previous connection < try { < fStream.close(); < } catch (IOException e) { ---- Comments (size 1): 1. close previous connection ---- Match Group 1 of size 1+72 ---- Ranked Result: ---- Match Group 2 of size 1+7 ---- Ranked Result: ---- Match Group 3 of size 1+1 ---- Ranked Result: ---- Match Group 4 of size 1+26 ---- Ranked Result: 1. (size 7) Sleep for the given number of seconds ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/cognitive/ToDoList.java: 196-198 Length: 3 * try { * Thread.sleep(SLEEP_SECONDS * 1000); * } catch (InterruptedException ignore) { ---- /home/edmund/database-mana/databaseGitHub/platform_frameworks_base/tests/CoreTests/android/core/SSLSocketTest.java: 160-162 Length: 3 local sim: [[sleep]] global sim: [[]] Sleep for the given number of seconds < try { < Thread.sleep(delay * 1000); < } catch (InterruptedException ex) { ---- Comments (size 1): 1. Sleep for the given number of seconds ---- Match Group 5 of size 3+1 ---- Ranked Result: ---- Match Group 6 of size 2+102 ---- Ranked Result: 1. (size 4) windows... close before deleting ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java: 497-500 Length: 4 * if (stream != null) { * try { * stream.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java: 565-568 Length: 4 * if (stream != null) { * try { * stream.close(); * } catch (IOException e) { ---- /home/edmund/database-mana/databaseGitHub/Nightweb/common/java/router/net/i2p/router/startup/LoadRouterInfoJob.java: 118-119 Length: 4 local sim: [[close]] global sim: [[]] windows... close before deleting < if (fis1 != null) { < try { fis1.close(); } catch (IOException ioe2) {} ---- /home/edmund/database-mana/databaseGitHub/Nightweb/common/java/router/net/i2p/router/startup/LoadRouterInfoJob.java: 132-133 Length: 4 local sim: [[close]] global sim: [[]] windows... close before deleting < if (fis1 != null) { < try { fis1.close(); } catch (IOException ioe) {} ---- /home/edmund/database-mana/databaseGitHub/Nightweb/common/java/router/net/i2p/router/startup/LoadRouterInfoJob.java: 95-96 Length: 4 local sim: [[close]] global sim: [[]] windows... close before deleting < if (fis1 != null) { < try { fis1.close(); } catch (IOException ioe) {} ---- Comments (size 1): 1. windows... close before deleting ---- Match Group 7 of size 1+206 ---- Ranked Result: 1. (size 5) Sleep,then operation is timeout 2. (size 6) backoff if we encounter an exception. 3. (size 7) The interruption should only affect the sleep() ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/cognitive/Designer.java: 394-396 Length: 3 * try { * Thread.sleep(sleepDuration); * } catch (InterruptedException ignore) { ---- /home/edmund/database-mana/databaseGitHub/aws-sdk-java/aws-java-sdk/src/samples/AmazonKinesisApplication/SampleRecordProcessor.java: 109-111 Length: 3 local sim: [[exception]] global sim: [[]] backoff if we encounter an exception. < try { < Thread.sleep(BACKOFF_TIME_IN_MILLIS); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/xmemcached/src/test/java/net/rubyeye/xmemcached/test/unittest/mock/MockDecodeTimeoutTextGetOneCommand.java: 21-23 Length: 3 local sim: [[sleep]] global sim: [[]] Sleep,then operation is timeout < try { < Thread.sleep(sleepTime); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/hadoop-20/src/hdfs/org/apache/hadoop/hdfs/server/namenode/LeaseManager.java: 520-523 Length: 3 local sim: [[sleep]] global sim: [[]] [sleep] The interruption should only affect the sleep() < try { < // The interruption should only affect the sleep() < Thread.sleep(leaseCheckInterval); < } catch(InterruptedException ie) { ---- /home/edmund/database-mana/databaseGitHub/mdrill/trunk/adhoc-internal/src/main/java/weka/experiment/RemoteEngine.java: 88-91 Length: 3 local sim: [[sleep]] global sim: [[]] sleep for a while < try { < // sleep for a while < Thread.sleep(CLEANUPTIMEOUT); < } catch (InterruptedException ie) {} ---- Comments (size 4): 1. The interruption should only affect the sleep() 2. Sleep,then operation is timeout 3. backoff if we encounter an exception. 4. sleep for a while ---- Match Group 8 of size 3+1 ---- Ranked Result: ---- Match Group 9 of size 4+4 ---- Ranked Result: ---- Match Group 10 of size 1+1 ---- Ranked Result: 1. (size 27) Pass this method an Object and Method equipped to display application info They will be called when the About menu item is selected from the application menu ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/util/osdep/OSXAdapter.java: 107-121 Length: 5 Set handler for About action. It will be called when the About menu item is selected from the application menu. @param target object containing the method @param aboutHandler method to invoke to handle About menu item If we're setting a handler, enable the About menu item by calling com.apple.eawt.Application reflectively java.nio.charset.MalformedInputException: Input length = 1 /home/edmund/database-mana/databaseGitHub/nodebox/src/main/java/nodebox/client/OSXAdapter.java: 24-31 Length: 5 local sim: [[method, about, menu, object]] global sim: [[the, application]] Pass this method an Object and Method equipped to display application info They will be called when the About menu item is selected from the application menu < public static void setAboutHandler(Object target, Method aboutHandler) { < boolean enableAboutMenu = (target != null && aboutHandler != null); < if (enableAboutMenu) { < setHandler(new OSXAdapter("handleAbout", target, aboutHandler)); < } < // If we're setting a handler, enable the About menu item by calling < // com.apple.eawt.Application reflectively < try { ---- Comments (size 1): 1. Pass this method an Object and Method equipped to display application info They will be called when the About menu item is selected from the application menu ---- Match Group 11 of size 1+1 ---- Ranked Result: 1. (size 28) Pass this method an Object and a Method equipped to display application options They will be called when the Preferences menu item is selected from the application menu ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/util/osdep/OSXAdapter.java: 129-143 Length: 5 Set handler for Mac preferences item. It will be called when the Preferences menu item is selected from the application menu. @param target object containing the method @param prefsHandler method to handle preferences action If we're setting a handler, enable the Preferences menu item by calling com.apple.eawt.Application reflectively java.nio.charset.MalformedInputException: Input length = 1 /home/edmund/database-mana/databaseGitHub/nodebox/src/main/java/nodebox/client/OSXAdapter.java: 42-49 Length: 5 local sim: [[preferences, method, menu, object]] global sim: [[the, application]] Pass this method an Object and a Method equipped to display application options They will be called when the Preferences menu item is selected from the application menu < public static void setPreferencesHandler(Object target, Method prefsHandler) { < boolean enablePrefsMenu = (target != null && prefsHandler != null); < if (enablePrefsMenu) { < setHandler(new OSXAdapter("handlePreferences", target, prefsHandler)); < } < // If we're setting a handler, enable the Preferences menu item by calling < // com.apple.eawt.Application reflectively < try { ---- Comments (size 1): 1. Pass this method an Object and a Method equipped to display application options They will be called when the Preferences menu item is selected from the application menu ---- Match Group 12 of size 1+1 ---- Ranked Result: ---- Match Group 13 of size 1+1 ---- Ranked Result: ---- Match Group 14 of size 1+2 ---- Ranked Result: ---- Match Group 15 of size 2+2 ---- Ranked Result: ---- Match Group 16 of size 1+2 ---- Ranked Result: ---- Match Group 17 of size 3+4 ---- Ranked Result: ---- Match Group 18 of size 8+175 ---- Ranked Result: ---- Match Group 19 of size 1+75 ---- Ranked Result: ---- Match Group 20 of size 1+20 ---- Ranked Result: ---- Match Group 21 of size 1+3 ---- Ranked Result: ---- Match Group 22 of size 2+13 ---- Ranked Result: ---- Match Group 23 of size 1+34 ---- Ranked Result: ---- Match Group 24 of size 1+28 ---- Ranked Result: 1. (size 4) make a blank file ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/configuration/ConfigurationProperties.java: 205-207 Length: 3 * try { * file.createNewFile(); * } catch (IOException e) { ---- /home/edmund/database-mana/databaseGitHub/processing/app/src/processing/app/Editor.java: 2494-2497 Length: 3 local sim: [[file]] global sim: [[]] make a blank file < try { < //make a blank file < sc.createNewFile(); < } catch (IOException e1) { ---- Comments (size 1): 1. make a blank file ---- Match Group 25 of size 2+23 ---- Ranked Result: ---- Match Group 26 of size 1+22 ---- Ranked Result: ---- Match Group 27 of size 2+6 ---- Ranked Result: ---- Match Group 28 of size 1+31 ---- Ranked Result: ---- Match Group 29 of size 1+15 ---- Ranked Result: ---- Match Group 30 of size 1+26 ---- Ranked Result: ---- Match Group 31 of size 2+6 ---- Ranked Result: ---- Match Group 32 of size 1+3 ---- Ranked Result: ---- Match Group 33 of size 1+8 ---- Ranked Result: ---- Match Group 34 of size 1+1 ---- Ranked Result: ---- Match Group 35 of size 1+8 ---- Ranked Result: 1. (size 11) Delete the temporary files that we stored during the fetching process. ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/persistence/AbstractFilePersister.java: 121-125 Length: 3 * if (tempFile.exists()) { * tempFile.delete(); * } * * if (file.exists()) { ---- /home/edmund/database-mana/databaseGitHub/JamsMusicPlayer/jamsMusicPlayer/src/main/java/com/jams/music/player/AsyncTasks/AsyncAutoGetAlbumArtTask.java: 418-422 Length: 3 local sim: [[delete]] global sim: [[]] Delete the temporary files that we stored during the fetching process. < if (artworkFile.exists()) { < artworkFile.delete(); < } < < if (xmlFile.exists()) { ---- Comments (size 1): 1. Delete the temporary files that we stored during the fetching process. ---- Match Group 36 of size 1+4 ---- Ranked Result: ---- Match Group 37 of size 1+17 ---- Ranked Result: ---- Match Group 38 of size 1+14 ---- Ranked Result: ---- Match Group 39 of size 1+13 ---- Ranked Result: ---- Match Group 40 of size 58+4 ---- Ranked Result: ---- Match Group 41 of size 2+1 ---- Ranked Result: ---- Match Group 42 of size 1+5 ---- Ranked Result: ---- Match Group 43 of size 2+7 ---- Ranked Result: ---- Match Group 44 of size 1+9 ---- Ranked Result: ---- Match Group 45 of size 1+8 ---- Ranked Result: ---- Match Group 46 of size 1+2 ---- Ranked Result: ---- Match Group 47 of size 1+3 ---- Ranked Result: ---- Match Group 48 of size 1+4 ---- Ranked Result: ---- Match Group 49 of size 3+1 ---- Ranked Result: ---- Match Group 50 of size 2+5 ---- Ranked Result: 1. (size 16) swallow exceptions on close so we don't override any exceptions that happened in the loop ---- /home/edmund/evaluate_projects/ArgoUML/argouml-documentation/src/docbook-setup/docbook-xsl/extensions/xalan2/com/nwalsh/xalan/ImageIntrinsics.java: 101-103 Length: 3 * try { * ir.close(); * } catch (Exception e) { ---- /home/edmund/evaluate_projects/ArgoUML/argouml-documentation/src/docbook-setup/docbook-xsl/extensions/saxon643/com/nwalsh/saxon/ImageIntrinsics.java: 101-103 Length: 3 * try { * ir.close(); * } catch (Exception e) { ---- /home/edmund/database-mana/databaseGitHub/lucene-solr/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.java: 321-321 Length: 3 local sim: [[close]] global sim: [[]] swallow exceptions on close so we don't override any exceptions that happened in the loop < try{r.close();}catch(Exception e){} ---- Comments (size 1): 1. swallow exceptions on close so we don't override any exceptions that happened in the loop ---- Match Group 51 of size 3+2 ---- Ranked Result: ---- Match Group 52 of size 1+1 ---- Ranked Result: ---- Match Group 53 of size 2+1 ---- Ranked Result: ---- Match Group 54 of size 4+8 ---- Ranked Result: ---- Match Group 55 of size 1+1 ---- Ranked Result: ---- Match Group 56 of size 4+48 ---- Ranked Result: ---- Match Group 57 of size 1+12 ---- Ranked Result: ---- Match Group 58 of size 1+8 ---- Ranked Result: ---- Match Group 59 of size 2+11 ---- Ranked Result: ---- Match Group 60 of size 1+1 ---- Ranked Result: ---- Match Group 61 of size 1+3 ---- Ranked Result: ---- Match Group 62 of size 1+6 ---- Ranked Result: ---- Match Group 63 of size 1+2 ---- Ranked Result: ---- Match Group 64 of size 1+8 ---- Ranked Result: ---- Match Group 65 of size 1+2 ---- Ranked Result: ---- Match Group 66 of size 1+71 ---- Ranked Result: ---- Match Group 67 of size 1+5 ---- Ranked Result: ---- Match Group 68 of size 1+4 ---- Ranked Result: 1. (size 18) trim even though calling cPS which trims, because the latter may return the same thing back without trimming ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/notation/providers/uml/NotationUtilityUml.java: 757-759 Length: 3 * name = name.trim(); * if (value != null) { * value = value.trim(); ---- /home/edmund/database-mana/databaseGitHub/jodd/jodd-mail/src/main/java/jodd/mail/EmailAddress.java: 583-588 Length: 3 local sim: [[trim]] global sim: [[]] trim even though calling cPS which trims, because the latter may return the same thing back without trimming < currentDomainpart = currentDomainpart.trim(); < } < if (personal_string != null) { < // trim even though calling cPS which trims, because the latter may return < // the same thing back without trimming < personal_string = personal_string.trim(); ---- Comments (size 1): 1. trim even though calling cPS which trims, because the latter may return the same thing back without trimming ---- Match Group 69 of size 2+1 ---- Ranked Result: ---- Match Group 70 of size 1+6 ---- Ranked Result: ---- Match Group 71 of size 1+12 ---- Ranked Result: ---- Match Group 72 of size 1+6 ---- Ranked Result: ---- Match Group 73 of size 1+2 ---- Ranked Result: ---- Match Group 74 of size 2+2 ---- Ranked Result: ---- Match Group 75 of size 1+1 ---- Ranked Result: ---- Match Group 76 of size 1+3 ---- Ranked Result: ---- Match Group 77 of size 1+19 ---- Ranked Result: 1. (size 2) never interrupted ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/cognitive/Designer.java: 309-311 Length: 3 * try { * this.wait(); * } catch (InterruptedException ignore) { ---- /home/edmund/database-mana/databaseGitHub/platform_frameworks_base/services/java/com/android/server/BackupManagerService.java: 2563-2565 Length: 3 local sim: [[interrupted]] global sim: [[]] never interrupted < try { < this.wait(); < } catch (InterruptedException e) { /* never interrupted */ } ---- Comments (size 1): 1. never interrupted ---- Match Group 78 of size 1+5 ---- Ranked Result: ---- Match Group 79 of size 1+3 ---- Ranked Result: ---- Match Group 80 of size 1+1 ---- Ranked Result: ---- Match Group 81 of size 1+16 ---- Ranked Result: ---- Match Group 82 of size 1+1 ---- Ranked Result: ---- Match Group 83 of size 2+5 ---- Ranked Result: ---- Match Group 84 of size 1+9 ---- Ranked Result: ---- Match Group 85 of size 1+9 ---- Ranked Result: ---- Match Group 86 of size 1+1 ---- Ranked Result: ---- Match Group 87 of size 2+1 ---- Ranked Result: ---- Match Group 88 of size 1+7 ---- Ranked Result: ---- Match Group 89 of size 1+4 ---- Ranked Result: ---- Match Group 90 of size 1+2 ---- Ranked Result: ---- Match Group 91 of size 1+2 ---- Ranked Result: ---- Match Group 92 of size 1+3 ---- Ranked Result: ---- Match Group 93 of size 1+1 ---- Ranked Result: ---- Match Group 94 of size 1+2 ---- Ranked Result: ---- Match Group 95 of size 1+2 ---- Ranked Result: ---- Match Group 96 of size 1+4 ---- Ranked Result: ---- Match Group 97 of size 1+2 ---- Ranked Result: ---- Match Group 98 of size 1+3 ---- Ranked Result: ---- Match Group 99 of size 1+4 ---- Ranked Result: ---- Match Group 100 of size 3+4 ---- Ranked Result: ---- Match Group 101 of size 10+2 ---- Ranked Result: ---- Match Group 102 of size 1+1 ---- Ranked Result: ---- Match Group 103 of size 1+1 ---- Ranked Result: ---- Match Group 104 of size 1+1 ---- Ranked Result: ---- Match Group 105 of size 2+7 ---- Ranked Result: ---- Match Group 106 of size 1+5 ---- Ranked Result: ---- Match Group 107 of size 1+7 ---- Ranked Result: ---- Match Group 108 of size 1+1 ---- Ranked Result: ---- Match Group 109 of size 2+12 ---- Ranked Result: ---- Match Group 110 of size 1+1 ---- Ranked Result: ---- Match Group 111 of size 1+2 ---- Ranked Result: ---- Match Group 112 of size 1+2 ---- Ranked Result: ---- Match Group 113 of size 2+2 ---- Ranked Result: ---- Match Group 114 of size 1+2 ---- Ranked Result: ---- Match Group 115 of size 2+2 ---- Ranked Result: ---- Match Group 116 of size 1+2 ---- Ranked Result: ---- Match Group 117 of size 1+1 ---- Ranked Result: ---- Match Group 118 of size 2+1 ---- Ranked Result: ---- Match Group 119 of size 1+5 ---- Ranked Result: ---- Match Group 120 of size 8+10 ---- Ranked Result: 1. (size 5) add them into the panel ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/notation/ui/SettingsTabNotation.java: 136-139 Length: 3 * JPanel settings = new JPanel(); * settings.setLayout(new GridBagLayout()); * * GridBagConstraints constraints = new GridBagConstraints(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml-java/src/org/argouml/language/java/ui/RESequenceDiagramDialog.java: 351-354 Length: 3 * JPanel content = new JPanel(); * content.setLayout(new GridBagLayout()); * * GridBagConstraints constraints = new GridBagConstraints(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml-cpp/src/org/argouml/language/cpp/ui/SettingsTabCpp.java: 93-96 Length: 3 * JPanel panel = new JPanel(); * panel.setLayout(new GridBagLayout()); * * GridBagConstraints constraints = new GridBagConstraints(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/uml/diagram/ui/SettingsTabDiagramAppearance.java: 141-144 Length: 3 * JPanel settings = new JPanel(); * settings.setLayout(new GridBagLayout()); * * GridBagConstraints constraints = new GridBagConstraints(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/ui/ProjectSettingsTabProperties.java: 102-105 Length: 3 * JPanel top = new JPanel(); * top.setLayout(new GridBagLayout()); * * GridBagConstraints labelConstraints = new GridBagConstraints(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml-java/src/org/argouml/language/java/ui/RESequenceDiagramDialog.java: 387-390 Length: 3 * JPanel top = new JPanel(); * top.setLayout(new GridBagLayout()); * * GridBagConstraints labelConstraints = new GridBagConstraints(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml-java/src/org/argouml/language/java/ui/RESequenceDiagramDialog.java: 465-468 Length: 3 * JPanel top = new JPanel(); * top.setLayout(new GridBagLayout()); * * GridBagConstraints labelConstraints = new GridBagConstraints(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml-java/src/org/argouml/language/java/ui/SettingsTabJava.java: 86-89 Length: 3 * JPanel panel = new JPanel(); * panel.setLayout(new GridBagLayout()); * * GridBagConstraints constraints = new GridBagConstraints(); ---- /home/edmund/database-mana/databaseGitHub/CoreNLP/src/edu/stanford/nlp/trees/tregex/gui/InputPanel.java: 268-270 Length: 3 local sim: [[panel]] global sim: [[add]] add them into the panel < JPanel tregexInput = new JPanel(); < tregexInput.setLayout(new GridBagLayout()); < GridBagConstraints c = new GridBagConstraints(); ---- Comments (size 1): 1. add them into the panel ---- Match Group 121 of size 1+1 ---- Ranked Result: ---- Match Group 122 of size 2+5 ---- Ranked Result: ---- Match Group 123 of size 1+1 ---- Ranked Result: ---- Match Group 124 of size 1+4 ---- Ranked Result: ---- Match Group 125 of size 1+1 ---- Ranked Result: ---- Match Group 126 of size 1+2 ---- Ranked Result: ---- Match Group 127 of size 1+1 ---- Ranked Result: ---- Match Group 128 of size 1+1 ---- Ranked Result: ---- Match Group 129 of size 1+1 ---- Ranked Result: ---- Match Group 130 of size 2+22 ---- Ranked Result: ---- Match Group 131 of size 1+1 ---- Ranked Result: ---- Match Group 132 of size 1+9 ---- Ranked Result: ---- Match Group 133 of size 1+2 ---- Ranked Result: ---- Match Group 134 of size 1+3 ---- Ranked Result: ---- Match Group 135 of size 1+4 ---- Ranked Result: ---- Match Group 136 of size 3+12 ---- Ranked Result: ---- Match Group 137 of size 2+1 ---- Ranked Result: ---- Match Group 138 of size 2+1 ---- Ranked Result: ---- Match Group 139 of size 1+1 ---- Ranked Result: ---- Match Group 140 of size 1+1 ---- Ranked Result: ---- Match Group 141 of size 1+1 ---- Ranked Result: ---- Match Group 142 of size 2+1 ---- Ranked Result: ---- Match Group 143 of size 1+2 ---- Ranked Result: ---- Match Group 144 of size 2+1 ---- Ranked Result: ---- Match Group 145 of size 2+3 ---- Ranked Result: ---- Match Group 146 of size 3+3 ---- Ranked Result: ---- Match Group 147 of size 1+1 ---- Ranked Result: 1. (size 6) Add components using the dreaded GridBagLayout ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelString.java: 75-77 Length: 3 * GridBagLayout gb = new GridBagLayout(); * setLayout(gb); * GridBagConstraints c = new GridBagConstraints(); ---- /home/edmund/database-mana/databaseGitHub/mdrill/trunk/adhoc-solr/src/main/java/org/apache/regexp/REDemo.java: 55-57 Length: 3 local sim: [[layout, grid, bag]] global sim: [[add]] [GridBagLayout] Add components using the dreaded GridBagLayout < GridBagLayout gb = new GridBagLayout(); < setLayout(gb); < GridBagConstraints c = new GridBagConstraints(); ---- Comments (size 1): 1. Add components using the dreaded GridBagLayout ---- Match Group 148 of size 1+3 ---- Ranked Result: ---- Match Group 149 of size 2+7 ---- Ranked Result: ---- Match Group 150 of size 2+4 ---- Ranked Result: 1. (size 12) Returns the preferred size. @param parent the parent. @return the preferred size. 2. (size 20) Returns the preferred size using this layout manager. @param parent the parent. @return the preferred size using this layout manager. ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/LabelledLayout.java: 175-183 Length: 3 Determines the preferred size of the container argument using this labelled layout. The preferred size is that all child components are in one section at their own preferred size with gaps and border indents. * /** * * Determines the preferred size of the container argument using * * this labelled layout. The preferred size is that all child * * components are in one section at their own preferred size with * * gaps and border indents. * */ * public Dimension preferredLayoutSize(Container parent) { * synchronized (parent.getTreeLock()) { * final Insets insets = parent.getInsets(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/uml/ui/LabelledLayout.java: 173-181 Length: 3 Determines the preferred size of the container argument using this labelled layout. The preferred size is that all child components are in one section at their own preferred size with gaps and border indents. * /** * * Determines the preferred size of the container argument using * * this labelled layout. The preferred size is that all child * * components are in one section at their own preferred size with * * gaps and border indents. * */ * public Dimension preferredLayoutSize(Container parent) { * synchronized (parent.getTreeLock()) { * final Insets insets = parent.getInsets(); ---- /home/edmund/database-mana/databaseGitHub/mdrill/trunk/adhoc-internal/src/main/java/org/jfree/layout/LCBLayout.java: 93-103 Length: 3 local sim: [[layout, parent, size, preferred]] global sim: [[]] Returns the preferred size using this layout manager. @param parent the parent. @return the preferred size using this layout manager. < /** < * Returns the preferred size using this layout manager. < * < * @param parent the parent. < * < * @return the preferred size using this layout manager. < */ < public Dimension preferredLayoutSize(final Container parent) { < < synchronized (parent.getTreeLock()) { < final Insets insets = parent.getInsets(); ---- /home/edmund/database-mana/databaseGitHub/mdrill/trunk/adhoc-internal/src/main/java/org/jfree/layout/CenterLayout.java: 70-80 Length: 3 local sim: [[parent, size, preferred]] global sim: [[]] Returns the preferred size. @param parent the parent. @return the preferred size. < /** < * Returns the preferred size. < * < * @param parent the parent. < * < * @return the preferred size. < */ < public Dimension preferredLayoutSize(final Container parent) { < < synchronized (parent.getTreeLock()) { < final Insets insets = parent.getInsets(); ---- Comments (size 2): 1. Returns the preferred size using this layout manager. @param parent the parent. @return the preferred size using this layout manager. 2. Returns the preferred size. @param parent the parent. @return the preferred size. ---- Match Group 151 of size 2+4 ---- Ranked Result: 1. (size 12) Returns the minimum size. @param parent the parent. @return the minimum size. 2. (size 20) Returns the minimum size using this layout manager. @param parent the parent. @return the minimum size using this layout manager. ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/LabelledLayout.java: 205-212 Length: 3 Required by LayoutManager. @see java.awt.LayoutManager#minimumLayoutSize(java.awt.Container) * /** * * Required by LayoutManager. * * * * @see java.awt.LayoutManager#minimumLayoutSize(java.awt.Container) * */ * public Dimension minimumLayoutSize(Container parent) { * synchronized (parent.getTreeLock()) { * final Insets insets = parent.getInsets(); ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/uml/ui/LabelledLayout.java: 215-222 Length: 3 Required by LayoutManager. @see java.awt.LayoutManager#minimumLayoutSize(java.awt.Container) * /** * * Required by LayoutManager. * * * * @see java.awt.LayoutManager#minimumLayoutSize(java.awt.Container) * */ * public Dimension minimumLayoutSize(Container parent) { * synchronized (parent.getTreeLock()) { * final Insets insets = parent.getInsets(); ---- /home/edmund/database-mana/databaseGitHub/mdrill/trunk/adhoc-internal/src/main/java/org/jfree/layout/LCBLayout.java: 134-144 Length: 3 local sim: [[layout, parent, size, minimum]] global sim: [[]] Returns the minimum size using this layout manager. @param parent the parent. @return the minimum size using this layout manager. < /** < * Returns the minimum size using this layout manager. < * < * @param parent the parent. < * < * @return the minimum size using this layout manager. < */ < public Dimension minimumLayoutSize(final Container parent) { < < synchronized (parent.getTreeLock()) { < final Insets insets = parent.getInsets(); ---- /home/edmund/database-mana/databaseGitHub/mdrill/trunk/adhoc-internal/src/main/java/org/jfree/layout/CenterLayout.java: 98-108 Length: 3 local sim: [[parent, size, minimum]] global sim: [[]] Returns the minimum size. @param parent the parent. @return the minimum size. < /** < * Returns the minimum size. < * < * @param parent the parent. < * < * @return the minimum size. < */ < public Dimension minimumLayoutSize(final Container parent) { < < synchronized (parent.getTreeLock()) { < final Insets insets = parent.getInsets(); ---- Comments (size 2): 1. Returns the minimum size. @param parent the parent. @return the minimum size. 2. Returns the minimum size using this layout manager. @param parent the parent. @return the minimum size using this layout manager. ---- Match Group 152 of size 1+1 ---- Ranked Result: ---- Match Group 153 of size 1+3 ---- Ranked Result: ---- Match Group 154 of size 2+3 ---- Ranked Result: ---- Match Group 155 of size 2+12 ---- Ranked Result: ---- Match Group 156 of size 1+5 ---- Ranked Result: ---- Match Group 157 of size 1+1 ---- Ranked Result: ---- Match Group 158 of size 1+1 ---- Ranked Result: ---- Match Group 159 of size 1+1 ---- Ranked Result: ---- Match Group 160 of size 1+1 ---- Ranked Result: ---- Match Group 161 of size 1+4 ---- Ranked Result: ---- Match Group 162 of size 1+1 ---- Ranked Result: ---- Match Group 163 of size 1+1 ---- Ranked Result: ---- Match Group 164 of size 1+3 ---- Ranked Result: ---- Match Group 165 of size 3+1 ---- Ranked Result: ---- Match Group 166 of size 2+4 ---- Ranked Result: ---- Match Group 167 of size 1+4 ---- Ranked Result: ---- Match Group 168 of size 1+1 ---- Ranked Result: ---- Match Group 169 of size 1+2 ---- Ranked Result: ---- Match Group 170 of size 1+1 ---- Ranked Result: 1. (size 4) remove the file extension ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/util/Tools.java: 216-219 Length: 3 * String s = file.getName(); * int i = s.lastIndexOf('.'); * * if (i > 0) { ---- /home/edmund/database-mana/databaseGitHub/elasticsearch/src/test/java/org/elasticsearch/test/rest/parser/RestTestSuiteParser.java: 43-46 Length: 3 local sim: [[file]] global sim: [[]] remove the file extension < String filename = file.getName(); < //remove the file extension < int i = filename.lastIndexOf('.'); < if (i > 0) { ---- Comments (size 1): 1. remove the file extension ---- Match Group 171 of size 1+1 ---- Ranked Result: ---- Match Group 172 of size 2+7 ---- Ranked Result: ---- Match Group 173 of size 3+1 ---- Ranked Result: ---- Match Group 174 of size 1+2 ---- Ranked Result: ---- Match Group 175 of size 1+5 ---- Ranked Result: ---- Match Group 176 of size 1+1 ---- Ranked Result: ---- Match Group 177 of size 1+2 ---- Ranked Result: ---- Match Group 178 of size 1+1 ---- Ranked Result: ---- Match Group 179 of size 2+2 ---- Ranked Result: ---- Match Group 180 of size 1+1 ---- Ranked Result: ---- Match Group 181 of size 1+1 ---- Ranked Result: ---- Match Group 182 of size 1+1 ---- Ranked Result: ---- Match Group 183 of size 1+1 ---- Ranked Result: ---- Match Group 184 of size 1+1 ---- Ranked Result: ---- Match Group 185 of size 1+1 ---- Ranked Result: ---- Match Group 186 of size 1+1 ---- Ranked Result: ---- Match Group 187 of size 1+1 ---- Ranked Result: ---- Match Group 188 of size 1+1 ---- Ranked Result: ---- Match Group 189 of size 1+1 ---- Ranked Result: ---- Match Group 190 of size 1+1 ---- Ranked Result: ---- Match Group 191 of size 2+2 ---- Ranked Result: ---- Match Group 192 of size 1+2 ---- Ranked Result: ---- Match Group 193 of size 1+1 ---- Ranked Result: ---- Match Group 194 of size 1+1 ---- Ranked Result: ---- Match Group 195 of size 1+1 ---- Ranked Result: ---- Match Group 196 of size 2+1 ---- Ranked Result: ---- Match Group 197 of size 1+1 ---- Ranked Result: ---- Match Group 198 of size 1+1 ---- Ranked Result: ---- Match Group 199 of size 1+1 ---- Ranked Result: 1. (size 27) Pass this method an Object and Method equipped to display application info They will be called when the About menu item is selected from the application menu ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/util/osdep/OSXAdapter.java: 107-124 Length: 8 Set handler for About action. It will be called when the About menu item is selected from the application menu. @param target object containing the method @param aboutHandler method to invoke to handle About menu item If we're setting a handler, enable the About menu item by calling com.apple.eawt.Application reflectively java.nio.charset.MalformedInputException: Input length = 1 /home/edmund/database-mana/databaseGitHub/GCViewer/src/main/java/com/tagtraum/perf/gcviewer/util/OSXAdapter.java: 86-96 Length: 8 local sim: [[method, application, about, menu, object]] global sim: [[the]] Pass this method an Object and Method equipped to display application info They will be called when the About menu item is selected from the application menu < public static void setAboutHandler(Object target, Method aboutHandler) { < boolean enableAboutMenu = (target != null && aboutHandler != null); < if (enableAboutMenu) { < setHandler(new OSXAdapter("handleAbout", target, aboutHandler)); < } < // If we're setting a handler, enable the About menu item by calling < // com.apple.eawt.Application reflectively < try { < Method enableAboutMethod = macOSXApplication.getClass().getDeclaredMethod("setEnabledAboutMenu", new Class[] { boolean.class }); < enableAboutMethod.invoke(macOSXApplication, new Object[] { Boolean.valueOf(enableAboutMenu) }); < } catch (Exception ex) { ---- Comments (size 1): 1. Pass this method an Object and Method equipped to display application info They will be called when the About menu item is selected from the application menu ---- Match Group 200 of size 1+1 ---- Ranked Result: 1. (size 28) Pass this method an Object and a Method equipped to display application options They will be called when the Preferences menu item is selected from the application menu ---- /home/edmund/evaluate_projects/ArgoUML/argouml/src/argouml-app/src/org/argouml/util/osdep/OSXAdapter.java: 129-146 Length: 8 Set handler for Mac preferences item. It will be called when the Preferences menu item is selected from the application menu. @param target object containing the method @param prefsHandler method to handle preferences action If we're setting a handler, enable the Preferences menu item by calling com.apple.eawt.Application reflectively java.nio.charset.MalformedInputException: Input length = 1 /home/edmund/database-mana/databaseGitHub/GCViewer/src/main/java/com/tagtraum/perf/gcviewer/util/OSXAdapter.java: 103-113 Length: 8 local sim: [[preferences, method, application, menu, object]] global sim: [[the]] Pass this method an Object and a Method equipped to display application options They will be called when the Preferences menu item is selected from the application menu < public static void setPreferencesHandler(Object target, Method prefsHandler) { < boolean enablePrefsMenu = (target != null && prefsHandler != null); < if (enablePrefsMenu) { < setHandler(new OSXAdapter("handlePreferences", target, prefsHandler)); < } < // If we're setting a handler, enable the Preferences menu item by calling < // com.apple.eawt.Application reflectively < try { < Method enablePrefsMethod = macOSXApplication.getClass().getDeclaredMethod("setEnabledPreferencesMenu", new Class[] { boolean.class }); < enablePrefsMethod.invoke(macOSXApplication, new Object[] { Boolean.valueOf(enablePrefsMenu) }); < } catch (Exception ex) { ---- Comments (size 1): 1. Pass this method an Object and a Method equipped to display application options They will be called when the Preferences menu item is selected from the application menu ---- Match Group 201 of size 1+1 ---- Ranked Result: ---- Match Group 202 of size 1+1 ---- Ranked Result: ---- Match Group 203 of size 1+1 ---- Ranked Result: ---- Match Group 204 of size 1+1 ---- Ranked Result: ---- Match Group 205 of size 5+1 ---- Ranked Result: ---- Match Group 206 of size 2+1 ---- Ranked Result: ---- Match Group 207 of size 1+1 ---- Ranked Result: ---- Match Group 208 of size 1+1 ---- Ranked Result: ---- Match Group 209 of size 1+1 ---- Ranked Result: ---- Match Group 210 of size 1+1 ---- Ranked Result: ---- Match Group 211 of size 1+1 ---- Ranked Result: ---- Match Group 212 of size 1+1 ---- Ranked Result: ---- Number of internal clones: 1.0 median, 1.7222222222222223 average, 31 total. Number of external clones: 4.5 median, 35.27777777777778 average, 635 total. InternalMap: {1=12, 2=4, 3=1, 8=1} ExternalMap: {1=6, 19=1, 4=3, 213=1, 5=1, 102=1, 8=1, 26=1, 10=1, 28=1, 206=1} 18 comment groups has a comment Elapsed for 26 minutes Finish @ 01:21:33 AM graceful exit...