Match Group 0 of size 1+7 ---- Ranked Result: ---- Match Group 1 of size 5+213 ---- Ranked Result: 1. (size 3) close previous connection ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java: 316-318 Length: 3 * try { * input.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/util/FileUtils.java: 1497-1499 Length: 3 * try { * device.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java: 197-199 Length: 3 * try { * in.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Property.java: 634-636 Length: 3 * try { * is.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java: 1568-1570 Length: 3 * try { * instream.close(); * } catch (IOException ex) { ---- /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 2 of size 3+42 ---- Ranked Result: ---- Match Group 3 of size 1+1068 ---- Ranked Result: 1. (size 3) Sleep a bit. 2. (size 3) sleep for 10s 3. (size 4) Sleep and try again ---- /home/edmund/evaluate_projects/ant/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java: 343-346 Length: 3 wait a little bit to have the target executed * try { * // wait a little bit to have the target executed * Thread.sleep(500); * } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/jstorm/jstorm-server/src/main/java/com/alibaba/jstorm/task/TaskShutdownDameon.java: 65-67 Length: 3 local sim: [[thread]] global sim: [[]] waiting 100ms for executor thread shutting it's own < try { < Thread.sleep(100); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/lwjgl/src/java/org/lwjgl/test/opengl/FullScreenWindowedTest.java: 119-121 Length: 3 local sim: [[sleep]] global sim: [[]] don't waste cpu time, sleep more < try { < Thread.sleep(100); < } catch (InterruptedException inte) { ---- /home/edmund/database-mana/databaseGitHub/lwjgl/src/java/org/lwjgl/test/opengl/pbuffers/PbufferTest.java: 179-181 Length: 3 local sim: [[sleep]] global sim: [[]] don't waste cpu time, sleep more < try { < Thread.sleep(100); < } catch (InterruptedException inte) { ---- /home/edmund/database-mana/databaseGitHub/umongo/src/com/edgytech/umongo/ServerPanel.java: 149-152 Length: 3 local sim: [[sleep]] global sim: [[]] sleep a bit since it takes time for driver to see change < try { < // sleep a bit since it takes time for driver to see change < Thread.sleep(6000); < } catch (InterruptedException ex) { ---- /home/edmund/database-mana/databaseGitHub/crash/shell/src/main/java/org/crsh/text/renderers/ThreadRenderer.java: 77-81 Length: 3 local sim: [[sleep]] global sim: [[]] Sleep 100ms < try { < // Sleep 100ms < Thread.sleep(100); < } < catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/lwjgl/src/java/org/lwjgl/test/input/HWCursorTest.java: 240-242 Length: 3 local sim: [[sleep]] global sim: [[]] don't waste cpu time, sleep more < try { < Thread.sleep(100); < } catch (InterruptedException inte) { ---- /home/edmund/database-mana/databaseGitHub/ps3mediaserver/src/main/java/net/pms/io/PipeIPCProcess.java: 167-169 Length: 3 local sim: [[thread]] global sim: [[]] Allow the threads some time to do their work before running the main thread < try { < Thread.sleep(150); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/hindex/src/examples/thrift/DemoClient.java: 254-256 Length: 3 local sim: [[sleep]] global sim: [[]] sleep to force later timestamp < try { < Thread.sleep(50); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/umongo/src/com/edgytech/umongo/ReplSetPanel.java: 159-162 Length: 3 local sim: [[sleep]] global sim: [[]] sleep a bit since it takes time for driver to see change < try { < // sleep a bit since it takes time for driver to see change < Thread.sleep(6000); < } catch (InterruptedException ex) { ---- /home/edmund/database-mana/databaseGitHub/lwjgl/src/java/org/lwjgl/test/opengles/FullScreenWindowedTest.java: 133-135 Length: 3 local sim: [[sleep]] global sim: [[]] don't waste cpu time, sleep more < try { < Thread.sleep(100); < } catch (InterruptedException inte) { ---- /home/edmund/database-mana/databaseGitHub/lwjgl/src/java/org/lwjgl/test/opengl/PbufferTest.java: 142-144 Length: 3 local sim: [[sleep]] global sim: [[]] don't waste cpu time, sleep more < try { < Thread.sleep(100); < } catch (InterruptedException inte) { ---- /home/edmund/database-mana/databaseGitHub/spring-hadoop/spring-hadoop-core/src/main/java/org/springframework/data/hadoop/fs/FsShell.java: 868-871 Length: 3 local sim: [[sleep]] global sim: [[]] sleep for 10s < try { < // sleep for 10s < Thread.sleep(10000); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/gocd/util/test/com/thoughtworks/go/util/command/StreamPumperTest.java: 113-115 Length: 3 local sim: [[sleep]] global sim: [[]] Sleep a bit. < try { < Thread.sleep(10); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/calabash-android/ruby-gem/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/softkey/PressKey.java: 44-46 Length: 3 local sim: [[sleep]] global sim: [[]] Sleep and try again < try { < Thread.sleep(200); < } catch (InterruptedException interruptedException) { ---- /home/edmund/database-mana/databaseGitHub/voldemort/test/unit/voldemort/store/stats/ClientSocketStatsTest.java: 335-337 Length: 3 local sim: [[sleep]] global sim: [[]] Make it sleep for a second < try { < Thread.sleep(1000); < } catch(InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/hindex/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java: 225-227 Length: 3 local sim: [[sleep]] global sim: [[]] sleep to let the log roller run (if it needs to) < try { < Thread.sleep(2000); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/ps3mediaserver/src/main/java/net/pms/io/PipeIPCProcess.java: 150-152 Length: 3 local sim: [[thread]] global sim: [[]] Allow the threads some time to do their work before starting the main thread < try { < Thread.sleep(150); < } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/gocd/agent-launcher/src/com/thoughtworks/cruise/agent/launcher/AgentLauncherImpl.java: 89-92 Length: 3 local sim: [[sleep]] global sim: [[]] Sleep a bit so that if there are problems we don't spin < try { < // Sleep a bit so that if there are problems we don't spin < Thread.sleep(1000); < } catch (InterruptedException e) { ---- Comments (size 13): 1. Sleep and try again 2. Sleep a bit. 3. sleep for 10s 4. waiting 100ms for executor thread shutting it's own 5. Make it sleep for a second 6. don't waste cpu time, sleep more 7. Sleep a bit so that if there are problems we don't spin 8. sleep to let the log roller run (if it needs to) 9. Sleep 100ms 10. Allow the threads some time to do their work before running the main thread 11. sleep to force later timestamp 12. sleep a bit since it takes time for driver to see change 13. Allow the threads some time to do their work before starting the main thread ---- Match Group 4 of size 1+118 ---- Ranked Result: ---- Match Group 5 of size 5+171 ---- Ranked Result: 1. (size 12) Give the concurrent thread time so it will try to acquire locks ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/util/FileUtils.java: 1581-1583 Length: 3 * try { * Thread.sleep(DELETE_RETRY_SLEEP_MILLIS); * } catch (InterruptedException ex) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Mkdir.java: 104-107 Length: 3 * try { * Thread.sleep(MKDIR_RETRY_SLEEP_MILLIS); * return f.mkdirs(); * } catch (InterruptedException ex) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Retry.java: 110-112 Length: 3 * try { * Thread.sleep(retryDelay); * } catch (InterruptedException ie) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Execute.java: 503-505 Length: 3 * try { * Thread.sleep(ONE_SECOND); * } catch (InterruptedException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java: 283-285 Length: 3 * try { * Thread.sleep(showDuration); * } catch (InterruptedException e) { ---- /home/edmund/database-mana/databaseGitHub/greenDAO/DaoTest/src/de/greenrobot/daotest/DaoSessionConcurrentTest.java: 337-339 Length: 3 local sim: [[thread]] global sim: [[]] Give the concurrent thread time so it will try to acquire locks < try { < Thread.sleep(TIME_TO_WAIT_FOR_THREAD); < } catch (InterruptedException e) { ---- Comments (size 1): 1. Give the concurrent thread time so it will try to acquire locks ---- Match Group 6 of size 1+3 ---- Ranked Result: ---- Match Group 7 of size 1+72 ---- Ranked Result: ---- Match Group 8 of size 1+6 ---- Ranked Result: ---- Match Group 9 of size 1+2 ---- Ranked Result: ---- Match Group 10 of size 2+25 ---- Ranked Result: ---- Match Group 11 of size 1+33 ---- Ranked Result: ---- Match Group 12 of size 1+11 ---- Ranked Result: ---- Match Group 13 of size 2+14 ---- Ranked Result: ---- Match Group 14 of size 1+9 ---- Ranked Result: ---- Match Group 15 of size 1+127 ---- Ranked Result: 1. (size 6) sleep so that everyting loads correctly ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/util/ProcessUtil.java: 59-61 Length: 3 * try { * Thread.sleep(120000); * } catch (Exception exc) { ---- /home/edmund/database-mana/databaseGitHub/Talon-for-Twitter/src/main/java/com/klinker/android/twitter/ui/main_fragments/home_fragments/HomeFragment.java: 159-161 Length: 3 local sim: [[sleep]] global sim: [[]] sleep so that everyting loads correctly < try { < Thread.sleep(2000); < } catch (Exception e) { ---- Comments (size 1): 1. sleep so that everyting loads correctly ---- Match Group 16 of size 1+76 ---- Ranked Result: ---- Match Group 17 of size 4+102 ---- Ranked Result: 1. (size 4) windows... close before deleting ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java: 1567-1570 Length: 4 * if (instream != null) { * try { * instream.close(); * } catch (IOException ex) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Property.java: 633-636 Length: 4 * if (is != null) { * try { * is.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java: 315-318 Length: 4 * if (input != null) { * try { * input.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java: 196-199 Length: 4 * if (in != null) { * try { * in.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 18 of size 2+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/ant/src/main/org/apache/tools/ant/taskdefs/Sleep.java: 122-124 Length: 3 * try { * Thread.sleep(millis); * } catch (InterruptedException ie) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/sound/AntSoundPlayer.java: 165-167 Length: 3 * try { * Thread.sleep(duration); * } catch (InterruptedException e) { ---- /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 19 of size 1+21 ---- Ranked Result: 1. (size 5) Make it canonical if possible 2. (size 8) use canonical paths in order to resolve symlinks ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/DirectoryScanner.java: 958-960 Length: 3 * try { * canonBase = basedir.getCanonicalFile(); * } catch (final IOException ex) { ---- /home/edmund/database-mana/databaseGitHub/tomcat/java/org/apache/catalina/core/StandardHost.java: 236-238 Length: 3 local sim: [[canonical]] global sim: [[]] Make it canonical if possible < try { < file = file.getCanonicalFile(); < } catch (IOException ioe) { ---- /home/edmund/database-mana/databaseGitHub/intellij-community/java/compiler/openapi/src/com/intellij/compiler/ant/GenerationUtils.java: 99-103 Length: 3 local sim: [[canonical]] global sim: [[]] use canonical paths in order to resolve symlinks < try { < // use canonical paths in order to resolve symlinks < base = baseDir.getCanonicalFile(); < } < catch (IOException e) { ---- Comments (size 2): 1. use canonical paths in order to resolve symlinks 2. Make it canonical if possible ---- Match Group 20 of size 1+1 ---- Ranked Result: ---- Match Group 21 of size 1+29 ---- Ranked Result: 1. (size 9) No events found. Wait for the first timed event. ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/util/OutputStreamFunneler.java: 146-148 Length: 3 * try { * wait(timeoutMillis); * } catch (InterruptedException eyeEx) { ---- /home/edmund/database-mana/databaseGitHub/WebWorks/api/CommonAPI/src/blackberry/core/threading/DispatcherImpl.java: 202-204 Length: 3 local sim: [[wait]] global sim: [[]] No events found. Wait for the first timed event. < try { < wait( waitTime ); < } catch ( InterruptedException ie ) { ---- Comments (size 1): 1. No events found. Wait for the first timed event. ---- Match Group 22 of size 1+40 ---- Ranked Result: ---- Match Group 23 of size 1+29 ---- Ranked Result: ---- Match Group 24 of size 1+1 ---- Ranked Result: ---- Match Group 25 of size 1+77 ---- Ranked Result: ---- Match Group 26 of size 1+12 ---- Ranked Result: ---- Match Group 27 of size 5+49 ---- Ranked Result: ---- Match Group 28 of size 3+28 ---- Ranked Result: 1. (size 2) close buffered ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/CVSPass.java: 126-129 Length: 4 * if (reader != null) { * try { * reader.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/input/DefaultInputHandler.java: 65-68 Length: 4 * if (r != null) { * try { * r.close(); * } catch (IOException e) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java: 342-345 Length: 4 * if (reader != null) { * try { * reader.close(); * } catch (IOException e) { ---- /home/edmund/database-mana/databaseGitHub/android-common/src/cn/trinea/android/common/util/HttpUtils.java: 100-103 Length: 4 local sim: [[close]] global sim: [[buffered]] close buffered < if (input != null) { < try { < input.close(); < } catch (IOException e) { ---- /home/edmund/database-mana/databaseGitHub/android-common/src/cn/trinea/android/common/util/HttpUtils.java: 229-232 Length: 4 local sim: [[close]] global sim: [[buffered]] close buffered < if (input != null) { < try { < input.close(); < } catch (IOException e) { ---- Comments (size 1): 1. close buffered ---- Match Group 29 of size 1+2 ---- Ranked Result: ---- Match Group 30 of size 1+1 ---- Ranked Result: ---- Match Group 31 of size 4+23 ---- Ranked Result: ---- Match Group 32 of size 1+5 ---- Ranked Result: ---- Match Group 33 of size 1+3 ---- Ranked Result: ---- Match Group 34 of size 1+2 ---- Ranked Result: ---- Match Group 35 of size 1+2 ---- Ranked Result: ---- Match Group 36 of size 1+1 ---- Ranked Result: ---- Match Group 37 of size 2+17 ---- Ranked Result: ---- Match Group 38 of size 3+4 ---- Ranked Result: ---- Match Group 39 of size 1+4 ---- Ranked Result: ---- Match Group 40 of size 1+6 ---- Ranked Result: ---- Match Group 41 of size 1+9 ---- Ranked Result: ---- Match Group 42 of size 1+15 ---- Ranked Result: ---- Match Group 43 of size 2+9 ---- Ranked Result: ---- Match Group 44 of size 1+23 ---- Ranked Result: ---- Match Group 45 of size 1+11 ---- 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/ant/src/main/org/apache/tools/ant/types/selectors/ContainsRegexpSelector.java: 210-212 Length: 3 * try { * in.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 46 of size 1+73 ---- Ranked Result: ---- Match Group 47 of size 1+23 ---- Ranked Result: ---- Match Group 48 of size 1+1 ---- Ranked Result: ---- Match Group 49 of size 12+2 ---- Ranked Result: ---- Match Group 50 of size 1+14 ---- Ranked Result: ---- Match Group 51 of size 1+19 ---- Ranked Result: ---- Match Group 52 of size 1+4 ---- Ranked Result: ---- Match Group 53 of size 3+1 ---- Ranked Result: ---- Match Group 54 of size 1+2 ---- Ranked Result: ---- Match Group 55 of size 1+1 ---- Ranked Result: ---- Match Group 56 of size 1+10 ---- Ranked Result: 1. (size 6) read it all into a string ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/types/selectors/ContainsSelector.java: 198-200 Length: 3 * try { * String teststr = in.readLine(); * while (teststr != null) { ---- /home/edmund/database-mana/databaseGitHub/gast-lib/app/src/root/gast/playground/util/FileUtil.java: 30-33 Length: 3 local sim: [[read, string]] global sim: [[]] read it all into a string < try < { < String line = reader.readLine(); < while (line != null) ---- Comments (size 1): 1. read it all into a string ---- Match Group 57 of size 2+18 ---- Ranked Result: ---- Match Group 58 of size 2+15 ---- Ranked Result: ---- Match Group 59 of size 1+1 ---- Ranked Result: ---- Match Group 60 of size 1+7 ---- Ranked Result: ---- Match Group 61 of size 1+18 ---- Ranked Result: ---- Match Group 62 of size 1+3 ---- Ranked Result: ---- Match Group 63 of size 1+5 ---- Ranked Result: ---- Match Group 64 of size 1+52 ---- Ranked Result: ---- Match Group 65 of size 1+23 ---- Ranked Result: ---- Match Group 66 of size 1+10 ---- Ranked Result: ---- Match Group 67 of size 2+25 ---- Ranked Result: ---- Match Group 68 of size 5+13 ---- Ranked Result: ---- Match Group 69 of size 1+5 ---- Ranked Result: ---- Match Group 70 of size 1+1 ---- Ranked Result: ---- Match Group 71 of size 1+4 ---- Ranked Result: ---- Match Group 72 of size 1+5 ---- Ranked Result: ---- Match Group 73 of size 1+4 ---- Ranked Result: ---- Match Group 74 of size 1+15 ---- Ranked Result: ---- Match Group 75 of size 1+2 ---- Ranked Result: ---- Match Group 76 of size 1+1 ---- Ranked Result: ---- Match Group 77 of size 1+7 ---- Ranked Result: ---- Match Group 78 of size 1+4 ---- Ranked Result: ---- Match Group 79 of size 1+4 ---- Ranked Result: ---- Match Group 80 of size 1+1 ---- Ranked Result: ---- Match Group 81 of size 2+1 ---- Ranked Result: ---- Match Group 82 of size 1+1 ---- Ranked Result: ---- Match Group 83 of size 1+2 ---- Ranked Result: ---- Match Group 84 of size 2+10 ---- Ranked Result: 1. (size 7) First check if it's already loaded 2. (size 9) First, check if the class has already been loaded ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/AntClassLoader.java: 683-685 Length: 3 * Class theClass = findLoadedClass(classname); * * if (theClass == null) { ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/AntClassLoader.java: 656-658 Length: 3 * Class theClass = findLoadedClass(classname); * * if (theClass == null) { ---- /home/edmund/database-mana/databaseGitHub/wicket/wicket-core/src/main/java/org/apache/wicket/application/ReloadingClassLoader.java: 252-254 Length: 3 local sim: [[loaded]] global sim: [[]] First check if it's already loaded < Class clazz = findLoadedClass(name); < < if (clazz == null) ---- /home/edmund/database-mana/databaseGitHub/spring-hadoop/spring-hadoop-core/src/main/java/org/springframework/data/hadoop/mapreduce/ParentLastURLClassLoader.java: 51-52 Length: 3 local sim: [[loaded, class]] global sim: [[]] First, check if the class has already been loaded < Class c = findLoadedClass(name); < if (c == null) { ---- Comments (size 2): 1. First, check if the class has already been loaded 2. First check if it's already loaded ---- Match Group 85 of size 1+4 ---- Ranked Result: ---- Match Group 86 of size 1+10 ---- Ranked Result: ---- Match Group 87 of size 1+8 ---- Ranked Result: ---- Match Group 88 of size 1+12 ---- Ranked Result: 1. (size 7) get the real cause of the exception. ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/util/optional/JavaxScriptRunner.java: 154-156 Length: 3 * Throwable current = t; * while (current.getCause() != null) { * current = current.getCause(); ---- /home/edmund/database-mana/databaseGitHub/platform_frameworks_base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java: 377-379 Length: 3 local sim: [[get, cause]] global sim: [[]] get the real cause of the exception. < Throwable t2 = t; < while (t2.getCause() != null) { < t2 = t.getCause(); ---- /home/edmund/database-mana/databaseGitHub/platform_frameworks_base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java: 593-595 Length: 3 local sim: [[get, cause]] global sim: [[]] get the real cause of the exception. < Throwable t = e; < while (t.getCause() != null) { < t = t.getCause(); ---- /home/edmund/database-mana/databaseGitHub/platform_frameworks_base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java: 349-351 Length: 3 local sim: [[get, cause]] global sim: [[]] get the real cause of the exception. < Throwable t2 = t; < while (t2.getCause() != null) { < t2 = t.getCause(); ---- Comments (size 1): 1. get the real cause of the exception. ---- Match Group 89 of size 1+12 ---- Ranked Result: ---- Match Group 90 of size 1+4 ---- Ranked Result: ---- Match Group 91 of size 1+1 ---- Ranked Result: ---- Match Group 92 of size 1+2 ---- Ranked Result: ---- Match Group 93 of size 1+1 ---- Ranked Result: ---- Match Group 94 of size 2+2 ---- Ranked Result: ---- Match Group 95 of size 1+2 ---- Ranked Result: ---- Match Group 96 of size 1+2 ---- Ranked Result: ---- Match Group 97 of size 1+1 ---- Ranked Result: ---- Match Group 98 of size 2+4 ---- Ranked Result: ---- Match Group 99 of size 1+1 ---- Ranked Result: ---- Match Group 100 of size 1+1 ---- Ranked Result: ---- Match Group 101 of size 1+2 ---- Ranked Result: ---- Match Group 102 of size 1+2 ---- 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 1+1 ---- Ranked Result: ---- Match Group 106 of size 1+1 ---- Ranked Result: ---- Match Group 107 of size 1+2 ---- Ranked Result: ---- Match Group 108 of size 1+8 ---- Ranked Result: ---- Match Group 109 of size 1+1 ---- Ranked Result: ---- Match Group 110 of size 1+2 ---- Ranked Result: ---- Match Group 111 of size 1+2 ---- Ranked Result: 1. (size 10) Ignore, try to resolve the class via other class loaders. ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/ProjectHelperRepository.java: 230-238 Length: 7 try next method * Class clazz = null; * if (classLoader != null) { * try { * clazz = classLoader.loadClass(helperClass); * } catch (ClassNotFoundException ex) { * // try next method * } * } * if (clazz == null) { ---- /home/edmund/database-mana/databaseGitHub/fitnesse/src/fitnesse/slim/StackTraceEnricher.java: 166-174 Length: 7 local sim: [[class]] global sim: [[]] Ignore, try to resolve the class via other class loaders. < Class resolvedClass = null; < if (classLoader != null) { < try { < resolvedClass = classLoader.loadClass(className); < } catch (ClassNotFoundException e) { < // Ignore, try to resolve the class via other class loaders. < } < } < if (resolvedClass == null) { ---- Comments (size 1): 1. Ignore, try to resolve the class via other class loaders. ---- Match Group 112 of size 1+1 ---- Ranked Result: ---- Match Group 113 of size 1+1 ---- Ranked Result: ---- Match Group 114 of size 1+1 ---- Ranked Result: ---- Match Group 115 of size 2+9 ---- Ranked Result: ---- Match Group 116 of size 1+20 ---- Ranked Result: ---- Match Group 117 of size 2+14 ---- Ranked Result: ---- Match Group 118 of size 1+3 ---- Ranked Result: ---- Match Group 119 of size 1+1 ---- Ranked Result: ---- Match Group 120 of size 1+1 ---- Ranked Result: ---- Match Group 121 of size 1+1 ---- Ranked Result: ---- Match Group 122 of size 1+1 ---- Ranked Result: ---- Match Group 123 of size 2+9 ---- Ranked Result: ---- Match Group 124 of size 6+48 ---- Ranked Result: ---- Match Group 125 of size 3+29 ---- Ranked Result: ---- Match Group 126 of size 3+13 ---- Ranked Result: 1. (size 3) Make parent directories ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java: 2276-2279 Length: 3 * File pdir = file.getParentFile(); * * if (!pdir.exists()) { * pdir.mkdirs(); ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java: 1670-1673 Length: 3 * File pdir = file.getParentFile(); * * if (!pdir.exists()) { * pdir.mkdirs(); ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java: 1765-1768 Length: 3 * File pd = listing.getParentFile(); * * if (!pd.exists()) { * pd.mkdirs(); ---- /home/edmund/database-mana/databaseGitHub/WorldGuard/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java: 907-909 Length: 3 local sim: [[parent]] global sim: [[]] Make parent directories < File parent = actual.getParentFile(); < if (!parent.exists()) { < parent.mkdirs(); ---- Comments (size 1): 1. Make parent directories ---- Match Group 127 of size 1+2 ---- Ranked Result: ---- Match Group 128 of size 1+12 ---- Ranked Result: ---- Match Group 129 of size 1+12 ---- Ranked Result: ---- Match Group 130 of size 2+2 ---- Ranked Result: ---- Match Group 131 of size 1+2 ---- Ranked Result: ---- Match Group 132 of size 1+12 ---- Ranked Result: ---- Match Group 133 of size 4+10 ---- Ranked Result: ---- Match Group 134 of size 1+1 ---- Ranked Result: ---- Match Group 135 of size 2+4 ---- Ranked Result: ---- Match Group 136 of size 1+2 ---- Ranked Result: ---- Match Group 137 of size 1+1 ---- Ranked Result: ---- Match Group 138 of size 2+8 ---- Ranked Result: ---- Match Group 139 of size 1+8 ---- Ranked Result: ---- Match Group 140 of size 1+21 ---- Ranked Result: 1. (size 3) Append the path ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/types/selectors/FilenameSelector.java: 66-69 Length: 3 * if (pattern != null) { * buf.append(pattern); * } * if (regex != null) { ---- /home/edmund/database-mana/databaseGitHub/restlet-framework-java/modules/org.restlet/src/org/restlet/data/Reference.java: 463-468 Length: 3 local sim: [[append]] global sim: [[]] Append the path < if (relativePart != null) { < sb.append(relativePart); < } < < // Append the query string < if (query != null) { ---- Comments (size 1): 1. Append the path ---- Match Group 141 of size 2+36 ---- Ranked Result: ---- Match Group 142 of size 1+2 ---- Ranked Result: ---- Match Group 143 of size 1+1 ---- Ranked Result: ---- Match Group 144 of size 2+1 ---- Ranked Result: ---- Match Group 145 of size 1+2 ---- Ranked Result: ---- Match Group 146 of size 1+9 ---- Ranked Result: ---- Match Group 147 of size 1+7 ---- Ranked Result: ---- Match Group 148 of size 1+13 ---- Ranked Result: ---- Match Group 149 of size 3+7 ---- Ranked Result: ---- Match Group 150 of size 1+1 ---- Ranked Result: ---- Match Group 151 of size 1+1 ---- Ranked Result: 1. (size 9) check first if the class has already been loaded ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/AntClassLoader.java: 1073-1080 Length: 5 'sync' is needed - otherwise 2 threads can load the same class twice, resulting in LinkageError: duplicated class definition. findLoadedClass avoids that, but without sync it won't work. * protected synchronized Class loadClass(final String classname, final boolean resolve) * throws ClassNotFoundException { * // 'sync' is needed - otherwise 2 threads can load the same class * // twice, resulting in LinkageError: duplicated class definition. * // findLoadedClass avoids that, but without sync it won't work. * * Class theClass = findLoadedClass(classname); * if (theClass != null) { ---- /home/edmund/database-mana/databaseGitHub/jodd/jodd-core/src/main/java/jodd/util/cl/ExtendedURLClassLoader.java: 138-144 Length: 5 local sim: [[loaded, class]] global sim: [[first]] check first if the class has already been loaded < protected synchronized Class loadClass(String className, boolean resolve) throws ClassNotFoundException { < < // check first if the class has already been loaded < < Class c = findLoadedClass(className); < < if (c != null) { ---- Comments (size 1): 1. check first if the class has already been loaded ---- Match Group 152 of size 1+1 ---- Ranked Result: ---- Match Group 153 of size 3+3 ---- Ranked Result: ---- Match Group 154 of size 1+1 ---- Ranked Result: ---- Match Group 155 of size 1+1 ---- Ranked Result: ---- Match Group 156 of size 2+71 ---- Ranked Result: ---- Match Group 157 of size 3+8 ---- Ranked Result: ---- Match Group 158 of size 1+3 ---- Ranked Result: ---- Match Group 159 of size 1+1 ---- Ranked Result: ---- Match Group 160 of size 1+13 ---- Ranked Result: ---- Match Group 161 of size 1+4 ---- Ranked Result: 1. (size 1) entry ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java: 226-233 Length: 4 Ignore manifest entries. They're bound to cause conflicts between files that are being merged. User should supply their own manifest file when doing the merge. * Enumeration entries = zipf.entries(); * * while (entries.hasMoreElements()) { * ZipEntry inputEntry = (ZipEntry) entries.nextElement(); * //Ignore manifest entries. They're bound to cause conflicts between * //files that are being merged. User should supply their own * //manifest file when doing the merge. * String inputEntryName = inputEntry.getName(); ---- /home/edmund/database-mana/databaseGitHub/otter/node/etl/src/main/java/com/alibaba/otter/node/etl/common/pipe/impl/http/archive/ArchiveBean.java: 289-294 Length: 4 local sim: [[entry]] global sim: [[]] entry < Enumeration entries = zipFile.entries(); < < while (entries.hasMoreElements()) { < // entry < ZipEntry entry = (ZipEntry) entries.nextElement(); < String entryName = entry.getName(); ---- Comments (size 1): 1. entry ---- Match Group 162 of size 1+11 ---- Ranked Result: ---- Match Group 163 of size 2+1 ---- Ranked Result: ---- Match Group 164 of size 1+1 ---- Ranked Result: ---- Match Group 165 of size 1+1 ---- Ranked Result: ---- Match Group 166 of size 1+1 ---- Ranked Result: ---- Match Group 167 of size 1+1 ---- 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+6 ---- Ranked Result: ---- Match Group 171 of size 1+14 ---- Ranked Result: ---- Match Group 172 of size 1+7 ---- Ranked Result: ---- Match Group 173 of size 1+2 ---- Ranked Result: ---- Match Group 174 of size 1+1 ---- Ranked Result: ---- Match Group 175 of size 1+1 ---- Ranked Result: ---- Match Group 176 of size 1+3 ---- Ranked Result: ---- Match Group 177 of size 1+6 ---- Ranked Result: ---- Match Group 178 of size 1+12 ---- Ranked Result: ---- Match Group 179 of size 1+6 ---- Ranked Result: ---- Match Group 180 of size 1+2 ---- Ranked Result: ---- Match Group 181 of size 1+21 ---- Ranked Result: ---- Match Group 182 of size 1+1 ---- Ranked Result: ---- Match Group 183 of size 2+10 ---- 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 2+3 ---- Ranked Result: ---- Match Group 188 of size 1+3 ---- Ranked Result: ---- Match Group 189 of size 1+2 ---- Ranked Result: ---- Match Group 190 of size 2+3 ---- Ranked Result: ---- Match Group 191 of size 1+2 ---- Ranked Result: ---- Match Group 192 of size 3+13 ---- Ranked Result: ---- Match Group 193 of size 2+10 ---- Ranked Result: ---- Match Group 194 of size 1+3 ---- Ranked Result: 1. (size 4) create a factory class ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/compilers/AptCompilerAdapter.java: 169-171 Length: 3 finally invoke APT Use reflection to be able to build on all JDKs: * try { * final Class c = Class.forName(APT_ENTRY_POINT); * final Object compiler = c.newInstance(); ---- /home/edmund/database-mana/databaseGitHub/storm/storm-core/src/jvm/backtype/storm/messaging/TransportFactory.java: 36-40 Length: 3 local sim: [[class]] global sim: [[]] create a factory class < try { < //create a factory class < Class klass = Class.forName(transport_plugin_klassName); < //obtain a context object < Object obj = klass.newInstance(); ---- Comments (size 1): 1. create a factory class ---- Match Group 195 of size 1+1 ---- Ranked Result: ---- Match Group 196 of size 1+6 ---- Ranked Result: ---- Match Group 197 of size 1+7 ---- Ranked Result: ---- Match Group 198 of size 1+1 ---- Ranked Result: ---- Match Group 199 of size 3+4 ---- Ranked Result: ---- Match Group 200 of size 2+3 ---- Ranked Result: ---- Match Group 201 of size 1+5 ---- Ranked Result: ---- Match Group 202 of size 1+4 ---- Ranked Result: ---- Match Group 203 of size 2+1 ---- Ranked Result: ---- Match Group 204 of size 1+1 ---- Ranked Result: ---- Match Group 205 of size 3+1 ---- Ranked Result: ---- Match Group 206 of size 1+1 ---- Ranked Result: ---- Match Group 207 of size 1+3 ---- Ranked Result: ---- Match Group 208 of size 2+2 ---- Ranked Result: 1. (size 4) Parse command line options. ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHSession.java: 94-96 Length: 3 * final int lport = Integer.parseInt(spec[0]); * final String rhost = spec[1]; * final int rport = Integer.parseInt(spec[2]); ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHSession.java: 117-119 Length: 3 * final int rport = Integer.parseInt(spec[0]); * final String lhost = spec[1]; * final int lport = Integer.parseInt(spec[2]); ---- /home/edmund/database-mana/databaseGitHub/netty-learning/netty-3.7/src/main/java/org/jboss/netty/example/proxy/HexDumpProxy.java: 70-72 Length: 3 local sim: [[parse]] global sim: [[]] Parse command line options. < int localPort = Integer.parseInt(args[0]); < String remoteHost = args[1]; < int remotePort = Integer.parseInt(args[2]); ---- Comments (size 1): 1. Parse command line options. ---- Match Group 209 of size 1+1 ---- Ranked Result: ---- Match Group 210 of size 1+1 ---- Ranked Result: ---- Match Group 211 of size 1+2 ---- Ranked Result: ---- Match Group 212 of size 1+2 ---- Ranked Result: ---- Match Group 213 of size 1+1 ---- Ranked Result: ---- Match Group 214 of size 1+4 ---- Ranked Result: ---- Match Group 215 of size 6+4 ---- Ranked Result: ---- Match Group 216 of size 2+6 ---- Ranked Result: ---- Match Group 217 of size 1+2 ---- Ranked Result: ---- Match Group 218 of size 1+1 ---- Ranked Result: ---- Match Group 219 of size 1+1 ---- Ranked Result: ---- Match Group 220 of size 1+1 ---- Ranked Result: ---- Match Group 221 of size 1+1 ---- Ranked Result: ---- Match Group 222 of size 1+1 ---- Ranked Result: ---- Match Group 223 of size 1+1 ---- Ranked Result: ---- Match Group 224 of size 1+1 ---- Ranked Result: ---- Match Group 225 of size 1+1 ---- Ranked Result: ---- Match Group 226 of size 1+1 ---- Ranked Result: ---- Match Group 227 of size 1+1 ---- Ranked Result: ---- Match Group 228 of size 1+1 ---- Ranked Result: ---- Match Group 229 of size 1+1 ---- Ranked Result: ---- Match Group 230 of size 1+1 ---- Ranked Result: ---- Match Group 231 of size 3+3 ---- Ranked Result: ---- Match Group 232 of size 1+1 ---- Ranked Result: ---- Match Group 233 of size 1+1 ---- Ranked Result: ---- Match Group 234 of size 1+1 ---- Ranked Result: ---- Match Group 235 of size 1+1 ---- Ranked Result: ---- Match Group 236 of size 1+1 ---- Ranked Result: ---- Match Group 237 of size 1+1 ---- Ranked Result: ---- Match Group 238 of size 1+1 ---- Ranked Result: ---- Match Group 239 of size 1+1 ---- Ranked Result: ---- Match Group 240 of size 2+3 ---- Ranked Result: ---- Match Group 241 of size 1+1 ---- Ranked Result: ---- Match Group 242 of size 1+1 ---- Ranked Result: ---- Match Group 243 of size 1+1 ---- Ranked Result: ---- Match Group 244 of size 1+1 ---- Ranked Result: ---- Match Group 245 of size 1+1 ---- Ranked Result: ---- Match Group 246 of size 1+1 ---- Ranked Result: ---- Match Group 247 of size 1+1 ---- Ranked Result: ---- Match Group 248 of size 1+1 ---- Ranked Result: ---- Match Group 249 of size 1+1 ---- Ranked Result: ---- Match Group 250 of size 1+1 ---- Ranked Result: ---- Match Group 251 of size 1+1 ---- Ranked Result: ---- Match Group 252 of size 1+1 ---- Ranked Result: ---- Match Group 253 of size 1+1 ---- Ranked Result: ---- Match Group 254 of size 1+1 ---- Ranked Result: ---- Match Group 255 of size 1+1 ---- Ranked Result: ---- Match Group 256 of size 1+1 ---- Ranked Result: ---- Match Group 257 of size 1+1 ---- Ranked Result: ---- Match Group 258 of size 1+1 ---- Ranked Result: ---- Match Group 259 of size 1+1 ---- Ranked Result: ---- Match Group 260 of size 1+1 ---- Ranked Result: ---- Match Group 261 of size 1+1 ---- Ranked Result: ---- Match Group 262 of size 1+1 ---- Ranked Result: ---- Match Group 263 of size 1+1 ---- Ranked Result: ---- Match Group 264 of size 1+1 ---- Ranked Result: ---- Match Group 265 of size 2+23 ---- Ranked Result: ---- Match Group 266 of size 1+1 ---- Ranked Result: ---- Match Group 267 of size 1+1 ---- Ranked Result: ---- Match Group 268 of size 1+12 ---- Ranked Result: ---- Match Group 269 of size 1+2 ---- Ranked Result: ---- Match Group 270 of size 1+4 ---- Ranked Result: ---- Match Group 271 of size 1+4 ---- Ranked Result: ---- Match Group 272 of size 1+1 ---- Ranked Result: ---- Match Group 273 of size 1+2 ---- Ranked Result: ---- Match Group 274 of size 1+1 ---- Ranked Result: ---- Match Group 275 of size 1+1 ---- Ranked Result: ---- Match Group 276 of size 1+1 ---- Ranked Result: ---- Match Group 277 of size 1+2 ---- Ranked Result: ---- Match Group 278 of size 2+4 ---- Ranked Result: ---- Match Group 279 of size 2+4 ---- Ranked Result: ---- Match Group 280 of size 1+2 ---- Ranked Result: ---- Match Group 281 of size 1+1 ---- Ranked Result: ---- Match Group 282 of size 1+2 ---- Ranked Result: ---- Match Group 283 of size 1+1 ---- Ranked Result: ---- Match Group 284 of size 1+2 ---- Ranked Result: ---- Match Group 285 of size 1+2 ---- Ranked Result: ---- Match Group 286 of size 1+2 ---- Ranked Result: ---- Match Group 287 of size 1+2 ---- Ranked Result: ---- Match Group 288 of size 1+2 ---- Ranked Result: ---- Match Group 289 of size 9+17 ---- Ranked Result: ---- Match Group 290 of size 1+1 ---- Ranked Result: ---- Match Group 291 of size 8+1 ---- Ranked Result: ---- Match Group 292 of size 1+1 ---- Ranked Result: ---- Match Group 293 of size 1+1 ---- Ranked Result: ---- Match Group 294 of size 1+1 ---- Ranked Result: ---- Match Group 295 of size 1+4 ---- Ranked Result: ---- Match Group 296 of size 1+2 ---- Ranked Result: ---- Match Group 297 of size 2+2 ---- Ranked Result: ---- Match Group 298 of size 1+2 ---- Ranked Result: ---- Match Group 299 of size 1+1 ---- Ranked Result: ---- Match Group 300 of size 1+2 ---- Ranked Result: ---- Match Group 301 of size 1+2 ---- Ranked Result: ---- Match Group 302 of size 1+2 ---- Ranked Result: ---- Match Group 303 of size 1+2 ---- Ranked Result: ---- Match Group 304 of size 1+2 ---- Ranked Result: ---- Match Group 305 of size 1+2 ---- Ranked Result: ---- Match Group 306 of size 1+7 ---- Ranked Result: ---- Match Group 307 of size 1+4 ---- Ranked Result: ---- Match Group 308 of size 1+5 ---- Ranked Result: ---- Match Group 309 of size 1+2 ---- Ranked Result: ---- Match Group 310 of size 1+2 ---- Ranked Result: ---- Match Group 311 of size 1+1 ---- Ranked Result: ---- Match Group 312 of size 1+1 ---- Ranked Result: ---- Match Group 313 of size 1+3 ---- Ranked Result: ---- Match Group 314 of size 1+1 ---- Ranked Result: ---- Match Group 315 of size 1+2 ---- Ranked Result: ---- Match Group 316 of size 1+4 ---- Ranked Result: ---- Match Group 317 of size 1+3 ---- Ranked Result: ---- Match Group 318 of size 1+3 ---- Ranked Result: ---- Match Group 319 of size 1+1 ---- Ranked Result: ---- Match Group 320 of size 3+1 ---- Ranked Result: ---- Match Group 321 of size 1+1 ---- Ranked Result: ---- Match Group 322 of size 1+6 ---- Ranked Result: 1. (size 3) assert value!=nil ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/PropertyHelper.java: 1036-1045 Length: 4 search for the next instance of $ from the 'prev' position if there was any text before this, add it as a fragment TODO, this check could be modified to go if pos>prev; seems like this current version could stick empty strings into the list * int prev = 0; * int pos; * //search for the next instance of $ from the 'prev' position * while ((pos = value.indexOf("$", prev)) >= 0) { * * //if there was any text before this, add it as a fragment * //TODO, this check could be modified to go if pos>prev; * //seems like this current version could stick empty strings * //into the list * if (pos > 0) { ---- /home/edmund/database-mana/databaseGitHub/tomcat/java/org/apache/tomcat/util/IntrospectionUtils.java: 233-237 Length: 4 local sim: [[value]] global sim: [[]] assert value!=nil < int prev = 0; < // assert value!=nil < int pos; < while ((pos = value.indexOf("$", prev)) >= 0) { < if (pos > 0) { ---- /home/edmund/database-mana/databaseGitHub/atmosphere/modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java: 354-358 Length: 4 local sim: [[value]] global sim: [[]] assert value!=nil < int prev = 0; < // assert value!=nil < int pos; < while ((pos = value.indexOf("$", prev)) >= 0) { < if (pos > 0) { ---- /home/edmund/database-mana/databaseGitHub/tomcat/modules/tomcat-lite/test/org/apache/tomcat/test/watchdog/AntProperties.java: 29-33 Length: 4 local sim: [[value]] global sim: [[]] assert value!=nil < int prev = 0; < // assert value!=nil < int pos; < while ((pos = value.indexOf("$", prev)) >= 0) { < if (pos > 0) { ---- Comments (size 1): 1. assert value!=nil ---- Match Group 323 of size 1+6 ---- Ranked Result: ---- Match Group 324 of size 1+7 ---- Ranked Result: ---- Match Group 325 of size 2+2 ---- Ranked Result: ---- Match Group 326 of size 1+1 ---- Ranked Result: ---- Match Group 327 of size 1+3 ---- Ranked Result: ---- Match Group 328 of size 1+1 ---- Ranked Result: ---- Match Group 329 of size 1+1 ---- Ranked Result: ---- Match Group 330 of size 1+1 ---- Ranked Result: ---- Match Group 331 of size 4+4 ---- Ranked Result: ---- Match Group 332 of size 1+1 ---- Ranked Result: ---- Match Group 333 of size 2+3 ---- Ranked Result: ---- Match Group 334 of size 1+1 ---- Ranked Result: ---- Match Group 335 of size 2+1 ---- Ranked Result: ---- Match Group 336 of size 2+1 ---- Ranked Result: ---- Match Group 337 of size 1+4 ---- Ranked Result: ---- Match Group 338 of size 1+1 ---- Ranked Result: ---- Match Group 339 of size 1+1 ---- Ranked Result: ---- Match Group 340 of size 4+20 ---- Ranked Result: ---- Match Group 341 of size 2+2 ---- Ranked Result: ---- Match Group 342 of size 1+16 ---- Ranked Result: ---- Match Group 343 of size 1+1 ---- Ranked Result: ---- Match Group 344 of size 2+2 ---- Ranked Result: ---- Match Group 345 of size 1+1 ---- Ranked Result: ---- Match Group 346 of size 1+1 ---- Ranked Result: ---- Match Group 347 of size 6+1 ---- Ranked Result: 1. (size 9) mapper takes source files & converts them to dest files ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java: 187-198 Length: 4 Defines the mapper to map source to destination files. @return a mapper to be configured @exception BuildException if more than one mapper is defined @since Ant 1.8.0 * /** * * Defines the mapper to map source to destination files. * * @return a mapper to be configured * * @exception BuildException if more than one mapper is defined * * @since Ant 1.8.0 * */ * public Mapper createMapper() throws BuildException { * if (mapperElement != null) { * throw new BuildException("Cannot define more than one mapper", * getLocation()); * } * mapperElement = new Mapper(getProject()); ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java: 272-283 Length: 4 Create a nested Mapper element to use for mapping source files to target files. @return Mapper. @throws BuildException if more than one mapper is defined. * /** * * Create a nested Mapper element to use for mapping * * source files to target files. * * @return Mapper. * * @throws BuildException if more than one mapper is defined. * */ * public Mapper createMapper() throws BuildException { * if (mapperElement != null) { * throw new BuildException("Cannot define more than one mapper", * getLocation()); * } * mapperElement = new Mapper(getProject()); ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Get.java: 462-473 Length: 4 Define the mapper to map source to destination files. @return a mapper to be configured. @exception BuildException if more than one mapper is defined. @since Ant 1.8.0 * /** * * Define the mapper to map source to destination files. * * @return a mapper to be configured. * * @exception BuildException if more than one mapper is defined. * * @since Ant 1.8.0 * */ * public Mapper createMapper() throws BuildException { * if (mapperElement != null) { * throw new BuildException("Cannot define more than one mapper", * getLocation()); * } * mapperElement = new Mapper(getProject()); ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/Native2Ascii.java: 141-153 Length: 4 Defines the FileNameMapper to use (nested mapper element). @return the mapper to use for file name translations. @throws BuildException if more than one mapper is defined. * /** * * Defines the FileNameMapper to use (nested mapper element). * * * * @return the mapper to use for file name translations. * * * * @throws BuildException if more than one mapper is defined. * */ * public Mapper createMapper() throws BuildException { * if (mapper != null) { * throw new BuildException("Cannot define more than one mapper", * getLocation()); * } * mapper = new Mapper(getProject()); ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Copy.java: 349-359 Length: 4 Define the mapper to map source to destination files. @return a mapper to be configured. @exception BuildException if more than one mapper is defined. * /** * * Define the mapper to map source to destination files. * * @return a mapper to be configured. * * @exception BuildException if more than one mapper is defined. * */ * public Mapper createMapper() throws BuildException { * if (mapperElement != null) { * throw new BuildException("Cannot define more than one mapper", * getLocation()); * } * mapperElement = new Mapper(getProject()); ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/UpToDate.java: 125-135 Length: 4 Defines the FileNameMapper to use (nested mapper element). @return a mapper to be configured @throws BuildException if more than one mapper is defined * /** * * Defines the FileNameMapper to use (nested mapper element). * * @return a mapper to be configured * * @throws BuildException if more than one mapper is defined * */ * public Mapper createMapper() throws BuildException { * if (mapperElement != null) { * throw new BuildException("Cannot define more than one mapper", * getLocation()); * } * mapperElement = new Mapper(getProject()); ---- /home/edmund/database-mana/databaseGitHub/cssembed/src/net/nczonline/web/cssembed/CSSEmbedTask.java: 110-114 Length: 4 local sim: [[mapper]] global sim: [[]] mapper takes source files & converts them to dest files < public Mapper createMapper() throws BuildException { < if (mapperElement != null) { < throw new BuildException("Cannot define more than one mapper", getLocation()); < } < mapperElement = new Mapper(getProject()); ---- Comments (size 1): 1. mapper takes source files & converts them to dest files ---- Match Group 348 of size 1+1 ---- Ranked Result: 1. (size 12) returns the mapper to use based on nested elements, defaults to IdentityMapper ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Expand.java: 210-219 Length: 6 get a mapper for a file @return a filenamemapper for a file * /** * * get a mapper for a file * * @return a filenamemapper for a file * */ * protected FileNameMapper getMapper() { * FileNameMapper mapper = null; * if (mapperElement != null) { * mapper = mapperElement.getImplementation(); * } else { * mapper = new IdentityMapper(); ---- /home/edmund/database-mana/databaseGitHub/cssembed/src/net/nczonline/web/cssembed/CSSEmbedTask.java: 124-129 Length: 6 local sim: [[identity, mapper]] global sim: [[]] [IdentityMapper] returns the mapper to use based on nested elements, defaults to IdentityMapper < private FileNameMapper getMapper() { < FileNameMapper mapper = null; < if (mapperElement != null) { < mapper = mapperElement.getImplementation(); < } else { < mapper = new IdentityMapper(); ---- Comments (size 1): 1. returns the mapper to use based on nested elements, defaults to IdentityMapper ---- Match Group 349 of size 1+1 ---- Ranked Result: ---- Match Group 350 of size 1+2 ---- Ranked Result: ---- Match Group 351 of size 1+1 ---- Ranked Result: ---- Match Group 352 of size 1+2 ---- Ranked Result: ---- Match Group 353 of size 1+1 ---- Ranked Result: ---- Match Group 354 of size 1+2 ---- Ranked Result: 1. (size 3) Complete the entry ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java: 264-267 Length: 3 * output.write(buffer, 0, count); * } * in.close(); * output.closeEntry(); ---- /home/edmund/database-mana/databaseGitHub/docx4j/src/main/java/org/docx4j/openpackaging/io3/stores/ZipPartStore.java: 259-267 Length: 3 local sim: [[entry]] global sim: [[]] Complete the entry < zos.write(bytes, 0, read); < } < is.close(); < } < } < < < // Complete the entry < zos.closeEntry(); ---- Comments (size 1): 1. Complete the entry ---- Match Group 355 of size 1+1 ---- Ranked Result: ---- Match Group 356 of size 1+2 ---- Ranked Result: ---- Match Group 357 of size 1+4 ---- Ranked Result: ---- Match Group 358 of size 1+2 ---- Ranked Result: ---- Match Group 359 of size 2+3 ---- Ranked Result: ---- Match Group 360 of size 2+4 ---- Ranked Result: ---- Match Group 361 of size 1+2 ---- Ranked Result: ---- Match Group 362 of size 1+2 ---- Ranked Result: ---- Match Group 363 of size 3+1 ---- Ranked Result: ---- Match Group 364 of size 1+2 ---- Ranked Result: ---- Match Group 365 of size 1+3 ---- Ranked Result: ---- Match Group 366 of size 1+3 ---- Ranked Result: ---- Match Group 367 of size 1+5 ---- Ranked Result: ---- Match Group 368 of size 1+3 ---- Ranked Result: ---- Match Group 369 of size 1+1 ---- Ranked Result: ---- Match Group 370 of size 1+1 ---- Ranked Result: ---- Match Group 371 of size 1+1 ---- Ranked Result: ---- Match Group 372 of size 1+1 ---- Ranked Result: ---- Match Group 373 of size 1+1 ---- Ranked Result: ---- Match Group 374 of size 1+1 ---- Ranked Result: ---- Match Group 375 of size 1+1 ---- Ranked Result: ---- Match Group 376 of size 1+1 ---- Ranked Result: ---- Match Group 377 of size 1+1 ---- Ranked Result: ---- Match Group 378 of size 1+1 ---- Ranked Result: ---- Match Group 379 of size 1+1 ---- Ranked Result: ---- Match Group 380 of size 1+1 ---- Ranked Result: ---- Match Group 381 of size 1+1 ---- Ranked Result: ---- Match Group 382 of size 1+1 ---- Ranked Result: ---- Match Group 383 of size 1+1 ---- Ranked Result: ---- Match Group 384 of size 1+1 ---- Ranked Result: ---- Match Group 385 of size 1+1 ---- Ranked Result: ---- Match Group 386 of size 1+1 ---- Ranked Result: ---- Match Group 387 of size 1+1 ---- Ranked Result: ---- Match Group 388 of size 1+1 ---- Ranked Result: ---- Match Group 389 of size 1+1 ---- Ranked Result: ---- Match Group 390 of size 1+1 ---- Ranked Result: ---- Match Group 391 of size 2+1 ---- Ranked Result: ---- Match Group 392 of size 1+1 ---- Ranked Result: ---- Match Group 393 of size 1+1 ---- Ranked Result: ---- Match Group 394 of size 1+1 ---- Ranked Result: ---- Match Group 395 of size 2+1 ---- Ranked Result: ---- Match Group 396 of size 1+1 ---- Ranked Result: ---- Match Group 397 of size 1+1 ---- Ranked Result: ---- Match Group 398 of size 1+1 ---- Ranked Result: ---- Match Group 399 of size 1+1 ---- Ranked Result: ---- Match Group 400 of size 2+3 ---- Ranked Result: ---- Match Group 401 of size 2+34 ---- Ranked Result: ---- Match Group 402 of size 1+1 ---- Ranked Result: ---- Match Group 403 of size 1+1 ---- Ranked Result: ---- Match Group 404 of size 1+1 ---- Ranked Result: ---- Match Group 405 of size 1+1 ---- Ranked Result: ---- Match Group 406 of size 1+1 ---- Ranked Result: ---- Match Group 407 of size 1+1 ---- Ranked Result: ---- Match Group 408 of size 1+2 ---- Ranked Result: ---- Match Group 409 of size 1+1 ---- Ranked Result: ---- Match Group 410 of size 1+1 ---- Ranked Result: ---- Match Group 411 of size 1+1 ---- Ranked Result: ---- Match Group 412 of size 1+1 ---- Ranked Result: ---- Match Group 413 of size 1+1 ---- Ranked Result: ---- Match Group 414 of size 1+1 ---- Ranked Result: ---- Match Group 415 of size 2+2 ---- Ranked Result: ---- Match Group 416 of size 3+3 ---- Ranked Result: ---- Match Group 417 of size 1+5 ---- Ranked Result: ---- Match Group 418 of size 1+5 ---- Ranked Result: ---- Match Group 419 of size 2+2 ---- Ranked Result: ---- Match Group 420 of size 1+1 ---- Ranked Result: ---- Match Group 421 of size 1+3 ---- Ranked Result: ---- Match Group 422 of size 1+1 ---- Ranked Result: ---- Match Group 423 of size 1+7 ---- Ranked Result: ---- Match Group 424 of size 1+6 ---- Ranked Result: ---- Match Group 425 of size 1+1 ---- Ranked Result: ---- Match Group 426 of size 1+1 ---- Ranked Result: ---- Match Group 427 of size 3+3 ---- Ranked Result: ---- Match Group 428 of size 1+4 ---- Ranked Result: ---- Match Group 429 of size 1+4 ---- Ranked Result: ---- Match Group 430 of size 1+1 ---- Ranked Result: ---- Match Group 431 of size 1+1 ---- Ranked Result: ---- Match Group 432 of size 1+1 ---- Ranked Result: ---- Match Group 433 of size 1+1 ---- Ranked Result: ---- Match Group 434 of size 1+1 ---- Ranked Result: ---- Match Group 435 of size 1+1 ---- Ranked Result: ---- Match Group 436 of size 1+1 ---- Ranked Result: ---- Match Group 437 of size 1+1 ---- Ranked Result: ---- Match Group 438 of size 1+1 ---- Ranked Result: ---- Match Group 439 of size 1+1 ---- Ranked Result: ---- Match Group 440 of size 1+1 ---- Ranked Result: ---- Match Group 441 of size 1+1 ---- Ranked Result: ---- Match Group 442 of size 1+1 ---- Ranked Result: ---- Match Group 443 of size 1+1 ---- Ranked Result: ---- Match Group 444 of size 1+1 ---- Ranked Result: ---- Match Group 445 of size 1+1 ---- Ranked Result: ---- Match Group 446 of size 1+1 ---- Ranked Result: ---- Match Group 447 of size 1+1 ---- Ranked Result: ---- Match Group 448 of size 1+1 ---- Ranked Result: ---- Match Group 449 of size 1+1 ---- Ranked Result: ---- Match Group 450 of size 1+1 ---- Ranked Result: ---- Match Group 451 of size 1+1 ---- Ranked Result: ---- Match Group 452 of size 1+1 ---- Ranked Result: ---- Match Group 453 of size 1+1 ---- Ranked Result: ---- Match Group 454 of size 1+1 ---- Ranked Result: ---- Match Group 455 of size 1+1 ---- Ranked Result: ---- Match Group 456 of size 1+1 ---- Ranked Result: ---- Match Group 457 of size 1+1 ---- Ranked Result: ---- Match Group 458 of size 1+1 ---- Ranked Result: ---- Match Group 459 of size 1+1 ---- Ranked Result: ---- Match Group 460 of size 1+1 ---- Ranked Result: ---- Match Group 461 of size 1+1 ---- Ranked Result: ---- Match Group 462 of size 1+1 ---- Ranked Result: ---- Match Group 463 of size 1+1 ---- Ranked Result: ---- Match Group 464 of size 1+1 ---- Ranked Result: ---- Match Group 465 of size 1+1 ---- Ranked Result: ---- Match Group 466 of size 1+1 ---- Ranked Result: ---- Match Group 467 of size 1+1 ---- Ranked Result: ---- Match Group 468 of size 1+1 ---- Ranked Result: ---- Match Group 469 of size 1+1 ---- Ranked Result: ---- Match Group 470 of size 1+1 ---- Ranked Result: ---- Match Group 471 of size 1+1 ---- Ranked Result: ---- Match Group 472 of size 1+1 ---- Ranked Result: ---- Match Group 473 of size 1+1 ---- Ranked Result: ---- Match Group 474 of size 1+1 ---- Ranked Result: ---- Match Group 475 of size 1+1 ---- Ranked Result: ---- Match Group 476 of size 1+1 ---- Ranked Result: ---- Match Group 477 of size 1+1 ---- Ranked Result: ---- Match Group 478 of size 1+1 ---- Ranked Result: ---- Match Group 479 of size 1+1 ---- Ranked Result: ---- Match Group 480 of size 1+1 ---- Ranked Result: ---- Match Group 481 of size 1+1 ---- Ranked Result: ---- Match Group 482 of size 1+1 ---- Ranked Result: ---- Match Group 483 of size 2+1 ---- Ranked Result: ---- Match Group 484 of size 1+1 ---- Ranked Result: ---- Match Group 485 of size 1+1 ---- Ranked Result: ---- Match Group 486 of size 1+1 ---- Ranked Result: ---- Match Group 487 of size 1+1 ---- Ranked Result: ---- Match Group 488 of size 1+1 ---- Ranked Result: ---- Match Group 489 of size 1+1 ---- Ranked Result: ---- Match Group 490 of size 1+1 ---- Ranked Result: ---- Match Group 491 of size 1+1 ---- Ranked Result: ---- Match Group 492 of size 1+1 ---- Ranked Result: ---- Match Group 493 of size 1+1 ---- Ranked Result: ---- Match Group 494 of size 1+1 ---- Ranked Result: ---- Match Group 495 of size 1+1 ---- Ranked Result: ---- Match Group 496 of size 1+1 ---- Ranked Result: ---- Match Group 497 of size 1+1 ---- Ranked Result: ---- Match Group 498 of size 1+1 ---- Ranked Result: ---- Match Group 499 of size 1+1 ---- Ranked Result: ---- Match Group 500 of size 1+1 ---- Ranked Result: ---- Match Group 501 of size 1+1 ---- Ranked Result: ---- Match Group 502 of size 1+1 ---- Ranked Result: ---- Match Group 503 of size 1+1 ---- Ranked Result: ---- Match Group 504 of size 1+1 ---- Ranked Result: ---- Match Group 505 of size 1+2 ---- Ranked Result: ---- Match Group 506 of size 1+2 ---- Ranked Result: ---- Match Group 507 of size 1+2 ---- Ranked Result: ---- Match Group 508 of size 1+1 ---- Ranked Result: ---- Match Group 509 of size 1+1 ---- Ranked Result: ---- Match Group 510 of size 1+1 ---- Ranked Result: ---- Match Group 511 of size 1+2 ---- Ranked Result: ---- Match Group 512 of size 1+2 ---- Ranked Result: ---- Match Group 513 of size 1+2 ---- Ranked Result: ---- Match Group 514 of size 1+2 ---- Ranked Result: ---- Match Group 515 of size 1+2 ---- Ranked Result: ---- Match Group 516 of size 1+1 ---- Ranked Result: ---- Match Group 517 of size 1+1 ---- Ranked Result: ---- Match Group 518 of size 1+1 ---- Ranked Result: ---- Match Group 519 of size 1+1 ---- Ranked Result: ---- Match Group 520 of size 1+1 ---- Ranked Result: ---- Match Group 521 of size 1+2 ---- Ranked Result: ---- Match Group 522 of size 1+1 ---- Ranked Result: ---- Match Group 523 of size 1+2 ---- Ranked Result: ---- Match Group 524 of size 1+2 ---- Ranked Result: ---- Match Group 525 of size 1+2 ---- Ranked Result: ---- Match Group 526 of size 1+2 ---- Ranked Result: ---- Match Group 527 of size 1+1 ---- Ranked Result: ---- Match Group 528 of size 1+1 ---- Ranked Result: ---- Match Group 529 of size 1+2 ---- Ranked Result: ---- Match Group 530 of size 1+1 ---- Ranked Result: ---- Match Group 531 of size 1+1 ---- Ranked Result: ---- Match Group 532 of size 1+1 ---- Ranked Result: ---- Match Group 533 of size 1+1 ---- Ranked Result: ---- Match Group 534 of size 1+1 ---- Ranked Result: ---- Match Group 535 of size 1+1 ---- Ranked Result: ---- Match Group 536 of size 1+1 ---- Ranked Result: ---- Match Group 537 of size 1+1 ---- Ranked Result: ---- Match Group 538 of size 1+1 ---- Ranked Result: ---- Match Group 539 of size 1+1 ---- Ranked Result: ---- Match Group 540 of size 1+1 ---- Ranked Result: ---- Match Group 541 of size 1+1 ---- Ranked Result: ---- Match Group 542 of size 1+1 ---- Ranked Result: ---- Match Group 543 of size 1+1 ---- Ranked Result: ---- Match Group 544 of size 1+1 ---- Ranked Result: ---- Match Group 545 of size 1+1 ---- Ranked Result: ---- Match Group 546 of size 1+1 ---- Ranked Result: ---- Match Group 547 of size 1+1 ---- Ranked Result: ---- Match Group 548 of size 1+1 ---- Ranked Result: ---- Match Group 549 of size 1+2 ---- Ranked Result: ---- Match Group 550 of size 1+2 ---- Ranked Result: ---- Match Group 551 of size 1+2 ---- Ranked Result: ---- Match Group 552 of size 1+1 ---- Ranked Result: ---- Match Group 553 of size 1+2 ---- Ranked Result: ---- Match Group 554 of size 1+1 ---- Ranked Result: ---- Match Group 555 of size 1+2 ---- Ranked Result: ---- Match Group 556 of size 1+1 ---- Ranked Result: ---- Match Group 557 of size 1+1 ---- Ranked Result: ---- Match Group 558 of size 1+2 ---- Ranked Result: ---- Match Group 559 of size 1+3 ---- Ranked Result: ---- Match Group 560 of size 1+1 ---- Ranked Result: ---- Match Group 561 of size 1+5 ---- Ranked Result: ---- Match Group 562 of size 1+1 ---- Ranked Result: ---- Match Group 563 of size 1+1 ---- Ranked Result: ---- Match Group 564 of size 1+1 ---- Ranked Result: ---- Match Group 565 of size 2+1 ---- Ranked Result: ---- Match Group 566 of size 2+1 ---- Ranked Result: ---- Match Group 567 of size 1+2 ---- Ranked Result: ---- Match Group 568 of size 1+1 ---- Ranked Result: ---- Match Group 569 of size 1+1 ---- Ranked Result: 1. (size 10) Make sure we at least attempt to close both streams. ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/util/TeeOutputStream.java: 47-50 Length: 3 * try { * left.close(); * } finally { * right.close(); ---- /home/edmund/database-mana/databaseGitHub/hindex/src/main/java/org/apache/hadoop/hbase/io/DoubleOutputStream.java: 66-70 Length: 3 local sim: [[close]] global sim: [[]] Make sure we at least attempt to close both streams. < try { < out1.close(); < } finally { < // Make sure we at least attempt to close both streams. < out2.close(); ---- Comments (size 1): 1. Make sure we at least attempt to close both streams. ---- Match Group 570 of size 1+1 ---- Ranked Result: ---- Match Group 571 of size 1+1 ---- Ranked Result: ---- Match Group 572 of size 1+1 ---- Ranked Result: ---- Match Group 573 of size 1+1 ---- Ranked Result: ---- Match Group 574 of size 1+2 ---- Ranked Result: ---- Match Group 575 of size 1+3 ---- Ranked Result: ---- Match Group 576 of size 1+1 ---- Ranked Result: ---- Match Group 577 of size 1+3 ---- Ranked Result: ---- Match Group 578 of size 1+4 ---- Ranked Result: ---- Match Group 579 of size 1+1 ---- Ranked Result: ---- Match Group 580 of size 1+3 ---- Ranked Result: ---- Match Group 581 of size 1+1 ---- Ranked Result: ---- Match Group 582 of size 1+1 ---- Ranked Result: ---- Match Group 583 of size 1+3 ---- Ranked Result: ---- Match Group 584 of size 2+1 ---- Ranked Result: ---- Match Group 585 of size 1+1 ---- Ranked Result: ---- Match Group 586 of size 1+2 ---- Ranked Result: ---- Match Group 587 of size 1+1 ---- Ranked Result: ---- Match Group 588 of size 1+1 ---- Ranked Result: ---- Match Group 589 of size 1+1 ---- Ranked Result: ---- Match Group 590 of size 1+1 ---- Ranked Result: ---- Match Group 591 of size 1+1 ---- Ranked Result: ---- Match Group 592 of size 1+1 ---- Ranked Result: ---- Match Group 593 of size 1+1 ---- Ranked Result: ---- Match Group 594 of size 1+1 ---- Ranked Result: ---- Match Group 595 of size 1+3 ---- Ranked Result: ---- Match Group 596 of size 1+1 ---- Ranked Result: 1. (size 3) As System Properties ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/Project.java: 946-949 Length: 5 * final Properties systemP = System.getProperties(); * final Enumeration e = systemP.propertyNames(); * while (e.hasMoreElements()) { * final String propertyName = (String) e.nextElement(); ---- /home/edmund/database-mana/databaseGitHub/jetty.project/jetty-start/src/test/java/org/eclipse/jetty/start/PropertyDump.java: 32-36 Length: 5 local sim: [[system, properties]] global sim: [[]] As System Properties < Properties props = System.getProperties(); < Enumeration names = props.propertyNames(); < while (names.hasMoreElements()) < { < String name = (String)names.nextElement(); ---- Comments (size 1): 1. As System Properties ---- Match Group 597 of size 1+1 ---- Ranked Result: ---- Match Group 598 of size 1+1 ---- Ranked Result: ---- Match Group 599 of size 1+1 ---- Ranked Result: ---- Match Group 600 of size 1+1 ---- Ranked Result: ---- Match Group 601 of size 1+1 ---- Ranked Result: ---- Match Group 602 of size 1+2 ---- Ranked Result: ---- Match Group 603 of size 1+4 ---- Ranked Result: ---- Match Group 604 of size 1+1 ---- Ranked Result: ---- Match Group 605 of size 1+1 ---- Ranked Result: ---- Match Group 606 of size 1+1 ---- Ranked Result: ---- Match Group 607 of size 1+2 ---- Ranked Result: ---- Match Group 608 of size 1+1 ---- Ranked Result: ---- Match Group 609 of size 1+10 ---- Ranked Result: ---- Match Group 610 of size 1+2 ---- Ranked Result: ---- Match Group 611 of size 1+1 ---- Ranked Result: ---- Match Group 612 of size 2+1 ---- Ranked Result: ---- Match Group 613 of size 1+1 ---- Ranked Result: ---- Match Group 614 of size 1+1 ---- Ranked Result: ---- Match Group 615 of size 1+1 ---- Ranked Result: ---- Match Group 616 of size 1+1 ---- Ranked Result: ---- Match Group 617 of size 1+2 ---- Ranked Result: ---- Match Group 618 of size 1+1 ---- Ranked Result: ---- Match Group 619 of size 1+1 ---- Ranked Result: ---- Match Group 620 of size 1+1 ---- Ranked Result: ---- Match Group 621 of size 1+1 ---- Ranked Result: ---- Match Group 622 of size 1+1 ---- Ranked Result: ---- Match Group 623 of size 1+1 ---- Ranked Result: ---- Match Group 624 of size 1+1 ---- Ranked Result: ---- Match Group 625 of size 1+2 ---- Ranked Result: ---- Match Group 626 of size 1+1 ---- Ranked Result: ---- Match Group 627 of size 1+1 ---- Ranked Result: ---- Match Group 628 of size 1+1 ---- Ranked Result: ---- Match Group 629 of size 2+1 ---- Ranked Result: ---- Match Group 630 of size 1+1 ---- Ranked Result: ---- Match Group 631 of size 2+2 ---- Ranked Result: ---- Match Group 632 of size 1+2 ---- Ranked Result: ---- Match Group 633 of size 1+1 ---- Ranked Result: ---- Match Group 634 of size 1+1 ---- Ranked Result: ---- Match Group 635 of size 1+1 ---- Ranked Result: ---- Match Group 636 of size 1+1 ---- Ranked Result: ---- Match Group 637 of size 1+1 ---- Ranked Result: ---- Match Group 638 of size 1+1 ---- Ranked Result: 1. (size 34) this pass is only there to construct the merged manifest this means we claim an update was needed and only include the manifests, skipping any uptodate checks here defering them for the second run ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/taskdefs/Jar.java: 824-830 Length: 3 this pass is only there to construct the merged manifest this means we claim an update was needed and only include the manifests, skipping any uptodate checks here deferring them for the second run * if (skipWriting) { * // this pass is only there to construct the merged * // manifest this means we claim an update was needed and * // only include the manifests, skipping any uptodate * // checks here deferring them for the second run * Resource[][] manifests = grabManifests(rcs); * int count = 0; ---- /home/edmund/database-mana/databaseGitHub/intellij-community/jps/antLayout/src/org/apache/tools/ant/taskdefs/PatchedJar.java: 38-44 Length: 3 local sim: [[manifests]] global sim: [[update]] this pass is only there to construct the merged manifest this means we claim an update was needed and only include the manifests, skipping any uptodate checks here defering them for the second run < if (skipWriting) { < // this pass is only there to construct the merged < // manifest this means we claim an update was needed and < // only include the manifests, skipping any uptodate < // checks here defering them for the second run < Resource[][] manifests = grabManifests(rcs); < int count = 0; ---- Comments (size 1): 1. this pass is only there to construct the merged manifest this means we claim an update was needed and only include the manifests, skipping any uptodate checks here defering them for the second run ---- Match Group 639 of size 1+1 ---- Ranked Result: ---- Match Group 640 of size 1+1 ---- Ranked Result: ---- Match Group 641 of size 1+1 ---- Ranked Result: ---- Match Group 642 of size 1+1 ---- Ranked Result: ---- Match Group 643 of size 1+1 ---- Ranked Result: ---- Match Group 644 of size 1+1 ---- Ranked Result: ---- Match Group 645 of size 1+1 ---- Ranked Result: ---- Match Group 646 of size 1+1 ---- Ranked Result: ---- Match Group 647 of size 1+1 ---- Ranked Result: ---- Match Group 648 of size 1+1 ---- Ranked Result: ---- Match Group 649 of size 1+1 ---- Ranked Result: ---- Match Group 650 of size 1+1 ---- Ranked Result: ---- Match Group 651 of size 1+1 ---- Ranked Result: ---- Match Group 652 of size 1+1 ---- Ranked Result: ---- Match Group 653 of size 1+1 ---- Ranked Result: ---- Match Group 654 of size 1+1 ---- Ranked Result: ---- Match Group 655 of size 1+1 ---- Ranked Result: ---- Match Group 656 of size 1+1 ---- Ranked Result: ---- Match Group 657 of size 1+1 ---- Ranked Result: ---- Match Group 658 of size 1+1 ---- Ranked Result: ---- Match Group 659 of size 1+1 ---- Ranked Result: ---- Match Group 660 of size 1+1 ---- Ranked Result: ---- Match Group 661 of size 1+1 ---- Ranked Result: ---- Match Group 662 of size 1+1 ---- Ranked Result: ---- Match Group 663 of size 1+1 ---- Ranked Result: ---- Match Group 664 of size 1+1 ---- Ranked Result: ---- Match Group 665 of size 1+1 ---- Ranked Result: ---- Match Group 666 of size 1+1 ---- Ranked Result: ---- Match Group 667 of size 1+1 ---- Ranked Result: ---- Match Group 668 of size 1+1 ---- Ranked Result: ---- Match Group 669 of size 1+2 ---- Ranked Result: ---- Match Group 670 of size 1+1 ---- Ranked Result: ---- Match Group 671 of size 1+1 ---- Ranked Result: ---- Match Group 672 of size 1+1 ---- Ranked Result: ---- Match Group 673 of size 1+2 ---- Ranked Result: ---- Match Group 674 of size 1+3 ---- Ranked Result: 1. (size 13) If still not found, then call findClass in order to find the class. ---- /home/edmund/evaluate_projects/ant/src/main/org/apache/tools/ant/util/SplitClassLoader.java: 52-54 Length: 3 * theClass = findClass(classname); * if (resolve) { * resolveClass(theClass); ---- /home/edmund/database-mana/databaseGitHub/intellij-community/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/aClassLoader_hl.java: 298-302 Length: 3 local sim: [[find, class]] global sim: [[not, found]] [findClass] If still not found, then call findClass in order to find the class. < c = findClass(name); < } < } < if (resolve) { < resolveClass(c); ---- /home/edmund/database-mana/databaseGitHub/intellij-community/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/aClassLoader.java: 298-302 Length: 3 local sim: [[find, class]] global sim: [[not, found]] [findClass] If still not found, then call findClass in order to find the class. < c = findClass(name); < } < } < if (resolve) { < resolveClass(c); ---- Comments (size 1): 1. If still not found, then call findClass in order to find the class. ---- Match Group 675 of size 1+1 ---- Ranked Result: ---- Match Group 676 of size 4+1 ---- Ranked Result: ---- Match Group 677 of size 1+1 ---- Ranked Result: ---- Match Group 678 of size 1+1 ---- Ranked Result: ---- Match Group 679 of size 3+1 ---- Ranked Result: ---- Match Group 680 of size 1+1 ---- Ranked Result: ---- Match Group 681 of size 2+1 ---- Ranked Result: ---- Match Group 682 of size 1+1 ---- Ranked Result: ---- Match Group 683 of size 1+1 ---- Ranked Result: ---- Match Group 684 of size 1+1 ---- Ranked Result: ---- Match Group 685 of size 1+1 ---- Ranked Result: ---- Match Group 686 of size 1+2 ---- Ranked Result: ---- Match Group 687 of size 1+4 ---- Ranked Result: ---- Match Group 688 of size 2+2 ---- Ranked Result: ---- Match Group 689 of size 1+1 ---- Ranked Result: ---- Match Group 690 of size 1+2 ---- Ranked Result: ---- Match Group 691 of size 1+1 ---- Ranked Result: ---- Match Group 692 of size 1+1 ---- Ranked Result: ---- Match Group 693 of size 1+1 ---- Ranked Result: ---- Match Group 694 of size 1+1 ---- Ranked Result: ---- Match Group 695 of size 1+1 ---- Ranked Result: ---- Match Group 696 of size 1+1 ---- Ranked Result: ---- Match Group 697 of size 1+1 ---- Ranked Result: ---- Match Group 698 of size 1+1 ---- Ranked Result: ---- Match Group 699 of size 1+1 ---- Ranked Result: ---- Match Group 700 of size 1+1 ---- Ranked Result: ---- Match Group 701 of size 1+1 ---- Ranked Result: ---- Match Group 702 of size 1+1 ---- Ranked Result: ---- Match Group 703 of size 1+1 ---- Ranked Result: ---- Match Group 704 of size 1+2 ---- Ranked Result: ---- Match Group 705 of size 1+1 ---- Ranked Result: ---- Match Group 706 of size 1+1 ---- Ranked Result: ---- Number of internal clones: 1.0 median, 1.8214285714285714 average, 51 total. Number of external clones: 10.0 median, 73.92857142857143 average, 2070 total. InternalMap: {1=19, 2=3, 3=2, 4=1, 5=2, 6=1} ExternalMap: {1=6, 2=3, 3=2, 4=1, 102=1, 6=1, 10=2, 171=1, 11=1, 1068=1, 12=1, 13=1, 206=1, 213=1, 21=2, 28=1, 29=1, 127=1} 28 comment groups has a comment Elapsed for 25 minutes Finish @ 09:35:57 AM graceful exit...