rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
EOModelGroup group = EOModelGroup.modelGroupForObjectStoreCoordinator((EOObjectStoreCoordinator)ec.rootObjectStore()); EOEntity entity = group.entityNamed(entityName);
EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, entityName);
public static EOFetchSpecification primaryKeyFetchSpecificationForEntity(EOEditingContext ec, String entityName, EOQualifier eoqualifier, NSArray sortOrderings, NSArray additionalKeys) { EOModelGroup group = EOModelGroup.modelGroupForObjectStoreCoordinator((EOObjectStoreCoordinator)ec.rootObjectStore()); EOEntity entity = group.entityNamed(entityName); EOFetchSpecification fs = new EOFetchSpecification(entityName, eoqualifier, sortOrderings); fs.setFetchesRawRows(true); NSMutableArray keys = new NSMutableArray(entity.primaryKeyAttributeNames()); if (additionalKeys != null) { keys.addObjectsFromArray(additionalKeys); } fs.setRawRowKeyPaths(keys); return fs; }
810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/e1e06fa0a1d916e087aac4f7cafa2f449ca12748/ERXEOControlUtilities.java/buggy/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEOControlUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 6431, 1593, 8615, 8841, 5005, 8615, 1290, 1943, 12, 41, 51, 28029, 1042, 6557, 16, 28524, 1377, 514, 14868, 16, 28524, 1377, 512, 51, 16185, 425, 83, 28157, 16, 28524, 1377, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 6431, 1593, 8615, 8841, 5005, 8615, 1290, 1943, 12, 41, 51, 28029, 1042, 6557, 16, 28524, 1377, 514, 14868, 16, 28524, 1377, 512, 51, 16185, 425, 83, 28157, 16, 28524, 1377, 11...
m_lastChunk = l >>> m_chunkBits; m_firstFree = l & m_chunkMask;
m_lastChunk = l >>> m_chunkBits; if(m_lastChunk==0 && m_innerFSB!=null) { m_innerFSB.setLength(l,this); } else { m_firstFree = l & m_chunkMask; }
public final void setLength(int l) { m_lastChunk = l >>> m_chunkBits; m_firstFree = l & m_chunkMask; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/94fe6f440f6847ceaa33f7a4a6c1d587c94985a0/FastStringBuffer.java/clean/src/org/apache/xml/utils/FastStringBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 15683, 12, 474, 328, 13, 225, 288, 565, 312, 67, 2722, 5579, 273, 328, 4080, 312, 67, 6551, 6495, 31, 565, 312, 67, 3645, 9194, 273, 328, 225, 473, 225, 312, 67, 6551,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 15683, 12, 474, 328, 13, 225, 288, 565, 312, 67, 2722, 5579, 273, 328, 4080, 312, 67, 6551, 6495, 31, 565, 312, 67, 3645, 9194, 273, 328, 225, 473, 225, 312, 67, 6551,...
public FunContains(XQueryContext context) {
public FunContains(XQueryContext context, FunctionSignature signature) {
public FunContains(XQueryContext context) { super(context, signature); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/5b79c2c13684b7af9cd45f502c48d1f0d4f0f1fe/FunContains.java/clean/src/org/exist/xquery/functions/FunContains.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 318, 10846, 12, 60, 1138, 1042, 819, 13, 288, 202, 202, 9565, 12, 2472, 16, 3372, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 318, 10846, 12, 60, 1138, 1042, 819, 13, 288, 202, 202, 9565, 12, 2472, 16, 3372, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
super(runtime, null, superClass, runtime.getClasses().getObjectClass(), "Class", RubyClass.class);
super(runtime, null, superClass, runtime.getObject(), "Class", RubyClass.class);
public ClassMetaClass(Ruby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getClasses().getObjectClass(), "Class", RubyClass.class); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/ca6b16e996ea9af83ce593594b9c69b9364a9924/ClassMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/ClassMetaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 2781, 797, 12, 54, 10340, 3099, 16, 19817, 797, 18846, 13, 288, 377, 202, 9565, 12, 9448, 16, 446, 16, 18846, 16, 3099, 18, 588, 921, 9334, 315, 797, 3113, 19817, 797, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 2781, 797, 12, 54, 10340, 3099, 16, 19817, 797, 18846, 13, 288, 377, 202, 9565, 12, 9448, 16, 446, 16, 18846, 16, 3099, 18, 588, 921, 9334, 315, 797, 3113, 19817, 797, 18, ...
logger.debug("Cached revision is: " + getCachedRevision());
private void load() throws CacheException { final ObjectInputStream inputStream; if (cacheFile.exists()) { try { inputStream = new ObjectInputStream(new FileInputStream(cacheFile)); setCachedRevision(inputStream.readLong()); setEntries((Set<RepositoryEntry>) inputStream.readObject()); logger.debug("Cached revision is: " + getCachedRevision()); logger.debug("Number of loaded cached entries: " + getSize()); } catch (Exception ex) { throw new CacheException("Unable to read entryCache file", ex); } } else { // No serialized cachefile exsisted - initialize an empty one. setEntries(Collections.checkedSet(new TreeSet<RepositoryEntry>( new RepositoryEntryComparator(RepositoryEntryComparator.SortType.FULL_NAME, false)), RepositoryEntry.class)); } }
50734 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50734/ed4cd20163ca361e2ef416348c11272f80a88b21/DiskCache.java/buggy/sventon/dev/java/src/de/berlios/sventon/repository/cache/entrycache/DiskCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1262, 1435, 1216, 4379, 503, 288, 565, 727, 22726, 10010, 31, 565, 309, 261, 2493, 812, 18, 1808, 10756, 288, 1377, 775, 288, 3639, 10010, 273, 394, 22726, 12, 2704, 11907, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1262, 1435, 1216, 4379, 503, 288, 565, 727, 22726, 10010, 31, 565, 309, 261, 2493, 812, 18, 1808, 10756, 288, 1377, 775, 288, 3639, 10010, 273, 394, 22726, 12, 2704, 11907, 12,...
if (sortOrder.equals(BY_CLASS)) return bugInstanceByClassComparator; else if (sortOrder.equals(BY_PACKAGE)) return bugInstanceByPackageComparator; else if (sortOrder.equals(BY_CATEGORY)) return bugInstanceByCategoryComparator; else throw new IllegalArgumentException("Bad sort order: " + sortOrder);
if (sortOrder.equals(BY_CLASS)) return bugInstanceByClassComparator; else if (sortOrder.equals(BY_PACKAGE)) return bugInstanceByPackageComparator; else if (sortOrder.equals(BY_CATEGORY)) return bugInstanceByCategoryComparator; else throw new IllegalArgumentException("Bad sort order: " + sortOrder);
private Comparator getBugInstanceComparator(String sortOrder) { if (sortOrder.equals(BY_CLASS)) return bugInstanceByClassComparator; else if (sortOrder.equals(BY_PACKAGE)) return bugInstanceByPackageComparator; else if (sortOrder.equals(BY_CATEGORY)) return bugInstanceByCategoryComparator; else throw new IllegalArgumentException("Bad sort order: " + sortOrder); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/e10335340ef9c432b558bca8aceb9973af1fb250/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 13359, 2882, 637, 1442, 5559, 12, 780, 19050, 13, 288, 3639, 309, 261, 3804, 2448, 18, 14963, 12, 6486, 67, 5237, 3719, 5411, 327, 7934, 1442, 30032, 5559, 31, 3639, 469, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 13359, 2882, 637, 1442, 5559, 12, 780, 19050, 13, 288, 3639, 309, 261, 3804, 2448, 18, 14963, 12, 6486, 67, 5237, 3719, 5411, 327, 7934, 1442, 30032, 5559, 31, 3639, 469, 309, 261, ...
assertTrue("u5a returns a wrong protocol", u5a.getProtocol() .equals("file"));
assertEquals("u5a returns a wrong protocol", "file", u5a.getProtocol() );
public void test_ConstructorLjava_lang_String() { // Test for method java.net.URL(java.lang.String) // Tests for multiple URL instantiation try { // basic parsing test u = new URL( "http://www.yahoo1.com:8080/dir1/dir2/test.cgi?point1.html#anchor1"); assertTrue("u returns a wrong protocol", u.getProtocol().equals( "http")); assertTrue("u returns a wrong host", u.getHost().equals( "www.yahoo1.com")); assertTrue("u returns a wrong port", u.getPort() == 8080); assertTrue("u returns a wrong file", u.getFile().equals( "/dir1/dir2/test.cgi?point1.html")); assertTrue("u returns a wrong anchor", u.getRef().equals("anchor1")); // test for no file u1 = new URL("http://www.yahoo2.com:9999"); assertTrue("u1 returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("u1 returns a wrong host", u1.getHost().equals( "www.yahoo2.com")); assertTrue("u1 returns a wrong port", u1.getPort() == 9999); assertTrue("u1 returns a wrong file", u1.getFile().equals("")); assertTrue("u1 returns a wrong anchor", u1.getRef() == null); // test for no port u2 = new URL( "http://www.yahoo3.com/dir1/dir2/test.cgi?point1.html#anchor1"); assertTrue("u2 returns a wrong protocol", u2.getProtocol().equals( "http")); assertTrue("u2 returns a wrong host", u2.getHost().equals( "www.yahoo3.com")); assertTrue("u2 returns a wrong port", u2.getPort() == -1); assertTrue("u2 returns a wrong file", u2.getFile().equals( "/dir1/dir2/test.cgi?point1.html")); assertTrue("u2 returns a wrong anchor", u2.getRef().equals( "anchor1")); // test for no port URL u2a = new URL( "file://www.yahoo3.com/dir1/dir2/test.cgi#anchor1"); assertTrue("u2a returns a wrong protocol", u2a.getProtocol() .equals("file")); assertTrue("u2a returns a wrong host", u2a.getHost().equals( "www.yahoo3.com")); assertTrue("u2a returns a wrong port", u2a.getPort() == -1); assertTrue("u2a returns a wrong file", u2a.getFile().equals( "/dir1/dir2/test.cgi")); assertTrue("u2a returns a wrong anchor", u2a.getRef().equals( "anchor1")); // test for no file, no port u3 = new URL("http://www.yahoo4.com/"); assertTrue("u3 returns a wrong protocol", u3.getProtocol().equals( "http")); assertTrue("u3 returns a wrong host", u3.getHost().equals( "www.yahoo4.com")); assertTrue("u3 returns a wrong port", u3.getPort() == -1); assertTrue("u3 returns a wrong file", u3.getFile().equals("/")); assertTrue("u3 returns a wrong anchor", u3.getRef() == null); // test for no file, no port URL u3a = new URL("file://www.yahoo4.com/"); assertTrue("u3a returns a wrong protocol", u3a.getProtocol() .equals("file")); assertTrue("u3a returns a wrong host", u3a.getHost().equals( "www.yahoo4.com")); assertTrue("u3a returns a wrong port", u3a.getPort() == -1); assertTrue("u3a returns a wrong file", u3a.getFile().equals("/")); assertTrue("u3a returns a wrong anchor", u3a.getRef() == null); // test for no file, no port URL u3b = new URL("file://www.yahoo4.com"); assertTrue("u3b returns a wrong protocol", u3b.getProtocol() .equals("file")); assertTrue("u3b returns a wrong host", u3b.getHost().equals( "www.yahoo4.com")); assertTrue("u3b returns a wrong port", u3b.getPort() == -1); assertTrue("u3b returns a wrong file", u3b.getFile().equals("")); assertTrue("u3b returns a wrong anchor", u3b.getRef() == null); // test for non-port ":" and wierd characters occurrences u4 = new URL( "http://www.yahoo5.com/di!@$%^&*()_+r1/di:::r2/test.cgi?point1.html#anchor1"); assertTrue("u4 returns a wrong protocol", u4.getProtocol().equals( "http")); assertTrue("u4 returns a wrong host", u4.getHost().equals( "www.yahoo5.com")); assertTrue("u4 returns a wrong port", u4.getPort() == -1); assertTrue("u4 returns a wrong file", u4.getFile().equals( "/di!@$%^&*()_+r1/di:::r2/test.cgi?point1.html")); assertTrue("u4 returns a wrong anchor", u4.getRef().equals( "anchor1")); u5 = new URL("file:/testing.tst"); assertTrue("u5 returns a wrong protocol", u5.getProtocol().equals( "file")); assertTrue("u5 returns a wrong host", u5.getHost().equals("")); assertTrue("u5 returns a wrong port", u5.getPort() == -1); assertTrue("u5 returns a wrong file", u5.getFile().equals( "/testing.tst")); assertTrue("u5 returns a wrong anchor", u5.getRef() == null); URL u5a = new URL("file:testing.tst"); assertTrue("u5a returns a wrong protocol", u5a.getProtocol() .equals("file")); assertTrue("u5a returns a wrong host", u5a.getHost().equals("")); assertTrue("u5a returns a wrong port", u5a.getPort() == -1); assertTrue("u5a returns a wrong file", u5a.getFile().equals( "testing.tst")); assertTrue("u5a returns a wrong anchor", u5a.getRef() == null); URL u6 = new URL("http://host:/file"); assertTrue("u6 return a wrong port", u6.getPort() == -1); URL u7 = new URL("file:../../file.txt"); assertTrue("u7 returns a wrong file: " + u7.getFile(), u7.getFile() .equals("../../file.txt")); URL u8 = new URL("http://[fec0::1:20d:60ff:fe24:7410]:35/file.txt"); assertTrue("u8 returns a wrong protocol " + u8.getProtocol(), u8 .getProtocol().equals("http")); assertTrue("u8 returns a wrong host " + u8.getHost(), u8.getHost() .equals("[fec0::1:20d:60ff:fe24:7410]")); assertTrue("u8 returns a wrong port " + u8.getPort(), u8.getPort() == 35); assertTrue("u8 returns a wrong file " + u8.getFile(), u8.getFile() .equals("/file.txt")); assertTrue("u8 returns a wrong anchor " + u8.getRef(), u8.getRef() == null); URL u9 = new URL( "file://[fec0::1:20d:60ff:fe24:7410]/file.txt#sogood"); assertTrue("u9 returns a wrong protocol " + u9.getProtocol(), u9 .getProtocol().equals("file")); assertTrue("u9 returns a wrong host " + u9.getHost(), u9.getHost() .equals("[fec0::1:20d:60ff:fe24:7410]")); assertTrue("u9 returns a wrong port " + u9.getPort(), u9.getPort() == -1); assertTrue("u9 returns a wrong file " + u9.getFile(), u9.getFile() .equals("/file.txt")); assertTrue("u9 returns a wrong anchor " + u9.getRef(), u9.getRef() .equals("sogood")); URL u10 = new URL("file://[fec0::1:20d:60ff:fe24:7410]"); assertTrue("u10 returns a wrong protocol " + u10.getProtocol(), u10 .getProtocol().equals("file")); assertTrue("u10 returns a wrong host " + u10.getHost(), u10 .getHost().equals("[fec0::1:20d:60ff:fe24:7410]")); assertTrue("u10 returns a wrong port " + u10.getPort(), u10 .getPort() == -1); } catch (Exception e) { fail("Exception during tests : " + e.getMessage()); } // test for error catching // Bad HTTP format - no "//" try { u = new URL( "http:www.yahoo5.com::22/dir1/di:::r2/test.cgi?point1.html#anchor1"); } catch (MalformedURLException e) { fail("1 Should not have thrown MalformedURLException : " + e.getMessage()); } catch (Exception e) { fail("1 Threw exception : " + e.getMessage()); } caught = false; try { u = new URL( "http://www.yahoo5.com::22/dir1/di:::r2/test.cgi?point1.html#anchor1"); } catch (MalformedURLException e) { caught = true; } catch (Exception e) { fail("2 Threw exception : " + e.getMessage()); } assertTrue("Should have throw MalformedURLException", caught); // unknown protocol try { u = new URL("myProtocol://www.yahoo.com:22"); } catch (MalformedURLException e) { caught = true; } catch (Exception e) { fail("3 Threw the wrong kind of exception : " + e); } assertTrue("3 Failed to throw MalformedURLException", caught); caught = false; // no protocol try { u = new URL("www.yahoo.com"); } catch (MalformedURLException e) { caught = true; } catch (Exception e) { fail("4 Threw the wrong kind of exception : " + e); } assertTrue("4 Failed to throw MalformedURLException", caught); caught = false; URL u1 = null; try { // No leading or trailing spaces. u1 = new URL("file:/some/path"); assertEquals("5 got wrong file length1", 10, u1.getFile().length()); // Leading spaces. u1 = new URL(" file:/some/path"); assertEquals("5 got wrong file length2", 10, u1.getFile().length()); // Trailing spaces. u1 = new URL("file:/some/path "); assertEquals("5 got wrong file length3", 10, u1.getFile().length()); // Leading and trailing. u1 = new URL(" file:/some/path "); assertEquals("5 got wrong file length4", 10, u1.getFile().length()); // in-place spaces. u1 = new URL(" file: /some/path "); assertEquals("5 got wrong file length5", 12, u1.getFile().length()); } catch (MalformedURLException e) { fail("5 Did not expect the exception " + e); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/URLTest.java/buggy/modules/luni/src/test/java/tests/api/java/net/URLTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 21159, 67, 4936, 67, 780, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 2758, 18, 1785, 12, 6290, 18, 4936, 18, 780, 13, 202, 202, 759, 7766, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 21159, 67, 4936, 67, 780, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 2758, 18, 1785, 12, 6290, 18, 4936, 18, 780, 13, 202, 202, 759, 7766, 87, ...
in.seek(DataTools.read4UnsignedBytes(in, littleEndian));
int pointer = (int) DataTools.read4UnsignedBytes(in, littleEndian); in.reset(); in.mark(fileLength); in.skipBytes(pointer);
private Hashtable parseIFD(int offset) { try { in.seek(offset); Hashtable newIFD = new Hashtable(); int numEntries = DataTools.read2UnsignedBytes(in, littleEndian); for (int i=0; i<numEntries; i++) { int tag = DataTools.read2UnsignedBytes(in, littleEndian); int type = DataTools.read2UnsignedBytes(in, littleEndian); int count = (int) DataTools.read4UnsignedBytes(in, littleEndian); if (count < 0) break; // invalid data Object value = null; if (tag == MAKER_NOTE) { long pt = in.getFilePointer(); makerNoteOffset = (int) DataTools.read4UnsignedBytes(in, littleEndian); in.seek(pt); } long pos = in.getFilePointer() + 4; if (type == TiffTools.BYTE) { // 8-bit unsigned integer short[] bytes = new short[count]; if (count > 4) { in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); } for (int j=0; j<count; j++) { bytes[j] = DataTools.readUnsignedByte(in); } if (bytes.length == 1) value = new Short(bytes[0]); else value = bytes; } else if (type == TiffTools.ASCII) { // 8-bit byte that contain a 7-bit ASCII code; // the last byte must be NUL (binary zero) byte[] ascii = new byte[count]; if (count > 4) { in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); } DataTools.readFully(in, ascii); // count number of null terminators int nullCount = 0; for (int j=0; j<count; j++) if (ascii[j] == 0) nullCount++; // convert character array to array of strings String[] strings = new String[nullCount]; int c = 0, ndx = -1; for (int j=0; j<count; j++) { if (ascii[j] == 0) { strings[c++] = new String(ascii, ndx + 1, j - ndx - 1); ndx = j; } } if (strings.length == 1) value = strings[0]; else value = strings; } else if (type == TiffTools.SHORT) { // 16-bit (2-byte) unsigned integer int[] shorts = new int[count]; if (count > 2) { in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); } for (int j=0; j<count; j++) { shorts[j] = DataTools.read2UnsignedBytes(in, littleEndian); } if (shorts.length == 1) value = new Integer(shorts[0]); else value = shorts; } else if (type == TiffTools.LONG) { // 32-bit (4-byte) unsigned integer long[] longs = new long[count]; if (count > 1) { in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); } for (int j=0; j<count; j++) { longs[j] = DataTools.read4UnsignedBytes(in, littleEndian); } if (longs.length == 1) value = new Long(longs[0]); else value = longs; } else if (type == TiffTools.RATIONAL) { // Two LONGs: the first represents the numerator of a fraction; // the second, the denominator TiffRational[] rationals = new TiffRational[count]; in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); for (int j=0; j<count; j++) { long numer = DataTools.read4UnsignedBytes(in, littleEndian); long denom = DataTools.read4UnsignedBytes(in, littleEndian); rationals[j] = new TiffRational(numer, denom); } if (rationals.length == 1) value = rationals[0]; else value = rationals; } else if (type == TiffTools.SBYTE || type == TiffTools.UNDEFINED) { // SBYTE: An 8-bit signed (twos-complement) integer // UNDEFINED: An 8-bit byte that may contain anything, // depending on the definition of the field byte[] sbytes = new byte[count]; if (count > 4) { in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); } DataTools.readFully(in, sbytes); if (sbytes.length == 1) value = new Byte(sbytes[0]); else value = sbytes; } else if (type == TiffTools.SSHORT) { // A 16-bit (2-byte) signed (twos-complement) integer short[] sshorts = new short[count]; if (count > 2) { in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); } for (int j=0; j<count; j++) { sshorts[j] = DataTools.read2SignedBytes(in, littleEndian); } if (sshorts.length == 1) value = new Short(sshorts[0]); else value = sshorts; } else if (type == TiffTools.SLONG) { // A 32-bit (4-byte) signed (twos-complement) integer int[] slongs = new int[count]; if (count > 1) { in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); } for (int j=0; j<count; j++) { slongs[j] = DataTools.read4SignedBytes(in, littleEndian); } if (slongs.length == 1) value = new Integer(slongs[0]); else value = slongs; } else if (type == TiffTools.SRATIONAL) { // Two SLONG's: the first represents the numerator of a fraction, // the second the denominator TiffRational[] srationals = new TiffRational[count]; in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); for (int j=0; j<count; j++) { int numer = DataTools.read4SignedBytes(in, littleEndian); int denom = DataTools.read4SignedBytes(in, littleEndian); srationals[j] = new TiffRational(numer, denom); } if (srationals.length == 1) value = srationals[0]; else value = srationals; } else if (type == TiffTools.FLOAT) { // Single precision (4-byte) IEEE format float[] floats = new float[count]; if (count > 1) { in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); } for (int j=0; j<count; j++) { floats[j] = DataTools.readFloat(in, littleEndian); } if (floats.length == 1) value = new Float(floats[0]); else value = floats; } else if (type == TiffTools.DOUBLE) { // Double precision (8-byte) IEEE format double[] doubles = new double[count]; in.seek(DataTools.read4UnsignedBytes(in, littleEndian)); for (int j=0; j<count; j++) { doubles[j] = DataTools.readDouble(in, littleEndian); } if (doubles.length == 1) value = new Double(doubles[0]); else value = doubles; } in.seek(pos); if (value != null) newIFD.put(new Integer(tag), value); } return newIFD; } catch (Exception e) { e.printStackTrace(); } return null; }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/91859a26506b8a1d312b398da2c3ecd94e02fa60/NikonReader.java/buggy/loci/formats/NikonReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 18559, 1109, 5501, 40, 12, 474, 1384, 13, 288, 565, 775, 288, 1377, 316, 18, 16508, 12, 3348, 1769, 1377, 18559, 394, 5501, 40, 273, 394, 18559, 5621, 1377, 509, 818, 5400, 273, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 18559, 1109, 5501, 40, 12, 474, 1384, 13, 288, 565, 775, 288, 1377, 316, 18, 16508, 12, 3348, 1769, 1377, 18559, 394, 5501, 40, 273, 394, 18559, 5621, 1377, 509, 818, 5400, 273, 1...
_log.warn("Cannot write unnamed index " + index); } else { print("CREATE"); if (index.isUnique())
if (index.getName() == null)
protected void writeExternalIndexCreateStmt(Table table, Index index) throws IOException { if (index.getName() == null) { _log.warn("Cannot write unnamed index " + index); } else { print("CREATE"); if (index.isUnique()) { print(" UNIQUE"); } print(" INDEX "); printIdentifier(getIndexName(index)); print(" ON "); printIdentifier(getTableName(table)); print(" ("); for (int idx = 0; idx < index.getColumnCount(); idx++) { IndexColumn idxColumn = index.getColumn(idx); Column col = table.findColumn(idxColumn.getName()); if (col == null) { //would get null pointer on next line anyway, so throw exception throw new DynaSqlException("Invalid column '" + idxColumn.getName() + "' on index " + index.getName() + " for table " + table.getName()); } if (idx > 0) { print(", "); } printIdentifier(getColumnName(col)); } print(")"); printEndOfStatement(); } }
3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/dbff6cd85d996d384f554939c30209eb50b80f5a/SqlBuilder.java/buggy/src/java/org/apache/ddlutils/platform/SqlBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 6841, 1016, 1684, 8952, 12, 1388, 1014, 16, 3340, 770, 13, 1216, 1860, 565, 288, 3639, 309, 261, 1615, 18, 17994, 1435, 422, 446, 13, 3639, 288, 5411, 389, 1330, 18, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 6841, 1016, 1684, 8952, 12, 1388, 1014, 16, 3340, 770, 13, 1216, 1860, 565, 288, 3639, 309, 261, 1615, 18, 17994, 1435, 422, 446, 13, 3639, 288, 5411, 389, 1330, 18, 89...
protected int getHandle()
protected long getHandle()
protected int getHandle() { return tokenHandle; }
48142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48142/2a4a4f417dd4193df9e0a3deae14aacd3f94ccb1/Token.java/buggy/src/JAVA/classes/org/openafs/jafs/Token.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1525, 26298, 1435, 225, 288, 565, 327, 1147, 3259, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1525, 26298, 1435, 225, 288, 565, 327, 1147, 3259, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public org.quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { org.quickfix.field.RepurchaseRate value = new org.quickfix.field.RepurchaseRate();
public quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { quickfix.field.RepurchaseRate value = new quickfix.field.RepurchaseRate();
public org.quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { org.quickfix.field.RepurchaseRate value = new org.quickfix.field.RepurchaseRate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix43/OrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, 5561, 12688, 12104, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, 5561, 12688, 12104, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, ...
cell.setStaticValue(value);
cell = new Cell(value);
public int doEndTag() throws JspException { TableTag tableTag = getTableTag(); MediaTypeEnum currentMediaType = (MediaTypeEnum) this.pageContext.findAttribute(TableTag.PAGE_ATTRIBUTE_MEDIA); if (currentMediaType != null && !MediaUtil.availableForMedia(this, currentMediaType)) { if (log.isDebugEnabled()) { log.debug("skipping column body, currentMediaType=" + currentMediaType); } return SKIP_BODY; } // add column header only once if (tableTag.isFirstIteration()) { addHeaderToTable(tableTag); } if (!tableTag.isIncludedRow()) { return super.doEndTag(); } HtmlAttributeMap perRowValues = new HtmlAttributeMap(); perRowValues.put(TagConstants.ATTRIBUTE_STYLE, this.attributeMap.get(TagConstants.ATTRIBUTE_STYLE)); perRowValues.put(TagConstants.ATTRIBUTE_CLASS, this.attributeMap.get(TagConstants.ATTRIBUTE_CLASS)); Cell cell = new Cell(null); cell.setPerRowAttributes(perRowValues); if (this.property == null && this.bodyContent != null) { String value = this.bodyContent.getString(); if (value == null && this.nulls) { value = TagConstants.EMPTY_STRING; } cell.setStaticValue(value); } tableTag.addCell(cell); // cleanup non-attribute variables this.alreadySorted = false; return super.doEndTag(); }
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/fa74e62d15d7e0226a0726ae68ade3afdb233307/ColumnTag.java/buggy/displaytag/src/main/java/org/displaytag/tags/ColumnTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 565, 288, 3639, 3555, 1805, 1014, 1805, 273, 5638, 1805, 5621, 3639, 6128, 10549, 783, 20870, 273, 261, 5419, 10549, 13, 333, 18, 2433, 1042, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 565, 288, 3639, 3555, 1805, 1014, 1805, 273, 5638, 1805, 5621, 3639, 6128, 10549, 783, 20870, 273, 261, 5419, 10549, 13, 333, 18, 2433, 1042, 18, ...
tempFile.delete();
protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //first, adjust the path String path = adjustPath(request); //second, perform descriptor actions Descriptor descriptor = Descriptor.getDescriptorSingleton(); if(descriptor != null) { //TODO: figure out a way to log PUT requests with HttpServletRequestWrapper and Descriptor.doLogRequestInReplayLog() //map's the path if a mapping is specified in the descriptor path = descriptor.mapPath(path); } //third, authenticate the user User user = authenticate(request,response); if (user == null) { // You now get a challenge if there is no user //response.sendError(HttpServletResponse.SC_FORBIDDEN, // "Permission denied: unknown user or password"); return; } //fourth, process the request ServletInputStream is = request.getInputStream(); int len = request.getContentLength(); // put may send a lot of data, so save it // to a temporary file first. File tempFile = File.createTempFile("existSRV", ".tmp"); OutputStream os = new FileOutputStream(tempFile); byte[] buffer = new byte[4096]; int count, l = 0; do { count = is.read(buffer); if (count > 0) os.write(buffer, 0, count); l += count; } while (l < len); os.close(); DBBroker broker = null; try { broker = pool.get(user); srvREST.doPut(broker, tempFile, XmldbURI.create(path), request, response); } catch (BadRequestException e) { response.sendError(HttpServletResponse.SC_BAD_REQUEST, e.getMessage()); } catch (PermissionDeniedException e) { response.sendError(HttpServletResponse.SC_FORBIDDEN, e.getMessage()); } catch (EXistException e) { response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage()); } finally { pool.release(broker); } tempFile.delete(); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/fe387cf6a4763e160964a11fe1a9d1e7226b6dc0/EXistServlet.java/clean/src/org/exist/http/servlets/EXistServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 741, 6426, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 16517, 16, 1860, 202, 95, 202, 202, 759, 3645, 16, 5765, 326, 589, 202, 202, 780, 589, 273, 5765, 743, 12, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 741, 6426, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 16517, 16, 1860, 202, 95, 202, 202, 759, 3645, 16, 5765, 326, 589, 202, 202, 780, 589, 273, 5765, 743, 12, 2...
JOptionPane.showMessageDialog(this, message, title, JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog( this, message, title, JOptionPane.ERROR_MESSAGE);
public void emitError (String title, String message) { JOptionPane.showMessageDialog(this, message, title, JOptionPane.ERROR_MESSAGE); }
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/IzPanel.java/buggy/src/lib/com/izforge/izpack/installer/IzPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3626, 668, 261, 780, 2077, 16, 514, 883, 13, 225, 288, 565, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 333, 16, 883, 16, 2077, 16, 804, 1895, 8485, 18, 3589, 67, 8723, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3626, 668, 261, 780, 2077, 16, 514, 883, 13, 225, 288, 565, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 333, 16, 883, 16, 2077, 16, 804, 1895, 8485, 18, 3589, 67, 8723, 1769...
public static void optAttribute(Device d, String attr, String value)
public static void optAttribute(Device d, String attr, StringBuffer value)
public static void optAttribute(Device d, String attr, String value) throws IOException { if (value != null && value.trim().length() > 0) { d.print(" ").print(attr).print("=\""); quote(d, value, true); d.print("\""); } }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/3c1c3978e98a96f34ebd6cad77fdcd9b19263adf/Utils.java/clean/wings2/src/java/org/wings/plaf/css/Utils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2153, 1499, 12, 3654, 302, 16, 514, 1604, 16, 6674, 460, 13, 5411, 1216, 1860, 288, 3639, 309, 261, 1132, 480, 446, 597, 460, 18, 5290, 7675, 2469, 1435, 405, 374, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2153, 1499, 12, 3654, 302, 16, 514, 1604, 16, 6674, 460, 13, 5411, 1216, 1860, 288, 3639, 309, 261, 1132, 480, 446, 597, 460, 18, 5290, 7675, 2469, 1435, 405, 374, 13, ...
this( constraints, true );
this( constraints, true );
public TripleBetaConstraints(final BetaNodeFieldConstraint[] constraints) { this( constraints, true ); }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/5978a39e76b4f1f80599f0bb15fe4295f18edcf1/TripleBetaConstraints.java/buggy/drools-core/src/main/java/org/drools/common/TripleBetaConstraints.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28173, 38, 1066, 4878, 12, 6385, 16393, 907, 974, 5806, 8526, 6237, 13, 288, 3639, 333, 12, 6237, 16, 638, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28173, 38, 1066, 4878, 12, 6385, 16393, 907, 974, 5806, 8526, 6237, 13, 288, 3639, 333, 12, 6237, 16, 638, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
AbsintheArchivalUnit pmAu1 = makeAu(new URL(stem1 + "/"), "2003");
ConfigurableArchivalUnit pmAu1 = makeAu(new URL(stem1 + "/"), "2003");
public void testGetUrlStems() throws Exception { String stem1 = "http://muse.jhu.edu"; AbsintheArchivalUnit pmAu1 = makeAu(new URL(stem1 + "/"), "2003"); assertEquals(ListUtil.list(stem1), pmAu1.getUrlStems()); String stem2 = "http://muse.jhu.edu:8080"; AbsintheArchivalUnit pmAu2 = makeAu(new URL(stem2 + "/"), "2003"); assertEquals(ListUtil.list(stem2), pmAu2.getUrlStems()); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/7213af99d56a7766716f5d711aa30ad85c71d195/TestAbsintheArchivalUnit.java/clean/test/src/org/lockss/plugin/absinthe/TestAbsintheArchivalUnit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 967, 1489, 510, 7424, 1435, 1216, 1185, 288, 565, 514, 13119, 21, 273, 315, 2505, 2207, 81, 1202, 18, 78, 76, 89, 18, 28049, 14432, 565, 29312, 12269, 5162, 2802, 7430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 967, 1489, 510, 7424, 1435, 1216, 1185, 288, 565, 514, 13119, 21, 273, 315, 2505, 2207, 81, 1202, 18, 78, 76, 89, 18, 28049, 14432, 565, 29312, 12269, 5162, 2802, 7430, ...
public void resourceChanged(IResourceChangeEvent event) { IMarkerDelta[] markerDeltas = event.findMarkerDeltas(PMDRuntimeConstants.PMD_MARKER, true); // first we get a List of changes to Files and Projects // so we won't need updating everything ArrayList changedFiles = new ArrayList(); ArrayList changedProjects = new ArrayList(); IResource resource = null; for (int i=0; i<markerDeltas.length; i++) { resource = markerDeltas[i].getResource(); IProject project = resource.getProject(); // the lists should not contain // Projects or Resources twice if (!changedFiles.contains(resource)) changedFiles.add(resource); if (!changedProjects.contains(project)) changedProjects.add(project); } // we can add, change or remove Resources // all this changes are given to the viewer later final ArrayList additions = new ArrayList(); final ArrayList removals = new ArrayList(); final ArrayList changes = new ArrayList(); // we got through the changed Projects for (int i=0; i<changedProjects.size(); i++) { IProject project = (IProject) changedProjects.get(i); ProjectRecord projectRec = (ProjectRecord) root.findResource(project); // if the Project is closed or deleted, // we also delete it from the Model and go on if ( (!project.isOpen()) || (!project.exists()) ) { ArrayList[] array = updateFiles(project, changedFiles); removals.addAll(array[1]); root.removeResource(project); continue; } // if we couldn't find the Project // then it has to be new if (projectRec == null) { projectRec = (ProjectRecord) root.addResource(project); } // then we can update the Files for the new or updated Project ArrayList[] array = updateFiles(project, changedFiles); additions.addAll(array[0]); removals.addAll(array[1]); changes.addAll(array[2]); } // the addtions, removals and changes are given to the viewer // so that it can update itself // updating the table MUST be in sync treeViewer.getControl().getDisplay().syncExec(new Runnable() { public void run() { updateViewer(additions, removals, changes); } }); }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/a71f46c4f6b1195d02582581aa74424aff607ebb/ViolationOverviewContentProvider.java/clean/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViolationOverviewContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1058, 5033, 12, 45, 1420, 20930, 871, 13, 288, 202, 202, 3445, 1313, 264, 9242, 8526, 5373, 2837, 9158, 273, 871, 18, 4720, 7078, 2837, 9158, 12, 52, 6188, 5576, 2918, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1058, 5033, 12, 45, 1420, 20930, 871, 13, 288, 202, 202, 3445, 1313, 264, 9242, 8526, 5373, 2837, 9158, 273, 871, 18, 4720, 7078, 2837, 9158, 12, 52, 6188, 5576, 2918, 18...
public void addPostSelectionChangedListener( ISelectionChangedListener listener) { postSelectionChangedListeners.add(listener); }
public void addPostSelectionChangedListener(ISelectionChangedListener listener) { postSelectionChangedListeners.add(listener); }
public void addPostSelectionChangedListener( ISelectionChangedListener listener) { postSelectionChangedListeners.add(listener); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dc85f0b1334fe6aa79c5c32e8024d573af99e0d2/StructuredViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18347, 6233, 5033, 2223, 12, 5411, 467, 6233, 5033, 2223, 2991, 13, 288, 3639, 1603, 6233, 5033, 5583, 18, 1289, 12, 12757, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18347, 6233, 5033, 2223, 12, 5411, 467, 6233, 5033, 2223, 2991, 13, 288, 3639, 1603, 6233, 5033, 5583, 18, 1289, 12, 12757, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -10...
WorkbenchPlugin.log("Error parsing version \"" + ver + "\" for plugin: " + id + " in Workbench.readFeaturesInfo()");
WorkbenchPlugin.log("Error parsing version \"" + vid + "\" for plugin: " + id + " in Workbench.readFeaturesInfo()");
private void readFeaturesInfo() { // get the previous features IDialogSettings settings = WorkbenchPlugin.getDefault().getDialogSettings(); String[] oldFeaturesArray = settings.getArray(INSTALLED_FEATURES); List oldFeatures = null; if (oldFeaturesArray != null) oldFeatures = Arrays.asList(oldFeaturesArray); ArrayList aboutInfos = new ArrayList(); ArrayList newAboutInfos = new ArrayList(); IPlatformConfiguration.IFeatureEntry[] featureEntries = BootLoader.getCurrentPlatformConfiguration().getConfiguredFeatureEntries(); String[] idArray = new String[featureEntries.length]; for (int i = 0; i < featureEntries.length; i++) { IPlatformConfiguration.IFeatureEntry entry = featureEntries[i]; String id = entry.getFeatureIdentifier(); String ver = entry.getFeatureVersion(); String versionedId = id + ":" + ver; idArray[i] = versionedId; try { PluginVersionIdentifier vid = new PluginVersionIdentifier(ver); AboutInfo info = new AboutInfo(id, vid); aboutInfos.add(info); if (oldFeatures != null && !oldFeatures.contains(versionedId)) // only report new if we have a record of the old newAboutInfos.add(info); } catch (RuntimeException e) { if (WorkbenchPlugin.DEBUG) // only report ini problems if the -debug command line argument is used WorkbenchPlugin.log("Error parsing version \"" + ver + "\" for plugin: " + id + " in Workbench.readFeaturesInfo()"); // continue } } settings.put(INSTALLED_FEATURES, idArray); // ensure a consistent ordering Collections.sort(aboutInfos, new Comparator() { Collator coll = Collator.getInstance(); public int compare(Object a, Object b) { AboutInfo infoA = (AboutInfo) a; AboutInfo infoB = (AboutInfo) b; int c = coll.compare(infoA.getFeatureId(), infoB.getFeatureId()); if (c == 0) { c = infoA.getVersionId().isGreaterThan(infoB.getVersionId()) ? 1 : -1; } return c; } }); featuresInfo = new AboutInfo[aboutInfos.size()]; aboutInfos.toArray(featuresInfo); for (int i = 0; i < featuresInfo.length; i++) { try { featuresInfo[i].readINIFile(); // Exclude any feature for which there is no corresponding plug-in if (featuresInfo[i].getDescriptor() == null) { aboutInfos.remove(featuresInfo[i]); newAboutInfos.remove(featuresInfo[i]); } } catch (CoreException e) { if (WorkbenchPlugin.DEBUG) // only report ini problems if the -debug command line argument is used WorkbenchPlugin.log("Error reading about info file for feature: " + featuresInfo[i].getFeatureId(), e.getStatus()); //$NON-NLS-1$ } } newFeaturesInfo = new AboutInfo[newAboutInfos.size()]; newAboutInfos.toArray(newFeaturesInfo); if (aboutInfos.size() < featuresInfo.length) { featuresInfo = new AboutInfo[aboutInfos.size()]; aboutInfos.toArray(featuresInfo); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d0521597f6e06a42361296f0ca64afccccb39b72/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 855, 8696, 966, 1435, 288, 202, 202, 759, 336, 326, 2416, 4467, 202, 202, 734, 3529, 2628, 1947, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 5621, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 855, 8696, 966, 1435, 288, 202, 202, 759, 336, 326, 2416, 4467, 202, 202, 734, 3529, 2628, 1947, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 5621, 202, ...
private boolean info (String message) {
protected boolean info (String message) {
private boolean info (String message) { return MessageUtil.info(messageHandler,message); }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/3226d27a82e968da0f04e6b4fb5a29a03fbdb0f5/WeavingAdaptor.java/clean/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1123, 261, 780, 883, 13, 288, 202, 202, 2463, 2350, 1304, 18, 1376, 12, 2150, 1503, 16, 2150, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1123, 261, 780, 883, 13, 288, 202, 202, 2463, 2350, 1304, 18, 1376, 12, 2150, 1503, 16, 2150, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public void opt_eol() throws RecognitionException { try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:82:17: ( ( EOL )* ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:82:17: ( EOL )* { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:82:17: ( EOL )* loop1: do { int alt1=2; int LA1_0 = input.LA(1); if ( LA1_0==EOL ) { alt1=1; } switch (alt1) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:82:17: EOL { match(input,EOL,FOLLOW_EOL_in_opt_eol40); } break; default : break loop1; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/61acd40072560afada3f7897673309e5b51b402d/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2153, 67, 30951, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2153, 67, 30951, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 6...
return region;
final public static Address alignAllocation(Address region, int alignment, int offset, int knownAlignment, boolean fillAlignmentGap) throws InlinePragma { if (Assert.VERIFY_ASSERTIONS) { Assert._assert(knownAlignment >= MIN_ALIGNMENT); Assert._assert(MIN_ALIGNMENT >= BYTES_IN_INT); Assert._assert(!(fillAlignmentGap && region.isZero())); Assert._assert(alignment <= MAX_ALIGNMENT); Assert._assert(offset >= 0); Assert._assert(region.toWord().and(Word.fromIntSignExtend(MIN_ALIGNMENT-1)).isZero()); Assert._assert((alignment & (MIN_ALIGNMENT - 1)) == 0); Assert._assert((offset & (MIN_ALIGNMENT - 1)) == 0); } // No alignment ever required. if (alignment <= knownAlignment || MAX_ALIGNMENT <= MIN_ALIGNMENT) return region; // May require an alignment Word mask = Word.fromIntSignExtend(alignment - 1); Word negOff = Word.fromIntSignExtend(-offset); Offset delta = negOff.minus(region.toWord()).and(mask).toOffset(); if (fillAlignmentGap && ALIGNMENT_VALUE != 0) { if ((MAX_ALIGNMENT - MIN_ALIGNMENT) == BYTES_IN_INT) { // At most a single hole if (!delta.isZero()) { region.store(ALIGNMENT_VALUE); region = region.plus(delta); } return region; } else { while (delta.toWord().GT(Word.zero())) { region.store(ALIGNMENT_VALUE); region = region.plus(BYTES_IN_INT); delta = delta.minus(BYTES_IN_INT); } return region; } } return region.plus(delta); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/8e59febe2eb149bbee9ccfcd53b9cff4341654a4/Allocator.java/clean/MMTk/src/org/mmtk/utility/alloc/Allocator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 760, 5267, 5689, 17353, 12, 1887, 3020, 16, 509, 8710, 16, 4766, 2398, 509, 1384, 16, 509, 4846, 11535, 16, 4766, 2868, 1250, 3636, 11535, 14001, 13, 1377, 1216, 16355, 2050, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 760, 5267, 5689, 17353, 12, 1887, 3020, 16, 509, 8710, 16, 4766, 2398, 509, 1384, 16, 509, 4846, 11535, 16, 4766, 2868, 1250, 3636, 11535, 14001, 13, 1377, 1216, 16355, 2050, 9...
groupInput.setAsNotEmpty(iwrb.getLocalizedString("new_user.group_required","Group must be selected"));
protected void initializeFields(IWContext iwc) { IWResourceBundle iwrb = getResourceBundle(iwc); fullNameField = new TextInput(fullNameFieldParameterName); fullNameField.setLength(20); fullNameField.setStyleClass("text"); fullNameField.setOnFocus("");// fullNameField.setAsNotEmpty(iwrb.getLocalizedString("new_user.full_name_required","Full name must be selected")); ssnField = new TextInput(ssnFieldParameterName); ssnField.setLength(20); ssnField.setMaxlength(12);// ssnField.setAsNotEmpty(iwrb.getLocalizedString("new_user.personal_id_required","Personal ID must be selected")); //ssnField.setAsIcelandicSSNumber(); goToPropertiesField = new HiddenInput(goToPropertiesFieldParameterName,"TRUE"); //goToPropertiesField.setChecked(true); primaryGroupField = new GroupChooser(primaryGroupFieldParameterName); groupInput = (TextInput)primaryGroupField.getPresentationObject(iwc); groupInput.setAsNotEmpty(iwrb.getLocalizedString("new_user.group_required","Group must be selected"));// if(primaryGroupField.isEmpty()) {// this.setErrorMessage(iwrb.getLocalizedString("new_user.group_required","Group must be selected"));// this.setToLoadAlert(iwrb.getLocalizedString("new_user.group_required","Group must be selected"));// }// primaryGroupField.setAsNotEmpty(iwrb.getLocalizedString(primaryGroupFieldParameterName,"A group must be selected")); okButton = new SubmitButton(iwrb.getLocalizedString("save", "Save"), submitButtonParameterName, okButtonParameterValue); okButton.setAsImageButton(true); continueButton = new SubmitButton(iwrb.getLocalizedString("yes", "Yes"), submitButtonParameterName, submitButtonParameterValue); continueButton.setAsImageButton(true); //cancelButton = new SubmitButton(" Cancel ", submitButtonParameterName, cancelButtonParameterValue); cancelButton = new CloseButton(iwrb.getLocalizedString("close", "Close")); cancelButton.setAsImageButton(true); backButton = new BackButton(iwrb.getLocalizedString("back", "Back")); }
52002 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52002/fbaddea9280e17bf98fdd2e6e4a9fe02fb0d1947/CreateUser.java/buggy/src/java/com/idega/user/presentation/CreateUser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4046, 2314, 12, 45, 59, 1042, 25522, 71, 13, 288, 9506, 202, 45, 59, 18731, 25522, 6731, 273, 5070, 3405, 12, 22315, 71, 1769, 9506, 202, 2854, 461, 974, 273, 394, 3867,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4046, 2314, 12, 45, 59, 1042, 25522, 71, 13, 288, 9506, 202, 45, 59, 18731, 25522, 6731, 273, 5070, 3405, 12, 22315, 71, 1769, 9506, 202, 2854, 461, 974, 273, 394, 3867,...
new ULocale(localeName).getDisplayName() + " - <tt>" + localeName + "</tt>" + "</a> "); ctx.println("<br/> "); if(doMajor != null) { fetchDoc(ctx, localeName); }
new ULocale(localeName).getDisplayName() + " - <tt>" + localeName + "</tt>" + "</a> "); ctx.println("<br/> ");
public void doGet(WebContext ctx) { ctx.println("<html>"); ctx.println("<head>"); ctx.println("<title>Interim Test Tool - s/n " + getN() + "</title>"); ctx.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"); ctx.println("</head>"); ctx.println("<body>"); // get the context CookieSession mySession = null; String myNum = ctx.field("s"); if(myNum != null) { mySession = CookieSession.retrieve(myNum); if(mySession == null) { ctx.println("<i>Warning: ignoring expired session " + myNum + "</i><br/>"); } } if(mySession == null) { mySession = new CookieSession(); } ctx.session = mySession; ctx.addQuery("s", mySession.id); WebContext baseContext = new WebContext(ctx);// ctx.println("<i>using session " + mySession.id + " </i><br/>"); // print 'shopping cart' { Hashtable lh = ctx.session.getLocales(); Enumeration e = lh.keys(); if(e.hasMoreElements()) { ctx.println("<B>Changed locales: </B> "); } for(;e.hasMoreElements();) { String k = e.nextElement().toString(); ctx.println("<a href=\"" + baseContext.url() + "&_=" + k + "\">" + new ULocale(k).getDisplayName() + "</a> "); } ctx.println("<br/>"); } ctx.println("<h1>Locales</h1>"); String locale = ctx.field("_"); if(locale != null) { // knock out some bad cases if((locale.indexOf('.') != -1) || (locale.indexOf('/') != -1)) { locale = null; } } if((locale==null)||(locale.length()<=0)) { ctx.println("<b>locales: </b> <br/>"); // 1. get the list of input XML files FileFilter myFilter = new FileFilter() { public boolean accept(File f) { String n = f.getName(); return(!f.isDirectory() &&n.endsWith(".xml") &&!n.startsWith("supplementalData") // not a locale /*&&!n.startsWith("root")*/); // root is implied, will be included elsewhere. } }; File baseDir = new File(fileBase); File inFiles[] = baseDir.listFiles(myFilter); int nrInFiles = inFiles.length; String doMajor = ctx.field("loadAll"); if((doMajor!=null)&&(doMajor.length()<=0)) { doMajor = null; } else { fetchDoc(ctx, "root"); } for(int i=0;i<nrInFiles;i++) { String localeName = inFiles[i].getName(); int dot = localeName.indexOf('.'); if(dot != -1) { localeName = localeName.substring(0,dot); if(i != 0) { ctx.println("<a href=\"" + baseContext.url() + "&" + "_=" + localeName + "\">" + new ULocale(localeName).getDisplayName() + " - <tt>" + localeName + "</tt>" + "</a> "); ctx.println("<br/> "); if(doMajor != null) { fetchDoc(ctx, localeName); } } } } ctx.println("<br/>"); ctx.println("<form action='/II/surv.sh' method=GET>Locale: <input name='_'><br/>" + "Resolve? [enter 'Y'] <input name='res'><br/>" + "<input type=submit></form>"); } else { ctx.setLocale(new ULocale(locale)); ctx.println("<b>" + ctx.locale + "</b><br/>\n"); if(ctx.doc[0] != null) { //ctx.println("Parsed. Huh. " + doc.toString() + "<hr>("); //LDMLUtilities.printDOMTree(doc,out); //ctx.println(")<ul>"); /// dumpIt(out, doc, 0); //ctx.println("</ul>"); showLocale(ctx); } else { ctx.println("<i>err, couldn't fetch " + ctx.locale.toString() + "</i><br/>"); } } ctx.println("</body>"); ctx.println("</html>"); // out.close(); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/f81772896e7ace6a25cd0ae9706b437c0cdc6b11/SurveyMain.java/clean/tools/java/org/unicode/cldr/web/SurveyMain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 4079, 1042, 1103, 13, 565, 288, 3639, 1103, 18, 8222, 2932, 32, 2620, 2984, 1769, 3639, 1103, 18, 8222, 2932, 32, 1978, 2984, 1769, 3639, 1103, 18, 8222, 2932, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 4079, 1042, 1103, 13, 565, 288, 3639, 1103, 18, 8222, 2932, 32, 2620, 2984, 1769, 3639, 1103, 18, 8222, 2932, 32, 1978, 2984, 1769, 3639, 1103, 18, 8222, 2932, 32, ...
char[] fileShortCuts = {'0', 'N', '\0', 'X'};
char[] fileShortCuts = {'0', 'N', 0, 'X'};
Menubar(SwingGui debugGui) { super(); this.debugGui = debugGui; String[] fileItems = {"Open...", "Run...", "", "Exit"}; String[] fileCmds = {"Open", "Load", "", "Exit"}; char[] fileShortCuts = {'0', 'N', '\0', 'X'}; int[] fileAccelerators = {KeyEvent.VK_O, KeyEvent.VK_N, 0, KeyEvent.VK_Q}; String[] editItems = {"Cut", "Copy", "Paste", "Go to function..."}; char[] editShortCuts = {'T', 'C', 'P', 'F'}; String[] debugItems = {"Break", "Go", "Step Into", "Step Over", "Step Out"}; char[] debugShortCuts = {'B', 'G', 'I', 'O', 'T'}; String[] plafItems = {"Metal", "Windows", "Motif"}; char [] plafShortCuts = {'M', 'W', 'F'}; int[] debugAccelerators = {KeyEvent.VK_PAUSE, KeyEvent.VK_F5, KeyEvent.VK_F11, KeyEvent.VK_F7, KeyEvent.VK_F8, 0, 0}; JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic('F'); JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic('E'); JMenu plafMenu = new JMenu("Platform"); plafMenu.setMnemonic('P'); JMenu debugMenu = new JMenu("Debug"); debugMenu.setMnemonic('D'); windowMenu = new JMenu("Window"); windowMenu.setMnemonic('W'); for (int i = 0; i < fileItems.length; ++i) { if (fileItems[i].length() == 0) { fileMenu.addSeparator(); } else { JMenuItem item = new JMenuItem(fileItems[i], fileShortCuts[i]); item.setActionCommand(fileCmds[i]); item.addActionListener(this); fileMenu.add(item); if (fileAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(fileAccelerators[i], Event.CTRL_MASK); item.setAccelerator(k); } } } for (int i = 0; i < editItems.length; ++i) { JMenuItem item = new JMenuItem(editItems[i], editShortCuts[i]); item.addActionListener(this); editMenu.add(item); } for (int i = 0; i < plafItems.length; ++i) { JMenuItem item = new JMenuItem(plafItems[i], plafShortCuts[i]); item.addActionListener(this); plafMenu.add(item); } for (int i = 0; i < debugItems.length; ++i) { JMenuItem item = new JMenuItem(debugItems[i], debugShortCuts[i]); item.addActionListener(this); if (debugAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(debugAccelerators[i], 0); item.setAccelerator(k); } if (i != 0) { interruptOnlyItems.add(item); } else { runOnlyItems.add(item); } debugMenu.add(item); } breakOnExceptions = new JCheckBoxMenuItem("Break on Exceptions"); breakOnExceptions.setMnemonic('X'); breakOnExceptions.addActionListener(this); breakOnExceptions.setSelected(false); debugMenu.add(breakOnExceptions); breakOnEnter = new JCheckBoxMenuItem("Break on Function Enter"); breakOnEnter.setMnemonic('E'); breakOnEnter.addActionListener(this); breakOnEnter.setSelected(false); debugMenu.add(breakOnEnter); breakOnReturn = new JCheckBoxMenuItem("Break on Function Return"); breakOnReturn.setMnemonic('R'); breakOnReturn.addActionListener(this); breakOnReturn.setSelected(false); debugMenu.add(breakOnReturn); add(fileMenu); add(editMenu); //add(plafMenu); add(debugMenu); JMenuItem item; windowMenu.add(item = new JMenuItem("Cascade", 'A')); item.addActionListener(this); windowMenu.add(item = new JMenuItem("Tile", 'T')); item.addActionListener(this); windowMenu.addSeparator(); windowMenu.add(item = new JMenuItem("Console", 'C')); item.addActionListener(this); add(windowMenu); updateEnabled(false); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/7d1b33a19c3b651c13a0c8102bfbcab16f1967e0/SwingGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 490, 275, 373, 297, 12, 6050, 310, 18070, 1198, 18070, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 3639, 514, 8526, 585, 3126, 225, 273, 12528, 3678, 7070...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 490, 275, 373, 297, 12, 6050, 310, 18070, 1198, 18070, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 3639, 514, 8526, 585, 3126, 225, 273, 12528, 3678, 7070...
fileType == StdFileTypes.XHTML || fileType == StdFileTypes.JSPX
fileType == StdFileTypes.XHTML
public static String getDefaultNamespace(final XmlDocument document) { final XmlFile file = XmlUtil.getContainingFile(document); if (file != null && file.getCopyableUserData(XmlFile.ANT_BUILD_FILE) != null) { return ANT_URI; } XmlTag tag = document.getRootTag(); if (tag == null) return EMPTY_NAMESPACE; if ("project".equals(tag.getName()) && tag.getContext() instanceof XmlDocument) { if (tag.getAttributeValue("default") != null) { return ANT_URI; } } String namespace = getDtdUri(document); if (namespace != null) return EMPTY_NAMESPACE; if ("taglib".equals(tag.getName())) { return TAGLIB_1_2_URI; } if (file != null) { final FileType fileType = file.getFileType(); if (fileType == StdFileTypes.HTML || fileType == StdFileTypes.XHTML || fileType == StdFileTypes.JSPX ) { return XHTML_URI; } } return EMPTY_NAMESPACE; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/ec8061af33c3650e89e2969e0d5e8f16ded6a4e7/XmlUtil.java/buggy/source/com/intellij/xml/util/XmlUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 4829, 3402, 12, 6385, 5714, 2519, 1668, 13, 288, 565, 727, 5714, 812, 585, 273, 5714, 1304, 18, 588, 24344, 812, 12, 5457, 1769, 565, 309, 261, 768, 480, 446, 597, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 4829, 3402, 12, 6385, 5714, 2519, 1668, 13, 288, 565, 727, 5714, 812, 585, 273, 5714, 1304, 18, 588, 24344, 812, 12, 5457, 1769, 565, 309, 261, 768, 480, 446, 597, 585, ...
ap1.setAttribute(CommonAttributes.LINE_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.YELLOW);
ap1.setAttribute(CommonAttributes.LINE_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, java.awt.Color.YELLOW);
public static SceneGraphComponent generateScene2(SceneGraphComponent root) { float[] bgc = {.3f, .3f, .5f, 1f}; IndexedFaceSet globeSet=new CatenoidHelicoid(40); globeSet.setName("CatHel1"); globeSet.buildEdgesFromFaces(); double scaleVal = 1.5; SceneGraphComponent globeNode1= new SceneGraphComponent(); globeNode1.setName("Comp1"); Transformation gt= new Transformation(); gt.setTranslation(0, 0, scaleVal); gt.setStretch(.3); globeNode1.setTransformation(gt); Appearance ap1 = new Appearance(); ap1.setAttribute(CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.RED); ap1.setAttribute(CommonAttributes.LINE_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.BLACK); ap1.setAttribute(CommonAttributes.LIGHTING_ENABLED,true); ap1.setAttribute(CommonAttributes.POLYGON_SHADER+"."+CommonAttributes.SMOOTH_SHADING,true); ap1.setAttribute(CommonAttributes.EDGE_DRAW,false); ap1.setAttribute(CommonAttributes.POLYGON_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, java.awt.Color.RED);// ap1.setAttribute(CommonAttributes.POLYGON_SHADER+"."+"textureEnabled",true);// double[] vec = {1d, 1.5d, 1d};// ap1.setAttribute(CommonAttributes.POLYGON_SHADER+"."+"textureFile","/gunn/grid256rgba.jpg");// ap1.setAttribute(CommonAttributes.POLYGON_SHADER+"."+"textureMatrix",P3.makeStretchMatrix(null, vec)); globeNode1.setAppearance(ap1); //rootAp = ap1; globeNode1.setGeometry(globeSet); // 2. globeSet=new CatenoidHelicoid(20); globeSet.setName("CatHel2"); globeSet.buildEdgesFromFaces(); SceneGraphComponent globeNode2= new SceneGraphComponent(); globeNode2.setName("Comp1"); gt= new Transformation(); gt.setTranslation(scaleVal, scaleVal, scaleVal); gt.setStretch(.3); globeNode2.setTransformation(gt); globeNode2.setGeometry(globeSet); ap1 = new Appearance(); ap1.setAttribute(CommonAttributes.LINE_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.PURPLE); ap1.setAttribute(CommonAttributes.LINE_WIDTH,2.0); ap1.setAttribute(CommonAttributes.POLYGON_SHADER+"."+CommonAttributes.DIFFUSE_COLOR,new java.awt.Color(.2f, .5f, .5f, 1f)); ap1.setAttribute(CommonAttributes.FACE_DRAW,true); ap1.setAttribute(CommonAttributes.EDGE_DRAW,true); ap1.setAttribute(CommonAttributes.VERTEX_DRAW,true); ap1.setAttribute(CommonAttributes.TRANSPARENCY_ENABLED,true); ap1.setAttribute(CommonAttributes.SMOOTH_SHADING,false); ap1.setAttribute(CommonAttributes.LIGHTING_ENABLED,true); ap1.setAttribute(CommonAttributes.NORMALS_DRAW,true); ap1.setAttribute(CommonAttributes.NORMAL_SCALE, 1.0); globeNode2.setAppearance(ap1); globeSet=new CatenoidHelicoid(20); globeSet.setName("CatHel3"); globeSet.buildEdgesFromFaces(); SceneGraphComponent globeNode3= new SceneGraphComponent(); gt= new Transformation(); gt.setTranslation(-scaleVal, -scaleVal, scaleVal); gt.setStretch(.3); globeNode3.setTransformation(gt); globeNode3.setGeometry(globeSet); ap1 = new Appearance(); ap1.setAttribute(CommonAttributes.LINE_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.WHITE); ap1.setAttribute(CommonAttributes.LINE_WIDTH,2.0); ap1.setAttribute(CommonAttributes.POINT_RADIUS,3.0); ap1.setAttribute(CommonAttributes.EDGE_DRAW,true); ap1.setAttribute(CommonAttributes.LINE_STIPPLE,true); ap1.setAttribute(CommonAttributes.LINE_STIPPLE_PATTERN,0x1c47); ap1.setAttribute(CommonAttributes.ANTIALIASING_ENABLED,true); ap1.setAttribute(CommonAttributes.FACE_DRAW,false); ap1.setAttribute(CommonAttributes.VERTEX_DRAW,false); globeNode3.setAppearance(ap1); //Torus torus= new Torus(2.3, 1.5, 20, 30); //torus.calculateNormals(); //Torus torus= new Torus(2.3, 1.5, 20, 30); //torus.calculateNormals(); DiscreteSpaceCurve torus1 = DiscreteSpaceCurve.discreteTorusKnot(1.0, .4,3,5,100); SceneGraphComponent globeNode4= new SceneGraphComponent(); gt= new Transformation(); gt.setTranslation(0, 0, 0.0); //gt.setRotation( Math.PI/2.0,1.0, 0.0, 0.0); //gt.setStretch(.3); globeNode4.setTransformation(gt); globeNode4.setGeometry(torus1); ap1 = new Appearance(); ap1.setAttribute(CommonAttributes.POLYGON_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.BLUE); ap1.setAttribute(CommonAttributes.LINE_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.GREEN); ap1.setAttribute(CommonAttributes.LINE_WIDTH,1.0); ap1.setAttribute(CommonAttributes.POINT_RADIUS,3.0); ap1.setAttribute(CommonAttributes.FACE_DRAW,false); ap1.setAttribute(CommonAttributes.EDGE_DRAW,true); ap1.setAttribute(CommonAttributes.LIGHTING_ENABLED,true); ap1.setAttribute(CommonAttributes.SMOOTH_SHADING,true); ap1.setAttribute(CommonAttributes.SPECULAR_EXPONENT,200.0); ap1.setAttribute(CommonAttributes.NORMALS_DRAW,false); ap1.setAttribute(CommonAttributes.NORMAL_SCALE,-1.0); ap1.setAttribute(CommonAttributes.LINE_WIDTH, 2.0); ap1.setAttribute(CommonAttributes.LINE_STIPPLE,false); ap1.setAttribute(CommonAttributes.VERTEX_DRAW,false); globeNode4.setAppearance(ap1); Torus torus= new Torus(2.3, 1.5, 20, 30); torus.calculateNormals(); SceneGraphComponent globeNode5= new SceneGraphComponent(); gt= new Transformation(); gt.setTranslation(scaleVal,scaleVal,0.0); //gt.setRotation( Math.PI/2.0,1.0, 0.0, 0.0); gt.setStretch(.3); globeNode5.setTransformation(gt); globeNode5.setGeometry(torus); ap1 = new Appearance(); ap1.setAttribute(CommonAttributes.LINE_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.YELLOW); ap1.setAttribute(CommonAttributes.FACE_DRAW,false); ap1.setAttribute(CommonAttributes.EDGE_DRAW,true); ap1.setAttribute(CommonAttributes.LIGHTING_ENABLED,false); ap1.setAttribute(CommonAttributes.NORMALS_DRAW,true); ap1.setAttribute(CommonAttributes.ANTIALIASING_ENABLED,true); ap1.setAttribute(CommonAttributes.NORMAL_SCALE,1.0); globeNode5.setAppearance(ap1); torus= new Torus(2.3, 1.5, 20, 30); torus.calculateNormals(); SceneGraphComponent globeNode6= new SceneGraphComponent(); gt= new Transformation(); gt.setTranslation(-scaleVal,-scaleVal,0.0); gt.setRotation( Math.PI/2.0,1.0, 0.0, 0.0); gt.setStretch(.3); ap1 = new Appearance(); ap1.setAttribute(CommonAttributes.POLYGON_SHADER+"."+CommonAttributes.DIFFUSE_COLOR, DefaultMaterialShader.BLUE); globeNode6.setTransformation(gt); globeNode6.setGeometry(torus); globeNode6.setAppearance(ap1); root.addChild(globeNode1); root.addChild(globeNode2); root.addChild(globeNode3); root.addChild(globeNode4); root.addChild(globeNode5); root.addChild(globeNode6); return root; }
25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/352d69123ac0111eaac1bdb80e046d16518a5f52/ImplodeShaderDemo.java/clean/test/de/jreality/examples/jsyzygy/ImplodeShaderDemo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 29347, 4137, 1841, 2103, 14370, 22, 12, 14370, 4137, 1841, 1365, 13, 288, 202, 202, 5659, 8526, 7611, 71, 273, 288, 18, 23, 74, 16, 263, 23, 74, 16, 263, 25, 74, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 29347, 4137, 1841, 2103, 14370, 22, 12, 14370, 4137, 1841, 1365, 13, 288, 202, 202, 5659, 8526, 7611, 71, 273, 288, 18, 23, 74, 16, 263, 23, 74, 16, 263, 25, 74, 16, ...
afterSend((OutNetMessage)changedMsgs.get(i), false, false, 0);
OutNetMessage cur = (OutNetMessage)changedMsgs.get(i); cur.timestamp("changedIdents"); afterSend(cur, false, false, 0);
void connectionEstablished(TCPConnection con) { TCPAddress remAddr = con.getRemoteAddress(); RouterIdentity ident = con.getRemoteRouterIdentity(); if ( (remAddr == null) || (ident == null) ) { con.closeConnection(); return; } List waitingMsgs = null; List changedMsgs = null; boolean alreadyConnected = false; boolean changedIdents = false; synchronized (_connectionLock) { if (_connectionsByAddress.containsKey(remAddr.toString())) { alreadyConnected = true; } else { _connectionsByAddress.put(remAddr.toString(), con); } if (_connectionsByIdent.containsKey(ident.calculateHash())) { alreadyConnected = true; } else { _connectionsByIdent.put(ident.calculateHash(), con); } // just drop the _pending connections - the establisher should fail // them accordingly. _pendingConnectionsByAddress.remove(remAddr.toString()); _pendingConnectionsByIdent.remove(ident.calculateHash()); if ( (con.getAttemptedPeer() != null) && (!ident.getHash().equals(con.getAttemptedPeer())) ) { changedIdents = true; _pendingConnectionsByIdent.remove(con.getAttemptedPeer()); changedMsgs = (List)_pendingMessages.remove(con.getAttemptedPeer()); } if (!alreadyConnected) waitingMsgs = (List)_pendingMessages.remove(ident.calculateHash()); if (_log.shouldLog(Log.DEBUG)) { StringBuffer buf = new StringBuffer(256); buf.append("\nConnection to ").append(ident.getHash().toBase64().substring(0,6)); buf.append(" built. Already connected? "); buf.append(alreadyConnected); buf.append("\nconnectionsByAddress: (cur=").append(remAddr.toString()).append(") "); for (Iterator iter = _connectionsByAddress.keySet().iterator(); iter.hasNext(); ) { String addr = (String)iter.next(); buf.append(addr).append(" "); } buf.append("\nconnectionsByIdent: "); for (Iterator iter = _connectionsByIdent.keySet().iterator(); iter.hasNext(); ) { Hash h = (Hash)iter.next(); buf.append(h.toBase64().substring(0,6)).append(" "); } _log.debug(buf.toString()); } } if (changedIdents) { _context.shitlist().shitlistRouter(con.getAttemptedPeer(), "Changed identities"); if (changedMsgs != null) { for (int i = 0; i < changedMsgs.size(); i++) { afterSend((OutNetMessage)changedMsgs.get(i), false, false, 0); } } } if (alreadyConnected) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Closing new duplicate"); con.setTransport(this); con.closeConnection(); } else { if (waitingMsgs != null) { for (int i = 0; i < waitingMsgs.size(); i++) { con.addMessage((OutNetMessage)waitingMsgs.get(i)); } } _context.shitlist().unshitlistRouter(ident.calculateHash()); con.setTransport(this); con.runConnection(); if (_log.shouldLog(Log.DEBUG)) _log.debug("Connection set to run"); } }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/98c780415bee01e25550543ebc6a0bb55423f6f7/TCPTransport.java/buggy/router/java/src/net/i2p/router/transport/tcp/TCPTransport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1459, 9122, 9237, 5992, 12, 13891, 1952, 356, 13, 288, 3639, 9911, 1887, 849, 3178, 273, 356, 18, 588, 5169, 1887, 5621, 3639, 9703, 4334, 3390, 273, 356, 18, 588, 5169, 8259, 4334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1459, 9122, 9237, 5992, 12, 13891, 1952, 356, 13, 288, 3639, 9911, 1887, 849, 3178, 273, 356, 18, 588, 5169, 1887, 5621, 3639, 9703, 4334, 3390, 273, 356, 18, 588, 5169, 8259, 4334, ...
assertTrue(data.doubleValue() == rs.getDouble(1));
assertEquals(data.doubleValue(), rs.getDouble(1));
public void testPreparedStatementSetObject3() throws Exception { BigDecimal data = new BigDecimal(3.7D); Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #psso3 (data MONEY)"); stmt.close(); PreparedStatement pstmt = con.prepareStatement("INSERT INTO #psso3 (data) VALUES (?)"); pstmt.setObject(1, data, Types.DECIMAL); assertTrue(pstmt.executeUpdate() == 1); pstmt.close(); stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT data FROM #psso3"); assertTrue(rs.next()); assertTrue(data.doubleValue() == rs.getDouble(1)); assertTrue(!rs.next()); rs.close(); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/711d47f475f1fc9d77fbce64a70d11606c38d145/PreparedStatementTest.java/buggy/src/test/net/sourceforge/jtds/test/PreparedStatementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29325, 694, 921, 23, 1435, 1216, 1185, 288, 3639, 8150, 501, 273, 394, 8150, 12, 23, 18, 27, 40, 1769, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29325, 694, 921, 23, 1435, 1216, 1185, 288, 3639, 8150, 501, 273, 394, 8150, 12, 23, 18, 27, 40, 1769, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18,...
saveBeforeProceedingCount++;
saveAllBeforeProceedingCount++;
public void testCompileUnsavedButSaveWhenAsked() throws BadLocationException, IOException { final OpenDefinitionsDocument doc = setupDocument(FOO_TEXT); final File file = tempFile(); CompileShouldSucceedListener listener = new CompileShouldSucceedListener() { public void saveBeforeProceeding(GlobalModelListener.SaveReason reason) { assertEquals(_name() + "save reason", COMPILE_REASON, reason); assertModified(true, doc); assertSaveCount(0); assertCompileStartCount(0); assertCompileEndCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); try { doc.saveFile(new FileSelector(file)); } catch (IOException ioe) { fail("Save produced exception: " + ioe); } saveBeforeProceedingCount++; } public void fileSaved(OpenDefinitionsDocument doc) { assertModified(false, doc); assertSaveBeforeProceedingCount(0); assertCompileStartCount(0); assertCompileEndCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); File f = null; try { f = doc.getFile(); } catch (IllegalStateException ise) { // We know file should exist throw new UnexpectedException(ise); } assertEquals(_name() + "file saved", file, f); saveCount++; } }; _model.addListener(listener); doc.startCompile(); // Check events fired listener.assertSaveBeforeProceedingCount(1); listener.assertSaveCount(1); assertCompileErrorsPresent(_name(), false); listener.checkCompileOccurred(); // Make sure .class exists File compiled = classForJava(file, "Foo"); assertTrue(_name() + "Class file doesn't exist after compile", compiled.exists()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/963348ced7921c9036c4d0267a79aecf5dc0da09/GlobalModelCompileTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/GlobalModelCompileTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 9937, 984, 14077, 31167, 4755, 9434, 23663, 329, 1435, 565, 1216, 6107, 2735, 503, 16, 1860, 225, 288, 565, 727, 3502, 7130, 2519, 997, 273, 3875, 2519, 12, 3313, 51, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 9937, 984, 14077, 31167, 4755, 9434, 23663, 329, 1435, 565, 1216, 6107, 2735, 503, 16, 1860, 225, 288, 565, 727, 3502, 7130, 2519, 997, 273, 3875, 2519, 12, 3313, 51, 67,...
String strikethroughPosStr = fontFaceElement.getAttributeNS(null, SVG_STRIKETHROUGH_POSITION_ATTRIBUTE);
String strikethroughPosStr = fontFaceElement.getAttributeNS (null, SVG_STRIKETHROUGH_POSITION_ATTRIBUTE);
public SVGFontFace createFontFace(BridgeContext ctx, Element fontFaceElement) { // get all the font-face attributes String familyNames = fontFaceElement.getAttributeNS(null, SVG_FONT_FAMILY_ATTRIBUTE); // units per em String unitsPerEmStr = fontFaceElement.getAttributeNS(null, SVG_UNITS_PER_EM_ATTRIBUTE); if (unitsPerEmStr.length() == 0) { unitsPerEmStr = SVG_FONT_FACE_UNITS_PER_EM_DEFAULT_VALUE; } float unitsPerEm; try { unitsPerEm = SVGUtilities.convertSVGNumber(unitsPerEmStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_UNITS_PER_EM_ATTRIBUTE, unitsPerEmStr}); } // font-weight String fontWeight = fontFaceElement.getAttributeNS(null, SVG_FONT_WEIGHT_ATTRIBUTE); if (fontWeight.length() == 0) { fontWeight = SVG_FONT_FACE_FONT_WEIGHT_DEFAULT_VALUE; } // font-style String fontStyle = fontFaceElement.getAttributeNS(null, SVG_FONT_STYLE_ATTRIBUTE); if (fontStyle.length() == 0) { fontStyle = SVG_FONT_FACE_FONT_STYLE_DEFAULT_VALUE; } // font-variant String fontVariant = fontFaceElement.getAttributeNS(null, SVG_FONT_VARIANT_ATTRIBUTE); if (fontVariant.length() == 0) { fontVariant = SVG_FONT_FACE_FONT_VARIANT_DEFAULT_VALUE; } // font-stretch String fontStretch = fontFaceElement.getAttributeNS(null, SVG_FONT_STRETCH_ATTRIBUTE); if (fontStretch.length() == 0) { fontStretch = SVG_FONT_FACE_FONT_STRETCH_DEFAULT_VALUE; } // slopeStr String slopeStr = fontFaceElement.getAttributeNS(null, SVG_SLOPE_ATTRIBUTE); if (slopeStr.length() == 0) { slopeStr = SVG_FONT_FACE_SLOPE_DEFAULT_VALUE; } float slope; try { slope = SVGUtilities.convertSVGNumber(slopeStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, slopeStr}); } // panose-1 String panose1 = fontFaceElement.getAttributeNS(null, SVG_PANOSE_1_ATTRIBUTE); if (panose1.length() == 0) { panose1 = SVG_FONT_FACE_PANOSE_1_DEFAULT_VALUE; } // ascent String ascentStr = fontFaceElement.getAttributeNS(null, SVG_ASCENT_ATTRIBUTE); if (ascentStr.length() == 0) { // set it to be unitsPerEm/2, not sure if this is correct or not ascentStr = String.valueOf(unitsPerEm/2); } float ascent; try { ascent = SVGUtilities.convertSVGNumber(ascentStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, ascentStr}); } // descent String descentStr = fontFaceElement.getAttributeNS(null, SVG_DESCENT_ATTRIBUTE); if (descentStr.length() == 0) { // set it to be unitsPerEm/2, not sure if this is correct or not descentStr = String.valueOf(unitsPerEm/2); } float descent; try { descent = SVGUtilities.convertSVGNumber(descentStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, descentStr}); } // underline-position String underlinePosStr = fontFaceElement.getAttributeNS(null, SVG_UNDERLINE_POSITION_ATTRIBUTE); if (underlinePosStr.length() == 0) { underlinePosStr = "0"; } float underlinePos; try { underlinePos = SVGUtilities.convertSVGNumber(underlinePosStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, underlinePosStr}); } // underline-thickness String underlineThicknessStr = fontFaceElement.getAttributeNS(null, SVG_UNDERLINE_THICKNESS_ATTRIBUTE); if (underlineThicknessStr.length() == 0) { underlineThicknessStr = String.valueOf(unitsPerEm/20); } float underlineThickness; try { underlineThickness = SVGUtilities.convertSVGNumber(underlineThicknessStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, underlineThicknessStr}); } // strikethrough-position String strikethroughPosStr = fontFaceElement.getAttributeNS(null, SVG_STRIKETHROUGH_POSITION_ATTRIBUTE); if (strikethroughPosStr.length() == 0) { strikethroughPosStr = String.valueOf(ascent/3); } float strikethroughPos; try { strikethroughPos = SVGUtilities.convertSVGNumber(strikethroughPosStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, strikethroughPosStr}); } // strikethrough-thickness String strikethroughThicknessStr = fontFaceElement.getAttributeNS(null, SVG_STRIKETHROUGH_THICKNESS_ATTRIBUTE); if (strikethroughThicknessStr.length() == 0) { strikethroughThicknessStr = String.valueOf(unitsPerEm/20); } float strikethroughThickness; try { strikethroughThickness = SVGUtilities.convertSVGNumber(strikethroughThicknessStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, strikethroughThicknessStr}); } // overline-position String overlinePosStr = fontFaceElement.getAttributeNS(null, this.SVG_OVERLINE_POSITION_ATTRIBUTE); if (overlinePosStr.length() == 0) { overlinePosStr = String.valueOf(ascent); } float overlinePos; try { overlinePos = SVGUtilities.convertSVGNumber(overlinePosStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, overlinePosStr}); } // overline-thickness String overlineThicknessStr = fontFaceElement.getAttributeNS(null, SVG_OVERLINE_THICKNESS_ATTRIBUTE); if (overlineThicknessStr.length() == 0) { overlineThicknessStr = String.valueOf(unitsPerEm/20); } float overlineThickness; try { overlineThickness = SVGUtilities.convertSVGNumber(overlineThicknessStr); } catch (NumberFormatException ex) { throw new BridgeException (fontFaceElement, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object [] {SVG_FONT_FACE_SLOPE_DEFAULT_VALUE, overlineThicknessStr}); } // TODO: get the rest of the attributes return new SVGFontFace(familyNames, unitsPerEm, fontWeight, fontStyle, fontVariant, fontStretch, slope, panose1, ascent, descent, strikethroughPos, strikethroughThickness, underlinePos, underlineThickness, overlinePos, overlineThickness); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/0e8fac772791a058755ef5ad1de71c14544b11bb/SVGFontFaceElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGFontFaceElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11281, 5711, 11824, 752, 5711, 11824, 12, 13691, 1042, 1103, 16, 4766, 1377, 3010, 3512, 11824, 1046, 13, 288, 3639, 368, 336, 777, 326, 3512, 17, 865, 1677, 3639, 514, 6755, 1557, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11281, 5711, 11824, 752, 5711, 11824, 12, 13691, 1042, 1103, 16, 4766, 1377, 3010, 3512, 11824, 1046, 13, 288, 3639, 368, 336, 777, 326, 3512, 17, 865, 1677, 3639, 514, 6755, 1557, ...
void progress(String taskid, float progress, String state, Phase phase)
void progress(String taskid, float progress, String state, TaskStatus.Phase phase)
void progress(String taskid, float progress, String state, Phase phase) throws IOException;
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/1e24384b1f84e52afdfd79649a51a55574be4905/TaskUmbilicalProtocol.java/buggy/src/java/org/apache/hadoop/mapred/TaskUmbilicalProtocol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4007, 12, 780, 29035, 16, 1431, 4007, 16, 514, 919, 16, 29628, 18, 11406, 6855, 13, 565, 1216, 1860, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4007, 12, 780, 29035, 16, 1431, 4007, 16, 514, 919, 16, 29628, 18, 11406, 6855, 13, 565, 1216, 1860, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public Node parse(String file, Reader content) { return parse(file, content, new RubyParserConfiguration());
public Node parse(String file, String content) { return parse(file, new StringReader(content));
public Node parse(String file, Reader content) { return parse(file, content, new RubyParserConfiguration()); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/0f6e18726a82e6e618032c9fbecf61f67509d272/Parser.java/buggy/src/org/jruby/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 1109, 12, 780, 585, 16, 5393, 913, 13, 288, 3639, 327, 1109, 12, 768, 16, 913, 16, 394, 19817, 2678, 1750, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 1109, 12, 780, 585, 16, 5393, 913, 13, 288, 3639, 327, 1109, 12, 768, 16, 913, 16, 394, 19817, 2678, 1750, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100...
CRole.getInstance().refreshRole();
public void commit(CTreeNode node, String commitMessage) throws Exception{ File toCommit = new File(node.getLocalPath()); //Si on doit envoyer un dossier if(toCommit.isDirectory()){ File[] fileInDirectory ; //Si le dossier n'est pas sous une version control??e if(!SvnHistory.isUnderVersion(toCommit)){ //On recupere tout les fichiers parents ?? envoyer fileInDirectory = fileToAdd(node); }else{ //Liste les fichiers que l'utilisateur ?? le droit d'envoyer fileInDirectory = toCommit.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { File directory = new File(dir.getAbsolutePath()+"/"+name); if(directory.isDirectory()&&!directory.isHidden()) return true; if(name.endsWith(".xml")||name.endsWith(".pre")||name.endsWith(".pog")||name.endsWith(".apes")) return true; return false; } }); //Ajout des fichiers non versionn??s dans le cas o?? le dossier est versionn?? doAdd(toCommit); } //Envoi des fichiers try { svnCC.doCommit(fileInDirectory,false,commitMessage, false, true); } catch (SVNException e) { ErrorManager.getInstance().setErrMsg("L'envoi du dossier "+toCommit.getName()+" a ??chou??.\n"+e.getCause()); ErrorManager.getInstance().setErrTitle("Envoi impossible"); throw e; } }else{ if(!SvnHistory.isUnderVersion(toCommit)){ //Ajout du fichier et des parents non versionn??s, puis envoi de ces fichiers try { svnCC.doCommit(fileToAdd(node),false,commitMessage, false, false); } catch (SVNException e) { ErrorManager.getInstance().setErrMsg("L'envoi du fichier "+toCommit.getName()+" a ??chou??.\n"+e.getCause()); ErrorManager.getInstance().setErrTitle("Envoi impossible"); throw e; } }else{ //Si le fichiers est versionn??, on l'envoi sendFile(toCommit,commitMessage); } } //Si le fichiers des d??pendances est modifi?? on l'envoi en m??me temps if(SvnHistory.isModified(UsersParser.getInstance().getUsersXML())||SvnHistory.isModified(ProjectsParser.getInstance().getProjectXML())) sendXMLFile(); }
10528 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10528/57ddee7cd9f469e84982484d10dff8c355564e42/SvnCommit.java/clean/XAGDOP/xagdop/Svn/SvnCommit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 39, 2996, 18, 588, 1442, 7675, 9144, 2996, 5621, 918, 39, 2996, 18, 588, 1442, 7675, 9144, 2996, 5621, 3294, 12, 1268, 992, 907, 39, 2996, 18, 588, 1442, 7675, 9144, 2996, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 39, 2996, 18, 588, 1442, 7675, 9144, 2996, 5621, 918, 39, 2996, 18, 588, 1442, 7675, 9144, 2996, 5621, 3294, 12, 1268, 992, 907, 39, 2996, 18, 588, 1442, 7675, 9144, 2996, 562...
public org.quickfix.field.SettlDate getSettlDate() throws FieldNotFound { org.quickfix.field.SettlDate value = new org.quickfix.field.SettlDate();
public quickfix.field.SettlDate getSettlDate() throws FieldNotFound { quickfix.field.SettlDate value = new quickfix.field.SettlDate();
public org.quickfix.field.SettlDate getSettlDate() throws FieldNotFound { org.quickfix.field.SettlDate value = new org.quickfix.field.SettlDate(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequest.java/buggy/src/java/src/quickfix/fix44/QuoteRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 694, 6172, 1626, 336, 694, 6172, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 694, 6172, 1626, 460, 273, 394, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 694, 6172, 1626, 336, 694, 6172, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 694, 6172, 1626, 460, 273, 394, 23...
return _ifStatement;
return ifStatement;
public JIfStatement getIfStatement() { return _ifStatement; }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/JIfElseIfElseStatement.java/clean/modules/interop/src/java/org/apache/geronimo/interop/generator/JIfElseIfElseStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 804, 2047, 3406, 336, 2047, 3406, 1435, 288, 3639, 327, 309, 3406, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 804, 2047, 3406, 336, 2047, 3406, 1435, 288, 3639, 327, 309, 3406, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return id;
return Util.safeString(id);
public String getId() { if (program == null) { if (configurationElement == null) { return id; } return configurationElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID); } return program.getName(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/45ab2bee3420234882ba61c9b99fecd868b62e8f/EditorDescriptor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2634, 1435, 288, 3639, 309, 261, 12890, 422, 446, 13, 288, 540, 202, 430, 261, 7025, 1046, 422, 446, 13, 288, 540, 202, 202, 2463, 3564, 18, 4626, 780, 12, 350, 1769, 540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2634, 1435, 288, 3639, 309, 261, 12890, 422, 446, 13, 288, 540, 202, 430, 261, 7025, 1046, 422, 446, 13, 288, 540, 202, 202, 2463, 3564, 18, 4626, 780, 12, 350, 1769, 540, ...
releaseRegister(tmp);
L1AHelper.releaseRegister(eContext, tmp);
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeClass(fieldRef, tmp); releaseRegister(tmp); } // Get value final Item val = vstack.pop(); val.load(eContext); // Put static field if (!fieldRef.isWide()) { final WordItem wval = (WordItem) val; final Register valr = wval.getRegister(); helper.writePutStaticsEntry(curInstrLabel, valr, sf); if (helper.needsWriteBarrier()) { final Register tmp = requestRegister(JvmType.INT, false); helper.writePutstaticWriteBarrier(sf, valr, tmp); releaseRegister(tmp); } } else { final DoubleWordItem dval = (DoubleWordItem) val; helper.writePutStaticsEntry64(curInstrLabel, dval.getLsbRegister(), dval.getMsbRegister(), sf); } // Release val.release(eContext); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 458, 3845, 12, 22143, 9661, 974, 1957, 652, 1957, 13, 288, 202, 202, 1518, 1957, 18, 10828, 12, 6714, 1769, 202, 202, 6385, 776, 81, 5788, 974, 9033, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 458, 3845, 12, 22143, 9661, 974, 1957, 652, 1957, 13, 288, 202, 202, 1518, 1957, 18, 10828, 12, 6714, 1769, 202, 202, 6385, 776, 81, 5788, 974, 9033, 273, ...
Location loc = (Location) rr.get(1);
Gene gene = (Gene) rr.get(1); Location loc = (Location) rr.get(2); addToLocToGeneMap(locToGeneMap, loc, gene);
public void createIntergenicRegionFeatures() throws ObjectStoreException { Results results = PostProcessUtil.findLocations(os, Chromosome.class, Gene.class); results.setBatchSize(500); dataSet = (DataSet) DynamicUtil.createObject(Collections.singleton(DataSet.class)); dataSet.setTitle("FlyMine intergenic regions"); dataSet.setDescription("Intergenic regions created by FlyMine"); dataSet.setVersion("" + new Date()); // current time and date dataSet.setUrl("http://www.flymine.org"); dataSet.setDataSource(dataSource); Iterator resIter = results.iterator(); Integer previousChrId = null; Set locationSet = new HashSet(); while (resIter.hasNext()) { ResultsRow rr = (ResultsRow) resIter.next(); Integer chrId = (Integer) rr.get(0); Location loc = (Location) rr.get(1); if (previousChrId != null && !chrId.equals(previousChrId)) { Iterator irIter = createIntergenicRegionFeatures(locationSet, previousChrId); storeItergenicRegions(osw, irIter); locationSet = new HashSet(); } locationSet.add(loc); previousChrId = chrId; } if (previousChrId != null) { Iterator irIter = createIntergenicRegionFeatures(locationSet, previousChrId); storeItergenicRegions(osw, irIter); // we've created some IntergenicRegion objects so store() the DataSet osw.store(dataSet); } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/0deea374f54d7613d8da940b1ad34da82ec540c1/IntergenicRegionUtil.java/clean/flymine/model/genomic/src/java/org/flymine/postprocess/IntergenicRegionUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 2465, 4507, 335, 5165, 8696, 1435, 1216, 1033, 21151, 288, 3639, 10351, 1686, 273, 5411, 5616, 2227, 1304, 18, 4720, 10985, 12, 538, 16, 1680, 520, 16958, 18, 1106, 16, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 2465, 4507, 335, 5165, 8696, 1435, 1216, 1033, 21151, 288, 3639, 10351, 1686, 273, 5411, 5616, 2227, 1304, 18, 4720, 10985, 12, 538, 16, 1680, 520, 16958, 18, 1106, 16, 61...
"JSchException", "Auth fail");
"SmartFrogException", "Remote command: cmd1 failed with exit status");
public void testCaseTCN93() throws Exception { deployExpectingException(FILES+"tcn93.sf", "tcn93", "SmartFrogLifecycleException", null, "JSchException", "Auth fail"); }
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/3de2638b23eed34d2d2b7236d77895e03c30c198/SSHTest.java/buggy/core/testharness/testcases/org/smartfrog/test/system/components/ssh/SSHTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2449, 56, 12821, 11180, 1435, 1216, 1185, 288, 3639, 7286, 11988, 21546, 12, 12669, 9078, 5111, 82, 11180, 18, 21668, 3113, 4766, 315, 5111, 82, 11180, 3113, 4766, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2449, 56, 12821, 11180, 1435, 1216, 1185, 288, 3639, 7286, 11988, 21546, 12, 12669, 9078, 5111, 82, 11180, 18, 21668, 3113, 4766, 315, 5111, 82, 11180, 3113, 4766, 315,...
JavaClass superClass = obj.getSuperClass(); Method [] superClassMethods = superClass.getMethods(); superClassImplementsSerializable = Repository.instanceOf(superClass, "java.io.Serializable"); superClassHasVoidConstructor = false; for(int i = 0; i < superClassMethods.length; i++) { Method m = superClassMethods[i]; /* System.out.println("Supercase has method named " + m.getName() + " with sig " + m.getSignature()); */ if (m.getName().equals("<init>") && m.getSignature().equals("()V") && m.isPublic() ) superClassHasVoidConstructor = true;
JavaClass superClass = obj.getSuperClass(); if (superClass != null) { Method [] superClassMethods = superClass.getMethods(); superClassImplementsSerializable = Repository.instanceOf(superClass, "java.io.Serializable"); superClassHasVoidConstructor = false; for(int i = 0; i < superClassMethods.length; i++) { Method m = superClassMethods[i]; /* System.out.println("Supercase has method named " + m.getName() + " with sig " + m.getSignature()); */ if (m.getName().equals("<init>") && m.getSignature().equals("()V") && m.isPublic() ) superClassHasVoidConstructor = true; }
public void visit(JavaClass obj) { int flags = obj.getAccessFlags(); isAbstract = (flags & ACC_ABSTRACT) != 0 || (flags & ACC_INTERFACE) != 0; sawSerialVersionUID = false; isSerializable = implementsSerializableDirectly = false; isExternalizable = false; directlyImplementsExternalizable = false; isGUIClass = false; isRemote = false; // Does this class directly implement Serializable? String [] interface_names = obj.getInterfaceNames(); for(int i=0; i < interface_names.length; i++) { if (interface_names[i].equals("java.io.Externalizable")) { directlyImplementsExternalizable = true; isExternalizable = true; // System.out.println("Directly implements Externalizable: " + betterClassName); } else if (interface_names[i].equals("java.io.Serializable")) { implementsSerializableDirectly = true; isSerializable = true; break; } } // Does this class indirectly implement Serializable? if (!isSerializable) { try { if (Repository.instanceOf(obj,"java.io.Externalizable")) isExternalizable = true; if (Repository.instanceOf(obj,"java.io.Serializable")) isSerializable = true; if (Repository.instanceOf(obj,"java.rmi.Remote")) { isRemote = true; } } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); } } hasPublicVoidConstructor = false; superClassHasVoidConstructor = true; superClassImplementsSerializable = isSerializable && !implementsSerializableDirectly; try { JavaClass superClass = obj.getSuperClass(); Method [] superClassMethods = superClass.getMethods(); superClassImplementsSerializable = Repository.instanceOf(superClass, "java.io.Serializable"); superClassHasVoidConstructor = false; for(int i = 0; i < superClassMethods.length; i++) { Method m = superClassMethods[i]; /* System.out.println("Supercase has method named " + m.getName() + " with sig " + m.getSignature()); */ if (m.getName().equals("<init>") && m.getSignature().equals("()V") && m.isPublic() ) superClassHasVoidConstructor = true; } } catch (ClassNotFoundException e) {} if (isSerializable && !isExternalizable && !superClassHasVoidConstructor && !superClassImplementsSerializable) bugReporter.reportBug(new BugInstance("SE_NO_SUITABLE_CONSTRUCTOR", implementsSerializableDirectly ? HIGH_PRIORITY : NORMAL_PRIORITY) .addClass(thisClass.getClassName())); // Is this a GUI class? try { isGUIClass = Repository.instanceOf(obj, "java.awt.Component"); } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); } foundSynthetic = false; foundSynchronizedMethods = false; writeObjectIsSynchronized = false; sawReadExternal = sawWriteExternal = sawReadObject = sawWriteObject = false; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/8f76827409759795f541937cb0f052f05782f7f2/SerializableIdiom.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/SerializableIdiom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12, 5852, 797, 1081, 13, 377, 288, 4202, 202, 474, 2943, 273, 1081, 18, 588, 1862, 5094, 5621, 202, 291, 7469, 273, 261, 7133, 473, 18816, 67, 26756, 13, 480, 374, 4697...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12, 5852, 797, 1081, 13, 377, 288, 4202, 202, 474, 2943, 273, 1081, 18, 588, 1862, 5094, 5621, 202, 291, 7469, 273, 261, 7133, 473, 18816, 67, 26756, 13, 480, 374, 4697...
} catch (Exception e) {
} catch (Exception e) {
public Object getComponent(Object key) throws ObjectNotFoundException { if (key == null) { throw new ObjectNotFoundException("Component not found for null key"); } try { Class clazz; if (key instanceof Class) { clazz = (Class) key; } else { clazz = ClassUtils.loadClass(key.toString(), getClass()); } return clazz.newInstance(); } catch (Exception e) { throw new ObjectNotFoundException(key.toString() + " (" + e.getMessage() + ")"); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/175cf9e55a7a61f557593e09105f6b206652096c/MuleContainerContext.java/clean/core/src/main/java/org/mule/impl/container/MuleContainerContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 10322, 12, 921, 498, 13, 1216, 1033, 3990, 565, 288, 3639, 309, 261, 856, 422, 446, 13, 288, 5411, 604, 394, 1033, 3990, 2932, 1841, 486, 1392, 364, 446, 498, 8863, 3639, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 10322, 12, 921, 498, 13, 1216, 1033, 3990, 565, 288, 3639, 309, 261, 856, 422, 446, 13, 288, 5411, 604, 394, 1033, 3990, 2932, 1841, 486, 1392, 364, 446, 498, 8863, 3639, 28...
}
node.setIpInterfaces(new LinkedHashSet<OnmsIpInterface>()); }
public OnmsNode getHierarchy(Integer id) { final String hierarchyQuery = "SELECT " + "node.nodeid as nodeid, " + "node.dpName as dpName, " + "node.nodeCreateTime as nodeCreateTime, " + "node.nodeParentID as nodeParentID, " + "node.nodeType as nodeType, " + "node.nodeSysOid as nodeSysOid, " + "node.nodeSysName as nodeSysName, " + "node.nodeSysDescription as nodeSysDescription, " + "node.nodeSysLocation as nodeSysLocation, " + "node.nodeSysContact as nodeSysContact, " + "node.nodeLabel as nodeLabel, " + "node.nodeLabelSource as nodeLabelSource, " + "node.nodeNetBiosName as nodeNetBiosName, " + "node.nodeDomainName as nodeDomainName, " + "node.operatingSystem as operatingSystem, " + "node.lastCapsdPoll as lastCapsdPoll, " + "ipInterface.nodeID as ipInterface_nodeID, " + "ipInterface.ipAddr as ipInterface_ipAddr, " + "ipInterface.ifIndex as ipInterface_ifIndex, " + "ipInterface.ipHostname as ipInterface_ipHostname, " + "ipInterface.isManaged as ipInterface_isManaged, " + "ipInterface.ipStatus as ipInterface_ipStatus, " + "ipInterface.ipLastCapsdPoll as ipInterface_ipLastCapsdPoll, " + "ipInterface.isSnmpPrimary as ipInterface_isSnmpPrimary, " + "ifservices.nodeid as ifservices_nodeid, " + "ifservices.ipAddr as ifservices_ipAddr, " + "ifservices.ifIndex as ifservices_ifIndex, " + "ifservices.serviceId as ifservices_serviceId, " + "ifservices.lastGood as ifservices_lastGood, " + "ifservices.lastFail as ifservices_lastFail, " + "ifservices.qualifier as ifservices_qualifier, " + "ifservices.status as ifservices_status, " + "ifservices.source as ifservices_source, " + "ifservices.notify as ifservices_notify, " + "outages.outageID as outages_outageID, " + "outages.svcLostEventID as outages_svcLostEventID, " + "outages.svcRegainedEventID as outages_svcRegainedEventID, " + "outages.nodeID as outages_nodeID, " + "outages.ipAddr as outages_ipAddr, " + "outages.serviceID as outages_serviceID, " + "ifservices.ifIndex as outages_ifIndex, " + "outages.ifLostService as outages_ifLostService, " + "outages.ifRegainedService as outages_ifRegainedService, " + "outages.suppressTime as outages_suppressTime, " + "outages.suppressedBy as outages_suppressedBy " + "FROM node " + "LEFT JOIN ipInterface ON (node.nodeId = ipInterface.nodeId) " + "LEFT JOIN ifservices ON (ipInterface.nodeId = ifservices.nodeId AND ipInterface.ipAddr = ifservices.ipAddr) " + "LEFT JOIN outages ON (ifServices.nodeId = outages.nodeId AND ifServices.ipAddr = outages.ipAddr AND ifServices.serviceID = outages.serviceId AND outages.ifRegainedService is null) " + "WHERE node.nodeId = ?" + ""; RowMapper rowMapper = new RowMapper() { // we use the lazy mapper to that the other relationships that we are using // are filling in in a lazy way NodeMapper nodeMapper = new NodeMapperWithLazyRelatives(getDataSource()) { @Override protected void setIpInterfaces(OnmsNode node) { // we override this to do nothing and just fill in the set with the rest of the query } }; IpInterfaceMapper ifMapper = new IpInterfaceMapper(); MonitoredServiceMapper monSvcMapper = new MonitoredServiceMapper(); OutageMapper outageMapper = new OutageMapper(); public Object mapRow(ResultSet rs, int rowNum) throws SQLException { OnmsNode node = nodeMapper.mapNode(rs, rowNum); OnmsIpInterface iface = ifMapper.mapInterface(rs, rowNum); if (iface != null) { node.getIpInterfaces().add(iface); OnmsMonitoredService monSvc = (OnmsMonitoredService)monSvcMapper.mapRow(rs, rowNum); if (monSvc != null) { iface.getMonitoredServices().add(monSvc); OnmsOutage outage = (OnmsOutage)outageMapper.mapRow(rs, rowNum); if (outage != null) { monSvc.getCurrentOutages().add(outage); } } } return node; } }; Set<OnmsNode> nodes = new HashSet<OnmsNode>(getJdbcTemplate().query(hierarchyQuery, new Object[] { id }, rowMapper)); if (nodes.isEmpty()) return null; else if (nodes.size() == 1) return (OnmsNode)nodes.iterator().next(); else throw new IncorrectResultSizeDataAccessException("Unexpected number of nodes returned.", 1, nodes.size()); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/600027a3ade97dc3a449702132515af836849e9e/NodeDaoJdbc.java/clean/opennms-dao/src/main/java/org/opennms/netmgt/dao/jdbc/NodeDaoJdbc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2755, 959, 907, 7628, 6000, 12, 4522, 612, 13, 288, 377, 202, 377, 202, 6385, 514, 9360, 1138, 273, 315, 4803, 315, 397, 377, 202, 6, 2159, 18, 2159, 350, 487, 756, 350, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2755, 959, 907, 7628, 6000, 12, 4522, 612, 13, 288, 377, 202, 377, 202, 6385, 514, 9360, 1138, 273, 315, 4803, 315, 397, 377, 202, 6, 2159, 18, 2159, 350, 487, 756, 350, 16,...
Object [] ps = data.functionParameters;
IType [] ps = getSourceParameterTypes( data.functionParameters );
static private ObjectSet getAssociatedScopes( LookupData data ) { Object [] ps = data.functionParameters; ObjectSet namespaces = new ObjectSet(2); ObjectSet classes = new ObjectSet(2); for( int i = 0; i < ps.length; i++ ){ IType p = getSourceParameterType( ps, i ); p = getUltimateType( p, true ); try { getAssociatedScopes( p, namespaces, classes ); } catch ( DOMException e ) { } } return namespaces; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8668326658b0f27894800cc82d1a0ab01448d0b1/CPPSemantics.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3238, 1033, 694, 336, 19233, 12668, 12, 8834, 751, 501, 262, 288, 3639, 467, 559, 5378, 4250, 273, 7889, 1662, 2016, 12, 501, 18, 915, 2402, 11272, 3639, 1033, 694, 7728, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3238, 1033, 694, 336, 19233, 12668, 12, 8834, 751, 501, 262, 288, 3639, 467, 559, 5378, 4250, 273, 7889, 1662, 2016, 12, 501, 18, 915, 2402, 11272, 3639, 1033, 694, 7728, 273, 394, ...
baseport, vlan .intValue());
baseport, vlan);
private void storeSnmpCollection(Connection dbConn, Timestamp now) throws SQLException, UnknownHostException { Category log = ThreadCategory.getInstance(getClass()); PreparedStatement stmt = null; ResultSet rs = null; Iterator ite = null; int nodeid = m_node.getNodeId(); if (m_snmpcoll.hasIpNetToMediaTable()) { ite = m_snmpcoll.getIpNetToMediaTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving IpNetToMediaTable to atinterface table in DB"); while (ite.hasNext()) { int atnodeid = -1; IpNetToMediaTableEntry ent = (IpNetToMediaTableEntry) ite .next(); int ifindex = ent .getInt32(IpNetToMediaTableEntry.INTM_INDEX); String physAddr = ent .getHexString(IpNetToMediaTableEntry.INTM_PHYSADDR); InetAddress ipaddress = ent .getIPAddress(IpNetToMediaTableEntry.INTM_NETADDR); if (log.isDebugEnabled()) log.debug("store: trying save info for ipaddr " + ipaddress.getHostName() + " mac address " + physAddr + " found on ifindex " + ifindex); try { stmt = dbConn.prepareStatement(SQL_GET_NODEID); stmt.setString(1, ipaddress.getHostAddress()); rs = stmt.executeQuery(); if (!rs.next()) { rs.close(); stmt.close(); if (log.isEnabledFor(Priority.WARN)) log.warn("store: no nodeid found for ipaddress " + ipaddress + "."); continue; } int ndx = 1; atnodeid = rs.getInt(ndx++); if (rs.wasNull()) { if (log.isEnabledFor(Priority.WARN)) log.warn("store: no nodeid find for ipaddress " + ipaddress + "."); continue; } } finally { if (rs != null) rs.close(); if (stmt != null) stmt.close(); } if (physAddr.equals("000000000000")) { log.warn("store: mac address " + physAddr + " is invalid for ipaddress " + ipaddress.getHostAddress()); continue; } DbAtInterfaceEntry atInterfaceEntry = DbAtInterfaceEntry.get( dbConn, atnodeid, ipaddress.getHostAddress()); if (atInterfaceEntry == null) { atInterfaceEntry = DbAtInterfaceEntry.create(atnodeid, ipaddress.toString()); } // update object atInterfaceEntry.updateAtPhysAddr(physAddr); atInterfaceEntry.updateSourceNodeId(nodeid); atInterfaceEntry.updateIfIndex(ifindex); atInterfaceEntry.updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); atInterfaceEntry.set_lastpolltime(now); // store object in database atInterfaceEntry.store(dbConn); } } if (m_snmpcoll.hasCdpCacheTable()) { java.util.List cdpInterfaces = new java.util.ArrayList(); ite = m_snmpcoll.getCdpCacheTable() .getEntries().iterator(); while (ite.hasNext()) { CdpCacheTableEntry cdpEntry = (CdpCacheTableEntry) ite.next(); int cdpAddrType = cdpEntry.getInt32(CdpCacheTableEntry.CDP_ADDRESS_TYPE); if (cdpAddrType != 1) continue; InetAddress cdpTargetIpAddr = cdpEntry.getIPAddress(CdpCacheTableEntry.CDP_ADDRESS); int cdpIfIndex = cdpEntry.getInt32(CdpCacheTableEntry.CDP_IFINDEX); String cdpTargetDevicePort = cdpEntry.getHexString(CdpCacheTableEntry.CDP_DEVICEPORT); CdpInterface cdpIface = new CdpInterface(cdpIfIndex); int targetCdpNodeId = getNodeidFromIp(dbConn, cdpTargetIpAddr); cdpIface.setCdpTargetNodeId(targetCdpNodeId); cdpIface.setCdpTargetIpAddr(cdpTargetIpAddr); cdpIface.setCdpTargetIfIndex(getIfIndexFromSnmpInterfaceIfName( dbConn, targetCdpNodeId, cdpTargetDevicePort.toString())); cdpInterfaces.add(cdpIface); } m_node.setCdpInterfaces(cdpInterfaces); } if (m_snmpcoll.hasRouteTable()) { java.util.List routeInterfaces = new java.util.ArrayList(); ite = m_snmpcoll.getIpRouteTable().getEntries() .iterator(); if (log.isDebugEnabled()) log .debug("store: saving ipRouteTable to iprouteinterface table in DB"); while (ite.hasNext()) { IpRouteTableEntry ent = (IpRouteTableEntry) ite.next(); InetAddress routedest = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_DEST); InetAddress routemask = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_MASK); InetAddress nexthop = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_NXTHOP); int ifindex = ent.getInt32(IpRouteTableEntry.IP_ROUTE_IFINDEX); int routemetric1 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC1); int routemetric2 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC2); int routemetric3 =ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC3); int routemetric4 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC4); int routemetric5 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC5); int routetype = ent.getInt32(IpRouteTableEntry.IP_ROUTE_TYPE); int routeproto = ent.getInt32(IpRouteTableEntry.IP_ROUTE_PROTO); // info used for Discovery Link RouterInterface routeIface = new RouterInterface(ifindex); routeIface.setMetric(routemetric1); routeIface.setNextHop(nexthop); routeIface.setSnmpiftype(getSnmpIfType(dbConn, nodeid, ifindex)); routeIface.setNodeparentid(getNodeidFromIp(dbConn,nexthop)); routeInterfaces.add(routeIface); // save info to DB DbIpRouteInterfaceEntry iprouteInterfaceEntry = DbIpRouteInterfaceEntry .get(dbConn, nodeid, routedest.toString()); if (iprouteInterfaceEntry == null) { // Create a new entry iprouteInterfaceEntry = DbIpRouteInterfaceEntry.create( m_node.getNodeId(), routedest.toString()); } // update object iprouteInterfaceEntry.updateRouteMask(routemask.getHostAddress()); iprouteInterfaceEntry.updateRouteNextHop(nexthop.getHostAddress()); iprouteInterfaceEntry.updateIfIndex(ifindex); if (routemetric1 != -1) iprouteInterfaceEntry.updateRouteMetric1(routemetric1); if (routemetric2 != -1) iprouteInterfaceEntry.updateRouteMetric2(routemetric2); if (routemetric3 != -1) iprouteInterfaceEntry.updateRouteMetric3(routemetric3); if (routemetric4 != -1) iprouteInterfaceEntry.updateRouteMetric4(routemetric4); if (routemetric5 != -1) iprouteInterfaceEntry.updateRouteMetric5(routemetric5); if (routetype != -1) iprouteInterfaceEntry.updateRouteType(routetype); if (routeproto != -1) iprouteInterfaceEntry.updateRouteProto(routeproto); iprouteInterfaceEntry .updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); iprouteInterfaceEntry.set_lastpolltime(now); // store object in database iprouteInterfaceEntry.store(dbConn); } m_node.setRouteInterfaces(routeInterfaces); } // STARTS loop on vlans if (m_snmpcoll.hasVlanTable()) { ite = m_snmpcoll.getSnmpVlanCollections() .iterator(); while (ite.hasNext()) { SnmpVlanCollection snmpVlanColl = (SnmpVlanCollection) ite .next(); String vlanindex = snmpVlanColl.getVlanIndex(); Integer vlan = new Integer(vlanindex); String vlanname = m_snmpcoll.getVlanName( vlanindex); if (log.isDebugEnabled()) log .debug("store: saving SnmpVlanCollection entries in DB for VLAN " + vlanname + " index " + vlan); if (snmpVlanColl.hasDot1dBase()) { if (log.isDebugEnabled()) log .debug("store: saving Dot1dBaseGroup in stpnode table in DB"); Dot1dBaseGroup dod1db = (Dot1dBaseGroup) snmpVlanColl.getDot1dBase(); String baseBridgeAddress = dod1db.getBridgeAddress(); int basenumports = dod1db.getNumberOfPorts(); int bridgetype = dod1db.getBridgeType(); if (baseBridgeAddress == "000000000000") { log.warn("store: base bridge address " + baseBridgeAddress + " is invalid for ipaddress " ); } else { m_node.addBridgeIdentifier(baseBridgeAddress,vlanindex); DbStpNodeEntry dbStpNodeEntry = DbStpNodeEntry.get(dbConn, m_node.getNodeId(), vlan.intValue()); if (dbStpNodeEntry == null) { // Create a new entry dbStpNodeEntry = DbStpNodeEntry.create(m_node .getNodeId(), vlan.intValue()); } // update object dbStpNodeEntry.updateBaseBridgeAddress(baseBridgeAddress); dbStpNodeEntry.updateBaseNumPorts(basenumports); dbStpNodeEntry.updateBaseType(bridgetype); dbStpNodeEntry.updateBaseVlanName(vlanname); if (snmpVlanColl.hasDot1dStp()) { if (log.isDebugEnabled()) log .debug("store: saving Dot1dStpGroup in stpnode table in DB"); Dot1dStpGroup dod1stp = (Dot1dStpGroup) snmpVlanColl .getDot1dStp(); int protospec = dod1stp.getStpProtocolSpecification(); int stppriority = dod1stp.getStpPriority(); String stpDesignatedRoot = dod1stp.getStpDesignatedRoot(); int stprootcost = dod1stp.getStpRootCost(); int stprootport = dod1stp.getStpRootPort(); if (stpDesignatedRoot != "0000000000000000") { m_node.setVlanStpRoot(vlanindex,stpDesignatedRoot); } dbStpNodeEntry.updateStpProtocolSpecification(protospec); dbStpNodeEntry.updateStpPriority(stppriority); dbStpNodeEntry.updateStpDesignatedRoot(stpDesignatedRoot); dbStpNodeEntry.updateStpRootCost(stprootcost); dbStpNodeEntry.updateStpRootPort(stprootport); } // store object in database dbStpNodeEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpNodeEntry.set_lastpolltime(now); dbStpNodeEntry.store(dbConn); if (snmpVlanColl.hasDot1dBasePortTable()) { Iterator sub_ite = snmpVlanColl.getDot1dBasePortTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving Dot1dBasePortTable in stpinterface table in DB"); while (sub_ite.hasNext()) { Dot1dBasePortTableEntry dot1dbaseptentry = (Dot1dBasePortTableEntry) sub_ite .next(); int baseport = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_PORT); int ifindex = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_IFINDEX); m_node.setIfIndexBridgePort(ifindex,baseport); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), baseport, vlan .intValue()); if (dbStpIntEntry == null) { // Create a new entry dbStpIntEntry = DbStpInterfaceEntry.create( m_node.getNodeId(), baseport, vlan.intValue()); } dbStpIntEntry.updateIfIndex(ifindex); dbStpIntEntry .updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } if (snmpVlanColl.hasDot1dStpPortTable()) { if (log.isDebugEnabled()) log .debug(" store: saving Dot1dStpPortTable in stpinterface table in DB"); Iterator sub_ite = snmpVlanColl.getDot1dStpPortTable() .getEntries().iterator(); while (sub_ite.hasNext()) { Dot1dStpPortTableEntry dot1dstpptentry = (Dot1dStpPortTableEntry) sub_ite .next(); int stpport = dot1dstpptentry.getInt32(Dot1dStpPortTableEntry.STP_PORT); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), stpport, vlan.intValue()); if (dbStpIntEntry == null) { // Cannot create the object becouse must exists the dot1dbase // object!!!!! if (log.isEnabledFor(Priority.WARN)) log .warn("store StpInterface: when storing STP info" + " for bridge node with nodeid " + m_node.getNodeId() + " bridgeport number " + stpport + " and vlan index " + vlanindex + " info not found in database, ERROR skipping....."); } else { int stpportstate = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_STATE); int stpportpathcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_PATH_COST); String stpPortDesignatedBridge = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_BRIDGE); String stpPortDesignatedRoot = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_ROOT); int stpportdesignatedcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_COST); String stpPortDesignatedPort = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_PORT); if (stpPortDesignatedBridge.equals("0000000000000000")) { log.warn("storeSnmpCollection: designated bridge is invalid not adding to discoveryLink"); } else if (stpPortDesignatedPort.equals("0000")) { log.warn("storeSnmpCollection: designated port is invalid not adding to discoveryLink"); } else { BridgeStpInterface stpIface = new BridgeStpInterface(stpport,vlanindex); stpIface.setStpPortDesignatedBridge(stpPortDesignatedBridge); stpIface.setStpPortDesignatedPort(stpPortDesignatedPort); m_node.addStpInterface(stpIface); } dbStpIntEntry.updateStpPortState(stpportstate); dbStpIntEntry.updateStpPortPathCost(stpportpathcost); dbStpIntEntry.updateStpportDesignatedBridge(stpPortDesignatedBridge); dbStpIntEntry.updateStpportDesignatedRoot(stpPortDesignatedRoot); dbStpIntEntry.updateStpPortDesignatedCost(stpportdesignatedcost); dbStpIntEntry.updateStpportDesignatedPort(stpPortDesignatedPort); dbStpIntEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } } if (snmpVlanColl.hasDot1dTpFdbTable()) { Iterator subite = snmpVlanColl.getDot1dFdbTable() .getEntries().iterator(); while (subite.hasNext()) { Dot1dTpFdbTableEntry dot1dfdbentry = (Dot1dTpFdbTableEntry) subite .next(); String curMacAddress = dot1dfdbentry .getHexString(Dot1dTpFdbTableEntry.FDB_ADDRESS); int fdbport = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_PORT); if (fdbport == 0) { if (log.isDebugEnabled()) log.debug("populateBridge: macaddress " + curMacAddress + " learned on invalid port " + fdbport + " . Skipping"); continue; } int curfdbstatus = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_STATUS); if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_LEARNED) { m_node.addMacAddress(fdbport, curMacAddress, vlanindex); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found learned mac address " + curMacAddress + " on bridge port " + fdbport + " for VLAN " + snmpVlanColl.getVlanIndex()); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_SELF) { m_node.addBridgeIdentifier(curMacAddress); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + curMacAddress + " for VLAN " + snmpVlanColl.getVlanIndex() + " and bridge port " + fdbport); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_INVALID) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has INVALID status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_MGMT) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has MGMT status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_OTHER) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has OTHER status on port " + fdbport + " . Skipping"); continue; } } } //now adding bridge identifier mac addresses of switch from snmpinterface stmt = dbConn.prepareStatement(SQL_GET_SNMPPHYSADDR_SNMPINTERFACE); stmt.setInt(1, m_node.getNodeId()); rs = stmt.executeQuery(); while (rs.next()) { String macaddr = rs.getString("snmpphysaddr"); if (macaddr == null) continue; m_node.addBridgeIdentifier(macaddr); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + macaddr + " from snmpinterface db table"); } //now adding bridge identifier mac addresses of switch from snmpinterface stmt = dbConn.prepareStatement(SQL_GET_ATPHYSADDR_SNMPINTERFACE); stmt.setInt(1, m_node.getNodeId()); rs = stmt.executeQuery(); while (rs.next()) { String macaddr = rs.getString("atphysaddr"); if (macaddr == null) continue; m_node.addBridgeIdentifier(macaddr); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + macaddr + " from atinterface db table"); } } } } } int i = 0; stmt = dbConn.prepareStatement(SQL_UPDATE_ATINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_IPROUTEINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_STPNODE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_STPINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/f3e13aa5f29f79fb74c5975bb7cf59814d4d4cb1/DbEventWriter.java/clean/opennms-services/src/main/java/org/opennms/netmgt/linkd/DbEventWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1707, 10461, 1291, 2532, 12, 1952, 30795, 16, 8159, 2037, 13, 1216, 6483, 16, 1082, 202, 4874, 29776, 288, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1707, 10461, 1291, 2532, 12, 1952, 30795, 16, 8159, 2037, 13, 1216, 6483, 16, 1082, 202, 4874, 29776, 288, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, ...
return getFilterProperties(null); }
return getFilterProperties(null); }
public final org.rcfaces.core.model.IFilterProperties getFilterProperties() { return getFilterProperties(null); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/ComboComponent.java/clean/org.rcfaces.core/src/org/rcfaces/core/component/ComboComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 2358, 18, 1310, 4601, 18, 3644, 18, 2284, 18, 45, 1586, 2297, 12267, 2297, 1435, 288, 3639, 327, 12267, 2297, 12, 2011, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 2358, 18, 1310, 4601, 18, 3644, 18, 2284, 18, 45, 1586, 2297, 12267, 2297, 1435, 288, 3639, 327, 12267, 2297, 12, 2011, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, ...
results = compare(retEnv, tempPath); assertTrue(results);
compareXML(retEnv, tempPath);
public void testR2GBEchoNestedArray() throws AxisFault { url = "http://www.mssoapinterop.org:80/Remoting/ServiceB.soap"; soapAction = "http://soapinterop.org/"; util = new GroupbEchoNestedArrayUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "MSRemGroupbNestedArrayRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/MSRemRound2InteropTest.java/buggy/modules/integration/itest/test/interop/whitemesa/round2/MSRemRound2InteropTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 5887, 19704, 8649, 1076, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 959, 19215, 30376, 18, 3341, 30, 3672, 19, 1933, 17128, 19, 1179...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 5887, 19704, 8649, 1076, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 959, 19215, 30376, 18, 3341, 30, 3672, 19, 1933, 17128, 19, 1179...
public void mINT() throws RecognitionException { try { int type = INT; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:773:17: ( ( '-' )? ( '0' .. '9' )+ ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:773:17: ( '-' )? ( '0' .. '9' )+ { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:773:17: ( '-' )? int alt3=2; int LA3_0 = input.LA(1); if ( LA3_0=='-' ) { alt3=1; } else if ( (LA3_0>='0' && LA3_0<='9') ) { alt3=2; } else { NoViableAltException nvae = new NoViableAltException("773:17: ( \'-\' )?", 3, 0, input); throw nvae; } switch (alt3) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:773:18: '-' { match('-'); } break; } // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:773:23: ( '0' .. '9' )+ int cnt4=0; loop4: do { int alt4=2; int LA4_0 = input.LA(1); if ( (LA4_0>='0' && LA4_0<='9') ) { alt4=1; } switch (alt4) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:773:24: '0' .. '9' { matchRange('0','9'); } break; default : if ( cnt4 >= 1 ) break loop4; EarlyExitException eee = new EarlyExitException(4, input); throw eee; } cnt4++; } while (true); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 3217, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 509, 618, 273, 6137, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 3217, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 509, 618, 273, 6137, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555,...
final BigDecimal stripped = _value.stripTrailingZeros();
final BigDecimal stripped = BigDecimalHelper.stripTrailingZeros( _value );
public static String stringFromBigDecimal( BigDecimal _value ) { if (_value.compareTo( BigDecimal.ZERO ) == 0) return "0"; // avoid "0.0" final BigDecimal stripped = _value.stripTrailingZeros(); final int scale = stripped.scale(); final int prec = BigDecimalHelper.precision( stripped ); final int ints = prec - scale; if (ints > 20) { return stripped.toString(); } else { return stripped.toPlainString(); } }
57629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57629/26ead82a310c69b076534d9fb65ee6791842401b/Runtime_v1.java/buggy/src/classes/sej/internal/runtime/Runtime_v1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 533, 1265, 29436, 12, 8150, 389, 1132, 262, 202, 95, 202, 202, 430, 261, 67, 1132, 18, 9877, 774, 12, 8150, 18, 24968, 262, 422, 374, 13, 327, 315, 20, 14432, 368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 533, 1265, 29436, 12, 8150, 389, 1132, 262, 202, 95, 202, 202, 430, 261, 67, 1132, 18, 9877, 774, 12, 8150, 18, 24968, 262, 422, 374, 13, 327, 315, 20, 14432, 368,...
vPhaseReport.addElement(r);
addReport(r);
private void resolveDfaAttack(PhysicalResult pr, int lastEntityId) { final DfaAttackAction daa = (DfaAttackAction)pr.aaa; final Entity ae = game.getEntity(daa.getEntityId()); final Targetable target = game.getTarget(daa.getTargetType(), daa.getTargetId()); // get damage, ToHitData and roll from the PhysicalResult int damage = pr.damage; final ToHitData toHit = pr.toHit; int roll = pr.roll; Entity te = null; if (target != null && target.getTargetType() == Targetable.TYPE_ENTITY) { // Lets re-write around that horrible hack that was here before. // So instead of asking if a specific location is wet and praying // that it won't cause an NPE... // We'll check 1) if the hex has water, and 2) if it's deep enough // to cover the unit in question at its current elevation. // It's especially important to make sure it's done this way, // because some units (Sylph, submarines) can be at ANY elevation // underwater, and VTOLs can be well above the surface. te = (Entity)target; IHex hex = game.getBoard().getHex(te.getPosition()); if (hex.containsTerrain(Terrains.WATER)) { if (te.absHeight() < hex.getElevation()) damage = (int)Math.ceil(damage * 0.5f); } } boolean throughFront = true; if (te!=null) { throughFront = Compute.isThroughFrontHex(game, daa.getEntityId(), te); } final boolean glancing = (game.getOptions().booleanOption("maxtech_glancing_blows") && (roll == toHit.getValue())); Report r; // Which building takes the damage? Building bldg = game.getBoard().getBuildingAt( daa.getTargetPos() ); // is the attacker dead? because that sure messes up the calculations if (ae == null) { return; } final int direction = ae.getFacing(); if (lastEntityId != daa.getEntityId()) { //who is making the attack r = new Report(4005); r.subject = ae.getId(); r.addDesc(ae); vPhaseReport.addElement(r); } // entity isn't DFAing any more ae.setDisplacementAttack(null); // should we even bother? if (target == null || (target.getTargetType() == Targetable.TYPE_ENTITY && (te.isDestroyed() || te.isDoomed() || te.crew.isDead()))) { r = new Report(4245); r.subject = ae.getId(); r.indent(); vPhaseReport.addElement(r); if (ae.isProne()) { // attacker prone during weapons phase doEntityFall(ae, daa.getTargetPos(), 2, 3, ae.getBasePilotingRoll()); } else { // same effect as successful DFA doEntityDisplacement(ae, ae.getPosition(), daa.getTargetPos(), new PilotingRollData(ae.getId(), 4, "executed death from above")); } return; } r = new Report(4246); r.subject = ae.getId(); r.indent(); r.add(target.getDisplayName()); r.newlines = 0; vPhaseReport.addElement(r); // target still in the same position? if ( !target.getPosition().equals(daa.getTargetPos()) ) { r = new Report(4215); r.subject = ae.getId(); vPhaseReport.addElement(r); doEntityFallsInto(ae, ae.getPosition(), daa.getTargetPos(), ae.getBasePilotingRoll()); return; } // hack: if the attacker's prone, or incapacitated, fudge the roll if (ae.isProne() || !ae.isActive()) { roll = -12; r = new Report(4250); r.subject = ae.getId(); r.add(toHit.getDesc()); vPhaseReport.addElement(r); } else if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; r = new Report(4255); r.subject = ae.getId(); r.add(toHit.getDesc()); vPhaseReport.addElement(r); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { r = new Report(4260); r.subject = ae.getId(); r.add(toHit.getDesc()); vPhaseReport.addElement(r); roll = Integer.MAX_VALUE; } else { // report the roll r = new Report(4025); r.subject = ae.getId(); r.add(toHit.getValue()); r.add(roll); r.newlines = 0; vPhaseReport.addElement(r); if (glancing) { r = new Report(4030); r.subject = ae.getId(); r.newlines = 0; vPhaseReport.addElement(r); } } // do we hit? if (roll < toHit.getValue()) { Coords dest = te.getPosition(); Coords targetDest = Compute.getPreferredDisplacement(game, te.getId(), dest, direction); //miss r = new Report(4035); r.subject = ae.getId(); vPhaseReport.addElement(r); if (targetDest != null) { // attacker falls into destination hex r = new Report(4265); r.subject = ae.getId(); r.addDesc(ae); r.add(dest.getBoardNum(), true); vPhaseReport.addElement(r); doEntityFall(ae, dest, 2, 3, ae.getBasePilotingRoll()); // move target to preferred hex doEntityDisplacement(te, dest, targetDest, null); } else { // attacker destroyed Tanks // suffer an ammo/power plant hit. // TODO : a Mech suffers a Head Blown Off crit. vPhaseReport.addAll( destroyEntity(ae, "impossible displacement", (ae instanceof Mech), (ae instanceof Mech))); } return; } // we hit... // Can't DFA a target inside of a building. int damageTaken = DfaAttackAction.getDamageTakenBy(ae); r = new Report(4040); r.subject = ae.getId(); vPhaseReport.addElement(r); // Targeting a building. if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. Report buildingReport = damageBuilding( bldg, damage ); buildingReport.indent(); buildingReport.subject = ae.getId(); vPhaseReport.addElement(buildingReport); // Damage any infantry in the hex. this.damageInfantryIn( bldg, damage ); } // Target isn't building. else { if (glancing) { damage = (int)Math.floor(damage/2.0); } //damage target r = new Report(4230); r.subject = ae.getId(); r.add(damage); r.add(toHit.getTableDesc()); r.newlines = 0; vPhaseReport.addElement(r); while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = te.rollHitLocation(toHit.getHitTable(), toHit.getSideTable()); vPhaseReport.addAll( damageEntity(te, hit, cluster, false, 0, false, false, throughFront)); damage -= cluster; } } if (glancing) { // Glancing Blow rule doesn't state whether damage to attacker on charge // or DFA is halved as well, assume yes. TODO: Check with PM damageTaken = (int)Math.floor(damageTaken/2.0); } //damage attacker r = new Report(4240); r.subject = ae.getId(); r.add(damageTaken); r.newlines = 0; vPhaseReport.addElement(r); while (damageTaken > 0) { int cluster = Math.min(5, damageTaken); HitData hit = ae.rollHitLocation(ToHitData.HIT_KICK, ToHitData.SIDE_FRONT); vPhaseReport.addAll( damageEntity(ae, hit, cluster)); damageTaken -= cluster; } Report.addNewline(vPhaseReport); // That's it for target buildings. // TODO: where do I put the attacker?!? if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { return; } // Target entities are pushed away or destroyed. Coords dest = te.getPosition(); Coords targetDest = Compute.getValidDisplacement(game, te.getId(), dest, direction); if (targetDest != null) { doEntityDisplacement(te, dest, targetDest, new PilotingRollData(te.getId(), 2, "hit by death from above")); } else { // ack! automatic death! Tanks // suffer an ammo/power plant hit. // TODO : a Mech suffers a Head Blown Off crit. vPhaseReport.addAll( destroyEntity(te, "impossible displacement", (te instanceof Mech), (te instanceof Mech))); } // HACK: to avoid automatic falls, displace from dest to dest doEntityDisplacement(ae, dest, dest, new PilotingRollData(ae.getId(), 4, "executed death from above")); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/0259d527ea17f9b6ac49ee6eb9adc9e0d12e163f/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 40, 507, 3075, 484, 12, 18136, 1253, 846, 16, 509, 1142, 18029, 13, 288, 3639, 727, 463, 507, 3075, 484, 1803, 5248, 69, 273, 261, 40, 507, 3075, 484, 1803, 13, 683, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 40, 507, 3075, 484, 12, 18136, 1253, 846, 16, 509, 1142, 18029, 13, 288, 3639, 727, 463, 507, 3075, 484, 1803, 5248, 69, 273, 261, 40, 507, 3075, 484, 1803, 13, 683, ...
if (debug>=3) System.out.println("TraceHeader() METHOD_RECORD mid "+mid+" : "+full_name);
if (debug>=3) System.out.println(trips+": TraceHeader() METHOD_RECORD mid "+mid+" : "+full_name);
public TraceHeader(String header_filename, String trace_filename) { filename = trace_filename; DataInputStream input_file = openTraceMetaFile(header_filename, trace_filename); version = Utilities.getIntFromDataInputStream(input_file); n_counters = Utilities.getIntFromDataInputStream(input_file); mode = Utilities.getIntFromDataInputStream(input_file); if(debug>=1) System.out.println(" version "+version+", n_counters "+n_counters+", mode "+mode); int n_elements = n_counters+1; // allocate and initialize arrays short_event_names = new String[ n_elements]; ids = new int[ n_elements]; status = new int[ n_elements]; thresholdable = new boolean[n_elements]; for (int i=0; i<n_elements; i++) { ids[ i] = 0; short_event_names[ i] = null; status[ i] = -1; thresholdable[i] = false; } // read records from trace file HashMap map = new HashMap(); // Global TID (Integer) X thread name(String) HashMap mapg2l = new HashMap(); // Global TID (Integer) X TID (Integer) while(true) { int record_type = Utilities.getIntFromDataInputStream(input_file); if (record_type == Utilities.EOF_int) { break; } else if (record_type == MACHINE_TYPE_FORMAT) { processor_name = Utilities.getStringFromDataInputStream(input_file); if (debug>=3) System.out.println("TraceHeader() MACHINE_TYPE_RECORD "+processor_name); } else if (record_type == EVENT_FORMAT) { int counter_number = Utilities.getIntFromDataInputStream(input_file); if (counter_number >= n_elements) { System.out.println("TraceHeader("+trace_filename+") counter number "+ counter_number+" > n_elements "+n_elements); System.exit(-1); } ids[counter_number] = Utilities.getIntFromDataInputStream(input_file); short_event_names[counter_number] = Utilities.getStringFromDataInputStream(input_file); if (debug>=3) System.out.println("TraceHeader() EVENT_RECORD "+counter_number+" = "+ ids[counter_number]+" : "+short_event_names[counter_number]); } else if (record_type == THREAD_FORMAT) { int tid = Utilities.getIntFromDataInputStream(input_file); int local_tid = Utilities.getIntFromDataInputStream(input_file); if (n_threads < tid) n_threads = tid; String thread_name = Utilities.getStringFromDataInputStream(input_file); Integer TID = new Integer(tid); map.put(TID, thread_name); if (debug>=3) System.out.println("TraceHeader() THREAD_RECORD global tid "+tid+" : "+ local_tid+" : "+thread_name); Integer LOCAL_TID = new Integer(local_tid); mapg2l.put(TID,LOCAL_TID); } else if (record_type == METHOD_FORMAT) { int mid = Utilities.getIntFromDataInputStream(input_file); String class_name = Utilities.getStringFromDataInputStream(input_file); String method_name = Utilities.getStringFromDataInputStream(input_file); String method_descriptor = Utilities.getStringFromDataInputStream(input_file); String full_name = class_name+"."+method_name+method_descriptor; if (debug>=3) System.out.println("TraceHeader() METHOD_RECORD mid "+mid+" : "+full_name); MID_map.put(new Integer(mid), full_name); } } // allocate thread array. threads = new String[n_threads+1]; for (int i = 0; i<=n_threads; i++) { threads[i] = null; } if (debug>=3) System.out.println("\nDump global thread id to thread name map:"); Set keys = map.keySet(); for (Iterator i = keys.iterator(); i.hasNext();) { Integer Key = (Integer)i.next(); String thread_name = (String)map.get(Key); int key = Key.intValue(); if (key >=0) { threads[key] = thread_name; if(debug>=3)System.out.println(" threads["+key+"] = "+thread_name); } else { if(debug>=3)System.out.println(" threads["+key+"] = "+thread_name+" discarded!" ); } } // allocate thread array. globalToLocalTIDs = new int[n_threads+1]; if (debug>=3) System.out.println("\nDump global to local thread id map:"); keys = mapg2l.keySet(); for (Iterator i = keys.iterator(); i.hasNext();) { Integer Key = (Integer)i.next(); Integer Local_Tid = (Integer)mapg2l.get(Key); int tid = Key.intValue(); if (tid >= 0) { globalToLocalTIDs[tid] = Local_Tid.intValue(); if(debug>=3)System.out.println(" globalToLocalTIDs["+tid+"] = "+Local_Tid); } else { if(debug>=3)System.out.println(" globalToLocalTIDs["+tid+"] = "+Local_Tid+" discarded!"); } } if (debug>=2) print(); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/abe3257b980f7bdb39d472ac90c6ae2118b01c86/TraceHeader.java/buggy/rvm/src/tools/HPM_traceFileReader/TraceHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2677, 1864, 12, 780, 1446, 67, 3459, 16, 514, 2606, 67, 3459, 13, 282, 288, 565, 1544, 273, 2606, 67, 3459, 31, 565, 29382, 810, 67, 768, 273, 1696, 3448, 2781, 812, 12, 3374, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2677, 1864, 12, 780, 1446, 67, 3459, 16, 514, 2606, 67, 3459, 13, 282, 288, 565, 1544, 273, 2606, 67, 3459, 31, 565, 29382, 810, 67, 768, 273, 1696, 3448, 2781, 812, 12, 3374, 6...
scrolledComposite.setMinSize( infoArea.computeSize(SWT.DEFAULT, SWT.DEFAULT));
scrolledComposite.setMinSize(infoArea.computeSize(SWT.DEFAULT, SWT.DEFAULT));
protected Composite createInfoArea(Composite parent) { createContextMenu(); scrolledComposite = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL); scrolledComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); infoArea = new Composite(this.scrolledComposite, SWT.NONE); scrolledComposite.setMinSize( infoArea.computeSize(SWT.DEFAULT, SWT.DEFAULT)); GridLayout infoLayout = new GridLayout(); infoLayout.numColumns = 1; infoLayout.verticalSpacing = 0; infoLayout.horizontalSpacing = 0; infoLayout.marginWidth = 0; infoArea.setLayout(infoLayout); infoArea.setBackground(background); if (getBug() == null) {// close(); MessageDialog.openError( Display.getDefault().getActiveShell(), "Bugzilla Client Errror", "Could not resolve the requested bug, check Bugzilla server and version."); Composite composite = new Composite(parent, SWT.NULL); Label noBugLabel = new Label(composite, SWT.NULL); noBugLabel.setText("Could not resolve bug"); return composite; } createLayouts(); this.scrolledComposite.setContent(infoArea); Point p = infoArea.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); this.scrolledComposite.setMinHeight(p.y); this.scrolledComposite.setMinWidth(p.x); this.scrolledComposite.setExpandHorizontal(true); this.scrolledComposite.setExpandVertical(true); // make the editor scroll properly with a scroll editor scrolledComposite.addControlListener(new ControlListener() { public void controlMoved(ControlEvent e) { // don't care when the control moved } public void controlResized(ControlEvent e) { scrolledComposite.getVerticalBar() .setIncrement(scrollIncrement); scrolledComposite.getHorizontalBar().setIncrement( scrollIncrement); scrollVertPageIncrement = scrolledComposite.getClientArea().height; scrollHorzPageIncrement = scrolledComposite.getClientArea().width; scrolledComposite.getVerticalBar().setPageIncrement( scrollVertPageIncrement); scrolledComposite.getHorizontalBar().setPageIncrement( scrollHorzPageIncrement); } }); return infoArea; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/03771035b0c3ee44c251feb0d994a738a0a26e89/AbstractBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 14728, 752, 966, 5484, 12, 9400, 982, 13, 288, 202, 202, 2640, 27315, 5621, 9506, 202, 1017, 25054, 9400, 273, 1082, 202, 2704, 2850, 25054, 9400, 12, 2938, 16, 348, 8588, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 14728, 752, 966, 5484, 12, 9400, 982, 13, 288, 202, 202, 2640, 27315, 5621, 9506, 202, 1017, 25054, 9400, 273, 1082, 202, 2704, 2850, 25054, 9400, 12, 2938, 16, 348, 8588, 18, ...
if (!preserveSpace.isEmpty())
if (source)
boolean isPreserved(Text text) throws TransformerConfigurationException { // Check characters in text String value = text.getData(); if (value != null) { int len = value.length(); for (int i = 0; i < len; i++) { char c = value.charAt(i); if (c != 0x20 && c != 0x09 && c != 0x0a && c != 0x0d) { return true; } } } // Check parent node Node ctx = text.getParentNode(); if (!preserveSpace.isEmpty()) { for (Iterator i = preserveSpace.iterator(); i.hasNext(); ) { NameTest preserveTest = (NameTest) i.next(); if (preserveTest.matches(ctx, 1, 1)) { boolean override = false; if (!stripSpace.isEmpty()) { for (Iterator j = stripSpace.iterator(); j.hasNext(); ) { NameTest stripTest = (NameTest) j.next(); if (stripTest.matches(ctx, 1, 1)) { override = true; break; } } } if (!override) { return true; } } } } // Check whether any ancestor specified xml:space while (ctx != null) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { Element element = (Element) ctx; String xmlSpace = element.getAttribute("xml:space"); if ("default".equals(xmlSpace)) { break; } else if ("preserve".equals(xmlSpace)) { return true; } else if (xmlSpace.length() > 0) { String msg = "Illegal value for xml:space: " + xmlSpace; throw new TransformerConfigurationException(msg); } else if ("text".equals(ctx.getLocalName()) && XSL_NS.equals(ctx.getNamespaceURI())) { // xsl:text implies xml:space='preserve' return true; } } ctx = ctx.getParentNode(); } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1250, 353, 12236, 4920, 12, 1528, 977, 13, 565, 1216, 11519, 10737, 225, 288, 565, 368, 2073, 3949, 316, 977, 565, 514, 460, 273, 977, 18, 588, 751, 5621, 565, 309, 261, 1132, 480, 446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1250, 353, 12236, 4920, 12, 1528, 977, 13, 565, 1216, 11519, 10737, 225, 288, 565, 368, 2073, 3949, 316, 977, 565, 514, 460, 273, 977, 18, 588, 751, 5621, 565, 309, 261, 1132, 480, 446,...
return s291;
return s290;
public DFA.State transition(IntStream input) throws RecognitionException { int LA15_212 = input.LA(1); if ( (LA15_212>='0' && LA15_212<='9')||(LA15_212>='A' && LA15_212<='Z')||LA15_212=='_'||(LA15_212>='a' && LA15_212<='z') ) {return s51;} return s291; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 3600, 67, 22, 2138, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 261, 2534, 3600, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 3600, 67, 22, 2138, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 261, 2534, 3600, 67, ...
if(parseException != null) {
if (parseException != null) {
public Document load(java.net.URL url) throws DOMTestLoadException { Document doc = null; Exception parseException = null; try { LoadErrorHandler errorHandler = new LoadErrorHandler(); builder.setErrorHandler(errorHandler); doc = builder.parse(url.openStream(),url.toString()); parseException = errorHandler.getFirstException(); } catch(Exception ex) { parseException = ex; } builder.setErrorHandler(null); if(parseException != null) { throw new DOMTestLoadException(parseException); } return doc; }
55441 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55441/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/JAXPDOMTestDocumentBuilderFactory.java/clean/java/org/w3c/domts/JAXPDOMTestDocumentBuilderFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 1262, 12, 6290, 18, 2758, 18, 1785, 880, 13, 1216, 4703, 4709, 2563, 503, 288, 565, 4319, 997, 273, 446, 31, 565, 1185, 1109, 503, 273, 446, 31, 565, 775, 288, 1377, 4444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 1262, 12, 6290, 18, 2758, 18, 1785, 880, 13, 1216, 4703, 4709, 2563, 503, 288, 565, 4319, 997, 273, 446, 31, 565, 1185, 1109, 503, 273, 446, 31, 565, 775, 288, 1377, 4444, ...
return getFontUnderline(null); }
return getFontUnderline(null); }
public final java.lang.Boolean getFontUnderline() { return getFontUnderline(null); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/TextComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/TextComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 2252, 18, 4936, 18, 5507, 18776, 14655, 1369, 1435, 288, 3639, 327, 18776, 14655, 1369, 12, 2011, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 2252, 18, 4936, 18, 5507, 18776, 14655, 1369, 1435, 288, 3639, 327, 18776, 14655, 1369, 12, 2011, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
start = i; break;
if(offsetMgr.isLineContextValid(i)) { start = i; break; }
public void markTokens(int lineIndex, TokenHandler tokenHandler) { Segment seg; if(SwingUtilities.isEventDispatchThread()) seg = this.seg; else seg = new Segment(); try { writeLock(); if(lineIndex < 0 || lineIndex >= offsetMgr.getLineCount()) throw new ArrayIndexOutOfBoundsException(lineIndex); /* * Scan backwards, looking for a line with * a valid line context. */ int start, end; if(parseFully) { start = -1; end = 0; } else { start = Math.max(0,lineIndex - 100) - 1; end = Math.max(0,lineIndex - 100); } for(int i = lineIndex - 1; i > end; i--) { if(offsetMgr.isLineContextValid(i)) { start = i; break; } } for(int i = start + 1; i <= lineIndex; i++) { getLineText(i,seg); TokenMarker.LineContext prevContext = (i == 0 ? null : offsetMgr.getLineContext(i - 1)); TokenMarker.LineContext context = offsetMgr.getLineContext(i); ParserRule oldRule; ParserRuleSet oldRules; if(context == null) { oldRule = null; oldRules = null; } else { oldRule = context.inRule; oldRules = context.rules; } context = tokenMarker.markTokens(prevContext, (i == lineIndex ? tokenHandler : DummyTokenHandler.INSTANCE),seg); offsetMgr.setLineContext(i,context); // Could incorrectly be set to 'false' with // recursive delegates, where the chaining might // have changed but not the rule set in question (?) if(oldRule != context.inRule) nextLineRequested = true; else if(oldRules != context.rules) nextLineRequested = true; //else if(i != lastTokenizedLine) // nextLineRequested = false; } int lineCount = offsetMgr.getLineCount(); if(nextLineRequested && lineCount - lineIndex > 1) { offsetMgr.lineInfoChangedFrom(lineIndex + 1); } } finally { writeUnlock(); } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/e3ac628ca649d95c99f8c2afc65cf58cadf5eee7/Buffer.java/buggy/org/gjt/sp/jedit/Buffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2267, 5157, 12, 474, 980, 1016, 16, 3155, 1503, 1147, 1503, 13, 202, 95, 202, 202, 4131, 2291, 31, 202, 202, 430, 12, 6050, 310, 11864, 18, 291, 1133, 5325, 3830, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2267, 5157, 12, 474, 980, 1016, 16, 3155, 1503, 1147, 1503, 13, 202, 95, 202, 202, 4131, 2291, 31, 202, 202, 430, 12, 6050, 310, 11864, 18, 291, 1133, 5325, 3830, 10756, ...
IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.getRegister(); v = vi;
val.load(eContext); final Register valr = val.getRegister(); vstack.push(eContext); os.writeTEST(valr, valr); os.writeJCC(helper.getInstrLabel(address), jccOpcode);
private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.getRegister(); v = vi; } // flush vstack before jumping vstack.push(eContext); v.release(eContext); os.writeTEST(r, r); os.writeJCC(helper.getInstrLabel(address), jccOpcode); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/d672242345f119107d72572d1e0cbc4bae87fa53/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3757, 67, 430, 5279, 12, 474, 618, 16, 509, 1758, 16, 509, 525, 952, 22808, 13, 288, 202, 202, 759, 3445, 3373, 3412, 30, 10551, 648, 342, 3566, 648, 202, 202, 1180, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3757, 67, 430, 5279, 12, 474, 618, 16, 509, 1758, 16, 509, 525, 952, 22808, 13, 288, 202, 202, 759, 3445, 3373, 3412, 30, 10551, 648, 342, 3566, 648, 202, 202, 1180, 3...
if (!isDispatchThread() || (evt.getID() == WindowEvent.WINDOW_CLOSED)
if (!isDispatchThread() || (evt.getID() == WindowEvent.WINDOW_CLOSED)
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */ int i = next_out; while (i != next_in) { AWTEvent qevt = queue[i]; Object src; if (qevt.id == evt.id && (src = qevt.getSource()) == evt.getSource() && src instanceof Component) { /* * If there are, call coalesceEvents on the source component to * see if they can be combined. */ Component srccmp = (Component) src; AWTEvent coalesced_evt = srccmp.coalesceEvents(qevt, evt); if (coalesced_evt != null) { /* Yes. Replace the existing event with the combined event. */ queue[i] = coalesced_evt; return; } break; } if (++i == queue.length) i = 0; } queue[next_in] = evt; if (++next_in == queue.length) next_in = 0; if (next_in == next_out) { /* Queue is full. Extend it. */ AWTEvent[] oldQueue = queue; queue = new AWTEvent[queue.length * 2]; int len = oldQueue.length - next_out; System.arraycopy(oldQueue, next_out, queue, 0, len); if (next_out != 0) System.arraycopy(oldQueue, 0, queue, len, next_out); next_out = 0; next_in = oldQueue.length; } if (dispatchThread == null || !dispatchThread.isAlive()) { System.out .println("Start new dispatchThread old=" + dispatchThread); dispatchThread = new EventDispatchThread(this); dispatchThread.start(); } // Window events might represent the closing of a window, which // might cause the end of the dispatch thread's life, so we'll wake // it up here to give it a chance to check for shutdown. if (!isDispatchThread() || (evt.getID() == WindowEvent.WINDOW_CLOSED) || (evt.getID() == WindowEvent.WINDOW_CLOSING)) ((ClasspathToolkit) Toolkit.getDefaultToolkit()).wakeNativeQueue(); notify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/EventQueue.java/clean/core/src/classpath/java/java/awt/EventQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 1603, 1133, 12, 37, 8588, 1133, 6324, 13, 288, 3639, 309, 261, 73, 11734, 422, 446, 13, 5411, 604, 394, 10108, 5621, 3639, 309, 261, 4285, 480, 446, 13, 288, 5411, 1024...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 1603, 1133, 12, 37, 8588, 1133, 6324, 13, 288, 3639, 309, 261, 73, 11734, 422, 446, 13, 5411, 604, 394, 10108, 5621, 3639, 309, 261, 4285, 480, 446, 13, 288, 5411, 1024...
public void startAction (String name, int max)
public void startAction(String name, int max)
public void startAction (String name, int max) { progressBar.setMinimum(0); progressBar.setMaximum(max); blockGUI(); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/UninstallerFrame.java/clean/src/lib/com/izforge/izpack/uninstaller/UninstallerFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1803, 12, 780, 508, 16, 509, 943, 13, 565, 288, 1377, 29101, 18, 542, 13042, 12, 20, 1769, 1377, 29101, 18, 542, 13528, 12, 1896, 1769, 1377, 1203, 43, 5370, 5621, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1803, 12, 780, 508, 16, 509, 943, 13, 565, 288, 1377, 29101, 18, 542, 13042, 12, 20, 1769, 1377, 29101, 18, 542, 13528, 12, 1896, 1769, 1377, 1203, 43, 5370, 5621, 565, ...
public Result execStatement(String sql, Row params) throws KettleDatabaseException
public Result execStatement(String sql) throws KettleDatabaseException
public Result execStatement(String sql, Row params) throws KettleDatabaseException { Result result = new Result(); try { boolean resultSet; int count; if (params!=null) { PreparedStatement prep_stmt = connection.prepareStatement(databaseMeta.stripCR(sql)); setValues(params, prep_stmt); // set the parameters! resultSet = prep_stmt.execute(); count = prep_stmt.getUpdateCount(); prep_stmt.close(); } else { String sqlStripped = databaseMeta.stripCR(sql); // log.logDetailed(toString(), "Executing SQL Statement: ["+sqlStripped+"]"); Statement stmt = connection.createStatement(); resultSet = stmt.execute(sqlStripped); count = stmt.getUpdateCount(); stmt.close(); } if (resultSet) { // the result is a resultset, but we don't do anything with it! // You should have called something else! // log.logDetailed(toString(), "What to do with ResultSet??? (count="+count+")"); } else { if (count > 0) { if (sql.toUpperCase().startsWith("INSERT")) result.setNrLinesOutput((long) count); if (sql.toUpperCase().startsWith("UPDATE")) result.setNrLinesUpdated((long) count); if (sql.toUpperCase().startsWith("DELETE")) result.setNrLinesDeleted((long) count); } } // See if a cache needs to be cleared... if (sql.toUpperCase().startsWith("ALTER TABLE")) { DBCache.getInstance().clear(databaseMeta.getName()); } } catch(SQLException ex) { throw new KettleDatabaseException("Couldn't execute SQL: "+sql+Const.CR, ex); } catch(Exception e) { throw new KettleDatabaseException("Unexpected error executing SQL: "+Const.CR, e); } return result; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/010ce55cc835e24ea0d281df3b9d8fb611398414/Database.java/buggy/kettle/src/be/ibridge/kettle/core/database/Database.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3438, 1196, 3406, 12, 780, 1847, 16, 6556, 859, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 3639, 3438, 563, 273, 394, 3438, 5621, 202, 202, 698, 202, 202, 95, 5411, 1250, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3438, 1196, 3406, 12, 780, 1847, 16, 6556, 859, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 3639, 3438, 563, 273, 394, 3438, 5621, 202, 202, 698, 202, 202, 95, 5411, 1250, ...
public static void launch( RepositoryCleanerConfiguration config ) throws Exception
public static void launch( RepositoryCleanerConfiguration config ) throws Exception
public static void launch( RepositoryCleanerConfiguration config ) throws Exception { Embedder embedder = new Embedder(); embedder.start( new ClassWorld() ); RepositoryCleaner cleaner = null; try { cleaner = (RepositoryCleaner) embedder.lookup( RepositoryCleaner.ROLE ); cleaner.cleanRepository( config ); } finally { if ( cleaner != null ) { embedder.release( cleaner ); } } }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/6e51d420ed174d20446e7387dab144f9c1a9eed0/Main.java/buggy/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 8037, 12, 6281, 7605, 264, 1750, 642, 262, 1216, 1185, 565, 288, 3639, 14564, 765, 4724, 765, 273, 394, 14564, 765, 5621, 3639, 4724, 765, 18, 1937, 12, 394, 1659, 18071, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 8037, 12, 6281, 7605, 264, 1750, 642, 262, 1216, 1185, 565, 288, 3639, 14564, 765, 4724, 765, 273, 394, 14564, 765, 5621, 3639, 4724, 765, 18, 1937, 12, 394, 1659, 18071, ...
assertEquals(new String(((Message)tempEvt.getArg()).getBuffer()),"hello2");
assertEquals("hello2", new String(((Message)tempEvt.getArg()).getBuffer()));
public void testViewChangeNewKeyServer() throws Exception{ // create peer and server ENCRYPT peer = new ENCRYPT(); try { peer.init(); } catch (Exception e){ fail(e.getMessage()); } ENCRYPT server = new ENCRYPT(); try { server.init(); } catch (Exception e){ fail(e.getMessage()); } // set up server server.keyServer = true; MockObserver serverObserver = new MockObserver(); server.setObserver(serverObserver); Address serverAddress =new MockAddress("server"); server.setLocal_addr(serverAddress); //set the server up as keyserver Vector serverVector = new Vector(); serverVector.add(serverAddress); View tempView = new View(new ViewId(serverAddress,1),serverVector); Event serverEvent = new Event(Event.VIEW_CHANGE,tempView); server.up(serverEvent); // set up peer Address peerAddress =new MockAddress("peer"); peer.setLocal_addr(peerAddress); MockObserver peerObserver = new MockObserver(); peer.setObserver(peerObserver); peer.keyServer = false; MessageDigest digest = MessageDigest.getInstance("MD5"); digest.reset(); digest.update(server.getDesKey().getEncoded()); String symVersion = new String(digest.digest(), "UTF-8"); // encrypt and send an initial message to peer Cipher cipher = server.getSymEncodingCipher(); Message msg = new Message(); msg.setBuffer(cipher.doFinal("hello".getBytes())); msg.putHeader(EncryptHeader.KEY, new EncryptHeader( EncryptHeader.ENCRYPT, symVersion)); Event evt = new Event(Event.MSG,msg); peer.up(evt); //assert that message is queued as we have no key from server assertTrue(peerObserver.getUpMessages().isEmpty()); // send a view change where we are not the controller // send to peer - which should have peer2 as its key server peer.up(serverEvent); // assert that peer\ keyserver address is now set assertTrue(serverAddress == peer.getKeyServerAddr()); // get the resulting message from the peer - should be a key request Event sent = (Event)peerObserver.getDownMessages().get("message0"); assertTrue(((EncryptHeader)((Message)sent.getArg()).getHeader(ENCRYPT.EncryptHeader.KEY)).getType() == ENCRYPT.EncryptHeader.KEY_REQUEST); assertEquals(new String(((Message)sent.getArg()).getBuffer()),new String(peer.getKpair().getPublic().getEncoded())); // send this event to server server.up(sent); Event reply = (Event)serverObserver.getDownMessages().get("message1"); //assert that reply is the session key encrypted with peer's public key assertTrue(((EncryptHeader)((Message)reply.getArg()).getHeader(ENCRYPT.EncryptHeader.KEY)).getType() == ENCRYPT.EncryptHeader.SECRETKEY); assertNotSame(peer.getDesKey(),server.getDesKey()); // now send back to peer peer.up(reply); // assert that both now have same key assertEquals(peer.getDesKey(),server.getDesKey()); // send another encrypted message to peer to test queue Message msg2 = new Message(); msg2.setBuffer(cipher.doFinal("hello2".getBytes())); msg2.putHeader(EncryptHeader.KEY, new EncryptHeader( EncryptHeader.ENCRYPT, symVersion)); Event evt2 = new Event(Event.MSG,msg2); peer.up(evt2); // make sure we have the events now in the up layers assertEquals(3,peerObserver.getUpMessages().size()); Event tempEvt = (Event)peerObserver.getUpMessages().get("message2"); assertEquals(new String(((Message)tempEvt.getArg()).getBuffer()),"hello"); tempEvt = (Event)peerObserver.getUpMessages().get("message3"); assertEquals(new String(((Message)tempEvt.getArg()).getBuffer()),"hello2"); }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/6cf135ab0aec1dba727f94146eb1d03ec797779c/ENCRYPTAsymmetricTest.java/buggy/tests/junit/org/jgroups/protocols/ENCRYPTAsymmetricTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1767, 3043, 1908, 653, 2081, 1435, 1216, 1185, 95, 202, 202, 759, 752, 4261, 471, 1438, 202, 202, 1157, 14306, 4261, 273, 394, 6693, 14306, 5621, 202, 202, 698, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1767, 3043, 1908, 653, 2081, 1435, 1216, 1185, 95, 202, 202, 759, 752, 4261, 471, 1438, 202, 202, 1157, 14306, 4261, 273, 394, 6693, 14306, 5621, 202, 202, 698, 288, ...
getDataSetTabSet().requestConcatOnlyRelation(ds, relation, ConcatRelationType.TAB); }
getDataSetTabSet().requestMaskColumn(ds, column); }
public void actionPerformed(ActionEvent evt) { getDataSetTabSet().requestConcatOnlyRelation(ds, relation, ConcatRelationType.TAB); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/d62084730dd4815e88fd51af28f27b0ea2a251b0/WindowContext.java/clean/src/java/org/biomart/builder/view/gui/WindowContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 26100, 12, 1803, 1133, 6324, 13, 288, 13491, 4303, 694, 5661, 694, 7675, 2293, 15113, 3386, 3963, 12, 2377, 16, 2533, 16, 23873, 3963, 559, 18, 28899, 1769, 10792, 289, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 26100, 12, 1803, 1133, 6324, 13, 288, 13491, 4303, 694, 5661, 694, 7675, 2293, 15113, 3386, 3963, 12, 2377, 16, 2533, 16, 23873, 3963, 559, 18, 28899, 1769, 10792, 289, 2, -10...
log.entering(this.getClass().getName(), "findTrustInStore");
if (Configuration.DEBUG) log.entering(this.getClass().getName(), "findTrustInStore");
private PKIXCertPathValidatorResult findTrustInStore(X509CertPath certPath, CertPathValidator validator) { log.entering(this.getClass().getName(), "findTrustInStore"); //$NON-NLS-1$ PKIXCertPathValidatorResult result; try { PKIXParameters params = new PKIXParameters(store); result = (PKIXCertPathValidatorResult) validator.validate(certPath, params); } catch (Exception x) { log.log(Level.FINE, "Exception in findTrustInStore(). Ignore + Return NULL", //$NON-NLS-1$ x); result = null; } log.exiting(this.getClass().getName(), "findTrustInStore", result); //$NON-NLS-1$ return result; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/2fc4e384dcea5a4ff5cefac633fe9a3c8607d6b3/ImportCmd.java/clean/tools/gnu/classpath/tools/keytool/ImportCmd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 11327, 12507, 5461, 743, 5126, 1253, 1104, 14146, 382, 2257, 12, 60, 5995, 5461, 743, 3320, 743, 16, 4766, 15604, 11921, 743, 5126, 4213, 13, 225, 288, 565, 613, 18, 2328, 310, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 11327, 12507, 5461, 743, 5126, 1253, 1104, 14146, 382, 2257, 12, 60, 5995, 5461, 743, 3320, 743, 16, 4766, 15604, 11921, 743, 5126, 4213, 13, 225, 288, 565, 613, 18, 2328, 310, 12, ...
String[] arg = StringUtils.splitArguments(line);
String[] arg = StringUtil.splitArguments(line);
public static String showGfxLine(String line, GuiBoard guiBoard) { String[] arg = StringUtils.splitArguments(line); if (arg.length == 0) return null; String statusText = null; String cmd = arg[0].toUpperCase(Locale.ENGLISH); if (cmd.equals("BLACK")) showGfxTerritory(arg, GoColor.BLACK, guiBoard); else if (cmd.equals("CIRCLE")) showGfxCircle(arg, guiBoard); else if (cmd.equals("CLEAR")) guiBoard.clearAll(); else if (cmd.equals("COLOR")) showGfxColor(arg, guiBoard); else if (cmd.equals("INFLUENCE")) showGfxInfluence(arg, guiBoard); else if (cmd.equals("LABEL")) showGfxLabel(arg, guiBoard); else if (cmd.equals("MARK")) showGfxMark(arg, guiBoard); else if (cmd.equals("SQUARE")) showGfxSquare(arg, guiBoard); else if (cmd.equals("TEXT")) { line = line.trim(); int pos = line.indexOf(' '); if (pos > 0) statusText = line.substring(pos + 1); } else if (cmd.equals("TRIANGLE")) showGfxTriangle(arg, guiBoard); else if (cmd.equals("VAR")) showGfxVariation(arg, guiBoard); else if (cmd.equals("WHITE")) showGfxTerritory(arg, GoColor.WHITE, guiBoard); return statusText; }
48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/1f50ffb219183ddaf94720a4aba453e11f412425/AnalyzeShow.java/clean/src/net/sf/gogui/gui/AnalyzeShow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 2405, 43, 19595, 1670, 12, 780, 980, 16, 611, 4881, 22233, 13238, 22233, 13, 565, 288, 3639, 514, 8526, 1501, 273, 14205, 18, 4939, 4628, 12, 1369, 1769, 3639, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 2405, 43, 19595, 1670, 12, 780, 980, 16, 611, 4881, 22233, 13238, 22233, 13, 565, 288, 3639, 514, 8526, 1501, 273, 14205, 18, 4939, 4628, 12, 1369, 1769, 3639, 309, 261, ...
Collection<OnmsLocationMonitor> monitors = new HashSet<OnmsLocationMonitor>();
List<OnmsLocationMonitor> monitors = new ArrayList<OnmsLocationMonitor>();
public void testDetails() { List<OnmsMonitoringLocationDefinition> locationDefinitions = new LinkedList<OnmsMonitoringLocationDefinition>(); locationDefinitions.add(m_locationDefinition1); locationDefinitions.add(m_locationDefinition2); locationDefinitions.add(m_locationDefinition3); expect(m_locationMonitorDao.findAllMonitoringLocationDefinitions()).andReturn(locationDefinitions); Set<OnmsApplication> applications = new HashSet<OnmsApplication>(); applications.add(m_application1); applications.add(m_application2); expect(m_applicationDao.findAll()).andReturn(applications); expect(m_locationMonitorDao.findMonitoringLocationDefinition("Durham")).andReturn(m_locationDefinition2); expect(m_applicationDao.findByName("Application 2")).andReturn(m_application2); Collection<OnmsLocationMonitor> monitors = new HashSet<OnmsLocationMonitor>(); monitors.add(m_locationMonitor2_1); monitors.add(m_locationMonitor2_2); expect(m_locationMonitorDao.findByLocationDefinition(m_locationDefinition2)).andReturn(monitors); for (OnmsMonitoredService service : m_applicationServices2) { m_locationMonitorDao.initialize(service.getIpInterface()); m_locationMonitorDao.initialize(service.getIpInterface().getNode()); } String locationName = m_locationDefinition2.getName(); String applicationName = m_application2.getName(); String monitorId = ""; String timeSpan = "Last Day"; String previousLocation = ""; expect(m_monitoredServiceDao.findByApplication(m_application2)).andReturn(m_applicationServices2).times(2); replayEverything(); DistributedStatusHistoryModel summary = m_service.createHistoryModel(locationName, monitorId, applicationName, timeSpan, previousLocation); verifyEverything(); assertNotNull("summary should not be null", summary); assertNotNull("summary locations list should not be null", summary.getLocations()); assertNotNull("summary applications list should not be null", summary.getApplications()); assertNotNull("summary chosen location should not be null", summary.getChosenLocation()); assertNotNull("summary chosen application should not be null", summary.getChosenApplication()); assertNotNull("summary error list should not be null", summary.getErrors()); assertEquals("summary locations list size", locationDefinitions.size(), summary.getLocations().size()); assertEquals("summary applications list size", applications.size(), summary.getApplications().size()); assertEquals("summary error list size: " + summary.getErrors(), 0, summary.getErrors().size()); // Verify sorting of applications assertEquals("summary applications 1", m_application1, summary.getApplications().get(0)); assertEquals("summary applications 2", m_application2, summary.getApplications().get(1)); // Verify chosen ones assertEquals("summary chosen location", m_locationDefinition2, summary.getChosenLocation()); assertEquals("summary chosen application", m_application2, summary.getChosenApplication()); // And verify that they are in the lists in the right place assertEquals("summary chosen location matches list", summary.getLocations().get(1), summary.getChosenLocation()); assertEquals("summary chosen application matches list", summary.getApplications().get(1), summary.getChosenApplication()); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/642c99fdd091a758405c01493a070e2716943e36/DefaultDistributedStatusServiceTest.java/buggy/opennms-webapp/src/test/java/org/opennms/web/svclayer/support/DefaultDistributedStatusServiceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3790, 1435, 288, 3639, 987, 32, 1398, 959, 18410, 2735, 1852, 34, 2117, 7130, 273, 5411, 394, 10688, 32, 1398, 959, 18410, 2735, 1852, 34, 5621, 3639, 2117, 7130, 18, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3790, 1435, 288, 3639, 987, 32, 1398, 959, 18410, 2735, 1852, 34, 2117, 7130, 273, 5411, 394, 10688, 32, 1398, 959, 18410, 2735, 1852, 34, 5621, 3639, 2117, 7130, 18, 128...
if (jj_3R_52()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_57()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; }
final private boolean jj_3R_53() { if (jj_scan_token(LOGICAL_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_52()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/983675edbbab0e381643fec9c2a3e765c2f88830/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 8643, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 29249, 67, 916, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 8643, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 29249, 67, 916, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 37...
Component r = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
Component r = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { Component r = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); if (r instanceof JLabel) { JLabel lab = (JLabel) r; if (value instanceof ToDoItem) { ToDoItem item = (ToDoItem) value; if (item.getProgress() == 0) lab.setIcon(_PostIt0); else if (item.getProgress() <= 25) lab.setIcon(_PostIt25); else if (item.getProgress() <= 50) lab.setIcon(_PostIt50); else if (item.getProgress() <= 75) lab.setIcon(_PostIt75); else if (item.getProgress() <= 100) lab.setIcon(_PostIt99); else lab.setIcon(_PostIt100); } else if (value instanceof Decision) { lab.setIcon(MetalIconFactory.getTreeFolderIcon()); } else if (value instanceof Goal) { lab.setIcon(MetalIconFactory.getTreeFolderIcon()); } else if (value instanceof Poster) { lab.setIcon(MetalIconFactory.getTreeFolderIcon()); } else if (value instanceof PriorityNode) { lab.setIcon(MetalIconFactory.getTreeFolderIcon()); } else if (value instanceof KnowledgeTypeNode) { lab.setIcon(MetalIconFactory.getTreeFolderIcon()); } else if (value instanceof MModelElement) { return _navRenderer.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); } String tip = lab.getText() + " "; lab.setToolTipText(tip); tree.setToolTipText(tip); if (!sel) lab.setBackground(getBackgroundNonSelectionColor()); else { Color high = org.tigris.gef.base.Globals.getPrefs().getHighlightColor(); high = high.brighter().brighter(); lab.setBackground(high); } lab.setOpaque(sel); } return r; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ToDoTreeRenderer.java/buggy/src_new/org/argouml/cognitive/ui/ToDoTreeRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1033, 460, 16, 25083, 202, 6494, 357, 16, 25083, 202, 6494, 8406, 16, 25083, 202, 6494, 7839, 16, 509, 1027, 16, 25083, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1033, 460, 16, 25083, 202, 6494, 357, 16, 25083, 202, 6494, 8406, 16, 25083, 202, 6494, 7839, 16, 509, 1027, 16, 25083, 202, ...
protected Servlet createServlet() { // get the blackboard service blackboard = (BlackboardService) serviceBroker.getService( this, BlackboardService.class, null); if (blackboard == null) { throw new RuntimeException( "Unable to obtain blackboard service"); } // We could inline "MyServlet" here as an anonymous // inner-class (like HelloBaseServletComponent does). Instead, // we'll move it to a simple inner-class, which will make the // code a little easier to read. return new MyServlet(); }
11320 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11320/2631aa09325d4743e992355e68d50bdeb0c82d21/TakeVacationServlet.java/clean/tutorial/src/org/cougaar/tutorial/exercise11/TakeVacationServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 7971, 752, 4745, 1435, 288, 1377, 368, 336, 326, 7721, 3752, 1156, 1377, 7721, 3752, 273, 261, 13155, 3752, 1179, 13, 1156, 11194, 18, 588, 1179, 12, 5411, 333, 16, 2398, 22467, 375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 7971, 752, 4745, 1435, 288, 1377, 368, 336, 326, 7721, 3752, 1156, 1377, 7721, 3752, 273, 261, 13155, 3752, 1179, 13, 1156, 11194, 18, 588, 1179, 12, 5411, 333, 16, 2398, 22467, 375...
public void testCodeDuplicatesWithOutputValue1() throws Exception { doDuplicatesTest(); }
public void testCodeDuplicatesWithOutputValue1() throws Exception { doDuplicatesTest(); }
public void testCodeDuplicatesWithOutputValue1() throws Exception { doDuplicatesTest(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/6646dd9633fcb68a3c300eac3681179bd2eb2d9d/ExtractMethodTest.java/clean/refactoring/tests/com/intellij/refactoring/ExtractMethodTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1085, 23897, 1190, 1447, 620, 21, 1435, 1216, 1185, 288, 741, 23897, 4709, 5621, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1085, 23897, 1190, 1447, 620, 21, 1435, 1216, 1185, 288, 741, 23897, 4709, 5621, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Sequence chromosomeSequence = chr.getSequence();
private void writeChromosomeFasta(File destinationDirectory, Chromosome chr) throws IOException, IllegalArgumentException, IllegalSymbolException { FileOutputStream fileStream = new FileOutputStream(chromosomeFastaFile(destinationDirectory, chr)); PrintStream printStream = new PrintStream(fileStream); Sequence chromosomeSequence = chr.getSequence();// Too slow!// FlyMineSequence sequence = FlyMineSequenceFactory.make(chr);// if (sequence != null) {// try {// sequence.getAnnotation().setProperty(FastaFormat.PROPERTY_DESCRIPTIONLINE,// chromosomeFileNamePrefix(chr));// } catch (ChangeVetoException e) {// throw new RuntimeException("failed to set a property", e);// }// SeqIOTools.writeFasta(outputStream, sequence);// } printStream.println(">" + chromosomeFileNamePrefix(chr)); String residues = chromosomeSequence.getResidues(); // code from BioJava's FastaFormat class: int length = residues.length(); for (int pos = 0; pos < length; pos += 60) { int end = Math.min(pos + 60, length); printStream.println(residues.substring(pos, end)); } printStream.close(); fileStream.close(); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/dac46001fb0558d8df05ed51ebf8388bdb1d99af/WriteGFFTask.java/clean/flymine/model/genomic/src/java/org/flymine/gbrowse/WriteGFFTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 30761, 16958, 12305, 69, 12, 812, 2929, 2853, 16, 1680, 520, 16958, 4513, 13, 3639, 1216, 1860, 16, 2754, 16, 2141, 5335, 503, 288, 3639, 12942, 585, 1228, 273, 5411, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 30761, 16958, 12305, 69, 12, 812, 2929, 2853, 16, 1680, 520, 16958, 4513, 13, 3639, 1216, 1860, 16, 2754, 16, 2141, 5335, 503, 288, 3639, 12942, 585, 1228, 273, 5411, 394...
JDBC2Tests.dropTable(con, "poolingtest"); JDBC2Tests.createTable(con, "poolingtest", "id int4 not null primary key, name varchar(50)");
TestUtil.createTable(con, "poolingtest", "id int4 not null primary key, name varchar(50)");
public void testDdlOverConnection() { try { con = getDataSourceConnection(); JDBC2Tests.dropTable(con, "poolingtest"); JDBC2Tests.createTable(con, "poolingtest", "id int4 not null primary key, name varchar(50)"); con.close(); } catch (SQLException e) { fail(e.getMessage()); } }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/d634a5903f615a45cb463155c04d3df904e1b91a/BaseDataSourceTest.java/buggy/src/interfaces/jdbc/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 40, 5761, 4851, 1952, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 591, 273, 29130, 1952, 5621, 1082, 202, 30499, 22, 14650, 18, 7285, 1388, 12, 591, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 40, 5761, 4851, 1952, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 591, 273, 29130, 1952, 5621, 1082, 202, 30499, 22, 14650, 18, 7285, 1388, 12, 591, 16, ...
recorder = new InvokedRecorder(); }
recorder = new InvokedRecorder(); }
public void setUp() { MethodFactory methodFactory = new MethodFactory(); emptyInvocation = new Invocation("INVOKED-OBJECT", methodFactory.newMethod("example", MethodFactory.NO_ARGUMENTS, Void.class, MethodFactory.NO_EXCEPTIONS), new Object[0]); recorder = new InvokedRecorder(); }
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/InvokedRecorderTest.java/clean/jmock/core/src/test/jmock/core/matcher/InvokedRecorderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24292, 1435, 288, 202, 202, 1305, 1733, 707, 1733, 273, 394, 2985, 1733, 5621, 202, 202, 5531, 9267, 273, 394, 11298, 2932, 706, 17691, 2056, 17, 9422, 3113, 1082, 4766, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24292, 1435, 288, 202, 202, 1305, 1733, 707, 1733, 273, 394, 2985, 1733, 5621, 202, 202, 5531, 9267, 273, 394, 11298, 2932, 706, 17691, 2056, 17, 9422, 3113, 1082, 4766, 70...
public static Image getImage(String sPluginRelativePath) { org.eclipse.swt.graphics.Image img = null; try { try { img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), getURL(sPluginRelativePath).openStream()); } catch (MalformedURLException e1 ) { img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), new FileInputStream(getURL( sPluginRelativePath).toString())); } } catch (FileNotFoundException e ) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return img; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/eded0530f44b5c47d2b6167047dc4a84ec528d91/UIHelper.java/clean/chart/org.eclipse.birt.chart.ui/src/org/eclipse/birt/chart/ui/util/UIHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 2040, 588, 2040, 12, 7957, 3773, 16519, 15329, 3341, 18, 20416, 18, 5328, 88, 18, 31586, 18, 2040, 6081, 33, 2011, 31, 698, 95, 698, 95, 6081, 33, 2704, 3341, 18, 20416, 18, 5328...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 2040, 588, 2040, 12, 7957, 3773, 16519, 15329, 3341, 18, 20416, 18, 5328, 88, 18, 31586, 18, 2040, 6081, 33, 2011, 31, 698, 95, 698, 95, 6081, 33, 2704, 3341, 18, 20416, 18, 5328...
super( value, name );
super( value, name, literal );
private DateFormatType( int value, String name ) { super( value, name ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/DateFormatType.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/DateFormatType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 18371, 559, 12, 509, 460, 16, 514, 508, 262, 202, 95, 202, 202, 9565, 12, 460, 16, 508, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 18371, 559, 12, 509, 460, 16, 514, 508, 262, 202, 95, 202, 202, 9565, 12, 460, 16, 508, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
editNode = _visitCount % 4 == 0 ;
editNode = rnd.nextDouble() > 0.91;
public void transform( MarkableBaseNode base, BranchNode variant, BranchNode total, MarkableBaseNode baseRoot ) { boolean editNode = false; // Decide if node should be edited if( ! base.isMarked() ) { _visitCount++; editNode = _visitCount % 4 == 0 ; } BranchNode n = null; // used by edit ops boolean after = false; MarkableBaseNode dest = null; if( editNode ) { int op = 1;// (int) (rnd.nextDouble() *5.0); switch(op) { case 0: // Delete node System.err.println("DEL"); base = getLargestDelTree(base); _checkNotMarked(base); base.lock(); base.lockSubtree(); n = base.getLeft().getFullMatch(); n.getParent().removeChild(n.getChildPos()); n = base.getRight().getFullMatch(); n.getParent().removeChild(n.getChildPos()); break; case 1: // Insert node System.err.println("INS"); XMLTextNode content = new XMLTextNode("!INSERT!"+System.currentTimeMillis()); after = rnd.nextDouble() > 0.5; base.lock(!after,after); base = after ? base : (base.hasLeftSibling() ? (MarkableBaseNode) base.getLeftSibling() : base); n = base.getLeft().getFullMatch(); n.getParent().addChild(n.getChildPos()+1,new BranchNode( content)); n = base.getRight().getFullMatch(); n.getParent().addChild(n.getChildPos()+1,new BranchNode( content)); break; case 2: // Update node System.err.println("UPD"); break; // N/A for now... case 3: // Move subtree System.err.println("MOV"); // Delete from base (src of move) (=delete code block) base.lock(); BranchNode l = base.getLeft().getFullMatch(); l.getParent().removeChild(l.getChildPos()); BranchNode r = base.getRight().getFullMatch(); r.getParent().removeChild(r.getChildPos()); // Insert at dest (=insert code block) dest = getRandomNode( baseRoot, true ); // NOTE! Dest must be fetched AFTER src is locked! after = rnd.nextDouble() > 0.5; dest.lock(!after,after); dest = after ? dest : (dest.hasLeftSibling() ? (MarkableBaseNode) dest.getLeftSibling() : dest); n = dest.getLeft().getFullMatch(); n.getParent().addChild(n.getChildPos()+1,l); n = dest.getRight().getFullMatch(); n.getParent().addChild(n.getChildPos()+1,r); break; case 4: // Copy subtree System.err.println("CPY"); // Lock src of copy base.lock(); // Insert at dest (=insert code block) dest = getRandomNode( baseRoot, true ); // NOTE! Dest must be fetched AFTER src is locked! after = rnd.nextDouble() > 0.5; dest.lock(!after,after); dest = after ? dest : (dest.hasLeftSibling() ? (MarkableBaseNode) dest.getLeftSibling() : dest); n = dest.getLeft().getFullMatch(); n.getParent().addChild(n.getChildPos()+1, clonedAndMatchedTree(base,true,false)); n = dest.getRight().getFullMatch(); n.getParent().addChild(n.getChildPos()+1, clonedAndMatchedTree(base,false,false)); break; } } // if edit node // recurse for( int i=0;i<base.getChildCount();i++) transform((MarkableBaseNode) base.getChild(i),variant,total,baseRoot); }
7752 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7752/c0b20ea26fe6217b8c339d5f07908d5991d3294e/Editgen.java/clean/3dm/src/tdm/editgen/Editgen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2510, 12, 6622, 429, 2171, 907, 1026, 16, 15449, 907, 5437, 16, 15449, 907, 2078, 16, 13491, 6622, 429, 2171, 907, 1026, 2375, 262, 288, 565, 1250, 3874, 907, 273, 629, 31, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2510, 12, 6622, 429, 2171, 907, 1026, 16, 15449, 907, 5437, 16, 15449, 907, 2078, 16, 13491, 6622, 429, 2171, 907, 1026, 2375, 262, 288, 565, 1250, 3874, 907, 273, 629, 31, 5...
if (!m_cacheState.validate(directory, distributionFileFilterPattern, connectedAgents)) {
m_cacheState.setOutOfDate(); m_lastDirectory = directory; m_lastFileFilterPattern = distributionFileFilterPattern; } final long earliestFileTime = m_cacheState.getEarliestFileTime(); if (earliestFileTime < 0) {
public FileDistributionHandler getHandler( Directory directory, Pattern distributionFileFilterPattern) { final Set connectedAgents = m_distributionControl.getConnectedAgents(); if (!m_cacheState.validate(directory, distributionFileFilterPattern, connectedAgents)) { m_distributionControl.clearFileCaches(); } return new FileDistributionHandlerImplementation( directory.getAsFile(), directory.listContents( new FileDistributionFilter(distributionFileFilterPattern, m_cacheState.getEarliestFileTime())), m_distributionControl, m_cacheState); }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/8d4607b2e3cd6aaffca9cbc89dbfcd2ec0d71229/FileDistribution.java/buggy/src/net/grinder/console/distribution/FileDistribution.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1387, 9003, 1503, 18945, 12, 565, 8930, 1867, 16, 565, 6830, 7006, 29837, 3234, 13, 288, 565, 727, 1000, 5840, 23400, 273, 312, 67, 16279, 3367, 18, 588, 8932, 23400, 5621, 565, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1387, 9003, 1503, 18945, 12, 565, 8930, 1867, 16, 565, 6830, 7006, 29837, 3234, 13, 288, 565, 727, 1000, 5840, 23400, 273, 312, 67, 16279, 3367, 18, 588, 8932, 23400, 5621, 565, 309...
s.ConnectGraph ();
s.SetupOperator ();
public void ConnectGraph () { // do I even have anything to do? if (dest.isEmpty ()) return; // yep, create an output array of appropriate size output = new Channel [dest.size ()]; // go through my members and connect them all with // ChannelConnectFilter int outputIndx = 0; ListIterator iter = dest.listIterator (); while (iter.hasNext ()) { // get the stream Stream s = (Stream) iter.next (); ASSERT (s != null); // connect it and retrieve its input and copy it into // the output array for this splitter s.ConnectGraph (); Channel channel = s.GetIOField ("input"); output [outputIndx] = channel; // if it is not a source, make sure that it consumes data // of the same kind as everything else in this Splitter if (channel != null) { // handle input channel if (input == null) { input = new Channel (channel); input.SetSink (this); } else { // check that the input types agree ASSERT (channel.GetType ().getName ().equals (input.GetType ().getName ())); } // now connect the channel to the Splitter channel.SetSource (this); } outputIndx ++; } }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/924ce63d752d04cfc418d7add5f04a16d1e8dcdf/Splitter.java/clean/streams/src/streamit/library/Splitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8289, 4137, 1832, 565, 288, 3639, 368, 741, 467, 5456, 1240, 6967, 358, 741, 35, 3639, 309, 261, 10488, 18, 291, 1921, 1832, 13, 327, 31, 7734, 368, 677, 881, 16, 752, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8289, 4137, 1832, 565, 288, 3639, 368, 741, 467, 5456, 1240, 6967, 358, 741, 35, 3639, 309, 261, 10488, 18, 291, 1921, 1832, 13, 327, 31, 7734, 368, 677, 881, 16, 752, 392, ...
} catch (MetadataParseException e) { throw new FetchException(e); } catch (ArchiveFailureException e) { if(e.getMessage().equals(ArchiveFailureException.TOO_MANY_LEVELS)) throw new FetchException(FetchException.TOO_DEEP_ARCHIVE_RECURSION); throw new FetchException(e);
public FetchResult run() throws FetchException { for(int i=0;i<ctx.maxArchiveRestarts;i++) { try { ClientMetadata dm = new ClientMetadata(); ClientKey key; try { key = ClientKey.getBaseKey(origURI); } catch (MalformedURLException e2) { throw new FetchException(FetchException.INVALID_URI, "Invalid URI: "+origURI); } LinkedList metaStrings = origURI.listMetaStrings(); FetchResult fr = realRun(dm, 0, key, metaStrings, ctx.dontEnterImplicitArchives, ctx.localRequestOnly); if(metaStrings.isEmpty()) return fr; // Still got some meta-strings throw new FetchException(FetchException.HAS_MORE_METASTRINGS); } catch (ArchiveRestartException e) { archiveContext = new ArchiveContext(); continue; } catch (MetadataParseException e) { throw new FetchException(e); } catch (ArchiveFailureException e) { if(e.getMessage().equals(ArchiveFailureException.TOO_MANY_LEVELS)) throw new FetchException(FetchException.TOO_DEEP_ARCHIVE_RECURSION); throw new FetchException(e); } } throw new FetchException(FetchException.TOO_MANY_ARCHIVE_RESTARTS); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/87760d0ac57e5e39f75661e91adeb3a9ffcc5dfb/Fetcher.java/clean/src/freenet/client/Fetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8065, 1253, 1086, 1435, 1216, 8065, 503, 288, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 5900, 18, 1896, 7465, 15057, 87, 31, 77, 27245, 288, 1082, 202, 698, 288, 950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8065, 1253, 1086, 1435, 1216, 8065, 503, 288, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 5900, 18, 1896, 7465, 15057, 87, 31, 77, 27245, 288, 1082, 202, 698, 288, 950...
extractAddressingInformation(header, msgContext, addressingHeaders, addressingNamespace);
extractAddressingInformation(header, msgContext, addressingHeaders, addressingNamespace);
public void invoke(MessageContext msgContext) throws AxisFault { SOAPHeader header = msgContext.getEnvelope().getHeader(); // if there are no headers or addressing version is already determined, pass through if (header == null || msgContext.getProperty(WS_ADDRESSING_VERSION) != null) { return; } logger.debug("Starting " + addressingVersion + " IN handler ..."); ArrayList addressingHeaders; addressingHeaders = header.getHeaderBlocksWithNSURI(addressingNamespace); if (addressingHeaders != null && addressingHeaders.size() > 0) { msgContext.setProperty(WS_ADDRESSING_VERSION, addressingNamespace); addressingNSObject = ((OMElement) addressingHeaders.get(0)).findNamespace(addressingNamespace, ""); logger.debug(addressingVersion + " Headers present in the SOAP message. Starting to process ..."); extractAddressingInformation(header, msgContext, addressingHeaders, addressingNamespace); } else { logger.debug("No Headers present corresponding to " + addressingVersion); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/260097d28ac2b3f82c9c2a07bde3f2663fdbb73f/AddressingInHandler.java/clean/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4356, 12, 1079, 1042, 1234, 1042, 13, 1216, 15509, 7083, 288, 3639, 16434, 1864, 1446, 273, 1234, 1042, 18, 588, 10862, 7675, 588, 1864, 5621, 3639, 368, 309, 1915, 854, 1158, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4356, 12, 1079, 1042, 1234, 1042, 13, 1216, 15509, 7083, 288, 3639, 16434, 1864, 1446, 273, 1234, 1042, 18, 588, 10862, 7675, 588, 1864, 5621, 3639, 368, 309, 1915, 854, 1158, ...
node.ps.queueTimedJob(new Runnable() { public void run() { node.config.store(); } }, 0);
synchronized (writeSync) { if(isWritingConfig) return; isWritingConfig = true; node.ps.queueTimedJob(new Runnable() { public void run() { try{ while(!node.isHasStarted()) Thread.sleep(1000); }catch (InterruptedException e) {} node.config.store(); synchronized (writeSync) { isWritingConfig = false; } } }, 0); }
public void storeConfig() { Logger.normal(this, "Writing config", new Exception("debug")); node.ps.queueTimedJob(new Runnable() { public void run() { node.config.store(); } }, 0); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/cc33677feac3f31dbdc409462de91ffe52bdd8ef/NodeClientCore.java/buggy/src/freenet/node/NodeClientCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1707, 809, 1435, 288, 202, 202, 3328, 18, 6130, 12, 2211, 16, 315, 18835, 642, 3113, 394, 1185, 2932, 4148, 7923, 1769, 202, 202, 2159, 18, 1121, 18, 4000, 19336, 2278, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1707, 809, 1435, 288, 202, 202, 3328, 18, 6130, 12, 2211, 16, 315, 18835, 642, 3113, 394, 1185, 2932, 4148, 7923, 1769, 202, 202, 2159, 18, 1121, 18, 4000, 19336, 2278, 1...
void writeCodePoint4Bytes (int codePoint, int value) { ensureLength (4); bytes[offset] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 1] = (byte) (codePoint & 0xff); bytes[offset + 2] = (byte) ((value >>> 8) & 0xff); bytes[offset + 3] = (byte) (value & 0xff); offset += 4; }
void writeCodePoint4Bytes (int codePoint, int value) { ensureLength (4); bytes[offset] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 1] = (byte) (codePoint & 0xff); bytes[offset + 2] = (byte) ((value >>> 8) & 0xff); bytes[offset + 3] = (byte) (value & 0xff); offset += 4; }
void writeCodePoint4Bytes (int codePoint, int value) { ensureLength (4); bytes[offset] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 1] = (byte) (codePoint & 0xff); bytes[offset + 2] = (byte) ((value >>> 8) & 0xff); bytes[offset + 3] = (byte) (value & 0xff); offset += 4; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DDMWriter.java/clean/java/drda/org/apache/derby/impl/drda/DDMWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1045, 31536, 24, 2160, 261, 474, 18614, 16, 509, 460, 13, 288, 3639, 3387, 1782, 261, 24, 1769, 3639, 1731, 63, 3348, 65, 273, 261, 7229, 13, 14015, 710, 2148, 4080, 1725, 13, 473,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1045, 31536, 24, 2160, 261, 474, 18614, 16, 509, 460, 13, 288, 3639, 3387, 1782, 261, 24, 1769, 3639, 1731, 63, 3348, 65, 273, 261, 7229, 13, 14015, 710, 2148, 4080, 1725, 13, 473,...
case FIELD_HEADER_REPEAT :
case FIELD_HIDE_DETAIL :
protected void readGroupField( DataInputStream in, GroupDesign group, short fieldType ) throws IOException { switch ( fieldType ) { case FIELD_GROUP_LEVEL : int groupLevel = IOUtil.readInt( in ); group.setGroupLevel( groupLevel ); break; case FIELD_PAGE_BREAK_BEFORE : String pageBreakBefore = IOUtil.readString( in ); group.setPageBreakBefore( pageBreakBefore ); break; case FIELD_PAGE_BREAK_AFTER : String pageBreakAfter = IOUtil.readString( in ); group.setPageBreakAfter( pageBreakAfter ); break; case FIELD_HEADER_REPEAT : boolean hideDetail = IOUtil.readBool( in ); group.setHideDetail( hideDetail ); break; case FIELD_HIDE_DETAIL : boolean headerRepeat = IOUtil.readBool( in ); group.setHeaderRepeat( headerRepeat ); break; default : readReportItemField( in, group, fieldType ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4679ef0c0e48259aa88cf61de97fb72719e1ff28/EngineIRReader.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/ir/EngineIRReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 855, 1114, 974, 12, 29382, 316, 16, 3756, 15478, 1041, 16, 1082, 202, 6620, 9596, 262, 1216, 1860, 202, 95, 202, 202, 9610, 261, 9596, 262, 202, 202, 95, 1082, 202, 3593...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 855, 1114, 974, 12, 29382, 316, 16, 3756, 15478, 1041, 16, 1082, 202, 6620, 9596, 262, 1216, 1860, 202, 95, 202, 202, 9610, 261, 9596, 262, 202, 202, 95, 1082, 202, 3593...
} synchronized(entry) { if(entry.received_msgs == null) { if(first) entry.received_msgs=new AckReceiverWindow(seqno); else { if(operational) { if(warn) log.warn(sender + "#" + seqno + " is not tagged as the first message sent by " + sender + " to me (" + local_addr + "); however, the table for received messages from " + sender + " is null. We probably haven't received the first message from " + sender + ". Discarding message: " + msg + ", headers (excluding UnicastHeader): " + msg.getHeaders()); } return false; } }
if(entry.received_msgs == null) entry.received_msgs=new AckReceiverWindow(DEFAULT_FIRST_SEQNO);
private boolean handleDataReceived(Object sender, long seqno, boolean first, Message msg) { Entry entry; if(trace) log.trace(new StringBuffer().append(local_addr).append(" <-- DATA(").append(sender). append(": #").append(seqno).append(", first=").append(first)); synchronized(connections) { entry=(Entry)connections.get(sender); if(entry == null) { entry=new Entry(); connections.put(sender, entry); } } synchronized(entry) { // only threads accessing the *same* entry will synchronize, everthing else is concurrent if(entry.received_msgs == null) { if(first) entry.received_msgs=new AckReceiverWindow(seqno); else { if(operational) { if(warn) log.warn(sender + "#" + seqno + " is not tagged as the first message sent by " + sender + " to me (" + local_addr + "); however, the table for received messages from " + sender + " is null. We probably haven't received the first message from " + sender + ". Discarding message: " + msg + ", headers (excluding UnicastHeader): " + msg.getHeaders()); } return false; } } } entry.received_msgs.add(seqno, msg); // entry.received_msgs is guaranteed to be non-null if we get here num_msgs_received++; num_bytes_received+=msg.getLength(); // Try to remove (from the AckReceiverWindow) as many messages as possible as pass them up Message m; while((m=entry.received_msgs.remove()) != null) passUp(new Event(Event.MSG, m)); return true; }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/31d2099f976d601edfa00b3014c000dc94a78887/UNICAST.java/buggy/src/org/jgroups/protocols/UNICAST.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1640, 751, 8872, 12, 921, 5793, 16, 1525, 30734, 16, 1250, 1122, 16, 2350, 1234, 13, 288, 3639, 3841, 565, 1241, 31, 3639, 309, 12, 5129, 13, 5411, 613, 18, 5129, 12, 2704, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1640, 751, 8872, 12, 921, 5793, 16, 1525, 30734, 16, 1250, 1122, 16, 2350, 1234, 13, 288, 3639, 3841, 565, 1241, 31, 3639, 309, 12, 5129, 13, 5411, 613, 18, 5129, 12, 2704, ...
log("Creating " + intervals + " intervals"); intervals = 3 * keys.length; intheight = height / intervals;
for (int i = 0; i < (nbTasks - 1); i++) { Interval newint = new Interval(i, IMAGE_WIDTH, IMAGE_HEIGHT, i * intheight, (i + 1) * intheight); intervalsToDraw[i] = newint; }
private void render() { // Checks there are some engines usde if (li_enginesUsed.getItems().length == 0) { showMessageAll("No engines ... contact the dispatcher"); return; } // Toggles the rendering flag.. b_render = true; // Benchmarking stuff... startTime = System.currentTimeMillis(); Interval interval; String keys[] = li_enginesUsed.getItems(); engines = keys.length; log("Creating " + intervals + " intervals"); intervals = 3 * keys.length; intheight = height / intervals; /* Sets the number of intervals not yet calculated to 'all' */ i_left = intervals; /* Creates the interval stack */ int_stack = new Stack(); for (int i = 0; i < intervals; i++) { // log("Creating inter : "+i); Interval newint = new Interval( i, width, height, i * intheight, (i + 1) * intheight, intervals); int_stack.push(newint); } engine = null; engine = new C3DRenderingEngine[keys.length]; C3DRenderingEngine tmp; if (keys != null) { for (int e = 0; e < keys.length; e++) { /* Assigns one initial interval to each engine */ if (!int_stack.empty()) { interval = (Interval) int_stack.pop(); tmp = (C3DRenderingEngine) h_engines.get(keys[e]); if (tmp != null) { tmp.setScene(scene); engine[e] = tmp; /* Triggers the calculation of this interval on engine e */ tmp.render(e, interval); log( "Interval " + interval.number + " assigned to engine " + keys[e] + "[" + e + "]"); } else { log( "Failed to assign an interval to engine " + keys[e]); h_engines.get(keys[e]); } } } } else b_render = false; }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/80a90996a87b23c561b5cc820ea57e1356c218b2/C3DDispatcher.java/clean/src/org/objectweb/proactive/examples/c3d/C3DDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1743, 1435, 202, 95, 202, 202, 759, 13074, 1915, 854, 2690, 20504, 584, 323, 202, 202, 430, 261, 549, 67, 275, 14660, 6668, 18, 588, 3126, 7675, 2469, 422, 374, 13, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1743, 1435, 202, 95, 202, 202, 759, 13074, 1915, 854, 2690, 20504, 584, 323, 202, 202, 430, 261, 549, 67, 275, 14660, 6668, 18, 588, 3126, 7675, 2469, 422, 374, 13, 202,...
if(breakAll.isSelected())
if(breakAllButton.isSelected())
public Set getBreakEvent() { NumberSet set = new NumberSet(); if(breakAll.isSelected()) set.add(DBEvent.ALL); if(breakLocation.isSelected()) set.add(DBEvent.LOCATION); if(breakConsume.isSelected()) set.add(DBEvent.CONSUME_TOKEN); if(breakLT.isSelected()) set.add(DBEvent.LT); if(breakException.isSelected()) set.add(DBEvent.RECOGNITION_EXCEPTION); return set; }
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/666df2dfad6641238c780159ccbe9448db143f71/DBControlPanel.java/clean/src/org/antlr/works/debugger/panels/DBControlPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 2882, 870, 1133, 1435, 288, 3639, 3588, 694, 444, 273, 394, 3588, 694, 5621, 3639, 309, 12, 8820, 1595, 3616, 18, 291, 7416, 10756, 5411, 444, 18, 1289, 12, 2290, 1133, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 2882, 870, 1133, 1435, 288, 3639, 3588, 694, 444, 273, 394, 3588, 694, 5621, 3639, 309, 12, 8820, 1595, 3616, 18, 291, 7416, 10756, 5411, 444, 18, 1289, 12, 2290, 1133, 18, ...
if (!pref.selectProfile(profile,true, true))
addGuiFont(); if (!pref.selectProfile(profile,Preferences.PROFILE_SELECTOR_ONOROFF, true))
public void doIt(){ this.title = "CacheWolf " + Version.getRelease(); this.exitSystemOnClose = true; this.resizable = true; this.moveable = true; if(Vm.isMobile() == true) this.windowFlagsToSet = Window.FLAG_FULL_SCREEN; else this.setPreferredSize(800, 600); this.resizeOnSIP = true; // Load CacheList Vm.showWait(true); try{ pref.readPrefFile(); if (!pref.selectProfile(profile,true, true)) ewe.sys.Vm.exit(0); // User MUST select or create a profile addGuiFont(); long start = Vm.getTimeStampLong(); profile.readIndex(); pref.profileCentrePt=profile.centre; long end = Vm.getTimeStampLong(); Vm.debug("index.xml read: " + Convert.toString(end - start)+ " msec"); TablePanel.updateBearingDistance(profile.cacheDB,pref); } catch (Exception e){ if(pref.debug == true) Vm.debug("MainForm:: Exception:: " + e.toString()); } if(pref.fixSIP == true){ if (Gui.screenIs(Gui.PDA_SCREEN) && Vm.isMobile()) { Vm.setSIP(Vm.SIP_LEAVE_BUTTON|Vm.SIP_ON); } } else Vm.setSIP(0); Vm.setParameter(Vm.SET_ALWAYS_SHOW_SIP_BUTTON,1); statBar = new StatusBar(pref, profile.cacheDB); this.addLast(mMenu = new MainMenu(this, pref, profile),CellConstants.DONTSTRETCH, CellConstants.FILL); this.addLast(mTab = new MainTab(pref,profile,statBar),CellConstants.STRETCH, CellConstants.FILL); mMenu.setTablePanel(mTab.getTablePanel()); Vm.showWait(false); }
51026 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51026/69c58f8cd17f13ecf8714b47dadf20b8988a1008/MainForm.java/clean/src/CacheWolf/MainForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 7193, 1435, 95, 202, 202, 2211, 18, 2649, 273, 315, 1649, 59, 355, 74, 315, 397, 4049, 18, 588, 7391, 5621, 202, 202, 2211, 18, 8593, 3163, 1398, 4605, 273, 638, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 7193, 1435, 95, 202, 202, 2211, 18, 2649, 273, 315, 1649, 59, 355, 74, 315, 397, 4049, 18, 588, 7391, 5621, 202, 202, 2211, 18, 8593, 3163, 1398, 4605, 273, 638, 3...
assertTrue("Wrong representation 4", l.toString().equals("en__WIN"));
assertEquals("Wrong representation 4", "en__WIN", l.toString());
public void test_toString() { // Test for method java.lang.String java.util.Locale.toString() assertTrue("Returned incorrect string representation", testLocale .toString().equals("en_CA_WIN32")); Locale l = new Locale("en", ""); assertTrue("Wrong representation 1", l.toString().equals("en")); l = new Locale("", "CA"); assertTrue("Wrong representation 2", l.toString().equals("_CA")); l = new Locale("", "CA", "var"); assertTrue("Wrong representation 2.5", l.toString().equals("_CA_var")); l = new Locale("en", "", "WIN"); assertTrue("Wrong representation 4", l.toString().equals("en__WIN")); l = new Locale("en", "CA"); assertTrue("Wrong representation 6", l.toString().equals("en_CA")); l = new Locale("en", "CA", "VAR"); assertTrue("Wrong representation 7", l.toString().equals("en_CA_VAR")); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/LocaleTest.java/clean/modules/luni/src/test/java/tests/api/java/util/LocaleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 10492, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 4936, 18, 780, 2252, 18, 1367, 18, 3916, 18, 10492, 1435, 202, 202, 11231, 5510, 2932, 22360, 11332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 10492, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 4936, 18, 780, 2252, 18, 1367, 18, 3916, 18, 10492, 1435, 202, 202, 11231, 5510, 2932, 22360, 11332, ...
Object catchObj; for (;;) { if (exception instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException( (JavaScriptException)exception); } else if (exception instanceof EcmaError) { catchObj = ((EcmaError)exception).getErrorObject(); } else if (exception instanceof WrappedException) { WrappedException wex = (WrappedException)exception; exception = wex.getWrappedException(); continue; } else { Context.codeBug(); catchObj = null;
if (t instanceof JavaScriptException) { return ((JavaScriptException)t).getValue(); } else if (t instanceof EcmaError) { return ((EcmaError)t).getErrorObject(); } else { if (!(t instanceof WrappedException)) Context.codeBug(); do { t = ((WrappedException)t).getWrappedException(); } while (t instanceof WrappedException); if (t instanceof JavaScriptException) { return ((JavaScriptException)t).getValue(); } else if (t instanceof EcmaError) { return ((EcmaError)t).getErrorObject();
public static Object getCatchObject(Context cx, Scriptable scope, Throwable exception) { Object catchObj; for (;;) { if (exception instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException( (JavaScriptException)exception); } else if (exception instanceof EcmaError) { // an offical ECMA error object, catchObj = ((EcmaError)exception).getErrorObject(); } else if (exception instanceof WrappedException) { WrappedException wex = (WrappedException)exception; exception = wex.getWrappedException(); continue; } else { // catch can not be called with any other exceptions Context.codeBug(); catchObj = null; } break; } return catchObj; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/48b46eb3845fd6cf8fa13cd3def581f9a0ff4339/ScriptRuntime.java/buggy/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 1927, 505, 921, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 3639, 4206, 1520, 13, 565, 288, 3639, 1033, 1044, 2675, 31, 3639, 364, 261, 25708, 13, 288, 5411, 309, 261, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 1927, 505, 921, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 3639, 4206, 1520, 13, 565, 288, 3639, 1033, 1044, 2675, 31, 3639, 364, 261, 25708, 13, 288, 5411, 309, 261, 4...
public ATFraction base_inc() {
public ATNumeric base_inc() {
public ATFraction base_inc() { return NATFraction.atValue(javaValue+1); }
57139 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57139/4e1a1e7e187016ccae3ae094421b4ce71805f87b/NATFraction.java/clean/src/edu/vub/at/objects/natives/NATFraction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14464, 13724, 1026, 67, 9523, 1435, 288, 202, 202, 2463, 31395, 13724, 18, 270, 620, 12, 6290, 620, 15, 21, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14464, 13724, 1026, 67, 9523, 1435, 288, 202, 202, 2463, 31395, 13724, 18, 270, 620, 12, 6290, 620, 15, 21, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
aload(savedVariableObject); astore(variableObjectLocal);
cfw.addALoad(savedVariableObject); cfw.addAStore(variableObjectLocal);
private void generateCatchBlock(int exceptionType, short savedVariableObject, int catchLabel, int startLabel) { int handler = acquireLabel(); classFile.markHandler(handler); // MS JVM gets cranky if the exception object is left on the stack short exceptionObject = getNewWordLocal(); astore(exceptionObject); // reset the variable object local aload(savedVariableObject); astore(variableObjectLocal); aload(contextLocal); aload(variableObjectLocal); aload(exceptionObject); releaseWordLocal(exceptionObject); // unwrap the exception... addScriptRuntimeInvoke( "getCatchObject", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Throwable;" +")Ljava/lang/Object;"); String exceptionName; if (exceptionType == JAVASCRIPT_EXCEPTION) { exceptionName = "org/mozilla/javascript/JavaScriptException"; } else if (exceptionType == WRAPPED_EXCEPTION) { exceptionName = "org/mozilla/javascript/WrappedException"; } else { if (exceptionType != ECMAERROR_EXCEPTION) Context.codeBug(); exceptionName = "org/mozilla/javascript/EcmaError"; } // mark the handler classFile.addExceptionHandler(startLabel, catchLabel, handler, exceptionName); addByteCode(ByteCode.GOTO, catchLabel); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 14842, 1768, 12, 474, 1520, 559, 16, 4766, 565, 3025, 5198, 3092, 921, 16, 4766, 565, 509, 1044, 2224, 16, 4766, 565, 509, 787, 2224, 13, 565, 288, 3639, 509, 1838, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 14842, 1768, 12, 474, 1520, 559, 16, 4766, 565, 3025, 5198, 3092, 921, 16, 4766, 565, 509, 1044, 2224, 16, 4766, 565, 509, 787, 2224, 13, 565, 288, 3639, 509, 1838, 273...
QuickFixAction.registerQuickFixAction(errorResult, fix, null);
QuickFixAction.registerQuickFixAction(errorResult, fix);
private static HighlightInfo checkStaticMethodDeclarationInInnerClass(PsiKeyword keyword) { if (new PsiMatcherImpl(keyword) .dot(PsiMatcherImpl.hasText(PsiModifier.STATIC)) .parent(PsiMatcherImpl.hasClass(PsiModifierList.class)) .parent(PsiMatcherImpl.hasClass(PsiMethod.class)) .parent(PsiMatcherImpl.hasClass(PsiClass.class)) .dot(PsiMatcherImpl.hasModifier(PsiModifier.STATIC, false)) .parent(PsiMatcherImpl.hasClass(new Class[]{PsiClass.class, PsiDeclarationStatement.class, PsiNewExpression.class, PsiEnumConstant.class})) .getElement() == null) { return null; } PsiMethod method = (PsiMethod)keyword.getParent().getParent(); if (PsiUtil.hasErrorElementChild(method)) return null; HighlightInfo errorResult = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, keyword, STATIC_DECLARATION_IN_INNER_CLASS); IntentionAction fix1 = QUICK_FIX_FACTORY.createModifierListFix(method.getModifierList(), PsiModifier.STATIC, false, false); QuickFixAction.registerQuickFixAction(errorResult, fix1, null); PsiModifierList classModifiers = ((PsiClass)keyword.getParent().getParent().getParent()).getModifierList(); IntentionAction fix = QUICK_FIX_FACTORY.createModifierListFix(classModifiers, PsiModifier.STATIC, true, false); QuickFixAction.registerQuickFixAction(errorResult, fix, null); return errorResult; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/HighlightClassUtil.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightClassUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 31386, 966, 866, 5788, 1305, 6094, 382, 2857, 797, 12, 52, 7722, 8736, 4932, 13, 288, 565, 309, 261, 2704, 453, 7722, 6286, 2828, 12, 11041, 13, 1377, 263, 9811, 12, 52, 7722...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 31386, 966, 866, 5788, 1305, 6094, 382, 2857, 797, 12, 52, 7722, 8736, 4932, 13, 288, 565, 309, 261, 2704, 453, 7722, 6286, 2828, 12, 11041, 13, 1377, 263, 9811, 12, 52, 7722...
updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets);
updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.ra.getInterestedAgents());
private void publishDescriptors() { long now = now(); List l; synchronized (descriptors) { l = new ArrayList(descriptors.values()); } for (Iterator it = l.iterator(); it.hasNext();) { DescriptorEntry de = (DescriptorEntry) it.next(); logger.debug("publishDescriptors:" + " community=" + de.cd.getName() + " ra=" + de.ra + " doRemove=" + de.doRemove + " didChange=" + de.didChange); if (de.ra == null) { // publish new descriptor if (!de.nodeTargets.isEmpty()) { de.ra = new RelayAdapter(de.cd.getSource(), de.cd, de.cd.getUID()); updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets); de.didChange = false; de.lastSent = now; blackboard.publishAdd(de.ra); if (logger.isDebugEnabled()) { logger.debug("publishAdd: " + de.ra); } } } else { if (!de.didChange) { } if ( (de.didChange && (now > (de.lastSent + updateInterval))) || (now > de.lastSent + cacheExpiration)) { // publish changed descriptor updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets); ((CommunityDescriptorImpl) de.cd).setChangeType(de.didChange ? de.changeType : -1); ((CommunityDescriptorImpl) de.cd).setWhatChanged(de.didChange ? de.whatChanged : null); de.didChange = false; de.lastSent = now(); blackboard.publishChange(de.ra); if (logger.isDebugEnabled()) { logger.debug("publishChange: " + de.ra); } } else { if (de.doRemove) { // remove descriptor blackboard.publishRemove(de.ra); descriptors.remove(de.cd.getName()); if (logger.isDebugEnabled()) { logger.debug("publishRemove: " + de.ra); } } } } } }
11317 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11317/19973915ecd7f69a6f6e34904bb08facd263d9f3/CommunityDistributer.java/buggy/community/src/org/cougaar/community/manager/CommunityDistributer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3808, 12705, 1435, 288, 565, 1525, 2037, 273, 2037, 5621, 565, 987, 328, 31, 565, 3852, 261, 72, 8379, 13, 288, 1377, 328, 273, 394, 2407, 12, 72, 8379, 18, 2372, 10663, 565,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3808, 12705, 1435, 288, 565, 1525, 2037, 273, 2037, 5621, 565, 987, 328, 31, 565, 3852, 261, 72, 8379, 13, 288, 1377, 328, 273, 394, 2407, 12, 72, 8379, 18, 2372, 10663, 565,...
private void handleDefine() throws IOException { // Next token is the name of the #define String name = nextWord(); //System.err.println("IN HANDLE_DEFINE: '" + name + "' (line " + lineNumber() + " file " + filename() + ")"); // (Note that this is not actually proper handling for multi-line #defines) List values = new ArrayList(); while (nextToken(true) != StreamTokenizer.TT_EOL) { values.add(curTokenAsString()); } // if we're not within an active block of code (like inside an "#ifdef // FOO" where FOO isn't defined), then don't actually alter the definition // map. debugPrint(true, "#define " + name); if (enabled()) { boolean emitDefine = true; // Handle #definitions to nothing or to a constant value int sz = values.size(); if (sz == 0) { // definition to nothing, like "#define FOO" String oldDef = (String)defineMap.put(name, ""); if (oldDef != null) { System.err.println("WARNING: \"" + name + "\" redefined from \"" + oldDef + "\" to \"\""); } // We don't want to emit the define, because it would serve no purpose // and cause GlueGen errors (confuse the GnuCParser) emitDefine = false; //System.out.println("//---DEFINED: " + name + "to \"\""); } else if (sz == 1) { // See whether the value is a constant String value = (String) values.get(0); if (isConstant(value)) { // Value is numeric constant like "#define FOO 5". // Put it in the #define map String oldDef = (String)defineMap.put(name, value); if (oldDef != null) { System.err.println("WARNING: \"" + name + "\" redefined from \"" + oldDef + "\" to \"" + value + "\""); } //System.out.println("//---DEFINED: " + name + " to \"" + value + "\""); } else { // Value is a symbolic constant like "#define FOO BAR". // Try to look up the symbol's value String newValue = (String) defineMap.get(value); if (newValue != null) { // Set the value to the value of the symbol. // // TO DO: Is this correct? Why not output the symbol unchanged? // I think that it's a good thing to see that some symbols are // defined in terms of others. -chris values.set(0, newValue); } else { // Still perform textual replacement defineMap.put(name, value); emitDefine = false; } } } else { // can't handle definitions that aren't constants or empty emitDefine = false; StringBuffer buf = new StringBuffer("#define "); buf.append(name); for (int i = 0; i < sz; ++i) { buf.append(" "); buf.append(values.get(i)); } System.err.println("WARNING: Ignoring \"" + buf.toString() + "\" at \"" + filename() + "\" line " + lineNumber() + ": Unable to handle definition to non-constant"); if (defineMap.get(name) != null) { // This is probably something the user should investigate. throw new RuntimeException("Cannot redefine symbol \"" + name + " from \"" + defineMap.get(name) + "\" to non-constant " + " definition \"" + buf.toString() + "\""); } } if (emitDefine) { // Print name and value print("# define "); print(name); for (Iterator iter = values.iterator(); iter.hasNext(); ) { print(" "); print((String) iter.next()); } println(); } } // end if (enabled()) //System.err.println("OUT HANDLE_DEFINE: " + name); }
48257 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48257/9512c9fa62ece3960472b6ab2cd6ce5244da8501/PCPP.java/clean/src/net/java/games/gluegen/pcpp/PCPP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1640, 11644, 1435, 1216, 1860, 288, 565, 368, 4804, 1147, 353, 326, 508, 434, 326, 468, 11255, 565, 514, 508, 273, 1024, 3944, 5621, 565, 368, 3163, 18, 370, 18, 8222, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1640, 11644, 1435, 1216, 1860, 288, 565, 368, 4804, 1147, 353, 326, 508, 434, 326, 468, 11255, 565, 514, 508, 273, 1024, 3944, 5621, 565, 368, 3163, 18, 370, 18, 8222, 2932, ...
invaxis[2][0] = (a[1]*b[2] - a[2]*b[1])/det; invaxis[2][1] = (a[2]*b[0] - a[0]*b[2])/det; invaxis[2][2] = (a[0]*b[1] - a[1]*b[0])/det;
invaxis[2][0] = (a.y*b.z - a.z*b.y)/det; invaxis[2][1] = (a.z*b.x - a.x*b.z)/det; invaxis[2][2] = (a.x*b.y - a.y*b.x)/det;
public static double[][] calcInvertedAxes(double[] a, double[] b, double[] c) { double det = a[0]*b[1]*c[2] - a[0]*b[2]*c[1] - a[1]*b[0]*c[2] + a[1]*b[2]*c[0] + a[2]*b[0]*c[1] - a[2]*b[1]*c[0]; double invaxis[][] = new double[3][3]; invaxis[0][0] = (b[1]*c[2] - b[2]*c[1])/det; invaxis[0][1] = (b[2]*c[0] - b[0]*c[2])/det; invaxis[0][2] = (b[0]*c[1] - b[1]*c[0])/det; invaxis[1][0] = (a[2]*c[1] - a[1]*c[2])/det; invaxis[1][1] = (a[0]*c[2] - a[2]*c[0])/det; invaxis[1][2] = (a[1]*c[0] - a[0]*c[1])/det; invaxis[2][0] = (a[1]*b[2] - a[2]*b[1])/det; invaxis[2][1] = (a[2]*b[0] - a[0]*b[2])/det; invaxis[2][2] = (a[0]*b[1] - a[1]*b[0])/det; return invaxis; }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/ffd604384537f658c2e37a06cc26b0e692b55249/CrystalGeometryTools.java/clean/src/org/openscience/cdk/geometry/CrystalGeometryTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 63, 6362, 65, 7029, 382, 25631, 26494, 12, 9056, 8526, 279, 16, 1645, 8526, 324, 16, 1645, 8526, 276, 13, 288, 540, 1645, 3023, 273, 279, 63, 20, 5772, 70, 63, 21, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 63, 6362, 65, 7029, 382, 25631, 26494, 12, 9056, 8526, 279, 16, 1645, 8526, 324, 16, 1645, 8526, 276, 13, 288, 540, 1645, 3023, 273, 279, 63, 20, 5772, 70, 63, 21, 57...
l = l - (days * (24*60*60));
l = l - ((long)days * ((long)24*60*60*1000));
public static String formatTime(long timeInterval, int maxTerms) { StringBuffer sb = new StringBuffer(64); long l = timeInterval / 1000; // ms -> s int termCount = 0; // int weeks = (int)(l / (7*24*60*60)); if (weeks > 0) { sb.append(weeks + "w"); termCount++; l = l - (weeks * (7*24*60*60)); } // int days = (int)(l / (24*60*60)); if (days > 0) { sb.append(days + "d"); termCount++; l = l - (days * (24*60*60)); } if(termCount >= maxTerms) { return sb.toString(); } // int hours = (int)(l / (60*60)); if (hours > 0) { sb.append(hours + "h"); termCount++; l = l - (hours * (60*60)); } if(termCount >= maxTerms) { return sb.toString(); } // int minutes = (int)(l / 60); if (minutes > 0) { sb.append(minutes + "m"); termCount++; l = l - (minutes * 60); } if(termCount >= maxTerms) { return sb.toString(); } // sb.append(l + "s"); return sb.toString(); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/e3e1385af7111953dc0be72e3d64baca37a22231/TimeUtil.java/buggy/src/freenet/support/TimeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 950, 12, 5748, 813, 4006, 16, 509, 943, 11673, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 1105, 1769, 202, 202, 5748, 328, 273, 813, 4006, 342, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 950, 12, 5748, 813, 4006, 16, 509, 943, 11673, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 1105, 1769, 202, 202, 5748, 328, 273, 813, 4006, 342, 4...
public VariableResolverProcessor(PsiJavaCodeReferenceElement fromElement) { super(fromElement.getText(), null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = fromElement; PsiElement qualifier = fromElement.getQualifier(); PsiElement referenceName = fromElement.getReferenceNameElement(); if (referenceName instanceof PsiIdentifier){ setName(referenceName.getText()); } if (qualifier instanceof PsiExpression){ final JavaResolveResult accessClass = PsiUtil.getAccessObjectClass((PsiExpression)qualifier); final PsiElement element = accessClass.getElement(); if (element instanceof PsiTypeParameter) { final PsiManager manager = element.getManager(); final PsiClassType type = manager.getElementFactory().createType((PsiTypeParameter) element); final PsiType accessType = accessClass.getSubstitutor().substitute(type); if(accessType instanceof PsiArrayType) myAccessClass = manager.getElementFactory().getArrayClass(); else if(accessType instanceof PsiClassType) myAccessClass = ((PsiClassType)accessType).resolve(); } else if (element instanceof PsiClass) myAccessClass = (PsiClass) element; }
public VariableResolverProcessor(String name, PsiElement place, PsiClass accessClass){ super(name, null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = place; myAccessClass = accessClass;
public VariableResolverProcessor(PsiJavaCodeReferenceElement fromElement) { super(fromElement.getText(), null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = fromElement; PsiElement qualifier = fromElement.getQualifier(); PsiElement referenceName = fromElement.getReferenceNameElement(); if (referenceName instanceof PsiIdentifier){ setName(referenceName.getText()); } if (qualifier instanceof PsiExpression){ final JavaResolveResult accessClass = PsiUtil.getAccessObjectClass((PsiExpression)qualifier); final PsiElement element = accessClass.getElement(); if (element instanceof PsiTypeParameter) { final PsiManager manager = element.getManager(); final PsiClassType type = manager.getElementFactory().createType((PsiTypeParameter) element); final PsiType accessType = accessClass.getSubstitutor().substitute(type); if(accessType instanceof PsiArrayType) myAccessClass = manager.getElementFactory().getArrayClass(); else if(accessType instanceof PsiClassType) myAccessClass = ((PsiClassType)accessType).resolve(); } else if (element instanceof PsiClass) myAccessClass = (PsiClass) element; } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/23150f8a02bddbd3f249196772c53e2d74d03f80/VariableResolverProcessor.java/buggy/source/com/intellij/psi/impl/source/resolve/VariableResolverProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7110, 4301, 5164, 12, 52, 7722, 5852, 1085, 2404, 1046, 628, 1046, 13, 288, 565, 2240, 12, 2080, 1046, 18, 588, 1528, 9334, 446, 16, 3134, 1586, 16, 394, 453, 7722, 10732, 4301, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7110, 4301, 5164, 12, 52, 7722, 5852, 1085, 2404, 1046, 628, 1046, 13, 288, 565, 2240, 12, 2080, 1046, 18, 588, 1528, 9334, 446, 16, 3134, 1586, 16, 394, 453, 7722, 10732, 4301, 6...
CompletionProposal completionProposal = completionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposalsList.add(completionProposal);
WODCompletionProposal completionProposal = new WODCompletionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposals.add(completionProposal);
protected String findMemberProposals(IMember _member, String _partialToken, String[] _prefixes, String _token, int _tokenOffset, int _offset, List _completionProposalsList, int _requiredParameterCount, boolean _returnValueRequired) throws JavaModelException { String nextType = null; int flags = _member.getFlags(); if (!Flags.isStatic(flags) && !Flags.isPrivate(flags)) { boolean memberMatches = false; if (_member instanceof IMethod) { IMethod method = (IMethod) _member; if (method.getParameterNames().length == _requiredParameterCount) { nextType = method.getReturnType(); if (_returnValueRequired && nextType != null && !nextType.equals("V")) { memberMatches = true; } else if (!_returnValueRequired && (nextType == null || nextType.equals("V"))) { memberMatches = true; } else { nextType = null; } } } else { nextType = ((IField) _member).getTypeSignature(); memberMatches = true; } if (memberMatches) { String elementName = _member.getElementName(); String lowercaseElementName = elementName.toLowerCase(); String proposalElementName = null; for (int prefixNum = 0; proposalElementName == null && prefixNum < _prefixes.length; prefixNum++) { if (lowercaseElementName.startsWith(_prefixes[prefixNum])) { int prefixLength = _prefixes[prefixNum].length(); String noPrefixElementName = lowercaseElementName.substring(prefixLength); if (noPrefixElementName.startsWith(_partialToken)) { proposalElementName = elementName.substring(prefixLength); if (proposalElementName.length() > 0) { char firstChar = proposalElementName.charAt(0); if (Character.isUpperCase(firstChar)) { proposalElementName = Character.toLowerCase(firstChar) + proposalElementName.substring(1); } } } } } if (proposalElementName == null && lowercaseElementName.startsWith(_partialToken)) { proposalElementName = elementName; } if (proposalElementName != null) { CompletionProposal completionProposal = completionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposalsList.add(completionProposal); } else { nextType = null; } } } return nextType; }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/0121c50c657e485c351b986b3b99a5c73cbbb9a3/WODCompletionProcessor.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/editors/WODCompletionProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 1104, 4419, 626, 22536, 12, 3445, 2558, 389, 5990, 16, 514, 389, 11601, 1345, 16, 514, 8526, 389, 17777, 16, 514, 389, 2316, 16, 509, 389, 2316, 2335, 16, 509, 389, 3348, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 1104, 4419, 626, 22536, 12, 3445, 2558, 389, 5990, 16, 514, 389, 11601, 1345, 16, 514, 8526, 389, 17777, 16, 514, 389, 2316, 16, 509, 389, 2316, 2335, 16, 509, 389, 3348, 16,...