Match Group 0 of size 5+213 ---- Ranked Result: 1. (size 3) close previous connection ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/instrument/InstrumentedClassLoader.java: 69-72 Length: 3 * try { * is.close(); * } * catch (IOException e) { ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/main/java/org/hibernate/bytecode/spi/ByteCodeHelper.java: 87-90 Length: 3 * try { * inputStream.close(); * } * catch (IOException ignore) { ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataBuildingProcess.java: 383-386 Length: 3 * try { * stream.close(); * } * catch ( IOException ignore ) { ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DataHelper.java: 194-197 Length: 3 * try { * inputStream.close(); * } * catch ( IOException e ) { ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/internal/PersistenceXmlParser.java: 444-447 Length: 3 * try { * schemaStream.close(); * } * catch ( IOException e ) { ---- /home/edmund/database-mana/databaseGitHub/hadoop-20/src/hdfs/org/apache/hadoop/hdfs/qjournal/client/URLLogInputStream.java: 102-104 Length: 3 local sim: [[close]] global sim: [[]] close previous connection < try { < fStream.close(); < } catch (IOException e) { ---- Comments (size 1): 1. close previous connection ---- Match Group 1 of size 2+42 ---- Ranked Result: ---- Match Group 2 of size 1+913 ---- Ranked Result: 1. (size 4) Sleep and try again 2. (size 7) don't waste cpu time, sleep more 3. (size 13) Sleep a bit so that if there are problems we don't spin ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/test/java/org/hibernate/test/dialect/functional/SQLServerDialectTest.java: 348-351 Length: 3 * try { * Thread.sleep( 3000 ); * } * 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/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 12): 1. don't waste cpu time, sleep more 2. Sleep a bit so that if there are problems we don't spin 3. Sleep and try again 4. sleep to let the log roller run (if it needs to) 5. Sleep a bit. 6. sleep for 10s 7. Sleep 100ms 8. Allow the threads some time to do their work before running the main thread 9. sleep to force later timestamp 10. sleep a bit since it takes time for driver to see change 11. waiting 100ms for executor thread shutting it's own 12. Allow the threads some time to do their work before starting the main thread ---- Match Group 3 of size 1+7 ---- Ranked Result: ---- Match Group 4 of size 1+71 ---- Ranked Result: ---- Match Group 5 of size 6+2 ---- Ranked Result: ---- Match Group 6 of size 1+3 ---- Ranked Result: ---- Match Group 7 of size 1+154 ---- Ranked Result: 1. (size 6) Make it sleep for a second ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/test/java/org/hibernate/test/dialect/functional/SQLServerDialectTest.java: 348-352 Length: 4 * try { * Thread.sleep( 3000 ); * } * catch ( InterruptedException e ) { * e.printStackTrace(); ---- /home/edmund/database-mana/databaseGitHub/voldemort/test/unit/voldemort/store/stats/ClientSocketStatsTest.java: 335-338 Length: 4 local sim: [[sleep]] global sim: [[]] Make it sleep for a second < try { < Thread.sleep(1000); < } catch(InterruptedException e) { < e.printStackTrace(); ---- Comments (size 1): 1. Make it sleep for a second ---- Match Group 8 of size 2+19 ---- Ranked Result: ---- Match Group 9 of size 1+37 ---- Ranked Result: ---- Match Group 10 of size 1+26 ---- Ranked Result: ---- Match Group 11 of size 2+19 ---- Ranked Result: ---- Match Group 12 of size 1+3 ---- Ranked Result: ---- Match Group 13 of size 4+10 ---- Ranked Result: ---- Match Group 14 of size 1+2 ---- Ranked Result: ---- Match Group 15 of size 2+15 ---- Ranked Result: ---- Match Group 16 of size 2+12 ---- Ranked Result: ---- Match Group 17 of size 1+29 ---- Ranked Result: 1. (size 8) This character wasn't escaped - just append it ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/main/java/org/hibernate/dialect/function/TemplateRenderer.java: 84-87 Length: 3 * else { * chunk.append( c ); * } * i++; ---- /home/edmund/database-mana/databaseGitHub/spring-security/ldap/src/main/java/org/springframework/security/ldap/authentication/LdapEncoder.java: 227-230 Length: 3 local sim: [[append]] global sim: [[]] This character wasn't escaped - just append it < } else { < // This character wasn't escaped - just append it < decoded.append(currentChar); < i++; ---- /home/edmund/database-mana/databaseGitHub/spring-security/ldap/src/main/java/org/springframework/security/ldap/LdapEncoder.java: 227-230 Length: 3 local sim: [[append]] global sim: [[]] This character wasn't escaped - just append it < } else { < // This character wasn't escaped - just append it < decoded.append(currentChar); < i++; ---- Comments (size 1): 1. This character wasn't escaped - just append it ---- Match Group 18 of size 1+3 ---- Ranked Result: ---- Match Group 19 of size 3+7 ---- Ranked Result: ---- Match Group 20 of size 2+5 ---- Ranked Result: ---- Match Group 21 of size 2+9 ---- Ranked Result: ---- Match Group 22 of size 2+6 ---- Ranked Result: ---- Match Group 23 of size 2+1 ---- Ranked Result: ---- Match Group 24 of size 2+1 ---- Ranked Result: ---- Match Group 25 of size 1+3 ---- Ranked Result: ---- Match Group 26 of size 1+4 ---- Ranked Result: ---- Match Group 27 of size 1+1 ---- Ranked Result: ---- Match Group 28 of size 1+1 ---- Ranked Result: ---- Match Group 29 of size 1+4 ---- Ranked Result: ---- Match Group 30 of size 1+4 ---- Ranked Result: ---- Match Group 31 of size 1+1 ---- Ranked Result: ---- Match Group 32 of size 1+7 ---- Ranked Result: ---- Match Group 33 of size 1+1 ---- Ranked Result: ---- Match Group 34 of size 1+3 ---- Ranked Result: ---- Match Group 35 of size 1+1 ---- Ranked Result: ---- Match Group 36 of size 1+1 ---- 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+2 ---- Ranked Result: ---- Match Group 40 of size 1+46 ---- Ranked Result: ---- Match Group 41 of size 1+1 ---- Ranked Result: ---- Match Group 42 of size 2+1 ---- Ranked Result: ---- Match Group 43 of size 1+1 ---- Ranked Result: ---- Match Group 44 of size 2+8 ---- Ranked Result: ---- Match Group 45 of size 2+1 ---- Ranked Result: ---- Match Group 46 of size 1+3 ---- Ranked Result: ---- Match Group 47 of size 2+16 ---- Ranked Result: ---- Match Group 48 of size 12+2 ---- Ranked Result: ---- Match Group 49 of size 15+2 ---- Ranked Result: ---- Match Group 50 of size 2+7 ---- Ranked Result: ---- Match Group 51 of size 6+5 ---- Ranked Result: ---- Match Group 52 of size 1+3 ---- Ranked Result: ---- Match Group 53 of size 2+5 ---- Ranked Result: ---- Match Group 54 of size 1+4 ---- Ranked Result: ---- Match Group 55 of size 3+8 ---- Ranked Result: ---- Match Group 56 of size 1+5 ---- Ranked Result: ---- Match Group 57 of size 2+11 ---- Ranked Result: ---- Match Group 58 of size 1+18 ---- Ranked Result: ---- Match Group 59 of size 1+3 ---- Ranked Result: ---- Match Group 60 of size 1+2 ---- Ranked Result: ---- Match Group 61 of size 1+24 ---- Ranked Result: ---- Match Group 62 of size 1+9 ---- Ranked Result: ---- Match Group 63 of size 1+3 ---- Ranked Result: ---- Match Group 64 of size 1+3 ---- Ranked Result: ---- Match Group 65 of size 1+4 ---- Ranked Result: ---- Match Group 66 of size 1+18 ---- Ranked Result: ---- Match Group 67 of size 1+2 ---- Ranked Result: ---- Match Group 68 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/hibernate-orm-master/hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/MultiPropertyMapper.java: 181-184 Length: 3 Checking if the property name doesn't reference a collection in a component - then the name will containa a . Computing the name of the component * final int dotIndex = referencingPropertyName.indexOf( '.' ); * if ( dotIndex != -1 ) { * // Computing the name of the component * final String componentName = referencingPropertyName.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 69 of size 1+9 ---- Ranked Result: ---- Match Group 70 of size 1+1 ---- Ranked Result: ---- Match Group 71 of size 1+48 ---- Ranked Result: ---- Match Group 72 of size 1+4 ---- Ranked Result: ---- Match Group 73 of size 1+6 ---- Ranked Result: ---- Match Group 74 of size 1+6 ---- Ranked Result: ---- Match Group 75 of size 1+4 ---- Ranked Result: ---- Match Group 76 of size 1+3 ---- Ranked Result: ---- Match Group 77 of size 1+4 ---- Ranked Result: ---- Match Group 78 of size 1+5 ---- Ranked Result: ---- Match Group 79 of size 1+1 ---- Ranked Result: ---- Match Group 80 of size 1+4 ---- Ranked Result: ---- Match Group 81 of size 1+2 ---- Ranked Result: ---- Match Group 82 of size 3+1 ---- Ranked Result: ---- Match Group 83 of size 1+1 ---- Ranked Result: ---- Match Group 84 of size 1+2 ---- Ranked Result: ---- Match Group 85 of size 1+2 ---- Ranked Result: ---- Match Group 86 of size 1+20 ---- Ranked Result: ---- Match Group 87 of size 1+1 ---- Ranked Result: ---- Match Group 88 of size 1+1 ---- Ranked Result: ---- Match Group 89 of size 1+3 ---- Ranked Result: ---- Match Group 90 of size 1+3 ---- 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 4+4 ---- Ranked Result: ---- Match Group 94 of size 1+1 ---- Ranked Result: ---- Match Group 95 of size 2+2 ---- Ranked Result: ---- Match Group 96 of size 1+1 ---- Ranked Result: ---- Match Group 97 of size 1+3 ---- Ranked Result: ---- Match Group 98 of size 1+5 ---- Ranked Result: ---- Match Group 99 of size 2+6 ---- Ranked Result: ---- Match Group 100 of size 2+4 ---- Ranked Result: ---- Match Group 101 of size 1+3 ---- Ranked Result: ---- Match Group 102 of size 1+2 ---- Ranked Result: ---- Match Group 103 of size 1+2 ---- Ranked Result: ---- Match Group 104 of size 1+4 ---- Ranked Result: ---- Match Group 105 of size 1+4 ---- Ranked Result: ---- Match Group 106 of size 1+2 ---- Ranked Result: ---- Match Group 107 of size 1+4 ---- Ranked Result: ---- Match Group 108 of size 1+2 ---- Ranked Result: ---- Match Group 109 of size 1+3 ---- Ranked Result: ---- Match Group 110 of size 1+3 ---- Ranked Result: ---- Match Group 111 of size 1+2 ---- Ranked Result: ---- Match Group 112 of size 1+2 ---- Ranked Result: ---- Match Group 113 of size 1+2 ---- Ranked Result: ---- Match Group 114 of size 1+2 ---- Ranked Result: 1. (size 8) a reference remove operation compares the Reference instance ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ConcurrentReferenceHashMap.java: 857-891 Length: 20 a ref remove operation compares the Reference instance All entries following removed node can stay in list, but all preceding ones need to be cloned. * HashEntry first = tab[index]; * HashEntry e = first; * // a ref remove operation compares the Reference instance * while ( e != null && key != e.keyRef * && ( refRemove || hash != e.hash || !keyEq( key, e.key() ) ) ) { * e = e.next; * } * * V oldValue = null; * if ( e != null ) { * V v = e.value(); * if ( value == null || value.equals( v ) ) { * oldValue = v; * // All entries following removed node can stay * // in list, but all preceding ones need to be * // cloned. * ++modCount; * HashEntry newFirst = e.next; * for ( HashEntry p = first; p != e; p = p.next ) { * K pKey = p.key(); * if ( pKey == null ) { // Skip GC'd keys * c--; * continue; * } * * newFirst = newHashEntry( pKey, p.hash, newFirst, p.value() ); * } * tab[index] = newFirst; * count = c; // write-volatile * } * } * return oldValue; * } * finally { * unlock(); ---- /home/edmund/database-mana/databaseGitHub/netty-learning/netty-3.7/src/main/java/org/jboss/netty/util/internal/ConcurrentWeakKeyHashMap.java: 573-606 Length: 20 local sim: [[remove]] global sim: [[]] a reference remove operation compares the Reference instance < HashEntry first = tab[index]; < HashEntry e = first; < // a reference remove operation compares the Reference instance < while (e != null && key != e.keyRef && < (refRemove || hash != e.hash || !keyEq(key, e.key()))) { < e = e.next; < } < < V oldValue = null; < if (e != null) { < V v = e.value(); < if (value == null || value.equals(v)) { < oldValue = v; < // All entries following removed node can stay in list, < // but all preceding ones need to be cloned. < ++ modCount; < HashEntry newFirst = e.next; < for (HashEntry p = first; p != e; p = p.next) { < K pKey = p.key(); < if (pKey == null) { // Skip GC'd keys < c --; < continue; < } < < newFirst = newHashEntry( < pKey, p.hash, newFirst, p.value()); < } < tab[index] = newFirst; < count = c; // write-volatile < } < } < return oldValue; < } finally { < unlock(); ---- /home/edmund/database-mana/databaseGitHub/netty-learning/netty-3.7/src/main/java/org/jboss/netty/util/internal/ConcurrentIdentityWeakKeyHashMap.java: 573-606 Length: 20 local sim: [[remove]] global sim: [[]] a reference remove operation compares the Reference instance < HashEntry first = tab[index]; < HashEntry e = first; < // a reference remove operation compares the Reference instance < while (e != null && key != e.keyRef && < (refRemove || hash != e.hash || !keyEq(key, e.key()))) { < e = e.next; < } < < V oldValue = null; < if (e != null) { < V v = e.value(); < if (value == null || value.equals(v)) { < oldValue = v; < // All entries following removed node can stay in list, < // but all preceding ones need to be cloned. < ++ modCount; < HashEntry newFirst = e.next; < for (HashEntry p = first; p != e; p = p.next) { < K pKey = p.key(); < if (pKey == null) { // Skip GC'd keys < c --; < continue; < } < < newFirst = newHashEntry( < pKey, p.hash, newFirst, p.value()); < } < tab[index] = newFirst; < count = c; // write-volatile < } < } < return oldValue; < } finally { < unlock(); ---- Comments (size 1): 1. a reference remove operation compares the Reference instance ---- Match Group 115 of size 1+1 ---- Ranked Result: ---- Match Group 116 of size 1+1 ---- Ranked Result: ---- Match Group 117 of size 1+1 ---- Ranked Result: ---- Match Group 118 of size 1+2 ---- Ranked Result: ---- Match Group 119 of size 2+6 ---- Ranked Result: ---- Match Group 120 of size 1+5 ---- Ranked Result: ---- Match Group 121 of size 1+28 ---- Ranked Result: ---- Match Group 122 of size 2+1 ---- Ranked Result: ---- Match Group 123 of size 1+2 ---- Ranked Result: ---- Match Group 124 of size 1+1 ---- Ranked Result: ---- Match Group 125 of size 1+1 ---- Ranked Result: ---- Match Group 126 of size 2+1 ---- Ranked Result: ---- Match Group 127 of size 1+3 ---- Ranked Result: ---- Match Group 128 of size 1+4 ---- Ranked Result: ---- Match Group 129 of size 1+2 ---- 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+2 ---- Ranked Result: ---- Match Group 133 of size 1+2 ---- Ranked Result: ---- Match Group 134 of size 1+2 ---- Ranked Result: ---- Match Group 135 of size 1+2 ---- Ranked Result: ---- Match Group 136 of size 1+6 ---- Ranked Result: ---- Match Group 137 of size 1+7 ---- Ranked Result: ---- Match Group 138 of size 48+1 ---- Ranked Result: ---- Match Group 139 of size 1+6 ---- Ranked Result: ---- Match Group 140 of size 1+1 ---- Ranked Result: ---- Match Group 141 of size 1+1 ---- Ranked Result: ---- Match Group 142 of size 1+1 ---- Ranked Result: 1. (size 7) if element is not "property" then skip ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/internal/PersistenceXmlParser.java: 237-241 Length: 4 * if ( !"property".equals( propElement.getTagName() ) ) { * continue; * } * String propName = propElement.getAttribute( "name" ).trim(); * String propValue = propElement.getAttribute( "value" ).trim(); ---- /home/edmund/database-mana/databaseGitHub/Kundera/src/jpa-engine/core/src/main/java/com/impetus/kundera/loader/PersistenceXMLLoader.java: 365-371 Length: 4 local sim: [[property, element]] global sim: [[]] [property] if element is not "property" then skip < if (!"property".equals(propElement.getTagName())) < { < continue; < } < < String propName = propElement.getAttribute("name").trim(); < String propValue = propElement.getAttribute("value").trim(); ---- Comments (size 1): 1. if element is not "property" then skip ---- Match Group 143 of size 1+1 ---- Ranked Result: ---- Match Group 144 of size 1+1 ---- Ranked Result: ---- Match Group 145 of size 1+11 ---- Ranked Result: ---- Match Group 146 of size 2+8 ---- Ranked Result: ---- Match Group 147 of size 1+1 ---- Ranked Result: ---- Match Group 148 of size 1+4 ---- Ranked Result: ---- Match Group 149 of size 1+2 ---- Ranked Result: ---- Match Group 150 of size 1+1 ---- Ranked Result: ---- Match Group 151 of size 3+1 ---- Ranked Result: ---- Match Group 152 of size 2+2 ---- Ranked Result: ---- Match Group 153 of size 1+2 ---- Ranked Result: ---- Match Group 154 of size 1+5 ---- Ranked Result: ---- Match Group 155 of size 1+2 ---- Ranked Result: ---- Match Group 156 of size 2+1 ---- Ranked Result: ---- Match Group 157 of size 2+2 ---- Ranked Result: ---- Match Group 158 of size 1+1 ---- Ranked Result: ---- Match Group 159 of size 1+3 ---- Ranked Result: ---- Match Group 160 of size 1+1 ---- Ranked Result: ---- Match Group 161 of size 1+2 ---- Ranked Result: ---- Match Group 162 of size 1+1 ---- Ranked Result: ---- Match Group 163 of size 1+1 ---- Ranked Result: ---- Match Group 164 of size 1+3 ---- Ranked Result: ---- Match Group 165 of size 2+2 ---- Ranked Result: ---- Match Group 166 of size 1+1 ---- Ranked Result: ---- Match Group 167 of size 3+3 ---- Ranked Result: ---- Match Group 168 of size 1+3 ---- Ranked Result: ---- Match Group 169 of size 1+1 ---- Ranked Result: ---- Match Group 170 of size 1+2 ---- Ranked Result: ---- Match Group 171 of size 3+2 ---- Ranked Result: ---- Match Group 172 of size 1+1 ---- Ranked Result: ---- Match Group 173 of size 1+1 ---- Ranked Result: ---- Match Group 174 of size 2+5 ---- Ranked Result: ---- Match Group 175 of size 2+1 ---- Ranked Result: ---- Match Group 176 of size 1+1 ---- Ranked Result: ---- Match Group 177 of size 1+4 ---- Ranked Result: ---- Match Group 178 of size 1+1 ---- Ranked Result: ---- Match Group 179 of size 4+3 ---- Ranked Result: ---- Match Group 180 of size 1+1 ---- Ranked Result: ---- Match Group 181 of size 2+3 ---- Ranked Result: ---- Match Group 182 of size 1+1 ---- Ranked Result: ---- Match Group 183 of size 1+1 ---- Ranked Result: ---- Match Group 184 of size 1+3 ---- Ranked Result: ---- Match Group 185 of size 1+1 ---- Ranked Result: ---- Match Group 186 of size 1+1 ---- Ranked Result: ---- Match Group 187 of size 1+2 ---- Ranked Result: ---- Match Group 188 of size 5+1 ---- Ranked Result: ---- Match Group 189 of size 2+1 ---- Ranked Result: ---- Match Group 190 of size 15+1 ---- Ranked Result: ---- Match Group 191 of size 1+1 ---- Ranked Result: ---- Match Group 192 of size 1+2 ---- Ranked Result: ---- Match Group 193 of size 3+2 ---- Ranked Result: ---- Match Group 194 of size 1+1 ---- Ranked Result: ---- Match Group 195 of size 1+2 ---- Ranked Result: ---- Match Group 196 of size 3+1 ---- Ranked Result: ---- Match Group 197 of size 1+1 ---- Ranked Result: ---- Match Group 198 of size 1+1 ---- Ranked Result: ---- Match Group 199 of size 1+1 ---- Ranked Result: ---- Match Group 200 of size 1+1 ---- Ranked Result: ---- Match Group 201 of size 1+1 ---- Ranked Result: ---- Match Group 202 of size 1+3 ---- Ranked Result: ---- Match Group 203 of size 1+1 ---- Ranked Result: ---- Match Group 204 of size 1+1 ---- Ranked Result: ---- Match Group 205 of size 1+4 ---- Ranked Result: ---- Match Group 206 of size 2+3 ---- Ranked Result: ---- Match Group 207 of size 1+1 ---- Ranked Result: ---- Match Group 208 of size 1+1 ---- Ranked Result: ---- Match Group 209 of size 1+1 ---- Ranked Result: ---- Match Group 210 of size 1+2 ---- 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+2 ---- Ranked Result: ---- Match Group 214 of size 1+2 ---- Ranked Result: ---- Match Group 215 of size 1+2 ---- Ranked Result: 1. (size 28) Extract the name of the violated constraint from the given SQLException. @param e The exception that was the result of the constraint violation. @return The extracted constraint name. ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java: 309-322 Length: 6 Extract the name of the violated constraint from the given SQLException. @param sqle The exception that was the result of the constraint violation. @return The extracted constraint name. 23000: Check constraint violation: {0} 23001: Unique index or primary key violation: {0} * /** * * Extract the name of the violated constraint from the given SQLException. * * * * @param sqle The exception that was the result of the constraint violation. * * @return The extracted constraint name. * */ * public String extractConstraintName(SQLException sqle) { * String constraintName = null; * // 23000: Check constraint violation: {0} * // 23001: Unique index or primary key violation: {0} * if ( sqle.getSQLState().startsWith( "23" ) ) { * final String message = sqle.getMessage(); * final int idx = message.indexOf( "violation: " ); * if ( idx > 0 ) { ---- /home/edmund/database-mana/databaseGitHub/geoserver/src/extension/monitor/hibernate/src/main/java/org/geoserver/monitor/hib/H2Dialect.java: 247-261 Length: 6 local sim: [[exception, extract, violation, name, constraint, sql]] global sim: [[]] Extract the name of the violated constraint from the given SQLException. @param e The exception that was the result of the constraint violation. @return The extracted constraint name. < /** < * Extract the name of the violated constraint from the given SQLException. < * < * @param e < * The exception that was the result of the constraint violation. < * @return The extracted constraint name. < */ < public String extractConstraintName(SQLException e) { < String constraintName = null; < // 23000: Check constraint violation: {0} < // 23001: Unique index or primary key violation: {0} < if (e.getSQLState().startsWith("23")) { < String message = e.getMessage(); < int idx = message.indexOf("violation: "); < if (idx > 0) { ---- /home/edmund/database-mana/databaseGitHub/geoserver/src/community/dbconfig/src/main/java/org/geoserver/hibernate/H2Dialect.java: 247-261 Length: 6 local sim: [[exception, extract, violation, name, constraint, sql]] global sim: [[]] Extract the name of the violated constraint from the given SQLException. @param e The exception that was the result of the constraint violation. @return The extracted constraint name. < /** < * Extract the name of the violated constraint from the given SQLException. < * < * @param e < * The exception that was the result of the constraint violation. < * @return The extracted constraint name. < */ < public String extractConstraintName(SQLException e) { < String constraintName = null; < // 23000: Check constraint violation: {0} < // 23001: Unique index or primary key violation: {0} < if (e.getSQLState().startsWith("23")) { < String message = e.getMessage(); < int idx = message.indexOf("violation: "); < if (idx > 0) { ---- Comments (size 1): 1. Extract the name of the violated constraint from the given SQLException. @param e The exception that was the result of the constraint violation. @return The extracted constraint name. ---- Match Group 216 of size 1+2 ---- Ranked Result: ---- Match Group 217 of size 1+2 ---- Ranked Result: ---- Match Group 218 of size 1+2 ---- Ranked Result: ---- Match Group 219 of size 1+2 ---- Ranked Result: ---- Match Group 220 of size 1+2 ---- Ranked Result: ---- Match Group 221 of size 1+2 ---- Ranked Result: ---- Match Group 222 of size 4+4 ---- Ranked Result: ---- Match Group 223 of size 1+2 ---- 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 1+1 ---- 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 1+1 ---- 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 3+7 ---- Ranked Result: ---- Match Group 245 of size 1+3 ---- Ranked Result: ---- Match Group 246 of size 2+2 ---- Ranked Result: ---- Match Group 247 of size 3+1 ---- Ranked Result: ---- Match Group 248 of size 1+2 ---- 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 1+1 ---- 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+1 ---- Ranked Result: ---- Match Group 269 of size 1+1 ---- Ranked Result: ---- Match Group 270 of size 2+1 ---- Ranked Result: ---- Match Group 271 of size 1+1 ---- Ranked Result: ---- Match Group 272 of size 1+2 ---- Ranked Result: ---- Match Group 273 of size 1+1 ---- 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: 1. (size 3) ignore this type... ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/main/java/org/hibernate/dialect/TeradataDialect.java: 46-91 Length: 30 registerColumnType data types hibernate seems to ignore this type... bit_length feels a bit broken to me. We have to cast to char in order to pass when a numeric value is supplied. But of course the answers given will be wildly different for these two datatypes. 1234.5678 will be 9 bytes as a char string but will be 8 or 16 bytes as a true numeric. Jay Nance 2006-09-22 The preference here would be SQLFunctionTemplate( StandardBasicTypes.TIMESTAMP, "current_timestamp(?1)", false) but this appears not to work. Jay Nance 2006-09-22 * super(); * //registerColumnType data types * registerColumnType( Types.NUMERIC, "NUMERIC($p,$s)" ); * registerColumnType( Types.DOUBLE, "DOUBLE PRECISION" ); * registerColumnType( Types.BIGINT, "NUMERIC(18,0)" ); * registerColumnType( Types.BIT, "BYTEINT" ); * registerColumnType( Types.TINYINT, "BYTEINT" ); * registerColumnType( Types.VARBINARY, "VARBYTE($l)" ); * registerColumnType( Types.BINARY, "BYTEINT" ); * registerColumnType( Types.LONGVARCHAR, "LONG VARCHAR" ); * registerColumnType( Types.CHAR, "CHAR(1)" ); * registerColumnType( Types.DECIMAL, "DECIMAL" ); * registerColumnType( Types.INTEGER, "INTEGER" ); * registerColumnType( Types.SMALLINT, "SMALLINT" ); * registerColumnType( Types.FLOAT, "FLOAT" ); * registerColumnType( Types.VARCHAR, "VARCHAR($l)" ); * registerColumnType( Types.DATE, "DATE" ); * registerColumnType( Types.TIME, "TIME" ); * registerColumnType( Types.TIMESTAMP, "TIMESTAMP" ); * // hibernate seems to ignore this type... * registerColumnType( Types.BOOLEAN, "BYTEINT" ); * registerColumnType( Types.BLOB, "BLOB" ); * registerColumnType( Types.CLOB, "CLOB" ); * * registerFunction( "year", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "extract(year from ?1)" ) ); * registerFunction( "length", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "character_length(?1)" ) ); * registerFunction( "concat", new VarArgsSQLFunction( StandardBasicTypes.STRING, "(", "||", ")" ) ); * registerFunction( "substring", new SQLFunctionTemplate( StandardBasicTypes.STRING, "substring(?1 from ?2 for ?3)" ) ); * registerFunction( "locate", new SQLFunctionTemplate( StandardBasicTypes.STRING, "position(?1 in ?2)" ) ); * registerFunction( "mod", new SQLFunctionTemplate( StandardBasicTypes.STRING, "?1 mod ?2" ) ); * registerFunction( "str", new SQLFunctionTemplate( StandardBasicTypes.STRING, "cast(?1 as varchar(255))" ) ); * * // bit_length feels a bit broken to me. We have to cast to char in order to * // pass when a numeric value is supplied. But of course the answers given will * // be wildly different for these two datatypes. 1234.5678 will be 9 bytes as * // a char string but will be 8 or 16 bytes as a true numeric. * // Jay Nance 2006-09-22 * registerFunction( * "bit_length", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "octet_length(cast(?1 as char))*4" ) * ); * * // The preference here would be * // SQLFunctionTemplate( StandardBasicTypes.TIMESTAMP, "current_timestamp(?1)", false) * // but this appears not to work. * // Jay Nance 2006-09-22 * registerFunction( "current_timestamp", new SQLFunctionTemplate( StandardBasicTypes.TIMESTAMP, "current_timestamp" ) ); ---- /home/edmund/database-mana/databaseGitHub/querydsl/querydsl-jpa/src/test/java/com/mysema/query/jpa/support/TeradataDialect.java: 52-106 Length: 30 local sim: [[types, column, type, register], [type]] global sim: [[], []] ignore this type... < super(); < // registerColumnType data types < registerColumnType(Types.NUMERIC, "NUMERIC($p,$s)"); < registerColumnType(Types.DOUBLE, "DOUBLE PRECISION"); < registerColumnType(Types.BIGINT, "NUMERIC(18,0)"); < registerColumnType(Types.BIT, "BYTEINT"); < registerColumnType(Types.TINYINT, "BYTEINT"); < registerColumnType(Types.VARBINARY, "VARBYTE($l)"); < registerColumnType(Types.BINARY, "BYTEINT"); < registerColumnType(Types.LONGVARCHAR, "LONG VARCHAR"); < registerColumnType(Types.CHAR, "CHAR(1)"); < registerColumnType(Types.DECIMAL, "DECIMAL"); < registerColumnType(Types.INTEGER, "INTEGER"); < registerColumnType(Types.SMALLINT, "SMALLINT"); < registerColumnType(Types.FLOAT, "FLOAT"); < registerColumnType(Types.VARCHAR, "VARCHAR($l)"); < registerColumnType(Types.DATE, "DATE"); < registerColumnType(Types.TIME, "TIME"); < registerColumnType(Types.TIMESTAMP, "TIMESTAMP"); < registerColumnType(Types.BOOLEAN, "BYTEINT"); // hibernate seems to < // ignore this type... < registerColumnType(Types.BLOB, "BLOB"); < registerColumnType(Types.CLOB, "CLOB"); < < registerFunction("year", new SQLFunctionTemplate(StandardBasicTypes.INTEGER, < "extract(year from ?1)")); < registerFunction("length", new SQLFunctionTemplate(StandardBasicTypes.INTEGER, < "character_length(?1)")); < registerFunction("concat", < new VarArgsSQLFunction(StandardBasicTypes.STRING, "(", "||", ")")); < registerFunction("substring", new SQLFunctionTemplate(StandardBasicTypes.STRING, < "substring(?1 from ?2 for ?3)")); < registerFunction("locate", new SQLFunctionTemplate(StandardBasicTypes.STRING, < "position(?1 in ?2)")); < registerFunction("mod", new SQLFunctionTemplate(StandardBasicTypes.STRING, "?1 mod ?2")); < registerFunction("str", new SQLFunctionTemplate(StandardBasicTypes.STRING, < "cast(?1 as varchar(255))")); < < // bit_length feels a bit broken to me. We have to cast to char in order < // to < // pass when a numeric value is supplied. But of course the answers < // given will < // be wildly different for these two datatypes. 1234.5678 will be 9 < // bytes as < // a char string but will be 8 or 16 bytes as a true numeric. < // Jay Nance 2006-09-22 < registerFunction("bit_length", new SQLFunctionTemplate(StandardBasicTypes.INTEGER, < "octet_length(cast(?1 as char))*4")); < < // The preference here would be < // SQLFunctionTemplate( Hibernate.TIMESTAMP, "current_timestamp(?1)", < // false) < // but this appears not to work. < // Jay Nance 2006-09-22 < registerFunction("current_timestamp", new SQLFunctionTemplate(StandardBasicTypes.TIMESTAMP, ---- Comments (size 1): 1. ignore this type... ---- Match Group 277 of size 3+1 ---- Ranked Result: ---- Match Group 278 of size 1+1 ---- Ranked Result: ---- Match Group 279 of size 1+1 ---- Ranked Result: ---- Match Group 280 of size 1+3 ---- Ranked Result: 1. (size 6) copy the file content in bytes ---- /home/edmund/evaluate_projects/hibernate-orm-master/hibernate-core/src/test/java/org/hibernate/test/mappingexception/MappingExceptionTest.java: 244-250 Length: 5 Transfer bytes from in to out * OutputStream out = new FileOutputStream( dst ); * * // Transfer bytes from in to out * byte[] buf = new byte[1024]; * int len; * while ( ( len = in.read( buf ) ) > 0 ) { * out.write( buf, 0, len ); ---- /home/edmund/database-mana/databaseGitHub/syncany/syncany-util/src/test/java/org/syncany/tests/util/TestFileUtil.java: 57-64 Length: 5 local sim: [[file]] global sim: [[copy]] copy the file content in bytes < OutputStream out = new FileOutputStream(toFile); < < byte[] buffer = new byte[1024]; < < int length; < // copy the file content in bytes < while ((length = in.read(buffer)) > 0) { < out.write(buffer, 0, length); ---- Comments (size 1): 1. copy the file content in bytes ---- Match Group 281 of size 1+1 ---- Ranked Result: ---- Match Group 282 of size 2+1 ---- Ranked Result: ---- Match Group 283 of size 1+1 ---- Ranked Result: ---- Match Group 284 of size 1+1 ---- Ranked Result: ---- Match Group 285 of size 1+1 ---- Ranked Result: ---- Match Group 286 of size 2+1 ---- Ranked Result: ---- Match Group 287 of size 1+1 ---- Ranked Result: ---- Match Group 288 of size 4+1 ---- Ranked Result: ---- Match Group 289 of size 1+1 ---- Ranked Result: ---- Match Group 290 of size 1+3 ---- Ranked Result: ---- Match Group 291 of size 1+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 2+2 ---- Ranked Result: ---- Number of internal clones: 1.0 median, 1.4 average, 14 total. Number of external clones: 7.0 median, 132.9 average, 1329 total. InternalMap: {1=9, 5=1} ExternalMap: {913=1, 1=2, 2=2, 3=1, 213=1, 154=1, 11=1, 29=1} 10 comment groups has a comment Elapsed for 47 minutes Finish @ 07:03:16 AM graceful exit...