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
synPredMatched2238 = false;
synPredMatched2239 = false;
public final void return_options(AST _t) throws RecognitionException { AST return_options_AST_in = (_t == ASTNULL) ? null : (AST)_t; { boolean synPredMatched2236 = false; if (_t==null) _t=ASTNULL; if (((_tokenSet_3.member(_t.getType())))) { AST __t2236 = _t; synPredMatched2236 = true; inputState.guessing++; try { { AST __t2235 = _t; AST tmp2331_AST_in = (AST)_t; match(_t,ERROR); _t = _t.getFirstChild(); AST tmp2332_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp2333_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); AST tmp2334_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2235; _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched2236 = false; } _t = __t2236;inputState.guessing--; } if ( synPredMatched2236 ) { expression(_t); _t = _retTree; } else { boolean synPredMatched2238 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==ERROR))) { AST __t2238 = _t; synPredMatched2238 = true; inputState.guessing++; try { { AST tmp2335_AST_in = (AST)_t; match(_t,ERROR); _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched2238 = false; } _t = __t2238;inputState.guessing--; } if ( synPredMatched2238 ) { AST tmp2336_AST_in = (AST)_t; match(_t,ERROR); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==EOF||_t.getType()==3||_t.getType()==PERIOD)) { } else { throw new NoViableAltException(_t); } } } else if ((_t.getType()==NOAPPLY)) { AST tmp2337_AST_in = (AST)_t; match(_t,NOAPPLY); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==EOF||_t.getType()==3||_t.getType()==PERIOD)) { } else { throw new NoViableAltException(_t); } } } else if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 327, 67, 2116, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 327, 67, 2116, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 95, 202, 202, 6494, 6194, 10391, 15400, 3787, 5718, 273, 629, 31, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 430, 261, 12443, 67, 2316, 694, 67, 23, 18, 5990, 24899, 88, 18, 588, 559, 1435, 3719, 3719, 288, 1082, 202, 9053, 1001, 88, 3787, 5718, 273, 389, 88, 31, 1082, 202, 11982, 10391, 15400, 3787, 5718, 273, 638, 31, 1082, 202, 2630, 1119, 18, 20885, 310, 9904, 31, 1082, 202, 698, 288, 9506, 202, 95, 9506, 202, 9053, 1001, 88, 3787, 4763, 273, 389, 88, 31, 9506, 202, 9053, 1853, 31026, 21, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 3589, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 9506, 202, 9053, 1853, 4366, 1578, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 10066, 15111, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 9053, 1853, 31026, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 22261, 67, 1985, 1769, 9506, 202, 67, 88, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 327, 67, 2116, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 327, 67, 2116, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 95, 202, 202, 6494, 6194, 10391, 15400, 3787, 5718, 273, 629, 31, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 430, 261, 12443, 67, 2316, 694, 67, 23, 18, 5990, 24899, 88, 18, 588, 559, 1435, 3719, 3719, 288, 1082, 202, 9053, 1001, 88, 3787, 5718, 273, 389, 88, 31, 1082, 202, 11982, 10391, 15400, 3787, 5718, 273, 638, 31, 1082, 202, 2630, 1119, 18, 2 ]
public void clearCurrentDetails() {
public void clearCurrentDetails() {
public void clearCurrentDetails() { CurrentDetails.clear(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9c53370b3f7a88f29e38673527398c205d19f7d6/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2424, 3935, 3790, 1435, 202, 95, 202, 202, 3935, 3790, 18, 8507, 5621, 202, 97, 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, 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, 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, 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, 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, 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, 1, 1, 1, 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, 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, 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, 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, 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, 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, 918, 2424, 3935, 3790, 1435, 202, 95, 202, 202, 3935, 3790, 18, 8507, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertTrue(root.hasEntry(p("dir1/new dir"))); assertFalse(root.hasEntry(p("dir1/dir2")));
assertTrue(root.hasEntry(p("/dir1/new dir"))); assertFalse(root.hasEntry(p("/dir1/dir2")));
public void testRenamingSubdirectories() { root.doCreateDirectory(1, p("dir1")); root.doCreateDirectory(2, p("dir1/dir2")); root.doRename(p("dir1/dir2"), "new dir"); assertTrue(root.hasEntry(p("dir1/new dir"))); assertFalse(root.hasEntry(p("dir1/dir2"))); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/8a6fdbc15b3cd4aaa232cf2026aa4a60418c162a/RootEntryDirectoriesTest.java/clean/LocalVcs/test/com/intellij/localvcs/RootEntryDirectoriesTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 16290, 7772, 1676, 15121, 1435, 288, 565, 1365, 18, 2896, 1684, 2853, 12, 21, 16, 293, 2932, 1214, 21, 7923, 1769, 565, 1365, 18, 2896, 1684, 2853, 12, 22, 16, 293, 2932, 1214, 21, 19, 1214, 22, 7923, 1769, 565, 1365, 18, 2896, 16019, 12, 84, 2932, 1214, 21, 19, 1214, 22, 6, 3631, 315, 2704, 1577, 8863, 565, 1815, 5510, 12, 3085, 18, 5332, 1622, 12, 84, 2932, 1214, 21, 19, 2704, 1577, 6, 3719, 1769, 565, 1815, 8381, 12, 3085, 18, 5332, 1622, 12, 84, 2932, 1214, 21, 19, 1214, 22, 6, 3719, 1769, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 16290, 7772, 1676, 15121, 1435, 288, 565, 1365, 18, 2896, 1684, 2853, 12, 21, 16, 293, 2932, 1214, 21, 7923, 1769, 565, 1365, 18, 2896, 1684, 2853, 12, 22, 16, 293, 2932, 1214, 21, 19, 1214, 22, 7923, 1769, 565, 1365, 18, 2896, 16019, 12, 84, 2932, 1214, 21, 19, 1214, 22, 6, 3631, 315, 2704, 1577, 8863, 565, 1815, 5510, 12, 3085, 18, 5332, 1622, 12, 84, 2932, 1214, 21, 19, 2704, 1577, 6, 3719, 1769, 565, 1815, 8381, 12, 3085, 18, 5332, 1622, 12, 84, 2932, 1214, 21, 19, 1214, 22, 6, 3719, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (cause instanceof TooManySatisfiableMethodsException) {
if (cause != null && cause.getClass().isAssignableFrom(TooManySatisfiableMethodsException.class)) {
public void testFailEntryPointMultipleEventContextMatches() throws Exception { UMOEntryPointResolver epd = getEntryPointResolver(); UMODescriptor descriptor = getTestDescriptor("badContexts", MultipleEventContextsTestObject.class.getName()); UMOEntryPoint ep; ep = epd.resolveEntryPoint(descriptor); assertTrue(ep != null); try { RequestContext.setEvent(getTestEvent("Hello")); ep.invoke(new MultipleEventContextsTestObject(), RequestContext.getEventContext()); fail("Should have failed to find entrypoint."); } catch (InvocationTargetException itex) { final Throwable cause = itex.getCause(); if (cause instanceof TooManySatisfiableMethodsException) { // expected } else { throw itex; } } finally { RequestContext.setEvent(null); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/e4a596928caf8df6fd4e25eaf0066305766f0ed9/ExtendedEntryPointDiscoveryTestCase.java/clean/src/test/java/org/mule/test/mule/model/ExtendedEntryPointDiscoveryTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3754, 1622, 2148, 8438, 1133, 1042, 6869, 1435, 1216, 1185, 565, 288, 3639, 587, 5980, 1622, 2148, 4301, 5529, 72, 273, 15428, 2148, 4301, 5621, 3639, 587, 6720, 2263, 4950, 273, 29384, 3187, 2932, 8759, 15518, 3113, 13531, 1133, 15518, 4709, 921, 18, 1106, 18, 17994, 10663, 3639, 587, 5980, 1622, 2148, 5529, 31, 3639, 5529, 273, 5529, 72, 18, 10828, 1622, 2148, 12, 12628, 1769, 3639, 1815, 5510, 12, 881, 480, 446, 1769, 3639, 775, 288, 5411, 20479, 18, 542, 1133, 12, 588, 4709, 1133, 2932, 18601, 7923, 1769, 5411, 5529, 18, 14407, 12, 2704, 13531, 1133, 15518, 4709, 921, 9334, 20479, 18, 588, 1133, 1042, 10663, 5411, 2321, 2932, 14309, 1240, 2535, 358, 1104, 26076, 1199, 1769, 3639, 289, 1044, 261, 9267, 14950, 518, 338, 13, 288, 5411, 727, 4206, 4620, 273, 518, 338, 18, 588, 10683, 5621, 5411, 309, 261, 2700, 480, 446, 597, 4620, 18, 588, 797, 7675, 291, 7961, 1265, 12, 10703, 5594, 15163, 7396, 2214, 4712, 503, 18, 1106, 3719, 288, 7734, 368, 2665, 5411, 289, 469, 288, 7734, 604, 518, 338, 31, 5411, 289, 3639, 289, 3095, 288, 5411, 20479, 18, 542, 1133, 12, 2011, 1769, 3639, 289, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3754, 1622, 2148, 8438, 1133, 1042, 6869, 1435, 1216, 1185, 565, 288, 3639, 587, 5980, 1622, 2148, 4301, 5529, 72, 273, 15428, 2148, 4301, 5621, 3639, 587, 6720, 2263, 4950, 273, 29384, 3187, 2932, 8759, 15518, 3113, 13531, 1133, 15518, 4709, 921, 18, 1106, 18, 17994, 10663, 3639, 587, 5980, 1622, 2148, 5529, 31, 3639, 5529, 273, 5529, 72, 18, 10828, 1622, 2148, 12, 12628, 1769, 3639, 1815, 5510, 12, 881, 480, 446, 1769, 3639, 775, 288, 5411, 20479, 18, 542, 1133, 12, 588, 4709, 1133, 2932, 18601, 7923, 1769, 5411, 5529, 18, 14407, 12, 2704, 13531, 1133, 15518, 4709, 921, 9334, 20479, 18, 588, 1133, 1042, 10663, 5411, 2321, 2932, 14309, 1240, 2535, 358, 2 ]
{ return m_data.getProperties().get(Constants.CAN_PRODUCE_FIGHTERS_ON_CARRIERS, false); }
{ return m_data.getProperties().get(Constants.CAN_PRODUCE_FIGHTERS_ON_CARRIERS, false); }
private boolean canProduceFightersOnCarriers() { return m_data.getProperties().get(Constants.CAN_PRODUCE_FIGHTERS_ON_CARRIERS, false); }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/1ce4f0ed1b98517b885661c3695c3d788f6b9979/AbstractPlaceDelegate.java/buggy/src/games/strategy/triplea/delegate/AbstractPlaceDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 848, 25884, 42, 2031, 5432, 1398, 16321, 566, 414, 1435, 565, 288, 3639, 327, 312, 67, 892, 18, 588, 2297, 7675, 588, 12, 2918, 18, 39, 1258, 67, 8025, 1212, 57, 1441, 67, 5236, 44, 2560, 55, 67, 673, 67, 39, 985, 2259, 11367, 16, 629, 1769, 4202, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 3238, 1250, 848, 25884, 42, 2031, 5432, 1398, 16321, 566, 414, 1435, 565, 288, 3639, 327, 312, 67, 892, 18, 588, 2297, 7675, 588, 12, 2918, 18, 39, 1258, 67, 8025, 1212, 57, 1441, 67, 5236, 44, 2560, 55, 67, 673, 67, 39, 985, 2259, 11367, 16, 629, 1769, 4202, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
handshake = key!=null?socket.handshake(key.isReadable(), key.isWritable()):-1;
handshake = socket.handshake(key.isReadable(), key.isWritable());
public void run() { // Process requests until we receive a shutdown signal while (running) { try { // Wait for the next socket to be assigned Object channel = await(); if (channel == null) continue; if ( channel instanceof SocketChannel) { SocketChannel sc = (SocketChannel)channel; if ( !setSocketOptions(sc) ) { try { sc.socket().close(); sc.close(); }catch ( IOException ix ) { if ( log.isDebugEnabled() ) log.debug("",ix); } } else { //now we have it registered, remove it from the cache } } else { NioChannel socket = (NioChannel)channel; SelectionKey key = socket.getIOChannel().keyFor(socket.getPoller().getSelector()); int handshake = -1; try { handshake = key!=null?socket.handshake(key.isReadable(), key.isWritable()):-1; }catch ( IOException x ) { handshake = -1; if ( log.isDebugEnabled() ) log.debug("Error during SSL handshake",x); }catch ( CancelledKeyException ckx ) { handshake = -1; } if ( handshake == 0 ) { // Process the request from this socket if ((status != null) && (handler.event(socket, status) == Handler.SocketState.CLOSED)) { // Close socket and pool try { KeyAttachment att = (KeyAttachment)socket.getAttachment(true); try {socket.close();}catch (Exception ignore){} if ( socket.isOpen() ) socket.close(true); nioChannels.offer(socket); if ( att!=null ) keyCache.offer(att); }catch ( Exception x ) { log.error("",x); } } else if ((status == null) && (handler.process(socket) == Handler.SocketState.CLOSED)) { // Close socket and pool try { KeyAttachment att = (KeyAttachment)socket.getAttachment(true); try {socket.close();}catch (Exception ignore){} if ( socket.isOpen() ) socket.close(true); nioChannels.offer(socket); if ( att!=null ) keyCache.offer(att); }catch ( Exception x ) { log.error("",x); } } } else if (handshake == -1 ) { if ( key.isValid() ) key.cancel(); try {socket.close(true);}catch (IOException ignore){} nioChannels.offer(socket); } else { final SelectionKey fk = key; final int intops = handshake; final KeyAttachment ka = (KeyAttachment)fk.attachment(); ka.getPoller().add(socket,intops); } } } finally { //dereference socket to let GC do its job socket = null; // Finish up this request recycleWorkerThread(this); } } }
26330 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26330/6b40b2d8eec434a85e28eea8623479192095cdaa/NioEndpoint.java/buggy/java/org/apache/tomcat/util/net/NioEndpoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 368, 4389, 3285, 3180, 732, 6798, 279, 5731, 4277, 5411, 1323, 261, 8704, 13, 288, 7734, 775, 288, 10792, 368, 5838, 364, 326, 1024, 2987, 358, 506, 6958, 10792, 1033, 1904, 273, 4273, 5621, 10792, 309, 261, 4327, 422, 446, 13, 13491, 1324, 31, 10792, 309, 261, 1904, 1276, 8758, 2909, 13, 288, 13491, 8758, 2909, 888, 273, 261, 4534, 2909, 13, 4327, 31, 13491, 309, 261, 401, 542, 4534, 1320, 12, 1017, 13, 262, 288, 18701, 775, 288, 27573, 888, 18, 7814, 7675, 4412, 5621, 27573, 888, 18, 4412, 5621, 18701, 289, 14683, 261, 1860, 8288, 262, 288, 27573, 309, 261, 613, 18, 291, 2829, 1526, 1435, 262, 613, 18, 4148, 2932, 3113, 697, 1769, 18701, 289, 13491, 289, 469, 288, 18701, 368, 3338, 732, 1240, 518, 4104, 16, 1206, 518, 628, 326, 1247, 4766, 10792, 289, 10792, 289, 469, 288, 13491, 423, 1594, 2909, 2987, 273, 261, 50, 1594, 2909, 13, 4327, 31, 13491, 12977, 653, 498, 273, 2987, 18, 588, 4294, 2909, 7675, 856, 1290, 12, 7814, 18, 588, 5850, 749, 7675, 588, 4320, 10663, 13491, 509, 11942, 273, 300, 21, 31, 13491, 775, 288, 18701, 11942, 273, 2987, 18, 2349, 7478, 12, 856, 18, 291, 14151, 9334, 498, 18, 291, 12061, 10663, 13491, 289, 14683, 261, 1860, 619, 262, 288, 18701, 11942, 273, 300, 21, 31, 18701, 309, 261, 613, 18, 291, 2829, 1526, 1435, 262, 613, 18, 4148, 2932, 668, 4982, 7419, 11942, 3113, 92, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 1071, 918, 1086, 1435, 288, 5411, 368, 4389, 3285, 3180, 732, 6798, 279, 5731, 4277, 5411, 1323, 261, 8704, 13, 288, 7734, 775, 288, 10792, 368, 5838, 364, 326, 1024, 2987, 358, 506, 6958, 10792, 1033, 1904, 273, 4273, 5621, 10792, 309, 261, 4327, 422, 446, 13, 13491, 1324, 31, 10792, 309, 261, 1904, 1276, 8758, 2909, 13, 288, 13491, 8758, 2909, 888, 273, 261, 4534, 2909, 13, 4327, 31, 13491, 309, 261, 401, 542, 4534, 1320, 12, 1017, 13, 262, 288, 18701, 775, 288, 27573, 888, 18, 7814, 7675, 4412, 5621, 27573, 888, 18, 4412, 5621, 18701, 289, 14683, 261, 1860, 8288, 262, 288, 27573, 309, 261, 613, 18, 291, 2829, 1526, 1435, 262, 613, 18, 4148, 2 ]
if (SRPRegistry.CONFIDENTIALITY_ALGORITHMS[i].equals(option)) { chosenConfidentialityAlgorithm = option; confidentiality = true; break; } } if (!confidentiality) { throw new AuthenticationException( "Unknown confidentiality algorithm: " + option);
chosenConfidentialityAlgorithm = option; confidentiality = true; break;
private void parseO(final String o) throws AuthenticationException { this.replayDetection = false; boolean integrity = false; boolean confidentiality = false; String option; int i; final StringTokenizer st = new StringTokenizer(o.toLowerCase(), ","); while (st.hasMoreTokens()) { option = st.nextToken(); if (DEBUG && debuglevel > 6) debug(TRACE, "option: <" + option + ">"); if (option.equals(SRPRegistry.OPTION_REPLAY_DETECTION)) { replayDetection = true; } else if (option.startsWith(SRPRegistry.OPTION_INTEGRITY + "=")) { if (integrity) { throw new AuthenticationException( "Only one integrity algorithm may be chosen"); } else { option = option.substring(option.indexOf('=') + 1); if (DEBUG && debuglevel > 6) debug(TRACE, "algorithm: <" + option + ">"); for (i = 0; i < SRPRegistry.INTEGRITY_ALGORITHMS.length; i++) { if (SRPRegistry.INTEGRITY_ALGORITHMS[i].equals(option)) { chosenIntegrityAlgorithm = option; integrity = true; break; } } if (!integrity) { throw new AuthenticationException( "Unknown integrity algorithm: " + option); } } } else if (option.startsWith(SRPRegistry.OPTION_CONFIDENTIALITY + "=")) { if (confidentiality) { throw new AuthenticationException( "Only one confidentiality algorithm may be chosen"); } else { option = option.substring(option.indexOf('=') + 1); if (DEBUG && debuglevel > 6) debug(TRACE, "algorithm: <" + option + ">"); for (i = 0; i < SRPRegistry.CONFIDENTIALITY_ALGORITHMS.length; i++) { if (SRPRegistry.CONFIDENTIALITY_ALGORITHMS[i].equals(option)) { chosenConfidentialityAlgorithm = option; confidentiality = true; break; } } if (!confidentiality) { throw new AuthenticationException( "Unknown confidentiality algorithm: " + option); } } } else if (option.startsWith(SRPRegistry.OPTION_MAX_BUFFER_SIZE + "=")) { final String maxBufferSize = option.substring(option.indexOf('=') + 1); try { rawSendSize = Integer.parseInt(maxBufferSize); if (rawSendSize > Registry.SASL_BUFFER_MAX_LIMIT || rawSendSize < 1) throw new AuthenticationException( "Illegal value for 'maxbuffersize' option"); } catch (NumberFormatException x) { throw new AuthenticationException( SRPRegistry.OPTION_MAX_BUFFER_SIZE + "=" + String.valueOf(maxBufferSize), x); } } } // check if client did the right thing if (replayDetection) { if (!integrity) { throw new AuthenticationException( "Missing integrity protection algorithm " + "but replay detection is chosen"); } } if (mandatory.equals(SRPRegistry.OPTION_REPLAY_DETECTION)) { if (!replayDetection) { throw new AuthenticationException( "Replay detection is mandatory but was not chosen"); } } if (mandatory.equals(SRPRegistry.OPTION_INTEGRITY)) { if (!integrity) { throw new AuthenticationException( "Integrity protection is mandatory but was not chosen"); } } if (mandatory.equals(SRPRegistry.OPTION_CONFIDENTIALITY)) { if (!confidentiality) { throw new AuthenticationException( "Confidentiality is mandatory but was not chosen"); } } int blockSize = 0; if (chosenConfidentialityAlgorithm != null) { final IBlockCipher cipher = CipherFactory.getInstance(chosenConfidentialityAlgorithm); if (cipher != null) { blockSize = cipher.defaultBlockSize(); } else { // should not happen throw new AuthenticationException("Confidentiality algorithm (" + chosenConfidentialityAlgorithm + ") not available"); } } sIV = new byte[blockSize]; if (blockSize > 0) getDefaultPRNG().nextBytes(sIV); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8ace3af577b4314374a3cc74fdeae04a0733f7de/SRPServer.java/clean/gnu/javax/crypto/sasl/srp/SRPServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1109, 51, 12, 6385, 514, 320, 13, 1216, 23458, 225, 288, 565, 333, 18, 266, 1601, 10214, 273, 629, 31, 565, 1250, 24425, 273, 629, 31, 565, 1250, 2195, 350, 2001, 560, 273, 629, 31, 565, 514, 1456, 31, 565, 509, 277, 31, 565, 727, 16370, 384, 273, 394, 16370, 12, 83, 18, 869, 5630, 9334, 5753, 1769, 565, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 1377, 288, 3639, 1456, 273, 384, 18, 4285, 1345, 5621, 3639, 309, 261, 9394, 597, 1198, 2815, 405, 1666, 13, 1850, 1198, 12, 23827, 16, 315, 3482, 30, 411, 6, 397, 1456, 397, 14675, 1769, 3639, 309, 261, 3482, 18, 14963, 12, 10090, 52, 4243, 18, 7425, 67, 28879, 7868, 67, 1639, 1448, 3106, 3719, 1850, 288, 5411, 16033, 10214, 273, 638, 31, 1850, 289, 3639, 469, 309, 261, 3482, 18, 17514, 1190, 12, 10090, 52, 4243, 18, 7425, 67, 706, 1448, 6997, 4107, 397, 9671, 3719, 1850, 288, 5411, 309, 261, 27423, 560, 13, 2868, 288, 7734, 604, 394, 23458, 12, 4766, 5375, 315, 3386, 1245, 24425, 4886, 2026, 506, 10447, 8863, 2868, 289, 5411, 469, 2868, 288, 7734, 1456, 273, 1456, 18, 28023, 12, 3482, 18, 31806, 2668, 2218, 13, 397, 404, 1769, 7734, 309, 261, 9394, 597, 1198, 2815, 405, 1666, 13, 5375, 1198, 12, 23827, 16, 315, 12743, 30, 411, 6, 397, 1456, 397, 14675, 1769, 7734, 364, 261, 77, 273, 374, 31, 277, 411, 19145, 52, 4243, 18, 706, 1448, 6997, 4107, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 51, 12, 6385, 514, 320, 13, 1216, 23458, 225, 288, 565, 333, 18, 266, 1601, 10214, 273, 629, 31, 565, 1250, 24425, 273, 629, 31, 565, 1250, 2195, 350, 2001, 560, 273, 629, 31, 565, 514, 1456, 31, 565, 509, 277, 31, 565, 727, 16370, 384, 273, 394, 16370, 12, 83, 18, 869, 5630, 9334, 5753, 1769, 565, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 1377, 288, 3639, 1456, 273, 384, 18, 4285, 1345, 5621, 3639, 309, 261, 9394, 597, 1198, 2815, 405, 1666, 13, 1850, 1198, 12, 23827, 16, 315, 3482, 30, 411, 6, 397, 1456, 397, 14675, 1769, 3639, 309, 261, 3482, 18, 14963, 12, 10090, 52, 4243, 18, 7425, 67, 28879, 2 ]
pg_stream.Send(buf);
pg_stream.Send(sql.getBytes());
public java.sql.ResultSet ExecSQL(String sql) throws SQLException { // added Oct 7 1998 to give us thread safety. synchronized(pg_stream) { Field[] fields = null; Vector tuples = new Vector(); byte[] buf = null; int fqp = 0; boolean hfr = false; String recv_status = null, msg; int update_count = 1; int insert_oid = 0; SQLException final_error = null; // Commented out as the backend can now handle queries // larger than 8K. Peter June 6 2000 //if (sql.length() > 8192) //throw new PSQLException("postgresql.con.toolong",sql); if (getEncoding() == null) buf = sql.getBytes(); else { try { buf = sql.getBytes(getEncoding()); } catch (UnsupportedEncodingException unse) { throw new PSQLException("postgresql.con.encoding", unse); } } try { pg_stream.SendChar('Q'); buf = sql.getBytes(); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(8192); break; case 'B': // Binary Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(8192); // Now handle the update count correctly. if(recv_status.startsWith("INSERT") || recv_status.startsWith("UPDATE") || recv_status.startsWith("DELETE")) { try { update_count = Integer.parseInt(recv_status.substring(1+recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } if(recv_status.startsWith("INSERT")) { try { insert_oid = Integer.parseInt(recv_status.substring(1+recv_status.indexOf(' '),recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } } } if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(4096); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new PSQLException("postgresql.con.garbled"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(4096)); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(8192); break; case 'T': // MetaData Field Description if (fields != null) throw new PSQLException("postgresql.con.multres"); fields = ReceiveFields(); break; case 'Z': // backend ready for query, ignore for now :-) break; default: throw new PSQLException("postgresql.con.type",new Character((char)c)); } } if (final_error != null) throw final_error; return getResultSet(this, fields, tuples, recv_status, update_count, insert_oid); } }
45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/f41dcbe4d810f0906f43d1b345cf506d72c792ac/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, 3256, 13, 288, 202, 377, 202, 565, 2286, 8526, 1466, 273, 446, 31, 202, 565, 5589, 10384, 273, 394, 5589, 5621, 202, 565, 1160, 8526, 1681, 273, 446, 31, 202, 565, 509, 8508, 84, 273, 374, 31, 202, 565, 1250, 366, 4840, 273, 629, 31, 202, 565, 514, 10665, 67, 2327, 273, 446, 16, 1234, 31, 202, 565, 509, 1089, 67, 1883, 273, 404, 31, 202, 565, 509, 2243, 67, 839, 273, 374, 31, 202, 565, 6483, 727, 67, 1636, 273, 446, 31, 202, 377, 202, 565, 368, 9821, 329, 596, 487, 326, 4221, 848, 2037, 1640, 6218, 202, 565, 368, 10974, 2353, 1725, 47, 18, 453, 847, 804, 7556, 1666, 16291, 202, 565, 368, 430, 261, 4669, 18, 2469, 1435, 405, 26730, 13, 202, 565, 368, 12849, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 6738, 932, 3113, 4669, 1769, 3639, 309, 261, 588, 4705, 1435, 422, 446, 13, 5411, 1681, 273, 1847, 18, 588, 2160, 5621, 3639, 469, 288, 5411, 775, 288, 7734, 1681, 273, 1847, 18, 588, 2160, 12, 588, 4705, 10663, 5411, 289, 1044, 261, 8544, 13836, 640, 307, 13, 288, 1171, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 5999, 3113, 4766, 3639, 640, 307, 1769, 5411, 289, 3639, 289, 202, 565, 775, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, 3256, 13, 288, 202, 377, 202, 565, 2286, 8526, 1466, 273, 446, 31, 202, 565, 5589, 10384, 273, 394, 5589, 5621, 202, 565, 1160, 8526, 1681, 273, 446, 31, 202, 565, 509, 8508, 84, 273, 374, 31, 202, 565, 1250, 366, 4840, 273, 629, 31, 202, 565, 514, 10665, 67, 2327, 273, 446, 16, 1234, 31, 202, 565, 509, 1089, 67, 1883, 273, 404, 31, 202, 565, 509, 2243, 67, 839, 273, 374, 31, 202, 565, 6483, 727, 67, 1636, 273, 446, 31, 202, 2 ]
if (b[i + 1] != r[i]) { fail("different content"); }
assertEquals("different content", b[i + 1], r[i]);
public void testDoFinalbyteArrayintint() { byte [] b = {1, 2, 3, 4, 5}; byte [] r = null; try { r = c.doFinal(b, 0, 5); } catch (BadPaddingException e) { fail(e.toString()); } catch (IllegalBlockSizeException e) { fail(e.toString()); } if (b.length != r.length) { fail("different length"); } for (int i = 0; i < b.length; i++) { if (b[i] != r[i]) { fail("different content"); } } try { r = c.doFinal(b, 1, 3); } catch (BadPaddingException e) { fail(e.toString()); } catch (IllegalBlockSizeException e) { fail(e.toString()); } if (r.length != 3) { fail("different length"); } for (int i = 0; i < 3; i++) { if (b[i + 1] != r[i]) { fail("different content"); } } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4d76bfb2eadb70e06c48c35a604c83b3f0eefc76/NullCipherTest.java/buggy/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/NullCipherTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3244, 7951, 7229, 1076, 474, 474, 1435, 288, 202, 202, 7229, 5378, 324, 273, 288, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 20451, 202, 202, 7229, 5378, 436, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 86, 273, 276, 18, 2896, 7951, 12, 70, 16, 374, 16, 1381, 1769, 202, 202, 97, 1044, 261, 6434, 9485, 503, 425, 13, 288, 1082, 202, 6870, 12, 73, 18, 10492, 10663, 202, 202, 97, 1044, 261, 12195, 22506, 503, 225, 425, 13, 288, 1082, 202, 6870, 12, 73, 18, 10492, 10663, 202, 202, 97, 202, 202, 430, 261, 70, 18, 2469, 480, 436, 18, 2469, 13, 288, 1082, 202, 6870, 2932, 30738, 769, 8863, 202, 202, 97, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 324, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 70, 63, 77, 65, 480, 436, 63, 77, 5717, 288, 9506, 202, 6870, 2932, 30738, 913, 8863, 1082, 202, 97, 202, 202, 97, 9506, 202, 698, 288, 1082, 202, 86, 273, 276, 18, 2896, 7951, 12, 70, 16, 404, 16, 890, 1769, 202, 202, 97, 1044, 261, 6434, 9485, 503, 425, 13, 288, 1082, 202, 6870, 12, 73, 18, 10492, 10663, 202, 202, 97, 1044, 261, 12195, 22506, 503, 225, 425, 13, 288, 1082, 202, 6870, 12, 73, 18, 10492, 10663, 202, 202, 97, 202, 202, 430, 261, 86, 18, 2469, 480, 890, 13, 288, 1082, 202, 6870, 2932, 30738, 769, 8863, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3244, 7951, 7229, 1076, 474, 474, 1435, 288, 202, 202, 7229, 5378, 324, 273, 288, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 20451, 202, 202, 7229, 5378, 436, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 86, 273, 276, 18, 2896, 7951, 12, 70, 16, 374, 16, 1381, 1769, 202, 202, 97, 1044, 261, 6434, 9485, 503, 425, 13, 288, 1082, 202, 6870, 12, 73, 18, 10492, 10663, 202, 202, 97, 1044, 261, 12195, 22506, 503, 225, 425, 13, 288, 1082, 202, 6870, 12, 73, 18, 10492, 10663, 202, 202, 97, 202, 202, 430, 261, 70, 18, 2469, 480, 436, 18, 2469, 13, 288, 1082, 202, 6870, 2932, 30738, 769, 8863, 2 ]
context.destroy(); pbufferDrawable.destroy();
if (Threading.isSingleThreaded() && !Threading.isOpenGLThread()) { Threading.invokeOnOpenGLThread(destroyAction); } else { destroyAction.run(); }
public void destroy() { context.destroy(); pbufferDrawable.destroy(); }
47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/36887db6c983244917802f3ec761a0d28171887a/GLPbufferImpl.java/clean/src/classes/com/sun/opengl/impl/GLPbufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 5546, 1435, 288, 565, 819, 18, 11662, 5621, 565, 293, 4106, 16149, 18, 11662, 5621, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 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, 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, 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, 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, 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, 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, 5546, 1435, 288, 565, 819, 18, 11662, 5621, 565, 293, 4106, 16149, 18, 11662, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int numReliable = 0;
int numHighCapacity = 0;
private void harvestRankAs(NetMonitor monitor, RouterInfo peer) { int numFast = 0; int numReliable = 0; int numNotFailing = 0; int numFailing = 0; Properties props = peer.getOptions(); for (Iterator iter = props.keySet().iterator(); iter.hasNext(); ) { String key = (String)iter.next(); if (key.startsWith("profile.")) { String val = (String)props.get(key); if (val.indexOf("fastReliable") != -1) numFast++; else if (val.indexOf("reliable") != -1) numReliable++; else if (val.indexOf("notFailing") != -1) numNotFailing++; else if (val.indexOf("failing") != -1) numFailing++; } } long rankAs[] = new long[4]; rankAs[0] = numFast; rankAs[1] = numReliable; rankAs[2] = numNotFailing; rankAs[3] = numFailing; String description = "how we rank peers"; String valDescr[] = new String[4]; valDescr[0] = "# peers we rank as fast"; valDescr[1] = "# peers we rank as reliable"; valDescr[2] = "# peers we rank as not failing"; valDescr[3] = "# peers we rank as failing"; monitor.addData(peer.getIdentity().getHash().toBase64(), "rankAs", description, valDescr, peer.getPublished(), rankAs); }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/b81c5628ce92e6ad10f47150c858e079b3f2c268/DataHarvester.java/buggy/apps/netmonitor/java/src/net/i2p/netmonitor/DataHarvester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 17895, 26923, 12925, 1463, 12, 7308, 7187, 6438, 16, 9703, 966, 4261, 13, 288, 3639, 509, 818, 12305, 273, 374, 31, 3639, 509, 818, 8573, 7437, 273, 374, 31, 3639, 509, 818, 1248, 3754, 310, 273, 374, 31, 3639, 509, 818, 3754, 310, 273, 374, 31, 7734, 6183, 3458, 273, 4261, 18, 588, 1320, 5621, 3639, 364, 261, 3198, 1400, 273, 3458, 18, 856, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 514, 498, 273, 261, 780, 13, 2165, 18, 4285, 5621, 5411, 309, 261, 856, 18, 17514, 1190, 2932, 5040, 1199, 3719, 288, 7734, 514, 1244, 273, 261, 780, 13, 9693, 18, 588, 12, 856, 1769, 7734, 309, 261, 1125, 18, 31806, 2932, 8076, 1971, 2214, 7923, 480, 300, 21, 13, 10792, 818, 12305, 9904, 31, 7734, 469, 309, 261, 1125, 18, 31806, 2932, 266, 549, 429, 7923, 480, 300, 21, 13, 10792, 818, 1971, 2214, 9904, 31, 7734, 469, 309, 261, 1125, 18, 31806, 2932, 902, 3754, 310, 7923, 480, 300, 21, 13, 10792, 818, 1248, 3754, 310, 9904, 31, 7734, 469, 309, 261, 1125, 18, 31806, 2932, 507, 4973, 7923, 480, 300, 21, 13, 10792, 818, 3754, 310, 9904, 31, 5411, 289, 3639, 289, 7734, 1525, 6171, 1463, 8526, 273, 394, 1525, 63, 24, 15533, 3639, 6171, 1463, 63, 20, 65, 273, 818, 12305, 31, 3639, 6171, 1463, 63, 21, 65, 273, 818, 1971, 2214, 31, 3639, 6171, 1463, 63, 22, 65, 273, 818, 1248, 3754, 310, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17895, 26923, 12925, 1463, 12, 7308, 7187, 6438, 16, 9703, 966, 4261, 13, 288, 3639, 509, 818, 12305, 273, 374, 31, 3639, 509, 818, 8573, 7437, 273, 374, 31, 3639, 509, 818, 1248, 3754, 310, 273, 374, 31, 3639, 509, 818, 3754, 310, 273, 374, 31, 7734, 6183, 3458, 273, 4261, 18, 588, 1320, 5621, 3639, 364, 261, 3198, 1400, 273, 3458, 18, 856, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 514, 498, 273, 261, 780, 13, 2165, 18, 4285, 5621, 5411, 309, 261, 856, 18, 17514, 1190, 2932, 5040, 1199, 3719, 288, 7734, 514, 1244, 273, 261, 780, 13, 9693, 18, 588, 12, 856, 1769, 7734, 309, 261, 1125, 18, 2 ]
protected Object businessMethod(Method callMethod, Method runMethod, Object [] args, ThreadContext callContext) throws org.openejb.OpenEJBException { EntityBean bean = null; TransactionPolicy txPolicy = callContext.getDeploymentInfo().getTransactionPolicy( callMethod ); TransactionContext txContext = new TransactionContext( callContext ); txPolicy.beforeInvoke( bean, txContext ); Object returnValue = null; try { Database db = getDatabase(callContext); bean = fetchAndLoadBean(callContext, db); //logger.debug("Invoking business method on "+bean); if ( OpenEJB.getTransactionManager().getTransaction() != null ) { try { Key key = new Key( OpenEJB.getTransactionManager().getTransaction(), callContext.getDeploymentInfo().getDeploymentID(), callContext.getPrimaryKey()); SynchronizationWrapper sync = new SynchronizationWrapper( ((javax.ejb.EntityBean)bean), key ); OpenEJB.getTransactionManager().getTransaction().registerSynchronization( sync ); syncWrappers.put( key, sync ); } catch ( Exception ex ) { ex.printStackTrace(); } } returnValue = runMethod.invoke(bean, args); } catch ( java.lang.reflect.InvocationTargetException ite ) { // handle enterprise bean exceptions if ( ite.getTargetException() instanceof RuntimeException ) { /* System Exception ****************************/ txPolicy.handleSystemException( ite.getTargetException(), bean, txContext); } else { /* Application Exception ***********************/ txPolicy.handleApplicationException( ite.getTargetException(), txContext); } } catch ( org.exolab.castor.jdo.DuplicateIdentityException e ) { /* Application Exception ***********************/ //TODO:3: Localize this message Exception re = new javax.ejb.DuplicateKeyException("Attempt to update an entity bean (DeploymentID=\""+callContext.getDeploymentInfo().getDeploymentID()+"\") with an primary key that already exsists. Castor nested exception message = "+e.getMessage()); txPolicy.handleSystemException( re, bean, txContext); } catch ( org.exolab.castor.jdo.ClassNotPersistenceCapableException e ) { /* System Exception ****************************/ //TODO:3: Localize this message RemoteException re = new RemoteException("Attempt to update an entity bean (DeploymentID=\""+txContext.callContext.getDeploymentInfo().getDeploymentID()+"\") that can not be persisted.", e); txPolicy.handleSystemException( re, bean, txContext); } catch ( org.exolab.castor.jdo.TransactionAbortedException e ) { /* System Exception ****************************/ //TODO:3: Localize this message RemoteException re = new RemoteException("Attempt to update an entity bean (DeploymentID=\""+txContext.callContext.getDeploymentInfo().getDeploymentID()+"\") failed because transaction was aborted.", e); txPolicy.handleSystemException( re, bean, txContext); } catch ( org.exolab.castor.jdo.TransactionNotInProgressException e ) { /* System Exception ****************************/ //TODO:3: Localize this message RemoteException re = new RemoteException("Attempt to update an entity bean (DeploymentID=\""+txContext.callContext.getDeploymentInfo().getDeploymentID()+"\") failed because a transaction didn't exist.", e); txPolicy.handleSystemException( re, bean, txContext); } catch ( org.exolab.castor.jdo.DatabaseNotFoundException e ) { /* System Exception ****************************/ txPolicy.handleSystemException( e, bean, txContext); } catch ( org.exolab.castor.jdo.PersistenceException e ) { /* System Exception ****************************/ txPolicy.handleSystemException( e, bean, txContext); } catch ( Throwable e ) {// handle reflection exception /* Any exception thrown by reflection; not by the enterprise bean. Possible Exceptions are: InstantiationException - if the bean instance can not be instantiated. Thrown by fetchAndLoadBean() IllegalAccessException - if the underlying method is inaccessible. IllegalArgumentException - if the number of actual and formal parameters differ, or if an unwrapping conversion fails. NullPointerException - if the specified object is null and the method is an instance method. ExceptionInInitializerError - if the initialization provoked by this method fails. */ /* System Exception ****************************/ txPolicy.handleSystemException( e, bean, txContext); } finally { txPolicy.afterInvoke( bean, txContext ); } return returnValue; }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/573534e5a220c625cf2ee9c177d1c12d1949a023/CastorCMP11_EntityContainer.java/clean/openejb0/src/facilities/org/openejb/alt/containers/castor_cmp11/CastorCMP11_EntityContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1033, 13160, 1305, 12, 1305, 745, 1305, 16, 2985, 1086, 1305, 16, 1033, 5378, 833, 16, 4884, 1042, 745, 1042, 13, 565, 1216, 2358, 18, 3190, 73, 10649, 18, 3678, 22719, 503, 565, 288, 3639, 3887, 3381, 3931, 273, 446, 31, 7734, 5947, 2582, 2229, 2582, 273, 745, 1042, 18, 588, 6733, 966, 7675, 588, 3342, 2582, 12, 745, 1305, 11272, 3639, 5947, 1042, 2229, 1042, 273, 394, 5947, 1042, 12, 745, 1042, 11272, 3639, 2229, 2582, 18, 5771, 10969, 12, 3931, 16, 2229, 1042, 11272, 3639, 1033, 7750, 273, 446, 31, 3639, 775, 288, 5411, 5130, 1319, 273, 11263, 12, 1991, 1042, 1769, 5411, 3931, 273, 2158, 1876, 2563, 3381, 12, 1991, 1042, 16, 1319, 1769, 5411, 368, 4901, 18, 4148, 2932, 11354, 310, 13160, 707, 603, 13773, 14496, 1769, 202, 565, 309, 261, 3502, 22719, 18, 588, 3342, 1318, 7675, 588, 3342, 1435, 480, 446, 262, 202, 565, 288, 5411, 775, 288, 5411, 1929, 498, 273, 394, 1929, 12, 3502, 22719, 18, 588, 3342, 1318, 7675, 588, 3342, 9334, 27573, 745, 1042, 18, 588, 6733, 966, 7675, 588, 6733, 734, 9334, 27573, 745, 1042, 18, 588, 11575, 10663, 5411, 26535, 1588, 3611, 3792, 273, 394, 26535, 1588, 3611, 12, 14015, 28384, 18, 73, 10649, 18, 1943, 3381, 13, 14496, 3631, 498, 11272, 5411, 3502, 22719, 18, 588, 3342, 1318, 7675, 588, 3342, 7675, 4861, 30196, 12, 3792, 11272, 5411, 3792, 24114, 18, 458, 12, 498, 16, 3792, 11272, 5411, 289, 1044, 261, 1185, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 13160, 1305, 12, 1305, 745, 1305, 16, 2985, 1086, 1305, 16, 1033, 5378, 833, 16, 4884, 1042, 745, 1042, 13, 565, 1216, 2358, 18, 3190, 73, 10649, 18, 3678, 22719, 503, 565, 288, 3639, 3887, 3381, 3931, 273, 446, 31, 7734, 5947, 2582, 2229, 2582, 273, 745, 1042, 18, 588, 6733, 966, 7675, 588, 3342, 2582, 12, 745, 1305, 11272, 3639, 5947, 1042, 2229, 1042, 273, 394, 5947, 1042, 12, 745, 1042, 11272, 3639, 2229, 2582, 18, 5771, 10969, 12, 3931, 16, 2229, 1042, 11272, 3639, 1033, 7750, 273, 446, 31, 3639, 775, 288, 5411, 5130, 1319, 273, 11263, 12, 1991, 1042, 1769, 5411, 3931, 273, 2158, 1876, 2563, 3381, 12, 1991, 1042, 16, 1319, 1769, 2 ]
Node callBody = getNextNode(); Node callNode = null; if (callBody.getType() == Constants.NODE_ARGS) { callNode = callBody; callBody = null; } else if (callBody.getType() == Constants.NODE_BLOCK) { callNode = callBody.getHeadNode(); callBody = callBody.getNextNode(); }
Node callBody = getNextNode(); Node callNode = null; if (callBody.getType() == Constants.NODE_ARGS) { callNode = callBody; callBody = null; } else if (callBody.getType() == Constants.NODE_BLOCK) { callNode = callBody.getHeadNode(); callBody = callBody.getNextNode(); }
public RubyObject call(Ruby ruby, RubyObject recv, String id, RubyPointer args, boolean noSuper) { if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null; // +++ = null; List valueList = null; ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCref = ruby.getCRef(); // s.a. ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } if (getTable() != null) { valueList = new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil())); ruby.getScope().setLocalValues(valueList); ruby.getScope().setLocalNames(getTable()); } else { valueList = null; //ruby.getScope().getLocalValues(); ruby.getScope().setLocalValues(null); ruby.getScope().setLocalNames(null); } Node callBody = getNextNode(); Node callNode = null; if (callBody.getType() == Constants.NODE_ARGS) { callNode = callBody; callBody = null; } else if (callBody.getType() == Constants.NODE_BLOCK) { callNode = callBody.getHeadNode(); callBody = callBody.getNextNode(); } RubyVarmap.push(ruby); // PUSH_TAG(PROT_FUNC); try { if (callNode != null) { //if (call_node.getType() != Constants.NODE_ARGS) { // rb_bug("no argument-node"); //} int i = callNode.getCount(); if (i > (args != null ? args.size() : 0)) { int size = 0; if (args != null) size = args.size(); throw new RubyArgumentException(ruby, getFile() + ":" + getLine() +"wrong # of arguments(" + size + " for " + i + ")"); } if (callNode.getRest() == -1) { int opt = i; Node optNode = callNode.getOptNode(); while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.size() : 0)) { throw new RubyArgumentException(ruby, "wrong # of arguments(" + args.size() + " for " + opt + ")"); } // +++ ruby.getRubyFrame().setArgs(valueList != null ? new DelegateList(valueList, 2, valueList.size()) : null); // --- } if (valueList != null) { if (i > 0) { for (int j = 0; j < i; j++) { valueList.set(j + 2, args.get(j)); } } args.inc(i); if (callNode.getOptNode() != null) { Node optNode = callNode.getOptNode(); while (optNode != null && args.size() != 0) { ((AssignableNode) optNode.getHeadNode()).assign(ruby, recv, args.getRuby(0), true); args.inc(1); optNode = optNode.getNextNode(); } recv.eval(optNode); } if (callNode.getRest() >= 0) { RubyArray array = null; if (args.size() > 0) { array = RubyArray.newArray(ruby, args); } else { array = RubyArray.newArray(ruby, 0); } valueList.set(callNode.getRest(), array); } } } return recv.eval(callBody); } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } finally { RubyVarmap.pop(ruby); ruby.getScope().pop(); if (savedCref != null) { ruby.setCRef(savedCref); } } }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/7798138390a306a202dcec9bde45928dae2e852e/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 514, 612, 16, 19817, 4926, 833, 16, 1250, 1158, 8051, 13, 288, 202, 202, 430, 261, 1968, 422, 446, 13, 288, 1082, 202, 1968, 273, 394, 19817, 4926, 5621, 202, 202, 97, 202, 202, 39, 1957, 907, 5198, 39, 1734, 273, 446, 31, 368, 965, 15, 273, 446, 31, 3639, 987, 460, 682, 273, 446, 31, 202, 202, 27768, 18, 588, 3876, 7675, 6206, 5621, 202, 202, 39, 1957, 907, 328, 30556, 273, 17404, 620, 5621, 202, 202, 430, 261, 80, 30556, 480, 446, 13, 288, 1082, 202, 14077, 39, 1734, 273, 22155, 18, 588, 39, 1957, 5621, 368, 272, 18, 69, 18, 1082, 202, 27768, 18, 542, 39, 1957, 12, 80, 30556, 1769, 1082, 202, 27768, 18, 588, 54, 10340, 3219, 7675, 542, 39, 1969, 12, 80, 30556, 1769, 202, 202, 97, 202, 202, 430, 261, 588, 1388, 1435, 480, 446, 13, 288, 5411, 460, 682, 273, 394, 2407, 12, 15150, 18, 82, 15670, 12, 588, 1388, 7675, 1467, 9334, 22155, 18, 588, 12616, 1435, 10019, 1082, 202, 27768, 18, 588, 3876, 7675, 542, 2042, 1972, 12, 1132, 682, 1769, 1082, 202, 27768, 18, 588, 3876, 7675, 542, 2042, 1557, 12, 588, 1388, 10663, 202, 202, 97, 469, 288, 1082, 202, 1132, 682, 273, 446, 31, 368, 27768, 18, 588, 3876, 7675, 588, 2042, 1972, 5621, 1082, 202, 27768, 18, 588, 3876, 7675, 542, 2042, 1972, 12, 2011, 1769, 1082, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 514, 612, 16, 19817, 4926, 833, 16, 1250, 1158, 8051, 13, 288, 202, 202, 430, 261, 1968, 422, 446, 13, 288, 1082, 202, 1968, 273, 394, 19817, 4926, 5621, 202, 202, 97, 202, 202, 39, 1957, 907, 5198, 39, 1734, 273, 446, 31, 368, 965, 15, 273, 446, 31, 3639, 987, 460, 682, 273, 446, 31, 202, 202, 27768, 18, 588, 3876, 7675, 6206, 5621, 202, 202, 39, 1957, 907, 328, 30556, 273, 17404, 620, 5621, 202, 202, 430, 261, 80, 30556, 480, 446, 13, 288, 1082, 202, 14077, 39, 1734, 273, 22155, 18, 588, 39, 1957, 5621, 368, 272, 18, 69, 18, 1082, 2 ]
pushConst((long)signedImmediate);
pushConst(signedImmediate&0xffffffffL);
private boolean emitInstruction(int pc, int insn, int nextInsn) throws Exn { if(insn == -1) throw new Exn("insn is -1"); int op = (insn >>> 26) & 0xff; // bits 26-31 int rs = (insn >>> 21) & 0x1f; // bits 21-25 int rt = (insn >>> 16) & 0x1f; // bits 16-20 int ft = (insn >>> 16) & 0x1f; int rd = (insn >>> 11) & 0x1f; // bits 11-15 int fs = (insn >>> 11) & 0x1f; int shamt = (insn >>> 6) & 0x1f; // bits 6-10 int fd = (insn >>> 6) & 0x1f; int subcode = insn & 0x3f; // bits 0-5 int breakCode = (insn >>> 6) & 0xfffff; // bits 6-20 int jumpTarget = (insn & 0x03ffffff); // bits 0-25 int unsignedImmediate = insn & 0xffff; int signedImmediate = (insn << 16) >> 16; int branchTarget = signedImmediate; // temporaries BranchHandle b1,b2; switch(op) { case 0: { switch(subcode) { case 0: // SLL if(insn == 0) break; preSetReg(R+rd); pushRegWZ(R+rt); pushConst(shamt); a(InstructionConstants.ISHL); setReg(); break; case 2: // SRL preSetReg(R+rd); pushRegWZ(R+rt); pushConst(shamt); a(InstructionConstants.IUSHR); setReg(); break; case 3: // SRA preSetReg(R+rd); pushRegWZ(R+rt); pushConst(shamt); a(InstructionConstants.ISHR); setReg(); break; case 4: // SLLV preSetReg(R+rd); pushRegWZ(R+rt); pushRegWZ(R+rs); a(InstructionConstants.ISHL); setReg(); break; case 6: // SRLV preSetReg(R+rd); pushRegWZ(R+rt); pushRegWZ(R+rs); a(InstructionConstants.IUSHR); setReg(); break; case 7: // SRAV preSetReg(R+rd); pushRegWZ(R+rt); pushRegWZ(R+rs); a(InstructionConstants.ISHR); setReg(); break; case 8: // JR if(pc == -1) throw new Exn("pc modifying insn in delay slot"); emitInstruction(-1,nextInsn,-1); preSetPC(); pushRegWZ(R+rs); setPC(); leaveMethod(); unreachable = true; break; case 9: // JALR if(pc == -1) throw new Exn("pc modifying insn in delay slot"); emitInstruction(-1,nextInsn,-1); preSetPC(); pushRegWZ(R+rs); setPC(); preSetReg(R+RA); pushConst(pc+8); setReg(); leaveMethod(); unreachable = true; break; case 12: // SYSCALL preSetPC(); pushConst(pc); setPC(); restoreChangedRegs(); preSetReg(R+V0); a(InstructionConstants.ALOAD_0); pushRegZ(R+V0); pushRegZ(R+A0); pushRegZ(R+A1); pushRegZ(R+A2); pushRegZ(R+A3); a(fac.createInvoke(fullClassName,"syscall",Type.INT,new Type[]{Type.INT,Type.INT,Type.INT,Type.INT,Type.INT},INVOKEVIRTUAL)); setReg(); a(InstructionConstants.ALOAD_0); a(fac.createFieldAccess(fullClassName,"state",Type.INT, GETFIELD)); pushConst(Runtime.RUNNING); b1 = a(InstructionFactory.createBranchInstruction(IF_ICMPEQ,null)); preSetPC(); pushConst(pc+4); setPC(); leaveMethod(); b1.setTarget(a(InstructionConstants.NOP)); break; case 13: // BREAK a(fac.createNew("org.ibex.nestedvm.Runtime$ExecutionException")); a(InstructionConstants.DUP); a(new PUSH(cp,"BREAK Code " + toHex(breakCode))); a(fac.createInvoke("org.ibex.nestedvm.Runtime$ExecutionException","<init>",Type.VOID,new Type[]{Type.STRING},INVOKESPECIAL)); a(InstructionConstants.ATHROW); unreachable = true; break; case 16: // MFHI preSetReg(R+rd); pushReg(HI); setReg(); break; case 17: // MTHI preSetReg(HI); pushRegZ(R+rs); setReg(); break; case 18: // MFLO preSetReg(R+rd); pushReg(LO); setReg(); break; case 19: // MTLO preSetReg(LO); pushRegZ(R+rs); setReg(); break; case 24: // MULT pushRegWZ(R+rs); a(InstructionConstants.I2L); pushRegWZ(R+rt); a(InstructionConstants.I2L); a(InstructionConstants.LMUL); a(InstructionConstants.DUP2); a(InstructionConstants.L2I); if(preSetReg(LO)) a(InstructionConstants.SWAP); setReg(); pushConst(32); a(InstructionConstants.LUSHR); a(InstructionConstants.L2I); if(preSetReg(HI)) a(InstructionConstants.SWAP); setReg(); break; case 25: // MULTU pushRegWZ(R+rs); a(InstructionConstants.I2L); pushConst(0xffffffffL); a(InstructionConstants.LAND); pushRegWZ(R+rt); a(InstructionConstants.I2L); pushConst(0xffffffffL); a(InstructionConstants.LAND); a(InstructionConstants.LMUL); a(InstructionConstants.DUP2); a(InstructionConstants.L2I); if(preSetReg(LO)) a(InstructionConstants.SWAP); setReg(); pushConst(32); a(InstructionConstants.LUSHR); a(InstructionConstants.L2I); if(preSetReg(HI)) a(InstructionConstants.SWAP); setReg(); break; case 26: // DIV pushRegWZ(R+rs); pushRegWZ(R+rt); a(InstructionConstants.DUP2); a(InstructionConstants.IDIV); if(preSetReg(LO)) a(InstructionConstants.SWAP); setReg(); a(InstructionConstants.IREM); if(preSetReg(HI)) a(InstructionConstants.SWAP); setReg(); break; case 27: { // DIVU pushRegWZ(R+rt); a(InstructionConstants.DUP); setTmp(); b1 = a(InstructionFactory.createBranchInstruction(IFEQ,null)); pushRegWZ(R+rs); a(InstructionConstants.I2L); pushConst(0xffffffffL); a(InstructionConstants.LAND); a(InstructionConstants.DUP2); pushTmp(); a(InstructionConstants.I2L); pushConst(0xffffffffL); a(InstructionConstants.LAND); a(InstructionConstants.DUP2_X2); a(InstructionConstants.LDIV); a(InstructionConstants.L2I); if(preSetReg(LO)) a(InstructionConstants.SWAP); setReg(); a(InstructionConstants.LREM); a(InstructionConstants.L2I); if(preSetReg(HI)) a(InstructionConstants.SWAP); setReg(); b1.setTarget(a(InstructionConstants.NOP)); break; } case 32: // ADD throw new Exn("ADD (add with oveflow trap) not suported"); case 33: // ADDU preSetReg(R+rd); if(rt != 0 && rs != 0) { pushReg(R+rs); pushReg(R+rt); a(InstructionConstants.IADD); } else if(rs != 0) { pushReg(R+rs); } else { pushRegZ(R+rt); } setReg(); break; case 34: // SUB throw new Exn("SUB (add with oveflow trap) not suported"); case 35: // SUBU preSetReg(R+rd); if(rt != 0 && rs != 0) { pushReg(R+rs); pushReg(R+rt); a(InstructionConstants.ISUB); } else if(rt != 0) { pushReg(R+rt); a(InstructionConstants.INEG); } else { pushRegZ(R+rs); } setReg(); break; case 36: // AND preSetReg(R+rd); pushRegWZ(R+rs); pushRegWZ(R+rt); a(InstructionConstants.IAND); setReg(); break; case 37: // OR preSetReg(R+rd); pushRegWZ(R+rs); pushRegWZ(R+rt); a(InstructionConstants.IOR); setReg(); break; case 38: // XOR preSetReg(R+rd); pushRegWZ(R+rs); pushRegWZ(R+rt); a(InstructionConstants.IXOR); setReg(); break; case 39: // NOR preSetReg(R+rd); if(rs != 0 || rt != 0) { if(rs != 0 && rt != 0) { pushReg(R+rs); pushReg(R+rt); a(InstructionConstants.IOR); } else if(rs != 0) { pushReg(R+rs); } else { pushReg(R+rt); } a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); } else { pushConst(-1); } setReg(); break; case 42: // SLT preSetReg(R+rd); if(rs != rt) { pushRegZ(R+rs); pushRegZ(R+rt); b1 = a(InstructionFactory.createBranchInstruction(IF_ICMPLT,null)); a(InstructionConstants.ICONST_0); b2 = a(InstructionFactory.createBranchInstruction(GOTO,null)); b1.setTarget(a(InstructionConstants.ICONST_1)); b2.setTarget(a(InstructionConstants.NOP)); } else { pushConst(0); } setReg(); break; case 43: // SLTU preSetReg(R+rd); if(rs != rt) { if(rs != 0) { pushReg(R+rs); a(InstructionConstants.I2L); pushConst(0xffffffffL); a(InstructionConstants.LAND); pushReg(R+rt); a(InstructionConstants.I2L); pushConst(0xffffffffL); a(InstructionConstants.LAND); a(InstructionConstants.LCMP); b1 = a(InstructionFactory.createBranchInstruction(IFLT,null)); } else { pushReg(R+rt); b1 = a(InstructionFactory.createBranchInstruction(IFNE,null)); } a(InstructionConstants.ICONST_0); b2 = a(InstructionFactory.createBranchInstruction(GOTO,null)); b1.setTarget(a(InstructionConstants.ICONST_1)); b2.setTarget(a(InstructionConstants.NOP)); } else { pushConst(0); } setReg(); break; default: throw new RuntimeException("Illegal instruction 0/" + subcode); } break; } case 1: { switch(rt) { case 0: // BLTZ if(pc == -1) throw new Exn("pc modifying insn in delay slot"); pushRegWZ(R+rs); return doIfInstruction(IFLT,pc,pc+branchTarget*4+4,nextInsn); case 1: // BGEZ if(pc == -1) throw new Exn("pc modifying insn in delay slot"); pushRegWZ(R+rs); return doIfInstruction(IFGE,pc,pc+branchTarget*4+4,nextInsn); case 16: // BLTZAL if(pc == -1) throw new Exn("pc modifying insn in delay slot"); pushRegWZ(R+rs); b1 = a(InstructionFactory.createBranchInstruction(IFGE,null)); emitInstruction(-1,nextInsn,-1); preSetReg(R+RA); pushConst(pc+8); setReg(); branch(pc,pc+branchTarget*4+4); b1.setTarget(a(InstructionConstants.NOP)); break; case 17: // BGEZAL if(pc == -1) throw new Exn("pc modifying insn in delay slot"); b1 = null; if(rs != 0) { // r0 is always >= 0 pushRegWZ(R+rs); b1 = a(InstructionFactory.createBranchInstruction(IFLT,null)); } emitInstruction(-1,nextInsn,-1); preSetReg(R+RA); pushConst(pc+8); setReg(); branch(pc,pc+branchTarget*4+4); if(b1 != null) b1.setTarget(a(InstructionConstants.NOP)); if(b1 == null) unreachable = true; break; default: throw new RuntimeException("Illegal Instruction 1/" + rt); } break; } case 2: { // J if(pc == -1) throw new Exn("pc modifying insn in delay slot"); emitInstruction(-1,nextInsn,-1); branch(pc,(pc&0xf0000000)|(jumpTarget << 2)); unreachable = true; break; } case 3: { // JAL if(pc == -1) throw new Exn("pc modifying insn in delay slot"); int target = (pc&0xf0000000)|(jumpTarget << 2); emitInstruction(-1,nextInsn,-1); preSetReg(R+RA); pushConst(pc+8); setReg(); branch(pc, target); unreachable = true; break; } case 4: // BEQ if(pc == -1) throw new Exn("pc modifying insn in delay slot"); if(rs == rt) { emitInstruction(-1,nextInsn,-1); branch(pc,pc+branchTarget*4+4); unreachable = true; } else if(rs == 0 || rt == 0) { pushReg(rt == 0 ? R+rs : R+rt); return doIfInstruction(IFEQ,pc,pc+branchTarget*4+4,nextInsn); } else { pushReg(R+rs); pushReg(R+rt); return doIfInstruction(IF_ICMPEQ,pc,pc+branchTarget*4+4,nextInsn); } break; case 5: // BNE if(pc == -1) throw new Exn("pc modifying insn in delay slot"); pushRegWZ(R+rs); if(rt == 0) { return doIfInstruction(IFNE,pc,pc+branchTarget*4+4,nextInsn); } else { pushReg(R+rt); return doIfInstruction(IF_ICMPNE,pc,pc+branchTarget*4+4,nextInsn); } case 6: //BLEZ if(pc == -1) throw new Exn("pc modifying insn in delay slot"); pushRegWZ(R+rs); return doIfInstruction(IFLE,pc,pc+branchTarget*4+4,nextInsn); case 7: //BGTZ if(pc == -1) throw new Exn("pc modifying insn in delay slot"); pushRegWZ(R+rs); return doIfInstruction(IFGT,pc,pc+branchTarget*4+4,nextInsn); case 8: // ADDI throw new Exn("ADDI (add immediate with oveflow trap) not suported"); case 9: // ADDIU preSetReg(R+rt); addiu(rs,signedImmediate); setReg(); break; case 10: // SLTI preSetReg(R+rt); pushRegWZ(R+rs); pushConst(signedImmediate); b1 = a(InstructionFactory.createBranchInstruction(IF_ICMPLT,null)); a(InstructionConstants.ICONST_0); b2 = a(InstructionFactory.createBranchInstruction(GOTO,null)); b1.setTarget(a(InstructionConstants.ICONST_1)); b2.setTarget(a(InstructionConstants.NOP)); setReg(); break; case 11: // SLTIU preSetReg(R+rt); pushRegWZ(R+rs); a(InstructionConstants.I2L); pushConst(0xffffffffL); a(InstructionConstants.LAND); pushConst((long)signedImmediate); a(InstructionConstants.LCMP); b1 = a(InstructionFactory.createBranchInstruction(IFLT,null)); a(InstructionConstants.ICONST_0); b2 = a(InstructionFactory.createBranchInstruction(GOTO,null)); b1.setTarget(a(InstructionConstants.ICONST_1)); b2.setTarget(a(InstructionConstants.NOP)); setReg(); break; case 12: // ANDI preSetReg(R+rt); pushRegWZ(R+rs); pushConst(unsignedImmediate); a(InstructionConstants.IAND); setReg(); break; case 13: // ORI preSetReg(R+rt); if(rs != 0 && unsignedImmediate != 0) { pushReg(R+rs); pushConst(unsignedImmediate); a(InstructionConstants.IOR); } else if(rs != 0){ pushReg(R+rs); } else { pushConst(unsignedImmediate); } setReg(); break; case 14: // XORI preSetReg(R+rt); pushRegWZ(R+rs); pushConst(unsignedImmediate); a(InstructionConstants.IXOR); setReg(); break; case 15: // LUI preSetReg(R+rt); pushConst(unsignedImmediate << 16); setReg(); break; case 16: throw new Exn("TLB/Exception support not implemented"); case 17: { // FPU switch(rs) { case 0: // MFC.1 preSetReg(R+rt); pushReg(F+rd); setReg(); break; case 2: // CFC.1 if(fs != 31) throw new Exn("FCR " + fs + " unavailable"); preSetReg(R+rt); pushReg(FCSR); setReg(); break; case 4: // MTC.1 preSetReg(F+rd); if(rt != 0) pushReg(R+rt); else pushConst(0); setReg(); break; case 6: // CTC.1 if(fs != 31) throw new Exn("FCR " + fs + " unavailable"); preSetReg(FCSR); pushReg(R+rt); setReg(); break; case 8: {// BC1F, BC1T pushReg(FCSR); pushConst(0x800000); a(InstructionConstants.IAND); return doIfInstruction(((insn>>>16)&1) == 0 ? IFEQ : IFNE,pc,pc+branchTarget*4+4,nextInsn); } case 16: case 17: { // Single/Double math boolean d = rs == 17; switch(subcode) { case 0: // ADD.X preSetDouble(F+fd,d); pushDouble(F+fs,d); pushDouble(F+ft,d); a(d ? InstructionConstants.DADD : InstructionConstants.FADD); setDouble(d); break; case 1: // SUB.X preSetDouble(F+fd,d); pushDouble(F+fs,d); pushDouble(F+ft,d); a(d ? InstructionConstants.DSUB : InstructionConstants.FSUB); setDouble(d); break; case 2: // MUL.X preSetDouble(F+fd,d); pushDouble(F+fs,d); pushDouble(F+ft,d); a(d ? InstructionConstants.DMUL : InstructionConstants.FMUL); setDouble(d); break; case 3: // DIV.X preSetDouble(F+fd,d); pushDouble(F+fs,d); pushDouble(F+ft,d); a(d ? InstructionConstants.DDIV : InstructionConstants.FDIV); setDouble(d); break; case 5: // ABS.X preSetDouble(F+fd,d); // NOTE: We can't use fneg/dneg here since they'll turn +0.0 into -0.0 pushDouble(F+fs,d); a(d ? InstructionConstants.DUP2 : InstructionConstants.DUP); a(d ? InstructionConstants.DCONST_0 : InstructionConstants.FCONST_0); a(d ? InstructionConstants.DCMPG : InstructionConstants.FCMPG); b1 = a(InstructionFactory.createBranchInstruction(IFGT,null)); a(d ? InstructionConstants.DCONST_0 : InstructionConstants.FCONST_0); if(d) { a(InstructionConstants.DUP2_X2); a(InstructionConstants.POP2); } else { a(InstructionConstants.POP); } a(InstructionConstants.DSUB); b1.setTarget(setDouble(d)); break; case 6: // MOV.X preSetReg(F+fd); pushReg(F+fs); setReg(); preSetReg(F+fd+1); pushReg(F+fs+1); setReg(); break; case 7: // NEG.X preSetDouble(F+fd,d); pushDouble(F+fs,d); a(d ? InstructionConstants.DNEG : InstructionConstants.FNEG); setDouble(d); break; case 32: // CVT.S.X preSetFloat(F+fd); pushDouble(F+fd,d); if(d) a(InstructionConstants.D2F); setFloat(); break; case 33: // CVT.D.X preSetDouble(F+fd); pushDouble(F+fd,d); if(!d) a(InstructionConstants.F2D); setDouble(); break; case 36: { // CVT.W.D int[] matches = new int[4]; for(int i=0;i<4;i++) matches[i] = i; TABLESWITCH ts = new TABLESWITCH(matches,new InstructionHandle[4], null); preSetReg(F+fd); pushDouble(F+fs,d); pushReg(FCSR); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(ts); // Round towards plus infinity ts.setTarget(2,a(InstructionConstants.NOP)); if(!d) a(InstructionConstants.F2D); // Ugh.. java.lang.Math doesn't have a float ceil/floor a(fac.createInvoke("java.lang.Math","ceil",Type.DOUBLE,new Type[]{Type.DOUBLE},INVOKESTATIC)); if(!d) a(InstructionConstants.D2F); b1 = a(InstructionFactory.createBranchInstruction(GOTO,null)); // Round to nearest ts.setTarget(0,d ? pushConst(0.5d) : pushConst(0.5f)); a(d ? InstructionConstants.DADD : InstructionConstants.FADD); // fall through // Round towards minus infinity ts.setTarget(3,a(InstructionConstants.NOP)); if(!d) a(InstructionConstants.F2D); a(fac.createInvoke("java.lang.Math","floor",Type.DOUBLE,new Type[]{Type.DOUBLE},INVOKESTATIC)); if(!d) a(InstructionConstants.D2F); InstructionHandle h = a(d ? InstructionConstants.D2I : InstructionConstants.F2I); setReg(); ts.setTarget(1,h); ts.setTarget(h); b1.setTarget(h); break; } case 50: // C.EQ.D case 60: // C.LT.D case 62: // C.LE.D preSetReg(FCSR); pushReg(FCSR); pushConst(~0x800000); a(InstructionConstants.IAND); pushDouble(F+fs,d); pushDouble(F+ft,d); a(d ? InstructionConstants.DCMPG : InstructionConstants.FCMPG); switch(subcode) { case 50: b1 = a(InstructionFactory.createBranchInstruction(IFEQ,null)); break; case 60: b1 = a(InstructionFactory.createBranchInstruction(IFLT,null)); break; case 62: b1 = a(InstructionFactory.createBranchInstruction(IFLE,null)); break; default: b1 = null; } pushConst(0x000000); b2 = a(InstructionFactory.createBranchInstruction(GOTO,null)); b1.setTarget(pushConst(0x800000)); b2.setTarget(a(InstructionConstants.IOR)); setReg(); break; default: throw new Exn("Invalid Instruction 17/" + rs + "/" + subcode); } break; } case 20: { // Integer switch(subcode) { case 32: // CVT.S.W preSetFloat(F+fd); pushReg(F+fs); a(InstructionConstants.I2F); setFloat(); break; case 33: // CVT.D.W preSetDouble(F+fd); pushReg(F+fs); a(InstructionConstants.I2D); setDouble(); break; default: throw new Exn("Invalid Instruction 17/" + rs + "/" + subcode); } break; } default: throw new Exn("Invalid Instruction 17/" + rs); } break; } case 18: case 19: throw new Exn("coprocessor 2 and 3 instructions not available"); case 32: { // LB preSetReg(R+rt); addiu(R+rs,signedImmediate); setTmp(); preMemRead(); pushTmp(); memRead(true); pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); a(InstructionConstants.I2B); setReg(); break; } case 33: { // LH preSetReg(R+rt); addiu(R+rs,signedImmediate); setTmp(); preMemRead(); pushTmp(); memRead(true); pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_2); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); a(InstructionConstants.I2S); setReg(); break; } case 34: { // LWL; preSetReg(R+rt); addiu(R+rs,signedImmediate); setTmp(); // addr pushRegWZ(R+rt); pushConst(0x00ffffff); pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); a(InstructionConstants.IAND); preMemRead(); pushTmp(); memRead(true); pushTmp(); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.ISHL); a(InstructionConstants.IOR); setReg(); break; } case 35: // LW preSetReg(R+rt); memRead(R+rs,signedImmediate); setReg(); break; case 36: { // LBU preSetReg(R+rt); addiu(R+rs,signedImmediate); setTmp(); preMemRead(); pushTmp(); memRead(true); pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); pushConst(0xff); a(InstructionConstants.IAND); setReg(); break; } case 37: { // LHU preSetReg(R+rt); addiu(R+rs,signedImmediate); setTmp(); preMemRead(); pushTmp(); memRead(true); pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_2); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); // chars are unsigend so this works a(InstructionConstants.I2C); setReg(); break; } case 38: { // LWR preSetReg(R+rt); addiu(R+rs,signedImmediate); setTmp(); // addr pushRegWZ(R+rt); pushConst(0xffffff00); pushTmp(); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.ISHL); a(InstructionConstants.IAND); preMemRead(); pushTmp(); memRead(true); pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); a(InstructionConstants.IOR); setReg(); break; } case 40: { // SB addiu(R+rs,signedImmediate); setTmp(); // addr // FEATURE: DO the preMemRead(true) thing for the rest of the S* instructions preMemRead(true); pushTmp(); memRead(true); pushConst(0xff000000); pushTmp(); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.IAND); if(rt != 0) { pushReg(R+rt); pushConst(0xff); a(InstructionConstants.IAND); } else { pushConst(0); } pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.ISHL); a(InstructionConstants.IOR); memWrite(); break; } case 41: { // SH preMemWrite1(); addiu(R+rs,signedImmediate); a(InstructionConstants.DUP); setTmp(); // addr preMemWrite2(true); preMemRead(); pushTmp(); memRead(true); pushConst(0xffff); pushTmp(); a(InstructionConstants.ICONST_2); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.ISHL); a(InstructionConstants.IAND); if(rt != 0) { pushReg(R+rt); pushConst(0xffff); a(InstructionConstants.IAND); } else { pushConst(0); } pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_2); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.ISHL); a(InstructionConstants.IOR); memWrite(); break; } case 42: { // SWL preMemWrite1(); addiu(R+rs,signedImmediate); a(InstructionConstants.DUP); setTmp(); // addr preMemWrite2(true); preMemRead(); pushTmp(); memRead(true); pushConst(0xffffff00); pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.ISHL); a(InstructionConstants.IAND); pushRegWZ(R+rt); pushTmp(); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); a(InstructionConstants.IOR); memWrite(); break; } case 43: // SW preMemWrite1(); preMemWrite2(R+rs,signedImmediate); pushRegZ(R+rt); memWrite(); break; case 46: { // SWR preMemWrite1(); addiu(R+rs,signedImmediate); a(InstructionConstants.DUP); setTmp(); // addr preMemWrite2(true); preMemRead(); pushTmp(); memRead(true); pushConst(0x00ffffff); pushTmp(); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.IUSHR); a(InstructionConstants.IAND); pushRegWZ(R+rt); pushTmp(); a(InstructionConstants.ICONST_M1); a(InstructionConstants.IXOR); a(InstructionConstants.ICONST_3); a(InstructionConstants.IAND); a(InstructionConstants.ICONST_3); a(InstructionConstants.ISHL); a(InstructionConstants.ISHL); a(InstructionConstants.IOR); memWrite(); break; } // This need to be atomic if we ever support threads (see SWC0/SC) case 48: // LWC0/LL preSetReg(R+rt); memRead(R+rs,signedImmediate); setReg(); break; case 49: // LWC1 preSetReg(F+rt); memRead(R+rs,signedImmediate); setReg(); break; /* This needs to fail (set rt to 0) if the memory location was modified * between the LL and SC if we every support threads. */ case 56: // SWC0/SC preSetReg(R+rt); preMemWrite1(); preMemWrite2(R+rs,signedImmediate); pushReg(R+rt); memWrite(); pushConst(1); setReg(); break; case 57: // SWC1 preMemWrite1(); preMemWrite2(R+rs,signedImmediate); pushReg(F+rt); memWrite(); break; default: throw new Exn("Invalid Instruction: " + op + " at " + toHex(pc)); } return false; }
4600 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4600/f09bb94fa4801c2b38ee572f025963051d5bc3fa/ClassFileCompiler.java/clean/src/org/ibex/nestedvm/ClassFileCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 3626, 11983, 12, 474, 6125, 16, 509, 29821, 16, 509, 1024, 11796, 13, 1216, 1312, 82, 288, 3639, 309, 12, 2679, 82, 422, 300, 21, 13, 604, 394, 1312, 82, 2932, 2679, 82, 353, 300, 21, 8863, 7734, 509, 1061, 273, 261, 2679, 82, 4080, 10659, 13, 473, 374, 5297, 31, 1171, 368, 4125, 10659, 17, 6938, 3639, 509, 3597, 273, 261, 2679, 82, 4080, 9035, 13, 473, 374, 92, 21, 74, 31, 1171, 368, 4125, 9035, 17, 2947, 3639, 509, 8253, 273, 261, 2679, 82, 4080, 2872, 13, 473, 374, 92, 21, 74, 31, 1171, 368, 4125, 2872, 17, 3462, 540, 509, 11038, 273, 261, 2679, 82, 4080, 2872, 13, 473, 374, 92, 21, 74, 31, 3639, 509, 9437, 273, 261, 2679, 82, 4080, 4648, 13, 473, 374, 92, 21, 74, 31, 1171, 368, 4125, 4648, 17, 3600, 3639, 509, 2662, 273, 261, 2679, 82, 4080, 4648, 13, 473, 374, 92, 21, 74, 31, 3639, 509, 699, 301, 88, 273, 261, 2679, 82, 4080, 1666, 13, 473, 374, 92, 21, 74, 31, 9079, 368, 4125, 1666, 17, 2163, 3639, 509, 5194, 273, 261, 2679, 82, 4080, 1666, 13, 473, 374, 92, 21, 74, 31, 3639, 509, 720, 710, 273, 29821, 473, 374, 92, 23, 74, 31, 5397, 368, 4125, 374, 17, 25, 540, 509, 898, 1085, 273, 261, 2679, 82, 4080, 1666, 13, 473, 374, 20431, 74, 31, 540, 368, 4125, 1666, 17, 3462, 3639, 509, 11833, 2326, 273, 261, 2679, 82, 473, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3626, 11983, 12, 474, 6125, 16, 509, 29821, 16, 509, 1024, 11796, 13, 1216, 1312, 82, 288, 3639, 309, 12, 2679, 82, 422, 300, 21, 13, 604, 394, 1312, 82, 2932, 2679, 82, 353, 300, 21, 8863, 7734, 509, 1061, 273, 261, 2679, 82, 4080, 10659, 13, 473, 374, 5297, 31, 1171, 368, 4125, 10659, 17, 6938, 3639, 509, 3597, 273, 261, 2679, 82, 4080, 9035, 13, 473, 374, 92, 21, 74, 31, 1171, 368, 4125, 9035, 17, 2947, 3639, 509, 8253, 273, 261, 2679, 82, 4080, 2872, 13, 473, 374, 92, 21, 74, 31, 1171, 368, 4125, 2872, 17, 3462, 540, 509, 11038, 273, 261, 2679, 82, 4080, 2872, 13, 473, 374, 92, 21, 74, 2 ]
node.setAttribute(ESTIMATED, ""+task.getEstimateTime());
node.setAttribute(ESTIMATED, ""+task.getEstimateTimeHours());
public Element createTaskElement(ITask task, Document doc, Element parent) { Element node = doc.createElement(getTaskTagName()); node.setAttribute(PATH, task.getPath()); node.setAttribute(LABEL, task.getDescription(false)); node.setAttribute(HANDLE, task.getHandleIdentifier()); node.setAttribute(PRIORITY, task.getPriority()); if (task.isCompleted()) { node.setAttribute(COMPLETE, TRUE); } else { node.setAttribute(COMPLETE, FALSE); } if (task.isActive()) { node.setAttribute(ACTIVE, TRUE); } else { node.setAttribute(ACTIVE, FALSE); } node.setAttribute(BUGZILLA, FALSE); // TODO: this is not great node.setAttribute(ISSUEURL, task.getIssueReportURL()); node.setAttribute(NOTES, task.getNotes()); node.setAttribute(ELAPSED, task.getElapsedTime()); node.setAttribute(ESTIMATED, ""+task.getEstimateTime()); node.setAttribute(END_DATE, task.getEndDateString()); node.setAttribute(CREATION_DATE, task.getCreationDateString()); node.setAttribute(REMINDER_DATE, task.getReminderDateString(false)); if (task.hasBeenReminded()) { node.setAttribute(REMINDED, TRUE); } else { node.setAttribute(REMINDED, FALSE); } List<String> rl = task.getRelatedLinks(); int i = 0; for (String link : rl) { node.setAttribute(LINK+i, link); i++; } List<String> plans = task.getPlans(); int currPlan = 0; for (String plan : plans) { node.setAttribute(PLAN+currPlan, plan); currPlan++; } for (ITask t : task.getChildren()) { createTaskElement(t, doc, node); } parent.appendChild(node); return node; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/60a11b503bcd5753572f2ff6f9276a4b414f3931/DefaultTaskListExternalizer.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/DefaultTaskListExternalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3010, 752, 2174, 1046, 12, 1285, 835, 1562, 16, 4319, 997, 16, 3010, 982, 13, 288, 202, 202, 1046, 756, 273, 997, 18, 2640, 1046, 12, 588, 2174, 8520, 10663, 202, 202, 2159, 18, 542, 1499, 12, 4211, 16, 1562, 18, 588, 743, 10663, 202, 202, 2159, 18, 542, 1499, 12, 13545, 16, 1562, 18, 588, 3291, 12, 5743, 10019, 202, 202, 2159, 18, 542, 1499, 12, 23056, 16, 1562, 18, 588, 3259, 3004, 10663, 202, 202, 2159, 18, 542, 1499, 12, 19804, 16, 1562, 18, 588, 8183, 10663, 9506, 202, 430, 261, 4146, 18, 291, 9556, 10756, 288, 1082, 202, 2159, 18, 542, 1499, 12, 15795, 16, 5383, 1769, 202, 202, 97, 469, 288, 1082, 202, 2159, 18, 542, 1499, 12, 15795, 16, 4934, 1769, 202, 202, 97, 202, 202, 430, 261, 4146, 18, 291, 3896, 10756, 288, 1082, 202, 2159, 18, 542, 1499, 12, 13301, 16, 5383, 1769, 202, 202, 97, 469, 288, 1082, 202, 2159, 18, 542, 1499, 12, 13301, 16, 4934, 1769, 202, 202, 97, 202, 202, 2159, 18, 542, 1499, 12, 4827, 62, 2627, 2534, 16, 4934, 1769, 368, 2660, 30, 333, 353, 486, 18825, 9506, 202, 2159, 18, 542, 1499, 12, 25689, 1821, 1785, 16, 1562, 18, 588, 12956, 4820, 1785, 10663, 202, 202, 2159, 18, 542, 1499, 12, 3417, 7296, 16, 1562, 18, 588, 18063, 10663, 202, 202, 2159, 18, 542, 1499, 12, 2247, 2203, 18204, 16, 1562, 18, 588, 28827, 950, 10663, 202, 202, 2159, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 752, 2174, 1046, 12, 1285, 835, 1562, 16, 4319, 997, 16, 3010, 982, 13, 288, 202, 202, 1046, 756, 273, 997, 18, 2640, 1046, 12, 588, 2174, 8520, 10663, 202, 202, 2159, 18, 542, 1499, 12, 4211, 16, 1562, 18, 588, 743, 10663, 202, 202, 2159, 18, 542, 1499, 12, 13545, 16, 1562, 18, 588, 3291, 12, 5743, 10019, 202, 202, 2159, 18, 542, 1499, 12, 23056, 16, 1562, 18, 588, 3259, 3004, 10663, 202, 202, 2159, 18, 542, 1499, 12, 19804, 16, 1562, 18, 588, 8183, 10663, 9506, 202, 430, 261, 4146, 18, 291, 9556, 10756, 288, 1082, 202, 2159, 18, 542, 1499, 12, 15795, 16, 5383, 1769, 202, 202, 97, 469, 288, 1082, 2 ]
stringBuffer.append(TEXT_18);
stringBuffer.append(TEXT_23);
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); GenDiagram genDiagram = (GenDiagram) argument; stringBuffer.append(TEXT_1); stringBuffer.append(genDiagram.getProvidersPackageName()); stringBuffer.append(TEXT_2); ImportUtil importManager = new ImportUtil(genDiagram.getProvidersPackageName()); importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_3); stringBuffer.append(genDiagram.getSemanticHintsClassName()); stringBuffer.append(TEXT_4); stringBuffer.append(genDiagram.getSemanticHintsClassName()); stringBuffer.append(TEXT_5); for (Iterator contents = genDiagram.eAllContents(); contents.hasNext(); ) { Object next = contents.next(); if (next instanceof GenLink && ((GenLink) next).getModelFacet() instanceof FeatureModelFacet) { GenLink nextLink = (GenLink) next; stringBuffer.append(TEXT_6); stringBuffer.append(nextLink.getUniqueIdentifier()); stringBuffer.append(TEXT_7); stringBuffer.append(nextLink.getUniqueIdentifier()); stringBuffer.append(TEXT_8); } if (next instanceof GenNode) { GenNode genNode = (GenNode) next; List labels = genNode.getLabels(); if (!labels.isEmpty()) { stringBuffer.append(TEXT_9); stringBuffer.append(genNode.getUniqueIdentifier()); stringBuffer.append(TEXT_10); stringBuffer.append(genNode.getUniqueIdentifier()); stringBuffer.append(TEXT_11); for (int i = 0; i < labels.size(); i++) { GenNodeLabel label = (GenNodeLabel) labels.get(i); stringBuffer.append(TEXT_12); stringBuffer.append(label.getSemanticHintFieldName()); stringBuffer.append(TEXT_13); stringBuffer.append(label.getUniqueIdentifier()); stringBuffer.append(TEXT_14); } stringBuffer.append(TEXT_15); } List compartments = genNode.getCompartments(); if (!compartments.isEmpty()) { stringBuffer.append(TEXT_16); stringBuffer.append(genNode.getUniqueIdentifier()); stringBuffer.append(TEXT_17); stringBuffer.append(genNode.getUniqueIdentifier()); stringBuffer.append(TEXT_18); for (int i = 0; i < compartments.size(); i++) { GenCompartment compartment = (GenCompartment) compartments.get(i); stringBuffer.append(TEXT_19); stringBuffer.append(compartment.getSemanticHintFieldName()); stringBuffer.append(TEXT_20); stringBuffer.append(compartment.getUniqueIdentifier()); stringBuffer.append(TEXT_21); } stringBuffer.append(TEXT_22); } } else if (next instanceof GenLink) { GenLink genLink = (GenLink) next; List labels = genLink.getLabels(); if (!labels.isEmpty()) { stringBuffer.append(TEXT_23); stringBuffer.append(genLink.getUniqueIdentifier()); stringBuffer.append(TEXT_24); stringBuffer.append(genLink.getUniqueIdentifier()); stringBuffer.append(TEXT_25); for (int i = 0; i < labels.size(); i++) { GenLinkLabel label = (GenLinkLabel) labels.get(i); stringBuffer.append(TEXT_26); stringBuffer.append(label.getSemanticHintLabelFieldName()); stringBuffer.append(TEXT_27); stringBuffer.append(label.getUniqueIdentifier()); stringBuffer.append(TEXT_28); stringBuffer.append(label.getSemanticHintFieldName()); stringBuffer.append(TEXT_29); stringBuffer.append(label.getUniqueIdentifier()); stringBuffer.append(TEXT_30); } stringBuffer.append(TEXT_31); } }} stringBuffer.append(TEXT_32); importManager.emitSortedImports(); stringBuffer.append(TEXT_33); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/1f75243d34f39fcfc1a7bad4ed738ec9438432b9/SemanticHintsGenerator.java/buggy/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/providers/SemanticHintsGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 1237, 31, 565, 533, 1892, 18, 6923, 12, 5151, 67, 21, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 10672, 18308, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 22, 1769, 565, 6164, 1304, 1930, 1318, 273, 394, 6164, 1304, 12, 4507, 14058, 1940, 18, 588, 10672, 18308, 10663, 565, 1930, 1318, 18, 3355, 5010, 2735, 12, 1080, 1892, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 23, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 13185, 9941, 13368, 3834, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 24, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 13185, 9941, 13368, 3834, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 25, 1769, 565, 364, 261, 3198, 2939, 273, 3157, 14058, 1940, 18, 73, 1595, 6323, 5621, 2939, 18, 5332, 2134, 5621, 262, 288, 202, 921, 1024, 273, 2939, 18, 4285, 5621, 202, 430, 261, 4285, 1276, 10938, 2098, 597, 14015, 7642, 2098, 13, 1024, 2934, 588, 1488, 11137, 1435, 1276, 7881, 1488, 11137, 13, 288, 202, 202, 7642, 2098, 1024, 2098, 273, 261, 7642, 2098, 13, 1024, 31, 565, 533, 1892, 18, 6923, 12, 5151, 67, 26, 1769, 565, 533, 1892, 18, 6923, 12, 4285, 2098, 18, 588, 6303, 3004, 10663, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 1237, 31, 565, 533, 1892, 18, 6923, 12, 5151, 67, 21, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 10672, 18308, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 22, 1769, 565, 6164, 1304, 1930, 1318, 273, 394, 6164, 1304, 12, 4507, 14058, 1940, 18, 588, 10672, 18308, 10663, 565, 1930, 1318, 18, 3355, 5010, 2735, 12, 1080, 1892, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 23, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 13185, 9941, 2 ]
default: rowBuffer[columnIndex] = (byte[]) updateValues.get( columnName );
default: rowBuffer[columnIndex] = (byte[]) valueObject; }
private void updateRowBuffer() throws SQLException { Enumeration columns = updateValues.keys(); while ( columns.hasMoreElements() ) { String columnName = (String) columns.nextElement(); int columnIndex = _findColumn( columnName ) - 1; switch ( connection.getSQLType( fields[columnIndex].getPGType() ) ) { case Types.DECIMAL: case Types.BIGINT: case Types.DOUBLE: case Types.BIT: case Types.VARCHAR: case Types.DATE: case Types.TIME: case Types.TIMESTAMP: case Types.SMALLINT: case Types.FLOAT: case Types.INTEGER: case Types.CHAR: case Types.NUMERIC: case Types.REAL: case Types.TINYINT: rowBuffer[columnIndex] = connection.getEncoding().encode(String.valueOf( updateValues.get( columnName ) )); case Types.NULL: continue; default: rowBuffer[columnIndex] = (byte[]) updateValues.get( columnName ); } } }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/fdf6b4ff936167388fc18276cbcf88c54dd0d3b7/AbstractJdbc2ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1999, 1892, 1435, 1216, 6483, 202, 95, 202, 202, 21847, 2168, 273, 1089, 1972, 18, 2452, 5621, 202, 202, 17523, 261, 2168, 18, 5332, 7417, 3471, 1435, 262, 202, 202, 95, 1082, 202, 780, 7578, 273, 261, 780, 13, 2168, 18, 4285, 1046, 5621, 1082, 202, 474, 14882, 273, 389, 4720, 1494, 12, 7578, 262, 300, 404, 31, 1082, 202, 9610, 261, 1459, 18, 588, 3997, 559, 12, 1466, 63, 2827, 1016, 8009, 588, 18679, 559, 1435, 262, 262, 1082, 202, 95, 9506, 202, 3593, 7658, 18, 23816, 30, 9506, 202, 3593, 7658, 18, 19044, 3217, 30, 9506, 202, 3593, 7658, 18, 17088, 30, 9506, 202, 3593, 7658, 18, 15650, 30, 9506, 202, 3593, 7658, 18, 7716, 7305, 30, 9506, 202, 3593, 7658, 18, 4594, 30, 9506, 202, 3593, 7658, 18, 4684, 30, 9506, 202, 3593, 7658, 18, 17201, 30, 9506, 202, 3593, 7658, 18, 23882, 3217, 30, 9506, 202, 3593, 7658, 18, 15640, 30, 9506, 202, 3593, 7658, 18, 14217, 30, 9506, 202, 3593, 7658, 18, 7305, 30, 9506, 202, 3593, 7658, 18, 22998, 30, 9506, 202, 3593, 7658, 18, 31052, 30, 9506, 202, 3593, 7658, 18, 56, 31853, 3217, 30, 6862, 202, 492, 1892, 63, 2827, 1016, 65, 273, 1459, 18, 588, 4705, 7675, 3015, 12, 780, 18, 1132, 951, 12, 1089, 1972, 18, 588, 12, 7578, 262, 262, 1769, 9506, 202, 3593, 7658, 18, 8560, 30, 6862, 202, 17143, 31, 9506, 202, 1886, 30, 6862, 202, 492, 1892, 63, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 1999, 1892, 1435, 1216, 6483, 202, 95, 202, 202, 21847, 2168, 273, 1089, 1972, 18, 2452, 5621, 202, 202, 17523, 261, 2168, 18, 5332, 7417, 3471, 1435, 262, 202, 202, 95, 1082, 202, 780, 7578, 273, 261, 780, 13, 2168, 18, 4285, 1046, 5621, 1082, 202, 474, 14882, 273, 389, 4720, 1494, 12, 7578, 262, 300, 404, 31, 1082, 202, 9610, 261, 1459, 18, 588, 3997, 559, 12, 1466, 63, 2827, 1016, 8009, 588, 18679, 559, 1435, 262, 262, 1082, 202, 95, 9506, 202, 3593, 7658, 18, 23816, 30, 9506, 202, 3593, 7658, 18, 19044, 3217, 30, 9506, 202, 3593, 7658, 18, 17088, 30, 9506, 202, 3593, 7658, 18, 15650, 30, 9506, 202, 3593, 2 ]
metaprops.setProperty(metatable[i],tmp) ;
metaprops.setProperty(metatable[i],tmp) ;
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; imcode.server.User user ; String htmlStr = "" ; String submit_name = "" ; String search_string = "" ; String text = "" ; String values[] ; int txt_no = 0 ; res.setContentType( "text/html" ); ServletOutputStream out = res.getOutputStream( ); // redirect data String scheme = req.getScheme( ); String serverName = req.getServerName( ); int p = req.getServerPort( ); String port = (p == 80) ? "" : ":" + p; /* From now on, we get the form data. */ String [] metatable = { /* Nullable Nullvalue */ "shared", "0", "disable_search", "0", "archive", "0", "show_meta", "0", "permissions", "0", "expand", "1", "help_text_id", "1", "status_id", "1", "lang_prefix", "se", "sort_position", "1", "menu_position", "1", "description", null, "meta_headline", null, "meta_text", null, "meta_image", null, "frame_name", null, "target", null } ; Properties metaprops = new Properties () ; String r_r[] = req.getParameterValues("roles_rights") ; String u_r[] = req.getParameterValues("user_rights") ; String parent_meta_id = req.getParameter("parent_meta_id") ; String doc_menu_no = req.getParameter("doc_menu_no") ; String doc_type = req.getParameter("doc_type") ; String date_today = req.getParameter("date_today") ; String time_now = req.getParameter("time_now") ; String classification = req.getParameter("classification") ; int parent_int = Integer.parseInt(parent_meta_id) ; HashMap inputMap = new HashMap() ; // Loop through all meta-table-properties // Adding them to a HashMap to be used as input // That way i can mutilate the values before all the // permissions are checked. for ( int i=0 ; i<metatable.length ; i+=2 ) { inputMap.put(metatable[i],req.getParameter(metatable[i])) ; } SimpleDateFormat datetimeformat = new SimpleDateFormat("yyyy-MM-dd HH:mm") ; Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; String activated_date = req.getParameter("activated_date") ; String activated_time = req.getParameter("activated_time") ; String activated_datetime = null ; if ( activated_date != null && activated_time != null ) { activated_datetime = activated_date + ' ' + activated_time ; try { datetimeformat.parse(activated_datetime) ; } catch (ParseException ex) { activated_datetime = null ; } } else { activated_datetime = datetimeformat.format(dt) ; } // end of else String archived_date = req.getParameter("archived_date") ; String archived_time = req.getParameter("archived_time") ; String archived_datetime = null ; if ( archived_date != null && archived_time != null ) { archived_datetime = archived_date + ' ' + archived_time ; try { datetimeformat.parse(archived_datetime) ; } catch (ParseException ex) { archived_datetime = null ; } } for ( int i=0 ; i<metatable.length ; i+=2 ) { String tmp = (String)inputMap.get(metatable[i]) ; if ( tmp != null) { metaprops.setProperty(metatable[i],tmp) ; } else { metaprops.setProperty(metatable[i],metatable[i+1]) ; } } // Check if user logged on if( (user=Check.userLoggedOn( req,res,start_url ))==null ) { return ; } String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; // Fetch all doctypes from the db and put them in an option-list // First, get the doc_types the current user may use. String[] user_dt = IMCServiceRMI.sqlProcedure(imcserver,"GetDocTypesForUser "+parent_meta_id+","+user.getInt("user_id")+",'"+lang_prefix+"'") ; HashSet user_doc_types = new HashSet() ; // I'll fill a HashSet with all the doc-types the current user may use, // for easy retrieval. for ( int i=0 ; i<user_dt.length ; i+=2 ) { user_doc_types.add(user_dt[i]) ; } // So... if the user may not create this particular doc-type... he's outta here! if ( !user_doc_types.contains(doc_type) ) { byte[] tempbytes = AdminDoc.adminDoc(parent_int,parent_int,host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ; } // Lets fix the date information (date_created, modified etc) metaprops.setProperty("date_modified",datetimeformat.format(dt)) ; metaprops.setProperty("date_created",datetimeformat.format(dt)) ; metaprops.setProperty("owner_id",String.valueOf(user.getInt("user_id"))) ; // Check if user logged on if( (user=Check.userLoggedOn( req,res,start_url ))==null ) { return ; } if( req.getParameter( "cancel" ) != null ) { byte[] tempbytes = AdminDoc.adminDoc(Integer.parseInt(parent_meta_id),Integer.parseInt(parent_meta_id),host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ; // Lets add a new meta to the db } else if( req.getParameter( "ok" ) != null ) { Enumeration propkeys = metaprops.propertyNames() ; // Lets build the sql statement to add a new meta id String sqlStr = "insert into meta (doc_type,activate,classification,activated_datetime,archived_datetime" ; String sqlStr2 =")\nvalues ("+doc_type+",0,'',"+(null == activated_datetime ? "NULL" : "'"+activated_datetime+"'")+","+(null == archived_datetime ? "NULL" : "'"+archived_datetime+"'") ; while ( propkeys.hasMoreElements() ) { String temp = (String)propkeys.nextElement() ; String val = metaprops.getProperty(temp) ; String [] vp = { "'", "''" } ; sqlStr += ","+temp ; sqlStr2 += ",'"+Parser.parseDoc(val,vp)+"'" ; } sqlStr += sqlStr2 + ")" ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; String meta_id = IMCServiceRMI.sqlQueryStr(imcserver,"select @@IDENTITY") ; // Save the classifications to the db if ( classification != null ) { IMCServiceRMI.sqlUpdateProcedure(imcserver,"Classification_Fix "+meta_id+",'"+classification+"'") ; } IMCServiceRMI.sqlUpdateProcedure(imcserver,"InheritPermissions "+meta_id+","+parent_meta_id+","+doc_type) ; // Lets add the sortorder to the parents childlist sqlStr = "declare @new_sort int\n" + "select @new_sort = max(manual_sort_order)+10 from childs where meta_id = "+parent_meta_id +" and menu_sort = "+doc_menu_no+"\n"+ "if @new_sort is null begin set @new_sort = 500 end\n"+ "insert into childs (meta_id, to_meta_id, menu_sort, manual_sort_order) values ("+parent_meta_id+","+meta_id+","+doc_menu_no+",@new_sort)\n" ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; log (meta_id) ; // Lets update the parents created_date sqlStr = "update meta\n" ; sqlStr += "set date_modified = '" + metaprops.getProperty( "date_modified" ) + "'\n" ; sqlStr += "where meta_id = " + parent_meta_id ; IMCServiceRMI.sqlUpdateQuery( imcserver,sqlStr ) ; //lets log to mainLog the stuff done mainLog.info(logdateFormat.format(new java.util.Date())+"Document [" +meta_id +"] of type ["+doc_type+"] created on ["+parent_meta_id+"] by user: [" +user.getString("first_name").trim() + " " + user.getString("last_name").trim() + "]"); //ok lets handle the the section stuff save to db and so on //lets start an see if we got any request to change the inherit one String section_id = req.getParameter("change_section"); if (section_id == null) { //ok it vas null so lets try and get the inherit one section_id = req.getParameter("current_section_id"); } //ok if we have one lets update the db if (section_id != null) { IMCServiceRMI.sqlUpdateProcedure(imcserver,"add_section_crossref " + meta_id +", " +section_id); } // Here is the stuff we have to do for each individual doctype. All general tasks // for all documenttypes is done now. // BROWSER DOCUMENT if( doc_type.equals("6") ) { sqlStr = "insert into browser_docs (meta_id, to_meta_id, browser_id) values ("+meta_id+","+parent_meta_id+",0)" ; IMCServiceRMI.sqlUpdateQuery(imcserver, sqlStr) ; Vector vec = new Vector () ; sqlStr = "select name,browsers.browser_id,to_meta_id from browser_docs join browsers on browsers.browser_id = browser_docs.browser_id where meta_id = "+meta_id+" order by value desc,name asc" ; Hashtable hash = IMCServiceRMI.sqlQueryHash(imcserver,sqlStr) ; String[] b_id = (String[])hash.get("browser_id") ; String[] nm = (String[])hash.get("name") ; String[] to = (String[])hash.get("to_meta_id") ; String bs = "" ; if ( b_id != null ) { bs+="<table width=\"50%\" border=\"0\">" ; for ( int i = 0 ; i<b_id.length ; i++ ) { String[] temparr = {" ","&nbsp;"} ; bs += "<tr><td>"+Parser.parseDoc(nm[i],temparr)+":</td><td><input type=\"text\" name=\"bid"+b_id[i]+"\" value=\""+(to[i].equals("0") ? "" : to[i])+"\"></td></tr>" ; } bs+="</table>" ; } vec.add("#browsers#") ; vec.add(bs) ; sqlStr = "select browser_id,name from browsers where browser_id not in (select browsers.browser_id from browser_docs join browsers on browsers.browser_id = browser_docs.browser_id where meta_id = "+meta_id+" ) order by value desc,name asc" ; hash = IMCServiceRMI.sqlQueryHash(imcserver,sqlStr) ; b_id = (String[])hash.get("browser_id") ; nm = (String[])hash.get("name") ; String nb = "" ; if ( b_id!=null ) { for ( int i = 0 ; i<b_id.length ; i++ ) { nb += "<option value=\""+b_id[i]+"\">"+nm[i]+"</option>" ; } } vec.add("#new_browsers#") ; vec.add(nb) ; vec.add("#new_meta_id#") ; vec.add(String.valueOf(meta_id)) ; log (String.valueOf(meta_id)) ; vec.add("#getDocType#") ; vec.add("<INPUT TYPE=\"hidden\" NAME=\"doc_type\" VALUE=\""+doc_type+"\">") ; vec.add("#DocMenuNo#") ; vec.add("") ; vec.add("#getMetaId#") ; vec.add(String.valueOf(parent_meta_id)) ; vec.add("#servlet_url#") ; vec.add(servlet_url) ; htmlStr = IMCServiceRMI.parseDoc(imcserver, vec, "new_browser_doc.html", lang_prefix) ; // FILE UP LOAD } else if( doc_type.equals("8") ) { sqlStr = "select mime,mime_name from mime_types where lang_prefix = '"+lang_prefix+"' and mime != 'other'" ; String temp[] = IMCServiceRMI.sqlQuery(imcserver,sqlStr) ; Vector vec = new Vector() ; String temps = null ; for (int i = 0; i < temp.length; i+=2) { temps += "<option value=\""+temp[i]+"\">"+temp[i+1]+"</option>" ; } sqlStr = "select mime,mime_name from mime_types where lang_prefix = '"+lang_prefix+"' and mime = 'other'" ; temp = IMCServiceRMI.sqlQuery(imcserver,sqlStr) ; temps += "<option value=\""+temp[0]+"\">"+temp[1]+"</option>" ; vec.add("#mime#") ; vec.add(temps) ; vec.add("#new_meta_id#") ; vec.add(String.valueOf(meta_id)) ; vec.add("#getMetaId#") ; vec.add(String.valueOf(parent_meta_id)) ; vec.add("#servlet_url#") ; vec.add(servlet_url) ; htmlStr = IMCServiceRMI.parseDoc(imcserver, vec, "new_fileupload.html", lang_prefix) ; // htmlStr = IMCServiceRMI.interpretAdminTemplate( imcserver, meta_id,user,"new_fileupload.html",8,new_meta_id,0,doc_menu_no ); out.println( htmlStr ) ; return ; // URL DOCUMENT } else if( doc_type.equals("5") ) { Vector vec = new Vector() ; vec.add("#new_meta_id#") ; vec.add(String.valueOf(meta_id)) ; vec.add("#getMetaId#") ; vec.add(String.valueOf(parent_meta_id)) ; vec.add("#servlet_url#") ; vec.add(servlet_url) ; htmlStr = IMCServiceRMI.parseDoc(imcserver, vec, "new_url_doc.html", lang_prefix) ; out.print( htmlStr ) ; return ; // FRAMESET DOCUMENT } else if( doc_type.equals("7") ) { Vector vec = new Vector() ; vec.add("#new_meta_id#") ; vec.add(String.valueOf(meta_id)) ; vec.add("#getMetaId#") ; vec.add(String.valueOf(parent_meta_id)) ; vec.add("#servlet_url#") ; vec.add(servlet_url) ; htmlStr = IMCServiceRMI.parseDoc(imcserver, vec, "new_frameset.html", lang_prefix) ; out.println( htmlStr ) ; return ; // EXTERNAL DOCUMENTS } else if( Integer.parseInt(doc_type) > 100 ) { // check if external doc imcode.server.ExternalDocType ex_doc ; ex_doc = IMCServiceRMI.isExternalDoc( imcserver,Integer.parseInt(meta_id),user ) ; String paramStr = "?meta_id=" + meta_id + "&" ; paramStr += "parent_meta_id=" + parent_meta_id + "&" ; paramStr += "cookie_id=" + "1A" + "&action=new" ; res.sendRedirect( scheme + "://" + serverName + port + servlet_url + ex_doc.getCallServlet( ) + paramStr ); return ; // TEXT DOCUMENT } else if (doc_type.equals("2")) { //lets get the users greatest permission_set for this dokument final int perm_set = IMCServiceRMI.getUserHighestPermissionSet (imcserver,Integer.parseInt(meta_id), user.getInt("user_id")); //ok now lets see what to do with the templates sqlStr = "select template_id, sort_order,group_id,default_template_1,default_template_2 from text_docs where meta_id = " + parent_meta_id ; String temp[] = IMCServiceRMI.sqlQuery(imcserver,sqlStr) ; //ok now we have to setup the template too use if (perm_set == imcode.server.IMCConstants.DOC_PERM_SET_RESTRICTED_1) { //ok restricted_1 permission lets see if we have a default template fore this one //and if so lets put it as the orinary template instead of the parents try { int tempInt = Integer.parseInt(temp[3]); if(tempInt >= 0) temp[0] = String.valueOf(tempInt); }catch(NumberFormatException nfe) { //there wasn't a number but we dont care, we just catch the exeption and moves on. } }else if(perm_set == imcode.server.IMCConstants.DOC_PERM_SET_RESTRICTED_2) { //ok we have a restricted_2 permission lets see if we have default template fore this one //and if soo lets put it as ordinary instead of the parents try { int tempInt = Integer.parseInt(temp[4]); if(tempInt >= 0) temp[0] = String.valueOf(tempInt); }catch(NumberFormatException nfe) { //there wasn't a number but we dont care, we just catch the exeption and moves on. } } //ok were set, lets update db sqlStr = "insert into text_docs (meta_id,template_id,sort_order,group_id,default_template_1,default_template_2) values ("+meta_id+","+temp[0]+","+temp[1]+","+temp[2]+","+temp[3]+","+temp[4]+")" ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; // Lets check if we should copy the metaheader and meta text into text1 and text2. // There are 2 types of texts. 1= html text. 0= plain text. By // default were creating html texts. String copyMetaFlag = (req.getParameter("copyMetaHeader")==null) ? "0" : (req.getParameter("copyMetaHeader")) ; if( copyMetaFlag.equals("1") && doc_type.equals("2") ) { String [] vp = { "'", "''" } ; String mHeadline = Parser.parseDoc(metaprops.getProperty("meta_headline"),vp) ; String mText = Parser.parseDoc(metaprops.getProperty("meta_text"),vp) ; sqlStr = "insert into texts (meta_id,name,text,type) values ("+meta_id +", 1, '" + mHeadline + "', 1)" ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; sqlStr = "insert into texts (meta_id,name,text,type) values ("+meta_id +", 2, '" + mText + "', 1)" ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; } // Lets activate the textfield sqlStr = "update meta set activate = 1 where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; // Lets build the page byte[] tempbytes = AdminDoc.adminDoc(Integer.parseInt(meta_id),Integer.parseInt(meta_id),host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ; } // end text document } out.print(htmlStr) ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/34e633ae8a74911769aab5741a7f89a2ca324954/SaveNewMeta.java/clean/servlets/SaveNewMeta.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 202, 780, 1479, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 780, 709, 71, 3567, 202, 33, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 780, 787, 67, 718, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 1937, 67, 718, 3113, 2564, 262, 274, 202, 780, 8100, 67, 718, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 23231, 67, 718, 3113, 2564, 262, 274, 202, 381, 710, 18, 3567, 18, 1299, 729, 274, 202, 780, 1729, 1585, 273, 1408, 274, 202, 780, 4879, 67, 529, 273, 1408, 274, 202, 780, 1623, 67, 1080, 273, 1408, 274, 202, 780, 977, 273, 1408, 274, 202, 780, 924, 8526, 274, 202, 474, 6463, 67, 2135, 273, 374, 274, 202, 455, 18, 542, 8046, 12, 315, 955, 19, 2620, 6, 11272, 202, 4745, 4632, 596, 273, 400, 18, 588, 4632, 12, 11272, 202, 759, 3136, 501, 202, 780, 4355, 273, 1111, 18, 588, 9321, 12, 11272, 202, 780, 10926, 273, 1111, 18, 588, 28434, 12, 11272, 202, 474, 293, 273, 1111, 18, 588, 2081, 2617, 12, 11272, 202, 780, 1756, 273, 261, 84, 422, 8958, 13, 692, 1408, 294, 6153, 397, 293, 31, 202, 20308, 202, 225, 6338, 2037, 603, 16, 732, 336, 326, 646, 501, 18, 202, 5549, 202, 780, 5378, 5100, 8163, 273, 288, 202, 20308, 225, 6375, 1082, 202, 2041, 1132, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 202, 780, 1479, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 780, 709, 71, 3567, 202, 33, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 780, 787, 67, 718, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 1937, 67, 718, 3113, 2564, 262, 274, 202, 780, 8100, 67, 718, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 23231, 67, 718, 3113, 2564, 262, 274, 202, 381, 710, 18, 3567, 18, 1299, 729, 274, 202, 780, 1729, 1585, 273, 1408, 274, 202, 780, 4879, 67, 529, 273, 1408, 274, 202, 780, 1623, 67, 2 ]
return newClassItem(((Type)cst).getDescriptor());
Type t = (Type)cst; return newClassItem( t.getSort() == Type.OBJECT ? t.getInternalName() : t.getDescriptor());
Item newConstItem (final Object cst) { if (cst instanceof Integer) { int val = ((Integer)cst).intValue(); return newInteger(val); } else if (cst instanceof Float) { float val = ((Float)cst).floatValue(); return newFloat(val); } else if (cst instanceof Long) { long val = ((Long)cst).longValue(); return newLong(val); } else if (cst instanceof Double) { double val = ((Double)cst).doubleValue(); return newDouble(val); } else if (cst instanceof String) { return newString((String)cst); } else if (cst instanceof Type) { return newClassItem(((Type)cst).getDescriptor()); } else { throw new IllegalArgumentException("value " + cst); } }
2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/e413dfeb929a07eac9f3e88a3cb4e8ea28885155/ClassWriter.java/buggy/asm/src/org/objectweb/asm/ClassWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4342, 394, 9661, 1180, 261, 6385, 1033, 276, 334, 13, 288, 565, 309, 261, 71, 334, 1276, 2144, 13, 288, 1377, 509, 1244, 273, 14015, 4522, 13, 71, 334, 2934, 474, 620, 5621, 1377, 327, 394, 4522, 12, 1125, 1769, 565, 289, 469, 309, 261, 71, 334, 1276, 5450, 13, 288, 1377, 1431, 1244, 273, 14015, 4723, 13, 71, 334, 2934, 5659, 620, 5621, 1377, 327, 394, 4723, 12, 1125, 1769, 565, 289, 469, 309, 261, 71, 334, 1276, 3407, 13, 288, 1377, 1525, 1244, 273, 14015, 3708, 13, 71, 334, 2934, 5748, 620, 5621, 1377, 327, 394, 3708, 12, 1125, 1769, 565, 289, 469, 309, 261, 71, 334, 1276, 3698, 13, 288, 1377, 1645, 1244, 273, 14015, 5265, 13, 71, 334, 2934, 9056, 620, 5621, 1377, 327, 394, 5265, 12, 1125, 1769, 565, 289, 469, 309, 261, 71, 334, 1276, 514, 13, 288, 1377, 327, 394, 780, 12443, 780, 13, 71, 334, 1769, 565, 289, 469, 309, 261, 71, 334, 1276, 1412, 13, 288, 1377, 1412, 268, 273, 261, 559, 13, 71, 334, 31, 327, 394, 797, 1180, 12, 268, 18, 588, 4416, 1435, 422, 1412, 18, 9422, 692, 268, 18, 588, 3061, 461, 1435, 294, 268, 18, 588, 3187, 10663, 565, 289, 469, 288, 1377, 604, 394, 2754, 2932, 1132, 315, 397, 276, 334, 1769, 565, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4342, 394, 9661, 1180, 261, 6385, 1033, 276, 334, 13, 288, 565, 309, 261, 71, 334, 1276, 2144, 13, 288, 1377, 509, 1244, 273, 14015, 4522, 13, 71, 334, 2934, 474, 620, 5621, 1377, 327, 394, 4522, 12, 1125, 1769, 565, 289, 469, 309, 261, 71, 334, 1276, 5450, 13, 288, 1377, 1431, 1244, 273, 14015, 4723, 13, 71, 334, 2934, 5659, 620, 5621, 1377, 327, 394, 4723, 12, 1125, 1769, 565, 289, 469, 309, 261, 71, 334, 1276, 3407, 13, 288, 1377, 1525, 1244, 273, 14015, 3708, 13, 71, 334, 2934, 5748, 620, 5621, 1377, 327, 394, 3708, 12, 1125, 1769, 565, 289, 469, 309, 261, 71, 334, 1276, 3698, 13, 288, 1377, 1645, 1244, 273, 14015, 2 ]
DBBroker broker = null; DocumentSet docs = null; try { broker = brokerPool.get(user); docs = collection.collection.allDocs(broker, new DocumentSet(), true); } catch (EXistException e) { throw new XMLDBException( ErrorCodes.UNKNOWN_ERROR, "error while loading documents: " + e.getMessage(), e); } finally { brokerPool.release(broker); } expression.reset(); XQueryContext context = ((PathExpr)expression).getContext(); context.setBackwardsCompatibility(xpathCompatible); context.setStaticallyKnownDocuments(docs); Map.Entry entry; for (Iterator i = namespaceDecls.entrySet().iterator(); i.hasNext();) { entry = (Map.Entry) i.next(); context.declareNamespace((String) entry.getKey(), (String) entry.getValue()); } for (Iterator i = variableDecls.entrySet().iterator(); i.hasNext();) { entry = (Map.Entry) i.next(); try { context.declareVariable((String) entry.getKey(), entry.getValue()); } catch (XPathException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } } return doQuery(expression, docs, null, null);
return execute(null, null, expression, null);
public ResourceSet execute(CompiledExpression expression) throws XMLDBException { DBBroker broker = null; DocumentSet docs = null; try { broker = brokerPool.get(user); docs = collection.collection.allDocs(broker, new DocumentSet(), true); } catch (EXistException e) { throw new XMLDBException( ErrorCodes.UNKNOWN_ERROR, "error while loading documents: " + e.getMessage(), e); } finally { brokerPool.release(broker); } expression.reset(); XQueryContext context = ((PathExpr)expression).getContext(); context.setBackwardsCompatibility(xpathCompatible); context.setStaticallyKnownDocuments(docs); Map.Entry entry; // declare namespace/prefix mappings for (Iterator i = namespaceDecls.entrySet().iterator(); i.hasNext();) { entry = (Map.Entry) i.next(); context.declareNamespace((String) entry.getKey(), (String) entry.getValue()); } // declare static variables for (Iterator i = variableDecls.entrySet().iterator(); i.hasNext();) { entry = (Map.Entry) i.next(); try { context.declareVariable((String) entry.getKey(), entry.getValue()); } catch (XPathException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } } return doQuery(expression, docs, null, null); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b92dd2c7133543317ac780aa6c6ff48f269be10c/LocalXPathQueryService.java/buggy/src/org/exist/xmldb/LocalXPathQueryService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2591, 694, 1836, 12, 20733, 2300, 2652, 13, 1216, 26014, 503, 288, 202, 202, 2290, 11194, 8625, 273, 446, 31, 202, 202, 2519, 694, 3270, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 21722, 273, 8625, 2864, 18, 588, 12, 1355, 1769, 1082, 202, 8532, 273, 1849, 18, 5548, 18, 454, 12656, 12, 21722, 16, 394, 4319, 694, 9334, 638, 1769, 202, 202, 97, 1044, 261, 2294, 376, 503, 425, 13, 288, 1082, 202, 12849, 394, 26014, 503, 12, 9506, 202, 668, 6295, 18, 14737, 67, 3589, 16, 9506, 202, 6, 1636, 1323, 7153, 7429, 30, 315, 397, 425, 18, 24906, 9334, 9506, 202, 73, 1769, 202, 202, 97, 3095, 288, 1082, 202, 21722, 2864, 18, 9340, 12, 21722, 1769, 202, 202, 97, 202, 202, 8692, 18, 6208, 5621, 202, 202, 60, 1138, 1042, 819, 273, 14015, 743, 4742, 13, 8692, 2934, 29120, 5621, 202, 202, 2472, 18, 542, 2711, 6397, 21633, 12, 18644, 14599, 1769, 202, 202, 2472, 18, 542, 5788, 1230, 11925, 12922, 12, 8532, 1769, 9506, 202, 863, 18, 1622, 1241, 31, 202, 202, 759, 14196, 1981, 19, 3239, 7990, 202, 202, 1884, 261, 3198, 277, 273, 1981, 1799, 3251, 18, 4099, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 4099, 273, 261, 863, 18, 1622, 13, 277, 18, 4285, 5621, 1082, 202, 2472, 18, 29554, 3402, 12443, 780, 13, 1241, 18, 588, 653, 9334, 261, 780, 13, 1241, 18, 24805, 10663, 202, 202, 97, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2591, 694, 1836, 12, 20733, 2300, 2652, 13, 1216, 26014, 503, 288, 202, 202, 2290, 11194, 8625, 273, 446, 31, 202, 202, 2519, 694, 3270, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 21722, 273, 8625, 2864, 18, 588, 12, 1355, 1769, 1082, 202, 8532, 273, 1849, 18, 5548, 18, 454, 12656, 12, 21722, 16, 394, 4319, 694, 9334, 638, 1769, 202, 202, 97, 1044, 261, 2294, 376, 503, 425, 13, 288, 1082, 202, 12849, 394, 26014, 503, 12, 9506, 202, 668, 6295, 18, 14737, 67, 3589, 16, 9506, 202, 6, 1636, 1323, 7153, 7429, 30, 315, 397, 425, 18, 24906, 9334, 9506, 202, 73, 1769, 202, 202, 97, 3095, 288, 1082, 202, 21722, 2864, 2 ]
return "jnilib";
return "jnilib";
private static final String getLibrarySuffix() { boolean isWindows =System.getProperty("os.name").toLowerCase().indexOf("windows") != -1; boolean isMacOS =(System.getProperty("os.name").toLowerCase().indexOf("mac os x") != -1); if(isWindows) return "dll"; else if(isMacOS) return "jnilib"; else return "so"; }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/6bca71f7dada932c5207680f1b3ceec7166a4ec4/NativeBigInteger.java/clean/src/net/i2p/util/NativeBigInteger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 514, 336, 9313, 5791, 1435, 565, 288, 377, 202, 6494, 353, 10399, 273, 3163, 18, 588, 1396, 2932, 538, 18, 529, 20387, 869, 5630, 7675, 31806, 2932, 13226, 7923, 480, 300, 21, 31, 377, 202, 6494, 353, 9990, 4618, 273, 12, 3163, 18, 588, 1396, 2932, 538, 18, 529, 20387, 869, 5630, 7675, 31806, 2932, 5821, 1140, 619, 7923, 480, 300, 21, 1769, 377, 202, 430, 12, 291, 10399, 13, 377, 202, 202, 2463, 315, 27670, 14432, 377, 202, 12107, 309, 12, 291, 9990, 4618, 13, 202, 202, 2463, 315, 78, 20154, 495, 14432, 202, 12107, 377, 202, 202, 2463, 315, 2048, 14432, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 3238, 760, 727, 514, 336, 9313, 5791, 1435, 565, 288, 377, 202, 6494, 353, 10399, 273, 3163, 18, 588, 1396, 2932, 538, 18, 529, 20387, 869, 5630, 7675, 31806, 2932, 13226, 7923, 480, 300, 21, 31, 377, 202, 6494, 353, 9990, 4618, 273, 12, 3163, 18, 588, 1396, 2932, 538, 18, 529, 20387, 869, 5630, 7675, 31806, 2932, 5821, 1140, 619, 7923, 480, 300, 21, 1769, 377, 202, 430, 12, 291, 10399, 13, 377, 202, 202, 2463, 315, 27670, 14432, 377, 202, 12107, 309, 12, 291, 9990, 4618, 13, 202, 202, 2463, 315, 78, 20154, 495, 14432, 202, 12107, 377, 202, 202, 2463, 315, 2048, 14432, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return InspectionGadgetsBundle.message("boolean.method.name.must.start.with.question.problem.descriptor");
return InspectionGadgetsBundle.message( "boolean.method.name.must.start.with.question.problem.descriptor");
public String buildErrorString(PsiElement location){ return InspectionGadgetsBundle.message("boolean.method.name.must.start.with.question.problem.descriptor"); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/99336f1791510cfcd3ff200df94a9d442cbf8ed8/BooleanMethodNameMustStartWithQuestionInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/naming/BooleanMethodNameMustStartWithQuestionInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1361, 668, 780, 12, 52, 7722, 1046, 2117, 15329, 3639, 327, 22085, 7017, 43, 361, 14665, 3405, 18, 2150, 12, 315, 6494, 18, 2039, 18, 529, 18, 11926, 18, 1937, 18, 1918, 18, 4173, 18, 18968, 18, 12628, 8863, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 377, 1071, 514, 1361, 668, 780, 12, 52, 7722, 1046, 2117, 15329, 3639, 327, 22085, 7017, 43, 361, 14665, 3405, 18, 2150, 12, 315, 6494, 18, 2039, 18, 529, 18, 11926, 18, 1937, 18, 1918, 18, 4173, 18, 18968, 18, 12628, 8863, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public final double removeNode(QSortedTreeNode o) { Node p = (Node) o; double ret = p.value; Node q = (Node) p.parent; int lastDir = 0; if (q.child[1] == p) lastDir = 1; if (p.child[1] == null) { q.child[lastDir] = p.child[0]; if (q.child[lastDir] != null) q.child[lastDir].parent = q; } else if (p.child[0] == null) { q.child[lastDir] = p.child[1]; if (q.child[lastDir] != null) q.child[lastDir].parent = q; } else { // Swap p with its successor, and delete it Node r = (Node) p.nextNode(); // Do not modify p's color! copyNode(r, p); p = r; q = (Node) p.parent; if (q.child[0] == p) lastDir = 0; else lastDir = 1; assert p.child[0] == null; q.child[lastDir] = p.child[1]; if (q.child[lastDir] != null) q.child[lastDir].parent = q; } if (p.isRed) return ret; for (;;) { p = (Node) q.child[lastDir]; if (isRedNode(p)) { p.isRed = false; logger.debug("Red node :-)"); break; } // Case 1: root tree if (q == root || q.child[0] == root) { logger.debug("Case 1"); break; } int sibDir = 1 - lastDir; Node grandparent = (Node) q.parent; int gLastDir = 0; if (grandparent.child[1] == q) gLastDir = 1; Node sibling = (Node) q.child[sibDir]; if (sibling.isRed) { // Case 2: sibling is red logger.debug("Case 2"); sibling.isRed = false; q.isRed = true; /* Example with lastDir == 0 qB qR sB => gB / \ ----> / \ ----> / \ pB sR pB sB qR bB / \ / \ / \ aB bB aB bB pB aB => sB */ if (lastDir == 0) grandparent.child[gLastDir] = q.rotateL(); else grandparent.child[gLastDir] = q.rotateR(); grandparent = sibling; sibling = (Node) q.child[sibDir]; if (grandparent.child[0] == q) gLastDir = 1; else gLastDir = 1; } if (!q.isRed && !sibling.isRed && !isRedNode(sibling.child[0]) && !isRedNode(sibling.child[1])) { // Case 3: parent, sibling and sibling's // children are black logger.debug("Case 3"); sibling.isRed = true; } else { assert !isRedNode(sibling); // Now sibling is black. if (!isRedNode(sibling.child[0]) && !isRedNode(sibling.child[1])) { // Case 4: sibling and sibling's // children are black, but parent is // red. assert q.isRed; logger.debug("Case 4"); sibling.isRed = true; q.isRed = false; break; } else { if (isRedNode(sibling.child[lastDir]) && !isRedNode(sibling.child[sibDir])) { // Case 5: sibling is black, left child is // red and right child is black. // Rotate at sibling and paint nodes // so that sibling.child[sibDir] is red. logger.debug("Case 5"); Node y = (Node) sibling.child[lastDir]; y.isRed = false; sibling.isRed = true; if (lastDir == 0) q.child[sibDir] = sibling.rotateR(); else q.child[sibDir] = sibling.rotateL(); sibling = y; /* Example with lastDir == 0 qR qR qB / \ ---> / \ ---> / \ xB sB xB yR xB yB / \ / \ / \ yR zB T1 sB T1 sR / \ / \ / \ T1 T2 T2 zB T2 zB */ } logger.debug("Case 6"); // Case 6: sibling is black and its right child // is red. /* q* qB s* / \ ---> / \ ---> / \ xB sB xB s* qB yB / \ / \ / \ / \ T1 yR T1 yB xB T1 T2 zB / \ / \ T2 zB T2 zB */ assert !isRedNode(sibling) && isRedNode(sibling.child[sibDir]); sibling.isRed = q.isRed; q.isRed = false; ((Node) sibling.child[sibDir]).isRed = false; if (lastDir == 0) grandparent.child[gLastDir] = q.rotateL(); else grandparent.child[gLastDir] = q.rotateR(); break; } } if (q.parent.child[0] == q) lastDir = 0; else lastDir = 1; q = (Node) q.parent; } assert isValid(); return ret; }
45433 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45433/aabb0b5f67b561171594de4a3b264eb276b1df17/PRedBlackSortedTree.java/buggy/amibe/src/org/jcae/mesh/amibe/util/PRedBlackSortedTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1645, 1206, 907, 12, 53, 11739, 12513, 320, 13, 202, 95, 202, 202, 907, 293, 273, 261, 907, 13, 320, 31, 202, 202, 9056, 325, 273, 293, 18, 1132, 31, 202, 202, 907, 1043, 273, 261, 907, 13, 293, 18, 2938, 31, 202, 202, 474, 1142, 1621, 273, 374, 31, 202, 202, 430, 261, 85, 18, 3624, 63, 21, 65, 422, 293, 13, 1082, 202, 2722, 1621, 273, 404, 31, 202, 202, 430, 261, 84, 18, 3624, 63, 21, 65, 422, 446, 13, 202, 202, 95, 1082, 202, 85, 18, 3624, 63, 2722, 1621, 65, 273, 293, 18, 3624, 63, 20, 15533, 1082, 202, 430, 261, 85, 18, 3624, 63, 2722, 1621, 65, 480, 446, 13, 9506, 202, 85, 18, 3624, 63, 2722, 1621, 8009, 2938, 273, 1043, 31, 202, 202, 97, 202, 202, 12107, 309, 261, 84, 18, 3624, 63, 20, 65, 422, 446, 13, 202, 202, 95, 1082, 202, 85, 18, 3624, 63, 2722, 1621, 65, 273, 293, 18, 3624, 63, 21, 15533, 1082, 202, 430, 261, 85, 18, 3624, 63, 2722, 1621, 65, 480, 446, 13, 9506, 202, 85, 18, 3624, 63, 2722, 1621, 8009, 2938, 273, 1043, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 759, 12738, 293, 598, 2097, 19532, 16, 471, 1430, 518, 1082, 202, 907, 436, 273, 261, 907, 13, 293, 18, 4285, 907, 5621, 1082, 202, 759, 2256, 486, 5612, 293, 1807, 2036, 5, 1082, 202, 3530, 907, 12, 86, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 1206, 907, 12, 53, 11739, 12513, 320, 13, 202, 95, 202, 202, 907, 293, 273, 261, 907, 13, 320, 31, 202, 202, 9056, 325, 273, 293, 18, 1132, 31, 202, 202, 907, 1043, 273, 261, 907, 13, 293, 18, 2938, 31, 202, 202, 474, 1142, 1621, 273, 374, 31, 202, 202, 430, 261, 85, 18, 3624, 63, 21, 65, 422, 293, 13, 1082, 202, 2722, 1621, 273, 404, 31, 202, 202, 430, 261, 84, 18, 3624, 63, 21, 65, 422, 446, 13, 202, 202, 95, 1082, 202, 85, 18, 3624, 63, 2722, 1621, 65, 273, 293, 18, 3624, 63, 20, 15533, 1082, 202, 430, 261, 85, 18, 3624, 63, 2722, 1621, 65, 480, 446, 2 ]
RubyObject[] args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); RubyList argsList = new RubyList(args); argsList.remove(args.length - 1); RubyObject val = recv.funcall(ruby.intern("[]"), argsList.toRubyArray());
RubyPointer args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); args.remove(args.size() - 1); RubyObject val = recv.funcall(ruby.intern("[]"), args);
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyObject recv = getRecvNode().eval(ruby, self); Node rval = getArgsNode().getHeadNode(); RubyObject[] args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); RubyList argsList = new RubyList(args); argsList.remove(args.length - 1); RubyObject val = recv.funcall(ruby.intern("[]"), argsList.toRubyArray()); switch (getMId().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } else { val = rval.eval(ruby, self); } break; case 1: /* AND */ if (val.isFalse()) { return val; } else { val = rval.eval(ruby, self); } break; default: val = val.funcall(getMId(), rval.eval(ruby, self)); } args[args.length - 1] = val; return recv.funcall(ruby.intern("[]="), args); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/OpAsgn1Node.java/buggy/org/jruby/nodes/OpAsgn1Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 22155, 16, 19817, 921, 365, 13, 288, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 7734, 19817, 921, 10665, 273, 5561, 19774, 907, 7675, 8622, 12, 27768, 16, 365, 1769, 3639, 2029, 14267, 273, 30169, 907, 7675, 588, 1414, 907, 5621, 7734, 19817, 921, 8526, 833, 273, 6634, 1304, 18, 8401, 2615, 12, 27768, 16, 365, 16, 30169, 907, 7675, 588, 2134, 907, 10663, 3639, 19817, 682, 833, 682, 273, 394, 19817, 682, 12, 1968, 1769, 3639, 833, 682, 18, 4479, 12, 1968, 18, 2469, 300, 404, 1769, 3639, 19817, 921, 1244, 273, 10665, 18, 644, 454, 12, 27768, 18, 267, 798, 2932, 63, 4279, 3631, 833, 682, 18, 869, 54, 10340, 1076, 10663, 7734, 1620, 261, 588, 49, 548, 7675, 474, 620, 10756, 288, 5411, 648, 374, 30, 1748, 4869, 1195, 7734, 309, 261, 1125, 18, 291, 5510, 10756, 288, 10792, 327, 1244, 31, 7734, 289, 469, 288, 10792, 1244, 273, 14267, 18, 8622, 12, 27768, 16, 365, 1769, 7734, 289, 7734, 898, 31, 5411, 648, 404, 30, 1748, 4116, 1195, 7734, 309, 261, 1125, 18, 291, 8381, 10756, 288, 10792, 327, 1244, 31, 7734, 289, 469, 288, 10792, 1244, 273, 14267, 18, 8622, 12, 27768, 16, 365, 1769, 7734, 289, 7734, 898, 31, 5411, 805, 30, 7734, 1244, 273, 1244, 18, 644, 454, 12, 588, 49, 548, 9334, 14267, 18, 8622, 12, 27768, 16, 365, 10019, 3639, 289, 3639, 833, 63, 1968, 18, 2469, 300, 404, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 5302, 12, 54, 10340, 22155, 16, 19817, 921, 365, 13, 288, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 7734, 19817, 921, 10665, 273, 5561, 19774, 907, 7675, 8622, 12, 27768, 16, 365, 1769, 3639, 2029, 14267, 273, 30169, 907, 7675, 588, 1414, 907, 5621, 7734, 19817, 921, 8526, 833, 273, 6634, 1304, 18, 8401, 2615, 12, 27768, 16, 365, 16, 30169, 907, 7675, 588, 2134, 907, 10663, 3639, 19817, 682, 833, 682, 273, 394, 19817, 682, 12, 1968, 1769, 3639, 833, 682, 18, 4479, 12, 1968, 18, 2469, 300, 404, 1769, 3639, 19817, 921, 1244, 273, 10665, 18, 644, 454, 12, 27768, 18, 267, 798, 2932, 63, 4279, 3631, 833, 682, 18, 869, 2 ]
listener.logRevision(revision);
listener.logRevision(revision, path);
public void logRevision(long revision) { if (logEnabled) { for(Iterator it=notifylisteners.iterator(); it.hasNext();) { ISVNNotifyListener listener = (ISVNNotifyListener)it.next(); listener.logRevision(revision); } } }
12019 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12019/c10e0f3702b6cc8203794b6eb77feb46a1480249/SVNNotificationHandler.java/buggy/src/main/org/tigris/subversion/svnclientadapter/SVNNotificationHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 613, 7939, 12, 5748, 6350, 13, 288, 3639, 309, 261, 1330, 1526, 13, 288, 5411, 364, 12, 3198, 518, 33, 12336, 16072, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 7734, 4437, 58, 50, 9168, 2223, 2991, 273, 261, 5127, 58, 50, 9168, 2223, 13, 305, 18, 4285, 5621, 7734, 2991, 18, 1330, 7939, 12, 13057, 16, 589, 1769, 5411, 289, 3639, 289, 18701, 289, 377, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 613, 7939, 12, 5748, 6350, 13, 288, 3639, 309, 261, 1330, 1526, 13, 288, 5411, 364, 12, 3198, 518, 33, 12336, 16072, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 7734, 4437, 58, 50, 9168, 2223, 2991, 273, 261, 5127, 58, 50, 9168, 2223, 13, 305, 18, 4285, 5621, 7734, 2991, 18, 1330, 7939, 12, 13057, 16, 589, 1769, 5411, 289, 3639, 289, 18701, 289, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String value = mimeString.substring(idx + paramName.length() + 2);
String value = mimeString.substring(idx + paramName.length() + 1);
getParameter(String paramName, String mimeString){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 2); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));}
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/e338b0af36a7851b04ef44c2d6923ebebf4e882f/DataFlavor.java/buggy/libjava/java/awt/datatransfer/DataFlavor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5575, 12, 780, 11466, 16, 514, 4892, 780, 15329, 225, 509, 2067, 273, 4892, 780, 18, 31806, 12, 891, 461, 397, 9671, 1769, 225, 309, 261, 3465, 422, 300, 21, 13, 565, 327, 12, 2011, 1769, 225, 514, 460, 273, 4892, 780, 18, 28023, 12, 3465, 397, 11466, 18, 2469, 1435, 397, 404, 1769, 225, 2067, 273, 460, 18, 31806, 2932, 315, 1769, 225, 309, 261, 3465, 422, 300, 21, 13, 565, 327, 12, 1132, 1769, 225, 469, 565, 327, 12, 1132, 18, 28023, 12, 20, 16, 2067, 10019, 97, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 5575, 12, 780, 11466, 16, 514, 4892, 780, 15329, 225, 509, 2067, 273, 4892, 780, 18, 31806, 12, 891, 461, 397, 9671, 1769, 225, 309, 261, 3465, 422, 300, 21, 13, 565, 327, 12, 2011, 1769, 225, 514, 460, 273, 4892, 780, 18, 28023, 12, 3465, 397, 11466, 18, 2469, 1435, 397, 404, 1769, 225, 2067, 273, 460, 18, 31806, 2932, 315, 1769, 225, 309, 261, 3465, 422, 300, 21, 13, 565, 327, 12, 1132, 1769, 225, 469, 565, 327, 12, 1132, 18, 28023, 12, 20, 16, 2067, 10019, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.DiscretionOffset getDiscretionOffset() throws FieldNotFound { org.quickfix.field.DiscretionOffset value = new org.quickfix.field.DiscretionOffset();
public quickfix.field.DiscretionOffset getDiscretionOffset() throws FieldNotFound { quickfix.field.DiscretionOffset value = new quickfix.field.DiscretionOffset();
public org.quickfix.field.DiscretionOffset getDiscretionOffset() throws FieldNotFound { org.quickfix.field.DiscretionOffset value = new org.quickfix.field.DiscretionOffset(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix43/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 28912, 1349, 285, 2335, 336, 28912, 1349, 285, 2335, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 28912, 1349, 285, 2335, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 28912, 1349, 285, 2335, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 2358, 18, 19525, 904, 18, 1518, 18, 28912, 1349, 285, 2335, 336, 28912, 1349, 285, 2335, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 28912, 1349, 285, 2335, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 28912, 1349, 285, 2335, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
root.setAttribute("imageName", emitter.imageName == null ? "" : emitter.imageName);
root.setAttribute("imageName", emitter.imageName == null ? "" : emitter.imageName); root .setAttribute("useOriented", emitter.useOriented ? "true" : "false"); root .setAttribute("useAdditive", emitter.useAdditive ? "true" : "false");
private static Element emitterToElement(Document document, ConfigurableEmitter emitter) { Element root = document.createElement("emitter"); root.setAttribute("name", emitter.name); root.setAttribute("imageName", emitter.imageName == null ? "" : emitter.imageName); if (emitter.usePoints == Particle.INHERIT_POINTS) { root.setAttribute("renderType","inherit"); } if (emitter.usePoints == Particle.USE_POINTS) { root.setAttribute("renderType","points"); } if (emitter.usePoints == Particle.USE_QUADS) { root.setAttribute("renderType","quads"); } root.appendChild(createRangeElement(document, "spawnInterval", emitter.spawnInterval)); root.appendChild(createRangeElement(document, "spawnCount", emitter.spawnCount)); root.appendChild(createRangeElement(document, "initialLife", emitter.initialLife)); root.appendChild(createRangeElement(document, "initialSize", emitter.initialSize)); root.appendChild(createRangeElement(document, "xOffset", emitter.xOffset)); root.appendChild(createRangeElement(document, "yOffset", emitter.yOffset)); root.appendChild(createRangeElement(document, "initialDistance", emitter.initialDistance)); root.appendChild(createRangeElement(document, "speed", emitter.speed)); root.appendChild(createRangeElement(document, "length", emitter.length)); root.appendChild(createRangeElement(document, "emitCount", emitter.emitCount)); root.appendChild(createValueElement(document, "spread", emitter.spread)); root.appendChild(createValueElement(document, "angularOffset", emitter.angularOffset)); root.appendChild(createValueElement(document, "growthFactor", emitter.growthFactor)); root.appendChild(createValueElement(document, "gravityFactor", emitter.gravityFactor)); root.appendChild(createValueElement(document, "windFactor", emitter.windFactor)); root.appendChild(createValueElement(document, "startAlpha", emitter.startAlpha)); root.appendChild(createValueElement(document, "endAlpha", emitter.endAlpha)); Element color = document.createElement("color"); ArrayList list = emitter.colors; for (int i=0;i<list.size();i++) { ColorRecord record = (ColorRecord) list.get(i); Element step = document.createElement("step"); step.setAttribute("offset", ""+record.pos); step.setAttribute("r", ""+record.col.r); step.setAttribute("g", ""+record.col.g); step.setAttribute("b", ""+record.col.b); color.appendChild(step); } root.appendChild(color); return root; }
47738 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47738/fd5622a1c8a5bc2cfa76230098b43927bb07a77f/ParticleIO.java/clean/src/org/newdawn/slick/particles/ParticleIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 3010, 11520, 774, 1046, 12, 2519, 1668, 16, 29312, 13476, 11520, 13, 288, 202, 202, 1046, 1365, 273, 1668, 18, 2640, 1046, 2932, 27529, 8863, 202, 202, 3085, 18, 542, 1499, 2932, 529, 3113, 11520, 18, 529, 1769, 202, 202, 3085, 18, 542, 1499, 2932, 2730, 461, 3113, 11520, 18, 2730, 461, 422, 446, 692, 1408, 294, 11520, 18, 2730, 461, 1769, 202, 202, 430, 261, 27529, 18, 1202, 5636, 422, 6393, 3711, 18, 706, 29982, 67, 8941, 55, 13, 288, 1082, 202, 3085, 18, 542, 1499, 2932, 5902, 559, 15937, 6018, 8863, 202, 202, 97, 202, 202, 430, 261, 27529, 18, 1202, 5636, 422, 6393, 3711, 18, 8001, 67, 8941, 55, 13, 288, 1082, 202, 3085, 18, 542, 1499, 2932, 5902, 559, 15937, 4139, 8863, 202, 202, 97, 202, 202, 430, 261, 27529, 18, 1202, 5636, 422, 6393, 3711, 18, 8001, 67, 3500, 1880, 55, 13, 288, 1082, 202, 3085, 18, 542, 1499, 2932, 5902, 559, 15937, 372, 17318, 8863, 202, 202, 97, 9506, 202, 3085, 18, 6923, 1763, 12, 2640, 2655, 1046, 12, 5457, 16, 315, 1752, 9533, 4006, 3113, 11520, 18, 1752, 9533, 4006, 10019, 202, 202, 3085, 18, 6923, 1763, 12, 2640, 2655, 1046, 12, 5457, 16, 315, 1752, 9533, 1380, 3113, 11520, 18, 1752, 9533, 1380, 10019, 202, 202, 3085, 18, 6923, 1763, 12, 2640, 2655, 1046, 12, 5457, 16, 315, 6769, 15315, 3113, 11520, 18, 6769, 15315, 10019, 202, 202, 3085, 18, 6923, 1763, 12, 2640, 2655, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 3010, 11520, 774, 1046, 12, 2519, 1668, 16, 29312, 13476, 11520, 13, 288, 202, 202, 1046, 1365, 273, 1668, 18, 2640, 1046, 2932, 27529, 8863, 202, 202, 3085, 18, 542, 1499, 2932, 529, 3113, 11520, 18, 529, 1769, 202, 202, 3085, 18, 542, 1499, 2932, 2730, 461, 3113, 11520, 18, 2730, 461, 422, 446, 692, 1408, 294, 11520, 18, 2730, 461, 1769, 202, 202, 430, 261, 27529, 18, 1202, 5636, 422, 6393, 3711, 18, 706, 29982, 67, 8941, 55, 13, 288, 1082, 202, 3085, 18, 542, 1499, 2932, 5902, 559, 15937, 6018, 8863, 202, 202, 97, 202, 202, 430, 261, 27529, 18, 1202, 5636, 422, 6393, 3711, 18, 8001, 67, 8941, 55, 13, 288, 1082, 2 ]
case 'l':
case 'a':
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 'i': return s76; case 'l': return s77; case 'a': return s78; case 'o': return s79; default: return s45; } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.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, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 296, 77, 4278, 10792, 327, 272, 6669, 31, 7734, 648, 296, 69, 4278, 10792, 327, 272, 4700, 31, 7734, 648, 296, 69, 4278, 10792, 327, 272, 8285, 31, 7734, 648, 296, 83, 4278, 10792, 327, 272, 7235, 31, 7734, 805, 30, 10792, 327, 272, 7950, 31, 540, 202, 3639, 289, 5411, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 296, 77, 4278, 10792, 327, 272, 6669, 31, 7734, 648, 296, 69, 4278, 10792, 327, 272, 4700, 31, 7734, 648, 296, 69, 4278, 10792, 327, 272, 8285, 31, 7734, 648, 296, 83, 4278, 10792, 327, 272, 7235, 31, 7734, 805, 30, 10792, 327, 272, 7950, 31, 540, 202, 3639, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void addTimeout(Timeoutable t, long now, long timeout) {
public synchronized void addTimeout(Timeoutable t, long now, long timeout) { if(LOG.isDebugEnabled()) LOG.debug("Adding timeoutable: " + t + ", now: " + now + ", timeout: " + timeout);
public void addTimeout(Timeoutable t, long now, long timeout) { items.insert(new Timeout(t, now, timeout)); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/891a3f40b5217ef8e4f0bac44f4365d80de873b9/TimeoutController.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/io/TimeoutController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 527, 2694, 12, 2694, 429, 268, 16, 1525, 2037, 16, 1525, 2021, 13, 288, 309, 12, 4842, 18, 291, 2829, 1526, 10756, 2018, 18, 4148, 2932, 13962, 2021, 429, 30, 315, 397, 268, 397, 3104, 2037, 30, 315, 397, 2037, 397, 3104, 2021, 30, 315, 397, 2021, 1769, 3639, 1516, 18, 6387, 12, 2704, 7804, 12, 88, 16, 2037, 16, 2021, 10019, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 3852, 918, 527, 2694, 12, 2694, 429, 268, 16, 1525, 2037, 16, 1525, 2021, 13, 288, 309, 12, 4842, 18, 291, 2829, 1526, 10756, 2018, 18, 4148, 2932, 13962, 2021, 429, 30, 315, 397, 268, 397, 3104, 2037, 30, 315, 397, 2037, 397, 3104, 2021, 30, 315, 397, 2021, 1769, 3639, 1516, 18, 6387, 12, 2704, 7804, 12, 88, 16, 2037, 16, 2021, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
attrRegions = ((ITextRegionContainer) embedded).getRegions().iterator(); while (attrRegions.hasNext()) { attrChunk = (ITextRegion) attrRegions.next(); String type = attrChunk.getType(); if (type == DOMJSPRegionContexts.JSP_EXPRESSION_OPEN || type == DOMJSPRegionContexts.JSP_SCRIPTLET_OPEN || type == DOMJSPRegionContexts.JSP_DECLARATION_OPEN || type == DOMJSPRegionContexts.JSP_DIRECTIVE_OPEN || type == DOMJSPRegionContexts.JSP_EL_OPEN) { translateEmbeddedJSPInAttribute((ITextRegionContainer) embedded); } }
translateEmbeddedJSPInAttribute((ITextRegionContainer) embedded);
private void checkAllAttributeValueContainers(Iterator regions) { // tag name is not jsp // handle embedded jsp attributes... ITextRegion embedded = null; Iterator attrRegions = null; ITextRegion attrChunk = null; while (regions.hasNext()) { embedded = (ITextRegion) regions.next(); if (embedded instanceof ITextRegionContainer) { // parse out container attrRegions = ((ITextRegionContainer) embedded).getRegions().iterator(); while (attrRegions.hasNext()) { attrChunk = (ITextRegion) attrRegions.next(); String type = attrChunk.getType(); // embedded JSP in attribute support only want to // translate one time per // embedded region so we only translate on the JSP open // tags (not content) if (type == DOMJSPRegionContexts.JSP_EXPRESSION_OPEN || type == DOMJSPRegionContexts.JSP_SCRIPTLET_OPEN || type == DOMJSPRegionContexts.JSP_DECLARATION_OPEN || type == DOMJSPRegionContexts.JSP_DIRECTIVE_OPEN || type == DOMJSPRegionContexts.JSP_EL_OPEN) { // now call jsptranslate translateEmbeddedJSPInAttribute((ITextRegionContainer) embedded); } } } } }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/a929bce6ac66b50aca53c92bc09d9ce7f88f1ca9/JSPTranslator.java/buggy/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 1595, 14942, 11177, 12, 3198, 10085, 13, 288, 202, 202, 759, 1047, 508, 353, 486, 22535, 202, 202, 759, 1640, 7488, 22535, 1677, 2777, 202, 202, 1285, 408, 5165, 7488, 273, 446, 31, 202, 202, 3198, 1604, 17344, 273, 446, 31, 202, 202, 1285, 408, 5165, 1604, 5579, 273, 446, 31, 202, 202, 17523, 261, 15923, 18, 5332, 2134, 10756, 288, 1082, 202, 20722, 273, 261, 1285, 408, 5165, 13, 10085, 18, 4285, 5621, 1082, 202, 430, 261, 20722, 1276, 467, 1528, 5165, 2170, 13, 288, 9506, 202, 759, 1109, 596, 1478, 9506, 202, 1747, 17344, 273, 14015, 1285, 408, 5165, 2170, 13, 7488, 2934, 588, 17344, 7675, 9838, 5621, 9506, 202, 17523, 261, 1747, 17344, 18, 5332, 2134, 10756, 288, 6862, 202, 1747, 5579, 273, 261, 1285, 408, 5165, 13, 1604, 17344, 18, 4285, 5621, 6862, 202, 780, 618, 273, 1604, 5579, 18, 588, 559, 5621, 6862, 202, 759, 7488, 804, 3118, 316, 1566, 2865, 1338, 2545, 358, 6862, 202, 759, 4204, 1245, 813, 1534, 6862, 202, 759, 7488, 3020, 1427, 732, 1338, 4204, 603, 326, 804, 3118, 1696, 6862, 202, 759, 2342, 261, 902, 913, 13, 6862, 202, 430, 261, 723, 422, 4703, 46, 3118, 5165, 15518, 18, 46, 3118, 67, 19111, 67, 11437, 747, 618, 422, 4703, 46, 3118, 5165, 15518, 18, 46, 3118, 67, 10885, 15146, 67, 11437, 747, 618, 422, 4703, 46, 3118, 5165, 15518, 18, 46, 3118, 67, 23956, 985, 2689, 67, 11437, 747, 618, 422, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 1595, 14942, 11177, 12, 3198, 10085, 13, 288, 202, 202, 759, 1047, 508, 353, 486, 22535, 202, 202, 759, 1640, 7488, 22535, 1677, 2777, 202, 202, 1285, 408, 5165, 7488, 273, 446, 31, 202, 202, 3198, 1604, 17344, 273, 446, 31, 202, 202, 1285, 408, 5165, 1604, 5579, 273, 446, 31, 202, 202, 17523, 261, 15923, 18, 5332, 2134, 10756, 288, 1082, 202, 20722, 273, 261, 1285, 408, 5165, 13, 10085, 18, 4285, 5621, 1082, 202, 430, 261, 20722, 1276, 467, 1528, 5165, 2170, 13, 288, 9506, 202, 759, 1109, 596, 1478, 9506, 202, 1747, 17344, 273, 14015, 1285, 408, 5165, 2170, 13, 7488, 2934, 588, 17344, 7675, 9838, 5621, 9506, 202, 17523, 261, 2 ]
if ((me.getModifiers() & InputEvent.BUTTON1_MASK) != 0) { startScrollTimer(); }
startScrollTimer();
public void mouseEntered(MouseEvent me) { isMouseOver = true; repaint(); if ((me.getModifiers() & InputEvent.BUTTON1_MASK) != 0) { // moved to this panel while left button is presses startScrollTimer(); } }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/416418bb11d4d97243faf7a153dc6388f236a6d7/ScrollableMenu.java/clean/tvbrowser/src/util/ui/ScrollableMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 7644, 10237, 329, 12, 9186, 1133, 1791, 13, 288, 3639, 353, 9186, 4851, 273, 638, 31, 3639, 24962, 5621, 3639, 309, 14015, 3501, 18, 588, 11948, 1435, 473, 2741, 1133, 18, 20068, 21, 67, 11704, 13, 480, 374, 13, 288, 1850, 368, 10456, 358, 333, 6594, 1323, 2002, 3568, 353, 11779, 281, 1850, 787, 6806, 6777, 5621, 3639, 289, 1377, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 4202, 1071, 918, 7644, 10237, 329, 12, 9186, 1133, 1791, 13, 288, 3639, 353, 9186, 4851, 273, 638, 31, 3639, 24962, 5621, 3639, 309, 14015, 3501, 18, 588, 11948, 1435, 473, 2741, 1133, 18, 20068, 21, 67, 11704, 13, 480, 374, 13, 288, 1850, 368, 10456, 358, 333, 6594, 1323, 2002, 3568, 353, 11779, 281, 1850, 787, 6806, 6777, 5621, 3639, 289, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
.getElements( IModuleNameScope.NATIVE_LEVEL );
.getElements( IAccessControl.NATIVE_LEVEL );
public List getVisibleDataSets( ) { IModuleNameScope namescope = module .getModuleNameSpace( Module.DATA_SET_NAME_SPACE ); List elementList = namescope .getElements( IModuleNameScope.NATIVE_LEVEL ); return generateHandleList( sortVisibleElements( elementList, IModuleNameScope.NATIVE_LEVEL ) ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/ModuleHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ModuleHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 31564, 751, 2785, 12, 262, 202, 95, 202, 202, 45, 22542, 3876, 15135, 742, 1306, 273, 1605, 9506, 202, 18, 588, 22542, 3819, 12, 5924, 18, 4883, 67, 4043, 67, 1985, 67, 6616, 11272, 202, 202, 682, 930, 682, 273, 15135, 742, 1306, 9506, 202, 18, 588, 3471, 12, 467, 22542, 3876, 18, 50, 12992, 67, 10398, 11272, 202, 202, 2463, 2103, 3259, 682, 12, 1524, 6207, 3471, 12, 930, 682, 16, 9506, 202, 45, 22542, 3876, 18, 50, 12992, 67, 10398, 262, 11272, 202, 97, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 225, 202, 482, 987, 31564, 751, 2785, 12, 262, 202, 95, 202, 202, 45, 22542, 3876, 15135, 742, 1306, 273, 1605, 9506, 202, 18, 588, 22542, 3819, 12, 5924, 18, 4883, 67, 4043, 67, 1985, 67, 6616, 11272, 202, 202, 682, 930, 682, 273, 15135, 742, 1306, 9506, 202, 18, 588, 3471, 12, 467, 22542, 3876, 18, 50, 12992, 67, 10398, 11272, 202, 202, 2463, 2103, 3259, 682, 12, 1524, 6207, 3471, 12, 930, 682, 16, 9506, 202, 45, 22542, 3876, 18, 50, 12992, 67, 10398, 262, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super.rejectValue(errors,MAX_CONSTRAINT,args,MessageFormat.format( DEFAULT_INVALID_MAX_MESSAGE, args ));
super.rejectValue(errors,MAX_CONSTRAINT + INVALID_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_MAX_MESSAGE, args ));
protected void processValidate(Object propertyValue, Errors errors) { if(maxValue.compareTo((Comparable)propertyValue) > 0) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, maxValue }; super.rejectValue(errors,MAX_CONSTRAINT,args,MessageFormat.format( DEFAULT_INVALID_MAX_MESSAGE, args )); } }
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/27fec428b45b70114ce42879d6de1197d360f5e2/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 1207, 4270, 12, 921, 12337, 16, 9372, 1334, 13, 288, 1082, 202, 430, 12, 1896, 620, 18, 9877, 774, 12443, 799, 10207, 13, 4468, 620, 13, 405, 374, 13, 288, 9506, 202, 921, 8526, 833, 273, 394, 1033, 8526, 288, 4954, 13073, 16, 4954, 3494, 2093, 797, 16, 12337, 16, 18666, 225, 289, 31, 9506, 202, 9565, 18, 24163, 620, 12, 4324, 16, 6694, 67, 15199, 16, 1968, 16, 1079, 1630, 18, 2139, 12, 3331, 67, 9347, 67, 6694, 67, 8723, 16, 833, 262, 1769, 1082, 202, 97, 202, 202, 97, 1082, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 3196, 202, 1117, 918, 1207, 4270, 12, 921, 12337, 16, 9372, 1334, 13, 288, 1082, 202, 430, 12, 1896, 620, 18, 9877, 774, 12443, 799, 10207, 13, 4468, 620, 13, 405, 374, 13, 288, 9506, 202, 921, 8526, 833, 273, 394, 1033, 8526, 288, 4954, 13073, 16, 4954, 3494, 2093, 797, 16, 12337, 16, 18666, 225, 289, 31, 9506, 202, 9565, 18, 24163, 620, 12, 4324, 16, 6694, 67, 15199, 16, 1968, 16, 1079, 1630, 18, 2139, 12, 3331, 67, 9347, 67, 6694, 67, 8723, 16, 833, 262, 1769, 1082, 202, 97, 202, 202, 97, 1082, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int x = getSamplesTaken(); int y = getSampleSize(); return (x < y) ? x : y;
return (numSamples < sampleSize) ? numSamples : sampleSize;
public final int getNumSamples() { int x = getSamplesTaken(); int y = getSampleSize(); return (x < y) ? x : y; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/bd656bfa14c20140d9d9cb3a51d15996be6aed5c/VM_MethodListener.java/buggy/rvm/src/vm/adaptive/runtimeMeasurements/listeners/VM_MethodListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 509, 11187, 13239, 1435, 288, 565, 509, 619, 273, 1322, 2995, 27486, 5621, 565, 509, 677, 273, 26078, 1225, 5621, 565, 327, 261, 92, 411, 677, 13, 692, 619, 294, 677, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 509, 11187, 13239, 1435, 288, 565, 509, 619, 273, 1322, 2995, 27486, 5621, 565, 509, 677, 273, 26078, 1225, 5621, 565, 327, 261, 92, 411, 677, 13, 692, 619, 294, 677, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (addr.getHostAddress().equals("0.0.0.0") || addr.getHostAddress().startsWith("127.")) {
if (addr.getHostAddress().equals("0.0.0.0") || addr.getHostAddress().startsWith("127.")) {
private void updateInterface(Connection dbc, Date now, DbNodeEntry node, InetAddress target, InetAddress ifaddr, List protocols, IfSnmpCollector snmpc, boolean doesSnmp) throws SQLException { /* * Reparenting * * This sub-interface was not previously associated with this node. If * the sub-interface is already associated with another node we must do * one of the following: * * 1. If the target interface (the one being rescanned) appears to be an * interface alias all of the interfaces under the sub-interface's node * will be reparented under the nodeid of the target interface. * * 2. If however the interface is not an alias, only the sub-interface * will be reparented under the nodeid of the interface being rescanned. * * In the reparenting process, the database ipinterface, snmpinterface * and ifservices table entries associated with the reparented interface * will be "updated" to reflect the new nodeid. If the old node has * no remaining interfaces following the reparenting it will be marked * as deleted. */ /* * Special case: Need to skip interface reparenting for '0.0.0.0' * interfaces as well as loopback interfaces ('127.*.*.*'). */ Category log = ThreadCategory.getInstance(getClass()); if (log.isDebugEnabled()) { log.debug("updateInterface: updating interface " + ifaddr.getHostAddress() + "(targetIf=" + target.getHostAddress() + ")"); if (doesSnmp) { log.debug("updateInterface: the snmp collection passed in is collected via" + snmpc.getCollectorTargetAddress().getHostAddress()); } } boolean reparentFlag = false; boolean newIpIfEntry = false; int ifIndex = -1; DbIpInterfaceEntry dbIpIfEntry = DbIpInterfaceEntry.get(dbc, node.getNodeId(), ifaddr); if (doesSnmp && snmpc.hasIpAddrTable()) { // Attempt to load IP Interface entry from the database ifIndex = snmpc.getIfIndex(ifaddr); if (log.isDebugEnabled()) log.debug("updateInterface: interface = " + ifaddr.getHostAddress() + " ifIndex = " + ifIndex + ". Checking for this address on other nodes."); /* * the updating interface may have already existed in the * ipinterface table with different * nodeIds. If it exist in a different node, verify if all the * interfaces on that node * are contained in the snmpc of the updating interface. If they * are, reparent all * the interfaces on that node to the node of the updating * interface, otherwise, just add * the interface to the updating node. */ // Verify that SNMP collection contains ipAddrTable entries IpAddrTable ipAddrTable = null; ipAddrTable = snmpc.getIpAddrTable(); if (ipAddrTable == null) { log.error("updateInterface: null ipAddrTable in the snmp collection"); } else { if (ifaddr.getHostAddress().equals("0.0.0.0") || ifaddr.getHostAddress().startsWith("127.")) { if (log.isDebugEnabled()) { log.debug("updateInterface: Skipping address from snmpc ipAddrTable " + ifaddr.getHostAddress()); } } else { if (log.isDebugEnabled()) { log.debug("updateInterface: Checking address from snmpc ipAddrTable " + ifaddr.getHostAddress()); } PreparedStatement stmt = null; try { stmt = dbc.prepareStatement(SQL_DB_RETRIEVE_OTHER_NODES); stmt.setString(1, ifaddr.getHostAddress()); stmt.setInt(2, node.getNodeId()); ResultSet rs = stmt.executeQuery(); while (rs.next()) { int existingNodeId = rs.getInt(1); if (log.isDebugEnabled()) { log.debug("updateInterface: ckecking for " + ifaddr.getHostAddress() + " on existing nodeid " + existingNodeId); } DbNodeEntry suspectNodeEntry = DbNodeEntry.get(dbc, existingNodeId); if (suspectNodeEntry == null) { // This can happen if a node has been deleted. continue; } // Retrieve list of interfaces associated with the old // node DbIpInterfaceEntry[] tmpIfArray = suspectNodeEntry.getInterfaces(dbc); // Verify if the suspectNodeEntry is a duplicate node if (areDbInterfacesInSnmpCollection(tmpIfArray, snmpc)) { // Reparent each interface under the targets' nodeid for (int i = 0; i < tmpIfArray.length; i++) { InetAddress addr = tmpIfArray[i].getIfAddress(); int index = snmpc.getIfIndex(addr); // Skip non-IP or loopback interfaces if (addr.getHostAddress().equals("0.0.0.0") || addr.getHostAddress().startsWith("127.")) { continue; } if (log.isDebugEnabled()) log.debug("updateInterface: reparenting interface " + addr.getHostAddress() + " under node: " + node.getNodeId() + " from existing node: " + existingNodeId); reparentInterface(dbc, addr, index, node.getNodeId(), existingNodeId); // Create interfaceReparented event createInterfaceReparentedEvent(node, existingNodeId, addr); } if (log.isDebugEnabled()) log.debug("updateInterface: interface " + ifaddr.getHostAddress() + " is added to node: " + node.getNodeId() + " by reparenting from existing node: " + existingNodeId); dbIpIfEntry = DbIpInterfaceEntry.get(dbc, node.getNodeId(), ifaddr); reparentFlag = true; // delete duplicate node after reparenting. deleteDuplicateNode(dbc, suspectNodeEntry); createDuplicateNodeDeletedEvent(suspectNodeEntry); } } } catch (SQLException sqlE) { log.error("SQLException while updating interface: " + ifaddr.getHostAddress() + " on nodeid: " + node.getNodeId()); throw sqlE; } finally { try { stmt.close(); } catch (SQLException e) { } } } } } /* * if no reparenting occured on the updating interface, add it to the * updating node. */ if (dbIpIfEntry == null) { /* * Interface not found with this nodeId so create new interface * entry */ if (log.isDebugEnabled()) { log.debug("updateInterface: interface " + ifaddr + " ifIndex " + ifIndex + " not in database under nodeid " + node.getNodeId() + ", creating new interface object."); } if (ifIndex == -1 && !doesSnmp) { dbIpIfEntry = DbIpInterfaceEntry.create(node.getNodeId(), ifaddr); } else { dbIpIfEntry = DbIpInterfaceEntry.create(node.getNodeId(), ifaddr, ifIndex); // This wasn't getting done for some reason, so do it explicitly dbIpIfEntry.setIfIndex(ifIndex); } if (isDuplicateInterface(dbc, ifaddr, node.getNodeId())) { createDuplicateIpAddressEvent(dbIpIfEntry); } newIpIfEntry = true; } // update ipinterface for the updating interface updateInterfaceInfo(dbc, now, node, dbIpIfEntry, snmpc, newIpIfEntry, reparentFlag, doesSnmp); if (doesSnmp) { // update SNMP info if available updateSnmpInfo(dbc, node, dbIpIfEntry, snmpc); } // update IfServices for the updating interface updateServiceInfo(dbc, node, dbIpIfEntry, newIpIfEntry, protocols); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/8a6576d66e6ad3849723ebfbdc7af8419591da4a/RescanProcessor.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/capsd/RescanProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 1358, 12, 1952, 9881, 16, 2167, 2037, 16, 8408, 907, 1622, 756, 16, 14218, 1018, 16, 14218, 309, 4793, 16, 987, 16534, 16, 971, 10461, 1291, 7134, 15366, 71, 16, 1250, 1552, 10461, 1291, 13, 1216, 6483, 288, 3639, 1748, 540, 380, 868, 2938, 310, 540, 380, 540, 380, 1220, 720, 17, 5831, 1703, 486, 7243, 3627, 598, 333, 756, 18, 971, 540, 380, 326, 720, 17, 5831, 353, 1818, 3627, 598, 4042, 756, 732, 1297, 741, 540, 380, 1245, 434, 326, 3751, 30, 540, 380, 540, 380, 404, 18, 971, 326, 1018, 1560, 261, 5787, 1245, 3832, 400, 71, 10041, 13, 14606, 358, 506, 392, 540, 380, 1560, 2308, 777, 434, 326, 7349, 3613, 326, 720, 17, 5831, 1807, 756, 540, 380, 903, 506, 2071, 817, 329, 3613, 326, 756, 350, 434, 326, 1018, 1560, 18, 540, 380, 540, 380, 576, 18, 971, 14025, 326, 1560, 353, 486, 392, 2308, 16, 1338, 326, 720, 17, 5831, 540, 380, 903, 506, 2071, 817, 329, 3613, 326, 756, 350, 434, 326, 1560, 3832, 400, 71, 10041, 18, 540, 380, 540, 380, 657, 326, 2071, 817, 310, 1207, 16, 326, 2063, 2359, 5831, 16, 15366, 5831, 540, 380, 471, 309, 8387, 1014, 3222, 3627, 598, 326, 2071, 817, 329, 1560, 540, 380, 903, 506, 315, 7007, 6, 358, 3037, 326, 394, 756, 350, 18, 971, 326, 1592, 756, 711, 540, 380, 1158, 4463, 7349, 3751, 326, 2071, 817, 310, 518, 903, 506, 9350, 540, 380, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 1358, 12, 1952, 9881, 16, 2167, 2037, 16, 8408, 907, 1622, 756, 16, 14218, 1018, 16, 14218, 309, 4793, 16, 987, 16534, 16, 971, 10461, 1291, 7134, 15366, 71, 16, 1250, 1552, 10461, 1291, 13, 1216, 6483, 288, 3639, 1748, 540, 380, 868, 2938, 310, 540, 380, 540, 380, 1220, 720, 17, 5831, 1703, 486, 7243, 3627, 598, 333, 756, 18, 971, 540, 380, 326, 720, 17, 5831, 353, 1818, 3627, 598, 4042, 756, 732, 1297, 741, 540, 380, 1245, 434, 326, 3751, 30, 540, 380, 540, 380, 404, 18, 971, 326, 1018, 1560, 261, 5787, 1245, 3832, 400, 71, 10041, 13, 14606, 358, 506, 392, 540, 380, 1560, 2308, 777, 434, 326, 7349, 3613, 2 ]
new RuntimeException("fetching asm").printStackTrace();
public static AsmManager getDefault() { new RuntimeException("fetching asm").printStackTrace(); return INSTANCE; }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/9b03811333687b7a41baa1b9c9ff84344df86bbc/AsmManager.java/buggy/asm/src/org/aspectj/asm/AsmManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2970, 81, 1318, 4829, 1435, 288, 202, 202, 2704, 3235, 2932, 5754, 310, 20415, 20387, 1188, 6332, 5621, 202, 202, 2463, 6937, 31, 202, 97, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2970, 81, 1318, 4829, 1435, 288, 202, 202, 2704, 3235, 2932, 5754, 310, 20415, 20387, 1188, 6332, 5621, 202, 202, 2463, 6937, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void importData(MailItemDataSource dataSource)
public void importData(Account account, DataSource dataSource)
public void importData(MailItemDataSource dataSource) throws ServiceException { try { fetchMessages(dataSource); } catch (MessagingException e) { throw ServiceException.FAILURE("Importing data from " + dataSource, e); } catch (IOException e) { throw ServiceException.FAILURE("Importing data from " + dataSource, e); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/cb2c0e799ad0b10e040773b131854b8d996ebee2/Pop3Import.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/Pop3Import.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1930, 751, 12, 3032, 2236, 16, 12806, 10233, 13, 565, 1216, 16489, 288, 3639, 775, 288, 5411, 2158, 5058, 12, 892, 1830, 1769, 3639, 289, 1044, 261, 23389, 503, 425, 13, 288, 5411, 604, 16489, 18, 17623, 2932, 5010, 310, 501, 628, 315, 397, 10233, 16, 425, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 604, 16489, 18, 17623, 2932, 5010, 310, 501, 628, 315, 397, 10233, 16, 425, 1769, 3639, 289, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1930, 751, 12, 3032, 2236, 16, 12806, 10233, 13, 565, 1216, 16489, 288, 3639, 775, 288, 5411, 2158, 5058, 12, 892, 1830, 1769, 3639, 289, 1044, 261, 23389, 503, 425, 13, 288, 5411, 604, 16489, 18, 17623, 2932, 5010, 310, 501, 628, 315, 397, 10233, 16, 425, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 604, 16489, 18, 17623, 2932, 5010, 310, 501, 628, 315, 397, 10233, 16, 425, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} catch (CoreException e) {
} catch (CoreException exception) {
public IWorkingSetPage createWorkingSetPage() { Object page = null; if (pageClassName != null) { try { page = WorkbenchPlugin.createExtension(configElement, ATT_PAGE_CLASS); } catch (CoreException e) { WorkbenchPlugin.log("Unable to create working set page: " + //$NON-NLS-1$ pageClassName, e.getStatus()); } } return (IWorkingSetPage) page; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a85c93afc74c9ed8c41f23b6a42a56ca10fde88/WorkingSetDescriptor.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/registry/WorkingSetDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 14836, 694, 1964, 752, 14836, 694, 1964, 1435, 288, 202, 202, 921, 1363, 273, 446, 31, 202, 202, 430, 261, 2433, 3834, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 2433, 273, 4147, 22144, 3773, 18, 2640, 3625, 12, 1425, 1046, 16, 7907, 67, 11219, 67, 5237, 1769, 1082, 202, 97, 1044, 261, 25341, 425, 13, 288, 9506, 202, 2421, 22144, 3773, 18, 1330, 2932, 3370, 358, 752, 5960, 444, 1363, 30, 315, 397, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2433, 3834, 16, 425, 18, 588, 1482, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 261, 45, 14836, 694, 1964, 13, 1363, 31, 202, 97, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 14836, 694, 1964, 752, 14836, 694, 1964, 1435, 288, 202, 202, 921, 1363, 273, 446, 31, 202, 202, 430, 261, 2433, 3834, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 2433, 273, 4147, 22144, 3773, 18, 2640, 3625, 12, 1425, 1046, 16, 7907, 67, 11219, 67, 5237, 1769, 1082, 202, 97, 1044, 261, 25341, 425, 13, 288, 9506, 202, 2421, 22144, 3773, 18, 1330, 2932, 3370, 358, 752, 5960, 444, 1363, 30, 315, 397, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2433, 3834, 16, 425, 18, 588, 1482, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 261, 45, 14836, 694, 1964, 13, 1363, 31, 202, 97, 2, -100, -100, -100 ]
{ if (firstUnseen > 0) { responseSet.add("* OK [UNSEEN "+firstUnseen+"] Message "+firstUnseen+" is the first unseen"); } else { responseSet.add("* OK No messages unseen"); } }
{ if (firstUnseen > 0) { responseSet.add("* OK [UNSEEN "+firstUnseen+"] Message "+firstUnseen+" is the first unseen"); } else { responseSet.add("* OK No messages unseen"); } }
public void addFirstUnseen(int firstUnseen) { if (firstUnseen > 0) { responseSet.add("* OK [UNSEEN "+firstUnseen+"] Message "+firstUnseen+" is the first unseen"); } else { responseSet.add("* OK No messages unseen"); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/13904ab6daa0ed83ea319a401a618ed457000604/UnsolicitedResponseGenerator.java/buggy/sandbox/imap-integration/src/test/org/apache/james/imapserver/util/UnsolicitedResponseGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 3759, 984, 15156, 12, 474, 1122, 984, 15156, 13, 202, 95, 202, 202, 430, 261, 3645, 984, 15156, 405, 374, 13, 288, 1082, 202, 2740, 694, 18, 1289, 2932, 14, 7791, 306, 2124, 1090, 1157, 13773, 3645, 984, 15156, 9078, 65, 2350, 13773, 3645, 984, 15156, 9078, 353, 326, 1122, 640, 15156, 8863, 202, 202, 97, 469, 288, 1082, 202, 2740, 694, 18, 1289, 2932, 14, 7791, 2631, 2743, 640, 15156, 8863, 202, 202, 97, 202, 97, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 3759, 984, 15156, 12, 474, 1122, 984, 15156, 13, 202, 95, 202, 202, 430, 261, 3645, 984, 15156, 405, 374, 13, 288, 1082, 202, 2740, 694, 18, 1289, 2932, 14, 7791, 306, 2124, 1090, 1157, 13773, 3645, 984, 15156, 9078, 65, 2350, 13773, 3645, 984, 15156, 9078, 353, 326, 1122, 640, 15156, 8863, 202, 202, 97, 469, 288, 1082, 202, 2740, 694, 18, 1289, 2932, 14, 7791, 2631, 2743, 640, 15156, 8863, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
subMenu.add( resetAction );
subMenu.add( reset );
private void createStyleMenu( IMenuManager menuManager, String group_name ) { MenuManager menu = new MenuManager( STYLE_MENU_ITEM_TEXT ); MenuManager subMenu = new MenuManager( APPLY_STYLE_MENU_ITEM_TEXT ); SharedStyleHandle oldStyle = getStyleHandle( ); ApplyStyleAction resetAction = new ApplyStyleAction( null ); resetAction.setSelection( getSelection( ) ); if ( oldStyle == null ) { resetAction.setChecked( true ); } subMenu.add( resetAction ); subMenu.add( new Separator( ) ); Iterator iter = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getStyles( ) .iterator( ); while ( iter.hasNext( ) ) { SharedStyleHandle handle = (SharedStyleHandle) iter.next( ); ApplyStyleAction action = new ApplyStyleAction( handle ); action.setSelection( getSelection( ) ); if ( oldStyle == handle ) { action.setChecked( true ); } else { action.setChecked( false ); } subMenu.add( action ); } menu.add( subMenu ); menu.add( new Separator( ) ); menu.add( getAction( AddStyleRuleAction.ID ) ); appendMenuToGroup( menu, group_name, menuManager ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/25d8345240ca0a7d646058fa741ec1478be90f03/SchematicContextMenuProvider.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/providers/SchematicContextMenuProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 2885, 4599, 12, 467, 4599, 1318, 3824, 1318, 16, 514, 1041, 67, 529, 262, 202, 95, 202, 202, 4599, 1318, 3824, 273, 394, 9809, 1318, 12, 27449, 67, 29227, 67, 12674, 67, 5151, 11272, 202, 202, 4599, 1318, 720, 4599, 273, 394, 9809, 1318, 12, 14410, 23893, 67, 15066, 67, 29227, 67, 12674, 67, 5151, 11272, 202, 202, 7887, 2885, 3259, 1592, 2885, 273, 14210, 3259, 12, 11272, 202, 202, 7001, 2885, 1803, 2715, 1803, 273, 394, 5534, 2885, 1803, 12, 446, 11272, 202, 202, 6208, 1803, 18, 542, 6233, 12, 23204, 12, 262, 11272, 202, 202, 430, 261, 1592, 2885, 422, 446, 262, 202, 202, 95, 1082, 202, 6208, 1803, 18, 542, 11454, 12, 638, 11272, 202, 202, 97, 202, 202, 1717, 4599, 18, 1289, 12, 2715, 1803, 11272, 202, 202, 1717, 4599, 18, 1289, 12, 394, 27519, 12, 262, 11272, 202, 202, 3198, 1400, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 9506, 202, 18, 588, 4820, 15478, 3259, 12, 262, 9506, 202, 18, 588, 9725, 12, 262, 9506, 202, 18, 9838, 12, 11272, 202, 202, 17523, 261, 1400, 18, 5332, 2134, 12, 262, 262, 202, 202, 95, 1082, 202, 7887, 2885, 3259, 1640, 273, 261, 7887, 2885, 3259, 13, 1400, 18, 4285, 12, 11272, 1082, 202, 7001, 2885, 1803, 1301, 273, 394, 5534, 2885, 1803, 12, 1640, 11272, 1082, 202, 1128, 18, 542, 6233, 12, 23204, 12, 262, 11272, 1082, 202, 430, 261, 1592, 2885, 422, 1640, 262, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 2885, 4599, 12, 467, 4599, 1318, 3824, 1318, 16, 514, 1041, 67, 529, 262, 202, 95, 202, 202, 4599, 1318, 3824, 273, 394, 9809, 1318, 12, 27449, 67, 29227, 67, 12674, 67, 5151, 11272, 202, 202, 4599, 1318, 720, 4599, 273, 394, 9809, 1318, 12, 14410, 23893, 67, 15066, 67, 29227, 67, 12674, 67, 5151, 11272, 202, 202, 7887, 2885, 3259, 1592, 2885, 273, 14210, 3259, 12, 11272, 202, 202, 7001, 2885, 1803, 2715, 1803, 273, 394, 5534, 2885, 1803, 12, 446, 11272, 202, 202, 6208, 1803, 18, 542, 6233, 12, 23204, 12, 262, 11272, 202, 202, 430, 261, 1592, 2885, 422, 446, 262, 202, 202, 95, 1082, 202, 6208, 1803, 18, 542, 11454, 2 ]
( (DesignElementHandle) rule.getInsertPosition( ) ).addElement( label, Cell.CONTENT_SLOT );
rule.insert( label );
protected static DataItemHandle performInsertDataSetColumn( DataSetItemModel model, Object target, Object targetParent ) throws SemanticException { DataItemHandle dataHandle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getElementFactory( ) .newDataItem( null ); dataHandle.setValueExpr( DEUtil.getExpression( model ) ); ReportItemHandle container = (ReportItemHandle) targetParent; DataSetHandle dataSet = (DataSetHandle) model.getParent( ); if ( !DEUtil.getDataSetList( container ).contains( dataSet ) ) { if ( container.getDataSet( ) == null ) { container.setDataSet( dataSet ); } } InsertColumnInLayoutRule rule = new InsertColumnInLayoutRule( target ); if ( rule.canInsert( ) ) { LabelHandle label = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getElementFactory( ) .newLabel( null ); label.setText( model.getDisplayName( ) ); ( (DesignElementHandle) rule.getInsertPosition( ) ).addElement( label, Cell.CONTENT_SLOT ); } return dataHandle; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c90ffbaf07ebb75c8f23338a87c1c1d9278e9066/InsertInLayoutUtil.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dnd/InsertInLayoutUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 1910, 1180, 3259, 3073, 4600, 13676, 1494, 12, 1082, 202, 13676, 1180, 1488, 938, 16, 1033, 1018, 16, 1033, 1018, 3054, 262, 1082, 202, 15069, 24747, 503, 202, 95, 202, 202, 29903, 3259, 501, 3259, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 9506, 202, 18, 588, 4820, 15478, 3259, 12, 262, 9506, 202, 18, 21336, 1733, 12, 262, 9506, 202, 18, 2704, 29903, 12, 446, 11272, 202, 202, 892, 3259, 18, 542, 620, 4742, 12, 2030, 1304, 18, 588, 2300, 12, 938, 262, 11272, 202, 202, 4820, 1180, 3259, 1478, 273, 261, 4820, 1180, 3259, 13, 1018, 3054, 31, 202, 202, 13676, 3259, 14837, 273, 261, 13676, 3259, 13, 938, 18, 588, 3054, 12, 11272, 202, 202, 430, 261, 401, 1639, 1304, 18, 588, 13676, 682, 12, 1478, 262, 18, 12298, 12, 14837, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 1478, 18, 588, 13676, 12, 262, 422, 446, 262, 1082, 202, 95, 9506, 202, 3782, 18, 542, 13676, 12, 14837, 11272, 1082, 202, 97, 202, 202, 97, 202, 202, 4600, 1494, 382, 3744, 2175, 1720, 273, 394, 8040, 1494, 382, 3744, 2175, 12, 1018, 11272, 202, 202, 430, 261, 1720, 18, 4169, 4600, 12, 262, 262, 202, 202, 95, 1082, 202, 2224, 3259, 1433, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 6862, 202, 18, 588, 4820, 15478, 3259, 12, 262, 6862, 202, 18, 21336, 1733, 12, 262, 6862, 202, 18, 2704, 2224, 12, 446, 11272, 1082, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1910, 1180, 3259, 3073, 4600, 13676, 1494, 12, 1082, 202, 13676, 1180, 1488, 938, 16, 1033, 1018, 16, 1033, 1018, 3054, 262, 1082, 202, 15069, 24747, 503, 202, 95, 202, 202, 29903, 3259, 501, 3259, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 9506, 202, 18, 588, 4820, 15478, 3259, 12, 262, 9506, 202, 18, 21336, 1733, 12, 262, 9506, 202, 18, 2704, 29903, 12, 446, 11272, 202, 202, 892, 3259, 18, 542, 620, 4742, 12, 2030, 1304, 18, 588, 2300, 12, 938, 262, 11272, 202, 202, 4820, 1180, 3259, 1478, 273, 261, 4820, 1180, 3259, 13, 1018, 3054, 31, 202, 202, 13676, 3259, 14837, 273, 261, 13676, 3259, 13, 938, 18, 588, 3054, 2 ]
this.m_canConvertMeth = null;
private void resetToStream() { this.m_canConvertMeth = null; this.m_cdataStartCalled = false; /* The stream is being reset. It is one of * ToXMLStream, ToHTMLStream ... and this type can't be changed * so neither should m_charInfo which is associated with the * type of Stream. Just leave m_charInfo as-is for the next re-use. * */ // this.m_charInfo = null; // don't set to null this.m_charToByteConverter = null; this.m_disableOutputEscapingStates.clear(); this.m_escaping = true; // Leave m_format alone for now - Brian M. // this.m_format = null; this.m_inDoctype = false; this.m_ispreserve = false; this.m_ispreserve = false; this.m_isprevtext = false; this.m_isUTF8 = false; // ?? used anywhere ?? this.m_maxCharacter = Encodings.getLastPrintable(); this.m_preserves.clear(); this.m_shouldFlush = true; this.m_spaceBeforeClose = false; this.m_startNewLine = false; this.m_triedToGetConverter = false; this.m_lineSepUse = true; // DON'T SET THE WRITER TO NULL, IT MAY BE REUSED !! // this.m_writer = null; this.m_expandDTDEntities = true; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/487b3b254394e1bdcb1c753d7caa0066fecdd4a0/ToStream.java/buggy/src/org/apache/xml/serializer/ToStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2715, 774, 1228, 1435, 565, 288, 1171, 333, 18, 81, 67, 71, 892, 1685, 8185, 273, 629, 31, 540, 1748, 1021, 1407, 353, 3832, 2715, 18, 2597, 353, 1245, 434, 1850, 380, 2974, 4201, 1228, 16, 2974, 4870, 1228, 1372, 471, 333, 618, 848, 1404, 506, 3550, 1850, 380, 1427, 15826, 1410, 312, 67, 3001, 966, 1492, 353, 3627, 598, 326, 1850, 380, 618, 434, 3961, 18, 12526, 8851, 312, 67, 3001, 966, 487, 17, 291, 364, 326, 1024, 283, 17, 1202, 18, 1850, 380, 6647, 1195, 540, 368, 333, 18, 81, 67, 3001, 966, 273, 446, 31, 368, 2727, 1404, 444, 358, 446, 1850, 333, 18, 81, 67, 3001, 774, 3216, 5072, 273, 446, 31, 540, 333, 18, 81, 67, 8394, 1447, 6412, 24447, 7629, 18, 8507, 5621, 5375, 333, 18, 81, 67, 742, 24447, 273, 638, 31, 540, 368, 21131, 312, 67, 2139, 24068, 364, 2037, 300, 605, 566, 304, 490, 18, 540, 368, 333, 18, 81, 67, 2139, 273, 446, 31, 540, 333, 18, 81, 67, 267, 3244, 12387, 273, 629, 31, 540, 333, 18, 81, 67, 291, 27297, 273, 629, 31, 540, 333, 18, 81, 67, 291, 27297, 273, 629, 31, 540, 333, 18, 81, 67, 291, 10001, 955, 273, 629, 31, 540, 333, 18, 81, 67, 291, 5159, 28, 273, 629, 31, 368, 225, 5317, 1399, 25651, 5317, 540, 333, 18, 81, 67, 1896, 7069, 273, 1374, 1559, 899, 18, 588, 3024, 5108, 429, 5621, 540, 333, 18, 81, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2715, 774, 1228, 1435, 565, 288, 1171, 333, 18, 81, 67, 71, 892, 1685, 8185, 273, 629, 31, 540, 1748, 1021, 1407, 353, 3832, 2715, 18, 2597, 353, 1245, 434, 1850, 380, 2974, 4201, 1228, 16, 2974, 4870, 1228, 1372, 471, 333, 618, 848, 1404, 506, 3550, 1850, 380, 1427, 15826, 1410, 312, 67, 3001, 966, 1492, 353, 3627, 598, 326, 1850, 380, 618, 434, 3961, 18, 12526, 8851, 312, 67, 3001, 966, 487, 17, 291, 364, 326, 1024, 283, 17, 1202, 18, 1850, 380, 6647, 1195, 540, 368, 333, 18, 81, 67, 3001, 966, 273, 446, 31, 368, 2727, 1404, 444, 358, 446, 1850, 333, 18, 81, 67, 3001, 774, 3216, 5072, 273, 446, 31, 2 ]
final URL targetURL, final String targetFrame) { this(source, type, targetURL, null, null, targetFrame);
final URL targetURL, final Element sourceElement, final String targetFrame) { this(source, type, targetURL, null, sourceElement, targetFrame);
public HTMLFrameHyperlinkEvent(final Object source, final EventType type, final URL targetURL, final String targetFrame) { this(source, type, targetURL, null, null, targetFrame); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9bad25bc3f8f9cc701dfb9555df351ae7577a2d8/HTMLFrameHyperlinkEvent.java/buggy/modules/swing/src/main/java/common/javax/swing/text/html/HTMLFrameHyperlinkEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3982, 3219, 15996, 1232, 1133, 12, 6385, 1033, 1084, 16, 727, 15879, 618, 16, 4766, 282, 727, 1976, 1018, 1785, 16, 727, 514, 1018, 3219, 13, 288, 3639, 333, 12, 3168, 16, 618, 16, 1018, 1785, 16, 446, 16, 446, 16, 1018, 3219, 1769, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 3982, 3219, 15996, 1232, 1133, 12, 6385, 1033, 1084, 16, 727, 15879, 618, 16, 4766, 282, 727, 1976, 1018, 1785, 16, 727, 514, 1018, 3219, 13, 288, 3639, 333, 12, 3168, 16, 618, 16, 1018, 1785, 16, 446, 16, 446, 16, 1018, 3219, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (Iterator i = getPObjectList().iterator(); i.hasNext();)
for ( PObject pObj : getPObjectList() )
private ArrayList getSelectedArmorProfList() { final ArrayList aList = new ArrayList(); // Try all possible PObjects for (Iterator i = getPObjectList().iterator(); i.hasNext();) { final PObject aPObj = (PObject) i.next(); if (aPObj == null) { continue; } List l = aPObj.getListFor(ListKey.SELECTED_ARMOR_PROF); if (l != null) { aList.addAll(l); } } return aList; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2407, 16625, 25583, 280, 27012, 682, 1435, 202, 95, 202, 202, 6385, 2407, 279, 682, 273, 394, 2407, 5621, 202, 202, 759, 6161, 777, 3323, 453, 4710, 202, 202, 1884, 261, 3198, 277, 273, 1689, 25979, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 202, 202, 95, 1082, 202, 6385, 453, 921, 279, 2419, 441, 273, 261, 52, 921, 13, 277, 18, 4285, 5621, 1082, 202, 430, 261, 69, 2419, 441, 422, 446, 13, 1082, 202, 95, 9506, 202, 17143, 31, 1082, 202, 97, 1082, 202, 682, 328, 273, 279, 2419, 441, 18, 588, 682, 1290, 12, 682, 653, 18, 4803, 2056, 67, 26120, 916, 67, 3373, 42, 1769, 1082, 202, 430, 261, 80, 480, 446, 13, 1082, 202, 95, 9506, 202, 69, 682, 18, 1289, 1595, 12, 80, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 279, 682, 31, 202, 97, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 2407, 16625, 25583, 280, 27012, 682, 1435, 202, 95, 202, 202, 6385, 2407, 279, 682, 273, 394, 2407, 5621, 202, 202, 759, 6161, 777, 3323, 453, 4710, 202, 202, 1884, 261, 3198, 277, 273, 1689, 25979, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 202, 202, 95, 1082, 202, 6385, 453, 921, 279, 2419, 441, 273, 261, 52, 921, 13, 277, 18, 4285, 5621, 1082, 202, 430, 261, 69, 2419, 441, 422, 446, 13, 1082, 202, 95, 9506, 202, 17143, 31, 1082, 202, 97, 1082, 202, 682, 328, 273, 279, 2419, 441, 18, 588, 682, 1290, 12, 682, 653, 18, 4803, 2056, 67, 26120, 916, 67, 3373, 42, 1769, 1082, 202, 430, 261, 80, 480, 2 ]
handleImage( imageItem, imageContent );
public void execute( ReportItemDesign item, IContentEmitter emitter ) { assert item instanceof ImageItemDesign; ImageItemDesign imageItem = (ImageItemDesign) item; IImageContent imageContent = report.createImageContent( ); IContent parent = context.getContent( ); context.pushContent( imageContent ); openResultSet( item ); accessQuery( item, emitter ); initializeContent( parent, item, imageContent ); // handle the Action and Bookmark values processAction( item, imageContent ); processBookmark( item, imageContent ); processStyle( item, imageContent ); processVisibility( item, imageContent ); handleImage( imageItem, imageContent ); // execute the onCreate if ( context.isInFactory( ) ) { ImageScriptExecutor.handleOnCreate( (ImageContent) imageContent, context ); } startTOCEntry( imageContent ); // forward to emitter for further processing if ( emitter != null ) { emitter.startImage( imageContent ); } finishTOCEntry( ); closeResultSet( ); context.popContent( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/40fb875c30ce5bec5f9f2f688c4b2f5eaa154bce/ImageItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ImageItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 1350, 13476, 11520, 262, 202, 95, 202, 202, 11231, 761, 1276, 3421, 1180, 15478, 31, 202, 202, 2040, 1180, 15478, 1316, 1180, 273, 261, 2040, 1180, 15478, 13, 761, 31, 202, 202, 45, 2040, 1350, 1316, 1350, 273, 2605, 18, 2640, 2040, 1350, 12, 11272, 202, 202, 45, 1350, 982, 273, 819, 18, 588, 1350, 12, 11272, 202, 202, 2472, 18, 6206, 1350, 12, 1316, 1350, 11272, 202, 202, 3190, 13198, 12, 761, 11272, 202, 202, 3860, 1138, 12, 761, 16, 11520, 11272, 202, 202, 11160, 1350, 12, 982, 16, 761, 16, 1316, 1350, 11272, 202, 202, 759, 1640, 326, 4382, 471, 20258, 3355, 924, 202, 202, 2567, 1803, 12, 761, 16, 1316, 1350, 11272, 202, 202, 2567, 22966, 12, 761, 16, 1316, 1350, 11272, 202, 202, 2567, 2885, 12, 761, 16, 1316, 1350, 11272, 202, 202, 2567, 10135, 12, 761, 16, 1316, 1350, 11272, 202, 202, 4110, 2040, 12, 1316, 1180, 16, 1316, 1350, 11272, 202, 202, 759, 1836, 326, 603, 1684, 202, 202, 430, 261, 819, 18, 291, 382, 1733, 12, 262, 262, 202, 202, 95, 1082, 202, 2040, 3651, 6325, 18, 4110, 1398, 1684, 12, 261, 2040, 1350, 13, 1316, 1350, 16, 6862, 202, 2472, 11272, 202, 202, 97, 202, 202, 1937, 4296, 39, 1622, 12, 1316, 1350, 11272, 202, 202, 759, 5104, 358, 11520, 364, 9271, 4929, 202, 202, 430, 261, 11520, 480, 446, 262, 202, 202, 95, 1082, 202, 27529, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 1350, 13476, 11520, 262, 202, 95, 202, 202, 11231, 761, 1276, 3421, 1180, 15478, 31, 202, 202, 2040, 1180, 15478, 1316, 1180, 273, 261, 2040, 1180, 15478, 13, 761, 31, 202, 202, 45, 2040, 1350, 1316, 1350, 273, 2605, 18, 2640, 2040, 1350, 12, 11272, 202, 202, 45, 1350, 982, 273, 819, 18, 588, 1350, 12, 11272, 202, 202, 2472, 18, 6206, 1350, 12, 1316, 1350, 11272, 202, 202, 3190, 13198, 12, 761, 11272, 202, 202, 3860, 1138, 12, 761, 16, 11520, 11272, 202, 202, 11160, 1350, 12, 982, 16, 761, 16, 1316, 1350, 11272, 202, 202, 759, 1640, 326, 4382, 471, 20258, 3355, 924, 202, 202, 2 ]
if(_exclude != null) { for(int i = 0; i < _exclude.length && accept; i++) {
if (_exclude != null) { for (int i = 0; i < _exclude.length && accept; i++) {
private void update() { if(_children == null) { _children = new ArrayList(); } else { _children.clear(); } if(_collection != null) { Iterator iter = _collection.iterator(); while(iter.hasNext()) { Object candidate = iter.next(); if(_include.isInstance(candidate)) { boolean accept = true; if(_exclude != null) { for(int i = 0; i < _exclude.length && accept; i++) { accept = !_exclude[i].isInstance(candidate); } } if(accept) { _children.add( new UMLModelElementTreeNode(this,_container, (MModelElement) candidate)); } } } } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLMetaclassInstanceTreeNode.java/buggy/src_new/org/argouml/uml/ui/UMLMetaclassInstanceTreeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 1435, 288, 3639, 309, 24899, 5906, 422, 446, 13, 288, 5411, 389, 5906, 273, 394, 2407, 5621, 3639, 289, 3639, 469, 288, 5411, 389, 5906, 18, 8507, 5621, 3639, 289, 3639, 309, 24899, 5548, 480, 446, 13, 288, 5411, 4498, 1400, 273, 389, 5548, 18, 9838, 5621, 5411, 1323, 12, 2165, 18, 5332, 2134, 10756, 288, 7734, 1033, 5500, 273, 1400, 18, 4285, 5621, 7734, 309, 24899, 6702, 18, 291, 1442, 12, 19188, 3719, 288, 10792, 1250, 2791, 273, 638, 31, 10792, 309, 24899, 10157, 480, 446, 13, 288, 13491, 364, 12, 474, 277, 273, 374, 31, 277, 411, 389, 10157, 18, 2469, 597, 2791, 31, 277, 27245, 288, 18701, 2791, 273, 401, 67, 10157, 63, 77, 8009, 291, 1442, 12, 19188, 1769, 13491, 289, 10792, 289, 10792, 309, 12, 9436, 13, 288, 13491, 389, 5906, 18, 1289, 12, 18701, 394, 587, 1495, 1488, 1046, 12513, 12, 2211, 16, 67, 3782, 16, 27573, 261, 49, 1488, 1046, 13, 5500, 10019, 10792, 289, 7734, 289, 5411, 289, 3639, 289, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 3238, 918, 1089, 1435, 288, 3639, 309, 24899, 5906, 422, 446, 13, 288, 5411, 389, 5906, 273, 394, 2407, 5621, 3639, 289, 3639, 469, 288, 5411, 389, 5906, 18, 8507, 5621, 3639, 289, 3639, 309, 24899, 5548, 480, 446, 13, 288, 5411, 4498, 1400, 273, 389, 5548, 18, 9838, 5621, 5411, 1323, 12, 2165, 18, 5332, 2134, 10756, 288, 7734, 1033, 5500, 273, 1400, 18, 4285, 5621, 7734, 309, 24899, 6702, 18, 291, 1442, 12, 19188, 3719, 288, 10792, 1250, 2791, 273, 638, 31, 10792, 309, 24899, 10157, 480, 446, 13, 288, 13491, 364, 12, 474, 277, 273, 374, 31, 277, 411, 389, 10157, 18, 2469, 597, 2791, 31, 277, 27245, 288, 18701, 2791, 273, 401, 67, 10157, 2 ]
getDistinctColorProperty( handle, parentHandle, Style.BORDER_LEFT_COLOR_PROP ) );
getDistinctColorProperty( handle, parentHandle, Style.BORDER_LEFT_COLOR_PROP, flag ) );
protected void setupDistinctStyleProperties( StyleDesign style, DesignElementHandle handle, DesignElementHandle parentHandle ) { // Background setStyleProperty( style, Style.BACKGROUND_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BACKGROUND_COLOR_PROP ) ); setStyleProperty( style, Style.BACKGROUND_IMAGE_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_IMAGE_PROP ) ); setStyleProperty( style, Style.BACKGROUND_POSITION_X_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_POSITION_X_PROP ) ); setStyleProperty( style, Style.BACKGROUND_POSITION_Y_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_POSITION_Y_PROP ) ); setStyleProperty( style, Style.BACKGROUND_REPEAT_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_REPEAT_PROP ) ); // Text related setStyleProperty( style, Style.TEXT_ALIGN_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_ALIGN_PROP ) ); setStyleProperty( style, Style.TEXT_INDENT_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_INDENT_PROP ) ); setStyleProperty( style, Style.LETTER_SPACING_PROP, getDistinctProperty( handle, parentHandle, Style.LETTER_SPACING_PROP ) ); setStyleProperty( style, Style.LINE_HEIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.LINE_HEIGHT_PROP ) ); setStyleProperty( style, Style.ORPHANS_PROP, getDistinctProperty( handle, parentHandle, Style.ORPHANS_PROP ) ); setStyleProperty( style, Style.TEXT_TRANSFORM_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_TRANSFORM_PROP ) ); setStyleProperty( style, Style.VERTICAL_ALIGN_PROP, getDistinctProperty( handle, parentHandle, Style.VERTICAL_ALIGN_PROP ) ); setStyleProperty( style, Style.WHITE_SPACE_PROP, getDistinctProperty( handle, parentHandle, Style.WHITE_SPACE_PROP ) ); setStyleProperty( style, Style.WIDOWS_PROP, getDistinctProperty( handle, parentHandle, Style.WIDOWS_PROP ) ); setStyleProperty( style, Style.WORD_SPACING_PROP, getDistinctProperty( handle, parentHandle, Style.WORD_SPACING_PROP ) ); // Section properties setStyleProperty( style, Style.DISPLAY_PROP, getDistinctProperty( handle, parentHandle, Style.DISPLAY_PROP ) ); setStyleProperty( style, Style.MASTER_PAGE_PROP, getDistinctProperty( handle, parentHandle, Style.MASTER_PAGE_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_AFTER_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_AFTER_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_BEFORE_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_BEFORE_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_INSIDE_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_INSIDE_PROP ) ); /* * setStyleProperty( style, Style.SHOW_IF_BLANK_PROP, * getDistinctProperty( handle, parentHandle, Style.SHOW_IF_BLANK_PROP ) ); * setStyleProperty( style, Style.CAN_SHRINK_PROP, * getDistinctProperty( handle, parentHandle, Style.CAN_SHRINK_PROP ) ); */ // Font related setStyleProperty( style, Style.FONT_FAMILY_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_FAMILY_PROP ) ); setStyleProperty( style, Style.COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.COLOR_PROP ) ); setStyleProperty( style, Style.FONT_SIZE_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_SIZE_PROP ) ); setStyleProperty( style, Style.FONT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_STYLE_PROP ) ); setStyleProperty( style, Style.FONT_WEIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_WEIGHT_PROP ) ); setStyleProperty( style, Style.FONT_VARIANT_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_VARIANT_PROP ) ); // Text decoration setStyleProperty( style, Style.TEXT_LINE_THROUGH_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_LINE_THROUGH_PROP ) ); setStyleProperty( style, Style.TEXT_OVERLINE_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_OVERLINE_PROP ) ); setStyleProperty( style, Style.TEXT_UNDERLINE_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_UNDERLINE_PROP ) ); // Border setStyleProperty( style, Style.BORDER_BOTTOM_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_BOTTOM_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_BOTTOM_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_BOTTOM_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_BOTTOM_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_BOTTOM_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_LEFT_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_LEFT_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_LEFT_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_RIGHT_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_RIGHT_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_RIGHT_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_TOP_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_TOP_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_TOP_WIDTH_PROP ) ); // Margin setStyleProperty( style, Style.MARGIN_TOP_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_TOP_PROP ) ); setStyleProperty( style, Style.MARGIN_LEFT_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_LEFT_PROP ) ); setStyleProperty( style, Style.MARGIN_BOTTOM_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_BOTTOM_PROP ) ); setStyleProperty( style, Style.MARGIN_RIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_RIGHT_PROP ) ); // Padding setStyleProperty( style, Style.PADDING_TOP_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_TOP_PROP ) ); setStyleProperty( style, Style.PADDING_LEFT_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_LEFT_PROP ) ); setStyleProperty( style, Style.PADDING_BOTTOM_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_BOTTOM_PROP ) ); setStyleProperty( style, Style.PADDING_RIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_RIGHT_PROP ) ); // Data Formatting setStyleProperty( style, Style.NUMBER_ALIGN_PROP, handle.getProperty( Style.NUMBER_ALIGN_PROP ) ); Object value = handle.getProperty( Style.DATE_TIME_FORMAT_PROP ); if ( value != null && value instanceof DateTimeFormatValue ) { setStyleProperty( style, Style.DATE_TIME_FORMAT_PROP, ( (DateTimeFormatValue) value ).getPattern( ) ); } value = handle.getProperty( Style.NUMBER_FORMAT_PROP ); if ( value != null && value instanceof NumberFormatValue ) { setStyleProperty( style, Style.NUMBER_FORMAT_PROP, ( (NumberFormatValue) value ).getPattern( ) ); } value = handle.getProperty( Style.STRING_FORMAT_PROP ); if ( value != null && value instanceof StringFormatValue ) { setStyleProperty( style, Style.STRING_FORMAT_PROP, ( (StringFormatValue) value ).getPattern( ) ); } //Others setStyleProperty( style, Style.CAN_SHRINK_PROP, handle.getProperty( Style.CAN_SHRINK_PROP ) ); setStyleProperty( style, Style.SHOW_IF_BLANK_PROP, handle.getProperty( Style.SHOW_IF_BLANK_PROP ) ); setStyleProperty( style, Style.MASTER_PAGE_PROP, handle.getProperty( Style.MASTER_PAGE_PROP ) ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/26e720886eb20318d2dd7875ea22a8e430dd3bf6/EngineIRVisitor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3875, 23402, 2885, 2297, 12, 9767, 15478, 2154, 16, 1082, 202, 15478, 1046, 3259, 1640, 16, 29703, 1046, 3259, 982, 3259, 262, 202, 95, 202, 202, 759, 8977, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 10989, 67, 15811, 16, 9506, 202, 588, 23402, 2957, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 10989, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 13603, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 13603, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 15258, 67, 60, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 15258, 67, 60, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 15258, 67, 61, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 15258, 67, 61, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 862, 31804, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 862, 31804, 67, 15811, 262, 11272, 202, 202, 759, 3867, 3746, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 23402, 2885, 2297, 12, 9767, 15478, 2154, 16, 1082, 202, 15478, 1046, 3259, 1640, 16, 29703, 1046, 3259, 982, 3259, 262, 202, 95, 202, 202, 759, 8977, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 10989, 67, 15811, 16, 9506, 202, 588, 23402, 2957, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 10989, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 13603, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 13603, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 2 ]
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); }
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); }
public RubyObject m_private(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); } return this; }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 1152, 12, 54, 10340, 921, 8526, 833, 13, 288, 202, 202, 430, 261, 588, 54, 10340, 7675, 588, 4368, 2355, 1435, 1545, 1059, 597, 401, 291, 29048, 10756, 288, 1082, 202, 12849, 394, 19817, 24918, 12, 9506, 202, 588, 54, 10340, 9334, 9506, 202, 6, 382, 8869, 30, 848, 1404, 2549, 707, 9478, 8863, 202, 202, 97, 202, 202, 430, 261, 1968, 18, 2469, 422, 374, 13, 288, 1082, 202, 588, 54, 10340, 7675, 542, 2459, 1305, 3876, 12, 2918, 18, 19444, 67, 20055, 1769, 202, 202, 97, 469, 288, 1082, 202, 542, 1305, 10135, 12, 1968, 16, 5245, 18, 3417, 2294, 67, 20055, 1769, 202, 202, 97, 202, 202, 2463, 333, 31, 202, 97, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 1152, 12, 54, 10340, 921, 8526, 833, 13, 288, 202, 202, 430, 261, 588, 54, 10340, 7675, 588, 4368, 2355, 1435, 1545, 1059, 597, 401, 291, 29048, 10756, 288, 1082, 202, 12849, 394, 19817, 24918, 12, 9506, 202, 588, 54, 10340, 9334, 9506, 202, 6, 382, 8869, 30, 848, 1404, 2549, 707, 9478, 8863, 202, 202, 97, 202, 202, 430, 261, 1968, 18, 2469, 422, 374, 13, 288, 1082, 202, 588, 54, 10340, 7675, 542, 2459, 1305, 3876, 12, 2918, 18, 19444, 67, 20055, 1769, 202, 202, 97, 469, 288, 1082, 202, 542, 1305, 10135, 12, 1968, 16, 5245, 18, 3417, 2294, 67, 20055, 1769, 202, 202, 97, 202, 202, 2463, 333, 2 ]
public abstract void sync() throws IOException;
public abstract void sync() throws IOException, BadDescriptorException;
public abstract void sync() throws IOException;
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/54e6b8da799629e0b7db879c45149399878f5f84/IOHandler.java/buggy/src/org/jruby/util/IOHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 3792, 1435, 1216, 1860, 16, 6107, 3187, 503, 31, 225, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 8770, 918, 3792, 1435, 1216, 1860, 16, 6107, 3187, 503, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (myModulePath != null) directoryName = myModulePath + "/" + directoryName;
if (directoryName.equals(myModuleName)) { directoryName = myModulePath; }
public void messageSent(String message) { if (directoryMessage(message)) { String directoryName = directoryNameFromMessage(message); if (myModulePath != null) directoryName = myModulePath + "/" + new File(directoryName).getName(); myDirectoryContent.addSubDirectory(directoryName); } else if (fileMessage(message)) { String fileName = fileNameFromMessage(message); int slashPos = fileName.indexOf('/'); if (slashPos > 0) { String directoryName = fileName.substring(0, slashPos); if (myModulePath != null) directoryName = myModulePath + "/" + directoryName; myDirectoryContent.addSubDirectory(directoryName); } else { if (myModulePath != null) fileName = myModulePath + "/" + new File(fileName).getName(); myDirectoryContent.addFile(fileName); } } else if (moduleMessage_ver1(message)) { String moduleName = moduleNameFromMessage_ver1(message); myDirectoryContent.addModule(moduleName); } else if (moduleMessage_ver2(message)) { String moduleName = moduleNameFromMessage_ver2(message); myDirectoryContent.addModule(moduleName); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/cbf48cb76ac9a3fe00f0585f50353acd1065b827/DirectoryContentListener.java/clean/plugins/cvs2/source/com/intellij/cvsSupport2/cvsoperations/cvsContent/DirectoryContentListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 883, 7828, 12, 780, 883, 13, 288, 565, 309, 261, 5149, 1079, 12, 2150, 3719, 288, 1377, 514, 1867, 461, 273, 1867, 461, 1265, 1079, 12, 2150, 1769, 1377, 309, 261, 4811, 3120, 743, 480, 446, 13, 1867, 461, 273, 3399, 3120, 743, 397, 4016, 397, 394, 1387, 12, 5149, 461, 2934, 17994, 5621, 1377, 3399, 2853, 1350, 18, 1289, 1676, 2853, 12, 5149, 461, 1769, 565, 289, 565, 469, 309, 261, 768, 1079, 12, 2150, 3719, 288, 1377, 514, 3968, 273, 3968, 1265, 1079, 12, 2150, 1769, 1377, 509, 9026, 1616, 273, 3968, 18, 31806, 2668, 2473, 1769, 1377, 309, 261, 12877, 1616, 405, 374, 13, 288, 3639, 514, 1867, 461, 273, 3968, 18, 28023, 12, 20, 16, 9026, 1616, 1769, 3639, 309, 261, 5149, 461, 18, 14963, 12, 4811, 22542, 3719, 288, 1867, 461, 273, 3399, 3120, 743, 31, 289, 3639, 3399, 2853, 1350, 18, 1289, 1676, 2853, 12, 5149, 461, 1769, 1377, 289, 1377, 469, 288, 3639, 309, 261, 4811, 3120, 743, 480, 446, 13, 3968, 273, 3399, 3120, 743, 397, 4016, 397, 394, 1387, 12, 17812, 2934, 17994, 5621, 3639, 3399, 2853, 1350, 18, 1289, 812, 12, 17812, 1769, 1377, 289, 565, 289, 565, 469, 309, 261, 2978, 1079, 67, 502, 21, 12, 2150, 3719, 288, 1377, 514, 9780, 273, 9780, 1265, 1079, 67, 502, 21, 12, 2150, 1769, 1377, 3399, 2853, 1350, 18, 1289, 3120, 12, 2978, 461, 1769, 565, 289, 565, 469, 309, 261, 2978, 1079, 67, 502, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 883, 7828, 12, 780, 883, 13, 288, 565, 309, 261, 5149, 1079, 12, 2150, 3719, 288, 1377, 514, 1867, 461, 273, 1867, 461, 1265, 1079, 12, 2150, 1769, 1377, 309, 261, 4811, 3120, 743, 480, 446, 13, 1867, 461, 273, 3399, 3120, 743, 397, 4016, 397, 394, 1387, 12, 5149, 461, 2934, 17994, 5621, 1377, 3399, 2853, 1350, 18, 1289, 1676, 2853, 12, 5149, 461, 1769, 565, 289, 565, 469, 309, 261, 768, 1079, 12, 2150, 3719, 288, 1377, 514, 3968, 273, 3968, 1265, 1079, 12, 2150, 1769, 1377, 509, 9026, 1616, 273, 3968, 18, 31806, 2668, 2473, 1769, 1377, 309, 261, 12877, 1616, 405, 374, 13, 288, 3639, 514, 1867, 461, 273, 3968, 18, 28023, 2 ]
return new ArrayList<AbstractTreeNode>(myFileNode);
return new ArrayList<AbstractTreeNode>(Collections.singleton(myFileNode));
public Collection<AbstractTreeNode> getChildren() { return new ArrayList<AbstractTreeNode>(myFileNode); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/c960e2c5d7f048a2889777d44d40aecf931eadc7/SingleFileToDoNode.java/clean/source/com/intellij/ide/todo/nodes/SingleFileToDoNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2200, 32, 7469, 12513, 34, 10268, 1435, 288, 565, 327, 394, 2407, 32, 7469, 12513, 34, 12, 15150, 18, 24487, 12, 4811, 812, 907, 10019, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2200, 32, 7469, 12513, 34, 10268, 1435, 288, 565, 327, 394, 2407, 32, 7469, 12513, 34, 12, 15150, 18, 24487, 12, 4811, 812, 907, 10019, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!mainNames.contains(main)) { panMain.add(main, this.scroller);
if (!mainNames.containsValue(main)) { panMain.add(main, scroller);
private Component initializePanel(int phase) { // Create the components for this phase. String name = String.valueOf(phase); Component component = null; String secondary = null; String main = null; switch (phase) { case IGame.PHASE_LOUNGE: component = new ChatLounge(this); chatlounge = (ChatLounge) component; main = "ChatLounge"; //$NON-NLS-1$ secondary = main; panMain.add(main, component); panSecondary.add(secondary, ((ChatLounge) component).getSecondaryDisplay()); break; case IGame.PHASE_STARTING_SCENARIO: component = new JLabel(Messages.getString("ClientGUI.StartingScenario")); //$NON-NLS-1$ main = "JLabel-StartingScenario"; //$NON-NLS-1$ secondary = main; panMain.add(main, component); panSecondary.add(secondary, new JLabel("")); //$NON-NLS-1$ break; case IGame.PHASE_EXCHANGE: component = new JLabel(Messages.getString("ClientGUI.TransmittingData")); //$NON-NLS-1$ main = "JLabel-Exchange"; //$NON-NLS-1$ secondary = main; panMain.add(main, component); panSecondary.add(secondary, new JLabel("")); //$NON-NLS-1$ break; case IGame.PHASE_SET_ARTYAUTOHITHEXES: component = new SelectArtyAutoHitHexDisplay(this); main = "BoardView"; //$NON-NLS-1$ secondary = "SelectArtyAutoHitHexDisplay"; //$NON-NLS-1$ if (!mainNames.contains(main)) { panMain.add(main, this.scroller); } panSecondary.add(secondary, component); break; case IGame.PHASE_DEPLOY_MINEFIELDS: component = new DeployMinefieldDisplay(this); main = "BoardView"; //$NON-NLS-1$ secondary = "DeployMinefieldDisplay"; //$NON-NLS-1$ if (!mainNames.contains(main)) { panMain.add(main, this.scroller); } panSecondary.add(secondary, component); break; case IGame.PHASE_DEPLOYMENT: component = new DeploymentDisplay(this); main = "BoardView"; //$NON-NLS-1$ secondary = "DeploymentDisplay"; //$NON-NLS-1$ if (!mainNames.contains(main)) { panMain.add(main, this.scroller); } panSecondary.add(secondary, component); break; case IGame.PHASE_TARGETING: component = new TargetingPhaseDisplay(this, false); ((TargetingPhaseDisplay) component).initializeListeners(); main = "BoardView"; //$NON-NLS-1$ secondary = "TargetingPhaseDisplay"; //$NON-NLS-1$ if (!mainNames.contains(main)) { panMain.add(main, this.scroller); } panSecondary.add(secondary, component); break; case IGame.PHASE_MOVEMENT: component = new MovementDisplay(this); main = "BoardView"; //$NON-NLS-1$ secondary = "MovementDisplay"; //$NON-NLS-1$ if (!mainNames.contains(main)) { panMain.add(main, this.scroller); } panSecondary.add(secondary, component); break; case IGame.PHASE_OFFBOARD: component = new TargetingPhaseDisplay(this, true); ((TargetingPhaseDisplay) component).initializeListeners(); main = "BoardView"; //$NON-NLS-1$ secondary = "OffboardDisplay"; //$NON-NLS-1$ if (!mainNames.contains(main)) { panMain.add(main, this.scroller); } panSecondary.add(secondary, component); break; case IGame.PHASE_FIRING: component = new FiringDisplay(this); main = "BoardView"; //$NON-NLS-1$ secondary = "FiringDisplay"; //$NON-NLS-1$ if (!mainNames.contains(main)) { panMain.add(main, this.scroller); } panSecondary.add(secondary, component); break; case IGame.PHASE_PHYSICAL: component = new PhysicalDisplay(this); main = "BoardView"; //$NON-NLS-1$ secondary = "PhysicalDisplay"; //$NON-NLS-1$ if (!mainNames.contains(main)) { panMain.add(main, this.scroller); } panSecondary.add(secondary, component); break; case IGame.PHASE_INITIATIVE_REPORT: component = new ReportDisplay(client); main = "ReportDisplay"; //$NON-NLS-1$ secondary = main; panMain.add(main, component); panSecondary.add(secondary, ((ReportDisplay) component).getSecondaryDisplay()); break; case IGame.PHASE_MOVEMENT_REPORT: case IGame.PHASE_OFFBOARD_REPORT: case IGame.PHASE_FIRING_REPORT: case IGame.PHASE_PHYSICAL_REPORT: case IGame.PHASE_END_REPORT: case IGame.PHASE_VICTORY: // Try to reuse the ReportDisplay for other phases... component = (Component) phaseComponents.get(String.valueOf(IGame.PHASE_INITIATIVE_REPORT)); if (null == component) { // no ReportDisplay to reuse -- get a new one component = initializePanel(IGame.PHASE_INITIATIVE_REPORT); } main = "ReportDisplay"; //$NON-NLS-1$ secondary = main; break; default : component = new JLabel(Messages.getString("ClientGUI.waitingOnTheServer")); //$NON-NLS-1$ main = "JLabel-Default"; //$NON-NLS-1$ secondary = main; panMain.add(main, component); panSecondary.add(secondary, new JLabel("")); //$NON-NLS-1$ } phaseComponents.put(name, component); mainNames.put(name, main); secondaryNames.put(name, secondary); return component; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3e2c07c4b3a334f50ff43404d895908863bcff1e/ClientGUI.java/clean/megamek/src/megamek/client/ui/swing/ClientGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5435, 4046, 5537, 12, 474, 6855, 13, 288, 3639, 368, 1788, 326, 4085, 364, 333, 6855, 18, 3639, 514, 508, 273, 514, 18, 1132, 951, 12, 13961, 1769, 3639, 5435, 1794, 273, 446, 31, 3639, 514, 9946, 273, 446, 31, 3639, 514, 2774, 273, 446, 31, 3639, 1620, 261, 13961, 13, 288, 5411, 648, 467, 12496, 18, 8939, 4429, 67, 1502, 2124, 7113, 30, 7734, 1794, 273, 394, 16903, 48, 465, 908, 12, 2211, 1769, 7734, 7916, 383, 25561, 273, 261, 14163, 48, 465, 908, 13, 1794, 31, 7734, 2774, 273, 315, 14163, 48, 465, 908, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 9946, 273, 2774, 31, 7734, 2800, 6376, 18, 1289, 12, 5254, 16, 1794, 1769, 7734, 2800, 14893, 18, 1289, 12, 19674, 16, 14015, 14163, 48, 465, 908, 13, 1794, 2934, 588, 14893, 4236, 10663, 7734, 898, 31, 5411, 648, 467, 12496, 18, 8939, 4429, 67, 7570, 1360, 67, 2312, 1157, 985, 4294, 30, 7734, 1794, 273, 394, 21403, 12, 5058, 18, 588, 780, 2932, 1227, 43, 5370, 18, 11715, 21390, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 2774, 273, 315, 46, 2224, 17, 11715, 21390, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 9946, 273, 2774, 31, 7734, 2800, 6376, 18, 1289, 12, 5254, 16, 1794, 1769, 7734, 2800, 14893, 18, 1289, 12, 19674, 16, 394, 21403, 2932, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 898, 31, 5411, 648, 467, 12496, 18, 8939, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5435, 4046, 5537, 12, 474, 6855, 13, 288, 3639, 368, 1788, 326, 4085, 364, 333, 6855, 18, 3639, 514, 508, 273, 514, 18, 1132, 951, 12, 13961, 1769, 3639, 5435, 1794, 273, 446, 31, 3639, 514, 9946, 273, 446, 31, 3639, 514, 2774, 273, 446, 31, 3639, 1620, 261, 13961, 13, 288, 5411, 648, 467, 12496, 18, 8939, 4429, 67, 1502, 2124, 7113, 30, 7734, 1794, 273, 394, 16903, 48, 465, 908, 12, 2211, 1769, 7734, 7916, 383, 25561, 273, 261, 14163, 48, 465, 908, 13, 1794, 31, 7734, 2774, 273, 315, 14163, 48, 465, 908, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 9946, 273, 2774, 31, 7734, 2800, 6376, 18, 1289, 12, 5254, 16, 2 ]
String webApplicationContext = context.getInitParameter("WebApplicationContext");
String webApplicationContext = context.getInitParameter(OpenCmsServlet.SERVLET_PARAM_WEB_APPLICATION_CONTEXT);
protected synchronized void initContext(ServletContext context) throws CmsInitException { // read the the OpenCms servlet mapping from the servlet context parameters String servletMapping = context.getInitParameter("OpenCmsServlet"); if (servletMapping == null) { throw new CmsInitException(Messages.get().container(Messages.ERR_CRITICAL_INIT_SERVLET_0)); } // check for OpenCms home (base) directory path String webInfPath = context.getInitParameter("OpenCmsHome"); if (CmsStringUtil.isEmpty(webInfPath)) { webInfPath = searchWebInfFolder(context.getRealPath("/")); if (CmsStringUtil.isEmpty(webInfPath)) { throw new CmsInitException(Messages.get().container(Messages.ERR_CRITICAL_INIT_FOLDER_0)); } } // read the the default context name from the servlet context parameters String defaultWebApplication = context.getInitParameter("DefaultWebApplication"); if (defaultWebApplication == null) { // not set in web.xml, so we use "ROOT" which should usually work since it is the (de-facto) standard defaultWebApplication = "ROOT"; } // read the the webapp context name from the servlet context parameters // this is needed in case an application server specific deployment descriptor is used to changed the webapp context String webApplicationContext = context.getInitParameter("WebApplicationContext"); // now initialize the system info with the path and mapping information getSystemInfo().init(webInfPath, servletMapping, webApplicationContext, defaultWebApplication); // Collect the configurations ExtendedProperties configuration = null; try { configuration = CmsPropertyUtils.loadProperties(getSystemInfo().getConfigurationFileRfsPath()); } catch (Exception e) { throw new CmsInitException(Messages.get().container( Messages.ERR_CRITICAL_INIT_PROPFILE_1, getSystemInfo().getConfigurationFileRfsPath()), e); } // check if the wizard is enabled, if so stop initialization if (configuration.getBoolean("wizard.enabled", true)) { throw new CmsInitException(Messages.get().container(Messages.ERR_CRITICAL_INIT_WIZARD_0)); } // output startup message and copyright to STDERR System.err.println(Messages.get().key( Messages.LOG_STARTUP_CONSOLE_NOTE_2, OpenCms.getSystemInfo().getVersionName(), getSystemInfo().getWebApplicationName())); for (int i = 0; i < Messages.COPYRIGHT_BY_ALKACON.length; i++) { System.err.println(Messages.COPYRIGHT_BY_ALKACON[i]); } System.err.println(); // output startup message to logfile if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().key(Messages.INIT_DOT_0)); CmsLog.INIT.info(Messages.get().key(Messages.INIT_DOT_0)); CmsLog.INIT.info(Messages.get().key(Messages.INIT_DOT_0)); CmsLog.INIT.info(Messages.get().key(Messages.INIT_DOT_0)); for (int i = 0; i < Messages.COPYRIGHT_BY_ALKACON.length; i++) { CmsLog.INIT.info(". " + Messages.COPYRIGHT_BY_ALKACON[i]); } CmsLog.INIT.info(Messages.get().key(Messages.INIT_LINE_0)); CmsLog.INIT.info(Messages.get().key(Messages.INIT_STARTUP_TIME_1, new Date(System.currentTimeMillis()))); CmsLog.INIT.info(Messages.get().key(Messages.INIT_OPENCMS_VERSION_1, OpenCms.getSystemInfo().getVersionName())); CmsLog.INIT.info(Messages.get().key(Messages.INIT_SERVLET_CONTAINER_1, context.getServerInfo())); CmsLog.INIT.info(Messages.get().key(Messages.INIT_WEBAPP_NAME_1, getSystemInfo().getWebApplicationName())); CmsLog.INIT.info(Messages.get().key(Messages.INIT_SERVLET_PATH_1, getSystemInfo().getServletPath())); CmsLog.INIT.info(Messages.get().key(Messages.INIT_OPENCMS_CONTEXT_1, getSystemInfo().getOpenCmsContext())); CmsLog.INIT.info(Messages.get().key(Messages.INIT_WEBINF_PATH_1, getSystemInfo().getWebInfRfsPath())); CmsLog.INIT.info(Messages.get().key(Messages.INIT_PROPERTY_FILE_1, getSystemInfo().getConfigurationFileRfsPath())); CmsLog.INIT.info(Messages.get().key(Messages.INIT_LOG_FILE_1, getSystemInfo().getLogFileRfsPath())); } // initialize the configuration initConfiguration(configuration); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/cfdaf8b3078899c7389e516ddc28bf6fef680ac0/OpenCmsCore.java/buggy/src/org/opencms/main/OpenCmsCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 1208, 1042, 12, 4745, 1042, 819, 13, 1216, 2149, 2570, 503, 288, 3639, 368, 855, 326, 326, 10319, 8100, 2874, 628, 326, 8100, 819, 1472, 3639, 514, 8100, 3233, 273, 819, 18, 588, 2570, 1662, 2932, 3678, 4747, 4745, 8863, 3639, 309, 261, 23231, 3233, 422, 446, 13, 288, 5411, 604, 394, 2149, 2570, 503, 12, 5058, 18, 588, 7675, 3782, 12, 5058, 18, 9712, 67, 5093, 21377, 67, 12919, 67, 31066, 15146, 67, 20, 10019, 3639, 289, 3639, 368, 866, 364, 10319, 6382, 261, 1969, 13, 1867, 589, 3639, 514, 3311, 13149, 743, 273, 819, 18, 588, 2570, 1662, 2932, 3678, 4747, 8684, 8863, 3639, 309, 261, 4747, 13565, 18, 291, 1921, 12, 4875, 13149, 743, 3719, 288, 5411, 3311, 13149, 743, 273, 1623, 4079, 13149, 3899, 12, 2472, 18, 588, 6955, 743, 2932, 4898, 10019, 5411, 309, 261, 4747, 13565, 18, 291, 1921, 12, 4875, 13149, 743, 3719, 288, 7734, 604, 394, 2149, 2570, 503, 12, 5058, 18, 588, 7675, 3782, 12, 5058, 18, 9712, 67, 5093, 21377, 67, 12919, 67, 17357, 67, 20, 10019, 5411, 289, 3639, 289, 3639, 368, 855, 326, 326, 805, 819, 508, 628, 326, 8100, 819, 1472, 3639, 514, 805, 4079, 3208, 273, 819, 18, 588, 2570, 1662, 2932, 1868, 4079, 3208, 8863, 3639, 309, 261, 1886, 4079, 3208, 422, 446, 13, 288, 5411, 368, 486, 444, 316, 3311, 18, 2902, 16, 1427, 732, 999, 315, 9185, 6, 1492, 1410, 11234, 1440, 3241, 518, 353, 326, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1208, 1042, 12, 4745, 1042, 819, 13, 1216, 2149, 2570, 503, 288, 3639, 368, 855, 326, 326, 10319, 8100, 2874, 628, 326, 8100, 819, 1472, 3639, 514, 8100, 3233, 273, 819, 18, 588, 2570, 1662, 2932, 3678, 4747, 4745, 8863, 3639, 309, 261, 23231, 3233, 422, 446, 13, 288, 5411, 604, 394, 2149, 2570, 503, 12, 5058, 18, 588, 7675, 3782, 12, 5058, 18, 9712, 67, 5093, 21377, 67, 12919, 67, 31066, 15146, 67, 20, 10019, 3639, 289, 3639, 368, 866, 364, 10319, 6382, 261, 1969, 13, 1867, 589, 3639, 514, 3311, 13149, 743, 273, 819, 18, 588, 2570, 1662, 2932, 3678, 4747, 8684, 8863, 3639, 309, 261, 4747, 13565, 18, 291, 1921, 12, 4875, 2 ]
cat = Category.getInstance(prefix + "." + cname);
cat = Category.getInstance(prefix + "." + c.getName());
public static Category getInstance(String cname) { Category cat; String prefix = (String) m_tgCategory.get(); if ((prefix != null) && !prefix.equals("")) { cat = Category.getInstance(prefix + "." + cname); } else { cat = Category.getInstance(cname); } return cat; }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/b3612967cb053036bdb295ee74cb2e369c6ca18d/ThreadCategory.java/buggy/src/core/org/opennms/core/utils/ThreadCategory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 9856, 3694, 12, 780, 18290, 13, 202, 95, 202, 202, 4457, 6573, 31, 202, 202, 780, 1633, 273, 261, 780, 13, 312, 67, 88, 75, 4457, 18, 588, 5621, 202, 202, 430, 14015, 3239, 480, 446, 13, 597, 401, 3239, 18, 14963, 2932, 6, 3719, 202, 202, 95, 202, 202, 2574, 273, 9856, 18, 588, 1442, 12, 3239, 397, 4585, 397, 18290, 1769, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 2574, 273, 9856, 18, 588, 1442, 12, 71, 529, 1769, 202, 202, 97, 202, 202, 2463, 6573, 31, 202, 97, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 760, 9856, 3694, 12, 780, 18290, 13, 202, 95, 202, 202, 4457, 6573, 31, 202, 202, 780, 1633, 273, 261, 780, 13, 312, 67, 88, 75, 4457, 18, 588, 5621, 202, 202, 430, 14015, 3239, 480, 446, 13, 597, 401, 3239, 18, 14963, 2932, 6, 3719, 202, 202, 95, 202, 202, 2574, 273, 9856, 18, 588, 1442, 12, 3239, 397, 4585, 397, 18290, 1769, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 2574, 273, 9856, 18, 588, 1442, 12, 71, 529, 1769, 202, 202, 97, 202, 202, 2463, 6573, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
e.next = null;
e.next = buckets[idx]; buckets[idx] = e;
private void rehash() { HashEntry[] oldBuckets = buckets; int newcapacity = (buckets.length * 2) + 1; threshold = (int) (newcapacity * loadFactor); buckets = new HashEntry[newcapacity]; for (int i = oldBuckets.length - 1; i >= 0; i--) { HashEntry e = oldBuckets[i]; while (e != null) { int idx = hash(e.key); HashEntry dest = buckets[idx]; if (dest != null) { while (dest.next != null) dest = dest.next; dest.next = e; } else buckets[idx] = e; HashEntry next = e.next; e.next = null; e = next; } } }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/a27c044bd64b1995547ea0b48b542e229cf3b5aa/HashMap.java/buggy/libjava/java/util/HashMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 283, 2816, 1435, 225, 288, 565, 2474, 1622, 8526, 1592, 14517, 273, 9169, 31, 565, 509, 394, 16017, 273, 261, 20700, 18, 2469, 380, 576, 13, 397, 404, 31, 565, 5573, 273, 261, 474, 13, 261, 2704, 16017, 380, 1262, 6837, 1769, 565, 9169, 273, 394, 2474, 1622, 63, 2704, 16017, 15533, 565, 364, 261, 474, 277, 273, 1592, 14517, 18, 2469, 300, 404, 31, 277, 1545, 374, 31, 277, 413, 13, 1377, 288, 3639, 2474, 1622, 425, 273, 1592, 14517, 63, 77, 15533, 3639, 1323, 261, 73, 480, 446, 13, 1850, 288, 5411, 509, 2067, 273, 1651, 12, 73, 18, 856, 1769, 5411, 2474, 1622, 1570, 273, 9169, 63, 3465, 15533, 5411, 309, 261, 10488, 480, 446, 13, 2868, 288, 7734, 1323, 261, 10488, 18, 4285, 480, 446, 13, 5375, 1570, 273, 1570, 18, 4285, 31, 7734, 1570, 18, 4285, 273, 425, 31, 2868, 289, 5411, 469, 2868, 9169, 63, 3465, 65, 273, 425, 31, 5411, 2474, 1622, 1024, 273, 425, 18, 4285, 31, 5411, 425, 18, 4285, 273, 9169, 63, 3465, 15533, 9169, 63, 3465, 65, 273, 425, 31, 5411, 425, 273, 1024, 31, 1850, 289, 1377, 289, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 283, 2816, 1435, 225, 288, 565, 2474, 1622, 8526, 1592, 14517, 273, 9169, 31, 565, 509, 394, 16017, 273, 261, 20700, 18, 2469, 380, 576, 13, 397, 404, 31, 565, 5573, 273, 261, 474, 13, 261, 2704, 16017, 380, 1262, 6837, 1769, 565, 9169, 273, 394, 2474, 1622, 63, 2704, 16017, 15533, 565, 364, 261, 474, 277, 273, 1592, 14517, 18, 2469, 300, 404, 31, 277, 1545, 374, 31, 277, 413, 13, 1377, 288, 3639, 2474, 1622, 425, 273, 1592, 14517, 63, 77, 15533, 3639, 1323, 261, 73, 480, 446, 13, 1850, 288, 5411, 509, 2067, 273, 1651, 12, 73, 18, 856, 1769, 5411, 2474, 1622, 1570, 273, 9169, 63, 3465, 15533, 5411, 309, 261, 10488, 2 ]
PageMap pageMap = pageMapForName(pageMapName, pageMapName.equals(PageMap.DEFAULT_NAME));
PageMap pageMap = pageMapForName(pageMapName, Objects.equal(PageMap.DEFAULT_NAME,pageMapName));
public final synchronized Page getPage(final String pageMapName, final String path, final int versionNumber) { if (log.isDebugEnabled()) { log.debug("Getting page [path = " + path + ", versionNumber = " + versionNumber + "]"); } // Get page map by name, creating the default page map automatically PageMap pageMap = pageMapForName(pageMapName, pageMapName.equals(PageMap.DEFAULT_NAME)); if (pageMap != null) { long startTime = System.currentTimeMillis(); if (pageMapsUsedInRequest == null) { pageMapsUsedInRequest = new HashMap<PageMap, Thread>(3); } // Get page entry for id and version Thread t = pageMapsUsedInRequest.get(pageMap); while (t != null && t != Thread.currentThread()) { try { wait(20000); // wait 20 seconds max. } catch (InterruptedException ex) { throw new WicketRuntimeException(ex); } t = pageMapsUsedInRequest.get(pageMap); if (t != null && t != Thread.currentThread() && (startTime + 20000) < System.currentTimeMillis()) { // if it is still not the right thread.. // This must be a wicket bug or some other (dead)lock in the code. throw new WicketRuntimeException("After 20s the Pagemap " + pageMapName + " is still locked by: " + t + ", giving up trying to get the page for path: " + path); } } pageMapsUsedInRequest.put(pageMap, Thread.currentThread()); final String id = Strings.firstPathComponent(path, Component.PATH_SEPARATOR); Page page = pageMap.get(Integer.parseInt(id), versionNumber); if (page == null) { pageMapsUsedInRequest.remove(pageMap); notifyAll(); } return page; } return null; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/31eff92cfa4e7fea55e9bf85144bb4fdc6e015f6/Session.java/buggy/wicket/src/java/wicket/Session.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 3852, 3460, 8957, 12, 6385, 514, 1363, 863, 461, 16, 727, 514, 589, 16, 1082, 202, 6385, 509, 1177, 1854, 13, 202, 95, 202, 202, 430, 261, 1330, 18, 291, 2829, 1526, 10756, 202, 202, 95, 1082, 202, 1330, 18, 4148, 2932, 19213, 1363, 306, 803, 273, 315, 397, 589, 397, 3104, 1177, 1854, 273, 315, 397, 1177, 1854, 397, 9870, 1769, 202, 202, 97, 202, 202, 759, 968, 1363, 852, 635, 508, 16, 4979, 326, 805, 1363, 852, 6635, 202, 202, 1964, 863, 1363, 863, 273, 1363, 863, 1290, 461, 12, 2433, 863, 461, 16, 1363, 863, 461, 18, 14963, 12, 1964, 863, 18, 5280, 67, 1985, 10019, 202, 202, 430, 261, 2433, 863, 480, 446, 13, 202, 202, 95, 1082, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 25083, 202, 430, 261, 2433, 8903, 6668, 382, 691, 422, 446, 13, 1082, 202, 95, 9506, 202, 2433, 8903, 6668, 382, 691, 273, 394, 4317, 32, 1964, 863, 16, 4884, 34, 12, 23, 1769, 1082, 202, 97, 25083, 202, 759, 968, 1363, 1241, 364, 612, 471, 1177, 1082, 202, 3830, 268, 273, 1363, 8903, 6668, 382, 691, 18, 588, 12, 2433, 863, 1769, 1082, 202, 17523, 261, 88, 480, 446, 597, 268, 480, 4884, 18, 2972, 3830, 10756, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 7048, 12, 22, 2787, 1769, 368, 2529, 4200, 3974, 943, 18, 9506, 202, 97, 9506, 202, 14683, 261, 24485, 503, 431, 13, 9506, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 3460, 8957, 12, 6385, 514, 1363, 863, 461, 16, 727, 514, 589, 16, 1082, 202, 6385, 509, 1177, 1854, 13, 202, 95, 202, 202, 430, 261, 1330, 18, 291, 2829, 1526, 10756, 202, 202, 95, 1082, 202, 1330, 18, 4148, 2932, 19213, 1363, 306, 803, 273, 315, 397, 589, 397, 3104, 1177, 1854, 273, 315, 397, 1177, 1854, 397, 9870, 1769, 202, 202, 97, 202, 202, 759, 968, 1363, 852, 635, 508, 16, 4979, 326, 805, 1363, 852, 6635, 202, 202, 1964, 863, 1363, 863, 273, 1363, 863, 1290, 461, 12, 2433, 863, 461, 16, 1363, 863, 461, 18, 14963, 12, 1964, 863, 18, 5280, 67, 1985, 10019, 202, 202, 430, 261, 2433, 863, 2 ]
TypeCheck.getClearType(s), IfCmp.getGuardResult(n).copyRO());
TypeCheck.getClearType(s), IfCmp.getGuardResult(n).copyRO());
private boolean pushTypeCheckBelowIf(OPT_Instruction s, OPT_IR ir) { if (s.operator() == CHECKCAST) { OPT_Register r = TypeCheck.getRef(s).asRegister().register; OPT_Instruction n = s.nextInstructionInCodeOrder(); /* find moves of the checked value, so that we can also optimize cases where the checked value is moved before it is used */ while (n.operator() == REF_MOVE && Move.getVal(n) instanceof OPT_RegisterOperand && Move.getVal(n).asRegister().register == r) { r = Move.getResult(n).asRegister().register; n = n.nextInstructionInCodeOrder(); } if (n.operator() == REF_IFCMP && IfCmp.getVal2(n) instanceof OPT_NullConstantOperand && IfCmp.getVal1(n) instanceof OPT_RegisterOperand && r == IfCmp.getVal1(n).asRegister().register) { OPT_BasicBlock newBlock, patchBlock; OPT_BasicBlock myBlock = n.getBasicBlock(); OPT_Instruction after = n.nextInstructionInCodeOrder(); if (IfCmp.getCond(n).isEQUAL()) /* We fall through on non-NULL values, so the checkcast must be on the not-taken path from the branch. There are 3 cases: 1. n is the last instruction in its basic block, in which case control falls through to the next block in code order. This case is if the instruction after n is a BBEND */ if (after.operator() == BBEND) patchBlock = myBlock.nextBasicBlockInCodeOrder(); /* 2. n is followed by an unconditional goto. In this case control jumps to the target of the goto. */ else if (after.operator() == GOTO) patchBlock = after.getBranchTarget(); /* 3. n is followed by another conditional branch. In this case, we will split the basic block to make n the last instruction in the block, and then we have the fall through case again. */ else if (after.operator() == REF_IFCMP) { patchBlock = myBlock.splitNodeAt(n, ir); myBlock.insertOut(patchBlock); ir.cfg.linkInCodeOrder(myBlock, patchBlock); } /* this is a bad thing */ else return false; else /* We branch on not-NULL values, so the checkcast must be spliced in before the branch target */ patchBlock = n.getBranchTarget(); /* add block between branch and appropriate successor */ newBlock = OPT_IRTools.makeBlockOnEdge(myBlock, patchBlock, ir); /* put check in new block */ s.remove(); TypeCheck.mutate(s, CHECKCAST_NOTNULL, TypeCheck.getClearRef(s), TypeCheck.getClearType(s), IfCmp.getGuardResult(n).copyRO()); newBlock.prependInstruction(s); return true; } } return false; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/51a5192c5ffe281e3820e78c86e08367a2196dfa/OPT_LocalCastOptimization.java/clean/rvm/src/vm/compilers/optimizing/optimizations/local/OPT_LocalCastOptimization.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 1817, 559, 1564, 28730, 2047, 12, 15620, 67, 11983, 272, 16, 16456, 67, 7937, 9482, 13, 288, 565, 309, 261, 87, 18, 9497, 1435, 422, 14565, 21871, 13, 288, 1377, 16456, 67, 3996, 436, 273, 1412, 1564, 18, 588, 1957, 12, 87, 2934, 345, 3996, 7675, 4861, 31, 1377, 16456, 67, 11983, 290, 273, 272, 18, 4285, 11983, 382, 1085, 2448, 5621, 1377, 1748, 1104, 13934, 434, 326, 5950, 460, 16, 1427, 716, 732, 848, 2546, 4202, 10979, 6088, 1625, 326, 5950, 460, 353, 10456, 1865, 4202, 518, 353, 1399, 4202, 1195, 1377, 1323, 261, 82, 18, 9497, 1435, 422, 20557, 67, 16537, 597, 9933, 18, 588, 3053, 12, 82, 13, 6647, 1276, 16456, 67, 3996, 10265, 1850, 597, 9933, 18, 588, 3053, 12, 82, 2934, 345, 3996, 7675, 4861, 422, 436, 13, 288, 3639, 436, 273, 9933, 18, 588, 1253, 12, 82, 2934, 345, 3996, 7675, 4861, 31, 3639, 290, 273, 290, 18, 4285, 11983, 382, 1085, 2448, 5621, 1377, 289, 1377, 309, 261, 82, 18, 9497, 1435, 422, 20557, 67, 45, 4488, 4566, 597, 6647, 971, 31832, 18, 588, 3053, 22, 12, 82, 13, 1276, 16456, 67, 2041, 6902, 10265, 597, 1850, 971, 31832, 18, 588, 3053, 21, 12, 82, 13, 1276, 16456, 67, 3996, 10265, 597, 1850, 436, 422, 971, 31832, 18, 588, 3053, 21, 12, 82, 2934, 345, 3996, 7675, 4861, 13, 288, 3639, 16456, 67, 8252, 1768, 28482, 16, 4729, 1768, 31, 3639, 16456, 67, 8252, 1768, 3399, 1768, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1817, 559, 1564, 28730, 2047, 12, 15620, 67, 11983, 272, 16, 16456, 67, 7937, 9482, 13, 288, 565, 309, 261, 87, 18, 9497, 1435, 422, 14565, 21871, 13, 288, 1377, 16456, 67, 3996, 436, 273, 1412, 1564, 18, 588, 1957, 12, 87, 2934, 345, 3996, 7675, 4861, 31, 1377, 16456, 67, 11983, 290, 273, 272, 18, 4285, 11983, 382, 1085, 2448, 5621, 1377, 1748, 1104, 13934, 434, 326, 5950, 460, 16, 1427, 716, 732, 848, 2546, 4202, 10979, 6088, 1625, 326, 5950, 460, 353, 10456, 1865, 4202, 518, 353, 1399, 4202, 1195, 1377, 1323, 261, 82, 18, 9497, 1435, 422, 20557, 67, 16537, 597, 9933, 18, 588, 3053, 12, 82, 13, 6647, 1276, 16456, 67, 3996, 2 ]
private void processLine(BufferedReader reader, OutputStream out) throws IOException {
private boolean processLine(BufferedReader reader, OutputStream out) throws IOException {
private void processLine(BufferedReader reader, OutputStream out) throws IOException { String line; StringBuffer outsb = new StringBuffer(); try { line = reader.readLine(); } catch (IOException e) { outsb.append("Bye... ("+e+")"); System.err.println("Bye... ("+e+")"); return; } boolean getCHKOnly = false; if(line == null) return; String uline = line.toUpperCase(); Logger.minor(this, "Command: "+line); if(uline.startsWith("GET:")) { // Should have a key next String key = line.substring("GET:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); Logger.normal(this, "Key: "+uri); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return; } try { FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // FIXME limit it above if(data.size() > 32*1024) { System.err.println("Data is more than 32K: "+data.size()); outsb.append("Data is more than 32K: "+data.size()); return; } byte[] dataBytes = BucketTools.toByteArray(data); boolean evil = false; for(int i=0;i<dataBytes.length;i++) { // Look for escape codes if(dataBytes[i] == '\n') continue; if(dataBytes[i] == '\r') continue; if(dataBytes[i] < 32) evil = true; } if(evil) { System.err.println("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); outsb.append("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); return; } outsb.append("Data:\r\n"); outsb.append(new String(dataBytes)); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()+"\r\n"); if(e.getMode() == e.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("GETFILE:")) { // Should have a key next String key = line.substring("GETFILE:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return; } try { long startTime = System.currentTimeMillis(); FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // Now calculate filename String fnam = uri.getDocName(); fnam = sanitize(fnam); if(fnam.length() == 0) { fnam = "freenet-download-"+HexUtil.bytesToHex(BucketTools.hash(data), 0, 10); String ext = DefaultMIMETypes.getExtension(cm.getMIMEType()); if(ext != null && !ext.equals("")) fnam += "." + ext; } File f = new File(downloadsDir, fnam); if(f.exists()) { outsb.append("File exists already: "+fnam); fnam = "freenet-"+System.currentTimeMillis()+"-"+fnam; } FileOutputStream fos = null; try { fos = new FileOutputStream(f); BucketTools.copyTo(data, fos, Long.MAX_VALUE); fos.close(); outsb.append("Written to "+fnam); } catch (IOException e) { outsb.append("Could not write file: caught "+e); e.printStackTrace(); } finally { if(fos != null) try { fos.close(); } catch (IOException e1) { // Ignore } } long endTime = System.currentTimeMillis(); long sz = data.size(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Download rate: "+rate+" bytes / second"); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()); if(e.getMode() == e.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("QUIT")) { n.exit(); } else if(uline.startsWith("PUT:") || (getCHKOnly = uline.startsWith("GETCHK:"))) { // Just insert to local store if(getCHKOnly) line = line.substring(("GETCHK:").length()); else line = line.substring("PUT:".length()); while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String content; if(line.length() > 0) { // Single line insert content = line; } else { // Multiple line insert content = readLines(reader, false); } // Insert byte[] data = content.getBytes(); InsertBlock block = new InsertBlock(new ArrayBucket(data), null, FreenetURI.EMPTY_CHK_URI); FreenetURI uri; try { uri = client.insert(block, getCHKOnly); } catch (InserterException e) { outsb.append("Error: "+e.getMessage()); if(e.uri != null) outsb.append("URI would have been: "+e.uri); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { outsb.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()); } return; } outsb.append("URI: "+uri); //////////////////////////////////////////////////////////////////////////////// } else if(uline.startsWith("PUTDIR:") || (uline.startsWith("PUTSSKDIR")) || (getCHKOnly = uline.startsWith("GETCHKDIR:"))) { // TODO: Check for errors? boolean ssk = false; if(uline.startsWith("PUTDIR:")) line = line.substring("PUTDIR:".length()); else if(uline.startsWith("PUTSSKDIR:")) { line = line.substring("PUTSSKDIR:".length()); ssk = true; } else if(uline.startsWith("GETCHKDIR:")) line = line.substring(("GETCHKDIR:").length()); else { System.err.println("Impossible"); outsb.append("Impossible"); } line = line.trim(); if(line.length() < 1) { printHeader(out); return; } String defaultFile = null; FreenetURI insertURI = FreenetURI.EMPTY_CHK_URI; // set default file? if (line.matches("^.*#.*$")) { String[] split = line.split("#"); if(ssk) { insertURI = new FreenetURI(split[0]); line = split[1]; if(split.length > 2) defaultFile = split[2]; } else { defaultFile = split[1]; line = split[0]; } } HashMap bucketsByName = makeBucketsByName(line); if(defaultFile == null) { String[] defaultFiles = new String[] { "index.html", "index.htm", "default.html", "default.htm" }; for(int i=0;i<defaultFiles.length;i++) { if(bucketsByName.containsKey(defaultFiles[i])) { defaultFile = defaultFiles[i]; break; } } } FreenetURI uri; try { uri = client.insertManifest(insertURI, bucketsByName, defaultFile); uri = uri.addMetaStrings(new String[] { "" }); outsb.append("======================================================="); outsb.append("URI: "+uri); outsb.append("======================================================="); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { uri = e.uri; uri = uri.addMetaStrings(new String[] { "" }); outsb.append("URI would have been: "+uri); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } Logger.error(this, "Caught "+e, e); } } else if(uline.startsWith("PUTFILE:") || (getCHKOnly = uline.startsWith("GETCHKFILE:"))) { // Just insert to local store if(getCHKOnly) { line = line.substring(("GETCHKFILE:").length()); } else { line = line.substring("PUTFILE:".length()); } while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); File f = new File(line); outsb.append("Attempting to read file "+line); long startTime = System.currentTimeMillis(); try { if(!(f.exists() && f.canRead())) { throw new FileNotFoundException(); } // Guess MIME type String mimeType = DefaultMIMETypes.guessMIMEType(line); outsb.append("Using MIME type: "+mimeType); if(mimeType.equals(DefaultMIMETypes.DEFAULT_MIME_TYPE)) mimeType = ""; // don't need to override it FileBucket fb = new FileBucket(f, true, false, false, false); InsertBlock block = new InsertBlock(fb, new ClientMetadata(mimeType), FreenetURI.EMPTY_CHK_URI); startTime = System.currentTimeMillis(); FreenetURI uri = client.insert(block, getCHKOnly); // FIXME depends on CHK's still being renamable //uri = uri.setDocName(f.getName()); outsb.append("URI: "+uri+"\r\n"); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second\r\n"); } catch (FileNotFoundException e1) { outsb.append("File not found"); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second"); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } } catch (Throwable t) { outsb.append("Insert threw: "+t); t.printStackTrace(); } } else if(uline.startsWith("MAKESSK")) { InsertableClientSSK key = InsertableClientSSK.createRandom(r); outsb.append("Insert URI: "+key.getInsertURI().toString(false)); outsb.append("Request URI: "+key.getURI().toString(false)); FreenetURI insertURI = key.getInsertURI().setDocName("testsite"); String fixedInsertURI = insertURI.toString(false); outsb.append("Note that you MUST add a filename to the end of the above URLs e.g.:\r\n"+fixedInsertURI); outsb.append("Normally you will then do PUTSSKDIR:<insert URI>#<directory to upload>, for example:\r\nPUTSSKDIR:"+fixedInsertURI+"#directoryToUpload/"); outsb.append("This will then produce a manifest site containing all the files, the default document can be accessed at\r\n"+insertURI.addMetaStrings(new String[] { "" }).toString(false)); } else if(uline.startsWith("PUTSSK:")) { String cmd = line.substring("PUTSSK:".length()); cmd = cmd.trim(); if(cmd.indexOf(';') <= 0) { outsb.append("No target URI provided."); outsb.append("PUTSSK:<insert uri>;<url to redirect to>"); return; } String[] split = cmd.split(";"); String insertURI = split[0]; String targetURI = split[1]; outsb.append("Insert URI: "+insertURI); outsb.append("Target URI: "+targetURI); FreenetURI insert = new FreenetURI(insertURI); FreenetURI target = new FreenetURI(targetURI); try { FreenetURI result = client.insertRedirect(insert, target); outsb.append("Successfully inserted to fetch URI: "+result); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); Logger.normal(this, "Error: "+e, e); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); } } } else if(uline.startsWith("STATUS")) { SimpleFieldSet fs = n.exportFieldSet(); outsb.append(fs.toString()); outsb.append(n.getStatus()); if(Version.buildNumber()<Version.highestSeenBuild){ outsb.append("The latest version is : "+Version.highestSeenBuild); } } else if(uline.startsWith("CONNECT:")) { String key = line.substring("CONNECT:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); String content = null; if(key.length() > 0) { // Filename BufferedReader in; outsb.append("Trying to connect to noderef in "+key); File f = new File(key); if (f.isFile()) { outsb.append("Given string seems to be a file, loading..."); in = new BufferedReader(new FileReader(f)); } else { outsb.append("Given string seems to be an URL, loading..."); URL url = new URL(key); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); } content = readLines(in, true); in.close(); } else { content = readLines(reader, true); } if(content == null) return; if(content.equals("")) return; connect(content); } else if(uline.startsWith("NAME:")) { outsb.append("Node name currently: "+n.myName); String key = line.substring("NAME:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); outsb.append("New name: "+key); n.setName(key); } else if(uline.startsWith("DISCONNECT:")) { String ipAndPort = line.substring("DISCONNECT:".length()); disconnect(ipAndPort.trim()); } else if(uline.startsWith("PLUGLOAD:")) { if (line.substring("PLUGLOAD:".length()).trim().equals("?")) { outsb.append(" PLUGLOAD: pkg.Class - Load plugin from current classpath"); outsb.append(" PLUGLOAD: pkg.Class@file:<filename> - Load plugin from file"); outsb.append(" PLUGLOAD: pkg.Class@http://... - Load plugin from online file"); outsb.append(" PLUGLOAD: *@... - Load plugin from manifest in given jarfile"); outsb.append(""); outsb.append("If the filename/url ends with \".url\", it" + " is treated as a link, meaning that the first line is" + " the accual URL. Else it is loaded as classpath and" + " the class it loaded from it (meaning the file could" + " be either a jar-file or a class-file)."); outsb.append(""); outsb.append(" PLUGLOAD: pkg.Class* - Load newest version of plugin from http://downloads.freenetproject.org/alpha/plugins/"); outsb.append(""); } else n.pluginManager.startPlugin(line.substring("PLUGLOAD:".length()).trim()); //outsb.append("PLUGLOAD: <pkg.classname>[(@<URI to jarfile.jar>|<<URI to file containing real URI>|* (will load from freenets pluginpool))] - Load plugin."); } else if(uline.startsWith("PLUGLIST")) { outsb.append(n.pluginManager.dumpPlugins()); } else if(uline.startsWith("PLUGKILL:")) { n.pluginManager.killPlugin(line.substring("PLUGKILL:".length()).trim()); } else { if(uline.length() > 0) printHeader(out); } outsb.append("\r\n"); out.write(outsb.toString().getBytes()); out.flush(); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/8fb84ecb4f999d46d9f08a051b57d64c234b5ce4/TextModeClientInterface.java/buggy/src/freenet/node/TextModeClientInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, 18, 896, 1670, 5621, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 596, 18366, 18, 6923, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 2332, 18, 370, 18, 8222, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 327, 31, 3639, 289, 3639, 1250, 336, 1792, 47, 3386, 273, 629, 31, 3639, 309, 12, 1369, 422, 446, 13, 327, 31, 3639, 514, 7493, 558, 273, 980, 18, 869, 8915, 5621, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 2189, 30, 13773, 1369, 1769, 3639, 309, 12, 332, 558, 18, 17514, 1190, 2932, 3264, 2773, 3719, 288, 5411, 368, 9363, 1240, 279, 498, 1024, 5411, 514, 498, 273, 980, 18, 28023, 2932, 3264, 2773, 18, 2469, 10663, 5411, 1323, 12, 856, 18, 2469, 1435, 405, 374, 597, 498, 18, 3001, 861, 12, 20, 13, 422, 296, 8624, 7734, 498, 273, 498, 18, 28023, 12, 21, 1769, 5411, 1323, 12, 856, 18, 2469, 1435, 405, 374, 597, 498, 18, 3001, 861, 12, 856, 18, 2469, 1435, 17, 21, 13, 422, 296, 8624, 7734, 498, 273, 498, 18, 28023, 12, 20, 16, 498, 18, 2469, 1435, 17, 22, 1769, 5411, 4242, 18, 6130, 12, 2211, 16, 315, 653, 30, 13773, 856, 1769, 5411, 478, 2842, 278, 3098, 2003, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, 18, 896, 1670, 5621, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 596, 18366, 18, 6923, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 2332, 18, 370, 18, 8222, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 327, 31, 3639, 289, 3639, 1250, 336, 1792, 47, 3386, 273, 629, 31, 3639, 309, 12, 1369, 422, 446, 13, 327, 31, 3639, 514, 7493, 558, 273, 980, 18, 869, 8915, 5621, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 2 ]
if (value instanceof String) { activeEditor = stringEditor; stringEditor.setText((String)value); } else if (value instanceof Boolean) { activeEditor = booleanEditor; booleanEditor.setSelected(((Boolean)value).booleanValue()); } else if (value instanceof Integer) { activeEditor = integerEditor; integerEditor.setText((String)value); } else if (value == null ) { value = ""; activeEditor = stringEditor; stringEditor.setText((String)value); } else if (value.getClass() == MondrianDef.Join.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_JOIN); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.NameExpression.class) { return null; } else if (value.getClass() == MondrianDef.Relation.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_RELATION); tableEditor.setModel(ptm); activeEditor = tableEditor; return null; } else if (value.getClass() == MondrianDef.OrdinalExpression.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_SQL); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.Table.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_TABLE); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.Property.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_PROPERTY); tableEditor.setModel(ptm); activeEditor = tableEditor; } else { value = ""; activeEditor = stringEditor; stringEditor.setText((String)value); } activeEditor.setVisible(true); return activeEditor; }
if (value instanceof String) { activeEditor = stringEditor; stringEditor.setText((String)value); } else if (value instanceof Boolean) { activeEditor = booleanEditor; booleanEditor.setSelected(((Boolean)value).booleanValue()); } else if (value instanceof Integer) { activeEditor = integerEditor; integerEditor.setText((String)value); } else if (value == null ) { value = ""; activeEditor = stringEditor; stringEditor.setText((String)value); } else if (value.getClass() == MondrianDef.Join.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_JOIN); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.NameExpression.class) { return null; } else if (value.getClass() == MondrianDef.Relation.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_RELATION); tableEditor.setModel(ptm); activeEditor = tableEditor; return null; } else if (value.getClass() == MondrianDef.OrdinalExpression.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_SQL); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.Table.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_TABLE); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.Property.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_PROPERTY); tableEditor.setModel(ptm); activeEditor = tableEditor; } else { value = ""; activeEditor = stringEditor; stringEditor.setText((String)value); } activeEditor.setVisible(true); return activeEditor; }
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { if (value instanceof String) { activeEditor = stringEditor; stringEditor.setText((String)value); } else if (value instanceof Boolean) { activeEditor = booleanEditor; booleanEditor.setSelected(((Boolean)value).booleanValue()); } else if (value instanceof Integer) { activeEditor = integerEditor; integerEditor.setText((String)value); } else if (value == null ) { value = ""; activeEditor = stringEditor; stringEditor.setText((String)value); } else if (value.getClass() == MondrianDef.Join.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_JOIN); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.NameExpression.class) { return null; } else if (value.getClass() == MondrianDef.Relation.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_RELATION); tableEditor.setModel(ptm); activeEditor = tableEditor; return null; } else if (value.getClass() == MondrianDef.OrdinalExpression.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_SQL); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.Table.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_TABLE); tableEditor.setModel(ptm); activeEditor = tableEditor; } else if (value.getClass() == MondrianDef.Property.class) { SchemaPropertyCellEditor spce = new SchemaPropertyCellEditor(); tableEditor.setDefaultEditor(Object.class, spce); SchemaPropertyCellRenderer spcr = new SchemaPropertyCellRenderer(); tableEditor.setDefaultRenderer(Object.class, spcr); PropertyTableModel ptm = new PropertyTableModel(value,SchemaExplorer.DEF_PROPERTY); tableEditor.setModel(ptm); activeEditor = tableEditor; } else { value = ""; activeEditor = stringEditor; stringEditor.setText((String)value); } activeEditor.setVisible(true); return activeEditor; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/SchemaPropertyCellEditor.java/buggy/src/main/mondrian/gui/SchemaPropertyCellEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5435, 5638, 4020, 6946, 1841, 12, 46, 1388, 1014, 16, 1033, 460, 16, 1250, 20956, 16, 509, 1027, 16, 509, 1057, 13, 288, 202, 202, 430, 261, 1132, 1276, 514, 13, 288, 1082, 202, 3535, 6946, 273, 533, 6946, 31, 1082, 202, 1080, 6946, 18, 542, 1528, 12443, 780, 13, 1132, 1769, 202, 202, 97, 469, 309, 261, 1132, 1276, 3411, 13, 288, 1082, 202, 3535, 6946, 273, 1250, 6946, 31, 1082, 202, 6494, 6946, 18, 542, 7416, 12443, 12, 5507, 13, 1132, 2934, 6494, 620, 10663, 202, 202, 97, 469, 309, 261, 1132, 1276, 2144, 13, 288, 1082, 202, 3535, 6946, 273, 3571, 6946, 31, 1082, 202, 7745, 6946, 18, 542, 1528, 12443, 780, 13, 1132, 1769, 202, 202, 97, 469, 309, 261, 1132, 422, 446, 262, 288, 1082, 202, 1132, 273, 1408, 31, 1082, 202, 3535, 6946, 273, 533, 6946, 31, 1082, 202, 1080, 6946, 18, 542, 1528, 12443, 780, 13, 1132, 1769, 202, 202, 97, 469, 309, 261, 1132, 18, 588, 797, 1435, 422, 490, 1434, 566, 304, 3262, 18, 4572, 18, 1106, 13, 288, 1082, 202, 3078, 1396, 4020, 6946, 1694, 311, 273, 394, 4611, 1396, 4020, 6946, 5621, 1082, 202, 2121, 6946, 18, 542, 1868, 6946, 12, 921, 18, 1106, 16, 1694, 311, 1769, 1082, 202, 3078, 1396, 4020, 6747, 1694, 3353, 273, 394, 4611, 1396, 4020, 6747, 5621, 1082, 202, 2121, 6946, 18, 542, 1868, 6747, 12, 921, 18, 1106, 16, 1694, 3353, 1769, 1082, 202, 1396, 1388, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5435, 5638, 4020, 6946, 1841, 12, 46, 1388, 1014, 16, 1033, 460, 16, 1250, 20956, 16, 509, 1027, 16, 509, 1057, 13, 288, 202, 202, 430, 261, 1132, 1276, 514, 13, 288, 1082, 202, 3535, 6946, 273, 533, 6946, 31, 1082, 202, 1080, 6946, 18, 542, 1528, 12443, 780, 13, 1132, 1769, 202, 202, 97, 469, 309, 261, 1132, 1276, 3411, 13, 288, 1082, 202, 3535, 6946, 273, 1250, 6946, 31, 1082, 202, 6494, 6946, 18, 542, 7416, 12443, 12, 5507, 13, 1132, 2934, 6494, 620, 10663, 202, 202, 97, 469, 309, 261, 1132, 1276, 2144, 13, 288, 1082, 202, 3535, 6946, 273, 3571, 6946, 31, 1082, 202, 7745, 6946, 18, 542, 1528, 12443, 780, 13, 2 ]
MAttribute newAttr = MMUtil.SINGLETON.buildAttribute(classifier);
MAttribute newAttr = UmlFactory.getFactory().getCore().buildAttribute(classifier);
public void add(int index){ Object target = getTarget(); if(target instanceof MClassifier) { MClassifier classifier = (MClassifier) target; Collection oldFeatures = classifier.getFeatures(); MAttribute newAttr = MMUtil.SINGLETON.buildAttribute(classifier); classifier.setFeatures(addElement(oldFeatures, index, newAttr, _attributes.isEmpty()?null:_attributes.get(index))); fireContentsChanged(this,index-1,index); navigateTo(newAttr); } } // ...end of add()...
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ac79e19cb08d3ecf77b0aea1817e3c92d09ef6ba/UMLAttributesListModel.java/buggy/src_new/org/argouml/uml/ui/UMLAttributesListModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 474, 770, 15329, 3639, 1033, 1018, 273, 8571, 5621, 3639, 309, 12, 3299, 1276, 490, 13860, 13, 288, 5411, 490, 13860, 14622, 273, 261, 49, 13860, 13, 1018, 31, 5411, 2200, 1592, 8696, 273, 14622, 18, 588, 8696, 5621, 5411, 490, 1499, 394, 3843, 273, 587, 781, 1733, 18, 588, 1733, 7675, 588, 4670, 7675, 3510, 1499, 12, 1106, 1251, 1769, 6647, 14622, 18, 542, 8696, 12, 1289, 1046, 12, 1673, 8696, 16, 770, 16, 394, 3843, 16, 4766, 282, 389, 4350, 18, 291, 1921, 1435, 35, 2011, 30, 67, 4350, 18, 588, 12, 1615, 3719, 1769, 5411, 4452, 6323, 5033, 12, 2211, 16, 1615, 17, 21, 16, 1615, 1769, 5411, 28479, 774, 12, 2704, 3843, 1769, 3639, 289, 565, 289, 225, 368, 1372, 409, 434, 527, 1435, 2777, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 918, 527, 12, 474, 770, 15329, 3639, 1033, 1018, 273, 8571, 5621, 3639, 309, 12, 3299, 1276, 490, 13860, 13, 288, 5411, 490, 13860, 14622, 273, 261, 49, 13860, 13, 1018, 31, 5411, 2200, 1592, 8696, 273, 14622, 18, 588, 8696, 5621, 5411, 490, 1499, 394, 3843, 273, 587, 781, 1733, 18, 588, 1733, 7675, 588, 4670, 7675, 3510, 1499, 12, 1106, 1251, 1769, 6647, 14622, 18, 542, 8696, 12, 1289, 1046, 12, 1673, 8696, 16, 770, 16, 394, 3843, 16, 4766, 282, 389, 4350, 18, 291, 1921, 1435, 35, 2011, 30, 67, 4350, 18, 588, 12, 1615, 3719, 1769, 5411, 4452, 6323, 5033, 12, 2211, 16, 1615, 17, 21, 16, 1615, 1769, 5411, 28479, 774, 12, 2 ]
boolean listContext = false; try { if (context == null) context = new ReplacementContext(options, project); context.replacementInfo = info; PsiElement el = findRealSubstitutionElement(elementToReplace); listContext = isListContext(el); PsiElement[] statements = MatcherImplUtil.createTreeFromText( replacementToMake, el instanceof PsiMember && !isSymbolReplacement(el, context)? MatcherImplUtil.TreeContext.Class : MatcherImplUtil.TreeContext.Block, options.getMatchOptions().getFileType(), project ); if (listContext) { if (statements.length > 1) { elementParent.addRangeBefore(statements[0],statements[statements.length-1],elementToReplace); } else if (statements.length==1) { PsiElement replacement = getMatchExpr(statements[0]); handleModifierList(el, replacement, context); replacement = handleSymbolReplacemenent(replacement, el, context); if (replacement instanceof PsiTryStatement) { final List<PsiCodeBlock> unmatchedCatchBlocks = el.getUserData(MatcherImplUtil.UNMATCHED_CATCH_BLOCK_CONTENT_VAR_KEY); final List<PsiParameter> unmatchedCatchParams = el.getUserData(MatcherImplUtil.UNMATCHED_CATCH_PARAM_CONTENT_VAR_KEY); final PsiCatchSection[] catches = ((PsiTryStatement)replacement).getCatchSections(); if (unmatchedCatchBlocks!=null && unmatchedCatchParams!=null) { for(int i = unmatchedCatchBlocks.size()-1; i >= 0; --i) { final PsiParameter parameter = unmatchedCatchParams.get(i); final PsiCatchSection catchSection = PsiManager.getInstance(project).getElementFactory().createCatchSection( (PsiClassType)parameter.getType(), parameter.getName(), null ); catchSection.getCatchBlock().replace( unmatchedCatchBlocks.get(i) ); replacement.addAfter( catchSection, catches[catches.length-1] ); } } } elementParent.addBefore(replacement,elementToReplace); } } else if (statements.length > 0) { int i = 0; while( true ) { if (!(statements[i] instanceof PsiComment || statements[i] instanceof PsiWhiteSpace ) ) { break; } ++i; } if (i != 0) { elementParent.addRangeBefore(statements[0],statements[i-1],el); } PsiElement replacement = getMatchExpr(statements[i]); if (replacement instanceof PsiStatement && !(replacement.getLastChild() instanceof PsiJavaToken) ) { elementParent.addRangeBefore(replacement.getFirstChild(),replacement.getLastChild().getPrevSibling(),el); el.delete(); } else { handleModifierList(el, replacement, context); if (replacement instanceof PsiClass) { final PsiStatement[] searchStatements = context.getCodeBlock().getStatements(); if (searchStatements.length > 0 && searchStatements[0] instanceof PsiDeclarationStatement && ((PsiDeclarationStatement)searchStatements[0]).getDeclaredElements()[0] instanceof PsiClass ) { final PsiClass replaceClazz = (PsiClass)replacement; final PsiClass queryClazz = (PsiClass)((PsiDeclarationStatement)searchStatements[0]).getDeclaredElements()[0]; final PsiClass clazz = (PsiClass)el; if (replaceClazz.getExtendsList().getTextLength() == 0 && queryClazz.getExtendsList().getTextLength() == 0 && clazz.getExtendsList().getTextLength() != 0 ) { replaceClazz.getExtendsList().addRange( clazz.getExtendsList().getFirstChild(),clazz.getExtendsList().getLastChild() ); } if (replaceClazz.getImplementsList().getTextLength() == 0 && queryClazz.getImplementsList().getTextLength() == 0 && clazz.getImplementsList().getTextLength() != 0 ) { replaceClazz.getImplementsList().addRange( clazz.getImplementsList().getFirstChild(), clazz.getImplementsList().getLastChild() ); } if (replaceClazz.getTypeParameterList().getTextLength() == 0 && queryClazz.getTypeParameterList().getTextLength() == 0 && clazz.getTypeParameterList().getTextLength() != 0 ) { replaceClazz.getTypeParameterList().replace( clazz.getTypeParameterList() ); } } } replacement = handleSymbolReplacemenent(replacement, el, context); el.replace(replacement); } } else { el.delete(); } } catch(IncorrectOperationException ex) { ex.printStackTrace(); } if (listContext) { for (SmartPsiElementPointer aMatchesPtrList : info.matchesPtrList) { try { PsiElement element = findRealSubstitutionElement( aMatchesPtrList.getElement() ); element.delete(); } catch (IncorrectOperationException ex) { ex.printStackTrace();
PsiManager.getInstance(project).performActionWithFormatterDisabled( new Runnable() { public void run() { doReplacement(info, elementToReplace, replacementToMake, elementParent);
private void doReplace(final PsiElement elementToReplace, final String replacementToMake, final ReplacementInfoImpl info, final PsiElement elementParent) { boolean listContext = false; try { if (context == null) context = new ReplacementContext(options, project); context.replacementInfo = info; PsiElement el = findRealSubstitutionElement(elementToReplace); listContext = isListContext(el); PsiElement[] statements = MatcherImplUtil.createTreeFromText( replacementToMake, el instanceof PsiMember && !isSymbolReplacement(el, context)? MatcherImplUtil.TreeContext.Class : MatcherImplUtil.TreeContext.Block, options.getMatchOptions().getFileType(), project ); if (listContext) { if (statements.length > 1) { elementParent.addRangeBefore(statements[0],statements[statements.length-1],elementToReplace); } else if (statements.length==1) { PsiElement replacement = getMatchExpr(statements[0]); handleModifierList(el, replacement, context); replacement = handleSymbolReplacemenent(replacement, el, context); if (replacement instanceof PsiTryStatement) { final List<PsiCodeBlock> unmatchedCatchBlocks = el.getUserData(MatcherImplUtil.UNMATCHED_CATCH_BLOCK_CONTENT_VAR_KEY); final List<PsiParameter> unmatchedCatchParams = el.getUserData(MatcherImplUtil.UNMATCHED_CATCH_PARAM_CONTENT_VAR_KEY); final PsiCatchSection[] catches = ((PsiTryStatement)replacement).getCatchSections(); if (unmatchedCatchBlocks!=null && unmatchedCatchParams!=null) { for(int i = unmatchedCatchBlocks.size()-1; i >= 0; --i) { final PsiParameter parameter = unmatchedCatchParams.get(i); final PsiCatchSection catchSection = PsiManager.getInstance(project).getElementFactory().createCatchSection( (PsiClassType)parameter.getType(), parameter.getName(), null ); catchSection.getCatchBlock().replace( unmatchedCatchBlocks.get(i) ); replacement.addAfter( catchSection, catches[catches.length-1] ); } } } elementParent.addBefore(replacement,elementToReplace); } } else if (statements.length > 0) { int i = 0; while( true ) { if (!(statements[i] instanceof PsiComment || statements[i] instanceof PsiWhiteSpace ) ) { break; } ++i; } if (i != 0) { elementParent.addRangeBefore(statements[0],statements[i-1],el); } PsiElement replacement = getMatchExpr(statements[i]); if (replacement instanceof PsiStatement && !(replacement.getLastChild() instanceof PsiJavaToken) ) { // assert w/o ; elementParent.addRangeBefore(replacement.getFirstChild(),replacement.getLastChild().getPrevSibling(),el); el.delete(); } else { // preserve comments handleModifierList(el, replacement, context); if (replacement instanceof PsiClass) { // modifier list final PsiStatement[] searchStatements = context.getCodeBlock().getStatements(); if (searchStatements.length > 0 && searchStatements[0] instanceof PsiDeclarationStatement && ((PsiDeclarationStatement)searchStatements[0]).getDeclaredElements()[0] instanceof PsiClass ) { final PsiClass replaceClazz = (PsiClass)replacement; final PsiClass queryClazz = (PsiClass)((PsiDeclarationStatement)searchStatements[0]).getDeclaredElements()[0]; final PsiClass clazz = (PsiClass)el; if (replaceClazz.getExtendsList().getTextLength() == 0 && queryClazz.getExtendsList().getTextLength() == 0 && clazz.getExtendsList().getTextLength() != 0 ) { replaceClazz.getExtendsList().addRange( clazz.getExtendsList().getFirstChild(),clazz.getExtendsList().getLastChild() ); } if (replaceClazz.getImplementsList().getTextLength() == 0 && queryClazz.getImplementsList().getTextLength() == 0 && clazz.getImplementsList().getTextLength() != 0 ) { replaceClazz.getImplementsList().addRange( clazz.getImplementsList().getFirstChild(), clazz.getImplementsList().getLastChild() ); } if (replaceClazz.getTypeParameterList().getTextLength() == 0 && queryClazz.getTypeParameterList().getTextLength() == 0 && clazz.getTypeParameterList().getTextLength() != 0 ) { // skip < and > replaceClazz.getTypeParameterList().replace( clazz.getTypeParameterList() ); } } } replacement = handleSymbolReplacemenent(replacement, el, context); el.replace(replacement); } } else { el.delete(); } } catch(IncorrectOperationException ex) { ex.printStackTrace(); } if (listContext) { for (SmartPsiElementPointer aMatchesPtrList : info.matchesPtrList) { try { PsiElement element = findRealSubstitutionElement( aMatchesPtrList.getElement() ); element.delete(); //PsiElement firstToDelete = element; //PsiElement lastToDelete = element; //final PsiElement prevSibling = element.getPrevSibling(); // //if (prevSibling instanceof PsiWhiteSpace) { // firstToDelete = prevSibling; //} // //final PsiElement nextSibling = element.getNextSibling(); //if (nextSibling instanceof PsiWhiteSpace) { // lastToDelete = nextSibling; //} //element.getParent().deleteChildRange(firstToDelete,lastToDelete); } catch (IncorrectOperationException ex) { ex.printStackTrace(); } } } try { CodeStyleManager codeStyleManager = PsiManager.getInstance(project).getCodeStyleManager(); final PsiFile containingFile = elementParent.getContainingFile(); if (containingFile !=null) { if (options.isToShortenFQN()) { if (containingFile.getVirtualFile() != null) { PsiDocumentManager.getInstance(project).commitDocument( FileDocumentManager.getInstance().getDocument(containingFile.getVirtualFile()) ); } final int paretOffset = elementParent.getTextRange().getStartOffset(); codeStyleManager.shortenClassReferences( containingFile, paretOffset, paretOffset + elementParent.getTextLength() ); } if (options.isToReformatAccordingToStyle()) { if (containingFile.getVirtualFile() != null) { PsiDocumentManager.getInstance(project).commitDocument( FileDocumentManager.getInstance().getDocument(containingFile.getVirtualFile()) ); } final int paretOffset = elementParent.getTextRange().getStartOffset(); codeStyleManager.reformatRange( containingFile, paretOffset, paretOffset + elementParent.getTextLength(), true ); } } } catch(IncorrectOperationException ex) { ex.printStackTrace(); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/9c2e64e4fd3d0bb80e77f27e3910e8d2ced2234e/ReplacerImpl.java/clean/plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/replace/impl/ReplacerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 741, 5729, 12, 6385, 453, 7722, 1046, 930, 774, 5729, 16, 7682, 727, 514, 6060, 774, 6464, 16, 7682, 727, 6910, 475, 28015, 1123, 16, 7682, 727, 453, 7722, 1046, 930, 3054, 13, 288, 565, 1250, 666, 1042, 273, 629, 31, 565, 775, 288, 1377, 309, 261, 2472, 422, 446, 13, 819, 273, 394, 6910, 475, 1042, 12, 2116, 16, 1984, 1769, 1377, 819, 18, 24394, 966, 273, 1123, 31, 1377, 453, 7722, 1046, 415, 273, 1104, 6955, 23798, 1046, 12, 2956, 774, 5729, 1769, 1377, 666, 1042, 273, 28106, 1042, 12, 292, 1769, 1377, 453, 7722, 1046, 8526, 6317, 273, 9757, 2828, 1304, 18, 2640, 2471, 1265, 1528, 12, 3639, 6060, 774, 6464, 16, 3639, 415, 1276, 453, 7722, 4419, 597, 401, 291, 5335, 15201, 12, 292, 16, 819, 9945, 1850, 9757, 2828, 1304, 18, 2471, 1042, 18, 797, 294, 1850, 9757, 2828, 1304, 18, 2471, 1042, 18, 1768, 16, 3639, 702, 18, 588, 2060, 1320, 7675, 588, 28941, 9334, 3639, 1984, 1377, 11272, 1377, 309, 261, 1098, 1042, 13, 288, 3639, 309, 261, 18393, 18, 2469, 405, 404, 13, 288, 1850, 930, 3054, 18, 1289, 2655, 4649, 12, 18393, 63, 20, 6487, 18393, 63, 18393, 18, 2469, 17, 21, 6487, 2956, 774, 5729, 1769, 3639, 289, 469, 309, 261, 18393, 18, 2469, 631, 21, 13, 288, 1850, 453, 7722, 1046, 6060, 273, 336, 2060, 4742, 12, 18393, 63, 20, 19226, 1850, 1640, 9829, 682, 12, 292, 16, 6060, 16, 819, 1769, 1850, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 5729, 12, 6385, 453, 7722, 1046, 930, 774, 5729, 16, 7682, 727, 514, 6060, 774, 6464, 16, 7682, 727, 6910, 475, 28015, 1123, 16, 7682, 727, 453, 7722, 1046, 930, 3054, 13, 288, 565, 1250, 666, 1042, 273, 629, 31, 565, 775, 288, 1377, 309, 261, 2472, 422, 446, 13, 819, 273, 394, 6910, 475, 1042, 12, 2116, 16, 1984, 1769, 1377, 819, 18, 24394, 966, 273, 1123, 31, 1377, 453, 7722, 1046, 415, 273, 1104, 6955, 23798, 1046, 12, 2956, 774, 5729, 1769, 1377, 666, 1042, 273, 28106, 1042, 12, 292, 1769, 1377, 453, 7722, 1046, 8526, 6317, 273, 9757, 2828, 1304, 18, 2640, 2471, 1265, 1528, 12, 3639, 6060, 774, 6464, 16, 3639, 2 ]
registerSupportedProtocol(s); } try {
public void doInitialise() throws InitialisationException { super.doInitialise(); axisTransportProtocols = new HashMap(); for (Iterator iterator = supportedSchemes.iterator(); iterator.hasNext();) { String s = (String) iterator.next(); if(!(s.equalsIgnoreCase("http") || s.equalsIgnoreCase("https") || s.equalsIgnoreCase("servlet"))) { axisTransportProtocols.put(s, MuleTransport.class); } registerSupportedProtocol(s); } try { MuleManager.getInstance().registerListener(this); } catch (NotificationException nex) { throw new InitialisationException(nex, this); } if (serverConfig == null) serverConfig = DEFAULT_MULE_AXIS_SERVER_CONFIG; if (clientConfig == null) clientConfig = DEFAULT_MULE_AXIS_CLIENT_CONFIG; serverProvider = createAxisProvider(serverConfig); clientProvider = createAxisProvider(clientConfig); // Create the AxisServer axisServer = new AxisServer(serverProvider); axisServer.setOption("axis.doAutoTypes", new Boolean(doAutoTypes)); // Register the Mule service serverProvider WSDDProvider.registerProvider(QNAME_MULE_PROVIDER, new WSDDJavaMuleProvider(this)); try { registerTransportTypes(); } catch (ClassNotFoundException e) { throw new InitialisationException(new org.mule.config.i18n.Message(Messages.CANT_LOAD_X_FROM_CLASSPATH_FILE, e.getMessage()), e, this); } //Overload the UrlHandlers provided by Axis so Mule can use its transports to move //Soap messages around String handlerPkgs = System.getProperty("java.protocol.handler.pkgs", null); if(handlerPkgs!=null) { if(!handlerPkgs.endsWith("|")) handlerPkgs += "|"; handlerPkgs = "org.mule.providers.soap.axis.transport|" + handlerPkgs; System.setProperty("java.protocol.handler.pkgs", handlerPkgs); logger.debug("Setting java.protocol.handler.pkgs to: " + handlerPkgs); } try { registerTypes((TypeMappingRegistryImpl)axisServer.getTypeMappingRegistry(), beanTypes); } catch (ClassNotFoundException e) { throw new InitialisationException(e, this); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/830f14d690359c87b5d2a106a753cc5435fb3a76/AxisConnector.java/clean/providers/axis/src/main/java/org/mule/providers/soap/axis/AxisConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 4435, 784, 1435, 1216, 10188, 10742, 503, 288, 3639, 2240, 18, 2896, 4435, 784, 5621, 3639, 2654, 6568, 21657, 273, 394, 4317, 5621, 3639, 364, 261, 3198, 2775, 273, 3260, 55, 13268, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 5411, 514, 272, 273, 261, 780, 13, 2775, 18, 4285, 5621, 5411, 309, 12, 5, 12, 87, 18, 14963, 5556, 2932, 2505, 7923, 747, 272, 18, 14963, 5556, 2932, 4528, 7923, 747, 272, 18, 14963, 5556, 2932, 23231, 6, 20349, 288, 7734, 2654, 6568, 21657, 18, 458, 12, 87, 16, 490, 725, 6568, 18, 1106, 1769, 5411, 289, 5411, 1744, 7223, 5752, 12, 87, 1769, 3639, 289, 3639, 775, 288, 5411, 490, 725, 1318, 18, 588, 1442, 7675, 4861, 2223, 12, 2211, 1769, 3639, 289, 1044, 261, 4386, 503, 290, 338, 13, 288, 5411, 604, 394, 10188, 10742, 503, 12, 82, 338, 16, 333, 1769, 3639, 289, 3639, 309, 261, 3567, 809, 422, 446, 13, 5411, 27477, 273, 3331, 67, 49, 5595, 67, 25614, 67, 4370, 67, 7203, 31, 3639, 309, 261, 2625, 809, 422, 446, 13, 5411, 20993, 273, 3331, 67, 49, 5595, 67, 25614, 67, 11935, 67, 7203, 31, 3639, 1438, 2249, 273, 752, 6558, 2249, 12, 3567, 809, 1769, 3639, 1004, 2249, 273, 752, 6558, 2249, 12, 2625, 809, 1769, 3639, 368, 1788, 326, 15509, 2081, 3639, 2654, 2081, 273, 394, 15509, 2081, 12, 3567, 2249, 1769, 3639, 2654, 2081, 18, 542, 1895, 2932, 4890, 18, 2896, 4965, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 4435, 784, 1435, 1216, 10188, 10742, 503, 288, 3639, 2240, 18, 2896, 4435, 784, 5621, 3639, 2654, 6568, 21657, 273, 394, 4317, 5621, 3639, 364, 261, 3198, 2775, 273, 3260, 55, 13268, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 5411, 514, 272, 273, 261, 780, 13, 2775, 18, 4285, 5621, 5411, 309, 12, 5, 12, 87, 18, 14963, 5556, 2932, 2505, 7923, 747, 272, 18, 14963, 5556, 2932, 4528, 7923, 747, 272, 18, 14963, 5556, 2932, 23231, 6, 20349, 288, 7734, 2654, 6568, 21657, 18, 458, 12, 87, 16, 490, 725, 6568, 18, 1106, 1769, 5411, 289, 5411, 1744, 7223, 5752, 12, 87, 1769, 3639, 289, 3639, 775, 288, 5411, 490, 725, 2 ]
public Object[] checkAttributes(Element element, boolean isGlobal, XSDocumentInfo schemaDoc) { if (element == null) return null; // update NamespaceSupport resolveNamespace(element, schemaDoc.fNamespaceSupport); String uri = DOMUtil.getNamespaceURI(element); String elName = DOMUtil.getLocalName(element); if (uri == null || !uri.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)) { reportSchemaError("s4s-elt-schema-ns", new Object[] {elName}); } // Get the proper registry: Hashtable eleAttrsMap = null; if (isGlobal) { eleAttrsMap = fEleAttrsMapG; } else { if (DOMUtil.getAttr(element, SchemaSymbols.ATT_REF) != null) eleAttrsMap = fEleAttrsMapR; else eleAttrsMap = fEleAttrsMapN; } // get desired attribute list of this element OneElement oneEle = (OneElement)eleAttrsMap.get(elName); if (oneEle == null) { reportSchemaError ("s4s-elt-invalid", new Object[] {elName}); return null; } //Hashtable attrValues = new Hashtable(); Object[] attrValues = getAvailableArray(); //Hashtable otherValues = new Hashtable(); long fromDefault = 0; Hashtable attrList = oneEle.attrList; // traverse all attributes Attr[] attrs = DOMUtil.getAttrs(element); Attr sattr = null; for (int i = 0; i < attrs.length; i++) { sattr = attrs[i]; // get the attribute name/value //String attrName = DOMUtil.getLocalName(sattr); String attrName = sattr.getName(); String attrVal = DOMUtil.getValue(sattr); // skip anything starts with x/X m/M l/L // simply put their values in the return hashtable if (attrName.toLowerCase().startsWith("xml")) { //attrValues.put(attrName, attrVal); //otherValues.put(attrName, attrVal); continue; } // for attributes with namespace prefix // String attrURI = DOMUtil.getNamespaceURI(sattr); if (attrURI != null && attrURI.length() != 0) { // attributes with schema namespace are not allowed // and not allowed on "document" and "appInfo" if (attrURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) || !oneEle.allowNonSchemaAttr) { reportSchemaError ("s4s-att-not-allowed", new Object[] {elName, attrName}); } else { // for attributes from other namespace // store them in a list, and TRY to validate them after // schema traversal (because it's "lax") //otherValues.put(attrName, attrVal); String attrRName = attrURI + "," + attrName; Vector values = (Vector)fNonSchemaAttrs.get(attrRName); if (values == null) { values = new Vector(); values.addElement(attrName); values.addElement(elName); values.addElement(attrVal); fNonSchemaAttrs.put(attrRName, values); } else { values.addElement(elName); values.addElement(attrVal); } } continue; } // check whether this attribute is allowed OneAttr oneAttr = (OneAttr)attrList.get(attrName); if (oneAttr == null) { reportSchemaError ("s4s-att-not-allowed", new Object[] {elName, attrName}); continue; } // check the value against the datatype try { Object retValue = null; // no checking on string needs to be done here. // no checking on xpath needs to be done here. // xpath values are validated in xpath parser if (oneAttr.dvIndex >= 0) { if (oneAttr.dvIndex != DT_STRING && oneAttr.dvIndex != DT_XPATH && oneAttr.dvIndex != DT_XPATH1) { DatatypeValidator dv = fExtraDVs[oneAttr.dvIndex]; retValue = dv.validate(attrVal, schemaDoc.fValidationContext); } // REVISIT: should have the datatype validators return // the object representation of the value. switch (oneAttr.dvIndex) { case DT_QNAME: retValue = resolveQName(attrVal, schemaDoc); break; default: retValue = attrVal; break; } //attrValues.put(attrName, retValue); attrValues[oneAttr.valueIndex] = retValue; } else { retValue = validate(attrName, attrVal, oneAttr.dvIndex, schemaDoc); //attrValues.put(attrName, retValue); attrValues[oneAttr.valueIndex] = retValue; } } catch (InvalidDatatypeValueException ide) { reportSchemaError ("s4s-att-invalid-value", new Object[] {elName, attrName, ide.getLocalizedMessage()}); if (oneAttr.dfltValue != null) //attrValues.put(attrName, oneAttr.dfltValue); attrValues[oneAttr.valueIndex] = oneAttr.dfltValue; } } // traverse all required attributes OneAttr[] reqAttrs = oneEle.attrArray; for (int i = 0; i < reqAttrs.length; i++) { OneAttr oneAttr = reqAttrs[i]; // REVISIT: throw an error on required attribute that does not // appear test case schema_invalid/S3_14/ibm3_14si12.xml // if the attribute didn't apprear, and // if the attribute is optional with default value, apply it if (oneAttr.dfltValue != null && DOMUtil.getAttr(element, oneAttr.name) == null) { //attrValues.put(oneAttr.name, oneAttr.dfltValue); attrValues[oneAttr.valueIndex] = oneAttr.dfltValue; fromDefault |= (1<<oneAttr.valueIndex); } } attrValues[ATTIDX_FROMDEFAULT] = new Long(fromDefault); //attrValues[ATTIDX_OTHERVALUES] = otherValues; // Check that minOccurs isn't greater than maxOccurs. // p-props-correct 2.1 if (attrValues[ATTIDX_MAXOCCURS] != null) { int min = ((XInt)attrValues[ATTIDX_MINOCCURS]).intValue(); int max = ((XInt)attrValues[ATTIDX_MAXOCCURS]).intValue(); if (max != SchemaSymbols.OCCURRENCE_UNBOUNDED) { if (min > max) { reportSchemaError ("p-props-correct:2.1", new Object[] {elName, attrValues[ATTIDX_MINOCCURS], attrValues[ATTIDX_MAXOCCURS]}); attrValues[ATTIDX_MINOCCURS] = attrValues[ATTIDX_MAXOCCURS]; } } } return attrValues; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b7b8c1a849260c2395c88b4579e68803be456fb7/XSAttributeChecker.java/buggy/src/org/apache/xerces/impl/v2/XSAttributeChecker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8526, 866, 2498, 12, 1046, 930, 16, 1250, 353, 5160, 16, 4766, 565, 1139, 55, 2519, 966, 1963, 1759, 13, 288, 3639, 309, 261, 2956, 422, 446, 13, 5411, 327, 446, 31, 3639, 368, 1089, 6005, 6289, 3639, 2245, 3402, 12, 2956, 16, 1963, 1759, 18, 74, 3402, 6289, 1769, 3639, 514, 2003, 273, 4703, 1304, 18, 588, 3402, 3098, 12, 2956, 1769, 3639, 514, 415, 461, 273, 4703, 1304, 18, 588, 29583, 12, 2956, 1769, 3639, 309, 261, 1650, 422, 446, 747, 401, 1650, 18, 14963, 12, 3078, 14821, 18, 3098, 67, 55, 10390, 6799, 14006, 11355, 3719, 288, 5411, 2605, 3078, 668, 2932, 87, 24, 87, 17, 20224, 17, 4821, 17, 2387, 3113, 394, 1033, 8526, 288, 292, 461, 22938, 3639, 289, 3639, 368, 968, 326, 5338, 4023, 30, 3639, 18559, 5043, 8262, 863, 273, 446, 31, 3639, 309, 261, 291, 5160, 13, 288, 5411, 5043, 8262, 863, 273, 284, 17274, 8262, 863, 43, 31, 3639, 289, 3639, 469, 288, 5411, 309, 261, 8168, 1304, 18, 588, 3843, 12, 2956, 16, 4611, 14821, 18, 789, 56, 67, 10771, 13, 480, 446, 13, 7734, 5043, 8262, 863, 273, 284, 17274, 8262, 863, 54, 31, 5411, 469, 7734, 5043, 8262, 863, 273, 284, 17274, 8262, 863, 50, 31, 3639, 289, 3639, 368, 336, 6049, 1566, 666, 434, 333, 930, 3639, 6942, 1046, 1245, 17274, 273, 261, 3335, 1046, 13, 6516, 8262, 863, 18, 588, 12, 292, 461, 1769, 3639, 309, 261, 476, 17274, 422, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8526, 866, 2498, 12, 1046, 930, 16, 1250, 353, 5160, 16, 4766, 565, 1139, 55, 2519, 966, 1963, 1759, 13, 288, 3639, 309, 261, 2956, 422, 446, 13, 5411, 327, 446, 31, 3639, 368, 1089, 6005, 6289, 3639, 2245, 3402, 12, 2956, 16, 1963, 1759, 18, 74, 3402, 6289, 1769, 3639, 514, 2003, 273, 4703, 1304, 18, 588, 3402, 3098, 12, 2956, 1769, 3639, 514, 415, 461, 273, 4703, 1304, 18, 588, 29583, 12, 2956, 1769, 3639, 309, 261, 1650, 422, 446, 747, 401, 1650, 18, 14963, 12, 3078, 14821, 18, 3098, 67, 55, 10390, 6799, 14006, 11355, 3719, 288, 5411, 2605, 3078, 668, 2932, 87, 24, 87, 17, 20224, 17, 4821, 17, 2387, 3113, 394, 2 ]
return getManager().getErrors().size() > 1; }
return getManager().getErrors().size() > 1; }
private boolean isMultipleJobErrors() { return getManager().getErrors().size() > 1; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 8438, 2278, 4229, 1435, 288, 3639, 327, 14154, 7675, 588, 4229, 7675, 1467, 1435, 405, 404, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 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, 3238, 1250, 353, 8438, 2278, 4229, 1435, 288, 3639, 327, 14154, 7675, 588, 4229, 7675, 1467, 1435, 405, 404, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
AntConfiguration antConfiguration = AntConfiguration.getInstance(myProject);
final AntConfiguration antConfiguration = AntConfiguration.getInstance(myProject);
public void setBuildFileProperties(DataContext dataContext) { final AntBuildFile buildFile = getCurrentBuildFile(); if (BuildFilePropertiesPanel.editBuildFile(getCurrentBuildFile())) { AntConfiguration antConfiguration = AntConfiguration.getInstance(myProject); antConfiguration.updateBuildFile(buildFile); myBuilder.refresh(); myTree.repaint(); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/7aef50db09aade9d22874e19cbef046fef08a98d/AntExplorer.java/clean/plugins/ant/src/com/intellij/lang/ant/config/explorer/AntExplorer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3116, 812, 2297, 12, 751, 1042, 501, 1042, 13, 288, 565, 727, 18830, 3116, 812, 1361, 812, 273, 5175, 3116, 812, 5621, 565, 309, 261, 3116, 812, 2297, 5537, 18, 4619, 3116, 812, 12, 588, 3935, 3116, 812, 1435, 3719, 288, 1377, 727, 18830, 1750, 17841, 1750, 273, 18830, 1750, 18, 588, 1442, 12, 4811, 4109, 1769, 1377, 17841, 1750, 18, 2725, 3116, 812, 12, 3510, 812, 1769, 1377, 3399, 1263, 18, 9144, 5621, 1377, 3399, 2471, 18, 14462, 1598, 5621, 565, 289, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 1071, 918, 444, 3116, 812, 2297, 12, 751, 1042, 501, 1042, 13, 288, 565, 727, 18830, 3116, 812, 1361, 812, 273, 5175, 3116, 812, 5621, 565, 309, 261, 3116, 812, 2297, 5537, 18, 4619, 3116, 812, 12, 588, 3935, 3116, 812, 1435, 3719, 288, 1377, 727, 18830, 1750, 17841, 1750, 273, 18830, 1750, 18, 588, 1442, 12, 4811, 4109, 1769, 1377, 17841, 1750, 18, 2725, 3116, 812, 12, 3510, 812, 1769, 1377, 3399, 1263, 18, 9144, 5621, 1377, 3399, 2471, 18, 14462, 1598, 5621, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String community = (String)it.next();
String community = (String)enums.nextElement();
private void showAllCommunities(String format) { StringBuffer xmlsb = new StringBuffer(); xmlsb.append(xmlTitle); xmlsb.append("<communities>\n"); for(Iterator it = communities.iterator(); it.hasNext();) { String community = (String)it.next(); xmlsb.append(" <community name=\"" + community + "\"/>\n"); } xmlsb.append("</communities>\n"); String xml = xmlsb.toString(); if(format.equals("xml")) showXML(xml); else { String html = getHTMLFromXML(xml, "communities.xsl"); out.print(html); } }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/2166fc472b474440443ec6aee54b217bb98e0fbf/ARServlet.java/buggy/mgmt_agent/src/org/cougaar/tools/robustness/ma/ui/ARServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2405, 1595, 12136, 318, 1961, 12, 780, 740, 13, 565, 288, 1377, 6674, 2025, 18366, 273, 394, 6674, 5621, 1377, 2025, 18366, 18, 6923, 12, 2902, 4247, 1769, 1377, 2025, 18366, 18, 6923, 2932, 32, 5702, 318, 1961, 5333, 82, 8863, 1377, 364, 12, 3198, 518, 273, 8391, 1961, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 1377, 288, 3639, 514, 19833, 273, 261, 780, 13, 7924, 87, 18, 4285, 1046, 5621, 3639, 2025, 18366, 18, 6923, 2932, 225, 411, 20859, 508, 13186, 397, 19833, 397, 7023, 19, 5333, 82, 8863, 1377, 289, 1377, 2025, 18366, 18, 6923, 2932, 1757, 5702, 318, 1961, 5333, 82, 8863, 1377, 514, 2025, 273, 2025, 18366, 18, 10492, 5621, 1377, 309, 12, 2139, 18, 14963, 2932, 2902, 6, 3719, 3639, 2405, 4201, 12, 2902, 1769, 1377, 469, 1377, 288, 3639, 514, 1729, 273, 336, 4870, 1265, 4201, 12, 2902, 16, 315, 5702, 318, 1961, 18, 30903, 8863, 3639, 596, 18, 1188, 12, 2620, 1769, 1377, 289, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 377, 3238, 918, 2405, 1595, 12136, 318, 1961, 12, 780, 740, 13, 565, 288, 1377, 6674, 2025, 18366, 273, 394, 6674, 5621, 1377, 2025, 18366, 18, 6923, 12, 2902, 4247, 1769, 1377, 2025, 18366, 18, 6923, 2932, 32, 5702, 318, 1961, 5333, 82, 8863, 1377, 364, 12, 3198, 518, 273, 8391, 1961, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 1377, 288, 3639, 514, 19833, 273, 261, 780, 13, 7924, 87, 18, 4285, 1046, 5621, 3639, 2025, 18366, 18, 6923, 2932, 225, 411, 20859, 508, 13186, 397, 19833, 397, 7023, 19, 5333, 82, 8863, 1377, 289, 1377, 2025, 18366, 18, 6923, 2932, 1757, 5702, 318, 1961, 5333, 82, 8863, 1377, 514, 2025, 273, 2025, 18366, 18, 10492, 5621, 2 ]
SiteData data,
private boolean createSiteProject( IProject project, IPath location, SiteData data, IProgressMonitor monitor) throws CoreException { monitor.beginTask(PDEPlugin.getResourceString(CREATING_PROJECT), 4); if (!location.append(project.getName()).toFile().exists()) { CoreUtility.createProject(project, location, monitor); project.open(monitor); CoreUtility.addNatureToProject( project, PDE.SITE_NATURE, monitor); } createFolders(project, monitor); if (!createdProject){ monitor.worked(2); monitor.subTask(PDEPlugin.getResourceString(CREATING_MANIFEST)); // create site.xml IFile file = createSiteManifest(project, data); createdProject = true; monitor.worked(1); // open manifest for editing openSiteManifest(file); monitor.worked(1); } else { if (!project.isOpen()) project.open(monitor); IFile siteFile = project.getFile("site.xml"); //$NON-NLS-1$ if (siteFile.exists()) openSiteManifest(siteFile); monitor.worked(4); } // create site.xsl, site.css, and index.html if (mainPage.isCreateUpdateSiteHTML()){ createXSLFile(project); createCSSFile(project); createHTMLFile(project); } return true; }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/3aaf685a5249b731300a438157bc8d12c16ba4a4/NewSiteProjectWizard.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/site/NewSiteProjectWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 752, 4956, 4109, 12, 202, 202, 45, 4109, 1984, 16, 202, 202, 45, 743, 2117, 16, 202, 202, 4956, 751, 501, 16, 202, 202, 45, 5491, 7187, 6438, 13, 202, 202, 15069, 30015, 288, 202, 202, 10259, 18, 10086, 2174, 12, 52, 1639, 3773, 18, 588, 1420, 780, 12, 5458, 28054, 67, 17147, 3631, 1059, 1769, 202, 202, 430, 16051, 3562, 18, 6923, 12, 4406, 18, 17994, 1435, 2934, 869, 812, 7675, 1808, 10756, 288, 1082, 202, 4670, 6497, 18, 2640, 4109, 12, 4406, 16, 2117, 16, 6438, 1769, 1082, 202, 4406, 18, 3190, 12, 10259, 1769, 1082, 202, 4670, 6497, 18, 1289, 50, 1231, 774, 4109, 12, 9506, 202, 4406, 16, 9506, 202, 52, 1639, 18, 20609, 67, 50, 10511, 16, 9506, 202, 10259, 1769, 202, 202, 97, 9506, 202, 2640, 14885, 12, 4406, 16, 6438, 1769, 9506, 202, 430, 16051, 4824, 4109, 15329, 1082, 202, 10259, 18, 1252, 329, 12, 22, 1769, 1082, 202, 10259, 18, 1717, 2174, 12, 52, 1639, 3773, 18, 588, 1420, 780, 12, 5458, 28054, 67, 9560, 30050, 10019, 1082, 202, 759, 752, 2834, 18, 2902, 1082, 202, 45, 812, 585, 273, 752, 4956, 9121, 12, 4406, 16, 501, 1769, 1082, 202, 4824, 4109, 273, 638, 31, 1082, 202, 10259, 18, 1252, 329, 12, 21, 1769, 1082, 202, 759, 1696, 5643, 364, 15755, 1082, 202, 3190, 4956, 9121, 12, 768, 1769, 1082, 202, 10259, 18, 1252, 329, 12, 21, 1769, 6862, 202, 97, 469, 288, 1082, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 752, 4956, 4109, 12, 202, 202, 45, 4109, 1984, 16, 202, 202, 45, 743, 2117, 16, 202, 202, 4956, 751, 501, 16, 202, 202, 45, 5491, 7187, 6438, 13, 202, 202, 15069, 30015, 288, 202, 202, 10259, 18, 10086, 2174, 12, 52, 1639, 3773, 18, 588, 1420, 780, 12, 5458, 28054, 67, 17147, 3631, 1059, 1769, 202, 202, 430, 16051, 3562, 18, 6923, 12, 4406, 18, 17994, 1435, 2934, 869, 812, 7675, 1808, 10756, 288, 1082, 202, 4670, 6497, 18, 2640, 4109, 12, 4406, 16, 2117, 16, 6438, 1769, 1082, 202, 4406, 18, 3190, 12, 10259, 1769, 1082, 202, 4670, 6497, 18, 1289, 50, 1231, 774, 4109, 12, 9506, 202, 4406, 16, 9506, 202, 52, 2 ]
IOperationHistory history, IAdaptable uiInfo, boolean undoing) {
IOperationHistory history, IAdaptable uiInfo, int doing) {
StatusReportingRunnable(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo, boolean undoing) { super(); this.operation = operation; this.history = history; this.undoing = undoing; this.uiInfo = uiInfo; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/65642e5c579ede009dd93df330663f23c1fa08e8/AdvancedValidationUserApprover.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/operations/AdvancedValidationUserApprover.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1482, 29285, 20013, 12, 45, 31224, 429, 2988, 1674, 16, 9506, 202, 45, 2988, 5623, 4927, 16, 467, 13716, 429, 5915, 966, 16, 1250, 15436, 310, 13, 288, 1082, 202, 9565, 5621, 1082, 202, 2211, 18, 7624, 273, 1674, 31, 1082, 202, 2211, 18, 8189, 273, 4927, 31, 1082, 202, 2211, 18, 31226, 310, 273, 15436, 310, 31, 1082, 202, 2211, 18, 4881, 966, 273, 5915, 966, 31, 202, 202, 97, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1482, 29285, 20013, 12, 45, 31224, 429, 2988, 1674, 16, 9506, 202, 45, 2988, 5623, 4927, 16, 467, 13716, 429, 5915, 966, 16, 1250, 15436, 310, 13, 288, 1082, 202, 9565, 5621, 1082, 202, 2211, 18, 7624, 273, 1674, 31, 1082, 202, 2211, 18, 8189, 273, 4927, 31, 1082, 202, 2211, 18, 31226, 310, 273, 15436, 310, 31, 1082, 202, 2211, 18, 4881, 966, 273, 5915, 966, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
numStatsRequests = new Counter();; numDataRequests = new Counter();; numIndexRequests = new Counter();; numLicenseRequests = new Counter();;
URLUpdateRequestsGWC2 = new Counter(); IPUpdateRequestsGWC2 = new Counter(); numStatsRequests = new Counter(); numDataRequests = new Counter(); numIndexRequests = new Counter(); numLicenseRequests = new Counter();
private Stats() { clientVersionRequests = Collections.synchronizedMap( new HashMap()); clientRequests = Collections.synchronizedMap( new HashMap()); getRequests = new Counter(); hostRequests = new Counter(); urlRequests = new Counter(); numUpdates = new Counter(); numRequests = new Counter(); updateRequestsGWC1 = new Counter(); updateRequestsGWC2 = new Counter(); numStatsRequests = new Counter();; numDataRequests = new Counter();; numIndexRequests = new Counter();; numLicenseRequests = new Counter();; startTime = new Date(); lastHour = startTime.getTime()/Data.MILLIS_PER_HOUR; lastDay = startTime.getTime()/Data.MILLIS_PER_DAY; lastWeek = startTime.getTime()/Data.MILLIS_PER_WEEK; stopTime = null; }
2284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2284/45e56ee285cb02fdd8a7d2b51a991d0d30b72657/Stats.java/buggy/org/mager/gwebcache/Stats.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11486, 1435, 288, 3639, 1004, 1444, 6421, 273, 13491, 5737, 18, 22043, 863, 12, 394, 4317, 10663, 3639, 1004, 6421, 273, 13491, 5737, 18, 22043, 863, 12, 394, 4317, 10663, 3639, 4328, 87, 273, 394, 9354, 5621, 3639, 1479, 6421, 273, 394, 9354, 5621, 3639, 880, 6421, 273, 394, 9354, 5621, 3639, 818, 5121, 273, 394, 9354, 5621, 3639, 818, 6421, 273, 394, 9354, 5621, 3639, 1089, 6421, 30947, 39, 21, 273, 394, 9354, 5621, 3639, 1089, 6421, 30947, 39, 22, 273, 394, 9354, 5621, 3639, 818, 4195, 6421, 273, 394, 9354, 5621, 31, 3639, 818, 751, 6421, 273, 394, 9354, 5621, 31, 3639, 818, 1016, 6421, 273, 394, 9354, 5621, 31, 3639, 818, 13211, 6421, 273, 394, 9354, 5621, 31, 3639, 8657, 273, 394, 2167, 5621, 3639, 1142, 13433, 273, 8657, 18, 588, 950, 1435, 19, 751, 18, 30816, 67, 3194, 67, 21372, 31, 3639, 1142, 4245, 273, 8657, 18, 588, 950, 1435, 19, 751, 18, 30816, 67, 3194, 67, 10339, 31, 3639, 1142, 6630, 273, 8657, 18, 588, 950, 1435, 19, 751, 18, 30816, 67, 3194, 67, 20274, 31, 3639, 2132, 950, 273, 446, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 3238, 11486, 1435, 288, 3639, 1004, 1444, 6421, 273, 13491, 5737, 18, 22043, 863, 12, 394, 4317, 10663, 3639, 1004, 6421, 273, 13491, 5737, 18, 22043, 863, 12, 394, 4317, 10663, 3639, 4328, 87, 273, 394, 9354, 5621, 3639, 1479, 6421, 273, 394, 9354, 5621, 3639, 880, 6421, 273, 394, 9354, 5621, 3639, 818, 5121, 273, 394, 9354, 5621, 3639, 818, 6421, 273, 394, 9354, 5621, 3639, 1089, 6421, 30947, 39, 21, 273, 394, 9354, 5621, 3639, 1089, 6421, 30947, 39, 22, 273, 394, 9354, 5621, 3639, 818, 4195, 6421, 273, 394, 9354, 5621, 31, 3639, 818, 751, 6421, 273, 394, 9354, 5621, 31, 3639, 818, 1016, 6421, 273, 394, 9354, 5621, 31, 3639, 818, 13211, 6421, 273, 2 ]
Collection added = actionsSubscription.getAddedCollection();
Collection added = null; if (mgrJustFound) { added = actionsSubscription.getCollection(); } else { added = actionsSubscription.getAddedCollection(); }
protected void execute() { Iterator iter; //First check to see if we know where the manager is. If not, look it up (if shouldRelayActions == true). if (managerAddress == null && shouldRelayActions) { //Check to see if the Coordinator's address is known... iter = managerAddressSubscription.getAddedCollection().iterator(); if (iter.hasNext()) { // find & set the ManagerAgent address managerAddress = ((RobustnessManagerID)iter.next()).getMessageAddress(); if (logger.isDebugEnabled()) logger.debug("++++++++++++++++++++++++++++> ManagerAddress: "+managerAddress.toString()); //Update the knob with status -- we know where the coordinator is iter = knobSubscription.getCollection().iterator(); if (iter.hasNext()) { ActionRelayManagerKnob = (ActionRelayManagerKnob)iter.next(); ActionRelayManagerKnob.setFoundCoordinator(managerAddress); } } else { if (logger.isDebugEnabled()) logger.debug("++++++++++++++++++++++++++++> ManagerAddress subscription empty."); } } if (managerAddress == null || !shouldRelayActions) return; //we cannot forward Actions until we known where the coordinator is //See if our knob has changed... iter = knobSubscription.getChangedCollection().iterator(); if (iter.hasNext()) { ActionRelayManagerKnob = (ActionRelayManagerKnob)iter.next(); shouldRelayActions = ActionRelayManagerKnob.getShouldRelay(); } //Wrap & Relay the Actions if (shouldRelayActions) { //First get all added Actions & wrap them with a ActionsWrapper Collection added = actionsSubscription.getAddedCollection(); for ( iter = added.iterator(); iter.hasNext() ; ) { Action a = (Action)iter.next(); logger.debug("============= Saw new Action (with UID="+a.getUID()+")-- Wrapping it."); UID uid = this.us.nextUID(); //gen UID for this wrapper ActionsWrapper aw = new ActionsWrapper(a, this.agentId, managerAddress, uid); //wrap the Action //registerUID(uid); //record all UIDs so we know what wrappers are out there. a.setWrapper(aw); this.publishAdd(aw); newWrappers.add(aw); } //Now look at changed Actions Collection changed = actionsSubscription.getChangedCollection(); Collection wrappers = wrapperSubscription.getCollection(); added.addAll(changed); wrappers.addAll(newWrappers); //add newly created wrappers (that aren't yet on the BB) to the ones from the BB for ( iter = added.iterator(); iter.hasNext() ; ) { Action a = (Action)iter.next(); //Find wrapper for this Action ActionsWrapper aw = findWrapper(a, wrappers); //runFilters if (aw != null && runFilters(aw)) { this.publishChange(aw); } } newWrappers.clear(); // clear this as these wrappers will now be committed to the BB } }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/1249ec099b1dc83bc2032ca53e8b76e881b75a73/ActionRelayManager.java/clean/Coordinator/src/org/cougaar/coordinator/ActionRelayManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1836, 1435, 288, 3639, 4498, 1400, 31, 3639, 368, 3759, 866, 358, 2621, 309, 732, 5055, 1625, 326, 3301, 353, 18, 971, 486, 16, 2324, 518, 731, 261, 430, 1410, 27186, 6100, 422, 638, 2934, 3639, 309, 261, 4181, 1887, 422, 446, 597, 1410, 27186, 6100, 13, 288, 5411, 368, 1564, 358, 2621, 309, 326, 10320, 4240, 1807, 1758, 353, 4846, 2777, 5411, 1400, 273, 3301, 1887, 6663, 18, 588, 8602, 2532, 7675, 9838, 5621, 5411, 309, 261, 2165, 18, 5332, 2134, 10756, 288, 2868, 368, 1104, 473, 444, 326, 8558, 3630, 1758, 9079, 3301, 1887, 273, 14015, 14444, 641, 4496, 1318, 734, 13, 2165, 18, 4285, 1435, 2934, 24906, 1887, 5621, 9079, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 1194, 18, 4148, 2932, 20934, 20934, 20934, 20934, 20934, 20934, 20934, 34, 8558, 1887, 30, 13773, 4181, 1887, 18, 10492, 10663, 17311, 368, 1891, 326, 15516, 947, 598, 1267, 1493, 732, 5055, 1625, 326, 24794, 353, 9079, 1400, 273, 15516, 947, 6663, 18, 588, 2532, 7675, 9838, 5621, 15604, 309, 261, 2165, 18, 5332, 2134, 10756, 288, 10402, 4382, 27186, 1318, 47, 82, 947, 273, 261, 1803, 27186, 1318, 47, 82, 947, 13, 2165, 18, 4285, 5621, 10402, 4382, 27186, 1318, 47, 82, 947, 18, 542, 2043, 25307, 12, 4181, 1887, 1769, 9079, 289, 21821, 289, 469, 288, 9079, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 1194, 18, 4148, 2932, 20934, 20934, 20934, 20934, 20934, 20934, 20934, 34, 8558, 1887, 4915, 1008, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 1435, 288, 3639, 4498, 1400, 31, 3639, 368, 3759, 866, 358, 2621, 309, 732, 5055, 1625, 326, 3301, 353, 18, 971, 486, 16, 2324, 518, 731, 261, 430, 1410, 27186, 6100, 422, 638, 2934, 3639, 309, 261, 4181, 1887, 422, 446, 597, 1410, 27186, 6100, 13, 288, 5411, 368, 1564, 358, 2621, 309, 326, 10320, 4240, 1807, 1758, 353, 4846, 2777, 5411, 1400, 273, 3301, 1887, 6663, 18, 588, 8602, 2532, 7675, 9838, 5621, 5411, 309, 261, 2165, 18, 5332, 2134, 10756, 288, 2868, 368, 1104, 473, 444, 326, 8558, 3630, 1758, 9079, 3301, 1887, 273, 14015, 14444, 641, 4496, 1318, 734, 13, 2165, 18, 4285, 1435, 2934, 24906, 1887, 5621, 9079, 309, 261, 4901, 2 ]
throw new SQLException(GT.tr("Statement has been closed."));
throw new PSQLException(GT.tr("Statement has been closed."), PSQLState.OBJECT_NOT_IN_STATE);
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // From Object if (method.getDeclaringClass().getName().equals("java.lang.Object")) { if (method.getName().equals("toString")) { return "Pooled statement wrapping physical statement " + st; } if (method.getName().equals("hashCode")) { return new Integer(st.hashCode()); } if (method.getName().equals("equals")) { if (args[0] == null) { return Boolean.FALSE; } try { return Proxy.isProxyClass(args[0].getClass()) && ((StatementHandler) Proxy.getInvocationHandler(args[0])).st == st ? Boolean.TRUE : Boolean.FALSE; } catch (ClassCastException e) { return Boolean.FALSE; } } return method.invoke(st, args); } // All the rest is from the Statement interface if (method.getName().equals("close")) { // closing an already closed object is a no-op if (st == null || con.isClosed()) return null; try { st.close(); } finally { con = null; st = null; } return null; } if (st == null || con.isClosed()) { throw new SQLException(GT.tr("Statement has been closed.")); } else if (method.getName().equals("getConnection")) { return con.getProxy(); // the proxied connection, not a physical connection } else { try { return method.invoke(st, args); } catch (InvocationTargetException e) { throw e.getTargetException(); } } }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/2d0245f6946ddb872b4191c2f65f0e490bf5e549/PooledConnectionImpl.java/clean/org/postgresql/ds/common/PooledConnectionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 3639, 1216, 4206, 3639, 288, 5411, 368, 6338, 1033, 5411, 309, 261, 2039, 18, 588, 3456, 14682, 7675, 17994, 7675, 14963, 2932, 6290, 18, 4936, 18, 921, 6, 3719, 5411, 288, 7734, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 10492, 6, 3719, 7734, 288, 10792, 327, 315, 52, 22167, 3021, 14702, 11640, 3021, 315, 397, 384, 31, 7734, 289, 7734, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 2816, 1085, 6, 3719, 7734, 288, 10792, 327, 394, 2144, 12, 334, 18, 2816, 1085, 10663, 7734, 289, 7734, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 14963, 6, 3719, 7734, 288, 10792, 309, 261, 1968, 63, 20, 65, 422, 446, 13, 10792, 288, 13491, 327, 3411, 18, 21053, 31, 10792, 289, 10792, 775, 10792, 288, 13491, 327, 7659, 18, 291, 3886, 797, 12, 1968, 63, 20, 8009, 588, 797, 10756, 597, 14015, 3406, 1503, 13, 7659, 18, 588, 9267, 1503, 12, 1968, 63, 20, 5717, 2934, 334, 422, 384, 692, 3411, 18, 18724, 294, 3411, 18, 21053, 31, 10792, 289, 10792, 1044, 261, 797, 22768, 425, 13, 10792, 288, 13491, 327, 3411, 18, 21053, 31, 10792, 289, 7734, 289, 7734, 327, 707, 18, 14407, 12, 334, 16, 833, 1769, 5411, 289, 5411, 368, 4826, 326, 3127, 353, 628, 326, 8056, 1560, 5411, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 4412, 6, 3719, 5411, 288, 7734, 368, 7647, 392, 1818, 4375, 733, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 3639, 1216, 4206, 3639, 288, 5411, 368, 6338, 1033, 5411, 309, 261, 2039, 18, 588, 3456, 14682, 7675, 17994, 7675, 14963, 2932, 6290, 18, 4936, 18, 921, 6, 3719, 5411, 288, 7734, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 10492, 6, 3719, 7734, 288, 10792, 327, 315, 52, 22167, 3021, 14702, 11640, 3021, 315, 397, 384, 31, 7734, 289, 7734, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 2816, 1085, 6, 3719, 7734, 288, 10792, 327, 394, 2144, 12, 334, 18, 2816, 1085, 10663, 7734, 289, 7734, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 14963, 6, 3719, 7734, 288, 10792, 309, 261, 2 ]
if (status == Status.ERROR || status == Status.COMPLETE || status == Status.CANCLED || status == Status.REFUSED) {
if (status == Status.error || status == Status.complete || status == Status.cancelled || status == Status.refused) {
public Object construct() { while (true) { try { Thread.sleep(10); FileTransfer.Status status = transfer.getStatus(); if (status == Status.ERROR || status == Status.COMPLETE || status == Status.CANCLED || status == Status.REFUSED) { break; } updateBar(transfer, nickname); } catch (InterruptedException e) { Log.error("Unable to sleep thread.", e); } } return ""; }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/SendMessage.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/SendMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 4872, 1435, 288, 7734, 1323, 261, 3767, 13, 288, 10792, 775, 288, 13491, 4884, 18, 19607, 12, 2163, 1769, 13491, 1387, 5912, 18, 1482, 1267, 273, 7412, 18, 588, 1482, 5621, 13491, 309, 261, 2327, 422, 2685, 18, 3589, 747, 18701, 1267, 422, 2685, 18, 15795, 747, 1267, 422, 2685, 18, 39, 1258, 39, 6687, 747, 18701, 1267, 422, 2685, 18, 10771, 20093, 13, 288, 18701, 898, 31, 13491, 289, 13491, 1089, 5190, 12, 13866, 16, 19570, 1769, 10792, 289, 10792, 1044, 261, 24485, 503, 425, 13, 288, 13491, 1827, 18, 1636, 2932, 3370, 358, 5329, 2650, 1199, 16, 425, 1769, 10792, 289, 7734, 289, 7734, 327, 1408, 31, 5411, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 4872, 1435, 288, 7734, 1323, 261, 3767, 13, 288, 10792, 775, 288, 13491, 4884, 18, 19607, 12, 2163, 1769, 13491, 1387, 5912, 18, 1482, 1267, 273, 7412, 18, 588, 1482, 5621, 13491, 309, 261, 2327, 422, 2685, 18, 3589, 747, 18701, 1267, 422, 2685, 18, 15795, 747, 1267, 422, 2685, 18, 39, 1258, 39, 6687, 747, 18701, 1267, 422, 2685, 18, 10771, 20093, 13, 288, 18701, 898, 31, 13491, 289, 13491, 1089, 5190, 12, 13866, 16, 19570, 1769, 10792, 289, 10792, 1044, 261, 24485, 503, 425, 13, 288, 13491, 1827, 18, 1636, 2932, 3370, 358, 5329, 2650, 1199, 16, 425, 1769, 10792, 289, 7734, 289, 7734, 327, 1408, 31, 5411, 289, 2, -100, -100, -100, -100, -100 ]
return getIcon(((ErrorInfo)element).getJob()); }
return getIcon(((ErrorInfo) element).getJob()); }
public Image getColumnImage(Object element, int columnIndex) { return getIcon(((ErrorInfo)element).getJob()); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 3421, 6716, 2040, 12, 921, 930, 16, 509, 14882, 13, 288, 7734, 327, 21724, 12443, 12, 668, 966, 13, 2956, 2934, 588, 2278, 10663, 5411, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 3421, 6716, 2040, 12, 921, 930, 16, 509, 14882, 13, 288, 7734, 327, 21724, 12443, 12, 668, 966, 13, 2956, 2934, 588, 2278, 10663, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (occurrences <= 1) { occurrences = 72; }
{ if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); }
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); int idx = 0; String lCurElemString; while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); if (Character.isWhitespace(type)) { // skip all spaces type = next; continue; } if (next == '!' || next == '_') { if (NATIVE_CODES.indexOf(type) == -1) { throw runtime.newArgumentError("'" + next + "' allowed only after types " + NATIVE_CODES); } next = format.nextChar(); } // Determine how many of type are needed (default: 1) boolean isStar = false; int occurrences = 1; if (next == '*') { if ("@Xxu".indexOf(type) != -1) { occurrences = 0; } else { occurrences = listSize; isStar = true; } next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); // an exception may occur here if an int can't hold this but ... occurrences = format.nextAsciiNumber(); next = format.nextChar(); } Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { idx = encode(runtime, occurrences, result, list, idx, converter); type = next; continue; } switch (type) { case '%' : throw runtime.newArgumentError("% is not supported"); case 'A' : case 'a' : case 'Z' : case 'B' : case 'b' : case 'H' : case 'h' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (isStar) { occurrences = lCurElemString.length(); } switch (type) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= occurrences) { result.append(lCurElemString.toCharArray(), 0, occurrences); } else {//need padding //I'm fairly sure there is a library call to create a //string filled with a given char with a given length but I couldn't find it result.append(lCurElemString); occurrences -= lCurElemString.length(); grow(result, (type == 'a') ? sNil10 : sSp10, occurrences); } break; //I believe there is a bug in the b and B case we skip a char too easily case 'b' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { if ((lCurElemString.charAt(i++) & 1) != 0) {//if the low bit is set currentByte |= 128; //set the high bit of the result } if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte >>= 1; //shift the byte } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte >>= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } //do some padding, I don't understand the padding strategy result.setLength(result.length() + padLength); } break; case 'B' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { currentByte |= lCurElemString.charAt(i++) & 1; // we filled up current byte; append it and create next one if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte <<= 1; } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte <<= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'h' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= (((currentChar & 15) + 9) & 15) << 4; } else { currentByte |= (currentChar & 15) << 4; } if ((i & 1) != 0) { currentByte >>= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'H' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= ((currentChar & 15) + 9) & 15; } else { currentByte |= currentChar & 15; } if ((i & 1) != 0) { currentByte <<= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; } break; } case 'x' : grow(result, sNil10, occurrences); break; case 'X' : try { shrink(result, occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `pack': X outside of string"); } break; case '@' : occurrences -= result.length(); if (occurrences > 0) { grow(result, sNil10, occurrences); } occurrences = -occurrences; if (occurrences > 0) { shrink(result, occurrences); } break; case 'u' : case 'm' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); occurrences = occurrences <= 2 ? 45 : occurrences / 3 * 3; for (;;) { encodes(runtime, result, lCurElemString, occurrences, type); if (occurrences >= lCurElemString.length()) { break; } lCurElemString = lCurElemString.substring(occurrences); } } break; case 'M' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (occurrences <= 1) { occurrences = 72; } qpencode(result, lCurElemString, occurrences); } break; case 'U' : char[] c = new char[occurrences]; for (int cIndex = 0; occurrences-- > 0; cIndex++) { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); long l = from == runtime.getNil() ? 0 : RubyNumeric.num2long(from); c[cIndex] = (char) l; } try { byte[] bytes = new String(c).getBytes("UTF-8"); result.append(RubyString.bytesToString(bytes)); } catch (java.io.UnsupportedEncodingException e) { assert false : "can't convert to UTF8"; } break; } type = next; } return runtime.newString(result.toString()); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 780, 2298, 12, 682, 666, 16, 19817, 780, 27107, 13, 288, 3639, 15908, 10340, 3099, 273, 27107, 18, 588, 5576, 5621, 3639, 14898, 682, 740, 273, 394, 14898, 682, 12, 2139, 780, 18, 24805, 10663, 3639, 6674, 563, 273, 394, 6674, 5621, 3639, 509, 666, 1225, 273, 666, 18, 1467, 5621, 3639, 1149, 618, 273, 740, 18, 4285, 2156, 5621, 7734, 509, 2067, 273, 374, 31, 3639, 514, 328, 2408, 7498, 780, 31, 7734, 1323, 12, 5, 2139, 18, 291, 861, 1638, 10756, 288, 540, 202, 759, 25433, 1024, 618, 16, 740, 434, 783, 618, 16, 15698, 434, 618, 540, 202, 3001, 1024, 273, 740, 18, 4285, 2156, 5621, 5411, 309, 261, 7069, 18, 291, 9431, 12, 723, 3719, 288, 368, 2488, 777, 7292, 7734, 618, 273, 1024, 31, 7734, 1324, 31, 5411, 289, 13491, 309, 261, 4285, 422, 15502, 747, 1024, 422, 4427, 13, 288, 7734, 309, 261, 50, 12992, 67, 17070, 18, 31806, 12, 723, 13, 422, 300, 21, 13, 288, 1171, 202, 12849, 3099, 18, 2704, 1379, 668, 2932, 4970, 397, 1024, 397, 1171, 202, 3639, 2491, 2935, 1338, 1839, 1953, 315, 397, 423, 12992, 67, 17070, 1769, 7734, 289, 7734, 1024, 273, 740, 18, 4285, 2156, 5621, 5411, 289, 5411, 368, 10229, 3661, 4906, 434, 618, 854, 3577, 261, 1886, 30, 404, 13, 5411, 1250, 353, 18379, 273, 629, 31, 5411, 509, 15698, 273, 404, 31, 5411, 309, 261, 4285, 422, 5306, 13, 288, 7734, 309, 7566, 36, 60, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 780, 2298, 12, 682, 666, 16, 19817, 780, 27107, 13, 288, 3639, 15908, 10340, 3099, 273, 27107, 18, 588, 5576, 5621, 3639, 14898, 682, 740, 273, 394, 14898, 682, 12, 2139, 780, 18, 24805, 10663, 3639, 6674, 563, 273, 394, 6674, 5621, 3639, 509, 666, 1225, 273, 666, 18, 1467, 5621, 3639, 1149, 618, 273, 740, 18, 4285, 2156, 5621, 7734, 509, 2067, 273, 374, 31, 3639, 514, 328, 2408, 7498, 780, 31, 7734, 1323, 12, 5, 2139, 18, 291, 861, 1638, 10756, 288, 540, 202, 759, 25433, 1024, 618, 16, 740, 434, 783, 618, 16, 15698, 434, 618, 540, 202, 3001, 1024, 273, 740, 18, 4285, 2156, 5621, 5411, 309, 261, 7069, 18, 291, 2 ]
if(result instanceof Number) {
if (result instanceof Number) {
protected Object[] getChildren() { if(children != null) return children; Context cx = Context.enter(); try { Object value = getObject(); if(value == null) return children = empty; if(value == ScriptableObject.NOT_FOUND || value == Undefined.instance) { return children = empty; } if(value instanceof Scriptable) { Scriptable scrip = (Scriptable)value; Scriptable proto = scrip.getPrototype(); Scriptable parent = scrip.getParentScope(); if(value instanceof NativeCall) { if(name != null && name.equals("this")) { // this is the local variables table root // don't show the __parent__ property parent = null; } else if(!(parent instanceof NativeCall)) { // don't bother showing [object Global] as // the __parent__ property which just creates // more noise parent = null; } } if(proto != null) { if(builtin == null) { builtin = new Scriptable[6]; builtin[0] = ScriptableObject.getObjectPrototype(scrip); builtin[1] = ScriptableObject.getFunctionPrototype(scrip); builtin[2] = ScriptableObject.getClassPrototype(scrip, "String"); builtin[3] = ScriptableObject.getClassPrototype(scrip, "Boolean"); builtin[4] = ScriptableObject.getClassPrototype(scrip, "Array"); builtin[5] = ScriptableObject.getClassPrototype(scrip, "Number"); } for(int i = 0; i < builtin.length; i++) { if(proto == builtin[i]) { proto = null; break; } } } if(scrip.has(0, scrip)) { int len = 0; try { Scriptable start = scrip; Scriptable obj = start; Object result = Undefined.instance; do { if(obj.has("length", start)) { result = obj.get("length", start); if (result != Scriptable.NOT_FOUND) break; } obj = obj.getPrototype(); } while (obj != null); if(result instanceof Number) { len = ((Number)result).intValue(); } } catch(Exception exc) { } if(parent != null) { len++; } if(proto != null) { len++; } children = new VariableNode[len]; int i = 0; int j = 0; if(proto != null) { children[i++] = new VariableNode(scrip, "__proto__"); j++; } if(parent != null) { children[i++] = new VariableNode(scrip, "__parent__"); j++; } for(; i < len; i++) { children[i] = new VariableNode(scrip, i-j); } } else { int len = 0; Hashtable t = new Hashtable(); Object[] ids = scrip.getIds(); if(proto != null) t.put("__proto__", "__proto__"); if(parent != null) t.put("__parent__", "__parent__"); if(ids.length > 0) { for(int j = 0; j < ids.length; j++) { t.put(ids[j], ids[j]); } } ids = new Object[t.size()]; Enumeration e = t.keys(); int j = 0; while(e.hasMoreElements()) { ids[j++] = e.nextElement().toString(); } if(ids != null && ids.length > 0) { java.util.Arrays.sort(ids, new java.util.Comparator() { public int compare(Object l, Object r) { return l.toString().compareToIgnoreCase(r.toString()); } }); len = ids.length; } children = new VariableNode[len]; for(int i = 0; i < len; i++) { Object id = ids[i]; children[i] = new VariableNode(scrip, id.toString()); } } } } catch (Exception exc) { exc.printStackTrace(); } finally { cx.exit(); } return children; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/bebd557da53b74c60ab8525aa96904d4cee6224c/VariableModel.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/VariableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1033, 8526, 10268, 1435, 288, 3639, 309, 12, 5906, 480, 446, 13, 327, 2325, 31, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 3639, 775, 288, 5411, 1033, 460, 273, 6455, 5621, 5411, 309, 12, 1132, 422, 446, 13, 327, 2325, 273, 1008, 31, 5411, 309, 12, 1132, 422, 22780, 921, 18, 4400, 67, 9294, 747, 9079, 460, 422, 22243, 18, 1336, 13, 288, 7734, 327, 2325, 273, 1008, 31, 5411, 289, 5411, 309, 12, 1132, 1276, 22780, 13, 288, 7734, 22780, 888, 21335, 273, 261, 3651, 429, 13, 1132, 31, 7734, 22780, 3760, 273, 888, 21335, 18, 588, 15846, 5621, 7734, 22780, 982, 273, 888, 21335, 18, 588, 3054, 3876, 5621, 7734, 309, 12, 1132, 1276, 16717, 1477, 13, 288, 10792, 309, 12, 529, 480, 446, 597, 508, 18, 14963, 2932, 2211, 6, 3719, 288, 13491, 368, 333, 353, 326, 1191, 3152, 1014, 1365, 13491, 368, 2727, 1404, 2405, 326, 1001, 2938, 972, 1272, 13491, 982, 273, 446, 31, 10792, 289, 469, 309, 12, 5, 12, 2938, 1276, 16717, 1477, 3719, 288, 13491, 368, 2727, 1404, 23440, 17253, 306, 1612, 8510, 65, 487, 13491, 368, 326, 1001, 2938, 972, 1272, 1492, 2537, 3414, 13491, 368, 1898, 10825, 13491, 982, 273, 446, 31, 10792, 289, 7734, 289, 7734, 309, 12, 9393, 480, 446, 13, 288, 10792, 309, 12, 24553, 422, 446, 13, 288, 13491, 15273, 273, 394, 22780, 63, 26, 15533, 13491, 15273, 63, 20, 65, 273, 18701, 22780, 921, 18, 588, 921, 15846, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 8526, 10268, 1435, 288, 3639, 309, 12, 5906, 480, 446, 13, 327, 2325, 31, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 3639, 775, 288, 5411, 1033, 460, 273, 6455, 5621, 5411, 309, 12, 1132, 422, 446, 13, 327, 2325, 273, 1008, 31, 5411, 309, 12, 1132, 422, 22780, 921, 18, 4400, 67, 9294, 747, 9079, 460, 422, 22243, 18, 1336, 13, 288, 7734, 327, 2325, 273, 1008, 31, 5411, 289, 5411, 309, 12, 1132, 1276, 22780, 13, 288, 7734, 22780, 888, 21335, 273, 261, 3651, 429, 13, 1132, 31, 7734, 22780, 3760, 273, 888, 21335, 18, 588, 15846, 5621, 7734, 22780, 982, 273, 888, 21335, 18, 588, 3054, 3876, 5621, 7734, 309, 12, 1132, 1276, 2 ]
public Template handleRequest( HttpServletRequest request, HttpServletResponse response, Context ctx ) throws Exception { Theme previewTheme = null; // try getting the preview theme String themeName = request.getParameter("theme"); if(themeName != null) { try { Roller roller = RollerFactory.getRoller(); ThemeManager themeMgr = roller.getThemeManager(); previewTheme = themeMgr.getTheme(themeName); } catch(ThemeNotFoundException tnfe) { // bogus theme specified ... don't worry about it // possibly "custom", but we'll handle that below } } if((previewTheme == null || !previewTheme.isEnabled()) && !themeName.equals(Theme.CUSTOM)) { // if we don't have a valid preview theme then // leave it up to our parent return super.handleRequest(request, response, ctx); } Template outty = null; Exception pageException = null; try { PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response,"", true, 8192, true); // Needed to init request attributes, etc. RollerRequest rreq = RollerRequest.getRollerRequest(pageContext); UserManager userMgr = RollerFactory.getRoller().getUserManager(); WebsiteData website = null; if (request.getAttribute(RollerRequest.OWNING_USER) != null) { UserData user = (UserData) request.getAttribute(RollerRequest.OWNING_USER); website = userMgr.getWebsite(user.getUserName()); } else { website = rreq.getWebsite(); } // construct a temporary Website object for this request // and set the EditorTheme to our previewTheme WebsiteData tmpWebsite = new WebsiteData(); tmpWebsite.setData(website); if(previewTheme != null) tmpWebsite.setEditorTheme(previewTheme.getName()); else tmpWebsite.setEditorTheme(Theme.CUSTOM); org.roller.model.Template page = null; // If request specified the page, then go with that page = tmpWebsite.getDefaultPage(); rreq.setPage(page); rreq.setWebsite(tmpWebsite); // Still no page ID, then we have a problem if ( page == null ) { throw new ResourceNotFoundException("Page not found"); } // this sets up the page we want to render outty = prepareForPageExecution(ctx, rreq, response, page); // if there is a decorator template then apply it if (website != null) { // parse/merge Page template StringWriter sw = new StringWriter(); outty.merge(ctx, sw); ctx.put("decorator_body", sw.toString()); // replace outty with decorator Template outty = findDecorator(tmpWebsite, (String) ctx.get("decorator")); } } catch( Exception e ) { pageException = e; response.setStatus( HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } if (pageException != null) { mLogger.error("EXCEPTION: in RollerServlet", pageException); request.setAttribute("DisplayException", pageException); } return outty; }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/51f68760e29994c3cbfb17a8ff7e143295aa36e2/PreviewServlet.java/buggy/src/org/roller/presentation/velocity/PreviewServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2283, 4110, 691, 12, 2940, 18572, 2293, 16, 2940, 4745, 607, 500, 550, 281, 575, 16, 1042, 5900, 13, 15069, 503, 95, 1315, 351, 881, 16041, 8335, 33, 2011, 31, 759, 698, 588, 1787, 451, 881, 16041, 7997, 780, 7997, 461, 33, 2293, 18, 588, 1662, 2932, 7997, 8863, 430, 12, 7997, 461, 5, 33, 2011, 15329, 698, 95, 4984, 749, 1539, 33, 4984, 749, 1733, 18, 588, 4984, 749, 5621, 8335, 1318, 7997, 9455, 33, 1539, 18, 588, 8335, 1318, 5621, 12102, 8335, 33, 7997, 9455, 18, 588, 8335, 12, 7997, 461, 1769, 97, 14683, 12, 8335, 3990, 5088, 3030, 15329, 759, 70, 717, 641, 76, 12604, 705, 939, 2777, 19752, 1404, 91, 21637, 21071, 305, 759, 917, 8781, 6, 3662, 3113, 12885, 1814, 5614, 2349, 80, 546, 270, 27916, 9090, 430, 12443, 12102, 8335, 631, 2011, 20081, 5, 12102, 8335, 18, 291, 1526, 10756, 10, 10, 5, 7997, 461, 18, 14963, 12, 8335, 18, 15136, 3719, 95, 759, 430, 91, 329, 265, 1404, 21516, 842, 567, 12102, 451, 351, 546, 275, 759, 19574, 305, 3648, 83, 477, 2938, 2463, 9565, 18, 4110, 691, 12, 2293, 16, 2740, 16, 5900, 1769, 97, 2283, 659, 4098, 33, 2011, 31, 503, 2433, 503, 33, 2011, 31, 698, 95, 1964, 1042, 2433, 1042, 33, 21796, 1733, 18, 588, 1868, 1733, 7675, 588, 1964, 1042, 12, 2211, 16, 2293, 16, 2740, 10837, 3113, 3767, 16, 28, 15561, 16, 3767, 1769, 759, 11449, 869, 2738, 2293, 4350, 16, 14175, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2283, 4110, 691, 12, 2940, 18572, 2293, 16, 2940, 4745, 607, 500, 550, 281, 575, 16, 1042, 5900, 13, 15069, 503, 95, 1315, 351, 881, 16041, 8335, 33, 2011, 31, 759, 698, 588, 1787, 451, 881, 16041, 7997, 780, 7997, 461, 33, 2293, 18, 588, 1662, 2932, 7997, 8863, 430, 12, 7997, 461, 5, 33, 2011, 15329, 698, 95, 4984, 749, 1539, 33, 4984, 749, 1733, 18, 588, 4984, 749, 5621, 8335, 1318, 7997, 9455, 33, 1539, 18, 588, 8335, 1318, 5621, 12102, 8335, 33, 7997, 9455, 18, 588, 8335, 12, 7997, 461, 1769, 97, 14683, 12, 8335, 3990, 5088, 3030, 15329, 759, 70, 717, 641, 76, 12604, 705, 939, 2777, 19752, 1404, 91, 21637, 21071, 305, 759, 2 ]
for (int i = 0; i < neighboors.length; i++) { if (neighboors[i].getSymbol().equals("C")) { if (neighboors[i].getFlag(CDKConstants.ISAROMATIC)) {
for (int i = 0; i < neighbours.length; i++) { if (neighbours[i].getSymbol().equals("C")) { if (neighbours[i].getFlag(CDKConstants.ISAROMATIC)) {
private int getAromaticCarbonsCount(AtomContainer ac, org.openscience.cdk.interfaces.Atom atom) { org.openscience.cdk.interfaces.Atom[] neighboors = ac.getConnectedAtoms(atom); int carocounter = 0; for (int i = 0; i < neighboors.length; i++) { if (neighboors[i].getSymbol().equals("C")) { if (neighboors[i].getFlag(CDKConstants.ISAROMATIC)) { carocounter += 1; } } } return carocounter; }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/11cd872c3dbcc51a117ad375706e7a5334b88daa/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/XLogPDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 4506, 27468, 39, 6779, 7008, 1380, 12, 3641, 2170, 1721, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 3641, 3179, 13, 288, 202, 202, 3341, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 3641, 8526, 1073, 2031, 1075, 1383, 273, 1721, 18, 588, 8932, 14280, 12, 7466, 1769, 202, 202, 474, 5926, 504, 2096, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1073, 2031, 1075, 1383, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 4644, 2031, 1075, 1383, 63, 77, 8009, 588, 5335, 7675, 14963, 2932, 39, 6, 3719, 288, 9506, 202, 430, 261, 4644, 2031, 1075, 1383, 63, 77, 8009, 588, 4678, 12, 39, 3398, 2918, 18, 5127, 985, 1872, 11781, 3719, 288, 6862, 202, 9815, 504, 2096, 1011, 404, 31, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 5926, 504, 2096, 31, 202, 97, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 4506, 27468, 39, 6779, 7008, 1380, 12, 3641, 2170, 1721, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 3641, 3179, 13, 288, 202, 202, 3341, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 3641, 8526, 1073, 2031, 1075, 1383, 273, 1721, 18, 588, 8932, 14280, 12, 7466, 1769, 202, 202, 474, 5926, 504, 2096, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1073, 2031, 1075, 1383, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 4644, 2031, 1075, 1383, 63, 77, 8009, 588, 5335, 7675, 14963, 2932, 39, 6, 3719, 288, 9506, 202, 430, 261, 4644, 2031, 1075, 1383, 63, 77, 8009, 2 ]
}
}
public void setEnclosingFig(Fig encloser) { if (encloser != null && encloser.getOwner() instanceof MNode && getOwner() != null) { MNode node = (MNode)encloser.getOwner(); MComponent comp = (MComponent)getOwner(); if (!comp.getDeploymentLocations().contains(node)) { comp.addDeploymentLocation(node); } super.setEnclosingFig(encloser); Vector figures = getEnclosedFigs(); if (getLayer() != null) { // elementOrdering(figures); Vector contents = getLayer().getContents(); int contentsSize = contents.size(); for (int j=0; j<contentsSize; j++) { Object o = contents.elementAt(j); if (o instanceof FigEdgeModelElement) { FigEdgeModelElement figedge = (FigEdgeModelElement) o; figedge.getLayer().bringToFront(figedge); } } } } else if (encloser == null && getEnclosingFig() != null) { if (getEnclosingFig() instanceof FigNodeModelElement) ((FigNodeModelElement)getEnclosingFig()).getEnclosedFigs().removeElement(this); _encloser = null; } /* if (!(getOwner() instanceof MModelElement)) return; if (getOwner() instanceof MComponent) { MComponent me = (MComponent) getOwner(); MNode mnode = null; if (encloser != null && (encloser.getOwner() instanceof MNode)) { mnode = (MNode) encloser.getOwner(); } if (encloser != null && (encloser.getOwner() instanceof MComponent)) { MComponent comp = (MComponent) encloser.getOwner(); Collection compNodes = comp.getDeploymentLocations(); Iterator it = compNodes.iterator(); while (it.hasNext()) { mnode = (MNode) it.next(); } } try { Collection nodes = me.getDeploymentLocations(); if ((nodes != null) && (nodes.size()>0) && (!(nodes.contains(mnode)))) { Iterator itnodes = nodes.iterator(); while (itnodes.hasNext()) { MNode cls = (MNode) itnodes.next(); me.removeDeploymentLocation(cls); } } if(mnode != null && (!(nodes.contains(mnode)))) { me.addDeploymentLocation(mnode); } setNode(figures); } catch (Exception e) { cat.error("could not set package", e); } } */ }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/FigComponent.java/buggy/src_new/org/argouml/uml/diagram/deployment/ui/FigComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 21594, 42, 360, 12, 42, 360, 2446, 383, 550, 13, 288, 3639, 309, 261, 1331, 383, 550, 480, 446, 597, 2446, 383, 550, 18, 588, 5541, 1435, 1276, 490, 907, 597, 13782, 1435, 480, 446, 13, 288, 3639, 490, 907, 756, 273, 261, 49, 907, 13, 1331, 383, 550, 18, 588, 5541, 5621, 3639, 490, 1841, 1161, 273, 261, 49, 1841, 13, 588, 5541, 5621, 3639, 309, 16051, 2919, 18, 588, 6733, 10985, 7675, 12298, 12, 2159, 3719, 288, 5411, 1161, 18, 1289, 6733, 2735, 12, 2159, 1769, 3639, 289, 3639, 2240, 18, 542, 21594, 42, 360, 12, 1331, 383, 550, 1769, 7734, 5589, 4291, 1823, 273, 336, 4280, 13783, 42, 360, 87, 5621, 5411, 309, 261, 588, 4576, 1435, 480, 446, 13, 288, 1850, 368, 930, 20493, 12, 470, 1823, 1769, 1850, 5589, 2939, 273, 25763, 7675, 588, 6323, 5621, 1850, 509, 2939, 1225, 273, 2939, 18, 1467, 5621, 1850, 364, 261, 474, 525, 33, 20, 31, 525, 32, 3980, 1225, 31, 525, 27245, 288, 5411, 1033, 320, 273, 2939, 18, 2956, 861, 12, 78, 1769, 5411, 309, 261, 83, 1276, 478, 360, 6098, 1488, 1046, 13, 288, 2868, 478, 360, 6098, 1488, 1046, 4291, 7126, 273, 261, 42, 360, 6098, 1488, 1046, 13, 320, 31, 2868, 4291, 7126, 18, 588, 4576, 7675, 2848, 310, 774, 9580, 12, 470, 7126, 1769, 5411, 289, 1850, 289, 3639, 289, 565, 289, 469, 565, 309, 261, 1331, 383, 550, 422, 446, 597, 336, 21594, 42, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 21594, 42, 360, 12, 42, 360, 2446, 383, 550, 13, 288, 3639, 309, 261, 1331, 383, 550, 480, 446, 597, 2446, 383, 550, 18, 588, 5541, 1435, 1276, 490, 907, 597, 13782, 1435, 480, 446, 13, 288, 3639, 490, 907, 756, 273, 261, 49, 907, 13, 1331, 383, 550, 18, 588, 5541, 5621, 3639, 490, 1841, 1161, 273, 261, 49, 1841, 13, 588, 5541, 5621, 3639, 309, 16051, 2919, 18, 588, 6733, 10985, 7675, 12298, 12, 2159, 3719, 288, 5411, 1161, 18, 1289, 6733, 2735, 12, 2159, 1769, 3639, 289, 3639, 2240, 18, 542, 21594, 42, 360, 12, 1331, 383, 550, 1769, 7734, 5589, 4291, 1823, 273, 336, 4280, 13783, 42, 360, 87, 5621, 5411, 2 ]
public void readTerms(BufferedReader in) throws IOException { String line; Map tagValues = new MultiHashMap(); List tagValuesList = new ArrayList(); Pattern tagValuePattern = Pattern.compile("(.+?[^\\\\]):(.+)"); Pattern stanzaHeadPattern = Pattern.compile("\\s*\\[(.+)\\]\\s*"); Matcher tvMatcher = tagValuePattern.matcher(""); Matcher headMatcher = stanzaHeadPattern.matcher(""); while ((line = in.readLine()) != null) { // First strip off any comments if (line.indexOf('!') >= 0) { line = line.substring(0, line.indexOf('!')); } tvMatcher.reset(line); headMatcher.reset(line); if (headMatcher.matches()) { String stanzaType = headMatcher.group(1); tagValues = new MultiHashMap(); // cut loose if (stanzaType.equals("Term")) { tagValuesList.add(tagValues); LOG.debug("recorded term with " + tagValues.size() + " tag values"); } else { LOG.warn("Ignoring " + stanzaType + " stanza"); } LOG.debug("matched stanza " + stanzaType); } else if (tvMatcher.matches()) { String tag = tvMatcher.group(1).trim(); String value = tvMatcher.group(2).trim(); tagValues.put(tag, value); LOG.debug("matched tag \"" + tag + "\" with value \"" + value + "\""); if (tag.equals("default-namespace")) { defaultNS = value; LOG.info("default-namespace is \"" + value + "\""); } } } in.close(); LOG.info("Found " + tagValuesList.size() + " root terms"); // Just build all the OboTerms disconnected for (Iterator iter = tagValuesList.iterator(); iter.hasNext();) { Map tvs = (Map) iter.next(); String id = (String) ((List) tvs.get("id")).get(0); String name = (String) ((List) tvs.get("name")).get(0); if (!isObsolete(tvs)) { OboTerm term = new OboTerm(id, name); terms.put(term.getId(), term); } else { LOG.debug("Skipping obselete term " + id + " : " + name); } } // Copy all terms into rootTerms map - non-root terms will be removed rootTerms = new HashMap(terms); // Now connect them all together for (Iterator iter = tagValuesList.iterator(); iter.hasNext();) { Map tvs = (Map) iter.next(); if (!isObsolete(tvs)) { configureDagTerm(tvs); } } }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/6db199a2bf8afbd47198d9bcb65222517b1fe061/OboParser.java/clean/intermine/integrate/main/src/org/intermine/ontology/OboParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 855, 11673, 12, 17947, 2514, 316, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 1635, 1047, 1972, 273, 394, 5991, 8658, 5621, 3639, 987, 1047, 1972, 682, 273, 394, 2407, 5621, 3639, 6830, 1047, 620, 3234, 273, 6830, 18, 11100, 2932, 21133, 35, 5969, 13011, 65, 4672, 21133, 2225, 1769, 3639, 6830, 21650, 1414, 3234, 273, 6830, 18, 11100, 2932, 1695, 87, 14, 1695, 63, 22770, 1695, 65, 1695, 87, 7388, 1769, 3639, 9757, 13521, 6286, 273, 1047, 620, 3234, 18, 22761, 2932, 8863, 3639, 9757, 910, 6286, 273, 21650, 1414, 3234, 18, 22761, 2932, 8863, 3639, 1323, 14015, 1369, 273, 316, 18, 896, 1670, 10756, 480, 446, 13, 288, 5411, 368, 5783, 2569, 3397, 1281, 5678, 5411, 309, 261, 1369, 18, 31806, 2668, 5124, 13, 1545, 374, 13, 288, 7734, 980, 273, 980, 18, 28023, 12, 20, 16, 980, 18, 31806, 2668, 5124, 10019, 5411, 289, 5411, 13521, 6286, 18, 6208, 12, 1369, 1769, 5411, 910, 6286, 18, 6208, 12, 1369, 1769, 5411, 309, 261, 1978, 6286, 18, 8436, 10756, 288, 7734, 514, 21650, 559, 273, 910, 6286, 18, 1655, 12, 21, 1769, 7734, 1047, 1972, 273, 394, 5991, 8658, 5621, 368, 6391, 28393, 7734, 309, 261, 541, 11939, 559, 18, 14963, 2932, 4065, 6, 3719, 288, 10792, 1047, 1972, 682, 18, 1289, 12, 2692, 1972, 1769, 10792, 2018, 18, 4148, 2932, 266, 3850, 785, 2481, 598, 315, 397, 1047, 1972, 18, 1467, 1435, 397, 315, 1047, 924, 8863, 7734, 289, 469, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 11673, 12, 17947, 2514, 316, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 1635, 1047, 1972, 273, 394, 5991, 8658, 5621, 3639, 987, 1047, 1972, 682, 273, 394, 2407, 5621, 3639, 6830, 1047, 620, 3234, 273, 6830, 18, 11100, 2932, 21133, 35, 5969, 13011, 65, 4672, 21133, 2225, 1769, 3639, 6830, 21650, 1414, 3234, 273, 6830, 18, 11100, 2932, 1695, 87, 14, 1695, 63, 22770, 1695, 65, 1695, 87, 7388, 1769, 3639, 9757, 13521, 6286, 273, 1047, 620, 3234, 18, 22761, 2932, 8863, 3639, 9757, 910, 6286, 273, 21650, 1414, 3234, 18, 22761, 2932, 8863, 3639, 1323, 14015, 1369, 273, 316, 18, 896, 1670, 10756, 480, 446, 13, 288, 5411, 368, 5783, 2569, 3397, 2 ]
return aci;
asOff += aciLength; moreChunks = (aci.setIndex(end) != aci.DONE); continue;
private AttributedCharacterIterator createModifiedACIForFontMatching (TextNode node, AttributedCharacterIterator aci) { // This looks like vestigial code, but perhaps it works around // a bug... // aci.first(); // AttributedCharacterSpanIterator acsi = // new AttributedCharacterSpanIterator(aci, aci.getBeginIndex(), // aci.getEndIndex()); // // AttributedString as = new AttributedString(acsi); AttributedString as = new AttributedString(aci); aci.first(); boolean moreChunks = true; while (moreChunks) { int start = aci.getRunStart (GVTAttributedCharacterIterator.TextAttribute.TEXT_COMPOUND_DELIMITER); int end = aci.getRunLimit (GVTAttributedCharacterIterator.TextAttribute.TEXT_COMPOUND_DELIMITER); AttributedCharacterSpanIterator runaci = new AttributedCharacterSpanIterator(aci, start, end); Vector fontFamilies = (Vector)runaci.getAttributes().get (GVTAttributedCharacterIterator.TextAttribute.GVT_FONT_FAMILIES); if (fontFamilies == null) { // no font families set, just return the same aci return aci; } // resolve any unresolved font families in the list Vector resolvedFontFamilies = new Vector(); for (int i = 0; i < fontFamilies.size(); i++) { GVTFontFamily fontFamily = (GVTFontFamily) fontFamilies.get(i); if (fontFamily instanceof UnresolvedFontFamily) { GVTFontFamily resolvedFontFamily = FontFamilyResolver.resolve((UnresolvedFontFamily)fontFamily); if (resolvedFontFamily != null) { // font family was successfully resolved resolvedFontFamilies.add(resolvedFontFamily); } } else { // already resolved resolvedFontFamilies.add(fontFamily); } } // if could not resolve at least one of the fontFamilies then use // the default font if (resolvedFontFamilies.size() == 0) { resolvedFontFamilies.add(FontFamilyResolver.defaultFont); } // create a list of fonts of the correct size Float fontSizeFloat = (Float)runaci.getAttributes().get(TextAttribute.SIZE); float fontSize = 12; if (fontSizeFloat != null) { fontSize = fontSizeFloat.floatValue(); } Vector gvtFonts = new Vector(); for (int i = 0; i < resolvedFontFamilies.size(); i++) { GVTFont font = ((GVTFontFamily)resolvedFontFamilies.get(i)).deriveFont(fontSize, runaci); gvtFonts.add(font); } // now for each char or group of chars in the string, // find a font that can display it int runaciLength = end-start; boolean[] fontAssigned = new boolean[runaciLength]; for (int i = 0; i < runaciLength; i++) { fontAssigned[i] = false; } for (int i = 0; i < gvtFonts.size(); i++) { // assign this font to all characters it can display if it has // not already been assigned GVTFont font = (GVTFont)gvtFonts.get(i); int currentRunIndex = runaci.getBeginIndex(); while (currentRunIndex < runaci.getEndIndex()) { int displayUpToIndex = font.canDisplayUpTo(runaci, currentRunIndex, end); if (displayUpToIndex == -1) { // for each char, if not already assigned a font, // assign this font to it for (int j = currentRunIndex; j < end; j++) { if (!fontAssigned[j - start]) { as.addAttribute(GVTAttributedCharacterIterator.TextAttribute.GVT_FONT, font, j, j+1); fontAssigned[j - start] = true; } } currentRunIndex = runaci.getEndIndex(); } else if (displayUpToIndex > currentRunIndex) { // could display some but not all, so for each // char it can display, if char not already // assigned a font, assign this font to it for (int j = currentRunIndex; j < displayUpToIndex; j++) { if (!fontAssigned[j - start]) { as.addAttribute(GVTAttributedCharacterIterator.TextAttribute.GVT_FONT, font, j, j+1); fontAssigned[j - start] = true; } } // set currentRunIndex to be one after the char couldn't display currentRunIndex = displayUpToIndex+1; } else { // couldn't display the current char currentRunIndex++; } } } // assign the first font to any chars haven't alreay been assigned for (int i = 0; i < runaciLength; i++) { if (!fontAssigned[i]) { GVTFontFamily fontFamily = FontFamilyResolver.getFamilyThatCanDisplay (runaci.setIndex(start+i)); if (fontFamily != null) { GVTFont font = fontFamily.deriveFont(fontSize, runaci); as.addAttribute(GVTAttributedCharacterIterator.TextAttribute.GVT_FONT, font, start+i, start+i+1); } else { // no available fonts can display it, just use the first font in the list as.addAttribute(GVTAttributedCharacterIterator.TextAttribute.GVT_FONT, gvtFonts.get(0), start+i, start+i+1); } } } if (aci.setIndex(end) == aci.DONE) { moreChunks = false; } } return as.getIterator(); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/ec5c7e43ea8c69519830a03c30ca27a7c284ae65/StrokingTextPainter.java/clean/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2380, 11050, 7069, 3198, 752, 4575, 2226, 45, 1290, 5711, 9517, 3639, 261, 17299, 756, 16, 2380, 11050, 7069, 3198, 1721, 77, 13, 288, 3639, 368, 1220, 10192, 3007, 331, 25999, 649, 981, 16, 1496, 26282, 518, 6330, 6740, 3639, 368, 279, 7934, 2777, 3639, 368, 1721, 77, 18, 3645, 5621, 3639, 368, 2380, 11050, 7069, 6952, 3198, 1721, 7722, 273, 3196, 565, 368, 394, 2380, 11050, 7069, 6952, 3198, 12, 1077, 77, 16, 1721, 77, 18, 588, 8149, 1016, 9334, 3196, 202, 759, 1171, 1721, 77, 18, 588, 24152, 10663, 3639, 368, 3639, 368, 2380, 11050, 780, 487, 273, 394, 2380, 11050, 780, 12, 1077, 7722, 1769, 3639, 2380, 11050, 780, 487, 273, 394, 2380, 11050, 780, 12, 1077, 77, 1769, 3639, 1721, 77, 18, 3645, 5621, 3639, 1250, 1898, 14975, 273, 638, 31, 3639, 1323, 261, 10161, 14975, 13, 288, 5411, 509, 787, 273, 1721, 77, 18, 588, 1997, 1685, 202, 202, 12, 25269, 56, 861, 11050, 7069, 3198, 18, 1528, 1499, 18, 5151, 67, 4208, 2419, 5240, 67, 19722, 1769, 5411, 509, 679, 273, 1721, 77, 18, 588, 1997, 3039, 202, 202, 12, 25269, 56, 861, 11050, 7069, 3198, 18, 1528, 1499, 18, 5151, 67, 4208, 2419, 5240, 67, 19722, 1769, 5411, 2380, 11050, 7069, 6952, 3198, 1086, 1077, 77, 7734, 273, 394, 2380, 11050, 7069, 6952, 3198, 12, 1077, 77, 16, 787, 16, 679, 1769, 5411, 5589, 3512, 25841, 273, 261, 5018, 13, 2681, 1077, 77, 18, 588, 2498, 7675, 588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2380, 11050, 7069, 3198, 752, 4575, 2226, 45, 1290, 5711, 9517, 3639, 261, 17299, 756, 16, 2380, 11050, 7069, 3198, 1721, 77, 13, 288, 3639, 368, 1220, 10192, 3007, 331, 25999, 649, 981, 16, 1496, 26282, 518, 6330, 6740, 3639, 368, 279, 7934, 2777, 3639, 368, 1721, 77, 18, 3645, 5621, 3639, 368, 2380, 11050, 7069, 6952, 3198, 1721, 7722, 273, 3196, 565, 368, 394, 2380, 11050, 7069, 6952, 3198, 12, 1077, 77, 16, 1721, 77, 18, 588, 8149, 1016, 9334, 3196, 202, 759, 1171, 1721, 77, 18, 588, 24152, 10663, 3639, 368, 3639, 368, 2380, 11050, 780, 487, 273, 394, 2380, 11050, 780, 12, 1077, 7722, 1769, 3639, 2380, 11050, 780, 487, 273, 394, 2380, 11050, 2 ]
attributeMap.setBoolean("allowsNull", myAllowsNull); attributeMap.setBoolean("isReadOnly", myReadOnly); attributeMap.setBoolean("isIndexed", myIndexed);
attributeMap.setBoolean("allowsNull", myAllowsNull, EOModelMap.YN); attributeMap.setBoolean("isReadOnly", myReadOnly, EOModelMap.YN); attributeMap.setBoolean("isIndexed", myIndexed, EOModelMap.YN);
public EOModelMap toMap() { EOModelMap attributeMap = myAttributeMap.cloneModelMap(); attributeMap.setString("name", myName, true); //$NON-NLS-1$ if (myPrototype != null) { attributeMap.setString("prototypeName", myPrototype.getName(), true); //$NON-NLS-1$ } attributeMap.setString("columnName", myColumnName, true); //$NON-NLS-1$ attributeMap.setString("externalType", myExternalType, true); //$NON-NLS-1$ attributeMap.setInteger("scale", myScale); //$NON-NLS-1$ attributeMap.setInteger("precision", myPrecision); //$NON-NLS-1$ attributeMap.setInteger("width", myWidth); //$NON-NLS-1$ attributeMap.setString("valueType", myValueType, true); //$NON-NLS-1$ attributeMap.setString("valueClassName", myValueClassName, true); //$NON-NLS-1$ attributeMap.setString("valueFactoryMethodName", myValueFactoryMethodName, true); //$NON-NLS-1$ if (myFactoryMethodArgumentType != null) { attributeMap.setString("factoryMethodArgumentType", myFactoryMethodArgumentType.getID(), true); //$NON-NLS-1$ } attributeMap.setString("adaptorValueConversionMethodName", myAdaptorValueConversionMethodName, true); //$NON-NLS-1$ attributeMap.setBoolean("allowsNull", myAllowsNull); //$NON-NLS-1$ attributeMap.setBoolean("isReadOnly", myReadOnly); //$NON-NLS-1$ attributeMap.setBoolean("isIndexed", myIndexed); //$NON-NLS-1$ attributeMap.setString("definition", myDefinition, true); //$NON-NLS-1$ attributeMap.setString("readFormat", myReadFormat, true); //$NON-NLS-1$ attributeMap.setString("writeFormat", myWriteFormat, true); //$NON-NLS-1$ return attributeMap; }
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/d4baf09fd4601817abef5e90b53ca0c30bc3403f/EOAttribute.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOAttribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 512, 51, 1488, 863, 24382, 1435, 288, 565, 512, 51, 1488, 863, 1566, 863, 273, 3399, 1499, 863, 18, 14056, 1488, 863, 5621, 565, 1566, 863, 18, 542, 780, 2932, 529, 3113, 3399, 461, 16, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 309, 261, 4811, 15846, 480, 446, 13, 288, 1377, 1566, 863, 18, 542, 780, 2932, 18541, 461, 3113, 3399, 15846, 18, 17994, 9334, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 289, 565, 1566, 863, 18, 542, 780, 2932, 2827, 461, 3113, 3399, 8516, 16, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1566, 863, 18, 542, 780, 2932, 9375, 559, 3113, 3399, 6841, 559, 16, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1566, 863, 18, 542, 4522, 2932, 5864, 3113, 3399, 5587, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1566, 863, 18, 542, 4522, 2932, 14548, 3113, 3399, 15410, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1566, 863, 18, 542, 4522, 2932, 2819, 3113, 3399, 2384, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1566, 863, 18, 542, 780, 2932, 1132, 559, 3113, 3399, 17930, 16, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1566, 863, 18, 542, 780, 2932, 1132, 3834, 3113, 3399, 620, 3834, 16, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1566, 863, 18, 542, 780, 2932, 1132, 1733, 11666, 3113, 3399, 620, 1733, 11666, 16, 638, 1769, 4329, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 512, 51, 1488, 863, 24382, 1435, 288, 565, 512, 51, 1488, 863, 1566, 863, 273, 3399, 1499, 863, 18, 14056, 1488, 863, 5621, 565, 1566, 863, 18, 542, 780, 2932, 529, 3113, 3399, 461, 16, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 309, 261, 4811, 15846, 480, 446, 13, 288, 1377, 1566, 863, 18, 542, 780, 2932, 18541, 461, 3113, 3399, 15846, 18, 17994, 9334, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 289, 565, 1566, 863, 18, 542, 780, 2932, 2827, 461, 3113, 3399, 8516, 16, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1566, 863, 18, 542, 780, 2932, 9375, 559, 3113, 3399, 6841, 559, 16, 638, 1769, 2 ]
newPath = mainPage.getLocationPath();
location = mainPage.getLocationURI();
private IProject createNewProject() { if (newProject != null) { return newProject; } // get a project handle final IProject newProjectHandle = mainPage.getProjectHandle(); // get a project descriptor IPath newPath = null; if (!mainPage.useDefaults()) { newPath = mainPage.getLocationPath(); } IWorkspace workspace = ResourcesPlugin.getWorkspace(); final IProjectDescription description = workspace .newProjectDescription(newProjectHandle.getName()); description.setLocation(newPath); // update the referenced project if provided if (referencePage != null) { IProject[] refProjects = referencePage.getReferencedProjects(); if (refProjects.length > 0) { description.setReferencedProjects(refProjects); } } // create the new project operation WorkspaceModifyOperation op = new WorkspaceModifyOperation() { protected void execute(IProgressMonitor monitor) throws CoreException { createProject(description, newProjectHandle, monitor); } }; // run the new project creation operation try { getContainer().run(true, true, op); } catch (InterruptedException e) { return null; } catch (InvocationTargetException e) { // ie.- one of the steps resulted in a core exception Throwable t = e.getTargetException(); if (t instanceof CoreException) { if (((CoreException) t).getStatus().getCode() == IResourceStatus.CASE_VARIANT_EXISTS) { MessageDialog .openError( getShell(), ResourceMessages.NewProject_errorMessage, NLS.bind(ResourceMessages.NewProject_caseVariantExistsError, newProjectHandle.getName()) ); } else { ErrorDialog.openError(getShell(), ResourceMessages.NewProject_errorMessage, null, // no special message ((CoreException) t).getStatus()); } } else { // CoreExceptions are handled above, but unexpected runtime // exceptions and errors may still occur. IDEWorkbenchPlugin.getDefault().getLog().log( new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH, 0, t .toString(), t)); MessageDialog .openError( getShell(), ResourceMessages.NewProject_errorMessage, NLS.bind(ResourceMessages.NewProject_internalError, t.getMessage())); } return null; } newProject = newProjectHandle; return newProject; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c3030d76123b051b1a39f59363c9a1acc57e3d1c/BasicNewProjectResourceWizard.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewProjectResourceWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 4109, 15291, 4109, 1435, 288, 3639, 309, 261, 2704, 4109, 480, 446, 13, 288, 1082, 202, 2463, 394, 4109, 31, 202, 202, 97, 3639, 368, 336, 279, 1984, 1640, 3639, 727, 467, 4109, 394, 4109, 3259, 273, 2774, 1964, 18, 588, 4109, 3259, 5621, 3639, 368, 336, 279, 1984, 4950, 3639, 467, 743, 14954, 273, 446, 31, 3639, 309, 16051, 5254, 1964, 18, 1202, 7019, 10756, 288, 1082, 202, 2704, 743, 273, 2774, 1964, 18, 588, 2735, 743, 5621, 202, 202, 97, 3639, 467, 8241, 6003, 273, 8128, 3773, 18, 588, 8241, 5621, 3639, 727, 467, 4109, 3291, 2477, 273, 6003, 7734, 263, 2704, 4109, 3291, 12, 2704, 4109, 3259, 18, 17994, 10663, 3639, 2477, 18, 542, 2735, 12, 2704, 743, 1769, 3639, 368, 1089, 326, 8042, 1984, 309, 2112, 3639, 309, 261, 6180, 1964, 480, 446, 13, 288, 5411, 467, 4109, 8526, 1278, 15298, 273, 2114, 1964, 18, 588, 22344, 15298, 5621, 5411, 309, 261, 1734, 15298, 18, 2469, 405, 374, 13, 288, 9506, 202, 3384, 18, 542, 22344, 15298, 12, 1734, 15298, 1769, 1082, 202, 97, 3639, 289, 3639, 368, 752, 326, 394, 1984, 1674, 3639, 14396, 11047, 2988, 1061, 273, 394, 14396, 11047, 2988, 1435, 288, 5411, 4750, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 10792, 1216, 30015, 288, 7734, 752, 4109, 12, 3384, 16, 394, 4109, 3259, 16, 6438, 1769, 5411, 289, 3639, 289, 31, 3639, 368, 1086, 326, 394, 1984, 6710, 1674, 3639, 775, 288, 5411, 9272, 7675, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 4109, 15291, 4109, 1435, 288, 3639, 309, 261, 2704, 4109, 480, 446, 13, 288, 1082, 202, 2463, 394, 4109, 31, 202, 202, 97, 3639, 368, 336, 279, 1984, 1640, 3639, 727, 467, 4109, 394, 4109, 3259, 273, 2774, 1964, 18, 588, 4109, 3259, 5621, 3639, 368, 336, 279, 1984, 4950, 3639, 467, 743, 14954, 273, 446, 31, 3639, 309, 16051, 5254, 1964, 18, 1202, 7019, 10756, 288, 1082, 202, 2704, 743, 273, 2774, 1964, 18, 588, 2735, 743, 5621, 202, 202, 97, 3639, 467, 8241, 6003, 273, 8128, 3773, 18, 588, 8241, 5621, 3639, 727, 467, 4109, 3291, 2477, 273, 6003, 7734, 263, 2704, 4109, 3291, 12, 2704, 4109, 3259, 18, 17994, 10663, 3639, 2477, 18, 2 ]
throw new RuntimeException("Method is not implemented");
throw new RuntimeException("Method is not implemented");
protected void destroyBuffers() { if (true) { throw new RuntimeException("Method is not implemented"); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3b500ee5922bc7890c276ddee76f1520b369f2fd/Component.java/buggy/modules/awt/src/main/java/common/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 5546, 13699, 1435, 288, 5411, 309, 261, 3767, 13, 288, 7734, 604, 394, 3235, 2932, 1305, 353, 486, 8249, 8863, 5411, 289, 3639, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 5546, 13699, 1435, 288, 5411, 309, 261, 3767, 13, 288, 7734, 604, 394, 3235, 2932, 1305, 353, 486, 8249, 8863, 5411, 289, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (Node)u3; }
return (Node) u3; }
public Node getEnsureNode() { return (Node)u3; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/clean/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 336, 12512, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 23, 31, 202, 97, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 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, 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, 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, 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, 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, 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, 2029, 336, 12512, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 23, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
JComponent comp = (JComponent)getFocusOwner(); InputMap map = comp.getInputMap(); ActionMap am = comp.getActionMap(); if(map != null && am != null && comp.isEnabled())
/* It seems that the "else" path below does not work. Apparently, is is there to prevent some keyboard events to be "swallowed" by jEdit when the keyboard event in fact should be scheduled to swing for further handling. On some "key typed" events, the "return null;" is triggered. However, these key events actually do not seem to be handled elseewhere, so they are not handled at all. This behaviour exists with old keyboard handling as well as with new keyboard handling. However, the new keyboard handling is more sensitive about what kinds of key events it receives. It expects to see all "key typed" events, which is incompatible with the "return null;" below. This bug triggers jEdit bug 1493185 ( https: Thus, we disable the possibility of key event swallowing for the new key event handling. */ } else { if(getFocusOwner() instanceof JComponent)
private KeyEvent _preprocessKeyEvent(KeyEvent evt) { if(isClosed()) return null; if(getFocusOwner() instanceof JComponent) { JComponent comp = (JComponent)getFocusOwner(); InputMap map = comp.getInputMap(); ActionMap am = comp.getActionMap(); if(map != null && am != null && comp.isEnabled()) { Object binding = map.get(KeyStroke.getKeyStrokeForEvent(evt)); if(binding != null && am.get(binding) != null) { return null; } } } if(getFocusOwner() instanceof JTextComponent) { // fix for the bug where key events in JTextComponents // inside views are also handled by the input handler if(evt.getID() == KeyEvent.KEY_PRESSED) { switch(evt.getKeyCode()) { case KeyEvent.VK_ENTER: case KeyEvent.VK_TAB: case KeyEvent.VK_BACK_SPACE: case KeyEvent.VK_SPACE: return null; } } } if(evt.isConsumed()) return null; if(Debug.DUMP_KEY_EVENTS) { Log.log(Log.DEBUG,this,"Key event (preprocessing) : " + GrabKeyDialog.toString(evt)); } return KeyEventWorkaround.processKeyEvent(evt); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/9a7b1bd50205fef2c227a4ccd404f09ea1fb4067/View.java/buggy/org/gjt/sp/jedit/View.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 23737, 389, 27545, 653, 1133, 12, 653, 1133, 6324, 13, 202, 95, 202, 202, 430, 12, 291, 7395, 10756, 1082, 202, 2463, 446, 31, 202, 202, 430, 12, 588, 9233, 5541, 1435, 1276, 29058, 13, 202, 202, 95, 1082, 202, 46, 1841, 1161, 273, 261, 46, 1841, 13, 588, 9233, 5541, 5621, 1082, 202, 1210, 863, 852, 273, 1161, 18, 588, 1210, 863, 5621, 1082, 202, 1803, 863, 2125, 273, 1161, 18, 588, 1803, 863, 5621, 1082, 202, 430, 12, 1458, 480, 446, 597, 2125, 480, 446, 597, 1161, 18, 291, 1526, 10756, 1082, 202, 95, 9506, 202, 921, 5085, 273, 852, 18, 588, 12, 653, 14602, 18, 588, 653, 14602, 1290, 1133, 12, 73, 11734, 10019, 9506, 202, 430, 12, 7374, 480, 446, 597, 2125, 18, 588, 12, 7374, 13, 480, 446, 13, 9506, 202, 95, 6862, 202, 2463, 446, 31, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 12, 588, 9233, 5541, 1435, 1276, 804, 1528, 1841, 13, 202, 202, 95, 1082, 202, 759, 2917, 364, 326, 7934, 1625, 498, 2641, 316, 804, 1528, 7171, 1082, 202, 759, 4832, 7361, 854, 2546, 7681, 635, 326, 810, 1838, 1082, 202, 430, 12, 73, 11734, 18, 588, 734, 1435, 422, 23737, 18, 3297, 67, 27388, 13, 1082, 202, 95, 9506, 202, 9610, 12, 73, 11734, 18, 588, 653, 1085, 10756, 9506, 202, 95, 9506, 202, 3593, 23737, 18, 58, 47, 67, 12278, 30, 9506, 202, 3593, 23737, 18, 58, 47, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23737, 389, 27545, 653, 1133, 12, 653, 1133, 6324, 13, 202, 95, 202, 202, 430, 12, 291, 7395, 10756, 1082, 202, 2463, 446, 31, 202, 202, 430, 12, 588, 9233, 5541, 1435, 1276, 29058, 13, 202, 202, 95, 1082, 202, 46, 1841, 1161, 273, 261, 46, 1841, 13, 588, 9233, 5541, 5621, 1082, 202, 1210, 863, 852, 273, 1161, 18, 588, 1210, 863, 5621, 1082, 202, 1803, 863, 2125, 273, 1161, 18, 588, 1803, 863, 5621, 1082, 202, 430, 12, 1458, 480, 446, 597, 2125, 480, 446, 597, 1161, 18, 291, 1526, 10756, 1082, 202, 95, 9506, 202, 921, 5085, 273, 852, 18, 588, 12, 653, 14602, 18, 588, 653, 14602, 1290, 1133, 12, 73, 11734, 2 ]
MAssociationEnd ae = (MAssociationEnd) endEnum.next(); MAssociation a = ae.getAssociation(); sb.append('\n').append(INDENT).append(generateAssociationFrom(a, ae));
Object ae = endEnum.next(); Object a = ModelFacade.getAssociation(ae); sb.append('\n'); sb.append(INDENT).append(generateAssociationFrom(a, ae));
public String generateClassifier(Object handle) { MClassifier cls = (MClassifier) handle; String generatedName = generateName(cls.getName()); String classifierKeyword; if (cls instanceof MClass) classifierKeyword = "class"; else if (cls instanceof MInterface) classifierKeyword = "interface"; else return ""; // actors and use cases StringBuffer sb = new StringBuffer(80); sb.append(DocumentationManager.getComments(cls)); // Add the comments for this classifier first. /* * Replaced 2001-09-26 STEFFEN ZSCHALER * * Was: * sb.append(DocumentationManager.getDocs(cls)).append("\n"); */ sb.append (generateConstraintEnrichedDocComment (cls)).append ("\n"); sb.append(generateVisibility(cls.getVisibility())); if (cls.isAbstract() && !(cls instanceof MInterface)) { if (VERBOSE) sb.append("/* abstract */ "); } if (cls.isLeaf()) { if (VERBOSE) sb.append("/* final */ "); } sb.append(classifierKeyword).append(" ").append(generatedName); String baseClass = generateGeneralzation(cls.getGeneralizations()); String tv = null; if (!baseClass.equals("")) sb.append(' ').append(": ").append(baseClass); // nsuml: realizations! if (cls instanceof MClass) { String interfaces = generateSpecification((MClass) cls); if (!interfaces.equals("")) { if (baseClass.equals("")) sb.append(": "); else sb.append(", "); sb.append(interfaces); } } sb.append("\n{"); tv = generateTaggedValues(cls); if (tv != null && tv.length() > 0) sb.append(INDENT).append(tv); // sb.append(generateConstraints(cls)); Removed 2001-09-26 STEFFEN ZSCHALER // generate constructor (Marian Heddesheimer) String make_constructor = cls.getTaggedValue("constructor"); if ( (make_constructor != null) && (make_constructor.equals("true")) ) { sb.append(INDENT).append("function ").append(cls.getName()).append("() {\n"); sb.append(generateSection(cls)); sb.append(INDENT).append("}\n"); } Collection strs = UmlHelper.getHelper().getCore().getAttributes(cls); if (strs != null) { sb.append('\n'); if (cls instanceof MClass) sb.append(INDENT).append("// Attributes\n"); Iterator strEnum = strs.iterator(); while (strEnum.hasNext()) { MStructuralFeature sf = (MStructuralFeature) strEnum.next(); sb.append('\n').append(INDENT).append(generate(sf)); tv = generateTaggedValues(sf); if (tv != null && tv.length() > 0) sb.append(INDENT).append(tv).append('\n'); } } Collection ends = cls.getAssociationEnds(); if (ends != null) { sb.append('\n'); if (cls instanceof MClass) sb.append(INDENT).append("// Associations\n"); Iterator endEnum = ends.iterator(); while (endEnum.hasNext()) { MAssociationEnd ae = (MAssociationEnd) endEnum.next(); MAssociation a = ae.getAssociation(); sb.append('\n').append(INDENT).append(generateAssociationFrom(a, ae)); tv = generateTaggedValues(a); if (tv != null && tv.length() > 0) sb.append(INDENT).append(tv); // sb.append(generateConstraints(a)); Removed 2001-09-26 STEFFEN ZSCHALER Why was this not in generateAssociationFrom ? } } // TODO: constructors Collection behs = UmlHelper.getHelper().getCore().getOperations(cls); if (behs != null) { sb.append ('\n'); sb.append (INDENT).append ("// Operations\n"); Iterator behEnum = behs.iterator(); while (behEnum.hasNext()) { MBehavioralFeature bf = (MBehavioralFeature) behEnum.next(); sb.append ('\n').append (INDENT).append (generate (bf)); tv = generateTaggedValues((MModelElement) bf); if ((cls instanceof MClass) && (bf instanceof MOperation) && (!((MOperation) bf).isAbstract())) { sb.append ('\n').append (INDENT).append ("{\n"); if (tv.length() > 0) sb.append (INDENT).append (tv); sb.append (generateMethodBody ((MOperation) bf)).append ('\n') .append (INDENT).append ("}\n"); } else { sb.append (";\n"); if (tv.length() > 0) sb.append (INDENT).append (tv).append ('\n'); } } } sb.append("} /* end ").append(classifierKeyword).append(' ').append(generatedName).append(" */\n"); return sb.toString(); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1866ce2aba8057ad992b7d3853a02863d492ab25/GeneratorCSharp.java/buggy/modules/csharp/src/org/argouml/language/csharp/generator/GeneratorCSharp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2103, 13860, 12, 921, 1640, 13, 288, 202, 49, 13860, 2028, 273, 261, 49, 13860, 13, 1640, 31, 202, 780, 4374, 461, 273, 2103, 461, 12, 6429, 18, 17994, 10663, 202, 780, 14622, 8736, 31, 202, 430, 261, 6429, 1276, 490, 797, 13, 14622, 8736, 273, 315, 1106, 14432, 202, 12107, 309, 261, 6429, 1276, 490, 1358, 13, 14622, 8736, 273, 315, 5831, 14432, 202, 12107, 327, 1408, 31, 368, 27141, 471, 999, 6088, 202, 780, 1892, 2393, 273, 394, 6674, 12, 3672, 1769, 202, 18366, 18, 6923, 12, 18905, 1318, 18, 588, 9051, 12, 6429, 10019, 225, 368, 1436, 326, 5678, 364, 333, 14622, 1122, 18, 202, 20308, 202, 380, 6910, 72, 4044, 21, 17, 5908, 17, 5558, 22839, 2246, 1157, 2285, 55, 1792, 1013, 654, 202, 380, 202, 380, 28938, 30, 202, 380, 202, 2393, 18, 6923, 12, 18905, 1318, 18, 588, 12656, 12, 6429, 13, 2934, 6923, 31458, 82, 8863, 202, 5549, 202, 18366, 18, 6923, 261, 7163, 5806, 664, 12761, 329, 1759, 4469, 261, 6429, 13, 2934, 6923, 7566, 64, 82, 8863, 202, 18366, 18, 6923, 12, 7163, 10135, 12, 6429, 18, 588, 10135, 1435, 10019, 202, 430, 261, 6429, 18, 291, 7469, 1435, 597, 401, 12, 6429, 1276, 490, 1358, 3719, 288, 202, 565, 309, 261, 21900, 13, 2393, 18, 6923, 2932, 20308, 8770, 1195, 315, 1769, 202, 97, 202, 430, 261, 6429, 18, 291, 9858, 10756, 288, 202, 565, 309, 261, 21900, 13, 2393, 18, 6923, 2932, 20308, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 13860, 12, 921, 1640, 13, 288, 202, 49, 13860, 2028, 273, 261, 49, 13860, 13, 1640, 31, 202, 780, 4374, 461, 273, 2103, 461, 12, 6429, 18, 17994, 10663, 202, 780, 14622, 8736, 31, 202, 430, 261, 6429, 1276, 490, 797, 13, 14622, 8736, 273, 315, 1106, 14432, 202, 12107, 309, 261, 6429, 1276, 490, 1358, 13, 14622, 8736, 273, 315, 5831, 14432, 202, 12107, 327, 1408, 31, 368, 27141, 471, 999, 6088, 202, 780, 1892, 2393, 273, 394, 6674, 12, 3672, 1769, 202, 18366, 18, 6923, 12, 18905, 1318, 18, 588, 9051, 12, 6429, 10019, 225, 368, 1436, 326, 5678, 364, 333, 14622, 1122, 18, 202, 20308, 202, 380, 6910, 72, 4044, 21, 17, 2 ]
this.twoAndThree = new HashMap(); this.twoAndThree.putAll(sourceTwoMap); this.twoAndThree.putAll(collidingMap);
this.oneAndTwoAndThree = new HashMap(); MultivaluedAttributeMerger merger = new MultivaluedAttributeMerger(); this.oneAndTwoAndThree = merger.mergeAttributes(this.oneAndTwoAndThree, sourceOneMap); this.oneAndTwoAndThree = merger.mergeAttributes(this.oneAndTwoAndThree, sourceTwoMap); this.oneAndTwoAndThree = merger.mergeAttributes(this.oneAndTwoAndThree, collidingMap);
protected void setUp() { this.sourceOne = new MockPersonAttributeDao(); Map sourceOneMap = new HashMap(); sourceOneMap.put("shirtColor", "blue"); sourceOneMap.put("favoriteColor", "purple"); this.sourceOne.setBackingMap(sourceOneMap); this.sourceTwo = new MockPersonAttributeDao(); Map sourceTwoMap = new HashMap(); sourceTwoMap.put("tieColor", "black"); sourceTwoMap.put("shoeType", "closed-toe"); this.sourceTwo.setBackingMap(sourceTwoMap); this.oneAndTwo = new HashMap(); this.oneAndTwo.putAll(sourceOneMap); this.oneAndTwo.putAll(sourceTwoMap); this.collidesWithOne = new MockPersonAttributeDao(); Map collidingMap = new HashMap(); collidingMap.put("shirtColor", "white"); collidingMap.put("favoriteColor", "red"); this.collidesWithOne.setBackingMap(collidingMap); this.twoAndThree = new HashMap(); this.twoAndThree.putAll(sourceTwoMap); this.twoAndThree.putAll(collidingMap); }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/97abda07d63a7f9357116e09b8e8970c445e155f/MergingPersonAttributeDaoImplTest.java/buggy/tests/org/jasig/portal/services/persondir/support/MergingPersonAttributeDaoImplTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 288, 3639, 333, 18, 3168, 3335, 273, 394, 7867, 8346, 1499, 11412, 5621, 3639, 1635, 1084, 3335, 863, 273, 394, 4317, 5621, 3639, 1084, 3335, 863, 18, 458, 2932, 674, 2714, 2957, 3113, 315, 14081, 8863, 3639, 1084, 3335, 863, 18, 458, 2932, 19731, 280, 1137, 2957, 3113, 315, 12688, 1802, 8863, 3639, 333, 18, 3168, 3335, 18, 542, 2711, 310, 863, 12, 3168, 3335, 863, 1769, 7734, 333, 18, 3168, 11710, 273, 394, 7867, 8346, 1499, 11412, 5621, 3639, 1635, 1084, 11710, 863, 273, 394, 4317, 5621, 3639, 1084, 11710, 863, 18, 458, 2932, 30858, 2957, 3113, 315, 11223, 8863, 3639, 1084, 11710, 863, 18, 458, 2932, 674, 15548, 559, 3113, 315, 12204, 17, 869, 73, 8863, 3639, 333, 18, 3168, 11710, 18, 542, 2711, 310, 863, 12, 3168, 11710, 863, 1769, 7734, 333, 18, 476, 1876, 11710, 273, 394, 4317, 5621, 3639, 333, 18, 476, 1876, 11710, 18, 458, 1595, 12, 3168, 3335, 863, 1769, 3639, 333, 18, 476, 1876, 11710, 18, 458, 1595, 12, 3168, 11710, 863, 1769, 7734, 333, 18, 12910, 4369, 1190, 3335, 273, 394, 7867, 8346, 1499, 11412, 5621, 3639, 1635, 4508, 10415, 863, 273, 394, 4317, 5621, 3639, 4508, 10415, 863, 18, 458, 2932, 674, 2714, 2957, 3113, 315, 14739, 8863, 3639, 4508, 10415, 863, 18, 458, 2932, 19731, 280, 1137, 2957, 3113, 315, 1118, 8863, 3639, 333, 18, 12910, 4369, 1190, 3335, 18, 542, 2711, 310, 863, 12, 12910, 10415, 863, 1769, 7734, 333, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 1435, 288, 3639, 333, 18, 3168, 3335, 273, 394, 7867, 8346, 1499, 11412, 5621, 3639, 1635, 1084, 3335, 863, 273, 394, 4317, 5621, 3639, 1084, 3335, 863, 18, 458, 2932, 674, 2714, 2957, 3113, 315, 14081, 8863, 3639, 1084, 3335, 863, 18, 458, 2932, 19731, 280, 1137, 2957, 3113, 315, 12688, 1802, 8863, 3639, 333, 18, 3168, 3335, 18, 542, 2711, 310, 863, 12, 3168, 3335, 863, 1769, 7734, 333, 18, 3168, 11710, 273, 394, 7867, 8346, 1499, 11412, 5621, 3639, 1635, 1084, 11710, 863, 273, 394, 4317, 5621, 3639, 1084, 11710, 863, 18, 458, 2932, 30858, 2957, 3113, 315, 11223, 8863, 3639, 1084, 11710, 863, 18, 458, 2932, 674, 15548, 559, 3113, 315, 12204, 2 ]
setter.invoke(obj, args );
setter.invoke(obj, args );
private void setValues(Object obj, List values) throws GameParseException { for(int i = 0; i < values.size() ; i++) { Element current = (Element) values.get(i); //find the setter String name = null; Method setter = null; try { name = current.getAttribute("name"); if(name.length() == 0) throw new GameParseException("option name with 0 length"); name = "set" + capitalizeFirstLetter(name); setter = obj.getClass().getMethod(name, SETTER_ARGS); } catch(NoSuchMethodException nsme) { throw new GameParseException("No setter for attatchment option. Setter:" + name + " Class:" + obj.getClass().getName()); } //find the value String value = current.getAttribute("value"); //invoke try { Object[] args = {value}; setter.invoke(obj, args ); } catch(IllegalAccessException iae) { throw new GameParseException("Setter not public. Setter:" + name + " Class:" + obj.getClass().getName()); } catch(InvocationTargetException ite) { throw new GameParseException("Invocation Exception. Message:" + ite.getMessage()); } } }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/GameParser.java/clean/src/games/strategy/engine/data/GameParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 27466, 12, 921, 1081, 16, 987, 924, 13, 1216, 14121, 13047, 202, 95, 202, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 924, 18, 1467, 1435, 274, 277, 27245, 202, 202, 95, 1082, 202, 1046, 783, 273, 261, 1046, 13, 924, 18, 588, 12, 77, 1769, 25083, 202, 759, 4720, 326, 7794, 1082, 202, 780, 508, 273, 446, 31, 1082, 202, 1305, 7794, 273, 446, 31, 1082, 202, 698, 1082, 202, 95, 9506, 202, 529, 273, 783, 18, 588, 1499, 2932, 529, 8863, 9506, 202, 430, 12, 529, 18, 2469, 1435, 422, 374, 13, 6862, 202, 12849, 394, 14121, 13047, 2932, 3482, 508, 598, 374, 769, 8863, 9506, 202, 529, 273, 315, 542, 6, 397, 17451, 3759, 13938, 12, 529, 1769, 9506, 202, 18062, 273, 1081, 18, 588, 797, 7675, 588, 1305, 12, 529, 16, 3174, 11976, 67, 22439, 1769, 1082, 202, 97, 1044, 12, 28341, 14513, 3153, 3501, 13, 1082, 202, 95, 9506, 202, 12849, 394, 14121, 13047, 2932, 2279, 7794, 364, 2403, 505, 475, 1456, 18, 1000, 387, 2773, 397, 508, 397, 315, 1659, 2773, 397, 1081, 18, 588, 797, 7675, 17994, 10663, 1082, 202, 97, 25083, 202, 759, 4720, 326, 460, 1082, 202, 780, 460, 273, 783, 18, 588, 1499, 2932, 1132, 8863, 25083, 202, 759, 14407, 1082, 202, 698, 1082, 202, 95, 9506, 202, 921, 8526, 833, 273, 288, 1132, 20451, 9506, 202, 18062, 18, 14407, 12, 2603, 16, 833, 11272, 25083, 202, 97, 1044, 12, 12195, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27466, 12, 921, 1081, 16, 987, 924, 13, 1216, 14121, 13047, 202, 95, 202, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 924, 18, 1467, 1435, 274, 277, 27245, 202, 202, 95, 1082, 202, 1046, 783, 273, 261, 1046, 13, 924, 18, 588, 12, 77, 1769, 25083, 202, 759, 4720, 326, 7794, 1082, 202, 780, 508, 273, 446, 31, 1082, 202, 1305, 7794, 273, 446, 31, 1082, 202, 698, 1082, 202, 95, 9506, 202, 529, 273, 783, 18, 588, 1499, 2932, 529, 8863, 9506, 202, 430, 12, 529, 18, 2469, 1435, 422, 374, 13, 6862, 202, 12849, 394, 14121, 13047, 2932, 3482, 508, 598, 374, 769, 8863, 9506, 202, 529, 273, 315, 542, 2 ]
{ if ( StaticEntity.getClient().permitsContinue() ) StaticEntity.getClient().makeRequest( requests[i], repeatCount ); }
StaticEntity.getClient().makeRequest( requests[i], repeatCount );
public void run() { for ( int i = 0; i < requests.length; ++i ) { // Chat requests are only run once, no matter what // the repeat count is. This is also to avoid the // message prompts you get otherwise. if ( requests[i] instanceof ChatRequest ) requests[i].run(); // Setting it up so that derived classes can // override the behavior of execution. else if ( requests[i] instanceof KoLRequest ) { run( (KoLRequest) requests[i], repeatCount ); } // Standard KoL adventures are handled through the // client.makeRequest() method. else if ( requests[i] instanceof KoLAdventure ) { if ( StaticEntity.getClient().permitsContinue() ) StaticEntity.getClient().makeRequest( requests[i], repeatCount ); } // All other runnables are run, as expected, with // no updates to the client. else for ( int j = 0; j < repeatCount; ++j ) requests[i].run(); } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/fc297cf0e234e878d274c36b482263cc4afbfbb0/RequestThread.java/buggy/src/net/sourceforge/kolmafia/RequestThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 202, 95, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 3285, 18, 2469, 31, 965, 77, 262, 202, 202, 95, 1082, 202, 759, 16903, 3285, 854, 1338, 1086, 3647, 16, 1158, 15177, 4121, 1082, 202, 759, 326, 7666, 1056, 353, 18, 225, 1220, 353, 2546, 358, 4543, 326, 1082, 202, 759, 883, 3012, 1092, 1846, 336, 3541, 18, 1082, 202, 430, 261, 3285, 63, 77, 65, 1276, 16903, 691, 262, 9506, 202, 11420, 63, 77, 8009, 2681, 5621, 1082, 202, 759, 13274, 518, 731, 1427, 716, 10379, 3318, 848, 1082, 202, 759, 3849, 326, 6885, 434, 4588, 18, 1082, 202, 12107, 309, 261, 3285, 63, 77, 65, 1276, 1475, 83, 48, 691, 262, 1082, 202, 95, 9506, 202, 2681, 12, 261, 47, 83, 48, 691, 13, 3285, 63, 77, 6487, 7666, 1380, 11272, 1082, 202, 97, 1082, 202, 759, 8263, 1475, 83, 48, 1261, 616, 1823, 854, 7681, 3059, 326, 1082, 202, 759, 1004, 18, 6540, 691, 1435, 707, 18, 1082, 202, 12107, 309, 261, 3285, 63, 77, 65, 1276, 1475, 83, 48, 1871, 616, 594, 262, 1082, 202, 95, 9506, 202, 430, 261, 10901, 1943, 18, 588, 1227, 7675, 12160, 1282, 12378, 1435, 262, 6862, 202, 5788, 1943, 18, 588, 1227, 7675, 6540, 691, 12, 3285, 63, 77, 6487, 7666, 1380, 11272, 1082, 202, 97, 1082, 202, 759, 4826, 1308, 1086, 82, 1538, 854, 1086, 16, 487, 2665, 16, 598, 1082, 202, 759, 1158, 4533, 358, 326, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 202, 95, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 3285, 18, 2469, 31, 965, 77, 262, 202, 202, 95, 1082, 202, 759, 16903, 3285, 854, 1338, 1086, 3647, 16, 1158, 15177, 4121, 1082, 202, 759, 326, 7666, 1056, 353, 18, 225, 1220, 353, 2546, 358, 4543, 326, 1082, 202, 759, 883, 3012, 1092, 1846, 336, 3541, 18, 1082, 202, 430, 261, 3285, 63, 77, 65, 1276, 16903, 691, 262, 9506, 202, 11420, 63, 77, 8009, 2681, 5621, 1082, 202, 759, 13274, 518, 731, 1427, 716, 10379, 3318, 848, 1082, 202, 759, 3849, 326, 6885, 434, 4588, 18, 1082, 202, 12107, 309, 261, 3285, 63, 77, 65, 1276, 1475, 83, 2 ]
fetcher = ctx.uskManager.getFetcherForInsertDontSchedule(pubUSK, this);
fetcher = ctx.uskManager.getFetcherForInsertDontSchedule(pubUSK, parent.priorityClass, this);
private void scheduleFetcher() { Logger.minor(this, "scheduling fetcher for "+pubUSK.getURI()); synchronized(this) { if(finished) return; fetcher = ctx.uskManager.getFetcherForInsertDontSchedule(pubUSK, this); } fetcher.schedule(); }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/12ed16eae26eb2bb0d54859f50f5c030d5c8354f/USKInserter.java/buggy/src/freenet/client/async/USKInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4788, 16855, 1435, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 87, 13252, 20521, 364, 13773, 10174, 3378, 47, 18, 588, 3098, 10663, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 13527, 13, 327, 31, 1082, 202, 5754, 264, 273, 1103, 18, 407, 79, 1318, 18, 588, 16855, 1290, 4600, 40, 1580, 6061, 12, 10174, 3378, 47, 16, 333, 1769, 202, 202, 97, 202, 202, 5754, 264, 18, 10676, 5621, 202, 97, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4788, 16855, 1435, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 87, 13252, 20521, 364, 13773, 10174, 3378, 47, 18, 588, 3098, 10663, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 13527, 13, 327, 31, 1082, 202, 5754, 264, 273, 1103, 18, 407, 79, 1318, 18, 588, 16855, 1290, 4600, 40, 1580, 6061, 12, 10174, 3378, 47, 16, 333, 1769, 202, 202, 97, 202, 202, 5754, 264, 18, 10676, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fref.setDontDereference(true);
if (! isImportedInstance) { fref.setDontDereference(true); fref.setFlag(ReferenceExp.CREATE_FIELD_REFERENCE); adecl.setPrivate(true); }
public static boolean importDefinitions (Type type, String uri, Vector forms, ScopeExp defs, Compilation tr) { Language language = tr.getLanguage(); boolean immediate = tr.immediate && defs instanceof ModuleExp; String tname = type.getName(); Object instance = null; ClassType t = (ClassType) type; boolean isRunnable = t.isSubtype(Compilation.typeRunnable); Declaration decl = null; ClassType thisType = ClassType.make("kawa.standard.require"); ModuleInfo info = ModuleInfo.find(tname); Expression[] args = { new QuoteExp(tname) }; Expression dofind = Invoke.makeInvokeStatic(thisType, "find", args); Field instanceField = null; dofind.setLine(tr); ModuleExp mod = new ModuleExp(); // Should skip if immediate. FIXME ClassType typeFieldLocation = ClassType.make("gnu.kawa.reflect.FieldLocation"); for (;;) { Class rclass = t.getReflectClass(); for (Field fld = t.getFields(); fld != null; fld = fld.getNext()) { int flags = fld.getFlags(); if ((flags & Access.PUBLIC) == 0) continue; String fname = fld.getName(); boolean isStatic = (flags & Access.STATIC) != 0; if (! isStatic && instance == null) { instance = info.getInstance(); String iname = tname.replace('.', '$') + "$instance"; decl = new Declaration(iname, type); decl.setPrivate(true); defs.addDeclaration(decl); decl.setCanRead(true); if (immediate) { decl.noteValue(new QuoteExp(instance)); } else { decl.noteValue(dofind); SetExp sexp = new SetExp(decl, dofind); sexp.setLine(tr); sexp.setDefining(true); forms.addElement(sexp); decl.setFlag(Declaration.EARLY_INIT); // If Runnable, we need to set decl value in initializer, // and later 'run' it, so it needs to be stored in a field. if (isRunnable) decl.setSimple(false); } } java.lang.reflect.Field rfield; Object fvalue; boolean isFinal; try { rfield = rclass.getField(fname); isFinal = (rfield.getModifiers() & Access.FINAL) != 0; if (isFinal) fvalue = rfield.get(instance); else fvalue = Undefined.getInstance(); } catch (Exception ex) { throw WrappedException.wrapIfNeeded(ex); } Type ftype = fld.getType(); boolean isAlias = ftype.isSubtype(Compilation.typeLocation); Declaration fdecl = makeDeclInModule(mod, fvalue, fld, language); Object fdname = fdecl.getSymbol(); if (fname.startsWith(Declaration.PRIVATE_PREFIX)) continue; if (fname.endsWith("$instance")) { if (isStatic && fname.equals("$instance")) instanceField = fld; continue; } /* if (tr.immediate && defs instanceof ModuleExp) { // FIXME use ClassMemberLocation.define Symbol sym; if (fdname instanceof Symbol) sym = (Symbol) fdname; else sym = Symbol.make(uri == null ? "" : uri, fdname.toString()); Environment env = Environment.getCurrent(); if (isAlias && isFinal) env.addLocation(sym, null, (Location) fvalue); else { Object property = null; if (isFinal && (fdecl.isProcedureDecl() || fvalue instanceof Macro) && (tr.getLanguage() .hasSeparateFunctionNamespace())) property = EnvironmentKey.FUNCTION; env.addLocation(sym, property, new ClassMemberLocation(instance, rfield)); } } */ // We create an alias in the current context that points // a dummy declaration in the exported module. Normally, // followAliases will skip the alias, so we use the latter. // But if the binding is re-exported (or EXTERNAL_ACCESS // gets set), then we need a separate declaration. // (If EXTERNAL_ACCESS, the field gets PRIVATE_PREFIX.) Object aname; if (fdname instanceof Symbol) aname = fdname; else { String sname = fdname.toString(); if (uri == null) aname = sname.intern(); else aname = Symbol.make(uri, sname); } try { Declaration adecl = defs.getDefine(aname, 'w', tr); adecl.setAlias(true); adecl.setIndirectBinding(true); Expression fexp; ReferenceExp fref; if (immediate) { if (isFinal && isStatic) { // An optimization. adecl.setType(fdecl.getType()); adecl.setAlias(false); adecl.setIndirectBinding(isAlias); } else fvalue = new FieldLocation(instance, t, fname); fexp = new QuoteExp(fvalue); adecl.setCanRead(true); fref = null; } else { fref = new ReferenceExp(fdecl); fref.context = decl; fref.setDontDereference(true); fexp = fref; adecl.setPrivate(true); } if ((rfield.getModifiers() & Access.FINAL) != 0 && ! isAlias) { adecl.setFlag(Declaration.IS_CONSTANT); } if (fdecl.isProcedureDecl()) adecl.setProcedureDecl(true); if (isStatic) adecl.setFlag(Declaration.STATIC_SPECIFIED); /* if (fvalue instanceof gnu.mapping.Location) { Declaration fdecl = new Declaration(aname, ftype); fdecl.base = decl; fdecl.field = fld; ReferenceExp ref = new ReferenceExp(fdecl); ref.setDontDereference(true); fexp = ref; } else { int j = 0; Method m; if (isStatic) { m = makeClassMemberLocation2; args = new Expression[2]; } else { m = makeClassMemberLocation3; args = new Expression[3]; args[j++] = new ReferenceExp(decl); } args[j++] = new QuoteExp(t.getName()); args[j++] = new QuoteExp(fname); fexp = new ApplyExp(m, args); } */ if (! immediate) { SetExp sexp = new SetExp(adecl, fexp); adecl.setFlag(Declaration.EARLY_INIT); sexp.setDefining(true); forms.addElement(sexp); } adecl.noteValue(fexp); adecl.setFlag(Declaration.IS_IMPORTED); adecl.setSimple(false); tr.push(adecl); // Add to translation env. } catch (Exception ex) { throw new WrappedException(ex); } } t = t.getSuperclass(); if (t == null) break; } if (isRunnable) { if (immediate) { forms.addElement(new ApplyExp(ClassType.make("gnu.expr.ModuleInfo") .getDeclaredMethod("getRunInstance", 0), new Expression[] { new QuoteExp(info)})); } else { Method run = Compilation.typeRunnable.getDeclaredMethod("run", 0); if (decl != null) // Need to make sure 'run' is invoked. dofind = new ReferenceExp(decl); else { if (instanceField != null) { //Optimization args = new Expression[] { new QuoteExp(type), new QuoteExp("$instance") }; dofind = new ApplyExp(SlotGet.staticField, args); } //else //dofind = Convert.makeCoercion(dofind, Type.void_type); } dofind = new ApplyExp(run, new Expression[] { dofind }); dofind.setLine(tr); forms.addElement(dofind); } } tr.mustCompileHere(); return true; }
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/f525ea41b4380e2b2e69fbe8acaaeac1d8735f65/require.java/buggy/kawa/standard/require.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 1930, 7130, 261, 559, 618, 16, 514, 2003, 16, 5589, 10138, 16, 25083, 282, 5468, 2966, 17588, 16, 22416, 433, 13, 225, 288, 565, 9889, 2653, 273, 433, 18, 588, 3779, 5621, 565, 1250, 14483, 273, 433, 18, 381, 6785, 597, 17588, 1276, 5924, 2966, 31, 565, 514, 27829, 273, 618, 18, 17994, 5621, 565, 1033, 791, 273, 446, 31, 565, 1659, 559, 268, 273, 261, 18328, 13, 618, 31, 565, 1250, 353, 20013, 273, 268, 18, 291, 1676, 723, 12, 19184, 18, 723, 20013, 1769, 565, 16110, 4302, 3496, 273, 446, 31, 565, 1659, 559, 333, 559, 273, 1659, 559, 18, 6540, 2932, 79, 2219, 69, 18, 10005, 18, 6528, 8863, 565, 5924, 966, 1123, 273, 5924, 966, 18, 4720, 12, 88, 529, 1769, 565, 5371, 8526, 833, 273, 288, 394, 21695, 2966, 12, 88, 529, 13, 289, 31, 565, 5371, 741, 4720, 273, 14373, 18, 6540, 10969, 5788, 12, 2211, 559, 16, 315, 4720, 3113, 833, 1769, 565, 2286, 791, 974, 273, 446, 31, 565, 741, 4720, 18, 542, 1670, 12, 313, 1769, 565, 5924, 2966, 681, 273, 394, 5924, 2966, 5621, 565, 368, 9363, 2488, 309, 14483, 18, 225, 9852, 565, 1659, 559, 618, 974, 2735, 1377, 273, 1659, 559, 18, 6540, 2932, 1600, 89, 18, 79, 2219, 69, 18, 1734, 1582, 18, 974, 2735, 8863, 565, 364, 261, 25708, 13, 1377, 288, 202, 797, 436, 1106, 273, 268, 18, 588, 24452, 797, 5621, 3639, 364, 261, 974, 9880, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1930, 7130, 261, 559, 618, 16, 514, 2003, 16, 5589, 10138, 16, 25083, 282, 5468, 2966, 17588, 16, 22416, 433, 13, 225, 288, 565, 9889, 2653, 273, 433, 18, 588, 3779, 5621, 565, 1250, 14483, 273, 433, 18, 381, 6785, 597, 17588, 1276, 5924, 2966, 31, 565, 514, 27829, 273, 618, 18, 17994, 5621, 565, 1033, 791, 273, 446, 31, 565, 1659, 559, 268, 273, 261, 18328, 13, 618, 31, 565, 1250, 353, 20013, 273, 268, 18, 291, 1676, 723, 12, 19184, 18, 723, 20013, 1769, 565, 16110, 4302, 3496, 273, 446, 31, 565, 1659, 559, 333, 559, 273, 1659, 559, 18, 6540, 2932, 79, 2219, 69, 18, 10005, 18, 6528, 8863, 565, 5924, 966, 2 ]
c.gridx = 1; c.gridy = 3+choices.size(); c.weightx = 0.0; c.gridwidth = 1; c.fill = GridBagConstraints.NONE; SpacerPanel spacer2 = new SpacerPanel(); gb.setConstraints(spacer2, c); _mainPanel.add(spacer2); }
public WizStepChoice(Wizard w, String instr, Vector choices) { // store wizard? _choices = choices; _instructions.setText(instr); _instructions.setWrapStyleWord(true); _instructions.setEditable(false); _instructions.setBorder(null); _instructions.setBackground(_mainPanel.getBackground()); _mainPanel.setBorder(new EtchedBorder()); GridBagLayout gb = new GridBagLayout(); _mainPanel.setLayout(gb); GridBagConstraints c = new GridBagConstraints(); c.ipadx = 3; c.ipady = 3; c.weightx = 0.0; c.weighty = 0.0; c.anchor = GridBagConstraints.EAST; JLabel image = new JLabel(""); //image.setMargin(new Insets(0, 0, 0, 0)); image.setIcon(WIZ_ICON); image.setBorder(null); c.gridx = 0; c.gridheight = GridBagConstraints.REMAINDER; c.gridy = 0; c.anchor = GridBagConstraints.NORTH; gb.setConstraints(image, c); _mainPanel.add(image); c.weightx = 1.0; c.gridx = 2; c.gridheight = 1; c.gridwidth = 3; c.gridy = 0; c.fill = GridBagConstraints.HORIZONTAL; gb.setConstraints(_instructions, c); _mainPanel.add(_instructions); c.gridx = 1; c.gridy = 1; c.weightx = 0.0; c.gridwidth = 1; c.fill = GridBagConstraints.NONE; SpacerPanel spacer = new SpacerPanel(); gb.setConstraints(spacer, c); _mainPanel.add(spacer); c.gridx = 2; c.weightx = 1.0; c.anchor = GridBagConstraints.WEST; c.gridwidth = 1; int size = choices.size(); for (int i = 0; i < size; i++) { c.gridy = 2 + i; String s = (String) choices.elementAt(i); JRadioButton rb = new JRadioButton(s); _group.add(rb); rb.setActionCommand(s); rb.addActionListener(this); gb.setConstraints(rb, c); _mainPanel.add(rb); } c.gridx = 1; c.gridy = 3+choices.size(); c.weightx = 0.0; c.gridwidth = 1; c.fill = GridBagConstraints.NONE; SpacerPanel spacer2 = new SpacerPanel(); gb.setConstraints(spacer2, c); _mainPanel.add(spacer2); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/WizStepChoice.java/buggy/src_new/org/argouml/cognitive/ui/WizStepChoice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 678, 452, 4160, 10538, 12, 27130, 341, 16, 514, 16170, 16, 5589, 7246, 13, 288, 565, 368, 1707, 24204, 35, 565, 389, 11937, 273, 7246, 31, 565, 389, 25758, 18, 542, 1528, 12, 267, 701, 1769, 565, 389, 25758, 18, 542, 2964, 2885, 3944, 12, 3767, 1769, 565, 389, 25758, 18, 542, 15470, 12, 5743, 1769, 565, 389, 25758, 18, 542, 8107, 12, 2011, 1769, 565, 389, 25758, 18, 542, 8199, 24899, 5254, 5537, 18, 588, 8199, 10663, 565, 389, 5254, 5537, 18, 542, 8107, 12, 2704, 512, 88, 2049, 8107, 10663, 565, 7145, 5013, 3744, 21649, 273, 394, 7145, 5013, 3744, 5621, 565, 389, 5254, 5537, 18, 542, 3744, 12, 4490, 1769, 565, 13075, 276, 273, 394, 13075, 5621, 565, 276, 18, 625, 361, 92, 273, 890, 31, 276, 18, 625, 361, 93, 273, 890, 31, 565, 276, 18, 4865, 92, 273, 374, 18, 20, 31, 276, 18, 4865, 93, 273, 374, 18, 20, 31, 565, 276, 18, 16215, 273, 13075, 18, 41, 9053, 31, 565, 21403, 1316, 273, 394, 21403, 2932, 8863, 565, 368, 2730, 18, 542, 9524, 12, 2704, 22300, 12, 20, 16, 374, 16, 374, 16, 374, 10019, 565, 1316, 18, 542, 5554, 12, 59, 6867, 67, 21745, 1769, 565, 1316, 18, 542, 8107, 12, 2011, 1769, 565, 276, 18, 5222, 92, 273, 374, 31, 565, 276, 18, 5222, 4210, 273, 13075, 18, 862, 5535, 14822, 31, 565, 276, 18, 5222, 93, 273, 374, 31, 565, 276, 18, 16215, 273, 13075, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 678, 452, 4160, 10538, 12, 27130, 341, 16, 514, 16170, 16, 5589, 7246, 13, 288, 565, 368, 1707, 24204, 35, 565, 389, 11937, 273, 7246, 31, 565, 389, 25758, 18, 542, 1528, 12, 267, 701, 1769, 565, 389, 25758, 18, 542, 2964, 2885, 3944, 12, 3767, 1769, 565, 389, 25758, 18, 542, 15470, 12, 5743, 1769, 565, 389, 25758, 18, 542, 8107, 12, 2011, 1769, 565, 389, 25758, 18, 542, 8199, 24899, 5254, 5537, 18, 588, 8199, 10663, 565, 389, 5254, 5537, 18, 542, 8107, 12, 2704, 512, 88, 2049, 8107, 10663, 565, 7145, 5013, 3744, 21649, 273, 394, 7145, 5013, 3744, 5621, 565, 389, 5254, 5537, 18, 542, 3744, 12, 4490, 1769, 565, 13075, 276, 273, 2 ]
msg = (Message)data;
sendMailMessage((Message)data);
public void doDispatch(UMOEvent event) { Message msg = null; try { Object data = event.getTransformedMessage(); if (!(data instanceof Message)) { throw new DispatchException(new org.mule.config.i18n.Message( Messages.TRANSFORM_X_UNEXPECTED_TYPE_X, data.getClass().getName(), Message.class.getName()), event.getMessage(), event.getEndpoint()); } else { // Check the message for any unset data and use defaults msg = (Message)data; } sendMailMessage(msg); } catch (Exception e) { connector.handleException(e); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/2728140743f07f856e93b813ce619c77291354bf/SmtpMessageDispatcher.java/buggy/transports/email/src/main/java/org/mule/providers/email/SmtpMessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 5325, 12, 2799, 51, 1133, 871, 13, 565, 288, 3639, 2350, 1234, 273, 446, 31, 3639, 775, 3639, 288, 5411, 1033, 501, 273, 871, 18, 588, 4059, 329, 1079, 5621, 5411, 309, 16051, 12, 892, 1276, 2350, 3719, 5411, 288, 7734, 604, 394, 11552, 503, 12, 2704, 2358, 18, 81, 725, 18, 1425, 18, 77, 2643, 82, 18, 1079, 12, 10792, 4838, 18, 16596, 4983, 67, 60, 67, 2124, 27409, 67, 2399, 67, 60, 16, 501, 18, 588, 797, 7675, 17994, 9334, 10792, 2350, 18, 1106, 18, 17994, 1435, 3631, 871, 18, 24906, 9334, 871, 18, 588, 3293, 10663, 5411, 289, 5411, 469, 5411, 288, 7734, 368, 2073, 326, 883, 364, 1281, 2646, 501, 471, 999, 3467, 7734, 1366, 6759, 1079, 12443, 1079, 13, 892, 1769, 5411, 289, 5411, 1366, 6759, 1079, 12, 3576, 1769, 3639, 289, 3639, 1044, 261, 503, 425, 13, 3639, 288, 5411, 8703, 18, 4110, 503, 12, 73, 1769, 3639, 289, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 5325, 12, 2799, 51, 1133, 871, 13, 565, 288, 3639, 2350, 1234, 273, 446, 31, 3639, 775, 3639, 288, 5411, 1033, 501, 273, 871, 18, 588, 4059, 329, 1079, 5621, 5411, 309, 16051, 12, 892, 1276, 2350, 3719, 5411, 288, 7734, 604, 394, 11552, 503, 12, 2704, 2358, 18, 81, 725, 18, 1425, 18, 77, 2643, 82, 18, 1079, 12, 10792, 4838, 18, 16596, 4983, 67, 60, 67, 2124, 27409, 67, 2399, 67, 60, 16, 501, 18, 588, 797, 7675, 17994, 9334, 10792, 2350, 18, 1106, 18, 17994, 1435, 3631, 871, 18, 24906, 9334, 871, 18, 588, 3293, 10663, 5411, 289, 5411, 469, 5411, 288, 7734, 368, 2073, 326, 883, 364, 1281, 2646, 501, 471, 2 ]
while (so <= offset) {
while (so <= offset-2) {
private String formatLineNumber() { int so = docOffset; int lineNumber = 1; int lineOffset = 0; int end = offset; if (encoding < 3) { while (so <= offset) { if (XMLDoc[so] == '\n') { lineNumber++; lineOffset = so; } //lineOffset++; so++; } lineOffset = offset - lineOffset; } else if (encoding == 3) { while (so <= offset) { if (XMLDoc[so + 1] == '\n' && XMLDoc[so] == 0) { lineNumber++; lineOffset = so; } so += 2; } lineOffset = (offset - lineOffset) >> 1; } else { while (so <= offset) { if (XMLDoc[so] == '\n' && XMLDoc[so + 1] == 0) { lineNumber++; lineOffset = so; } so += 2; } lineOffset = (offset - lineOffset) >> 1; } return "\nLine Number: " + lineNumber + " Offset: " + lineOffset; }
3680 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3680/b398d55c30402df8a8de6650255b1399d4c8067b/VTDGen1.java/clean/com/ximpleware/VTDGen1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 740, 31063, 1435, 288, 202, 202, 474, 1427, 273, 997, 2335, 31, 202, 202, 474, 13629, 273, 404, 31, 202, 202, 474, 980, 2335, 273, 374, 31, 202, 202, 474, 679, 273, 1384, 31, 202, 202, 430, 261, 5999, 411, 890, 13, 288, 1082, 202, 17523, 261, 2048, 1648, 1384, 13, 288, 9506, 202, 430, 261, 4201, 1759, 63, 2048, 65, 422, 2337, 82, 6134, 288, 6862, 202, 1369, 1854, 9904, 31, 6862, 202, 1369, 2335, 273, 1427, 31, 9506, 202, 97, 9506, 202, 759, 1369, 2335, 9904, 31, 9506, 202, 2048, 9904, 31, 1082, 202, 97, 1082, 202, 1369, 2335, 273, 1384, 300, 980, 2335, 31, 202, 202, 97, 469, 309, 261, 5999, 422, 890, 13, 288, 1082, 202, 17523, 261, 2048, 1648, 1384, 13, 288, 9506, 202, 430, 261, 4201, 1759, 63, 2048, 397, 404, 65, 422, 2337, 82, 11, 597, 3167, 1759, 63, 2048, 65, 422, 374, 13, 288, 6862, 202, 1369, 1854, 9904, 31, 6862, 202, 1369, 2335, 273, 1427, 31, 9506, 202, 97, 9506, 202, 2048, 1011, 576, 31, 1082, 202, 97, 1082, 202, 1369, 2335, 273, 261, 3348, 300, 980, 2335, 13, 1671, 404, 31, 202, 202, 97, 469, 288, 1082, 202, 17523, 261, 2048, 1648, 1384, 13, 288, 9506, 202, 430, 261, 4201, 1759, 63, 2048, 65, 422, 2337, 82, 11, 597, 3167, 1759, 63, 2048, 397, 404, 65, 422, 374, 13, 288, 6862, 202, 1369, 1854, 9904, 31, 6862, 202, 1369, 2335, 273, 1427, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 740, 31063, 1435, 288, 202, 202, 474, 1427, 273, 997, 2335, 31, 202, 202, 474, 13629, 273, 404, 31, 202, 202, 474, 980, 2335, 273, 374, 31, 202, 202, 474, 679, 273, 1384, 31, 202, 202, 430, 261, 5999, 411, 890, 13, 288, 1082, 202, 17523, 261, 2048, 1648, 1384, 13, 288, 9506, 202, 430, 261, 4201, 1759, 63, 2048, 65, 422, 2337, 82, 6134, 288, 6862, 202, 1369, 1854, 9904, 31, 6862, 202, 1369, 2335, 273, 1427, 31, 9506, 202, 97, 9506, 202, 759, 1369, 2335, 9904, 31, 9506, 202, 2048, 9904, 31, 1082, 202, 97, 1082, 202, 1369, 2335, 273, 1384, 300, 980, 2335, 31, 202, 202, 97, 469, 309, 261, 5999, 422, 2 ]
return "\"" + StringUtil.unicodeEscape(value).subString(0,8) + "...\"";
return "\"" + StringUtil.unicodeEscape(value).substring(0,8) + "...\"";
public String toString() { if (StringUtil.unicodeEscape(value).length() > 11) { return "\"" + StringUtil.unicodeEscape(value).subString(0,8) + "...\""; } return "\"" + StringUtil.unicodeEscape(value) + "\""; }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/be4691a559db85c8bd69971b8d4c9ef57b684bd8/StringLit_c.java/buggy/src/polyglot/ast/StringLit_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 261, 13565, 18, 9124, 8448, 12, 1132, 2934, 2469, 1435, 405, 4648, 13, 288, 5411, 327, 11143, 397, 14205, 18, 9124, 8448, 12, 1132, 2934, 28023, 12, 20, 16, 28, 13, 397, 31305, 8530, 31, 3639, 289, 1171, 202, 2463, 11143, 397, 14205, 18, 9124, 8448, 12, 1132, 13, 397, 11143, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 514, 1762, 1435, 288, 3639, 309, 261, 13565, 18, 9124, 8448, 12, 1132, 2934, 2469, 1435, 405, 4648, 13, 288, 5411, 327, 11143, 397, 14205, 18, 9124, 8448, 12, 1132, 2934, 28023, 12, 20, 16, 28, 13, 397, 31305, 8530, 31, 3639, 289, 1171, 202, 2463, 11143, 397, 14205, 18, 9124, 8448, 12, 1132, 13, 397, 11143, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (input[index] != '\n')
if (!isLineTerminator(input[index]))
int matchRENodes(MatchState state, RENode ren, RENode stop, int index) { int num; char[] input = state.input; while ((ren != stop) && (ren != null)) { switch (ren.op) { case REOP_EMPTY: break; case REOP_ALT: { if (ren.next.op != REOP_ALT) { ren = (RENode)ren.kid; continue; } else { num = state.parenCount; int kidMatch = matchRENodes(state, (RENode)ren.kid, stop, index); if (kidMatch != -1) return kidMatch; for (int i = num; i < state.parenCount; i++) state.parens[i] = null; state.parenCount = num; } } break; case REOP_QUANT: { int lastKid = -1; for (num = 0; num < ren.min; num++) { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; else { lastKid = index; index = kidMatch; } } if (num == ren.max) // Have matched the exact count required, // need to match the rest of the regexp. break; if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, num, index, lastKid); if (kidMatch == -1) index = matchRENodes(state, (RENode)ren.kid, ren.next, index); else index = kidMatch; } else { index = matchNonGreedyKid(state, ren, num, ren.max, index); } if (index == -1) return -1; } break; case REOP_PLUS: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; if ((ren.flags & RENode.MINIMAL) == 0) { kidMatch = matchGreedyKid(state, ren, stop, 1, kidMatch, index); if (kidMatch == -1) index = matchRENodes(state,(RENode)ren.kid, ren.next, index); else index = kidMatch; } else index = matchNonGreedyKid(state, ren, 1, 0, kidMatch); if (index == -1) return -1; } break; case REOP_STAR: if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, 0, index, -1); if (kidMatch != -1) index = kidMatch; } else { index = matchNonGreedyKid(state, ren, 0, 0, index); if (index == -1) return -1; } break; case REOP_OPT: { int saveNum = state.parenCount; if (((ren.flags & RENode.MINIMAL) != 0)) { int restMatch = matchRENodes(state, ren.next, stop, index); if (restMatch != -1) return restMatch; } int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) { state.parenCount = saveNum; break; } else { int restMatch = matchRENodes(state, ren.next, stop, kidMatch); if (restMatch == -1) { // need to undo the result of running the kid state.parenCount = saveNum; break; } else return restMatch; } } case REOP_LPARENNON: ren = (RENode)ren.kid; continue; case REOP_RPARENNON: break; case REOP_LPAREN: { num = ren.num; ren = (RENode)ren.kid; SubString parsub = state.parens[num]; if (parsub == null) { parsub = state.parens[num] = new SubString(); parsub.charArray = input; } parsub.index = index; parsub.length = 0; if (num >= state.parenCount) state.parenCount = num + 1; continue; } case REOP_RPAREN: { num = ren.num; SubString parsub = state.parens[num]; if (parsub == null) throw new RuntimeException("Paren problem"); parsub.length = index - parsub.index; break; } case REOP_ASSERT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; break; } case REOP_ASSERT_NOT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch != -1) return -1; break; } case REOP_BACKREF: { num = ren.num; if (num >= state.parens.length) { Context.reportError( ScriptRuntime.getMessage( "msg.bad.backref", null)); return -1; } SubString parsub = state.parens[num]; if (parsub == null) parsub = state.parens[num] = new SubString(); int length = parsub.length; for (int i = 0; i < length; i++, index++) { if (index >= input.length) { return state.noMoreInput(); } if (!matchChar(state.flags, input[index], parsub.charArray[parsub.index + i])) return -1; } } break; case REOP_CCLASS: if (index >= input.length) { return state.noMoreInput(); } if (ren.bitmap == null) { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); ren.buildBitmap(state, source, ((state.flags & FOLD) != 0)); } char c = input[index]; int b = (c >>> 3); if (b >= ren.bmsize) { if (ren.kid2 == -1) // a ^ class index++; else return -1; } else { int bit = c & 7; bit = 1 << bit; if ((ren.bitmap[b] & bit) != 0) index++; else return -1; } break; case REOP_DOT: if (index >= input.length) { return state.noMoreInput(); } if (input[index] != '\n') index++; else return -1; break; case REOP_DOTSTARMIN: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) return cp3; if (input[cp2] == '\n') return -1; } return state.noMoreInput(); } case REOP_DOTSTAR: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) if (input[cp2] == '\n') break; while (cp2 >= index) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) { index = cp2; break; } cp2--; } break; } case REOP_WBDRY: if (index == 0 || !isWord(input[index-1])) { if (index >= input.length) return state.noMoreInput(); if (!isWord(input[index])) return -1; } else { if (index < input.length && isWord(input[index])) return -1; } break; case REOP_WNONBDRY: if (index == 0 || !isWord(input[index-1])) { if (index < input.length && isWord(input[index])) return -1; } else { if (index >= input.length) return state.noMoreInput(); if (!isWord(input[index])) return -1; } break; case REOP_EOLONLY: case REOP_EOL: { if (index == input.length) ; // leave index; else { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if ((reImpl.multiline) || ((state.flags & MULTILINE) != 0)) if (input[index] == '\n') ;// leave index else return -1; else return -1; } } break; case REOP_BOL: { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if (index != 0) { if (reImpl.multiline || ((state.flags & MULTILINE) != 0)) { if (index >= input.length) { return state.noMoreInput(); } if (input[index - 1] == '\n') { break; } } return -1; } // leave index } break; case REOP_DIGIT: if (index >= input.length) { return state.noMoreInput(); } if (!isDigit(input[index])) return -1; index++; break; case REOP_NONDIGIT: if (index >= input.length) { return state.noMoreInput(); } if (isDigit(input[index])) return -1; index++; break; case REOP_ALNUM: if (index >= input.length) { return state.noMoreInput(); } if (!isWord(input[index])) return -1; index++; break; case REOP_NONALNUM: if (index >= input.length) { return state.noMoreInput(); } if (isWord(input[index])) return -1; index++; break; case REOP_SPACE: if (index >= input.length) { return state.noMoreInput(); } if (!(TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) return -1; index++; break; case REOP_NONSPACE: if (index >= input.length) { return state.noMoreInput(); } if (TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index])) return -1; index++; break; case REOP_FLAT1: if (index >= input.length) { return state.noMoreInput(); } if (!matchChar(state.flags, ren.chr, input[index])) return -1; index++; break; case REOP_FLAT: { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); int start = ((Integer)ren.kid).intValue(); int length = ren.kid2 - start; for (int i = 0; i < length; i++, index++) { if (index >= input.length) { return state.noMoreInput(); } if (!matchChar(state.flags, input[index], source[start + i])) return -1; } } break; case REOP_JUMP: break; case REOP_END: break; default : throw new RuntimeException("Unsupported by node matcher"); } ren = ren.next; } return index; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b16d847568c4b6033672534e58b050c4923f9c31/NativeRegExp.java/clean/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 845, 862, 3205, 12, 2060, 1119, 919, 16, 2438, 907, 1654, 16, 2438, 907, 2132, 16, 509, 770, 13, 288, 3639, 509, 818, 31, 3639, 1149, 8526, 810, 273, 919, 18, 2630, 31, 3639, 1323, 14015, 1187, 480, 2132, 13, 597, 261, 1187, 480, 446, 3719, 288, 7734, 1620, 261, 1187, 18, 556, 13, 288, 7734, 648, 2438, 3665, 67, 13625, 30, 10792, 898, 31, 7734, 648, 2438, 3665, 67, 18255, 30, 288, 10792, 309, 261, 1187, 18, 4285, 18, 556, 480, 2438, 3665, 67, 18255, 13, 288, 13491, 1654, 273, 261, 862, 907, 13, 1187, 18, 79, 350, 31, 13491, 1324, 31, 10792, 289, 10792, 469, 288, 13491, 818, 273, 919, 18, 13012, 1380, 31, 13491, 509, 17395, 2060, 273, 845, 862, 3205, 12, 2019, 16, 261, 862, 907, 13, 1187, 18, 79, 350, 16, 4766, 10792, 2132, 16, 770, 1769, 13491, 309, 261, 79, 350, 2060, 480, 300, 21, 13, 327, 17395, 2060, 31, 13491, 364, 261, 474, 277, 273, 818, 31, 277, 411, 919, 18, 13012, 1380, 31, 277, 27245, 18701, 919, 18, 1848, 2387, 63, 77, 65, 273, 446, 31, 13491, 919, 18, 13012, 1380, 273, 818, 31, 10792, 289, 7734, 289, 10792, 898, 31, 7734, 648, 2438, 3665, 67, 3500, 6856, 30, 288, 10792, 509, 1142, 47, 350, 273, 300, 21, 31, 10792, 364, 261, 2107, 273, 374, 31, 818, 411, 1654, 18, 1154, 31, 818, 27245, 288, 13491, 509, 17395, 2060, 273, 845, 862, 3205, 12, 2019, 16, 261, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 845, 862, 3205, 12, 2060, 1119, 919, 16, 2438, 907, 1654, 16, 2438, 907, 2132, 16, 509, 770, 13, 288, 3639, 509, 818, 31, 3639, 1149, 8526, 810, 273, 919, 18, 2630, 31, 3639, 1323, 14015, 1187, 480, 2132, 13, 597, 261, 1187, 480, 446, 3719, 288, 7734, 1620, 261, 1187, 18, 556, 13, 288, 7734, 648, 2438, 3665, 67, 13625, 30, 10792, 898, 31, 7734, 648, 2438, 3665, 67, 18255, 30, 288, 10792, 309, 261, 1187, 18, 4285, 18, 556, 480, 2438, 3665, 67, 18255, 13, 288, 13491, 1654, 273, 261, 862, 907, 13, 1187, 18, 79, 350, 31, 13491, 1324, 31, 10792, 289, 10792, 469, 288, 13491, 818, 273, 919, 18, 13012, 1380, 31, 13491, 2 ]
writeInt(out, (int) (list.indentationRight() * twipsFactor));
writeInt(out, (int) (list.indentationRight() * TWIPSFACTOR));
private void writeList(com.lowagie.text.List list, ByteArrayOutputStream out) throws IOException, DocumentException { int type = 0; int align = 0; int fontNr = addFont(new Font(Font.SYMBOL, 10, Font.NORMAL, new Color(0, 0, 0))); if (!list.isNumbered()) type = 23; if (listLevel == 0) { maxListLevel = 0; listtable.write(openGroup); listtable.write(escape); listtable.write(listDefinition); int i = getRandomInt(); listtable.write(escape); listtable.write(listTemplateID); writeInt(listtable, i); listtable.write(escape); listtable.write(hybridList); listtable.write((byte) '\n'); } if (listLevel >= maxListLevel) { maxListLevel++; listtable.write(openGroup); listtable.write(escape); listtable.write(listLevelDefinition); listtable.write(escape); listtable.write(listLevelTypeOld); writeInt(listtable, type); listtable.write(escape); listtable.write(listLevelTypeNew); writeInt(listtable, type); listtable.write(escape); listtable.write(listLevelAlignOld); writeInt(listtable, align); listtable.write(escape); listtable.write(listLevelAlignNew); writeInt(listtable, align); listtable.write(escape); listtable.write(listLevelStartAt); writeInt(listtable, 1); listtable.write(openGroup); listtable.write(escape); listtable.write(listLevelTextDefinition); listtable.write(escape); listtable.write(listLevelTextLength); if (list.isNumbered()) { writeInt(listtable, 2); } else { writeInt(listtable, 1); } listtable.write(escape); if (list.isNumbered()) { listtable.write(listLevelTextStyleNumbers); } else { listtable.write(listLevelTextStyleBullet); } listtable.write(commaDelimiter); listtable.write(closeGroup); listtable.write(openGroup); listtable.write(escape); listtable.write(listLevelNumbersDefinition); if (list.isNumbered()) { listtable.write(delimiter); listtable.write(listLevelNumbers); writeInt(listtable, listLevel + 1); } listtable.write(commaDelimiter); listtable.write(closeGroup); if (!list.isNumbered()) { listtable.write(escape); listtable.write(fontNumber); writeInt(listtable, fontNr); } listtable.write(escape); listtable.write(firstIndent); writeInt(listtable, (int) (list.indentationLeft() * twipsFactor * -1)); listtable.write(escape); listtable.write(listIndent); writeInt(listtable, (int) ((list.indentationLeft() + list.symbolIndent()) * twipsFactor)); listtable.write(escape); listtable.write(rightIndent); writeInt(listtable, (int) (list.indentationRight() * twipsFactor)); listtable.write(escape); listtable.write(tabStop); writeInt(listtable, (int) (list.symbolIndent() * twipsFactor)); listtable.write(closeGroup); listtable.write((byte) '\n'); } // Actual List Begin in Content out.write(escape); out.write(paragraphDefaults); out.write(escape); out.write(alignLeft); out.write(escape); out.write(firstIndent); writeInt(out, (int) (list.indentationLeft() * twipsFactor * -1)); out.write(escape); out.write(listIndent); writeInt(out, (int) ((list.indentationLeft() + list.symbolIndent()) * twipsFactor)); out.write(escape); out.write(rightIndent); writeInt(out, (int) (list.indentationRight() * twipsFactor)); out.write(escape); out.write(fontSize); writeInt(out, 20); out.write(escape); out.write(listBegin); writeInt(out, currentListID); if (listLevel > 0) { out.write(escape); out.write(listCurrentLevel); writeInt(out, listLevel); } out.write(openGroup); ListIterator listItems = list.getItems().listIterator(); Element listElem; int count = 1; while (listItems.hasNext()) { listElem = (Element) listItems.next(); if (listElem.type() == Element.CHUNK) { listElem = new ListItem((Chunk) listElem); } if (listElem.type() == Element.LISTITEM) { out.write(openGroup); out.write(escape); out.write(listTextOld); out.write(escape); out.write(paragraphDefaults); out.write(escape); out.write(fontNumber); if (list.isNumbered()) { writeInt(out, addFont(new Font(Font.TIMES_ROMAN, Font.NORMAL, 10, new Color(0, 0, 0)))); } else { writeInt(out, fontNr); } out.write(escape); out.write(firstIndent); writeInt(out, (int) (list.indentationLeft() * twipsFactor * -1)); out.write(escape); out.write(listIndent); writeInt(out, (int) ((list.indentationLeft() + list.symbolIndent()) * twipsFactor)); out.write(escape); out.write(rightIndent); writeInt(out, (int) (list.indentationRight() * twipsFactor)); out.write(delimiter); if (list.isNumbered()) { writeInt(out, count); out.write(".".getBytes()); } else { out.write(escape); out.write(listBulletOld); } out.write(escape); out.write(tab); out.write(closeGroup); writeListElement((ListItem) listElem, out); count++; } else if (listElem.type() == Element.LIST) { listLevel++; writeList((com.lowagie.text.List) listElem, out); listLevel--; out.write(escape); out.write(paragraphDefaults); out.write(escape); out.write(alignLeft); out.write(escape); out.write(firstIndent); writeInt(out, (int) (list.indentationLeft() * twipsFactor * -1)); out.write(escape); out.write(listIndent); writeInt(out, (int) ((list.indentationLeft() + list.symbolIndent()) * twipsFactor)); out.write(escape); out.write(rightIndent); writeInt(out, (int) (list.indentationRight() * twipsFactor)); out.write(escape); out.write(fontSize); writeInt(out, 20); out.write(escape); out.write(listBegin); writeInt(out, currentListID); if (listLevel > 0) { out.write(escape); out.write(listCurrentLevel); writeInt(out, listLevel); } } out.write((byte) '\n'); } out.write(closeGroup); if (listLevel == 0) { int i = getRandomInt(); listtable.write(escape); listtable.write(listID); writeInt(listtable, i); listtable.write(closeGroup); listtable.write((byte) '\n'); listoverride.write(openGroup); listoverride.write(escape); listoverride.write(listOverride); listoverride.write(escape); listoverride.write(listID); writeInt(listoverride, i); listoverride.write(escape); listoverride.write(listOverrideCount); writeInt(listoverride, 0); listoverride.write(escape); listoverride.write(listBegin); writeInt(listoverride, currentListID); currentListID++; listoverride.write(closeGroup); listoverride.write((byte) '\n'); } out.write(escape); out.write(paragraphDefaults); }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/611191854f19ee0e0c7dd1aab39e997c96600efd/RtfWriter.java/clean/src/com/lowagie/text/rtf/RtfWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 682, 12, 832, 18, 821, 346, 1385, 18, 955, 18, 682, 666, 16, 11559, 596, 13, 1216, 1860, 16, 4319, 503, 288, 3639, 509, 618, 273, 374, 31, 3639, 509, 5689, 273, 374, 31, 3639, 509, 3512, 18726, 273, 527, 5711, 12, 2704, 10063, 12, 5711, 18, 22093, 16, 1728, 16, 10063, 18, 15480, 16, 394, 5563, 12, 20, 16, 374, 16, 374, 3719, 1769, 3639, 309, 16051, 1098, 18, 291, 1854, 329, 10756, 618, 273, 10213, 31, 3639, 309, 261, 1098, 2355, 422, 374, 13, 288, 5411, 943, 682, 2355, 273, 374, 31, 5411, 666, 2121, 18, 2626, 12, 3190, 1114, 1769, 5411, 666, 2121, 18, 2626, 12, 6939, 1769, 5411, 666, 2121, 18, 2626, 12, 1098, 1852, 1769, 5411, 509, 277, 273, 20581, 1702, 5621, 5411, 666, 2121, 18, 2626, 12, 6939, 1769, 5411, 666, 2121, 18, 2626, 12, 1098, 2283, 734, 1769, 5411, 13682, 12, 1098, 2121, 16, 277, 1769, 5411, 666, 2121, 18, 2626, 12, 6939, 1769, 5411, 666, 2121, 18, 2626, 12, 18112, 14400, 682, 1769, 5411, 666, 2121, 18, 2626, 12443, 7229, 13, 2337, 82, 8284, 3639, 289, 3639, 309, 261, 1098, 2355, 1545, 943, 682, 2355, 13, 288, 5411, 943, 682, 2355, 9904, 31, 5411, 666, 2121, 18, 2626, 12, 3190, 1114, 1769, 5411, 666, 2121, 18, 2626, 12, 6939, 1769, 5411, 666, 2121, 18, 2626, 12, 1098, 2355, 1852, 1769, 5411, 666, 2121, 18, 2626, 12, 6939, 1769, 5411, 666, 2121, 18, 2626, 12, 1098, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 682, 12, 832, 18, 821, 346, 1385, 18, 955, 18, 682, 666, 16, 11559, 596, 13, 1216, 1860, 16, 4319, 503, 288, 3639, 509, 618, 273, 374, 31, 3639, 509, 5689, 273, 374, 31, 3639, 509, 3512, 18726, 273, 527, 5711, 12, 2704, 10063, 12, 5711, 18, 22093, 16, 1728, 16, 10063, 18, 15480, 16, 394, 5563, 12, 20, 16, 374, 16, 374, 3719, 1769, 3639, 309, 16051, 1098, 18, 291, 1854, 329, 10756, 618, 273, 10213, 31, 3639, 309, 261, 1098, 2355, 422, 374, 13, 288, 5411, 943, 682, 2355, 273, 374, 31, 5411, 666, 2121, 18, 2626, 12, 3190, 1114, 1769, 5411, 666, 2121, 18, 2626, 12, 6939, 1769, 5411, 666, 2121, 18, 2 ]
testProject = CProjectHelper.createCProject("cpathtest", "none");
testProject = CProjectHelper.createCProject("cpathtest", "none", IPDOMManager.ID_NO_INDEXER);
public void testCPathEntriesDelta() throws CoreException { ICProject testProject; testProject = CProjectHelper.createCProject("cpathtest", "none"); if (testProject == null) { fail("Unable to create project"); } CProjectHelper.addCContainer(testProject, "foo"); IPathEntry[] entries = new IPathEntry[3]; entries[0] = CoreModel.newIncludeEntry(new Path(""), null, new Path("/usr/include"), true); entries[1] = CoreModel.newIncludeEntry(new Path("foo"), null, new Path("/usr/include"), true); entries[2] = CoreModel.newLibraryEntry(new Path(""), null, new Path("/usr/lib/libc.so.1"), null, null, null, false); CElementListener listener = new CElementListener(); CoreModel.getDefault().addElementChangedListener(listener); testProject.setRawPathEntries(entries, new NullProgressMonitor()); entries = testProject.getResolvedPathEntries(); //CoreModel.getDefault().removeElementChangedListener(listener); testProject.setRawPathEntries(null, null); assertTrue("Expecting 3 pathEntries deltas", listener.count > 1); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d9a5d8e84f73d2ffb834799dcb2ecc25eb22dd28/CPathEntryTest.java/clean/core/org.eclipse.cdt.core.tests/model/org/eclipse/cdt/core/model/tests/CPathEntryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 39, 743, 5400, 9242, 1435, 1216, 30015, 288, 202, 202, 2871, 4109, 1842, 4109, 31, 202, 202, 3813, 4109, 273, 385, 4109, 2276, 18, 2640, 39, 4109, 2932, 71, 803, 3813, 3113, 315, 6102, 8863, 202, 202, 430, 261, 3813, 4109, 422, 446, 13, 288, 1082, 202, 6870, 2932, 3370, 358, 752, 1984, 8863, 202, 202, 97, 202, 202, 39, 4109, 2276, 18, 1289, 39, 2170, 12, 3813, 4109, 16, 315, 11351, 8863, 202, 202, 45, 743, 1622, 8526, 3222, 273, 394, 467, 743, 1622, 63, 23, 15533, 202, 202, 8219, 63, 20, 65, 273, 4586, 1488, 18, 2704, 8752, 1622, 12, 2704, 2666, 2932, 6, 3631, 446, 16, 394, 2666, 2932, 19, 13640, 19, 6702, 6, 3631, 638, 1769, 202, 202, 8219, 63, 21, 65, 273, 4586, 1488, 18, 2704, 8752, 1622, 12, 2704, 2666, 2932, 11351, 6, 3631, 446, 16, 394, 2666, 2932, 19, 13640, 19, 6702, 6, 3631, 638, 1769, 202, 202, 8219, 63, 22, 65, 273, 4586, 1488, 18, 2704, 9313, 1622, 12, 2704, 2666, 2932, 6, 3631, 446, 16, 394, 2666, 2932, 19, 13640, 19, 2941, 19, 2941, 71, 18, 2048, 18, 21, 6, 3631, 446, 16, 446, 16, 446, 16, 629, 1769, 202, 202, 39, 1046, 2223, 2991, 273, 394, 385, 1046, 2223, 5621, 202, 202, 4670, 1488, 18, 588, 1868, 7675, 1289, 1046, 5033, 2223, 12, 12757, 1769, 202, 202, 3813, 4109, 18, 542, 4809, 743, 5400, 12, 8219, 16, 394, 4112, 5491, 7187, 10663, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 39, 743, 5400, 9242, 1435, 1216, 30015, 288, 202, 202, 2871, 4109, 1842, 4109, 31, 202, 202, 3813, 4109, 273, 385, 4109, 2276, 18, 2640, 39, 4109, 2932, 71, 803, 3813, 3113, 315, 6102, 8863, 202, 202, 430, 261, 3813, 4109, 422, 446, 13, 288, 1082, 202, 6870, 2932, 3370, 358, 752, 1984, 8863, 202, 202, 97, 202, 202, 39, 4109, 2276, 18, 1289, 39, 2170, 12, 3813, 4109, 16, 315, 11351, 8863, 202, 202, 45, 743, 1622, 8526, 3222, 273, 394, 467, 743, 1622, 63, 23, 15533, 202, 202, 8219, 63, 20, 65, 273, 4586, 1488, 18, 2704, 8752, 1622, 12, 2704, 2666, 2932, 6, 3631, 446, 16, 394, 2666, 2932, 19, 13640, 2 ]
Map logFiles = new TreeMap(); File dir = getAdminDirectory(); File[] children = dir.listFiles();
public void runLogs() throws SVNException { Map logFiles = new TreeMap(); File dir = getAdminDirectory(); File[] children = dir.listFiles(); SVNLogRunner runner = new SVNLogRunner(); int index = 0; while(true) { SVNLog log = new SVNLog(this, index); index++; if (log.exists()) { log.run(runner); continue; } return; } }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/6c2a9b21ad94c8ea1ae6d43c84b3c1225fe4e460/SVNDirectory.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNDirectory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 7777, 1435, 1216, 29537, 50, 503, 288, 3639, 1635, 613, 2697, 273, 394, 16381, 5621, 3639, 1387, 1577, 273, 22501, 2853, 5621, 3639, 1387, 8526, 2325, 273, 1577, 18, 1098, 2697, 5621, 3639, 29537, 50, 1343, 9709, 8419, 273, 394, 29537, 50, 1343, 9709, 5621, 3639, 509, 770, 273, 374, 31, 3639, 1323, 12, 3767, 13, 288, 5411, 29537, 50, 1343, 613, 273, 394, 29537, 50, 1343, 12, 2211, 16, 770, 1769, 5411, 770, 9904, 31, 5411, 309, 261, 1330, 18, 1808, 10756, 288, 7734, 613, 18, 2681, 12, 18156, 1769, 7734, 1324, 31, 5411, 289, 5411, 327, 31, 3639, 289, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 1086, 7777, 1435, 1216, 29537, 50, 503, 288, 3639, 1635, 613, 2697, 273, 394, 16381, 5621, 3639, 1387, 1577, 273, 22501, 2853, 5621, 3639, 1387, 8526, 2325, 273, 1577, 18, 1098, 2697, 5621, 3639, 29537, 50, 1343, 9709, 8419, 273, 394, 29537, 50, 1343, 9709, 5621, 3639, 509, 770, 273, 374, 31, 3639, 1323, 12, 3767, 13, 288, 5411, 29537, 50, 1343, 613, 273, 394, 29537, 50, 1343, 12, 2211, 16, 770, 1769, 5411, 770, 9904, 31, 5411, 309, 261, 1330, 18, 1808, 10756, 288, 7734, 613, 18, 2681, 12, 18156, 1769, 7734, 1324, 31, 5411, 289, 5411, 327, 31, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]