Match Group 0 of size 1+42 ---- Ranked Result: ---- Match Group 1 of size 2+1070 ---- 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/freecol-git/src/net/sf/freecol/server/control/UserConnectionHandler.java: 193-195 Length: 3 * try { * Thread.sleep(1000); * } catch (InterruptedException e) {} ---- /home/edmund/evaluate_projects/freecol-git/src/net/sf/freecol/client/gui/Canvas.java: 240-242 Length: 3 * try { * 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 2 of size 1+158 ---- Ranked Result: 1. (size 12) Give the concurrent thread time so it will try to acquire locks ---- /home/edmund/evaluate_projects/freecol-git/src/net/sf/freecol/client/gui/animation/UnitMoveAnimation.java: 124-126 Length: 3 * try { * Thread.sleep(waitTime); * } catch (InterruptedException ex) { ---- /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 3 of size 1+29 ---- Ranked Result: 1. (size 4) make a blank file ---- /home/edmund/evaluate_projects/freecol-git/src/net/sf/freecol/common/logging/DefaultHandler.java: 68-70 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 4 of size 1+127 ---- Ranked Result: 1. (size 6) sleep so that everyting loads correctly ---- /home/edmund/evaluate_projects/freecol-git/src/net/sf/freecol/client/control/PreGameInputHandler.java: 283-285 Length: 3 * try { * Thread.sleep(200); * } catch (Exception ex) {} ---- /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 5 of size 1+196 ---- 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/freecol-git/src/net/sf/freecol/client/gui/animation/UnitImageAnimation.java: 83-85 Length: 3 * try { * Thread.sleep(time); * } catch (InterruptedException ex) { ---- /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 6 of size 1+3 ---- Ranked Result: ---- Match Group 7 of size 1+1 ---- Ranked Result: ---- Match Group 8 of size 14+176 ---- Ranked Result: ---- Match Group 9 of size 1+7 ---- Ranked Result: ---- Match Group 10 of size 1+2 ---- Ranked Result: ---- Match Group 11 of size 1+13 ---- Ranked Result: ---- Match Group 12 of size 1+8 ---- Ranked Result: 1. (size 13) Sleep a bit so that if there are problems we don't spin ---- /home/edmund/evaluate_projects/freecol-git/test/src/net/sf/freecol/client/gui/sound/SoundTest.java: 75-77 Length: 3 * Thread.sleep(50); * } catch (InterruptedException e) {} * } catch (Exception e) { ---- /home/edmund/database-mana/databaseGitHub/gocd/agent-launcher/src/com/thoughtworks/cruise/agent/launcher/AgentLauncherImpl.java: 91-97 Length: 3 local sim: [[sleep]] global sim: [[]] Sleep a bit so that if there are problems we don't spin < Thread.sleep(1000); < } catch (InterruptedException e) { < return returnValue; < } < return returnValue; < < } catch (Exception e) { ---- Comments (size 1): 1. Sleep a bit so that if there are problems we don't spin ---- Match Group 13 of size 6+26 ---- Ranked Result: ---- Match Group 14 of size 2+46 ---- Ranked Result: ---- Match Group 15 of size 1+8 ---- Ranked Result: ---- Match Group 16 of size 1+10 ---- Ranked Result: ---- Match Group 17 of size 1+14 ---- Ranked Result: ---- Match Group 18 of size 1+34 ---- Ranked Result: ---- Match Group 19 of size 1+20 ---- Ranked Result: ---- Match Group 20 of size 1+13 ---- Ranked Result: ---- Match Group 21 of size 1+2 ---- Ranked Result: ---- Match Group 22 of size 1+6 ---- Ranked Result: ---- Match Group 23 of size 1+11 ---- Ranked Result: ---- Match Group 24 of size 1+2 ---- Ranked Result: ---- Match Group 25 of size 1+5 ---- Ranked Result: ---- Match Group 26 of size 1+12 ---- Ranked Result: ---- Match Group 27 of size 1+13 ---- Ranked Result: ---- Match Group 28 of size 3+3 ---- Ranked Result: ---- Match Group 29 of size 1+13 ---- Ranked Result: ---- Match Group 30 of size 3+19 ---- Ranked Result: ---- Match Group 31 of size 1+7 ---- Ranked Result: ---- Match Group 32 of size 1+1 ---- 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+1 ---- Ranked Result: ---- Match Group 36 of size 1+7 ---- Ranked Result: ---- Match Group 37 of size 1+14 ---- Ranked Result: ---- Match Group 38 of size 1+9 ---- Ranked Result: 1. (size 4) Flush the current writer ---- /home/edmund/evaluate_projects/freecol-git/src/net/sf/freecol/common/logging/DefaultHandler.java: 133-135 Length: 3 * try { * writer.flush(); * } catch (IOException e) { ---- /home/edmund/database-mana/databaseGitHub/mustache.java/compiler/src/main/java/com/github/mustachejava/codes/IterableCode.java: 68-70 Length: 3 local sim: [[flush, writer]] global sim: [[]] Flush the current writer < try { < writer.flush(); < } catch (IOException e) { ---- /home/edmund/database-mana/databaseGitHub/mustache.java/compiler/src/main/java/com/github/mustachejava/codes/ValueCode.java: 84-86 Length: 3 local sim: [[flush, writer]] global sim: [[]] Flush the current writer < try { < writer.flush(); < } catch (IOException e) { ---- Comments (size 1): 1. Flush the current writer ---- Match Group 39 of size 1+1 ---- Ranked Result: ---- Match Group 40 of size 1+13 ---- Ranked Result: ---- Match Group 41 of size 1+4 ---- Ranked Result: ---- Match Group 42 of size 1+2 ---- Ranked Result: ---- Match Group 43 of size 1+1 ---- Ranked Result: ---- Match Group 44 of size 1+3 ---- Ranked Result: ---- Match Group 45 of size 1+6 ---- Ranked Result: ---- Match Group 46 of size 1+9 ---- Ranked Result: ---- Match Group 47 of size 1+3 ---- Ranked Result: ---- Match Group 48 of size 1+7 ---- Ranked Result: ---- Match Group 49 of size 2+3 ---- Ranked Result: ---- Match Group 50 of size 3+10 ---- Ranked Result: ---- Match Group 51 of size 1+6 ---- Ranked Result: ---- Match Group 52 of size 1+4 ---- Ranked Result: ---- Match Group 53 of size 1+2 ---- Ranked Result: ---- Match Group 54 of size 1+7 ---- Ranked Result: ---- Match Group 55 of size 3+5 ---- Ranked Result: ---- Match Group 56 of size 1+3 ---- Ranked Result: ---- Match Group 57 of size 1+1 ---- Ranked Result: ---- Match Group 58 of size 1+14 ---- Ranked Result: ---- Match Group 59 of size 1+1 ---- Ranked Result: ---- Match Group 60 of size 1+1 ---- Ranked Result: ---- Match Group 61 of size 1+1 ---- Ranked Result: ---- Match Group 62 of size 1+3 ---- Ranked Result: ---- Match Group 63 of size 1+1 ---- Ranked Result: ---- Match Group 64 of size 1+1 ---- Ranked Result: ---- Match Group 65 of size 3+3 ---- Ranked Result: ---- Match Group 66 of size 2+2 ---- Ranked Result: 1. (size 4) Fill all drawing area: ---- /home/edmund/evaluate_projects/freecol-git/src/net/sf/freecol/client/gui/ImageLibrary.java: 170-172 Length: 3 * g2.setColor(border); * g2.fillRect(0, 0, width, height); * g2.setColor(background); ---- /home/edmund/evaluate_projects/freecol-git/src/net/sf/freecol/client/gui/ImageLibrary.java: 207-209 Length: 3 * g2.setColor(border); * g2.fillRect(0, 0, width, height); * g2.setColor(background); ---- /home/edmund/database-mana/databaseGitHub/gephi/modules/Utils/src/main/java/org/gephi/utils/TimeIntervalGraphics.java: 177-179 Length: 3 local sim: [[fill]] global sim: [[]] Fill all drawing area: < g.setColor(fill); < g.fillRect(0, 0, width, height); < g.setColor(border); ---- Comments (size 1): 1. Fill all drawing area: ---- Match Group 67 of size 1+1 ---- Ranked Result: ---- Match Group 68 of size 1+2 ---- 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+3 ---- Ranked Result: ---- Match Group 72 of size 1+1 ---- Ranked Result: ---- Match Group 73 of size 1+1 ---- Ranked Result: ---- Match Group 74 of size 1+1 ---- Ranked Result: ---- Match Group 75 of size 1+6 ---- Ranked Result: ---- Match Group 76 of size 1+1 ---- Ranked Result: ---- Match Group 77 of size 1+2 ---- Ranked Result: ---- Match Group 78 of size 1+1 ---- Ranked Result: ---- Match Group 79 of size 1+1 ---- Ranked Result: ---- Match Group 80 of size 1+1 ---- Ranked Result: ---- Match Group 81 of size 1+3 ---- Ranked Result: ---- Match Group 82 of size 1+1 ---- Ranked Result: ---- Match Group 83 of size 1+1 ---- Ranked Result: ---- Match Group 84 of size 1+2 ---- Ranked Result: 1. (size 9) try to get a color by name using reflection 2. (size 12) if we can't decode lets try to get it by name 3. (size 21) try to get a color by name using reflection black is used for an instance and not for the color itselfs ---- /home/edmund/evaluate_projects/freecol-git/src/net/sf/freecol/common/resources/ColorResource.java: 96-99 Length: 3 * try { * Field field = Color.class.getField(colorName); * return (Color) field.get(null); * } catch (Exception e) { ---- /home/edmund/database-mana/databaseGitHub/mdrill/trunk/adhoc-internal/src/main/java/org/jfree/xml/ParserUtil.java: 245-252 Length: 3 local sim: [[get], [color, get]] global sim: [[], []] if we can't decode lets try to get it by name try to get a color by name using reflection black is used for an instance and not for the color itselfs < try { < // try to get a color by name using reflection < // black is used for an instance and not for the color itselfs < final Field f = Color.class.getField(color); < < return (Color) f.get(null); < } < catch (Exception ce) { ---- /home/edmund/database-mana/databaseGitHub/mdrill/trunk/adhoc-internal/src/main/java/org/jfree/util/PaintUtilities.java: 167-173 Length: 3 local sim: [[get], [color, get]] global sim: [[], []] if we can't decode lets try to get it by name try to get a color by name using reflection < try { < // try to get a color by name using reflection < final Field f = Color.class.getField(value); < < return (Color) f.get(null); < } < catch (Exception ce) { ---- Comments (size 3): 1. if we can't decode lets try to get it by name 2. try to get a color by name using reflection 3. try to get a color by name using reflection black is used for an instance and not for the color itselfs ---- Match Group 85 of size 1+1 ---- Ranked Result: ---- Match Group 86 of size 2+1 ---- Ranked Result: ---- Match Group 87 of size 2+16 ---- Ranked Result: ---- Match Group 88 of size 1+1 ---- Ranked Result: ---- Match Group 89 of size 3+2 ---- Ranked Result: ---- Match Group 90 of size 2+2 ---- Ranked Result: ---- Match Group 91 of size 1+2 ---- Ranked Result: ---- Match Group 92 of size 1+7 ---- Ranked Result: ---- Match Group 93 of size 1+1 ---- Ranked Result: ---- Match Group 94 of size 1+1 ---- Ranked Result: ---- Match Group 95 of size 1+6 ---- Ranked Result: ---- Match Group 96 of size 1+1 ---- Ranked Result: ---- Match Group 97 of size 1+1 ---- Ranked Result: ---- Match Group 98 of size 1+2 ---- Ranked Result: ---- Match Group 99 of size 1+1 ---- Ranked Result: ---- Match Group 100 of size 2+2 ---- Ranked Result: ---- Match Group 101 of size 1+1 ---- 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 1+1 ---- Ranked Result: ---- Match Group 106 of size 1+1 ---- Ranked Result: ---- Match Group 107 of size 1+1 ---- Ranked Result: ---- Number of internal clones: 1.0 median, 1.2222222222222223 average, 11 total. Number of external clones: 29.0 median, 177.88888888888889 average, 1601 total. InternalMap: {1=7, 2=2} ExternalMap: {2=2, 196=1, 8=1, 9=1, 29=1, 1070=1, 158=1, 127=1} 9 comment groups has a comment Elapsed for 24 minutes Finish @ 01:53:28 AM graceful exit...