Match Group 0 of size 1+111 ---- Ranked Result: 1. (size 3) close previous connection ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/cyberfox/util/config/JConfig.java: 432-434 Length: 3 * try { * is.close(); * } catch (IOException ignored) { ---- /home/edmund/database-mana/databaseGitHub/hadoop-20/src/hdfs/org/apache/hadoop/hdfs/qjournal/client/URLLogInputStream.java: 102-104 Length: 3 local sim: [[close]] global sim: [[]] close previous connection < try { < fStream.close(); < } catch (IOException e) { ---- Comments (size 1): 1. close previous connection ---- Match Group 1 of size 1+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/jbidwatcher-master/src/com/jbidwatcher/auction/server/AuctionServerManager.java: 229-229 Length: 3 ignore * try { Thread.sleep(50); } catch(InterruptedException ie) { /* ignore */ } ---- /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+6 ---- Ranked Result: ---- Match Group 3 of size 1+1 ---- Ranked Result: ---- Match Group 4 of size 1+3 ---- Ranked Result: ---- Match Group 5 of size 1+102 ---- Ranked Result: 1. (size 4) windows... close before deleting ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/cyberfox/util/config/JConfig.java: 431-434 Length: 4 * if (is != null) { * try { * is.close(); * } catch (IOException ignored) { ---- /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 6 of size 1+3 ---- Ranked Result: ---- Match Group 7 of size 1+2 ---- Ranked Result: ---- Match Group 8 of size 1+80 ---- Ranked Result: ---- Match Group 9 of size 1+4 ---- Ranked Result: ---- Match Group 10 of size 1+14 ---- Ranked Result: ---- Match Group 11 of size 1+29 ---- Ranked Result: ---- Match Group 12 of size 1+13 ---- Ranked Result: ---- Match Group 13 of size 1+14 ---- Ranked Result: ---- Match Group 14 of size 1+2 ---- Ranked Result: ---- Match Group 15 of size 1+6 ---- Ranked Result: 1. (size 5) Decode and gunzip if necessary ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/cyberfox/util/config/Base64.java: 527-540 Length: 4 * /** * * Attempts to decode Base64 data and deserialize a Java * * Object within. Returns null if there was an error. * * * * @param encodedObject The Base64 data to decode * * @return The decoded and deserialized object * * @since 1.4 * */ * public static Object decodeToObject( String encodedObject ) * { * byte[] objBytes = decode( encodedObject ); * * java.io.ByteArrayInputStream bais = null; * java.io.ObjectInputStream ois = null; ---- /home/edmund/database-mana/databaseGitHub/CloudStack-archive/test/src/com/cloud/sample/Base64.java: 997-1011 Length: 4 local sim: [[decode]] global sim: [[]] Decode and gunzip if necessary < /** < * Attempts to decode Base64 data and deserialize a Java < * Object within. Returns null if there was an error. < * < * @param encodedObject The Base64 data to decode < * @return The decoded and deserialized object < * @since 1.5 < */ < public static Object decodeToObject( String encodedObject ) < { < // Decode and gunzip if necessary < byte[] objBytes = decode( encodedObject ); < < java.io.ByteArrayInputStream bais = null; < java.io.ObjectInputStream ois = null; ---- /home/edmund/database-mana/databaseGitHub/CloudStack-archive/utils/src/com/cloud/utils/encoding/Base64.java: 997-1011 Length: 4 local sim: [[decode]] global sim: [[]] Decode and gunzip if necessary < /** < * Attempts to decode Base64 data and deserialize a Java < * Object within. Returns null if there was an error. < * < * @param encodedObject The Base64 data to decode < * @return The decoded and deserialized object < * @since 1.5 < */ < public static Object decodeToObject( String encodedObject ) < { < // Decode and gunzip if necessary < byte[] objBytes = decode( encodedObject ); < < java.io.ByteArrayInputStream bais = null; < java.io.ObjectInputStream ois = null; ---- /home/edmund/database-mana/databaseGitHub/xabber-android/src/org/jivesoftware/smack/util/Base64.java: 1022-1036 Length: 4 local sim: [[decode]] global sim: [[]] Decode and gunzip if necessary < /** < * Attempts to decode Base64 data and deserialize a Java < * Object within. Returns null if there was an error. < * < * @param encodedObject The Base64 data to decode < * @return The decoded and deserialized object < * @since 1.5 < */ < public static Object decodeToObject( String encodedObject ) < { < // Decode and gunzip if necessary < byte[] objBytes = decode( encodedObject ); < < java.io.ByteArrayInputStream bais = null; < java.io.ObjectInputStream ois = null; ---- /home/edmund/database-mana/databaseGitHub/JGroups/src/org/jgroups/protocols/S3_PING.java: 2612-2624 Length: 4 local sim: [[decode]] global sim: [[]] Decode and gunzip if necessary < /** < * Attempts to decode Base64 data and deserialize a Java < * Object within. Returns null if there was an error. < * @param encodedObject The Base64 data to decode < * @return The decoded and deserialized object < * @since 1.5 < */ < public static Object decodeToObject(String encodedObject) { < // Decode and gunzip if necessary < byte[] objBytes=decode(encodedObject); < < java.io.ByteArrayInputStream bais=null; < java.io.ObjectInputStream ois=null; ---- /home/edmund/database-mana/databaseGitHub/infinispan/commons/src/main/java/org/infinispan/commons/util/Base64.java: 669-682 Length: 4 local sim: [[decode]] global sim: [[]] Decode and gunzip if necessary < /** < * Attempts to decode Base64 data and deserialize a Java < * Object within. Returns null if there was an error. < * < * @param encodedObject The Base64 data to decode < * @return The decoded and deserialized object < * @since 1.5 < */ < public static Object decodeToObject(String encodedObject) { < // Decode and gunzip if necessary < byte[] objBytes = decode(encodedObject); < < java.io.ByteArrayInputStream bais = null; < java.io.ObjectInputStream ois = null; ---- /home/edmund/database-mana/databaseGitHub/Catacomb-Snatch/src/com/mojang/mojam/tiled/Base64.java: 759-772 Length: 4 local sim: [[decode]] global sim: [[]] Decode and gunzip if necessary < /** < * Attempts to decode Base64 data and deserialize a Java < * Object within. Returns null if there was an error. < * < * @param encodedObject The Base64 data to decode < * @return The decoded and deserialized object < * @since 1.5 < */ < public static Object decodeToObject( String encodedObject ) { < // Decode and gunzip if necessary < byte[] objBytes = decode( encodedObject ); < < java.io.ByteArrayInputStream bais = null; < java.io.ObjectInputStream ois = null; ---- Comments (size 1): 1. Decode and gunzip if necessary ---- Match Group 16 of size 1+3 ---- Ranked Result: ---- Match Group 17 of size 1+2 ---- Ranked Result: ---- Match Group 18 of size 1+5 ---- Ranked Result: ---- Match Group 19 of size 1+7 ---- Ranked Result: ---- Match Group 20 of size 1+28 ---- Ranked Result: 1. (size 4) make a blank file ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/jbidwatcher/auction/Thumbnail.java: 53-58 Length: 3 Create a mark file that notes that the thumbnail was attempted to be created, and failed. It'll default to using the standard image file. * try { * // Create a mark file that notes that the thumbnail was * // attempted to be created, and failed. It'll default to * // using the standard image file. * conversionAttempted.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 21 of size 1+4 ---- Ranked Result: ---- Match Group 22 of size 1+12 ---- Ranked Result: ---- Match Group 23 of size 1+1 ---- Ranked Result: ---- Match Group 24 of size 1+6 ---- Ranked Result: ---- Match Group 25 of size 1+15 ---- Ranked Result: ---- Match Group 26 of size 1+10 ---- Ranked Result: ---- Match Group 27 of size 1+14 ---- Ranked Result: ---- Match Group 28 of size 2+43 ---- Ranked Result: ---- Match Group 29 of size 1+11 ---- Ranked Result: 1. (size 3) Interrupted while waiting. ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/jbidwatcher/util/webserver/SimpleProxy.java: 93-99 Length: 3 We've already dealt with clearing acceptedSock, so we're basically done. * wait(); * } * } * } catch(InterruptedException e) { * // We've already dealt with clearing acceptedSock, so we're * // basically done. * done = true; ---- /home/edmund/database-mana/databaseGitHub/netty/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java: 286-289 Length: 3 local sim: [[interrupted]] global sim: [[]] Interrupted while waiting. < wait(); < } catch (InterruptedException e) { < // Interrupted while waiting. < interrupted = true; ---- Comments (size 1): 1. Interrupted while waiting. ---- Match Group 30 of size 2+19 ---- Ranked Result: ---- Match Group 31 of size 1+11 ---- Ranked Result: 1. (size 19) if there is not a dot then the ip string representation is not compliant to the decimal-dotted notation. ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/jbidwatcher/ui/table/AuctionTable.java: 212-214 Length: 3 * int dotIndex = colWidth.indexOf('.'); * if (dotIndex != -1) { * String colIndex = colWidth.substring(0, dotIndex); ---- /home/edmund/database-mana/databaseGitHub/druid/src/main/java/com/alibaba/druid/support/http/util/IPAddress.java: 230-238 Length: 3 local sim: [[string]] global sim: [[]] if there is not a dot then the ip string representation is not compliant to the decimal-dotted notation. < int index = tmp.indexOf('.'); < < // if there is not a dot then the ip string representation is < // not compliant to the decimal-dotted notation. < if (index != -1) { < < // get the number before the dot and convert it into < // an integer. < String numberStr = tmp.substring(0, index); ---- Comments (size 1): 1. if there is not a dot then the ip string representation is not compliant to the decimal-dotted notation. ---- Match Group 32 of size 1+18 ---- Ranked Result: ---- Match Group 33 of size 1+9 ---- Ranked Result: ---- Match Group 34 of size 1+16 ---- Ranked Result: ---- Match Group 35 of size 1+17 ---- Ranked Result: ---- Match Group 36 of size 1+16 ---- Ranked Result: ---- Match Group 37 of size 1+2 ---- Ranked Result: ---- Match Group 38 of size 1+1 ---- Ranked Result: ---- Match Group 39 of size 1+19 ---- Ranked Result: ---- Match Group 40 of size 1+3 ---- Ranked Result: ---- Match Group 41 of size 1+4 ---- Ranked Result: ---- Match Group 42 of size 1+3 ---- Ranked Result: ---- Match Group 43 of size 1+1 ---- Ranked Result: ---- Match Group 44 of size 1+1 ---- Ranked Result: ---- Match Group 45 of size 1+2 ---- Ranked Result: ---- Match Group 46 of size 1+2 ---- Ranked Result: ---- Match Group 47 of size 1+4 ---- Ranked Result: ---- Match Group 48 of size 1+4 ---- Ranked Result: 1. (size 3) end class Base64 ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/cyberfox/util/config/Base64.java: 588-611 Length: 11 If that was the equals sign, break out of 'for' loop * sbiCrop = (byte)(source[i] & 0x7f); // Only the low seven bits * sbiDecode = DECODABET[ sbiCrop ]; * * if( sbiDecode >= WHITE_SPACE_ENC ) // White space, Equals sign or better * { * if( sbiDecode >= EQUALS_SIGN_ENC ) * { * b4[ b4Posn++ ] = sbiCrop; * if( b4Posn > 3 ) * { * outBuffPosn += decode4to3( b4, 0, outBuff, outBuffPosn ); * b4Posn = 0; * * // If that was the equals sign, break out of 'for' loop * if( sbiCrop == EQUALS_SIGN ) * break; * } // end if: quartet built * * } // end if: equals sign or better * * } // end if: white space, equals sign or better * else * { * System.err.println( "Bad Base64 input character at " + i + ": " + source[i] + "(decimal)" ); ---- /home/edmund/database-mana/databaseGitHub/Catacomb-Snatch/src/com/mojang/mojam/tiled/Base64.java: 648-669 Length: 11 local sim: [[base64]] global sim: [[]] end class Base64 < sbiCrop = ( byte ) ( source[ i ] & 0x7f ); // Only the low seven bits < sbiDecode = DECODABET[ sbiCrop ]; < < if ( sbiDecode >= WHITE_SPACE_ENC ) // White space, Equals sign or better < { < if ( sbiDecode >= EQUALS_SIGN_ENC ) { < b4[ b4Posn++ ] = sbiCrop; < if ( b4Posn > 3 ) { < outBuffPosn += decode4to3( b4, 0, outBuff, outBuffPosn ); < b4Posn = 0; < < // If that was the equals sign, break out of 'for' loop < if ( sbiCrop == EQUALS_SIGN ) < break; < } // end if: quartet built < < } // end if: equals sign or better < < } // end if: white space, equals sign or better < < else { < System.err.println( "Bad Base64 input character at " + i + ": " + source[ i ] + "(decimal)" ); ---- Comments (size 1): 1. end class Base64 ---- Match Group 49 of size 1+1 ---- Ranked Result: 1. (size 5) check if package already loaded ---- /home/edmund/evaluate_projects/jbidwatcher-master/onejar/com/simontuffs/onejar/JarClassLoader.java: 681-684 Length: 3 Check if package already loaded. * if (i != -1) { * String pkgname = name.substring(0, i); * // Check if package already loaded. * Package pkg = getPackage(pkgname); ---- /home/edmund/database-mana/databaseGitHub/elasticsearch-river-jdbc/src/main/java/org/xbib/elasticsearch/plugin/jdbc/classloader/uri/URIClassLoader.java: 279-282 Length: 3 local sim: [[package]] global sim: [[]] check if package already loaded < if (i != -1) { // check package < String pkgname = name.substring(0, i); < // check if package already loaded < Package pkg = getPackage(pkgname); ---- Comments (size 1): 1. check if package already loaded ---- Match Group 50 of size 1+2 ---- Ranked Result: ---- Match Group 51 of size 1+2 ---- Ranked Result: ---- Match Group 52 of size 1+1 ---- Ranked Result: ---- Match Group 53 of size 1+1 ---- Ranked Result: ---- Match Group 54 of size 1+1 ---- Ranked Result: ---- Match Group 55 of size 2+1 ---- Ranked Result: ---- Match Group 56 of size 1+1 ---- Ranked Result: ---- Match Group 57 of size 1+1 ---- Ranked Result: ---- Match Group 58 of size 1+1 ---- Ranked Result: ---- Match Group 59 of size 2+1 ---- Ranked Result: ---- Match Group 60 of size 1+1 ---- Ranked Result: ---- Match Group 61 of size 1+2 ---- Ranked Result: ---- Match Group 62 of size 1+4 ---- Ranked Result: ---- Match Group 63 of size 1+1 ---- Ranked Result: ---- Match Group 64 of size 1+2 ---- Ranked Result: ---- Match Group 65 of size 1+3 ---- Ranked Result: 1. (size 3) end class Base64 ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/cyberfox/util/config/Base64.java: 759-817 Length: 20 Must have broken out from above. Got data? End of relevant data? !encode && but throwing an extra "if" seems just as wasteful. intended to be unsigned. Else error When JDK1.4 is more accepted, use an assertion here. * do{ b = in.read(); } * while( b >= 0 && DECODABET[ b & 0x7f ] <= WHITE_SPACE_ENC ); * * if( b < 0 ) * break; // Reads a -1 if end of stream * * b4[i] = (byte)b; * } // end for: each needed input byte * * if( i == 4 ) * { * numSigBytes = decode4to3( b4, 0, buffer, 0 ); * position = 0; * } // end if: got four characters * else if( i == 0 ){ * return -1; * } // end else if: also padded correctly * else * { * // Must have broken out from above. * throw new java.io.IOException( "Improperly padded Base64 input." ); * } // end * * } // end else: decode * } // end else: get data * * // Got data? * if( position >= 0 ) * { * // End of relevant data? * if( /*!encode &&*/ position >= numSigBytes ) * return -1; * * if( encode && breakLines && lineLength >= MAX_LINE_LENGTH ) * { * lineLength = 0; * return '\n'; * } // end if * else * { * lineLength++; // This isn't important when decoding * // but throwing an extra "if" seems * // just as wasteful. * * int b = buffer[ position++ ]; * * if( position >= bufferLength ) * position = -1; * * return b & 0xFF; // This is how you "cast" a byte that's * // intended to be unsigned. * } // end else * } // end if: position >= 0 * * // Else error * else * { * // When JDK1.4 is more accepted, use an assertion here. * throw new java.io.IOException( "Error in Base64 code reading stream." ); ---- /home/edmund/database-mana/databaseGitHub/Catacomb-Snatch/src/com/mojang/mojam/tiled/Base64.java: 1096-1152 Length: 20 local sim: [[encode], [error], [base64]] global sim: [[], [], []] end class Base64 < do { < b = in.read(); < } < while ( b >= 0 && DECODABET[ b & 0x7f ] <= WHITE_SPACE_ENC ); < < if ( b < 0 ) < break; // Reads a -1 if end of stream < < b4[ i ] = ( byte ) b; < } // end for: each needed input byte < < if ( i == 4 ) { < numSigBytes = decode4to3( b4, 0, buffer, 0 ); < position = 0; < } // end if: got four characters < else if ( i == 0 ) { < return -1; < } // end else if: also padded correctly < else { < // Must have broken out from above. < throw new java.io.IOException( "Improperly padded Base64 input." ); < } // end < < } // end else: decode < } // end else: get data < < // Got data? < < if ( position >= 0 ) { < // End of relevant data? < if ( /*!encode &&*/ position >= numSigBytes ) < return -1; < < if ( encode && breakLines && lineLength >= MAX_LINE_LENGTH ) { < lineLength = 0; < return '\n'; < } // end if < else { < lineLength++; // This isn't important when decoding < // but throwing an extra "if" seems < // just as wasteful. < < int b = buffer[ position++ ]; < < if ( position >= bufferLength ) < position = -1; < < return b & 0xFF; // This is how you "cast" a byte that's < // intended to be unsigned. < } // end else < } // end if: position >= 0 < < // Else error < < else { < // When JDK1.4 is more accepted, use an assertion here. < throw new java.io.IOException( "Error in Base64 code reading stream." ); ---- Comments (size 1): 1. end class Base64 ---- Match Group 66 of size 1+2 ---- Ranked Result: ---- Match Group 67 of size 1+1 ---- Ranked Result: ---- Match Group 68 of size 1+1 ---- Ranked Result: ---- Match Group 69 of size 1+1 ---- Ranked Result: ---- Match Group 70 of size 1+2 ---- Ranked Result: 1. (size 5) Fall back to system properties. ---- /home/edmund/evaluate_projects/jbidwatcher-master/onejar/com/simontuffs/onejar/Boot.java: 220-224 Length: 3 Process developer properties: * if (mainClass == null) { * mainClass = System.getProperty(P_MAIN_CLASS); * } * * if (mainJar == null) { ---- /home/edmund/database-mana/databaseGitHub/spring-framework/spring-web/src/main/java/org/springframework/web/util/ServletContextPropertyUtils.java: 96-99 Length: 3 local sim: [[system]] global sim: [[]] Fall back to system properties. < if (propVal == null) { < // Fall back to system properties. < propVal = System.getProperty(placeholderName); < if (propVal == null) { ---- Comments (size 1): 1. Fall back to system properties. ---- Match Group 71 of size 1+3 ---- Ranked Result: ---- Match Group 72 of size 1+3 ---- Ranked Result: ---- Match Group 73 of size 1+2 ---- Ranked Result: ---- Match Group 74 of size 1+1 ---- Ranked Result: ---- Match Group 75 of size 1+1 ---- Ranked Result: ---- Match Group 76 of size 2+8 ---- Ranked Result: ---- Match Group 77 of size 1+2 ---- Ranked Result: 1. (size 5) Check if package already loaded. 2. (size 5) Check if package already loaded. ---- /home/edmund/evaluate_projects/jbidwatcher-master/onejar/com/simontuffs/onejar/JarClassLoader.java: 680-684 Length: 4 * int i = name.lastIndexOf('.'); * if (i != -1) { * String pkgname = name.substring(0, i); * // Check if package already loaded. * Package pkg = getPackage(pkgname); ---- /home/edmund/database-mana/databaseGitHub/intellij-community/platform/util/src/com/intellij/util/lang/UrlClassLoader.java: 175-179 Length: 4 local sim: [[package]] global sim: [[]] Check if package already loaded. < int i = name.lastIndexOf('.'); < if (i != -1) { < String pkgName = name.substring(0, i); < // Check if package already loaded. < Package pkg = getPackage(pkgName); ---- /home/edmund/database-mana/databaseGitHub/MPS/core/tool/builder/source_gen/jetbrains/mps/tool/common/util/UrlClassLoader.java: 78-82 Length: 4 local sim: [[package]] global sim: [[]] Check if package already loaded. < int i = name.lastIndexOf('.'); < if (i != -1) { < String pkgname = name.substring(0, i); < // Check if package already loaded. < Package pkg = getPackage(pkgname); ---- Comments (size 2): 1. Check if package already loaded. 2. Check if package already loaded. ---- 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+1 ---- 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+3 ---- Ranked Result: ---- Match Group 85 of size 1+2 ---- Ranked Result: ---- Match Group 86 of size 1+1 ---- Ranked Result: ---- Match Group 87 of size 1+1 ---- Ranked Result: ---- Match Group 88 of size 1+2 ---- Ranked Result: ---- Match Group 89 of size 1+2 ---- Ranked Result: 1. (size 5) Decode and gunzip if necessary ---- /home/edmund/evaluate_projects/jbidwatcher-master/src/com/cyberfox/util/config/Base64.java: 537-540 Length: 3 * byte[] objBytes = decode( encodedObject ); * * java.io.ByteArrayInputStream bais = null; * java.io.ObjectInputStream ois = null; ---- /home/edmund/database-mana/databaseGitHub/sshj/src/main/java/net/schmizz/sshj/common/Base64.java: 989-992 Length: 3 local sim: [[decode]] global sim: [[]] Decode and gunzip if necessary < byte[] objBytes = decode(encodedObject); < < java.io.ByteArrayInputStream bais = null; < java.io.ObjectInputStream ois = null; ---- /home/edmund/database-mana/databaseGitHub/databus/databus-core/databus-core-impl/src/main/java/com/linkedin/databus/core/util/Base64.java: 825-828 Length: 3 local sim: [[decode]] global sim: [[]] Decode and gunzip if necessary < byte[] objBytes = decode( encodedObject ); < < java.io.ByteArrayInputStream bais = null; < java.io.ObjectInputStream ois = null; ---- Comments (size 1): 1. Decode and gunzip if necessary ---- Match Group 90 of size 1+1 ---- Ranked Result: ---- Match Group 91 of size 1+1 ---- Ranked Result: ---- Match Group 92 of size 1+1 ---- Ranked Result: ---- Match Group 93 of size 1+1 ---- Ranked Result: ---- Match Group 94 of size 1+3 ---- Ranked Result: ---- Match Group 95 of size 1+2 ---- 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+1 ---- Ranked Result: ---- Match Group 99 of size 1+1 ---- Ranked Result: ---- Match Group 100 of size 1+1 ---- Ranked Result: ---- Number of internal clones: 1.0 median, 1.0 average, 13 total. Number of external clones: 6.0 median, 104.07692307692308 average, 1353 total. InternalMap: {1=13} ExternalMap: {1=1, 2=3, 3=1, 4=1, 102=1, 6=1, 11=2, 28=1, 1070=1, 111=1} 13 comment groups has a comment Elapsed for 5 minutes Finish @ 05:00:39 AM graceful exit...