rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
WagonUtils.fromString( checksumResource, wagon, actualChecksum );
public void transferCompleted( TransferEvent transferEvent ) { if ( digester == null ) { return; } Wagon wagon = transferEvent.getWagon(); actualChecksum = encode( digester.digest() ); digester = null; InputStream inputStream = null; transferingChecksum = true; String checksumResource = transferEvent.getResource().getName() + extension; int type = transferEvent.getRequestType(); try { if ( type == TransferEvent.REQUEST_GET ) { //we will fetch md5 cheksum from server and // read its content into memory File artifactFile = transferEvent.getLocalFile(); File checksumFile = new File( artifactFile.getPath() + extension ); wagon.get( checksumResource, checksumFile ); expectedChecksum = FileUtils.fileRead( checksumFile ).trim(); } else { //It's PUT put request we will also put md5 checksum // which was computed on the fly WagonUtils.fromString( checksumResource, wagon, actualChecksum ); } } catch ( ResourceDoesNotExistException e ) { transferError( new TransferEvent( wagon, new Resource( checksumResource ), e, type ) ); } catch ( WagonException e ) { transferError( new TransferEvent( wagon, new Resource( checksumResource ), e, type ) ); } catch ( IOException e ) { transferError( new TransferEvent( wagon, new Resource( checksumResource ), e, type ) ); } finally { IoUtils.close( inputStream ); transferingChecksum = false; } }
51920 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51920/53aeb055f07dc88e090d8e89f7a90ada34c4d317/ChecksumObserver.java/buggy/wagon-provider-api/src/main/java/org/apache/maven/wagon/observers/ChecksumObserver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7412, 9556, 12, 12279, 1133, 7412, 1133, 262, 565, 288, 3639, 309, 261, 23821, 422, 446, 262, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 678, 346, 265, 341, 346, 265, 273, 7412, 1133, 18, 588, 59, 346, 265, 5621, 3639, 3214, 10723, 273, 2017, 12, 23821, 18, 10171, 1435, 11272, 3639, 23821, 273, 446, 31, 3639, 5037, 10010, 273, 446, 31, 3639, 7412, 310, 10723, 273, 638, 31, 3639, 514, 6697, 1420, 273, 7412, 1133, 18, 588, 1420, 7675, 17994, 1435, 397, 2710, 31, 3639, 509, 618, 273, 7412, 1133, 18, 588, 691, 559, 5621, 3639, 775, 3639, 288, 5411, 309, 261, 618, 422, 12279, 1133, 18, 5519, 67, 3264, 262, 5411, 288, 7734, 368, 1814, 903, 2158, 3481, 25, 462, 3839, 1364, 628, 1438, 471, 7734, 368, 855, 2097, 913, 1368, 3778, 7734, 1387, 6462, 812, 273, 7412, 1133, 18, 588, 2042, 812, 5621, 7734, 1387, 6697, 812, 273, 394, 1387, 12, 6462, 812, 18, 588, 743, 1435, 397, 2710, 11272, 7734, 341, 346, 265, 18, 588, 12, 6697, 1420, 16, 6697, 812, 11272, 7734, 2665, 10723, 273, 13779, 18, 768, 1994, 12, 6697, 812, 262, 18, 5290, 5621, 5411, 289, 5411, 469, 5411, 288, 7734, 368, 7193, 1807, 11443, 1378, 590, 732, 903, 2546, 1378, 3481, 25, 6697, 7734, 368, 1492, 1703, 8470, 603, 326, 21434, 21821, 289, 3639, 289, 3639, 1044, 261, 2591, 26621, 425, 262, 3639, 288, 5411, 7412, 668, 12, 394, 12279, 1133, 12, 341, 346, 265, 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, 377, 1071, 918, 7412, 9556, 12, 12279, 1133, 7412, 1133, 262, 565, 288, 3639, 309, 261, 23821, 422, 446, 262, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 678, 346, 265, 341, 346, 265, 273, 7412, 1133, 18, 588, 59, 346, 265, 5621, 3639, 3214, 10723, 273, 2017, 12, 23821, 18, 10171, 1435, 11272, 3639, 23821, 273, 446, 31, 3639, 5037, 10010, 273, 446, 31, 3639, 7412, 310, 10723, 273, 638, 31, 3639, 514, 6697, 1420, 273, 7412, 1133, 18, 588, 1420, 7675, 17994, 1435, 397, 2710, 31, 3639, 509, 618, 273, 7412, 1133, 18, 588, 691, 559, 5621, 3639, 775, 3639, 288, 5411, 309, 261, 618, 422, 12279, 1133, 18, 5519, 67, 3264, 262, 5411, 288, 7734, 368, 2 ]
if (body == null) {
if (gmbr == null || gmbr.getBody() == null) {
public RubyObject call(RubyObject recv, String name, RubyPointer args, int scope) { CacheEntry ent = getRuby().getMethodCache().getEntry(this, name); RubyModule klass = this; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { RubyPointer newArgs = new RubyPointer(); newArgs.add(RubySymbol.newSymbol(getRuby(), name)); if (args != null) { newArgs.addAll(args); } return recv.funcall("method_missing", newArgs); } klass = ent.getOrigin(); name = ent.getOriginalName(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(name, 0); klass = gmbr.getRecvClass(); name = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException(getRuby(), "super: no superclass method '" + name + "'"); } RubyPointer newArgs = new RubyPointer(); newArgs.add(RubySymbol.newSymbol(getRuby(), name)); if (args != null) { newArgs.addAll(args); } return recv.funcall("method_missing", newArgs); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, name, args, body, false); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/6db60367cc1d14c2207b75284c69e4f6817da767/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 12, 54, 10340, 921, 10665, 16, 514, 508, 16, 19817, 4926, 833, 16, 509, 2146, 13, 288, 3639, 27657, 3281, 273, 4170, 10340, 7675, 588, 1305, 1649, 7675, 588, 1622, 12, 2211, 16, 508, 1769, 3639, 19817, 3120, 7352, 273, 333, 31, 3639, 509, 1158, 338, 31, 3639, 2029, 1417, 31, 3639, 309, 261, 319, 480, 446, 13, 288, 5411, 309, 261, 319, 18, 588, 1305, 1435, 422, 446, 13, 288, 7734, 19817, 4926, 394, 2615, 273, 394, 19817, 4926, 5621, 7734, 394, 2615, 18, 1289, 12, 54, 10340, 5335, 18, 2704, 5335, 12, 588, 54, 10340, 9334, 508, 10019, 7734, 309, 261, 1968, 480, 446, 13, 288, 1171, 202, 2704, 2615, 18, 1289, 1595, 12, 1968, 1769, 7734, 289, 7734, 327, 10665, 18, 644, 454, 2932, 2039, 67, 7337, 3113, 394, 2615, 1769, 5411, 289, 5411, 7352, 273, 3281, 18, 588, 7571, 5621, 5411, 508, 273, 3281, 18, 588, 8176, 461, 5621, 5411, 1158, 338, 273, 3281, 18, 588, 2279, 338, 5621, 5411, 1417, 273, 3281, 18, 588, 1305, 5621, 3639, 289, 469, 288, 5411, 968, 1305, 2250, 1253, 314, 1627, 86, 273, 6272, 2250, 12, 529, 16, 374, 1769, 5411, 7352, 273, 314, 1627, 86, 18, 588, 28470, 797, 5621, 5411, 508, 273, 314, 1627, 86, 18, 26321, 5621, 5411, 1158, 338, 273, 314, 1627, 86, 18, 588, 2279, 338, 5621, 5411, 1417, 273, 314, 1627, 86, 18, 588, 2250, 5621, 5411, 309, 261, 75, 1627, 86, 422, 446, 747, 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, 745, 12, 54, 10340, 921, 10665, 16, 514, 508, 16, 19817, 4926, 833, 16, 509, 2146, 13, 288, 3639, 27657, 3281, 273, 4170, 10340, 7675, 588, 1305, 1649, 7675, 588, 1622, 12, 2211, 16, 508, 1769, 3639, 19817, 3120, 7352, 273, 333, 31, 3639, 509, 1158, 338, 31, 3639, 2029, 1417, 31, 3639, 309, 261, 319, 480, 446, 13, 288, 5411, 309, 261, 319, 18, 588, 1305, 1435, 422, 446, 13, 288, 7734, 19817, 4926, 394, 2615, 273, 394, 19817, 4926, 5621, 7734, 394, 2615, 18, 1289, 12, 54, 10340, 5335, 18, 2704, 5335, 12, 588, 54, 10340, 9334, 508, 10019, 7734, 309, 261, 1968, 480, 446, 13, 288, 1171, 202, 2704, 2615, 18, 1289, 2 ]
_t = __t670;
_t = __t675;
public final void disconnectstate(AST _t) throws RecognitionException { AST disconnectstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t670 = _t; AST tmp1243_AST_in = (AST)_t; match(_t,DISCONNECT); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp1244_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t670; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 9479, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 9479, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 26, 7301, 273, 389, 88, 31, 202, 202, 9053, 1853, 2138, 8942, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 13498, 11032, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 3459, 280, 1132, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 3741, 3589, 67, 30134, 30, 202, 202, 95, 1082, 202, 9053, 1853, 2138, 6334, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 3417, 3589, 67, 30134, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 6431, 30, 202, 202, 3593, 10950, 21054, 30, 202, 202, 95, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 1886, 30, 202, 202, 95, 1082, 202, 12849, 394, 17114, 24899, 88, 1769, 202, 202, 97, 202, 202, 97, 202, 202, 97, 202, 202, 2019, 67, 409, 24899, 88, 1769, 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, 9479, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 9479, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 26, 7301, 273, 389, 88, 31, 202, 202, 9053, 1853, 2138, 8942, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 13498, 11032, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 3459, 280, 1132, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 2 ]
ruby.getRubyParser().compileString(sb.toString(), fname, 0);
ruby.getRubyParser().compileString(fname.getValue(), RubyString.m_newString(ruby, sb.toString()), 0);
public void load(RubyString fname, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); NODE savedCRef = ruby.getRubyCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(fname); } // fname = findFile(fname); if (fname == null) { throw new RubyException("No such file to load -- " + fname.getValue()); } // volatile ID last_func; // volatile VALUE wrapper = 0; // ruby_errinfo = Qnil; /* ensure */ RubyVarmap.push(ruby); pushClass(); RubyModule wrapper = ruby_wrapper; ruby.setRubyCRef(ruby.getTopCRef()); if (!wrap) { ruby.secure(4); /* should alter global state */ ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby_wrapper = null; } else { /* load in anonymous module as toplevel */ ruby_wrapper = RubyModule.m_newModule(ruby); ruby.setRubyClass(ruby_wrapper); self = ruby.getRubyTopSelf().m_clone(); self.extendObject(ruby.getRubyClass()); PUSH_CREF(ruby_wrapper); } ruby.getRubyFrame().push(); ruby.getRubyFrame().setLastFunc(null); ruby.getRubyFrame().setLastClass(null); ruby.getRubyFrame().setSelf(self); ruby.getRubyFrame().setCbase(new NodeFactory(ruby).newDefaultNode(NODE.NODE_CREF, ruby.getRubyClass(), null, null)); ruby.getRubyScope().push(); /* default visibility is private at loading toplevel */ setActMethodScope(SCOPE_PRIVATE); RubyId last_func = ruby.getRubyFrame().getLastFunc(); try { // RubyId last_func = ruby.getRubyFrame().getLastFunc(); // DEFER_INTS; ruby.setInEval(ruby.getInEval() + 1); // +++ try { File rubyFile = new File(fname.getValue()); StringBuffer sb = new StringBuffer((int)rubyFile.length()); BufferedReader br = new BufferedReader(new FileReader(rubyFile)); String line; while ((line = br.readLine()) != null) { sb.append(line).append('\n'); } br.close(); ruby.getRubyParser().compileString(sb.toString(), fname, 0); } catch (IOException ioExcptn) { System.out.println("Cannot read Rubyfile: \"" + fname.getValue() + "\""); System.out.println("IOEception: " + ioExcptn.getMessage()); } // --- ruby.setInEval(ruby.getInEval() - 1); eval(self, ruby.getParserHelper().getEvalTree()); // evalNode } catch (RubyException excptn) { } ruby.getRubyFrame().setLastFunc(last_func); /*if (ruby.getRubyScope().getFlags() == SCOPE_ALLOCA && ruby.getRubyClass() == ruby.getClasses().getObjectClass()) { if (ruby_scope->local_tbl) free(ruby_scope->local_tbl); }*/ ruby.setRubyCRef(savedCRef); ruby.getRubyScope().pop(); ruby.getRubyFrame().pop(); popClass(); RubyVarmap.pop(ruby); ruby_wrapper = wrapper; /*if (ruby_nerrs > 0) { ruby_nerrs = 0; rb_exc_raise(ruby_errinfo); }*/ }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/a6fb3288b71aaedfe3a7b5e8d1e561e0bc249dc6/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 12, 54, 10340, 780, 5299, 16, 1250, 2193, 13, 288, 3639, 19817, 921, 365, 273, 22155, 18, 588, 54, 10340, 3401, 10084, 5621, 3639, 11922, 5198, 39, 1957, 273, 22155, 18, 588, 54, 10340, 39, 1957, 5621, 5411, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 7734, 309, 261, 4113, 597, 22155, 18, 588, 4368, 2355, 1435, 1545, 1059, 13, 288, 5411, 368, 2073, 67, 559, 12, 12749, 16, 399, 67, 5804, 1769, 3639, 289, 469, 288, 5411, 368, 2073, 67, 9890, 1585, 12, 12749, 1769, 3639, 289, 7734, 368, 5299, 273, 1104, 812, 12, 12749, 1769, 3639, 309, 261, 12749, 422, 446, 13, 288, 5411, 604, 394, 19817, 503, 2932, 2279, 4123, 585, 358, 1262, 1493, 315, 397, 5299, 18, 24805, 10663, 3639, 289, 7734, 368, 31548, 1599, 1142, 67, 644, 31, 3639, 368, 31548, 5848, 4053, 273, 374, 31, 202, 3639, 368, 22155, 67, 370, 1376, 273, 2238, 20154, 31, 202, 20308, 3387, 1195, 5411, 19817, 1537, 1458, 18, 6206, 12, 27768, 1769, 3639, 1817, 797, 5621, 7734, 19817, 3120, 4053, 273, 22155, 67, 8376, 31, 3639, 22155, 18, 542, 54, 10340, 39, 1957, 12, 27768, 18, 588, 3401, 39, 1957, 10663, 7734, 309, 16051, 4113, 13, 288, 5411, 22155, 18, 8869, 12, 24, 1769, 202, 202, 20308, 1410, 10182, 2552, 919, 1195, 5411, 22155, 18, 542, 54, 10340, 797, 12, 27768, 18, 588, 4818, 7675, 588, 921, 797, 10663, 5411, 22155, 67, 8376, 273, 446, 31, 3639, 289, 469, 288, 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, 1262, 12, 54, 10340, 780, 5299, 16, 1250, 2193, 13, 288, 3639, 19817, 921, 365, 273, 22155, 18, 588, 54, 10340, 3401, 10084, 5621, 3639, 11922, 5198, 39, 1957, 273, 22155, 18, 588, 54, 10340, 39, 1957, 5621, 5411, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 7734, 309, 261, 4113, 597, 22155, 18, 588, 4368, 2355, 1435, 1545, 1059, 13, 288, 5411, 368, 2073, 67, 559, 12, 12749, 16, 399, 67, 5804, 1769, 3639, 289, 469, 288, 5411, 368, 2073, 67, 9890, 1585, 12, 12749, 1769, 3639, 289, 7734, 368, 5299, 273, 1104, 812, 12, 12749, 1769, 3639, 309, 261, 12749, 422, 446, 13, 288, 5411, 604, 394, 19817, 503, 2932, 2279, 4123, 585, 358, 2 ]
System.arraycopy(overflowBuffer.getBuffer(), 0, allSamples, start, overflowBuffer.getOccupancy());
System.arraycopy(overflowBuffer.getBuffer(), 0, allSamples, start, overflowBuffer.getOccupancy());
private void process(DoubleData input) throws DataProcessingException { currentCollectTime = input.getCollectTime(); double[] in = input.getValues(); int length = overflowBuffer.getOccupancy() + in.length; List dataList = new LinkedList(); dataList.add(input); Data utteranceEnd = null; // read in more Data if we have under one window's length of data while (length < cosineWindow.length) { Data next = getPredecessor().getData(); if (next instanceof DoubleData) { dataList.add(next); length += ((DoubleData) next).getValues().length; } else if (next instanceof DataEndSignal) { utteranceEnd = next; break; } } double[] allSamples = in; // prepend overflow samples if (length != in.length) { allSamples = new double[length]; int start = 0; // copy overflow samples to allSamples buffer System.arraycopy(overflowBuffer.getBuffer(), 0, allSamples, start, overflowBuffer.getOccupancy()); start = overflowBuffer.getOccupancy(); // copy input samples to allSamples buffer for (Iterator i = dataList.iterator(); i.hasNext(); ) { DoubleData next = (DoubleData) i.next(); double[] samples = next.getValues(); System.arraycopy(samples, 0, allSamples, start, samples.length); start += samples.length; } } // apply Hamming window int residual = applyRaisedCosineWindow(allSamples, length); // save elements that also belong to the next window overflowBuffer.reset(); if (length - residual > 0) { overflowBuffer.append(allSamples, residual, length - residual); } if (utteranceEnd != null) { // end of utterance handling processUtteranceEnd(); outputQueue.add(utteranceEnd); } }
7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/b92cd7d1b30dfe032af79a340c4e5877f0e4ec0e/RaisedCosineWindower.java/buggy/src/sphinx4/edu/cmu/sphinx/frontend/window/RaisedCosineWindower.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12, 5265, 751, 810, 13, 1216, 1910, 23684, 288, 3639, 783, 10808, 950, 273, 810, 18, 588, 10808, 950, 5621, 540, 202, 9056, 8526, 316, 273, 810, 18, 588, 1972, 5621, 3639, 509, 769, 273, 9391, 1892, 18, 588, 24269, 416, 12514, 1435, 397, 316, 18, 2469, 31, 3639, 987, 501, 682, 273, 394, 10688, 5621, 3639, 501, 682, 18, 1289, 12, 2630, 1769, 7734, 1910, 31297, 1638, 273, 446, 31, 7734, 368, 855, 316, 1898, 1910, 309, 732, 1240, 3613, 1245, 2742, 1807, 769, 434, 501, 3639, 1323, 261, 2469, 411, 31633, 3829, 18, 2469, 13, 288, 5411, 1910, 1024, 273, 12822, 14258, 280, 7675, 588, 751, 5621, 5411, 309, 261, 4285, 1276, 3698, 751, 13, 288, 7734, 501, 682, 18, 1289, 12, 4285, 1769, 7734, 769, 1011, 14015, 5265, 751, 13, 1024, 2934, 588, 1972, 7675, 2469, 31, 5411, 289, 469, 309, 261, 4285, 1276, 1910, 1638, 11208, 13, 288, 7734, 31297, 1638, 273, 1024, 31, 7734, 898, 31, 5411, 289, 3639, 289, 202, 9056, 8526, 777, 13239, 273, 316, 31, 3639, 368, 8254, 9391, 5216, 3639, 309, 261, 2469, 480, 316, 18, 2469, 13, 288, 5411, 777, 13239, 273, 394, 1645, 63, 2469, 15533, 5411, 509, 787, 273, 374, 31, 202, 377, 202, 565, 368, 1610, 9391, 5216, 358, 777, 13239, 1613, 202, 565, 2332, 18, 1126, 3530, 12, 11512, 1892, 18, 588, 1892, 9334, 374, 16, 9506, 377, 777, 13239, 16, 787, 16, 9391, 1892, 18, 588, 24269, 416, 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, 1207, 12, 5265, 751, 810, 13, 1216, 1910, 23684, 288, 3639, 783, 10808, 950, 273, 810, 18, 588, 10808, 950, 5621, 540, 202, 9056, 8526, 316, 273, 810, 18, 588, 1972, 5621, 3639, 509, 769, 273, 9391, 1892, 18, 588, 24269, 416, 12514, 1435, 397, 316, 18, 2469, 31, 3639, 987, 501, 682, 273, 394, 10688, 5621, 3639, 501, 682, 18, 1289, 12, 2630, 1769, 7734, 1910, 31297, 1638, 273, 446, 31, 7734, 368, 855, 316, 1898, 1910, 309, 732, 1240, 3613, 1245, 2742, 1807, 769, 434, 501, 3639, 1323, 261, 2469, 411, 31633, 3829, 18, 2469, 13, 288, 5411, 1910, 1024, 273, 12822, 14258, 280, 7675, 588, 751, 5621, 5411, 309, 261, 4285, 1276, 3698, 2 ]
private JMethod createSetter( Parameter parameter, JClass jClass )
private JMethod createSetter( Parameter parameter )
private JMethod createSetter( Parameter parameter, JClass jClass ) { String propertyName = capitalise( parameter.getName() ); JMethod setter = new JMethod( null, "set" + propertyName ); String type = parameter.getType(); JType parameterType; int arrayLocation = type.indexOf( "[]" ); if ( arrayLocation > 0 ) { type = type.substring( 0, arrayLocation ); parameterType = new JClass( type ).createArray(); } else { parameterType = new JClass( type ); } setter.addParameter( new JParameter( parameterType, parameter.getName() ) ); setter.getSourceCode().add( "addParameter( " + "\"" + parameter.getName() + "\", " + parameter.getName() + " );" ); return setter; }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/24c6328ad361f8e709e2b3fddefd9cde220a0628/BeanGenerator.java/buggy/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/BeanGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 1305, 752, 8465, 12, 5498, 1569, 262, 565, 288, 3639, 514, 5470, 273, 12872, 784, 12, 1569, 18, 17994, 1435, 11272, 3639, 804, 1305, 7794, 273, 394, 804, 1305, 12, 446, 16, 315, 542, 6, 397, 5470, 11272, 3639, 514, 618, 273, 1569, 18, 588, 559, 5621, 3639, 804, 559, 28240, 31, 3639, 509, 526, 2735, 273, 618, 18, 31806, 12, 5158, 4279, 11272, 3639, 309, 261, 526, 2735, 405, 374, 262, 3639, 288, 5411, 618, 273, 618, 18, 28023, 12, 374, 16, 526, 2735, 11272, 5411, 28240, 273, 394, 804, 797, 12, 618, 262, 18, 2640, 1076, 5621, 3639, 289, 3639, 469, 3639, 288, 5411, 28240, 273, 394, 804, 797, 12, 618, 11272, 3639, 289, 3639, 7794, 18, 1289, 1662, 12, 394, 804, 1662, 12, 28240, 16, 1569, 18, 17994, 1435, 262, 11272, 3639, 7794, 18, 588, 1830, 1085, 7675, 1289, 12, 315, 1289, 1662, 12, 315, 397, 11143, 397, 1569, 18, 17994, 1435, 397, 1548, 3113, 315, 397, 1569, 18, 17994, 1435, 5411, 397, 315, 262, 4868, 11272, 3639, 327, 7794, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 1305, 752, 8465, 12, 5498, 1569, 262, 565, 288, 3639, 514, 5470, 273, 12872, 784, 12, 1569, 18, 17994, 1435, 11272, 3639, 804, 1305, 7794, 273, 394, 804, 1305, 12, 446, 16, 315, 542, 6, 397, 5470, 11272, 3639, 514, 618, 273, 1569, 18, 588, 559, 5621, 3639, 804, 559, 28240, 31, 3639, 509, 526, 2735, 273, 618, 18, 31806, 12, 5158, 4279, 11272, 3639, 309, 261, 526, 2735, 405, 374, 262, 3639, 288, 5411, 618, 273, 618, 18, 28023, 12, 374, 16, 526, 2735, 11272, 5411, 28240, 273, 394, 804, 797, 12, 618, 262, 18, 2640, 1076, 5621, 3639, 289, 3639, 469, 3639, 288, 5411, 28240, 273, 394, 804, 797, 12, 618, 11272, 3639, 289, 2 ]
if (helperModel.getType().equals("Pie Chart"))
if (helperModel.getType().equals("Pie Chart"))
private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if ((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if (currentChart.getType().equals(sType)) // Original chart is of this type (LineChart) { if (!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for (int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for (int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series.setStacked(false); } } } } else if (currentChart.getType().equals("Bar Chart") || currentChart.getType().equals("Stock Chart") || currentChart.getType().equals("Line Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData(), currentChart.getType() .equals("Stock Chart"))); currentChart.setType(sType); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(false); currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for (int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for (int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); } else { return null; } } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(false); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(getConvertedSampleData(helperModel.getSampleData(), false)); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if (helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add( ((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .getSeriesDefinitions().addAll( ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions() .get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions() .get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getAssociatedAxes().get(0)).getSeriesDefinitions(); for (int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if (currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if (!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/7793e94b4d7fab5891f226c6c937e37d85bebad8/ScatterChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/ScatterChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 3639, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 2972, 7984, 1769, 3639, 309, 14015, 2972, 7984, 1276, 14804, 1190, 26494, 3719, 368, 14804, 353, 14804, 1190, 26494, 3639, 288, 5411, 309, 261, 2972, 7984, 18, 588, 559, 7675, 14963, 12, 87, 559, 3719, 368, 19225, 4980, 353, 434, 333, 618, 261, 1670, 7984, 13, 5411, 288, 7734, 309, 16051, 2972, 7984, 18, 588, 30511, 7675, 14963, 12, 87, 1908, 30511, 3719, 368, 19225, 4980, 353, 434, 326, 1931, 12308, 7734, 288, 10792, 783, 7984, 18, 542, 30511, 12, 87, 1908, 30511, 1769, 10792, 17021, 6515, 273, 14015, 6558, 13, 14015, 7984, 1190, 26494, 13, 783, 7984, 2934, 588, 26494, 7675, 588, 12, 20, 13, 2934, 588, 19233, 26494, 5621, 10792, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6515, 18, 1467, 5621, 277, 27245, 10792, 288, 13491, 14015, 6558, 13, 6515, 18, 588, 12, 77, 13, 2934, 542, 8410, 12, 5743, 1769, 13491, 17021, 4166, 13314, 273, 14015, 6558, 13, 6515, 18, 588, 12, 77, 13, 2934, 588, 6485, 7130, 5621, 13491, 364, 261, 474, 525, 273, 374, 31, 525, 411, 4166, 13314, 18, 1467, 5621, 525, 27245, 13491, 288, 18701, 9225, 4166, 273, 14015, 6485, 1852, 13, 4166, 13314, 18, 588, 12, 78, 13, 2934, 588, 15478, 28486, 5621, 18701, 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, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 3639, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 2972, 7984, 1769, 3639, 309, 14015, 2972, 7984, 1276, 14804, 1190, 26494, 3719, 368, 14804, 353, 14804, 1190, 26494, 3639, 288, 5411, 309, 261, 2972, 7984, 18, 588, 559, 7675, 14963, 12, 87, 559, 3719, 368, 19225, 4980, 353, 434, 333, 618, 261, 1670, 7984, 13, 5411, 288, 7734, 309, 16051, 2972, 7984, 18, 588, 30511, 7675, 14963, 12, 87, 1908, 30511, 3719, 368, 19225, 4980, 353, 434, 326, 1931, 12308, 7734, 288, 10792, 783, 7984, 2 ]
return new SingleCheckboxOptionsPanel(InspectionGadgetsBundle.message("primitive.fields.ignore.option"),
return new SingleCheckboxOptionsPanel( InspectionGadgetsBundle.message("primitive.fields.ignore.option"),
public JComponent createOptionsPanel(){ return new SingleCheckboxOptionsPanel(InspectionGadgetsBundle.message("primitive.fields.ignore.option"), this, "m_ignorePrimitives"); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/912f616da38dfe9d5389f4b0b0b889a672876818/InstanceVariableInitializationInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/initialization/InstanceVariableInitializationInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29058, 752, 1320, 5537, 1435, 95, 3639, 327, 394, 10326, 21272, 1320, 5537, 12, 22085, 7017, 43, 361, 14665, 3405, 18, 2150, 2932, 683, 5025, 18, 2821, 18, 6185, 18, 3482, 6, 3631, 4766, 2868, 333, 16, 315, 81, 67, 6185, 2050, 18116, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29058, 752, 1320, 5537, 1435, 95, 3639, 327, 394, 10326, 21272, 1320, 5537, 12, 22085, 7017, 43, 361, 14665, 3405, 18, 2150, 2932, 683, 5025, 18, 2821, 18, 6185, 18, 3482, 6, 3631, 4766, 2868, 333, 16, 315, 81, 67, 6185, 2050, 18116, 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 ]
if ((p=project.getProperty("ant.netrexxc.sourcedir"))!=null) { this.sourcedir=Project.toBoolean(p);
if ((p = project.getProperty("ant.netrexxc.sourcedir")) != null) { this.sourcedir = Project.toBoolean(p);
public void init() { String p; if ((p=project.getProperty("ant.netrexxc.binary"))!=null) { this.binary=Project.toBoolean(p); } // classpath makes no sense if ((p=project.getProperty("ant.netrexxc.comments"))!=null) { this.comments=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.compact"))!=null) { this.compact=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.compile"))!=null) { this.compile=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.console"))!=null) { this.console=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.crossref"))!=null) { this.crossref=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.decimal"))!=null) { this.decimal=Project.toBoolean(p); // destDir } if ((p=project.getProperty("ant.netrexxc.diag"))!=null) { this.diag=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.explicit"))!=null) { this.explicit=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.format"))!=null) { this.format=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.java"))!=null) { this.java=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.keep"))!=null) { this.keep=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.logo"))!=null) { this.logo=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.replace"))!=null) { this.replace=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.savelog"))!=null) { this.savelog=Project.toBoolean(p); // srcDir } if ((p=project.getProperty("ant.netrexxc.sourcedir"))!=null) { this.sourcedir=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictargs"))!=null) { this.strictargs=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictassign"))!=null) { this.strictassign=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictcase"))!=null) { this.strictcase=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictimport"))!=null) { this.strictimport=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictprops"))!=null) { this.strictprops=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictsignal"))!=null) { this.strictsignal=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.symbols"))!=null) { this.symbols=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.time"))!=null) { this.time=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.trace"))!=null) { setTrace(p); } if ((p=project.getProperty("ant.netrexxc.utf8"))!=null) { this.utf8=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.verbose"))!=null) { setVerbose(p); } if ((p=project.getProperty("ant.netrexxc.suppressMethodArgumentNotUsed"))!=null) { this.suppressMethodArgumentNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressPrivatePropertyNotUsed"))!=null) { this.suppressPrivatePropertyNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressVariableNotUsed"))!=null) { this.suppressVariableNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressExceptionNotSignalled"))!=null) { this.suppressExceptionNotSignalled=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressDeprecation"))!=null) { this.suppressDeprecation=Project.toBoolean(p); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/NetRexxC.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 1435, 288, 3639, 514, 293, 31, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 8578, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, 18, 8578, 33, 4109, 18, 869, 5507, 12, 84, 1769, 3639, 289, 3639, 368, 10006, 7297, 1158, 12764, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 9231, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, 18, 9231, 33, 4109, 18, 869, 5507, 12, 84, 1769, 3639, 289, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 21038, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, 18, 21038, 33, 4109, 18, 869, 5507, 12, 84, 1769, 3639, 289, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 11100, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, 18, 11100, 33, 4109, 18, 869, 5507, 12, 84, 1769, 3639, 289, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 8698, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, 18, 8698, 33, 4109, 18, 869, 5507, 12, 84, 1769, 3639, 289, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 14653, 1734, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, 18, 14653, 1734, 33, 4109, 18, 869, 5507, 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, 1208, 1435, 288, 3639, 514, 293, 31, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 8578, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, 18, 8578, 33, 4109, 18, 869, 5507, 12, 84, 1769, 3639, 289, 3639, 368, 10006, 7297, 1158, 12764, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 9231, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, 18, 9231, 33, 4109, 18, 869, 5507, 12, 84, 1769, 3639, 289, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 21038, 6, 3719, 5, 33, 2011, 13, 288, 2 ]
BufferedImage scaledImg = powerOfTwoATOp.filter((BufferedImage)ri, null);
powerOfTwoATOp.filter(bi, scaledImg);
void evaluateExtNonPowerOfTwo(int ext) { // Only need to enforce for Raster or Background. if(!enforceNonPowerOfTwoSupport) { return; } // If npotSupported is false, a copy power of two image has been created // so we don't have to check again. if(!npotSupported) { return; } if (imageData == null && !isByReference()) { return; } if((ext & Canvas3D.TEXTURE_NON_POWER_OF_TWO) != 0) { return; } // NPOT is unsupported, set flag to false. npotSupported = false; int npotWidth; int npotHeight; // Always scale up if image size is smaller 512*512. if((width * height) < IMAGE_SIZE_512X512) { npotWidth = getCeilPowerOf2(width); npotHeight = getCeilPowerOf2(height); } else { npotWidth = getClosestPowerOf2(width); npotHeight = getClosestPowerOf2(height); } // System.err.println("width " + width + " height " + height + " npotWidth " + npotWidth + " npotHeight " + npotHeight); float xScale = (float)npotWidth/(float)width; float yScale = (float)npotHeight/(float)height; // scale if scales aren't 1.0 if (!(xScale == 1.0f && yScale == 1.0f)) { RenderedImage ri = null; if (imageData == null) { // This is a byRef, support format and is a RenderedImage case. // See ImageComponent2DRetained.set(RenderedImage image) ri = (RenderedImage) getRefImage(0); if(!(ri instanceof BufferedImage)) { // Create a buffered image from renderImage ColorModel cm = ri.getColorModel(); WritableRaster wRaster = ri.copyData(null); ri = new BufferedImage(cm, wRaster, cm.isAlphaPremultiplied() ,null); // Create image data object with buffer for image. */ imageData = createRenderedImageDataObject(null); copySupportedImageToImageData(ri, 0, imageData); } } assert imageData != null; ri = imageData.createBufferedImage(0); AffineTransform at = AffineTransform.getScaleInstance(xScale, yScale); powerOfTwoATOp = new AffineTransformOp(at, AffineTransformOp.TYPE_BILINEAR); BufferedImage scaledImg = powerOfTwoATOp.filter((BufferedImage)ri, null); imageDataPowerOfTwo = createRenderedImageDataObject(null, npotWidth, npotHeight); // Since ri is created from imageData, it's imageType is supported. copySupportedImageToImageData(scaledImg, 0, imageDataPowerOfTwo); } else { imageDataPowerOfTwo = null; } }
8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/13c2b25663978af8afc7c52014cb84d1f5a67093/ImageComponentRetained.java/clean/src/classes/share/javax/media/j3d/ImageComponentRetained.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 5956, 2482, 3989, 13788, 951, 11710, 12, 474, 1110, 13, 288, 3639, 368, 5098, 1608, 358, 12980, 364, 30757, 578, 8977, 18, 3639, 309, 12, 5, 275, 5734, 3989, 13788, 951, 11710, 6289, 13, 288, 5411, 327, 31, 3639, 289, 7734, 368, 971, 1130, 352, 7223, 353, 629, 16, 279, 1610, 7212, 434, 2795, 1316, 711, 2118, 2522, 3639, 368, 1427, 732, 2727, 1404, 1240, 358, 866, 3382, 18, 3639, 309, 12, 5, 6782, 352, 7223, 13, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 2730, 751, 422, 446, 597, 401, 291, 858, 2404, 10756, 288, 5411, 327, 31, 3639, 289, 7734, 309, 12443, 408, 473, 20966, 23, 40, 18, 24652, 67, 3993, 67, 2419, 18839, 67, 3932, 67, 18869, 51, 13, 480, 374, 13, 288, 5411, 327, 31, 3639, 289, 3639, 368, 423, 52, 1974, 353, 13248, 16, 444, 2982, 358, 629, 18, 3639, 1130, 352, 7223, 273, 629, 31, 3639, 509, 1130, 352, 2384, 31, 3639, 509, 1130, 352, 2686, 31, 7734, 368, 14178, 3159, 731, 309, 1316, 963, 353, 10648, 13908, 14, 13757, 18, 3639, 309, 12443, 2819, 380, 2072, 13, 411, 10757, 67, 4574, 67, 13757, 60, 13757, 13, 288, 5411, 1130, 352, 2384, 273, 1927, 73, 330, 13788, 951, 22, 12, 2819, 1769, 5411, 1130, 352, 2686, 273, 1927, 73, 330, 13788, 951, 22, 12, 4210, 1769, 3639, 289, 469, 288, 5411, 1130, 352, 2384, 273, 1927, 383, 7781, 13788, 951, 22, 12, 2819, 1769, 5411, 1130, 352, 2686, 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, 918, 5956, 2482, 3989, 13788, 951, 11710, 12, 474, 1110, 13, 288, 3639, 368, 5098, 1608, 358, 12980, 364, 30757, 578, 8977, 18, 3639, 309, 12, 5, 275, 5734, 3989, 13788, 951, 11710, 6289, 13, 288, 5411, 327, 31, 3639, 289, 7734, 368, 971, 1130, 352, 7223, 353, 629, 16, 279, 1610, 7212, 434, 2795, 1316, 711, 2118, 2522, 3639, 368, 1427, 732, 2727, 1404, 1240, 358, 866, 3382, 18, 3639, 309, 12, 5, 6782, 352, 7223, 13, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 2730, 751, 422, 446, 597, 401, 291, 858, 2404, 10756, 288, 5411, 327, 31, 3639, 289, 7734, 309, 12443, 408, 473, 20966, 23, 40, 18, 24652, 67, 3993, 67, 2419, 18839, 2 ]
MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null)
MenuBarPeer myPeer = (MenuBarPeer) getPeer (); if (myPeer != null)
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHelpMenu (menu); }}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 6696, 4599, 12, 4599, 3824, 15329, 225, 309, 261, 5201, 4599, 480, 446, 13, 565, 288, 1377, 2809, 4599, 18, 4479, 9168, 261, 1769, 1377, 2809, 4599, 18, 2938, 273, 446, 31, 565, 289, 225, 2809, 4599, 273, 3824, 31, 225, 309, 261, 5414, 18, 2938, 480, 446, 13, 565, 3824, 18, 2938, 18, 4479, 261, 5414, 1769, 225, 3824, 18, 2938, 273, 333, 31, 225, 9809, 5190, 6813, 4261, 273, 261, 4599, 5190, 6813, 13, 29875, 261, 1769, 225, 309, 261, 12210, 480, 446, 13, 565, 288, 1377, 3824, 18, 1289, 9168, 5621, 1377, 4261, 18, 1289, 6696, 4599, 261, 5414, 1769, 565, 10523, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 6696, 4599, 12, 4599, 3824, 15329, 225, 309, 261, 5201, 4599, 480, 446, 13, 565, 288, 1377, 2809, 4599, 18, 4479, 9168, 261, 1769, 1377, 2809, 4599, 18, 2938, 273, 446, 31, 565, 289, 225, 2809, 4599, 273, 3824, 31, 225, 309, 261, 5414, 18, 2938, 480, 446, 13, 565, 3824, 18, 2938, 18, 4479, 261, 5414, 1769, 225, 3824, 18, 2938, 273, 333, 31, 225, 9809, 5190, 6813, 4261, 273, 261, 4599, 5190, 6813, 13, 29875, 261, 1769, 225, 309, 261, 12210, 480, 446, 13, 565, 288, 1377, 3824, 18, 1289, 9168, 5621, 1377, 4261, 18, 1289, 6696, 4599, 261, 5414, 1769, 565, 10523, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.Account getAccount() throws FieldNotFound { org.quickfix.field.Account value = new org.quickfix.field.Account();
public quickfix.field.Account getAccount() throws FieldNotFound { quickfix.field.Account value = new quickfix.field.Account();
public org.quickfix.field.Account getAccount() throws FieldNotFound { org.quickfix.field.Account value = new org.quickfix.field.Account(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralReport.java/buggy/src/java/src/quickfix/fix44/CollateralReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 23393, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3032, 23393, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (findAction != null) findAction.removePropertyChangeListener(findActionListener);
if (findAction != null) { findAction.removePropertyChangeListener(findActionListener); }
public void setFindAction(IAction action) { if (findAction == action) return; if (findAction != null) findAction.removePropertyChangeListener(findActionListener); findAction = action; if (findAction != null) findAction.addPropertyChangeListener(findActionListener); cellFindAction.updateEnabledState(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/CellEditorActionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/CellEditorActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3125, 1803, 12, 45, 1803, 1301, 13, 288, 3639, 309, 261, 4720, 1803, 422, 1301, 13, 5411, 327, 31, 3639, 309, 261, 4720, 1803, 480, 446, 13, 5411, 1104, 1803, 18, 4479, 1396, 15744, 12, 4720, 1803, 2223, 1769, 3639, 1104, 1803, 273, 1301, 31, 3639, 309, 261, 4720, 1803, 480, 446, 13, 5411, 1104, 1803, 18, 1289, 1396, 15744, 12, 4720, 1803, 2223, 1769, 3639, 2484, 3125, 1803, 18, 2725, 1526, 1119, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 444, 3125, 1803, 12, 45, 1803, 1301, 13, 288, 3639, 309, 261, 4720, 1803, 422, 1301, 13, 5411, 327, 31, 3639, 309, 261, 4720, 1803, 480, 446, 13, 5411, 1104, 1803, 18, 4479, 1396, 15744, 12, 4720, 1803, 2223, 1769, 3639, 1104, 1803, 273, 1301, 31, 3639, 309, 261, 4720, 1803, 480, 446, 13, 5411, 1104, 1803, 18, 1289, 1396, 15744, 12, 4720, 1803, 2223, 1769, 3639, 2484, 3125, 1803, 18, 2725, 1526, 1119, 5621, 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 ]
RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx));
getRuntime().newFixnum(getValue().charAt(idx));
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx)); } else if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]).search(this, 0) >= 0 ? RubyRegexp.last_match(getRuntime().getBackref()) : getRuntime().getNil(); } else if (args[0] instanceof RubyString) { return getValue().indexOf(stringValue(args[0]).getValue()) != -1 ? args[0] : getRuntime().getNil(); } else if (args[0] instanceof RubyRange) { long[] begLen = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, false); return begLen == null ? getRuntime().getNil() : substr((int) begLen[0], (int) begLen[1]); } int idx = (int) RubyNumeric.num2long(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx)); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327, 2373, 12, 54, 10340, 9902, 18, 904, 22, 474, 12, 1968, 63, 20, 65, 3631, 202, 1171, 202, 225, 19817, 9902, 18, 904, 22, 474, 12, 1968, 63, 21, 5717, 1769, 202, 565, 289, 202, 565, 309, 261, 1968, 63, 20, 65, 1276, 19817, 8585, 2107, 13, 288, 202, 3639, 509, 2067, 273, 19817, 9902, 18, 904, 22, 474, 12, 1968, 63, 20, 19226, 202, 3639, 309, 261, 3465, 411, 374, 13, 288, 202, 5411, 2067, 1011, 2366, 7675, 2469, 5621, 202, 3639, 289, 202, 3639, 327, 2067, 411, 374, 747, 2067, 1545, 2366, 7675, 2469, 1435, 692, 18814, 7675, 588, 12616, 1435, 294, 202, 540, 202, 54, 10340, 8585, 2107, 18, 2704, 8585, 2107, 12, 588, 5576, 9334, 2366, 7675, 3001, 861, 12, 3465, 10019, 202, 565, 289, 469, 309, 261, 1968, 63, 20, 65, 1276, 19817, 14621, 13, 288, 202, 377, 202, 2463, 19817, 14621, 18, 17745, 620, 12, 1968, 63, 20, 65, 2934, 3072, 12, 2211, 16, 374, 13, 1545, 374, 692, 202, 5411, 19817, 14621, 18, 2722, 67, 1916, 12, 588, 5576, 7675, 588, 2711, 1734, 10756, 294, 202, 2398, 202, 588, 5576, 7675, 588, 12616, 5621, 202, 565, 289, 469, 309, 261, 1968, 63, 20, 65, 1276, 19817, 780, 13, 288, 202, 3639, 327, 2366, 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, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327, 2373, 12, 54, 10340, 9902, 18, 904, 22, 474, 12, 1968, 63, 20, 65, 3631, 202, 1171, 202, 225, 19817, 9902, 18, 904, 22, 474, 12, 1968, 63, 21, 5717, 1769, 202, 565, 289, 202, 565, 309, 261, 1968, 63, 20, 65, 1276, 19817, 8585, 2107, 13, 288, 202, 3639, 509, 2067, 273, 19817, 9902, 18, 904, 22, 474, 12, 1968, 63, 20, 19226, 202, 3639, 309, 261, 3465, 411, 374, 13, 288, 202, 5411, 2067, 1011, 2366, 7675, 2469, 5621, 202, 2 ]
public BTree(Database db, int rootPointer) { this(db, rootPointer, 8);
public BTree(Database db, int rootPointer, IBTreeComparator cmp) { this(db, rootPointer, 8, cmp);
public BTree(Database db, int rootPointer) { this(db, rootPointer, 8); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d54cf4d243d6aeda192e76f691fe9cf9a3ee7c50/BTree.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/BTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 605, 2471, 12, 4254, 1319, 16, 509, 1365, 4926, 13, 288, 202, 202, 2211, 12, 1966, 16, 1365, 4926, 16, 1725, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 605, 2471, 12, 4254, 1319, 16, 509, 1365, 4926, 13, 288, 202, 202, 2211, 12, 1966, 16, 1365, 4926, 16, 1725, 1769, 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 ]
private void getOrCreateServiceLocator() { if (System.getSecurityManager() == null) { System.setSecurityManager(new java.rmi.RMISecurityManager()); } if (multicastLocator) { // For multicast LookupDiscovery discover = null; try { System.out.println(">> Start LookupDiscovery ..."); discover = new LookupDiscovery(LookupDiscovery.ALL_GROUPS); System.out.println(">> Stop LookupDiscovery ..."); } catch(Exception e) { System.err.println(e.toString()); e.printStackTrace(); System.exit(1); } discover.addDiscoveryListener(this); // stay around long enough to receive replies try { System.out.println(">> Start waiting Thread ..."); Thread.currentThread().sleep(MAX_WAIT); if (this.registrar == null) { createServiceLocator(); } System.out.println(">> Stop waiting Thread ..."); } catch(java.lang.InterruptedException e) { // do nothing } } else { // For unicast on `host` System.out.println("Lookup : jini://"+host); try { lookup = new LookupLocator("jini://"+host); System.out.println("Lookup.getRegistrar() on "+host); this.registrar = lookup.getRegistrar(); } catch(java.net.MalformedURLException e) { System.err.println("Lookup failed: " + e.getMessage()); e.printStackTrace(); } catch (java.io.IOException e) { System.err.println("Registrar search failed: " + e.getMessage()); if (MAX_RETRY-- > 0) { createServiceLocator(); getOrCreateServiceLocator(); } else { System.out.println("\nCannot run a ServiceLocator : Have you launched the rmid deamon on "+host); System.exit(2); } } catch (java.lang.ClassNotFoundException e) { System.err.println("Registrar search failed: " + e.toString()); e.printStackTrace(); } System.out.println("Registrar found on "+host); // Just for test displayServices(); } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/587595d3d238a839759fc80780989cf7b46a7398/ServiceLocatorHelper.java/clean/src/org/objectweb/proactive/core/jini/ServiceLocatorHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 588, 17717, 1179, 5786, 1435, 95, 430, 12, 3163, 18, 588, 4368, 1318, 1435, 631, 2011, 15329, 3163, 18, 542, 4368, 1318, 12, 2704, 6290, 18, 8864, 77, 18, 54, 7492, 4368, 1318, 10663, 97, 430, 12, 5421, 12544, 5786, 15329, 759, 1204, 406, 12544, 6609, 11918, 2251, 3165, 33, 2011, 31, 698, 95, 202, 3163, 18, 659, 18, 8222, 2932, 9778, 1685, 6609, 11918, 7070, 1769, 202, 2251, 3165, 33, 2704, 6609, 11918, 12, 6609, 11918, 18, 4685, 67, 28977, 1769, 202, 3163, 18, 659, 18, 8222, 2932, 9778, 4947, 6609, 11918, 7070, 1769, 97, 14683, 12, 503, 73, 15329, 202, 3163, 18, 370, 18, 8222, 12, 73, 18, 10492, 10663, 202, 73, 18, 1188, 6332, 5621, 202, 3163, 18, 8593, 12, 21, 1769, 97, 2251, 3165, 18, 1289, 11918, 2223, 12, 2211, 1769, 759, 334, 528, 12716, 5748, 5764, 9540, 479, 311, 427, 822, 5259, 698, 95, 202, 3163, 18, 659, 18, 8222, 2932, 9778, 1685, 20241, 3830, 7070, 1769, 202, 3830, 18, 2972, 3830, 7675, 19607, 12, 6694, 67, 19046, 1769, 202, 202, 430, 12, 2211, 18, 1574, 3337, 297, 631, 2011, 15329, 202, 2640, 1179, 5786, 5621, 202, 97, 202, 3163, 18, 659, 18, 8222, 2932, 9778, 4947, 20241, 3830, 7070, 1769, 97, 14683, 12, 6290, 18, 4936, 18, 24485, 503, 73, 15329, 202, 759, 19752, 352, 4018, 9090, 12107, 95, 759, 1290, 318, 12544, 265, 68, 2564, 68, 3163, 18, 659, 18, 8222, 2932, 6609, 30, 78, 8767, 14334, 15, 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, 3238, 6459, 588, 17717, 1179, 5786, 1435, 95, 430, 12, 3163, 18, 588, 4368, 1318, 1435, 631, 2011, 15329, 3163, 18, 542, 4368, 1318, 12, 2704, 6290, 18, 8864, 77, 18, 54, 7492, 4368, 1318, 10663, 97, 430, 12, 5421, 12544, 5786, 15329, 759, 1204, 406, 12544, 6609, 11918, 2251, 3165, 33, 2011, 31, 698, 95, 202, 3163, 18, 659, 18, 8222, 2932, 9778, 1685, 6609, 11918, 7070, 1769, 202, 2251, 3165, 33, 2704, 6609, 11918, 12, 6609, 11918, 18, 4685, 67, 28977, 1769, 202, 3163, 18, 659, 18, 8222, 2932, 9778, 4947, 6609, 11918, 7070, 1769, 97, 14683, 12, 503, 73, 15329, 202, 3163, 18, 370, 18, 8222, 12, 73, 18, 10492, 10663, 202, 73, 18, 1188, 6332, 2 ]
if ( e.getSource( ).equals( cmpDropDown ) || e.getSource( ).equals( srTransparency ) )
if ( isPopupControl( e.getSource( ) ) )
public void focusLost( FocusEvent e ) { if ( e.getSource( ).equals( cmpDropDown ) || e.getSource( ).equals( srTransparency ) ) { // Condition added to handle behavior under Linux Control cTmp = Display.getCurrent( ).getCursorControl( ); if ( cTmp != null ) { if ( cTmp.equals( btnGradient ) || cTmp.equals( btnCustom ) || cTmp.equals( btnReset ) || cTmp.equals( btnAuto ) || cTmp.equals( btnImage ) || ( e.getSource( ).equals( cmpDropDown ) && cTmp.equals( srTransparency ) ) ) { return; } if ( cTmp.equals( cnvSelection ) || cTmp.equals( btnDown ) ) { bJustFocusLost = true; } } cmpDropDown.getShell( ).dispose( ); return; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8cc82cc45cfffb78afa9d75c1f95bbef888b491e/FillChooserComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7155, 19024, 12, 478, 4560, 1133, 425, 262, 202, 95, 202, 202, 430, 261, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 9411, 7544, 4164, 262, 9506, 202, 20081, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 9133, 1429, 18258, 262, 262, 202, 202, 95, 1082, 202, 759, 7949, 3096, 358, 1640, 6885, 3613, 13318, 1082, 202, 3367, 276, 9161, 273, 9311, 18, 588, 3935, 12, 262, 18, 588, 6688, 3367, 12, 11272, 1082, 202, 430, 261, 276, 9161, 480, 446, 262, 1082, 202, 95, 9506, 202, 430, 261, 276, 9161, 18, 14963, 12, 10638, 15651, 262, 25083, 202, 20081, 276, 9161, 18, 14963, 12, 10638, 3802, 262, 25083, 202, 20081, 276, 9161, 18, 14963, 12, 10638, 7013, 262, 25083, 202, 20081, 276, 9161, 18, 14963, 12, 10638, 4965, 262, 25083, 202, 20081, 276, 9161, 18, 14963, 12, 10638, 2040, 262, 25083, 202, 20081, 261, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 9411, 7544, 4164, 262, 597, 276, 9161, 18, 14963, 12, 9133, 1429, 18258, 262, 262, 262, 9506, 202, 95, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 430, 261, 276, 9161, 18, 14963, 12, 6227, 90, 6233, 262, 747, 276, 9161, 18, 14963, 12, 10638, 4164, 262, 262, 9506, 202, 95, 6862, 202, 70, 19642, 9233, 19024, 273, 638, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 9625, 7544, 4164, 18, 588, 13220, 12, 262, 18, 2251, 4150, 12, 11272, 1082, 202, 2463, 31, 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, 7155, 19024, 12, 478, 4560, 1133, 425, 262, 202, 95, 202, 202, 430, 261, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 9411, 7544, 4164, 262, 9506, 202, 20081, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 9133, 1429, 18258, 262, 262, 202, 202, 95, 1082, 202, 759, 7949, 3096, 358, 1640, 6885, 3613, 13318, 1082, 202, 3367, 276, 9161, 273, 9311, 18, 588, 3935, 12, 262, 18, 588, 6688, 3367, 12, 11272, 1082, 202, 430, 261, 276, 9161, 480, 446, 262, 1082, 202, 95, 9506, 202, 430, 261, 276, 9161, 18, 14963, 12, 10638, 15651, 262, 25083, 202, 20081, 276, 9161, 18, 14963, 12, 10638, 3802, 262, 25083, 202, 20081, 276, 9161, 2 ]
if( runLength > 0 )
if( runLength > 0 ) {
public void close() throws IOException { if( closed ) return; if( runLength > 0 ) writeRun(); currentChar = -1; endBlock(); endCompression(); closed = true; super.close(); bsStream.close(); }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/8ce1de2178a0422105fa437c327b49fb5637ff28/CBZip2OutputStream.java/buggy/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1435, 3639, 1216, 1860, 565, 288, 3639, 309, 12, 4375, 262, 5411, 327, 31, 3639, 309, 12, 1086, 1782, 405, 374, 262, 288, 5411, 1045, 1997, 5621, 3639, 29445, 273, 300, 21, 31, 3639, 679, 1768, 5621, 3639, 679, 15270, 5621, 3639, 4375, 273, 638, 31, 3639, 2240, 18, 4412, 5621, 3639, 7081, 1228, 18, 4412, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1435, 3639, 1216, 1860, 565, 288, 3639, 309, 12, 4375, 262, 5411, 327, 31, 3639, 309, 12, 1086, 1782, 405, 374, 262, 288, 5411, 1045, 1997, 5621, 3639, 29445, 273, 300, 21, 31, 3639, 679, 1768, 5621, 3639, 679, 15270, 5621, 3639, 4375, 273, 638, 31, 3639, 2240, 18, 4412, 5621, 3639, 7081, 1228, 18, 4412, 5621, 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 ]
swingInvokeLater(enterAction);
callback.enterInterrupt(frame, threadTitle, alertMessage);
void interrupted(Context cx, final StackFrame frame, Throwable scriptException) { boolean eventThreadFlag = SwingUtilities.isEventDispatchThread(); ContextData contextData = frame.contextData(); contextData.eventThreadFlag = eventThreadFlag; int line = frame.getLineNumber(); String url = frame.getUrl(); synchronized (swingMonitor) { if (eventThreadFlag) { dispatcherIsWaiting++; if (nonDispatcherWaiting) { // Another thread is stopped in the debugger // process events until it resumes and we // can enter while (nonDispatcherWaiting) { try { dispatchNextAwtEvent(); if (this.returnValue == EXIT) { return; } swingMonitor.wait(1); } catch (InterruptedException exc) { return; } } } } else { while (isInterrupted || dispatcherIsWaiting > 0) { try { swingMonitor.wait(); } catch (InterruptedException exc) { return; } } nonDispatcherWaiting = true; } isInterrupted = true; currentContextData = contextData; } do { int frameCount = contextData.frameCount(); this.frameIndex = frameCount -1; final String threadTitle = Thread.currentThread().toString(); final String alertMessage; if (scriptException == null) { alertMessage = null; } else { alertMessage = scriptException.toString(); } Runnable enterAction = new Runnable() { public void run() { debugGui.enterInterrupt(frame, threadTitle, alertMessage); } }; int returnValue = -1; if (!eventThreadFlag) { synchronized (monitor) { if (insideInterruptLoop) Kit.codeBug(); this.insideInterruptLoop = true; this.evalRequest = null; this.returnValue = -1; swingInvokeLater(enterAction); try { for (;;) { try { monitor.wait(); } catch (InterruptedException exc) { Thread.currentThread().interrupt(); break; } if (evalRequest != null) { this.evalResult = null; try { evalResult = do_eval(cx, evalFrame, evalRequest); } finally { evalRequest = null; evalFrame = null; monitor.notify(); } continue; } if (this.returnValue != -1) { returnValue = this.returnValue; break; } } } finally { insideInterruptLoop = false; } } } else { this.returnValue = -1; enterAction.run(); while (this.returnValue == -1) { try { dispatchNextAwtEvent(); } catch (InterruptedException exc) { } } returnValue = this.returnValue; } switch (returnValue) { case STEP_OVER: contextData.breakNextLine = true; contextData.stopAtFrameDepth = contextData.frameCount(); break; case STEP_INTO: contextData.breakNextLine = true; contextData.stopAtFrameDepth = -1; break; case STEP_OUT: if (contextData.frameCount() > 1) { contextData.breakNextLine = true; contextData.stopAtFrameDepth = contextData.frameCount() -1; } break; } } while (false); synchronized (swingMonitor) { currentContextData = null; isInterrupted = false; if (eventThreadFlag) { dispatcherIsWaiting--; } else { nonDispatcherWaiting = false; } swingMonitor.notifyAll(); } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/cd63019db8934f1894ee55cbfaf64f9d200839a3/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 15711, 12, 1042, 9494, 16, 727, 7283, 3219, 2623, 16, 4206, 2728, 503, 13, 565, 288, 3639, 1250, 871, 3830, 4678, 273, 26145, 11864, 18, 291, 1133, 5325, 3830, 5621, 3639, 1772, 751, 819, 751, 273, 2623, 18, 2472, 751, 5621, 3639, 819, 751, 18, 2575, 3830, 4678, 273, 871, 3830, 4678, 31, 3639, 509, 980, 273, 2623, 18, 588, 31063, 5621, 3639, 514, 880, 273, 2623, 18, 588, 1489, 5621, 3639, 3852, 261, 5328, 310, 7187, 13, 288, 5411, 309, 261, 2575, 3830, 4678, 13, 288, 7734, 7393, 2520, 15946, 9904, 31, 7734, 309, 261, 5836, 6681, 15946, 13, 288, 10792, 368, 432, 24413, 2650, 353, 9627, 316, 326, 19977, 10792, 368, 1207, 2641, 3180, 518, 400, 6411, 471, 732, 10792, 368, 848, 6103, 10792, 1323, 261, 5836, 6681, 15946, 13, 288, 13491, 775, 288, 18701, 3435, 2134, 37, 6046, 1133, 5621, 18701, 309, 261, 2211, 18, 2463, 620, 422, 28407, 13, 288, 27573, 327, 31, 18701, 289, 18701, 9028, 7187, 18, 7048, 12, 21, 1769, 13491, 289, 1044, 261, 24485, 503, 3533, 13, 288, 18701, 327, 31, 13491, 289, 10792, 289, 7734, 289, 5411, 289, 469, 288, 7734, 1323, 261, 291, 24485, 747, 7393, 2520, 15946, 405, 374, 13, 288, 10792, 775, 288, 13491, 9028, 7187, 18, 7048, 5621, 10792, 289, 1044, 261, 24485, 503, 3533, 13, 288, 13491, 327, 31, 10792, 289, 7734, 289, 7734, 1661, 6681, 15946, 273, 638, 31, 5411, 289, 5411, 353, 24485, 273, 638, 31, 5411, 31184, 751, 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, 918, 15711, 12, 1042, 9494, 16, 727, 7283, 3219, 2623, 16, 4206, 2728, 503, 13, 565, 288, 3639, 1250, 871, 3830, 4678, 273, 26145, 11864, 18, 291, 1133, 5325, 3830, 5621, 3639, 1772, 751, 819, 751, 273, 2623, 18, 2472, 751, 5621, 3639, 819, 751, 18, 2575, 3830, 4678, 273, 871, 3830, 4678, 31, 3639, 509, 980, 273, 2623, 18, 588, 31063, 5621, 3639, 514, 880, 273, 2623, 18, 588, 1489, 5621, 3639, 3852, 261, 5328, 310, 7187, 13, 288, 5411, 309, 261, 2575, 3830, 4678, 13, 288, 7734, 7393, 2520, 15946, 9904, 31, 7734, 309, 261, 5836, 6681, 15946, 13, 288, 10792, 368, 432, 24413, 2650, 353, 9627, 316, 326, 19977, 10792, 368, 1207, 2641, 3180, 518, 2 ]
try
try
final void setBooleanField(Object obj, boolean val) { try { field.setBoolean(obj, val); } catch(IllegalAccessException x) { throw new InternalError(x.getMessage()); } }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/7175146abf61d5302002eac9791f35b481c4eb26/ObjectStreamField.java/clean/libraries/javalib/java/io/ObjectStreamField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 444, 5507, 974, 12, 921, 1081, 16, 1250, 1244, 13, 225, 288, 1377, 775, 1377, 288, 202, 225, 652, 18, 542, 5507, 12, 2603, 16, 1244, 1769, 1377, 289, 1377, 1044, 12, 12195, 9773, 619, 13, 1377, 288, 202, 225, 604, 394, 3186, 668, 12, 92, 18, 24906, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 918, 444, 5507, 974, 12, 921, 1081, 16, 1250, 1244, 13, 225, 288, 1377, 775, 1377, 288, 202, 225, 652, 18, 542, 5507, 12, 2603, 16, 1244, 1769, 1377, 289, 1377, 1044, 12, 12195, 9773, 619, 13, 1377, 288, 202, 225, 604, 394, 3186, 668, 12, 92, 18, 24906, 10663, 1377, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
StringUtils.printException(e);
StringUtil.printException(e);
private void writeGamePage(String game, String name, int gameNumber) throws Exception { File file = getGameFile(gameNumber); PrintStream out = new PrintStream(new FileOutputStream(file)); String title = "Game " + (gameNumber + 1) + " (" + name + ")"; startHtml(out, title); startInfo(out, title); writeInfoBasics(out); writeHtmlRow(out, "Game Index", gameNumber); writeHtmlRow(out, "File", getGameLink(file, gameNumber, false)); try { InputStream in = new FileInputStream(new File(game)); SgfReader reader = new SgfReader(in, game, null, 0); GameInformation info = reader.getGameTree().getGameInformation(); String playerBlack = info.m_playerBlack; if (playerBlack == null) playerBlack = "?"; String playerWhite = info.m_playerWhite; if (playerWhite == null) playerWhite = "?"; String result = info.m_result; if (result == null) result = "?"; writeHtmlRow(out, "Black", playerBlack); writeHtmlRow(out, "White", playerWhite); writeHtmlRow(out, "Result", result); in.close(); } catch (Exception e) { StringUtils.printException(e); } endInfo(out); out.print("<table border=\"0\">\n"); for (int i = 0; i < m_commands.size(); ++i) { CommandStatistics commandStatistics = getCommandStatistics(i); if (commandStatistics.getCount() > 0 && ! commandStatistics.m_isBeginCommand) { generatePlot(i, commandStatistics.m_format, gameNumber, game); out.print("<tr><td align=\"center\">" + getCommandLink(i) + "<br><img src=\"" + getPlotFile(gameNumber, i).getName() + "\"></td></tr>\n"); } } out.print("</table>\n" + "<hr>\n"); Table table = TableUtils.select(m_table, "File", game); out.print("<table class=\"smalltable\">\n" + "<thead><tr>"); for (int i = 1; i < table.getNumberColumns(); ++i) { String command = table.getColumnTitle(i); if (! TableUtils.allEmpty(table, command)) out.print("<th>" + command + "</th>"); } out.print("</tr></thead>\n"); for (int i = 0; i < table.getNumberRows(); ++i) { out.print("<tr>"); for (int j = 1; j < table.getNumberColumns(); ++j) { String command = table.getColumnTitle(j); if (TableUtils.allEmpty(table, command)) continue; String value = table.get(command, i); if (value == null) value = ""; out.print("<td>" + value + "</td>"); } out.print("</tr>\n"); } out.print("</table>\n"); finishHtml(out); out.close(); }
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/1f50ffb219183ddaf94720a4aba453e11f412425/Analyze.java/buggy/src/net/sf/gogui/gtpstatistics/Analyze.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 12496, 1964, 12, 780, 7920, 16, 514, 508, 16, 509, 7920, 1854, 13, 3639, 1216, 1185, 565, 288, 3639, 1387, 585, 273, 7162, 339, 812, 12, 13957, 1854, 1769, 3639, 21677, 596, 273, 394, 21677, 12, 2704, 12942, 12, 768, 10019, 3639, 514, 2077, 273, 315, 12496, 315, 397, 261, 13957, 1854, 397, 404, 13, 397, 315, 7566, 397, 508, 397, 7310, 31, 3639, 787, 4353, 12, 659, 16, 2077, 1769, 3639, 787, 966, 12, 659, 16, 2077, 1769, 3639, 1045, 966, 11494, 2102, 12, 659, 1769, 3639, 1045, 4353, 1999, 12, 659, 16, 315, 12496, 3340, 3113, 7920, 1854, 1769, 3639, 1045, 4353, 1999, 12, 659, 16, 315, 812, 3113, 7162, 339, 2098, 12, 768, 16, 7920, 1854, 16, 629, 10019, 3639, 775, 3639, 288, 5411, 5037, 316, 273, 394, 11907, 12, 2704, 1387, 12, 13957, 10019, 5411, 348, 75, 74, 2514, 2949, 273, 394, 348, 75, 74, 2514, 12, 267, 16, 7920, 16, 446, 16, 374, 1769, 5411, 14121, 5369, 1123, 273, 2949, 18, 588, 12496, 2471, 7675, 588, 12496, 5369, 5621, 5411, 514, 7291, 13155, 273, 1123, 18, 81, 67, 14872, 13155, 31, 5411, 309, 261, 14872, 13155, 422, 446, 13, 7734, 7291, 13155, 273, 13574, 31, 5411, 514, 7291, 13407, 273, 1123, 18, 81, 67, 14872, 13407, 31, 5411, 309, 261, 14872, 13407, 422, 446, 13, 7734, 7291, 13407, 273, 13574, 31, 5411, 514, 563, 273, 1123, 18, 81, 67, 2088, 31, 5411, 309, 261, 2088, 422, 446, 13, 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, 12496, 1964, 12, 780, 7920, 16, 514, 508, 16, 509, 7920, 1854, 13, 3639, 1216, 1185, 565, 288, 3639, 1387, 585, 273, 7162, 339, 812, 12, 13957, 1854, 1769, 3639, 21677, 596, 273, 394, 21677, 12, 2704, 12942, 12, 768, 10019, 3639, 514, 2077, 273, 315, 12496, 315, 397, 261, 13957, 1854, 397, 404, 13, 397, 315, 7566, 397, 508, 397, 7310, 31, 3639, 787, 4353, 12, 659, 16, 2077, 1769, 3639, 787, 966, 12, 659, 16, 2077, 1769, 3639, 1045, 966, 11494, 2102, 12, 659, 1769, 3639, 1045, 4353, 1999, 12, 659, 16, 315, 12496, 3340, 3113, 7920, 1854, 1769, 3639, 1045, 4353, 1999, 12, 659, 16, 315, 812, 3113, 7162, 339, 2098, 12, 2 ]
page.printlnAhref(ref(sym), ROOT_FRAME_NAME, sym.fullNameString());
page.printlnAhref(ref(sym), ROOT_FRAME, sym.fullNameString());
protected void createContainerIndexPage(Tree tree) { Symbol sym = tree.symbol(); String title = Location.getName(sym); createPrinters(sym, packageSummaryPage(sym)); page.printHeader(ATTRS_META, getGenerator()); page.printOpenBody(); String[] titles = new String[]{ "Objects", "Traits", "Classes" }; if (sym.isRoot()) { Tree[][] members = ScalaSearch.getSortedPackageMemberList(tree); for (int i = 0; i < titles.length; i++) addTreeTable(members[i], "All " + titles[i], true); } else { page.printlnOTag("table", ATTRS_NAVIGATION).indent(); page.printlnOTag("tr").indent(); page.printlnOTag("td", ATTRS_NAVIGATION_LINKS).indent(); page.printlnAhref(ref(sym), ROOT_FRAME_NAME, sym.fullNameString()); page.printlnCTag("td"); page.printlnCTag("tr"); page.printlnCTag("table"); page.printlnSTag("p"); Tree[][] members = members(tree); for (int i = 0; i < titles.length; i++) addTreeTable(members[i + 2], titles[i], false); } if (validate) addValidationBar(); page.printFootpage(); closePrinters(); }
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/8f126982806efc1c68ac717c7fd9dba70d85e787/HTMLGenerator.java/buggy/sources/scala/tools/scaladoc/HTMLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 2170, 1016, 1964, 12, 2471, 2151, 13, 288, 3639, 8565, 5382, 273, 2151, 18, 7175, 5621, 202, 780, 2077, 273, 7050, 18, 17994, 12, 8117, 1769, 3639, 752, 12149, 87, 12, 8117, 16, 2181, 4733, 1964, 12, 8117, 10019, 3639, 1363, 18, 1188, 1864, 12, 12043, 55, 67, 19294, 16, 30862, 10663, 202, 2433, 18, 1188, 3678, 2250, 5621, 3639, 514, 8526, 14693, 273, 394, 514, 63, 7073, 315, 4710, 3113, 315, 30370, 3113, 315, 4818, 6, 289, 31, 3639, 309, 261, 8117, 18, 291, 2375, 10756, 288, 5411, 4902, 63, 6362, 65, 4833, 273, 348, 771, 69, 2979, 18, 588, 11739, 2261, 4419, 682, 12, 3413, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 14693, 18, 2469, 31, 277, 27245, 7734, 527, 2471, 1388, 12, 7640, 63, 77, 6487, 315, 1595, 315, 397, 14693, 63, 77, 6487, 638, 1769, 3639, 289, 469, 288, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 2121, 3113, 12759, 55, 67, 50, 5856, 3047, 2689, 2934, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 313, 20387, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 4465, 3113, 12759, 55, 67, 50, 5856, 3047, 2689, 67, 10554, 55, 2934, 9355, 5621, 5411, 1363, 18, 8222, 37, 7547, 12, 1734, 12, 8117, 3631, 11011, 67, 15072, 16, 5382, 18, 2854, 461, 780, 10663, 5411, 1363, 18, 8222, 1268, 346, 2932, 4465, 8863, 5411, 1363, 18, 8222, 1268, 346, 2932, 313, 8863, 5411, 1363, 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, 752, 2170, 1016, 1964, 12, 2471, 2151, 13, 288, 3639, 8565, 5382, 273, 2151, 18, 7175, 5621, 202, 780, 2077, 273, 7050, 18, 17994, 12, 8117, 1769, 3639, 752, 12149, 87, 12, 8117, 16, 2181, 4733, 1964, 12, 8117, 10019, 3639, 1363, 18, 1188, 1864, 12, 12043, 55, 67, 19294, 16, 30862, 10663, 202, 2433, 18, 1188, 3678, 2250, 5621, 3639, 514, 8526, 14693, 273, 394, 514, 63, 7073, 315, 4710, 3113, 315, 30370, 3113, 315, 4818, 6, 289, 31, 3639, 309, 261, 8117, 18, 291, 2375, 10756, 288, 5411, 4902, 63, 6362, 65, 4833, 273, 348, 771, 69, 2979, 18, 588, 11739, 2261, 4419, 682, 12, 3413, 1769, 5411, 364, 261, 474, 277, 273, 374, 2 ]
if (msgs != null) msgs.dispatch();
if (msgs != null) msgs.dispatch();
public void setOutline(LineAttributes newOutline) { if (newOutline != outline) { NotificationChain msgs = null; if (outline != null) msgs = ((InternalEObject)outline).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.CLIENT_AREA__OUTLINE, null, msgs); if (newOutline != null) msgs = ((InternalEObject)newOutline).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.CLIENT_AREA__OUTLINE, null, msgs); msgs = basicSetOutline(newOutline, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LayoutPackage.CLIENT_AREA__OUTLINE, newOutline, newOutline)); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ClientAreaImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/ClientAreaImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 21805, 12, 1670, 2498, 394, 21805, 13, 565, 288, 3639, 309, 261, 2704, 21805, 480, 16363, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 25134, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 25134, 2934, 73, 16376, 3288, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 9995, 2261, 18, 11935, 67, 20933, 972, 5069, 5997, 16, 446, 16, 8733, 1769, 5411, 309, 261, 2704, 21805, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 2704, 21805, 2934, 73, 16376, 986, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 9995, 2261, 18, 11935, 67, 20933, 972, 5069, 5997, 16, 446, 16, 8733, 1769, 5411, 8733, 273, 5337, 694, 21805, 12, 2704, 21805, 16, 8733, 1769, 5411, 309, 261, 27439, 480, 446, 13, 8733, 18, 10739, 5621, 3639, 289, 3639, 469, 309, 261, 73, 21107, 10756, 5411, 22596, 12, 2704, 19953, 12, 2211, 16, 8050, 18, 4043, 16, 9995, 2261, 18, 11935, 67, 20933, 972, 5069, 5997, 16, 394, 21805, 16, 394, 21805, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 21805, 12, 1670, 2498, 394, 21805, 13, 565, 288, 3639, 309, 261, 2704, 21805, 480, 16363, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 25134, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 25134, 2934, 73, 16376, 3288, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 9995, 2261, 18, 11935, 67, 20933, 972, 5069, 5997, 16, 446, 16, 8733, 1769, 5411, 309, 261, 2704, 21805, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 2704, 21805, 2934, 73, 16376, 986, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 9995, 2261, 18, 11935, 67, 20933, 972, 5069, 5997, 16, 446, 16, 8733, 1769, 2 ]
mouseEventTarget.dispatchEvent (exited); mouseEventTarget = null;
lastComponentEntered.dispatchEvent (exited); lastComponentEntered = null;
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = SwingUtilities.convertPoint(nativeContainer, x, y, candidate); // If the event lands inside candidate, we have a hit. if (candidate.contains(cp.x, cp.y)) { // If candidate has children, we refine the hit. if (candidate instanceof Container && ((Container)candidate).getComponentCount() > 0) candidate = SwingUtilities.getDeepestComponentAt(candidate, cp.x, cp.y); break; } } // If candidate isn't showing or doesn't contain point, we back out a level. candidate = candidate.getParent(); } if (candidate == null) { // We either lost, or never had, a candidate; acquire from our native. candidate = SwingUtilities.getDeepestComponentAt(nativeContainer, x, y); } // If our candidate is new, inform the old target we're leaving. if (mouseEventTarget != null && mouseEventTarget.isShowing() && mouseEventTarget != candidate) { Point tp = SwingUtilities.convertPoint(nativeContainer, x, y, mouseEventTarget); MouseEvent exited = new MouseEvent (mouseEventTarget, MouseEvent.MOUSE_EXITED, me.getWhen (), me.getModifiers (), tp.x, tp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); mouseEventTarget.dispatchEvent (exited); mouseEventTarget = null; } // If we have a candidate, maybe enter it. if (candidate != null) { if (candidate.isLightweight() && candidate.isShowing() && candidate != nativeContainer && candidate != mouseEventTarget) { mouseEventTarget = candidate; Point cp = SwingUtilities.convertPoint(nativeContainer, x, y, candidate); MouseEvent entered = new MouseEvent (mouseEventTarget, MouseEvent.MOUSE_ENTERED, me.getWhen (), me.getModifiers (), cp.x, cp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); mouseEventTarget.dispatchEvent (entered); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/Container.java/clean/core/src/classpath/java/java/awt/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 10533, 1841, 1290, 9186, 1133, 12, 9186, 1133, 1791, 13, 225, 288, 565, 509, 619, 273, 1791, 18, 588, 60, 261, 1769, 565, 509, 677, 273, 1791, 18, 588, 61, 261, 1769, 565, 5435, 5500, 273, 7644, 1133, 2326, 31, 3639, 1323, 12, 19188, 480, 446, 13, 1377, 288, 3639, 309, 261, 19188, 18, 291, 5706, 310, 10756, 1850, 288, 5411, 368, 4037, 3134, 1634, 358, 326, 5500, 1807, 982, 1807, 3476, 18, 5411, 4686, 3283, 273, 26145, 11864, 18, 6283, 2148, 12, 13635, 2170, 16, 619, 16, 677, 16, 5500, 1769, 13491, 368, 971, 326, 871, 328, 5708, 4832, 5500, 16, 732, 1240, 279, 6800, 18, 5411, 309, 261, 19188, 18, 12298, 12, 4057, 18, 92, 16, 3283, 18, 93, 3719, 2868, 288, 7734, 368, 971, 5500, 711, 2325, 16, 732, 30446, 326, 6800, 18, 7734, 309, 261, 19188, 1276, 4039, 597, 10792, 14015, 2170, 13, 19188, 2934, 588, 1841, 1380, 1435, 405, 374, 13, 27573, 5500, 273, 26145, 11864, 18, 588, 13980, 395, 1841, 861, 12, 19188, 16, 3283, 18, 92, 16, 3283, 18, 93, 1769, 7734, 898, 31, 2868, 289, 1850, 289, 7734, 368, 971, 5500, 5177, 1404, 17253, 578, 3302, 1404, 912, 1634, 16, 732, 1473, 596, 279, 1801, 18, 3639, 5500, 273, 5500, 18, 588, 3054, 5621, 1377, 289, 3639, 309, 261, 19188, 422, 446, 13, 1377, 288, 3639, 368, 1660, 3344, 13557, 16, 578, 5903, 9323, 16, 279, 5500, 31, 10533, 628, 3134, 6448, 18, 3639, 5500, 273, 6647, 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, 918, 10533, 1841, 1290, 9186, 1133, 12, 9186, 1133, 1791, 13, 225, 288, 565, 509, 619, 273, 1791, 18, 588, 60, 261, 1769, 565, 509, 677, 273, 1791, 18, 588, 61, 261, 1769, 565, 5435, 5500, 273, 7644, 1133, 2326, 31, 3639, 1323, 12, 19188, 480, 446, 13, 1377, 288, 3639, 309, 261, 19188, 18, 291, 5706, 310, 10756, 1850, 288, 5411, 368, 4037, 3134, 1634, 358, 326, 5500, 1807, 982, 1807, 3476, 18, 5411, 4686, 3283, 273, 26145, 11864, 18, 6283, 2148, 12, 13635, 2170, 16, 619, 16, 677, 16, 5500, 1769, 13491, 368, 971, 326, 871, 328, 5708, 4832, 5500, 16, 732, 1240, 279, 6800, 18, 5411, 309, 261, 19188, 18, 12298, 12, 4057, 18, 92, 2 ]
else if ((b & 0xF) == 0xF0)
else if ((b & 0xF0) == 0xE0)
public int read (char[] outbuffer, int outpos, int outlength) { int origpos = outpos; for (;;) { if (outpos >= outlength) break; if (inpos >= inlength) break; int b = inbuffer[inpos++]; if (b >= 0) outbuffer[outpos++] = (char) b; else { if ((b & 0xC0) == 0x80) // Continuation byte { partial = (partial << 6) | (b & 0x3F); --partial_bytes_expected; if (partial_bytes_expected == 1) { if (partial > (0xFFFF>>6)) { // The next continuation byte will cause the result // to exceed 0xFFFF, so we must use a surrogate pair. // The "Unicode scalar value" (see D28 in section 3.7 // of the Unicode Standard 2.0) is defined as: // value == (hi-0xD800)*0x400+(lo-0xDC00)+0x10000, // where (hi, lo) is the Unicode surrogate pair. // After reading the first three bytes, we have: // partial == (value >> 6). // Substituting and simplifying, we get: // partial == (hi-0xD800)*0x10+((lo-0xDC00)>>6)+0x400. // The definition lo>=0xDC00 && lo<=0xDFFF implies // that (lo-0xDC00)>>6 is in the range 0..15. // Hence we can infer (partial-0x400)>>4 == (hi-0xDB00) // and we can emit the high-surrogate without waiting // for the final byte: outbuffer[outpos++] = (char) (0xDA00+(partial>>4)); // Now we want to set it up so that when we read // the final byte on the next iteration, we will // get the low-surrogate without special handling. // I.e. we want: // lo == (next_partial << 6) | (next & 0x3F) // where next is the next input byte and next_partial // is the value of partial at the end of this // iteration. This implies: next_partial == lo >> 6. // We can simplify the previous: // partial == (hi-0xD800)*0x10+((lo-0xDC00)>>6)+0x400, // to: partial == (hi-0xD800)*0x10+(lo>>6)+0x90. // Inserting the values of hi and next_partial, // and simplifying, we get: partial == // ( (partial-0x400)&~0xF) + next_partial + 0x90. // Solving for next_partial, we get: // next_partial = partial+0x400-0x90-(partial&~0xF): // or: next_partial = (partial&0xF) + 0x370. Hence: partial = (partial & 0xF) + 0x370; } } else if (partial_bytes_expected == 0) { outbuffer[outpos++] = (char) partial; partial = 0; partial_bytes_expected = 0; } } else // prefix byte { if ((b & 0xE) == 0xC0) { partial = b & 0x1F; partial_bytes_expected = 1; } else if ((b & 0xF) == 0xF0) { partial = b & 0xF; partial_bytes_expected = 2; } else { partial = b & 7; partial_bytes_expected = 3; } } } } return outpos - origpos; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/f7fdfabb16bac8562669335a5d1ca582fb97ede7/Input_UTF8.java/buggy/libjava/gnu/gcj/convert/Input_UTF8.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 261, 3001, 8526, 596, 4106, 16, 509, 596, 917, 16, 509, 596, 2469, 13, 225, 288, 565, 509, 1647, 917, 273, 596, 917, 31, 565, 364, 261, 25708, 13, 1377, 288, 202, 430, 261, 659, 917, 1545, 596, 2469, 13, 202, 225, 898, 31, 202, 430, 261, 267, 917, 1545, 316, 2469, 13, 202, 225, 898, 31, 202, 474, 324, 273, 316, 4106, 63, 267, 917, 9904, 15533, 202, 430, 261, 70, 1545, 374, 13, 202, 225, 596, 4106, 63, 659, 917, 9904, 65, 273, 261, 3001, 13, 324, 31, 202, 12107, 202, 225, 288, 202, 565, 309, 14015, 70, 473, 374, 14626, 20, 13, 422, 374, 92, 3672, 13, 368, 1816, 23946, 1160, 202, 1377, 288, 202, 202, 11601, 273, 261, 11601, 2296, 1666, 13, 571, 261, 70, 473, 374, 92, 23, 42, 1769, 202, 202, 413, 11601, 67, 3890, 67, 3825, 31, 202, 202, 430, 261, 11601, 67, 3890, 67, 3825, 422, 404, 13, 1082, 225, 288, 1082, 565, 309, 261, 11601, 405, 261, 20, 21718, 9778, 26, 3719, 1082, 1377, 288, 1082, 202, 759, 1021, 1024, 17378, 1160, 903, 4620, 326, 563, 1082, 202, 759, 358, 9943, 374, 21718, 16, 1427, 732, 1297, 999, 279, 24054, 3082, 18, 1082, 202, 759, 1021, 315, 16532, 4981, 460, 6, 261, 5946, 463, 6030, 316, 2442, 890, 18, 27, 1082, 202, 759, 434, 326, 9633, 8263, 576, 18, 20, 13, 353, 2553, 487, 30, 1082, 202, 759, 460, 422, 261, 12266, 17, 20, 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, 509, 855, 261, 3001, 8526, 596, 4106, 16, 509, 596, 917, 16, 509, 596, 2469, 13, 225, 288, 565, 509, 1647, 917, 273, 596, 917, 31, 565, 364, 261, 25708, 13, 1377, 288, 202, 430, 261, 659, 917, 1545, 596, 2469, 13, 202, 225, 898, 31, 202, 430, 261, 267, 917, 1545, 316, 2469, 13, 202, 225, 898, 31, 202, 474, 324, 273, 316, 4106, 63, 267, 917, 9904, 15533, 202, 430, 261, 70, 1545, 374, 13, 202, 225, 596, 4106, 63, 659, 917, 9904, 65, 273, 261, 3001, 13, 324, 31, 202, 12107, 202, 225, 288, 202, 565, 309, 14015, 70, 473, 374, 14626, 20, 13, 422, 374, 92, 3672, 13, 368, 1816, 23946, 1160, 202, 2 ]
transactionManager.rollback(); } catch (Throwable e) { } default: try { System.out.println("###############################################################################3 transaction rollback"); transactionManager.rollback(); } catch (Throwable e) { }
if (transactionManager.getStatus() == Status.STATUS_MARKED_ROLLBACK) { System.out.println(" rollback status");
public void test(final String _userName, final HttpServletRequest _httpRequest, ServletResponse _response, FilterChain _chain) throws IOException, ServletException {System.out.println("############################################################################### logged in start="+Thread.currentThread().getId());Context context = null;try { transactionManager.begin(); Person person = (_userName == null ? null : Person.get(_userName)); context = new Context(transactionManager.getTransaction(), person, _httpRequest.getLocale()); Context.setThreadContext(context);} catch (SystemException e) { throw new ServletException(e);} catch (NotSupportedException e) { throw new ServletException(e);} catch (Exception e) {e.printStackTrace();}// TODO: is a open sql connection in the context returned automatically? try {boolean ok = false;try { _chain.doFilter(_httpRequest, _response); ok = true;} finally { switch (transactionManager.getStatus()) { case Status.STATUS_ACTIVE: if (ok) {System.out.println("###############################################################################1 transaction commit"); transactionManager.commit(); break; } // if not ok, rollback! case Status.STATUS_MARKED_ROLLBACK: try {System.out.println("###############################################################################2 transaction rollback"); transactionManager.rollback(); } catch (Throwable e) { } default: try {System.out.println("###############################################################################3 transaction rollback"); transactionManager.rollback(); } catch (Throwable e) { }// TODO: throw of Exception is not a good idea... if an exception is thrown in the try code, this exception is overwritten!// throw new ServletException("transaction in undefined status"); }} } catch (IOException e) {// TODO: log of exception!System.out.println("############################################################################### SercurityFilter-Exception:");e.printStackTrace(); throw e; } catch (ServletException e) {// TODO: log of exception!System.out.println("############################################################################### SercurityFilter-Exception:");e.printStackTrace(); throw e; } catch (Throwable e) {// TODO: log of exception!System.out.println("############################################################################### SercurityFilter-Exception:");e.printStackTrace(); throw new ServletException(e); } finally { context.close(); }System.out.println("############################################################################### logged in end="+Thread.currentThread().getId()); }
50266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50266/263b292a01b33247cad97022c0ffd9d7a516d1ab/SecurityFilter.java/buggy/webapp/src/main/java/org/efaps/servlet/SecurityFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 12, 6385, 514, 389, 1355, 461, 16, 727, 9984, 389, 2505, 691, 16, 7971, 1064, 389, 2740, 16, 4008, 3893, 389, 5639, 13, 1216, 1860, 16, 16517, 225, 288, 3163, 18, 659, 18, 8222, 2932, 10140, 10140, 26487, 13151, 7545, 316, 787, 1546, 15, 3830, 18, 2972, 3830, 7675, 26321, 10663, 1042, 819, 273, 446, 31, 698, 225, 288, 225, 2492, 1318, 18, 10086, 5621, 225, 11573, 6175, 273, 261, 67, 1355, 461, 422, 446, 692, 446, 294, 11573, 18, 588, 24899, 1355, 461, 10019, 225, 819, 273, 394, 1772, 12, 7958, 1318, 18, 588, 3342, 9334, 6175, 16, 389, 2505, 691, 18, 588, 3916, 10663, 225, 1772, 18, 542, 3830, 1042, 12, 2472, 1769, 97, 1044, 261, 3163, 503, 425, 13, 225, 288, 225, 604, 394, 16517, 12, 73, 1769, 97, 1044, 261, 25482, 425, 13, 225, 288, 225, 604, 394, 16517, 12, 73, 1769, 97, 1044, 261, 503, 425, 13, 225, 288, 73, 18, 1188, 6332, 5621, 97, 759, 2660, 30, 353, 279, 1696, 1847, 1459, 316, 326, 819, 2106, 6635, 35, 1377, 775, 225, 288, 6494, 1529, 273, 629, 31, 698, 288, 3639, 389, 5639, 18, 2896, 1586, 24899, 2505, 691, 16, 389, 2740, 1769, 3639, 1529, 273, 638, 31, 97, 3095, 225, 288, 3639, 1620, 261, 7958, 1318, 18, 588, 1482, 10756, 225, 288, 3639, 648, 2685, 18, 8608, 67, 13301, 30, 1850, 309, 261, 601, 13, 225, 288, 3163, 18, 659, 18, 8222, 2932, 10140, 10140, 26487, 13151, 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, 1842, 12, 6385, 514, 389, 1355, 461, 16, 727, 9984, 389, 2505, 691, 16, 7971, 1064, 389, 2740, 16, 4008, 3893, 389, 5639, 13, 1216, 1860, 16, 16517, 225, 288, 3163, 18, 659, 18, 8222, 2932, 10140, 10140, 26487, 13151, 7545, 316, 787, 1546, 15, 3830, 18, 2972, 3830, 7675, 26321, 10663, 1042, 819, 273, 446, 31, 698, 225, 288, 225, 2492, 1318, 18, 10086, 5621, 225, 11573, 6175, 273, 261, 67, 1355, 461, 422, 446, 692, 446, 294, 11573, 18, 588, 24899, 1355, 461, 10019, 225, 819, 273, 394, 1772, 12, 7958, 1318, 18, 588, 3342, 9334, 6175, 16, 389, 2505, 691, 18, 588, 3916, 10663, 225, 1772, 18, 542, 3830, 1042, 12, 2472, 1769, 2 ]
box.add(ok); box.add(Box.createHorizontalStrut(6));
panel.add(ok); panel.add(Box.createHorizontalStrut(6));
public SelectLineRange(View view) { super(view,jEdit.getProperty("selectlinerange.title"),true); this.view = view; JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,6,12,9)); setContentPane(content); JLabel label = new JLabel(jEdit.getProperty( "selectlinerange.caption")); label.setBorder(new EmptyBorder(0,6,3,0)); content.add(BorderLayout.NORTH,label); JPanel panel = createFieldPanel(); content.add(BorderLayout.CENTER,panel); Box box = new Box(BoxLayout.X_AXIS); box.add(Box.createGlue()); ok = new JButton(jEdit.getProperty("common.ok")); ok.addActionListener(this); getRootPane().setDefaultButton(ok); box.add(ok); box.add(Box.createHorizontalStrut(6)); cancel = new JButton(jEdit.getProperty("common.cancel")); cancel.addActionListener(this); box.add(cancel); box.add(Box.createGlue()); content.add(box,BorderLayout.SOUTH); GUIUtilities.requestFocus(this,startField); pack(); setLocationRelativeTo(view); show(); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/5f1ade6245a86c556d08b078eb07bcab6fee82c4/SelectLineRange.java/buggy/org/gjt/sp/jedit/gui/SelectLineRange.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6766, 1670, 2655, 12, 1767, 1476, 13, 202, 95, 202, 202, 9565, 12, 1945, 16, 78, 4666, 18, 588, 1396, 2932, 4025, 7511, 264, 726, 18, 2649, 6, 3631, 3767, 1769, 202, 202, 2211, 18, 1945, 273, 1476, 31, 202, 202, 46, 5537, 913, 273, 394, 24048, 12, 2704, 30814, 10663, 202, 202, 1745, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 2138, 16, 26, 16, 2138, 16, 29, 10019, 202, 202, 542, 1350, 8485, 12, 1745, 1769, 202, 202, 46, 2224, 1433, 273, 394, 21403, 12, 78, 4666, 18, 588, 1396, 12, 1082, 202, 6, 4025, 7511, 264, 726, 18, 15386, 7923, 1769, 202, 202, 1925, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 20, 16, 26, 16, 23, 16, 20, 10019, 202, 202, 1745, 18, 1289, 12, 8107, 3744, 18, 50, 28212, 16, 1925, 1769, 202, 202, 46, 5537, 6594, 273, 752, 974, 5537, 5621, 202, 202, 1745, 18, 1289, 12, 8107, 3744, 18, 19835, 16, 13916, 1769, 202, 202, 3514, 3919, 273, 394, 8549, 12, 3514, 3744, 18, 60, 67, 25614, 1769, 202, 202, 2147, 18, 1289, 12, 3514, 18, 2640, 21308, 344, 10663, 202, 202, 601, 273, 394, 28804, 12, 78, 4666, 18, 588, 1396, 2932, 6054, 18, 601, 7923, 1769, 202, 202, 601, 18, 1289, 1803, 2223, 12, 2211, 1769, 202, 202, 588, 2375, 8485, 7675, 542, 1868, 3616, 12, 601, 1769, 202, 202, 2147, 18, 1289, 12, 601, 1769, 202, 202, 2147, 18, 1289, 12, 3514, 18, 2640, 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, 6766, 1670, 2655, 12, 1767, 1476, 13, 202, 95, 202, 202, 9565, 12, 1945, 16, 78, 4666, 18, 588, 1396, 2932, 4025, 7511, 264, 726, 18, 2649, 6, 3631, 3767, 1769, 202, 202, 2211, 18, 1945, 273, 1476, 31, 202, 202, 46, 5537, 913, 273, 394, 24048, 12, 2704, 30814, 10663, 202, 202, 1745, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 2138, 16, 26, 16, 2138, 16, 29, 10019, 202, 202, 542, 1350, 8485, 12, 1745, 1769, 202, 202, 46, 2224, 1433, 273, 394, 21403, 12, 78, 4666, 18, 588, 1396, 12, 1082, 202, 6, 4025, 7511, 264, 726, 18, 15386, 7923, 1769, 202, 202, 1925, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 20, 2 ]
if(w != null) {
if (w != null) {
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if(cmd.equals("Cancel")) { setVisible(false); value = null; } else if(cmd.equals("Select")) { value = (String)list.getSelectedValue(); setVisible(false); JInternalFrame w = (JInternalFrame)fileWindows.get(value); if(w != null) { try { w.show(); w.setSelected(true); } catch(Exception exc) { } } } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 12, 4172, 18, 14963, 2932, 6691, 6, 3719, 288, 5411, 16697, 12, 5743, 1769, 5411, 460, 273, 446, 31, 3639, 289, 469, 309, 12, 4172, 18, 14963, 2932, 3391, 6, 3719, 288, 5411, 460, 273, 261, 780, 13, 1098, 18, 588, 7416, 620, 5621, 5411, 16697, 12, 5743, 1769, 5411, 804, 3061, 3219, 341, 273, 261, 46, 3061, 3219, 13, 768, 10399, 18, 588, 12, 1132, 1769, 5411, 309, 261, 91, 480, 446, 13, 288, 7734, 775, 288, 10792, 341, 18, 4500, 5621, 10792, 341, 18, 542, 7416, 12, 3767, 1769, 7734, 289, 1044, 12, 503, 3533, 13, 288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 12, 4172, 18, 14963, 2932, 6691, 6, 3719, 288, 5411, 16697, 12, 5743, 1769, 5411, 460, 273, 446, 31, 3639, 289, 469, 309, 12, 4172, 18, 14963, 2932, 3391, 6, 3719, 288, 5411, 460, 273, 261, 780, 13, 1098, 18, 588, 7416, 620, 5621, 5411, 16697, 12, 5743, 1769, 5411, 804, 3061, 3219, 341, 273, 261, 46, 3061, 3219, 13, 768, 10399, 18, 588, 12, 1132, 1769, 5411, 309, 261, 91, 480, 446, 13, 288, 7734, 775, 288, 10792, 341, 18, 4500, 5621, 10792, 341, 18, 542, 7416, 12, 3767, 1769, 7734, 289, 1044, 12, 503, 3533, 2 ]
long systemTime = SystemTime.currentTimeMillis(); SystemTime.setTimeSource(new MockSystemTimeSource(systemTime)); SessionID sessionID = new SessionID(FixVersions.BEGINSTRING_FIX42, "SENDER", "TARGET"); ByteArrayOutputStream data = new ByteArrayOutputStream(); SessionSettings sessionSettings = new SessionSettings(); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_EVENTS, true); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_INCOMING, true); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_OUTGOING, true); ScreenLogFactory factory = new ScreenLogFactory(sessionSettings); ScreenLog log = (ScreenLog)factory.create(sessionID); log.setOut(new PrintStream(data)); log.onIncoming("TEST"); assertLoggedMessage(data, systemTime, "incoming"); log.onOutgoing("TEST"); assertLoggedMessage(data, systemTime, "outgoing"); log.onEvent("TEST"); assertLoggedMessage(data, systemTime, "event");
doScreenLogTest(true);
public void testScreenLog() { long systemTime = SystemTime.currentTimeMillis(); SystemTime.setTimeSource(new MockSystemTimeSource(systemTime)); SessionID sessionID = new SessionID(FixVersions.BEGINSTRING_FIX42, "SENDER", "TARGET"); ByteArrayOutputStream data = new ByteArrayOutputStream(); SessionSettings sessionSettings = new SessionSettings(); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_EVENTS, true); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_INCOMING, true); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_OUTGOING, true); ScreenLogFactory factory = new ScreenLogFactory(sessionSettings); ScreenLog log = (ScreenLog)factory.create(sessionID); log.setOut(new PrintStream(data)); log.onIncoming("TEST"); assertLoggedMessage(data, systemTime, "incoming"); log.onOutgoing("TEST"); assertLoggedMessage(data, systemTime, "outgoing"); log.onEvent("TEST"); assertLoggedMessage(data, systemTime, "event"); }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/5c48bba93c58027c3d8a5adb1e3dc6442b774284/ScreenLogTest.java/buggy/test/quickfix/ScreenLogTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7956, 1343, 1435, 288, 3639, 1525, 2619, 950, 273, 2332, 950, 18, 2972, 28512, 5621, 3639, 2332, 950, 18, 542, 950, 1830, 12, 2704, 7867, 3163, 950, 1830, 12, 4299, 950, 10019, 3639, 3877, 734, 13737, 273, 394, 3877, 734, 12, 8585, 5940, 18, 16061, 5804, 67, 4563, 9452, 16, 315, 1090, 18556, 3113, 315, 16374, 8863, 3639, 11559, 501, 273, 394, 11559, 5621, 3639, 3877, 2628, 1339, 2628, 273, 394, 3877, 2628, 5621, 3639, 1339, 2628, 18, 542, 7464, 12, 17255, 16, 10146, 1343, 1733, 18, 1090, 12239, 67, 4842, 67, 29221, 16, 638, 1769, 3639, 1339, 2628, 18, 542, 7464, 12, 17255, 16, 10146, 1343, 1733, 18, 1090, 12239, 67, 4842, 67, 706, 4208, 1360, 16, 638, 1769, 3639, 1339, 2628, 18, 542, 7464, 12, 17255, 16, 10146, 1343, 1733, 18, 1090, 12239, 67, 4842, 67, 5069, 16387, 1360, 16, 638, 1769, 7734, 10146, 1343, 1733, 3272, 273, 394, 10146, 1343, 1733, 12, 3184, 2628, 1769, 3639, 10146, 1343, 613, 273, 261, 7956, 1343, 13, 6848, 18, 2640, 12, 17255, 1769, 3639, 613, 18, 542, 1182, 12, 2704, 21677, 12, 892, 10019, 3639, 613, 18, 265, 20370, 2932, 16961, 8863, 3639, 1815, 19862, 1079, 12, 892, 16, 2619, 950, 16, 315, 31033, 8863, 3639, 613, 18, 265, 24866, 2932, 16961, 8863, 3639, 1815, 19862, 1079, 12, 892, 16, 2619, 950, 16, 315, 31891, 8863, 3639, 613, 18, 265, 1133, 2932, 16961, 8863, 3639, 1815, 19862, 1079, 12, 892, 16, 2619, 950, 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, 1842, 7956, 1343, 1435, 288, 3639, 1525, 2619, 950, 273, 2332, 950, 18, 2972, 28512, 5621, 3639, 2332, 950, 18, 542, 950, 1830, 12, 2704, 7867, 3163, 950, 1830, 12, 4299, 950, 10019, 3639, 3877, 734, 13737, 273, 394, 3877, 734, 12, 8585, 5940, 18, 16061, 5804, 67, 4563, 9452, 16, 315, 1090, 18556, 3113, 315, 16374, 8863, 3639, 11559, 501, 273, 394, 11559, 5621, 3639, 3877, 2628, 1339, 2628, 273, 394, 3877, 2628, 5621, 3639, 1339, 2628, 18, 542, 7464, 12, 17255, 16, 10146, 1343, 1733, 18, 1090, 12239, 67, 4842, 67, 29221, 16, 638, 1769, 3639, 1339, 2628, 18, 542, 7464, 12, 17255, 16, 10146, 1343, 1733, 18, 1090, 12239, 67, 4842, 67, 706, 2 ]
TBSCertList.RevokedCertificate rcert =
TBSCertList.RevokedCertificate rcert =
private void retirieveEntries() { entriesRetrieved = true; List rcerts = tbsCertList.getRevokedCertificates(); if (rcerts == null) { return; } entriesSize = rcerts.size(); entries = new ArrayList(entriesSize); X500Principal rcertIssuer = null; // means that issuer is a CRL issuer for (int i=0; i<entriesSize; i++) { TBSCertList.RevokedCertificate rcert = (TBSCertList.RevokedCertificate) rcerts.get(i); X500Principal iss = rcert.getIssuer(); if (iss != null) { rcertIssuer = iss; isIndirectCRL = true; nonIndirectEntriesSize = i; } entries.add(new X509CRLEntryImpl(rcert, rcertIssuer)); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/180facb87904dc1d11e15aa4a4af5f111fd0db87/X509CRLImpl.java/clean/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/X509CRLImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 325, 481, 21271, 5400, 1435, 288, 3639, 3222, 3848, 2155, 273, 638, 31, 3639, 987, 4519, 1051, 87, 273, 268, 2038, 5461, 682, 18, 588, 10070, 14276, 14133, 5621, 3639, 309, 261, 1310, 1051, 87, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 3222, 1225, 273, 4519, 1051, 87, 18, 1467, 5621, 3639, 3222, 273, 394, 2407, 12, 8219, 1225, 1769, 3639, 1139, 12483, 9155, 4519, 1051, 16667, 273, 446, 31, 368, 4696, 716, 9715, 353, 279, 26526, 9715, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 8219, 1225, 31, 277, 27245, 288, 5411, 399, 38, 2312, 1051, 682, 18, 10070, 14276, 4719, 4519, 1051, 273, 1171, 261, 25730, 2312, 1051, 682, 18, 10070, 14276, 4719, 13, 4519, 1051, 87, 18, 588, 12, 77, 1769, 5411, 1139, 12483, 9155, 3385, 273, 4519, 1051, 18, 588, 16667, 5621, 5411, 309, 261, 1054, 480, 446, 13, 288, 7734, 4519, 1051, 16667, 273, 3385, 31, 7734, 353, 24943, 29524, 273, 638, 31, 7734, 1661, 24943, 5400, 1225, 273, 277, 31, 5411, 289, 5411, 3222, 18, 1289, 12, 2704, 1139, 5995, 29524, 1622, 2828, 12, 1310, 1051, 16, 4519, 1051, 16667, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 325, 481, 21271, 5400, 1435, 288, 3639, 3222, 3848, 2155, 273, 638, 31, 3639, 987, 4519, 1051, 87, 273, 268, 2038, 5461, 682, 18, 588, 10070, 14276, 14133, 5621, 3639, 309, 261, 1310, 1051, 87, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 3222, 1225, 273, 4519, 1051, 87, 18, 1467, 5621, 3639, 3222, 273, 394, 2407, 12, 8219, 1225, 1769, 3639, 1139, 12483, 9155, 4519, 1051, 16667, 273, 446, 31, 368, 4696, 716, 9715, 353, 279, 26526, 9715, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 8219, 1225, 31, 277, 27245, 288, 5411, 399, 38, 2312, 1051, 682, 18, 10070, 14276, 4719, 4519, 1051, 273, 1171, 261, 25730, 2312, 1051, 682, 2 ]
public org.quickfix.field.DueToRelated getDueToRelated() throws FieldNotFound { org.quickfix.field.DueToRelated value = new org.quickfix.field.DueToRelated();
public quickfix.field.DueToRelated getDueToRelated() throws FieldNotFound { quickfix.field.DueToRelated value = new quickfix.field.DueToRelated();
public org.quickfix.field.DueToRelated getDueToRelated() throws FieldNotFound { org.quickfix.field.DueToRelated value = new org.quickfix.field.DueToRelated(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/clean/src/java/src/quickfix/fix44/SecurityStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 30023, 774, 8017, 2343, 344, 774, 8017, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 30023, 774, 8017, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 30023, 774, 8017, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30023, 774, 8017, 2343, 344, 774, 8017, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 30023, 774, 8017, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 30023, 774, 8017, 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, -100, -100, -100, -100 ]
} else if (entry.isExpired()) { auMap.remove(getAuKey(au)); logger.debug3("Removing expired " + activityCodeToString(entry.activity) +
} else if (curAuActivity.isExpired()) { logger.debug3("Removing expired " + activityCodeToString(curAuActivity.activity) +
int getAuActivity(ArchivalUnit au) { ActivityEntry entry = (ActivityEntry)auMap.get(getAuKey(au)); if (entry==null) { return NO_ACTIVITY; } else if (entry.isExpired()) { auMap.remove(getAuKey(au)); logger.debug3("Removing expired " + activityCodeToString(entry.activity) + " on AU '" + au.getName() + "'"); return NO_ACTIVITY; } else { return entry.activity; } }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ad5c67194126954517d4bb9b23485040a1026b5d/ActivityRegulator.java/buggy/src/org/lockss/daemon/ActivityRegulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 509, 4506, 89, 6193, 12, 12269, 5162, 2802, 20309, 13, 288, 565, 9621, 1622, 1241, 273, 261, 6193, 1622, 13, 8377, 863, 18, 588, 12, 588, 37, 89, 653, 12, 8377, 10019, 565, 309, 261, 4099, 631, 2011, 13, 225, 288, 1377, 327, 3741, 67, 22271, 4107, 31, 565, 289, 469, 309, 261, 4099, 18, 291, 10556, 10756, 288, 1377, 20309, 863, 18, 4479, 12, 588, 37, 89, 653, 12, 8377, 10019, 1377, 1194, 18, 4148, 23, 2932, 18939, 7708, 315, 397, 5728, 1085, 5808, 12, 4099, 18, 9653, 13, 397, 10792, 315, 603, 28235, 2119, 397, 20309, 18, 17994, 1435, 397, 5862, 1769, 1377, 327, 3741, 67, 22271, 4107, 31, 565, 289, 469, 288, 1377, 327, 1241, 18, 9653, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 509, 4506, 89, 6193, 12, 12269, 5162, 2802, 20309, 13, 288, 565, 9621, 1622, 1241, 273, 261, 6193, 1622, 13, 8377, 863, 18, 588, 12, 588, 37, 89, 653, 12, 8377, 10019, 565, 309, 261, 4099, 631, 2011, 13, 225, 288, 1377, 327, 3741, 67, 22271, 4107, 31, 565, 289, 469, 309, 261, 4099, 18, 291, 10556, 10756, 288, 1377, 20309, 863, 18, 4479, 12, 588, 37, 89, 653, 12, 8377, 10019, 1377, 1194, 18, 4148, 23, 2932, 18939, 7708, 315, 397, 5728, 1085, 5808, 12, 4099, 18, 9653, 13, 397, 10792, 315, 603, 28235, 2119, 397, 20309, 18, 17994, 1435, 397, 5862, 1769, 1377, 327, 3741, 67, 22271, 4107, 31, 565, 289, 469, 288, 1377, 327, 1241, 2 ]
} else {
} else {
void handleNamePoll(PollState pollState, PollTally results, NodeState nodeState) { logger.debug2("handling name poll results " + results); if (results.didWinPoll()) { // if agree if (results.isMyPoll()) { // if poll is mine try { logger.debug2("won name poll, calling content poll on subnodes."); callContentPollsOnSubNodes(nodeState, results); pollState.status = PollState.WON; } catch (IOException e) { logger.error("IO error scheduling content polls.", e); pollState.status = PollState.ERR_IO; } } else { logger.debug2("won name poll, setting state to WON"); pollState.status = PollState.WON; } } else { // if disagree logger.debug2("lost name poll, collecting repair info."); String baseUrl = nodeState.getCachedUrlSet().getUrl(); pollState.status = PollState.REPAIRING; Iterator masterIt = results.getCorrectEntries(); Iterator localIt = results.getLocalEntries(); Set localSet = createUrlSetFromCusIterator(localIt); ArchivalUnit au = nodeState.getCachedUrlSet().getArchivalUnit(); // iterate through master list while (masterIt.hasNext()) { String url = (String)masterIt.next(); // compare against my list if (localSet.contains(url)) { // removing from the set to leave only files for deletion localSet.remove(url); } else { // if not found locally, fetch logger.debug2("marking missing node for repair: " + url); CachedUrlSet newCus = au.makeCachedUrlSet(baseUrl + url, null, null); markNodeForRepair(newCus, results); } } localIt = localSet.iterator(); while (localIt.hasNext()) { // for extra items - deletion String url = (String)localIt.next(); logger.debug2("deleting node: " + url); try { CachedUrlSet oldCus = au.makeCachedUrlSet(baseUrl + url, null, null); deleteNode(oldCus); //set crawl status to DELETED NodeState oldState = getNodeState(oldCus); oldState.getCrawlState().type = CrawlState.NODE_DELETED; } catch (Exception e) { logger.error("Couldn't delete node.", e); // the treewalk will fix this eventually } } pollState.status = PollState.REPAIRED; } }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/168079e4e755b21d2ce52d9877d093ce11ba645c/NodeManagerImpl.java/buggy/src/org/lockss/state/NodeManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1640, 461, 19085, 12, 19085, 1119, 7672, 1119, 16, 19160, 56, 1230, 1686, 16, 17311, 2029, 1119, 756, 1119, 13, 288, 565, 1194, 18, 4148, 22, 2932, 26822, 508, 7672, 1686, 315, 397, 1686, 1769, 565, 309, 261, 4717, 18, 14044, 18049, 19085, 10756, 288, 1377, 368, 309, 1737, 992, 1377, 309, 261, 4717, 18, 291, 12062, 19085, 10756, 288, 3639, 368, 309, 7672, 353, 312, 558, 3639, 775, 288, 1850, 1194, 18, 4148, 22, 2932, 91, 265, 508, 7672, 16, 4440, 913, 7672, 603, 720, 4690, 1199, 1769, 1850, 745, 1350, 5850, 3251, 1398, 1676, 3205, 12, 2159, 1119, 16, 1686, 1769, 1850, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 59, 673, 31, 3639, 289, 1044, 261, 14106, 425, 13, 288, 1850, 1194, 18, 1636, 2932, 4294, 555, 21895, 913, 2952, 3251, 1199, 16, 425, 1769, 1850, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 9712, 67, 4294, 31, 3639, 289, 1377, 289, 469, 288, 3639, 1194, 18, 4148, 22, 2932, 91, 265, 508, 7672, 16, 3637, 919, 358, 678, 673, 8863, 3639, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 59, 673, 31, 1377, 289, 565, 289, 469, 288, 1377, 368, 309, 1015, 346, 992, 1377, 1194, 18, 4148, 22, 2932, 383, 334, 508, 7672, 16, 30160, 20994, 1123, 1199, 1769, 1377, 514, 9818, 273, 756, 1119, 18, 588, 9839, 1489, 694, 7675, 588, 1489, 5621, 1377, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 862, 4066, 7937, 1360, 31, 1377, 4498, 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, 918, 1640, 461, 19085, 12, 19085, 1119, 7672, 1119, 16, 19160, 56, 1230, 1686, 16, 17311, 2029, 1119, 756, 1119, 13, 288, 565, 1194, 18, 4148, 22, 2932, 26822, 508, 7672, 1686, 315, 397, 1686, 1769, 565, 309, 261, 4717, 18, 14044, 18049, 19085, 10756, 288, 1377, 368, 309, 1737, 992, 1377, 309, 261, 4717, 18, 291, 12062, 19085, 10756, 288, 3639, 368, 309, 7672, 353, 312, 558, 3639, 775, 288, 1850, 1194, 18, 4148, 22, 2932, 91, 265, 508, 7672, 16, 4440, 913, 7672, 603, 720, 4690, 1199, 1769, 1850, 745, 1350, 5850, 3251, 1398, 1676, 3205, 12, 2159, 1119, 16, 1686, 1769, 1850, 7672, 1119, 18, 2327, 273, 19160, 1119, 18, 59, 673, 31, 3639, 289, 2 ]
PeerNode[] peerNodes = node.getDarknetConnections();
PeerNodeStatus[] peerNodeStatuses = node.getPeerNodeStatuses();
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.getToadletContainer().isAdvancedDarknetEnabled(); /* gather connection statistics */ PeerNode[] peerNodes = node.getDarknetConnections(); Arrays.sort(peerNodes, new Comparator() { public int compare(Object first, Object second) { PeerNode firstNode = (PeerNode) first; PeerNode secondNode = (PeerNode) second; int statusDifference = firstNode.getPeerNodeStatus() - secondNode.getPeerNodeStatus(); if (statusDifference != 0) { return statusDifference; } return firstNode.getName().compareTo(secondNode.getName()); } }); /* copy peer node statuses for consistent display. */ int[] peerNodeStatuses = new int[peerNodes.length]; for (int peerIndex = 0, peerCount = peerNodes.length; peerIndex < peerCount; peerIndex++) { peerNodeStatuses[peerIndex] = peerNodes[peerIndex].getPeerNodeStatus(); } int numberOfConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + "/" + numberOfRoutingBackedOff + "/" + numberOfTooNew + "/" + numberOfTooOld + "/" + numberOfNotConnected + ")"; } else { titleCountString = String.valueOf(numberOfSimpleConnected); } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(node.alerts.createSummary()); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = node.getNetworkSizeEstimate(0); DecimalFormat fix4 = new DecimalFormat("0.0000"); double missRoutingDistance = node.missRoutingDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedoffPercent = node.backedoffPercent.currentValue(); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimate:\u00a0" + networkSizeEstimate + "\u00a0nodes"); overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "missRoutingDistance:\u00a0" + fix4.format(missRoutingDistance)); overviewList.addChild("li", "backedoffPercent:\u00a0" + fix1.format(backedoffPercent)); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul", "id", "activity"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_connected", "Connected:\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_backedoff", (advancedEnabled ? "Backed off" : "Busy") + ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_new", "Too new:\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_old", "Too old:\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_disconnected", "Disconnected:\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Never Connected:\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Disabled:\u00a0" + numberOfDisabled); /* TODO */ } if (numberOfBursting > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Bursting:\u00a0" + numberOfBursting); /* TODO */ } if (numberOfListening > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listening:\u00a0" + numberOfListening); /* TODO */ } if (numberOfListenOnly > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listen Only:\u00a0" + numberOfListenOnly); /* TODO */ } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodes.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = peerTableInfoboxContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.formPassword }); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th", "Status"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Click on the nodename link to send N2NTM", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Address:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Temporarily disconnected. Other node busy? Wait time(s) remaining/total", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node connected or was last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); for (int peerIndex = 0, peerCount = peerNodes.length; peerIndex < peerCount; peerIndex++) { PeerNode peerNode = peerNodes[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNode.hashCode() }); // status column String statusString = peerNode.getPeerNodeStatusString(); if (!advancedEnabled && (peerNode.getPeerNodeStatus() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNode.getPeerNodeStatusCSSClassName(), statusString + (peerNode.isFetchingARK() ? "*" : "")); // name column if (peerNode.isConnected() && (Integer.parseInt(peerNode.getSimpleVersion()) > 476)) { peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNode.hashCode(), peerNode.getName()); } else { peerRow.addChild("td", "class", "peer-name").addChild("#", peerNode.getName()); } // address column if (advancedEnabled) { String pingTime = ""; if (peerNode.isConnected()) { pingTime = " (" + String.valueOf((int) peerNode.averagePingTime()) + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNode.getDetectedPeer() != null) ? (peerNode.getDetectedPeer().toString()) : ("(unknown address)")) + pingTime); } // version column if (peerNode.publicReverseInvalidVersion()) { peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_too_new", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNode.getLocation().getValue())); } // backoff column if (advancedEnabled) { HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNode.backedOffPercent.currentValue())); int backoff = (int) (Math.max(peerNode.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", " " + String.valueOf(backoff / 1000) + "/" + String.valueOf(peerNode.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNode.getLastBackoffReason() == null) ? "" : ("/" + (peerNode.getLastBackoffReason()))); } // idle column long idle = peerNode.timeLastRoutable(); if(peerNode.isRoutable()) { idle = peerNode.timeLastConnectionCompleted(); } else if(peerNodeStatuses[peerIndex] == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNode.getPeerAddedTime(); } peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 6 : 3)); HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNode.getLocalNodeReceivedMessagesFromStatistic().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNode.getLocalNodeReceivedMessagesFromStatistic().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNode.getLocalNodeSentMessagesToStatistic().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNode.getLocalNodeSentMessagesToStatistic().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } if(!advancedEnabled) { peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "remove", "Remove selected peers" }); } else { HTMLNode actionSelect = peerForm.addChild("select", "name", "action"); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "submit", "Go" }); } } // END PEER TABLE // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = peerAdditionContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.formPassword }); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.txt", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/8894de616e17a43e740747a9eb17956bab9b3b3d/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 6385, 1250, 16111, 1526, 273, 756, 18, 588, 774, 361, 1810, 2170, 7675, 291, 23618, 40, 1313, 2758, 1526, 5621, 9506, 202, 20308, 11090, 1459, 7691, 1195, 202, 202, 6813, 907, 8526, 4261, 3205, 273, 756, 18, 588, 40, 1313, 2758, 9314, 5621, 202, 202, 12726, 18, 3804, 12, 12210, 3205, 16, 394, 13359, 1435, 288, 1082, 202, 482, 509, 3400, 12, 921, 1122, 16, 1033, 2205, 13, 288, 9506, 202, 6813, 907, 1122, 907, 273, 261, 6813, 907, 13, 1122, 31, 9506, 202, 6813, 907, 2205, 907, 273, 261, 6813, 907, 13, 2205, 31, 9506, 202, 474, 1267, 16220, 273, 1122, 907, 18, 588, 6813, 907, 1482, 1435, 300, 2205, 907, 18, 588, 6813, 907, 1482, 5621, 9506, 202, 430, 261, 2327, 16220, 480, 374, 13, 288, 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, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 2 ]
log("not copying resources - weird outjar: " + path);
this.logger.info("not copying resources - weird outjar: " + path);
String[] makeCommand() { ArrayList result = new ArrayList(); if (0 < ignored.size()) { for (Iterator iter = ignored.iterator(); iter.hasNext();) { log("ignored: " + iter.next(), Project.MSG_INFO); } } // when copying resources, use temp jar for class output // then copy temp jar contents and resources to output jar if ((null != outjar) && !outjarFixedup) { if (copyInjars || copyInpath || (null != sourceRootCopyFilter) || (null != inpathDirCopyFilter)) { String path = outjar.getAbsolutePath(); int len = FileUtil.zipSuffixLength(path); if (len < 1) { log("not copying resources - weird outjar: " + path); } else { path = path.substring(0, path.length()-len) + ".tmp.jar"; tmpOutjar = new File(path); } } if (null == tmpOutjar) { cmd.addFlagged("-outjar", outjar.getAbsolutePath()); } else { cmd.addFlagged("-outjar", tmpOutjar.getAbsolutePath()); } outjarFixedup = true; } result.addAll(cmd.extractArguments()); addListArgs(result); String[] command = (String[]) result.toArray(new String[0]); if (null != commandEditor) { command = commandEditor.editCommand(command); } else if (null != COMMAND_EDITOR) { command = COMMAND_EDITOR.editCommand(command); } return command; }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/e0d6f5412b278639a1cc889eda1d8fba041d50ba/AjcTask.java/buggy/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 8526, 1221, 2189, 1435, 288, 3639, 2407, 563, 273, 394, 2407, 5621, 3639, 309, 261, 20, 411, 5455, 18, 1467, 10756, 288, 5411, 364, 261, 3198, 1400, 273, 5455, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 613, 2932, 24055, 30, 315, 397, 1400, 18, 4285, 9334, 5420, 18, 11210, 67, 5923, 1769, 1171, 9079, 289, 3639, 289, 3639, 368, 1347, 8933, 2703, 16, 999, 1906, 7334, 364, 667, 876, 3639, 368, 1508, 1610, 1906, 7334, 2939, 471, 2703, 358, 876, 7334, 3639, 309, 14015, 2011, 480, 596, 11930, 13, 597, 401, 659, 11930, 7505, 416, 13, 288, 5411, 309, 261, 3530, 382, 78, 5913, 747, 1610, 382, 803, 747, 261, 2011, 480, 1084, 2375, 2951, 1586, 13, 10792, 747, 261, 2011, 480, 316, 803, 1621, 2951, 1586, 3719, 288, 7734, 514, 589, 273, 596, 11930, 18, 588, 10368, 743, 5621, 7734, 509, 562, 273, 1387, 1304, 18, 4450, 5791, 1782, 12, 803, 1769, 7734, 309, 261, 1897, 411, 404, 13, 288, 10792, 333, 18, 4901, 18, 1376, 2932, 902, 8933, 2703, 300, 20843, 596, 11930, 30, 315, 397, 589, 1769, 7734, 289, 469, 288, 10792, 589, 273, 589, 18, 28023, 12, 20, 16, 589, 18, 2469, 1435, 17, 1897, 13, 397, 3552, 5645, 18, 11930, 14432, 10792, 1853, 1182, 11930, 273, 394, 1387, 12, 803, 1769, 7734, 289, 5411, 289, 5411, 309, 261, 2011, 422, 1853, 1182, 11930, 13, 288, 27573, 1797, 18, 1289, 4678, 2423, 2932, 17, 659, 11930, 3113, 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, 514, 8526, 1221, 2189, 1435, 288, 3639, 2407, 563, 273, 394, 2407, 5621, 3639, 309, 261, 20, 411, 5455, 18, 1467, 10756, 288, 5411, 364, 261, 3198, 1400, 273, 5455, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 613, 2932, 24055, 30, 315, 397, 1400, 18, 4285, 9334, 5420, 18, 11210, 67, 5923, 1769, 1171, 9079, 289, 3639, 289, 3639, 368, 1347, 8933, 2703, 16, 999, 1906, 7334, 364, 667, 876, 3639, 368, 1508, 1610, 1906, 7334, 2939, 471, 2703, 358, 876, 7334, 3639, 309, 14015, 2011, 480, 596, 11930, 13, 597, 401, 659, 11930, 7505, 416, 13, 288, 5411, 309, 261, 3530, 382, 78, 5913, 747, 1610, 382, 803, 747, 261, 2011, 480, 1084, 2 ]
return position(new ClobImpl(_connection, searchStr), start);
if (searchStr == null) { throw new SQLException( Messages.get("error.clob.searchnull"), "HY009"); } try { byte[] pattern = searchStr.getBytes("UTF-16LE"); int pos = blobBuffer.position(pattern, (start - 1) * 2 + 1); return (pos < 0) ? pos : (pos - 1) / 2 + 1; } catch (UnsupportedEncodingException e) { throw new IllegalStateException( "UTF-16LE encoding is not supported."); }
public long position(String searchStr, long start) throws SQLException { return position(new ClobImpl(_connection, searchStr), start); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/69711793b75f81a2eda69e99d5f3167edb53541a/ClobImpl.java/clean/src/main/net/sourceforge/jtds/jdbc/ClobImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 1754, 12, 780, 1623, 1585, 16, 1525, 787, 13, 1216, 6483, 288, 3639, 309, 261, 3072, 1585, 422, 446, 13, 288, 604, 394, 6483, 12, 4838, 18, 588, 2932, 1636, 18, 71, 1295, 18, 3072, 2011, 6, 3631, 315, 44, 61, 713, 29, 8863, 289, 775, 288, 1160, 8526, 1936, 273, 1623, 1585, 18, 588, 2160, 2932, 5159, 17, 2313, 900, 8863, 509, 949, 273, 4795, 1892, 18, 3276, 12, 4951, 16, 261, 1937, 300, 404, 13, 380, 576, 397, 404, 1769, 327, 261, 917, 411, 374, 13, 692, 949, 294, 261, 917, 300, 404, 13, 342, 576, 397, 404, 31, 289, 1044, 261, 8544, 13836, 425, 13, 288, 225, 604, 394, 5477, 12, 315, 5159, 17, 2313, 900, 2688, 353, 486, 3260, 1199, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 1754, 12, 780, 1623, 1585, 16, 1525, 787, 13, 1216, 6483, 288, 3639, 309, 261, 3072, 1585, 422, 446, 13, 288, 604, 394, 6483, 12, 4838, 18, 588, 2932, 1636, 18, 71, 1295, 18, 3072, 2011, 6, 3631, 315, 44, 61, 713, 29, 8863, 289, 775, 288, 1160, 8526, 1936, 273, 1623, 1585, 18, 588, 2160, 2932, 5159, 17, 2313, 900, 8863, 509, 949, 273, 4795, 1892, 18, 3276, 12, 4951, 16, 261, 1937, 300, 404, 13, 380, 576, 397, 404, 1769, 327, 261, 917, 411, 374, 13, 692, 949, 294, 261, 917, 300, 404, 13, 342, 576, 397, 404, 31, 289, 1044, 261, 8544, 13836, 425, 13, 288, 225, 604, 394, 5477, 12, 315, 5159, 2 ]
String targetID = info.getDefaultTarget().getParent().getId(); IManagedBuilderMakefileGenerator generator = ManagedBuildManager.getMakefileGenerator(targetID);
IManagedBuilderMakefileGenerator generator = ManagedBuildManager.getBuildfileGenerator(info.getDefaultConfiguration());
protected void clean(IProgressMonitor monitor) throws CoreException { referencedProjects = getProject().getReferencedProjects(); outputTrace(getProject().getName(), "Clean build requested"); //$NON-NLS-1$ IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(getProject()); if (info == null) { outputError(getProject().getName(), "Build information was not found"); //$NON-NLS-1$ return; } IPath buildDirPath = getProject().getLocation().append(info.getConfigurationName()); IWorkspace workspace = CCorePlugin.getWorkspace(); IContainer buildDir = workspace.getRoot().getContainerForLocation(buildDirPath); if (buildDir == null || !buildDir.isAccessible()){ outputError(buildDir.getName(), "Could not delete the build directory"); //$NON-NLS-1$ return; } String status; try { // try the brute force approach first status = ManagedMakeMessages.getFormattedString("ManagedMakeBuilder.message.clean.deleting.output", buildDir.getName()); //$NON-NLS-1$ monitor.subTask(status); workspace.delete(new IResource[]{buildDir}, true, monitor); } catch (CoreException e) { // Create a makefile generator for the build status = ManagedMakeMessages.getFormattedString("ManagedMakeBuilder.message.clean.build.clean", buildDir.getName()); //$NON-NLS-1$ monitor.subTask(status); String targetID = info.getDefaultTarget().getParent().getId(); IManagedBuilderMakefileGenerator generator = ManagedBuildManager.getMakefileGenerator(targetID); generator.initialize(getProject(), info, monitor); cleanBuild(info, generator, monitor); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/18b49394c46cbbecf041078a70e83e4975d004a7/GeneratedMakefileBuilder.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/GeneratedMakefileBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2721, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 20883, 15298, 273, 11080, 7675, 588, 22344, 15298, 5621, 202, 202, 2844, 3448, 12, 588, 4109, 7675, 17994, 9334, 315, 7605, 1361, 3764, 8863, 202, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 3445, 4184, 3116, 966, 1123, 273, 10024, 3116, 1318, 18, 588, 3116, 966, 12, 588, 4109, 10663, 202, 202, 430, 261, 1376, 422, 446, 13, 288, 1082, 202, 2844, 668, 12, 588, 4109, 7675, 17994, 9334, 315, 3116, 1779, 1703, 486, 1392, 8863, 202, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 45, 743, 1361, 20129, 273, 11080, 7675, 588, 2735, 7675, 6923, 12, 1376, 18, 588, 1750, 461, 10663, 202, 202, 45, 8241, 6003, 273, 385, 4670, 3773, 18, 588, 8241, 5621, 202, 202, 45, 2170, 1361, 1621, 273, 6003, 18, 588, 2375, 7675, 588, 2170, 1290, 2735, 12, 3510, 20129, 1769, 202, 202, 430, 261, 3510, 1621, 422, 446, 747, 401, 3510, 1621, 18, 291, 10451, 10756, 95, 1082, 202, 2844, 668, 12, 3510, 1621, 18, 17994, 9334, 315, 4445, 486, 1430, 326, 1361, 1867, 8863, 202, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 780, 1267, 31, 9506, 202, 698, 288, 1082, 202, 759, 775, 326, 5186, 624, 2944, 17504, 1122, 1082, 202, 2327, 273, 10024, 6464, 5058, 18, 588, 18298, 780, 2932, 10055, 6464, 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, 2721, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 20883, 15298, 273, 11080, 7675, 588, 22344, 15298, 5621, 202, 202, 2844, 3448, 12, 588, 4109, 7675, 17994, 9334, 315, 7605, 1361, 3764, 8863, 202, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 3445, 4184, 3116, 966, 1123, 273, 10024, 3116, 1318, 18, 588, 3116, 966, 12, 588, 4109, 10663, 202, 202, 430, 261, 1376, 422, 446, 13, 288, 1082, 202, 2844, 668, 12, 588, 4109, 7675, 17994, 9334, 315, 3116, 1779, 1703, 486, 1392, 8863, 202, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 45, 743, 1361, 20129, 273, 11080, 7675, 2 ]
return myLabelConstrains;
return myLabelConstraints;
public String getLabelLocation() { return myLabelConstrains; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/572397b06553c194c77473436eedd931af343014/LabeledComponent.java/clean/ui/openapi/com/intellij/openapi/ui/LabeledComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 11237, 2735, 1435, 288, 565, 327, 3399, 2224, 4878, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 11237, 2735, 1435, 288, 565, 327, 3399, 2224, 4878, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void setFeature(String name,
void setFeature(String name,
public void setFeature(String name, boolean state) throws XmlPullParserException;
3949 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3949/59c14117040d926cddf8716a98e1c6be890e11ee/XmlPullParser.java/clean/src/java/api/org/xmlpull/v1/XmlPullParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 28669, 12, 780, 508, 16, 21821, 1250, 919, 13, 1216, 5714, 9629, 25746, 31, 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 ]
[ 1, 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, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 28669, 12, 780, 508, 16, 21821, 1250, 919, 13, 1216, 5714, 9629, 25746, 31, 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 ]
public PostMethod postFormData(String formUrl, NameValuePair[] formData) throws LoginException, IOException {
private PostMethod postFormData(String formUrl, NameValuePair[] formData) throws LoginException, IOException {
public PostMethod postFormData(String formUrl, NameValuePair[] formData) throws LoginException, IOException { WebClientUtil.setupHttpClient(httpClient, proxy, repositoryUrl.toString(), htAuthUser, htAuthPass); if (!authenticated && hasAuthenticationCredentials()) { authenticate(); } PostMethod postMethod = new PostMethod(WebClientUtil.getRequestPath(repositoryUrl.toString()+formUrl)); postMethod.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=" + characterEncoding); httpClient.getHttpConnectionManager().getParams().setSoTimeout(CONNECT_TIMEOUT); httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(CONNECT_TIMEOUT); postMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryHandler); postMethod.setRequestBody(formData); postMethod.setDoAuthentication(true); // httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(CONNECT_TIMEOUT); int status = httpClient.executeMethod(postMethod); if (status == HttpStatus.SC_OK) { return postMethod; } else { MylarStatusHandler.log("Post failed: " + HttpStatus.getStatusText(status), this); throw new IOException("Communication error occurred during upload. \n\n" + HttpStatus.getStatusText(status)); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/fbe43a9128c6ba2a3b395c0e7149cae5ed8327c8/BugzillaClient.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5616, 1305, 1603, 30079, 12, 780, 646, 1489, 16, 1770, 20337, 8526, 14224, 13, 1216, 11744, 503, 16, 1860, 288, 202, 202, 4079, 1227, 1304, 18, 8401, 11895, 12, 2505, 1227, 16, 2889, 16, 3352, 1489, 18, 10492, 9334, 14049, 1730, 1299, 16, 14049, 1730, 6433, 1769, 202, 202, 430, 16051, 14454, 597, 711, 6492, 6163, 10756, 288, 1082, 202, 22035, 5621, 202, 202, 97, 202, 202, 3349, 1305, 1603, 1305, 273, 394, 5616, 1305, 12, 4079, 1227, 1304, 18, 588, 691, 743, 12, 9071, 1489, 18, 10492, 1435, 15, 687, 1489, 10019, 202, 202, 2767, 1305, 18, 542, 691, 1864, 2932, 1350, 17, 559, 3113, 315, 3685, 19, 92, 17, 5591, 17, 687, 17, 19690, 31, 4856, 1546, 397, 3351, 4705, 1769, 202, 202, 2505, 1227, 18, 588, 2940, 1952, 1318, 7675, 588, 1370, 7675, 542, 10225, 2694, 12, 11032, 67, 9503, 1769, 202, 202, 2505, 1227, 18, 588, 2940, 1952, 1318, 7675, 588, 1370, 7675, 542, 1952, 2694, 12, 11032, 67, 9503, 1769, 202, 202, 2767, 1305, 18, 588, 1370, 7675, 542, 1662, 12, 2940, 1305, 1370, 18, 24240, 67, 19937, 16, 3300, 1503, 1769, 202, 202, 2767, 1305, 18, 542, 28843, 12, 687, 751, 1769, 202, 202, 2767, 1305, 18, 542, 3244, 6492, 12, 3767, 1769, 202, 202, 759, 10898, 18, 588, 2940, 1952, 1318, 7675, 588, 1370, 7675, 542, 1952, 2694, 12, 11032, 67, 9503, 1769, 202, 202, 474, 1267, 273, 10898, 18, 8837, 1305, 12, 2767, 1305, 1769, 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, 5616, 1305, 1603, 30079, 12, 780, 646, 1489, 16, 1770, 20337, 8526, 14224, 13, 1216, 11744, 503, 16, 1860, 288, 202, 202, 4079, 1227, 1304, 18, 8401, 11895, 12, 2505, 1227, 16, 2889, 16, 3352, 1489, 18, 10492, 9334, 14049, 1730, 1299, 16, 14049, 1730, 6433, 1769, 202, 202, 430, 16051, 14454, 597, 711, 6492, 6163, 10756, 288, 1082, 202, 22035, 5621, 202, 202, 97, 202, 202, 3349, 1305, 1603, 1305, 273, 394, 5616, 1305, 12, 4079, 1227, 1304, 18, 588, 691, 743, 12, 9071, 1489, 18, 10492, 1435, 15, 687, 1489, 10019, 202, 202, 2767, 1305, 18, 542, 691, 1864, 2932, 1350, 17, 559, 3113, 315, 3685, 19, 92, 17, 5591, 17, 687, 17, 19690, 2 ]
BugzillaTask newTask = new BugzillaTask(AbstractRepositoryTask.getHandle(repository.getUrl().toExternalForm(),
BugzillaTask newTask = new BugzillaTask(AbstractRepositoryTask.getHandle(repository.getUrl(),
public boolean performFinish() { super.performFinish(); String bugIdString = this.getId(); int bugId = -1; boolean validId = false; try { if (bugIdString != null) { bugId = Integer.parseInt(bugIdString); validId = true; } } catch (NumberFormatException nfe) { // ignore } if (!validId) { MessageDialog.openError(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG, "Could not create bug id, no valid id"); return false; } BugzillaTask newTask = new BugzillaTask(AbstractRepositoryTask.getHandle(repository.getUrl().toExternalForm(), bugId), "<bugzilla info>", true); Object selectedObject = null; if (TaskListView.getDefault() != null) selectedObject = ((IStructuredSelection) TaskListView.getDefault().getViewer().getSelection()) .getFirstElement();// AbstractRepositoryClient repositoryClient = MylarTaskListPlugin.getRepositoryManager().getRepositoryClient(BugzillaPlugin.REPOSITORY_KIND);// if (repositoryClient != null) { MylarTaskListPlugin.getTaskListManager().getTaskList().addTaskToArchive(newTask);// repositoryClient.addTaskToArchive(newTask);// } if (selectedObject instanceof TaskCategory) { MylarTaskListPlugin.getTaskListManager().moveToCategory(((TaskCategory) selectedObject), newTask); } else { MylarTaskListPlugin.getTaskListManager().moveToRoot(newTask); } AbstractRepositoryConnector client = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector(BugzillaPlugin.REPOSITORY_KIND);// client.addTaskToArchive(newTask); TaskListUiUtil.openEditor(newTask); if (!newTask.isDownloaded()) { client.synchronize(newTask, true, null); } return true; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b86455249adfd805375ab5ef4f49dc4b9506e0d2/NewBugzillaReportWizard.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/NewBugzillaReportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 1435, 288, 202, 202, 9565, 18, 16092, 11641, 5621, 202, 202, 780, 7934, 548, 780, 273, 333, 18, 26321, 5621, 202, 202, 474, 7934, 548, 273, 300, 21, 31, 202, 202, 6494, 923, 548, 273, 629, 31, 202, 202, 698, 288, 1082, 202, 430, 261, 925, 548, 780, 480, 446, 13, 288, 9506, 202, 925, 548, 273, 2144, 18, 2670, 1702, 12, 925, 548, 780, 1769, 9506, 202, 877, 548, 273, 638, 31, 1082, 202, 97, 3196, 202, 97, 1044, 261, 1854, 9291, 25386, 13, 288, 1082, 202, 759, 2305, 202, 202, 97, 202, 202, 430, 16051, 877, 548, 13, 288, 1082, 202, 1079, 6353, 18, 3190, 668, 12, 2011, 16, 467, 19865, 15990, 2918, 18, 14123, 67, 8723, 67, 2565, 18683, 16, 4405, 202, 6, 4445, 486, 752, 7934, 612, 16, 1158, 923, 612, 8863, 1082, 202, 2463, 629, 31, 202, 202, 97, 3196, 202, 19865, 15990, 2174, 394, 2174, 273, 394, 16907, 15990, 2174, 12, 7469, 3305, 2174, 18, 588, 3259, 12, 9071, 18, 588, 1489, 7675, 869, 6841, 1204, 9334, 9506, 202, 925, 548, 3631, 3532, 925, 15990, 1123, 2984, 16, 638, 1769, 202, 202, 921, 3170, 921, 273, 446, 31, 202, 202, 430, 261, 2174, 682, 1767, 18, 588, 1868, 1435, 480, 446, 13, 1082, 202, 8109, 921, 273, 14015, 45, 30733, 6233, 13, 3837, 682, 1767, 18, 588, 1868, 7675, 588, 18415, 7675, 588, 6233, 10756, 6862, 202, 18, 588, 3759, 1046, 5621, 759, 202, 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, 1250, 3073, 11641, 1435, 288, 202, 202, 9565, 18, 16092, 11641, 5621, 202, 202, 780, 7934, 548, 780, 273, 333, 18, 26321, 5621, 202, 202, 474, 7934, 548, 273, 300, 21, 31, 202, 202, 6494, 923, 548, 273, 629, 31, 202, 202, 698, 288, 1082, 202, 430, 261, 925, 548, 780, 480, 446, 13, 288, 9506, 202, 925, 548, 273, 2144, 18, 2670, 1702, 12, 925, 548, 780, 1769, 9506, 202, 877, 548, 273, 638, 31, 1082, 202, 97, 3196, 202, 97, 1044, 261, 1854, 9291, 25386, 13, 288, 1082, 202, 759, 2305, 202, 202, 97, 202, 202, 430, 16051, 877, 548, 13, 288, 1082, 202, 1079, 6353, 18, 3190, 668, 12, 2011, 16, 467, 19865, 2 ]
System.out.println ("Done.");
logger.info ("Done.");
public Vector query (String aSearchString) { Vector retVecVec = new Vector(); //return vector of vectors. // try { //open a connection to the LDAP server System.out.println ("Opening server " + mReadableName); ICardSource Four11AddressBook = getCardSource(); //create the query ITerm query = new TermEqual (new AC_Attribute ("sn", aSearchString)); String[] attributes = {"givenName", "sn", "cn", "o", "mail", "telephoneNumber", "city"}; //query the LDAP server. System.out.println ("Send query" + query); ICardSet cardSet = Four11AddressBook.getCardSet (query, attributes); //Sort the list. String[] sortOrder = {"sn", "cn"}; cardSet.sort (sortOrder); //hack. I've put the for loop in a try block to catch the exception //thrown when cardEnum.hasMoreElements() incorrectly returns true. try { //enumerate thru the cards. for (Enumeration cardEnum = cardSet.getEnumeration(); cardEnum.hasMoreElements(); ) { System.out.println ("got card"); //get the addres card ICard card = (ICard) cardEnum.nextElement(); //get the attributes for this card IAttributeSet attrSet = card.getAttributeSet (); //create a simple vector to hold the attributes values for this card. Vector thisRow = new Vector(6); String commonName = ""; String organization = ""; String mail = ""; String phone = ""; String city = ""; String nickName = ""; // enumerate thru the card attributes. for (Enumeration attEnum = attrSet.getEnumeration(); attEnum.hasMoreElements(); ) { IAttribute attr = (IAttribute) attEnum.nextElement(); String attrName = attr.getName(); if (attrName.equals ("cn")) { commonName = attr.getValue(); } else if (attrName.equals ("o")) { organization = attr.getValue(); } else if (attrName.equals ("mail")) { mail = attr.getValue(); } else if (attrName.equals ("telephoneNumber")) { phone = attr.getValue(); } else if (attrName.equals ("city")) { city = attr.getValue(); } } //create this row for the table. thisRow.addElement (commonName); thisRow.addElement (mail); thisRow.addElement (organization); thisRow.addElement (phone); thisRow.addElement (city); thisRow.addElement (nickName); //add this row to the table retVecVec.addElement (thisRow); } } catch (Exception e) { } // } // catch( LDAPException e ) { // System.out.println( "Error: " + e.toString() ); // } System.out.println ("Done."); return retVecVec; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/23223271c91f0c5c3960447f887d1bdf068d137a/AddressBook.java/clean/grendel/sources/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 282, 843, 261, 780, 279, 2979, 780, 13, 288, 4202, 5589, 325, 12991, 12991, 273, 394, 5589, 5621, 282, 368, 2463, 3806, 434, 10046, 18, 4202, 368, 2868, 775, 288, 4202, 368, 3190, 279, 1459, 358, 326, 11916, 1438, 4202, 2332, 18, 659, 18, 8222, 7566, 21378, 1438, 315, 397, 312, 14151, 461, 1769, 4202, 467, 6415, 1830, 478, 477, 2499, 31374, 273, 26776, 1830, 5621, 4202, 368, 2640, 326, 843, 4202, 467, 4065, 843, 273, 394, 6820, 5812, 261, 2704, 12048, 67, 1499, 7566, 8134, 3113, 279, 2979, 780, 10019, 4202, 514, 8526, 1677, 273, 12528, 10822, 461, 3113, 315, 8134, 3113, 315, 10305, 3113, 315, 83, 3113, 315, 4408, 3113, 315, 29170, 10540, 1854, 3113, 315, 14240, 6, 20451, 4202, 368, 2271, 326, 11916, 1438, 18, 4202, 2332, 18, 659, 18, 8222, 7566, 3826, 843, 6, 397, 843, 1769, 4202, 467, 6415, 694, 5270, 694, 273, 478, 477, 2499, 31374, 18, 588, 6415, 694, 261, 2271, 16, 1677, 1769, 4202, 368, 4416, 326, 666, 18, 4202, 514, 8526, 19050, 273, 12528, 8134, 3113, 315, 10305, 6, 20451, 4202, 5270, 694, 18, 3804, 261, 3804, 2448, 1769, 4202, 368, 76, 484, 18, 467, 8081, 1378, 326, 364, 2798, 316, 279, 775, 1203, 358, 1044, 326, 1520, 4202, 368, 12849, 82, 1347, 5270, 3572, 18, 5332, 7417, 3471, 1435, 25621, 1135, 638, 18, 4202, 775, 288, 540, 368, 7924, 12600, 286, 8653, 326, 18122, 18, 540, 364, 261, 21847, 5270, 3572, 273, 5270, 694, 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, 5589, 282, 843, 261, 780, 279, 2979, 780, 13, 288, 4202, 5589, 325, 12991, 12991, 273, 394, 5589, 5621, 282, 368, 2463, 3806, 434, 10046, 18, 4202, 368, 2868, 775, 288, 4202, 368, 3190, 279, 1459, 358, 326, 11916, 1438, 4202, 2332, 18, 659, 18, 8222, 7566, 21378, 1438, 315, 397, 312, 14151, 461, 1769, 4202, 467, 6415, 1830, 478, 477, 2499, 31374, 273, 26776, 1830, 5621, 4202, 368, 2640, 326, 843, 4202, 467, 4065, 843, 273, 394, 6820, 5812, 261, 2704, 12048, 67, 1499, 7566, 8134, 3113, 279, 2979, 780, 10019, 4202, 514, 8526, 1677, 273, 12528, 10822, 461, 3113, 315, 8134, 3113, 315, 10305, 3113, 315, 83, 3113, 315, 4408, 3113, 315, 29170, 10540, 1854, 2 ]
public static synchronized HashMap doQuery(Context c, String querystring) throws IOException { querystring = checkEmptyQuery( querystring ); querystring = workAroundLuceneBug( querystring ); querystring = stripHandles( querystring ); ArrayList resultlist= new ArrayList(); ArrayList itemlist = new ArrayList(); ArrayList commlist = new ArrayList(); ArrayList colllist = new ArrayList(); HashMap metahash = new HashMap(); // initial results are empty metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist ); try { IndexSearcher searcher = new IndexSearcher( ConfigurationManager.getProperty("search.dir")); QueryParser qp = new QueryParser("default", new DSAnalyzer()); Query myquery = qp.parse(querystring); Hits hits = searcher.search(myquery); for (int i = 0; i < hits.length(); i++) { Document d = hits.doc(i); String handletext = d.get("handle"); String handletype = d.get("type"); resultlist.add(handletext); if (handletype.equals(ITEM)) { itemlist.add(handletext); } else if (handletype.equals(COLLECTION)) { colllist.add(handletext); } else if (handletype.equals(COMMUNITY)) { commlist.add(handletext); break; } } // close the IndexSearcher - and all its filehandles searcher.close(); // store all of the different types of hits in the hash metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist ); } catch (NumberFormatException e) { // a bad parse means that there are no results // doing nothing with the exception gets you // throw new SQLException( "Error parsing search results: " + e ); // ?? quit? } catch (ParseException e) { // a parse exception - log and return null results log.warn(LogManager.getHeader(c, "Lucene Parse Exception", "" + e)); } return metahash; }
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/8f858d84dc2fcea79f7852722d5a8a3ed610ba7d/DSQuery.java/clean/dspace/src/org/dspace/search/DSQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5642, 2102, 15666, 8658, 2896, 1138, 12, 1042, 71, 16, 780, 2271, 1080, 13, 15069, 14106, 95, 2271, 1080, 33, 1893, 1921, 1138, 12, 2271, 1080, 1769, 2271, 1080, 33, 1252, 30022, 19763, 19865, 12, 2271, 1080, 1769, 2271, 1080, 33, 6406, 8788, 12, 2271, 1080, 1769, 19558, 2088, 1098, 33, 2704, 19558, 5621, 19558, 1726, 1098, 202, 33, 2704, 19558, 5621, 19558, 832, 781, 376, 202, 33, 2704, 19558, 5621, 19558, 12910, 1098, 202, 33, 2704, 19558, 5621, 8658, 3901, 2816, 202, 33, 2704, 8658, 5621, 759, 6769, 4717, 834, 5531, 3901, 2816, 18, 458, 12, 4685, 16, 2088, 1098, 1769, 3901, 2816, 18, 458, 12, 12674, 16, 1726, 1098, 1769, 3901, 2816, 18, 458, 12, 25964, 16, 12910, 1098, 1769, 3901, 2816, 18, 458, 12, 4208, 49, 2124, 4107, 16, 832, 781, 376, 1769, 698, 95, 1016, 2979, 264, 3072, 264, 33, 2704, 1016, 2979, 264, 12, 1750, 1318, 18, 588, 1396, 2932, 3072, 18, 1214, 7923, 1769, 1138, 2678, 14166, 33, 2704, 1138, 2678, 2932, 1886, 3113, 2704, 3948, 12803, 10663, 1138, 4811, 2271, 33, 14166, 18, 2670, 12, 2271, 1080, 1769, 13616, 674, 1282, 33, 3072, 264, 18, 3072, 12, 4811, 2271, 1769, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 15173, 18, 2469, 5621, 77, 27245, 95, 2519, 72, 33, 15173, 18, 2434, 12, 77, 1769, 780, 2349, 1810, 408, 33, 72, 18, 588, 2932, 4110, 8863, 780, 2349, 1810, 388, 33, 72, 18, 588, 2932, 723, 8863, 2088, 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, 1071, 5642, 2102, 15666, 8658, 2896, 1138, 12, 1042, 71, 16, 780, 2271, 1080, 13, 15069, 14106, 95, 2271, 1080, 33, 1893, 1921, 1138, 12, 2271, 1080, 1769, 2271, 1080, 33, 1252, 30022, 19763, 19865, 12, 2271, 1080, 1769, 2271, 1080, 33, 6406, 8788, 12, 2271, 1080, 1769, 19558, 2088, 1098, 33, 2704, 19558, 5621, 19558, 1726, 1098, 202, 33, 2704, 19558, 5621, 19558, 832, 781, 376, 202, 33, 2704, 19558, 5621, 19558, 12910, 1098, 202, 33, 2704, 19558, 5621, 8658, 3901, 2816, 202, 33, 2704, 8658, 5621, 759, 6769, 4717, 834, 5531, 3901, 2816, 18, 458, 12, 4685, 16, 2088, 1098, 1769, 3901, 2816, 18, 458, 12, 12674, 16, 1726, 1098, 1769, 3901, 2816, 18, 458, 12, 25964, 2 ]
protected Sequence doQuery( User user, DBBroker broker, String xpath, DocumentSet docs, NodeSet contextSet, String baseURI) throws Exception {
protected Sequence doQuery(User user, DBBroker broker, String xpath, DocumentSet docs, NodeSet contextSet, Hashtable parameters) throws Exception {
protected Sequence doQuery( User user, DBBroker broker, String xpath, DocumentSet docs, NodeSet contextSet, String baseURI) throws Exception { if (docs == null) docs = broker.getAllDocuments(new DocumentSet()); XQueryContext context = new XQueryContext(broker); context.setBaseURI(baseURI); context.setStaticallyKnownDocuments(docs); LOG.debug("query = " + xpath); XPathLexer2 lexer = new XPathLexer2(new StringReader(xpath)); XPathParser2 parser = new XPathParser2(lexer, false); XPathTreeParser2 treeParser = new XPathTreeParser2(context); parser.xpath(); if (parser.foundErrors()) { throw new EXistException(parser.getErrorMessage()); } AST ast = parser.getAST(); LOG.debug("generated AST: " + ast.toStringTree()); PathExpr expr = new PathExpr(context); treeParser.xpath(ast, expr); if (treeParser.foundErrors()) { throw new EXistException(treeParser.getErrorMessage()); } LOG.info("compiled: " + expr.pprint()); long start = System.currentTimeMillis(); Sequence result = expr.eval(contextSet, null); LOG.info("query took " + (System.currentTimeMillis() - start) + "ms."); return result; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/RpcConnection.java/clean/src/org/exist/xmlrpc/RpcConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8370, 741, 1138, 12, 202, 202, 1299, 729, 16, 202, 202, 2290, 11194, 8625, 16, 202, 202, 780, 6748, 16, 202, 202, 2519, 694, 3270, 16, 202, 202, 907, 694, 819, 694, 16, 202, 202, 780, 1026, 3098, 13, 202, 202, 15069, 1185, 288, 202, 202, 430, 261, 8532, 422, 446, 13, 1082, 202, 8532, 273, 8625, 18, 588, 1595, 12922, 12, 2704, 4319, 694, 10663, 202, 202, 60, 1138, 1042, 819, 273, 394, 1139, 1138, 1042, 12, 21722, 1769, 202, 202, 2472, 18, 542, 2171, 3098, 12, 1969, 3098, 1769, 202, 202, 2472, 18, 542, 5788, 1230, 11925, 12922, 12, 8532, 1769, 202, 202, 4842, 18, 4148, 2932, 2271, 273, 315, 397, 6748, 1769, 202, 202, 14124, 13356, 22, 8512, 273, 394, 10172, 13356, 22, 12, 2704, 26227, 12, 18644, 10019, 202, 202, 14124, 2678, 22, 2082, 273, 394, 10172, 2678, 22, 12, 31731, 16, 629, 1769, 202, 202, 14124, 2471, 2678, 22, 2151, 2678, 273, 394, 10172, 2471, 2678, 22, 12, 2472, 1769, 202, 202, 4288, 18, 18644, 5621, 202, 202, 430, 261, 4288, 18, 7015, 4229, 10756, 288, 1082, 202, 12849, 394, 5675, 376, 503, 12, 4288, 18, 588, 14935, 10663, 202, 202, 97, 202, 202, 9053, 3364, 273, 2082, 18, 588, 9053, 5621, 202, 202, 4842, 18, 4148, 2932, 11168, 9183, 30, 315, 397, 3364, 18, 10492, 2471, 10663, 202, 202, 743, 4742, 3065, 273, 394, 2666, 4742, 12, 2472, 1769, 202, 202, 3413, 2678, 18, 18644, 12, 689, 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, 1117, 8370, 741, 1138, 12, 202, 202, 1299, 729, 16, 202, 202, 2290, 11194, 8625, 16, 202, 202, 780, 6748, 16, 202, 202, 2519, 694, 3270, 16, 202, 202, 907, 694, 819, 694, 16, 202, 202, 780, 1026, 3098, 13, 202, 202, 15069, 1185, 288, 202, 202, 430, 261, 8532, 422, 446, 13, 1082, 202, 8532, 273, 8625, 18, 588, 1595, 12922, 12, 2704, 4319, 694, 10663, 202, 202, 60, 1138, 1042, 819, 273, 394, 1139, 1138, 1042, 12, 21722, 1769, 202, 202, 2472, 18, 542, 2171, 3098, 12, 1969, 3098, 1769, 202, 202, 2472, 18, 542, 5788, 1230, 11925, 12922, 12, 8532, 1769, 202, 202, 4842, 18, 4148, 2932, 2271, 273, 315, 397, 6748, 1769, 202, 2 ]
public static boolean isFloated(CascadedStyle style) {
public static boolean isFloated(CalculatedStyle style) {
public static boolean isFloated(CascadedStyle style) { if (style == null) { return false; } IdentValue floatVal = style.getIdent(CSSName.FLOAT); return floatVal != null && (floatVal == IdentValue.LEFT || floatVal == IdentValue.RIGHT); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/c96efe21dd32b0a4f0420c8495d49144792cbc9d/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 17646, 383, 690, 12, 4844, 690, 2885, 2154, 13, 288, 3639, 309, 261, 4060, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 13128, 620, 1431, 3053, 273, 2154, 18, 588, 6106, 12, 10276, 461, 18, 15640, 1769, 3639, 327, 1431, 3053, 480, 446, 597, 261, 5659, 3053, 422, 13128, 620, 18, 10066, 747, 1431, 3053, 422, 13128, 620, 18, 11847, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 17646, 383, 690, 12, 4844, 690, 2885, 2154, 13, 288, 3639, 309, 261, 4060, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 13128, 620, 1431, 3053, 273, 2154, 18, 588, 6106, 12, 10276, 461, 18, 15640, 1769, 3639, 327, 1431, 3053, 480, 446, 597, 261, 5659, 3053, 422, 13128, 620, 18, 10066, 747, 1431, 3053, 422, 13128, 620, 18, 11847, 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 ]
if (nodeQualifier.equals(event.getChild().name())) getStorePreferences().removePreferenceChangeListener(preferencesListener);
public void removed(NodeChangeEvent event) { if (nodeQualifier.equals(event.getChild().name())) getStorePreferences().removePreferenceChangeListener(preferencesListener); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ee8d14907e1e77c4d065379865d4c3cfe3696bf1/ScopedPreferenceStore.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/preferences/ScopedPreferenceStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3723, 12, 907, 20930, 871, 13, 288, 9506, 202, 430, 261, 2159, 16185, 18, 14963, 12, 2575, 18, 588, 1763, 7675, 529, 1435, 3719, 6862, 202, 588, 2257, 12377, 7675, 4479, 9624, 15744, 12, 23219, 2223, 1769, 1082, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1875, 202, 482, 918, 3723, 12, 907, 20930, 871, 13, 288, 9506, 202, 430, 261, 2159, 16185, 18, 14963, 12, 2575, 18, 588, 1763, 7675, 529, 1435, 3719, 6862, 202, 588, 2257, 12377, 7675, 4479, 9624, 15744, 12, 23219, 2223, 1769, 1082, 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 ]
final CompilationUnit unit = processorEnv.getAstCompilationUnit(file); assert unit != null : "cannot locate compilation unit for " + file.getName(); final IProblem[] problems = unit.getProblems();
final CompilationUnit domUnit = processorEnv.getAstCompilationUnit(file); assert domUnit != null : "cannot locate compilation unit for " + file.getName(); final IProblem[] problems = domUnit.getProblems();
private static void addFileWithMissingTypeError( final IFile file, final List<IFile> filesWithMissingType, final List<char[]> sourceForFilesWithMissingType, final ProcessorEnvImpl processorEnv) { if( processorEnv.getPhase() != Phase.BUILD ) return; final CompilationUnit unit = processorEnv.getAstCompilationUnit(file); assert unit != null : "cannot locate compilation unit for " + file.getName(); //$NON-NLS-1$ final IProblem[] problems = unit.getProblems(); if(problems == null) return; for( IProblem problem : problems ){ if( problem.getID() == IProblem.UndefinedType ){ filesWithMissingType.add(file); final char[] src = processorEnv.getSourceForFile(file); assert src != null : "cannot locate source for file " + file.getName(); //$NON-NLS-1$ sourceForFilesWithMissingType.add(src); } } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/dbb59802bd05ea277b4706afb85d6b75d5bdff2a/APTDispatchRunnable.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/APTDispatchRunnable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 18671, 1190, 4841, 19030, 12, 1082, 202, 6385, 467, 812, 585, 16, 1875, 202, 6385, 987, 32, 45, 812, 34, 1390, 1190, 4841, 559, 16, 1082, 202, 6385, 987, 32, 3001, 8526, 34, 1084, 1290, 2697, 1190, 4841, 559, 16, 1082, 202, 6385, 15476, 3491, 2828, 6659, 3491, 13, 202, 95, 202, 202, 430, 12, 6659, 3491, 18, 588, 11406, 1435, 480, 19459, 18, 20215, 262, 1082, 202, 2463, 31, 202, 202, 6385, 22416, 2802, 2836, 273, 6659, 3491, 18, 588, 21385, 19184, 2802, 12, 768, 1769, 202, 202, 11231, 2836, 480, 446, 294, 315, 12892, 10627, 8916, 2836, 364, 315, 397, 585, 18, 17994, 5621, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 6385, 467, 13719, 8526, 9688, 273, 2836, 18, 588, 626, 19122, 5621, 202, 202, 430, 12, 29812, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 1884, 12, 467, 13719, 6199, 294, 9688, 262, 95, 1082, 202, 430, 12, 6199, 18, 588, 734, 1435, 422, 467, 13719, 18, 10317, 559, 262, 95, 6862, 25083, 202, 2354, 1190, 4841, 559, 18, 1289, 12, 768, 1769, 9506, 202, 6385, 1149, 8526, 1705, 273, 6659, 3491, 18, 588, 1830, 1290, 812, 12, 768, 1769, 9506, 202, 11231, 1705, 480, 446, 294, 315, 12892, 10627, 1084, 364, 585, 315, 397, 585, 18, 17994, 5621, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 3168, 1290, 2697, 1190, 4841, 559, 18, 1289, 12, 4816, 1769, 1082, 202, 97, 202, 202, 97, 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, 760, 918, 18671, 1190, 4841, 19030, 12, 1082, 202, 6385, 467, 812, 585, 16, 1875, 202, 6385, 987, 32, 45, 812, 34, 1390, 1190, 4841, 559, 16, 1082, 202, 6385, 987, 32, 3001, 8526, 34, 1084, 1290, 2697, 1190, 4841, 559, 16, 1082, 202, 6385, 15476, 3491, 2828, 6659, 3491, 13, 202, 95, 202, 202, 430, 12, 6659, 3491, 18, 588, 11406, 1435, 480, 19459, 18, 20215, 262, 1082, 202, 2463, 31, 202, 202, 6385, 22416, 2802, 2836, 273, 6659, 3491, 18, 588, 21385, 19184, 2802, 12, 768, 1769, 202, 202, 11231, 2836, 480, 446, 294, 315, 12892, 10627, 8916, 2836, 364, 315, 397, 585, 18, 17994, 5621, 4329, 3993, 17, 5106, 17, 21, 8, 202, 2 ]
public String normalizeByOid( String oid, String value ) throws NamingException { AttributeType type = registry.lookup( oid ); return ( String ) type.getEquality().getNormalizer().normalize( value ); }
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/32497190bb2c84cb6794fae32fb09de7e56fd94e/NormalizationService.java/buggy/core/src/main/java/org/apache/ldap/server/normalization/NormalizationService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 12237, 858, 19105, 12, 780, 839, 16, 780, 1132, 13, 15069, 24102, 503, 95, 1499, 18488, 5872, 33, 9893, 18, 8664, 12, 839, 1769, 2463, 12, 780, 13, 723, 18, 588, 20273, 7675, 588, 16132, 7675, 12237, 12, 1132, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 12237, 858, 19105, 12, 780, 839, 16, 780, 1132, 13, 15069, 24102, 503, 95, 1499, 18488, 5872, 33, 9893, 18, 8664, 12, 839, 1769, 2463, 12, 780, 13, 723, 18, 588, 20273, 7675, 588, 16132, 7675, 12237, 12, 1132, 1769, 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 ]
return "__s" + num;
return "__s" + prefix + num;
public static String varName(int num) { return "__s" + num; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/7d2d49c128479ce10bed9c5265d0f02658fd6d41/TempVarGen.java/clean/streams/src/streamit/frontend/nodes/TempVarGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 13722, 12, 474, 818, 13, 565, 288, 3639, 327, 10425, 87, 6, 397, 1633, 397, 818, 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, 1071, 760, 514, 13722, 12, 474, 818, 13, 565, 288, 3639, 327, 10425, 87, 6, 397, 1633, 397, 818, 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 ]
public String getCommandNonAdhoc(PrefabGraphType type, GraphResourceType resourceType, HttpServletRequest request, HttpServletResponse response) throws ServletException { String report = request.getParameter("report"); String[] rrds = request.getParameterValues("rrd"); String propertiesFile = request.getParameter("props"); String start = request.getParameter("start"); String end = request.getParameter("end");// if (report == null || rrds == null || start == null || end == null// || resourceTypeName == null) {// return null;// } String[] requiredParameters = { "report", "rrd", "props", "start", "end", }; if (report == null) { throw new MissingParameterException("report", requiredParameters); } if (rrds == null) { throw new MissingParameterException("rrd", requiredParameters); } if (start == null) { throw new MissingParameterException("start", requiredParameters); } if (end == null) { throw new MissingParameterException("end", requiredParameters); } for (int i = 0; i < rrds.length; i++) { if (!RrdFileConstants.isValidRRDName(rrds[i])) { log("Illegal RRD filename: " + rrds[i]); throw new IllegalArgumentException("Illegal RRD filename: " + rrds[i]); } } return createPrefabCommand(request, resourceType, type.getReportMap(), type.getCommandPrefix(), type.getRrdDirectory(), report, rrds, propertiesFile, start, end); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/729bdfaf2b755461a4892c88e10f3288db9650a6/RRDGraphServlet.java/buggy/opennms-webapp/src/main/java/org/opennms/web/graph/RRDGraphServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 12856, 3989, 1871, 76, 504, 12, 23218, 378, 4137, 559, 618, 16, 225, 5601, 15631, 14110, 16, 225, 9984, 590, 16, 225, 12446, 766, 13, 565, 1216, 16517, 288, 282, 514, 2605, 273, 590, 18, 588, 1662, 2932, 6006, 8863, 282, 514, 8526, 8354, 2377, 273, 590, 18, 588, 1662, 1972, 2932, 523, 72, 8863, 282, 514, 1790, 812, 273, 590, 18, 588, 1662, 2932, 9693, 8863, 282, 514, 787, 273, 590, 18, 588, 1662, 2932, 1937, 8863, 282, 514, 679, 273, 590, 18, 588, 1662, 2932, 409, 8863, 759, 282, 309, 261, 6006, 422, 446, 747, 8354, 2377, 422, 446, 747, 787, 422, 446, 747, 679, 422, 446, 759, 747, 1058, 7947, 422, 446, 13, 288, 759, 225, 327, 446, 31, 759, 282, 289, 514, 8526, 1931, 2402, 273, 288, 315, 6006, 3113, 315, 523, 72, 3113, 315, 9693, 3113, 315, 1937, 3113, 315, 409, 3113, 282, 289, 31, 309, 261, 6006, 422, 446, 13, 288, 225, 604, 394, 10230, 14819, 2932, 6006, 3113, 282, 1931, 2402, 1769, 282, 289, 282, 309, 261, 523, 2377, 422, 446, 13, 288, 225, 604, 394, 10230, 14819, 2932, 523, 72, 3113, 282, 1931, 2402, 1769, 282, 289, 282, 309, 261, 1937, 422, 446, 13, 288, 225, 604, 394, 10230, 14819, 2932, 1937, 3113, 282, 1931, 2402, 1769, 282, 289, 282, 309, 261, 409, 422, 446, 13, 288, 225, 604, 394, 10230, 14819, 2932, 409, 3113, 282, 1931, 2402, 1769, 282, 289, 364, 261, 474, 277, 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, 377, 1071, 514, 12856, 3989, 1871, 76, 504, 12, 23218, 378, 4137, 559, 618, 16, 225, 5601, 15631, 14110, 16, 225, 9984, 590, 16, 225, 12446, 766, 13, 565, 1216, 16517, 288, 282, 514, 2605, 273, 590, 18, 588, 1662, 2932, 6006, 8863, 282, 514, 8526, 8354, 2377, 273, 590, 18, 588, 1662, 1972, 2932, 523, 72, 8863, 282, 514, 1790, 812, 273, 590, 18, 588, 1662, 2932, 9693, 8863, 282, 514, 787, 273, 590, 18, 588, 1662, 2932, 1937, 8863, 282, 514, 679, 273, 590, 18, 588, 1662, 2932, 409, 8863, 759, 282, 309, 261, 6006, 422, 446, 747, 8354, 2377, 422, 446, 747, 787, 422, 446, 747, 679, 422, 446, 759, 747, 1058, 7947, 422, 446, 13, 2 ]
node = node.getNextSibling();
String type = null; if (isType(TYPE, node)) { type = typeName(node); node = node.getNextSibling(); }
protected Parameter parameter(AST paramNode) { List annotations = new ArrayList(); AST node = paramNode.getFirstChild(); int modifiers = 0; if (isType(MODIFIERS, node)) { modifiers = modifiers(node, annotations, modifiers); node = node.getNextSibling(); } assertNodeType(TYPE, node); String type = typeName(node); node = node.getNextSibling(); String name = identifier(node); Expression defaultValue = null; node = node.getNextSibling(); if (node != null) { defaultValue = expression(node); } Parameter parameter = new Parameter(type, name, defaultValue); // TODO //configureAST(parameter,paramNode); //parameter.addAnnotations(annotations); return parameter; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27ca66a55dec7811f36d95ccfb985a5840b4f422/AntlrParserPlugin.java/buggy/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 5498, 1569, 12, 9053, 579, 907, 13, 288, 3639, 987, 5617, 273, 394, 2407, 5621, 3639, 9183, 756, 273, 579, 907, 18, 588, 3759, 1763, 5621, 3639, 509, 10429, 273, 374, 31, 3639, 309, 261, 291, 559, 12, 6720, 10591, 55, 16, 756, 3719, 288, 5411, 10429, 273, 10429, 12, 2159, 16, 5617, 16, 10429, 1769, 5411, 514, 618, 273, 446, 31, 309, 261, 291, 559, 12, 2399, 16, 756, 3719, 288, 618, 273, 8173, 12, 2159, 1769, 756, 273, 756, 18, 588, 2134, 10291, 5621, 289, 3639, 289, 3639, 1815, 15101, 12, 2399, 16, 756, 1769, 3639, 514, 618, 273, 8173, 12, 2159, 1769, 3639, 514, 618, 273, 446, 31, 309, 261, 291, 559, 12, 2399, 16, 756, 3719, 288, 618, 273, 8173, 12, 2159, 1769, 756, 273, 756, 18, 588, 2134, 10291, 5621, 289, 3639, 514, 508, 273, 2756, 12, 2159, 1769, 3639, 5371, 4593, 273, 446, 31, 3639, 514, 618, 273, 446, 31, 309, 261, 291, 559, 12, 2399, 16, 756, 3719, 288, 618, 273, 8173, 12, 2159, 1769, 756, 273, 756, 18, 588, 2134, 10291, 5621, 289, 3639, 309, 261, 2159, 480, 446, 13, 288, 5411, 4593, 273, 2652, 12, 2159, 1769, 3639, 289, 3639, 5498, 1569, 273, 394, 5498, 12, 723, 16, 508, 16, 4593, 1769, 3639, 368, 2660, 3639, 368, 14895, 9053, 12, 6775, 16, 891, 907, 1769, 3639, 368, 6775, 18, 1289, 5655, 12, 14670, 1769, 3639, 327, 1569, 31, 565, 289, 2, 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, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 5498, 1569, 12, 9053, 579, 907, 13, 288, 3639, 987, 5617, 273, 394, 2407, 5621, 3639, 9183, 756, 273, 579, 907, 18, 588, 3759, 1763, 5621, 3639, 509, 10429, 273, 374, 31, 3639, 309, 261, 291, 559, 12, 6720, 10591, 55, 16, 756, 3719, 288, 5411, 10429, 273, 10429, 12, 2159, 16, 5617, 16, 10429, 1769, 5411, 514, 618, 273, 446, 31, 309, 261, 291, 559, 12, 2399, 16, 756, 3719, 288, 618, 273, 8173, 12, 2159, 1769, 756, 273, 756, 18, 588, 2134, 10291, 5621, 289, 3639, 289, 3639, 1815, 15101, 12, 2399, 16, 756, 1769, 3639, 514, 618, 273, 8173, 12, 2159, 1769, 3639, 514, 618, 273, 446, 31, 309, 261, 291, 559, 12, 2399, 2 ]
CommandStack cs = getViewer().getEditDomain().getCommandStack();
protected void handleDrop() { updateTargetRequest(); updateTargetEditPart(); if (getTargetEditPart() != null) { Command command = getCommand(); if (command != null && command.canExecute()) { getViewer().getEditDomain().getCommandStack().execute(command); final Object model = getCreateRequest().getNewObject(); if ((model != null) && (model instanceof AbstractAsset) && !(model instanceof MetaNode)) { AssetConfigurationDialog dlg = new AssetConfigurationDialog(getViewer().getControl().getShell(), (AbstractAsset)model); CommandStack cs = getViewer().getEditDomain().getCommandStack(); if (dlg.open() == Dialog.CANCEL && cs.canUndo() && cs.getUndoCommand() == command) { cs.undo(); } } } else { getCurrentEvent().detail = DND.DROP_NONE; } } else { getCurrentEvent().detail = DND.DROP_NONE; } selectAddedObject(); }
9773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9773/3af303c8ac34b44ec7480c6cf1acf82d79db038e/KoboldTemplateTransferDropTargetListener.java/clean/kobold/src/kobold.client.plam/src/kobold/client/plam/editor/KoboldTemplateTransferDropTargetListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 7544, 1435, 565, 288, 377, 202, 2725, 2326, 691, 5621, 377, 202, 2725, 2326, 4666, 1988, 5621, 377, 202, 377, 202, 430, 261, 588, 2326, 4666, 1988, 1435, 480, 446, 13, 288, 377, 202, 202, 2189, 1296, 273, 12856, 5621, 377, 202, 202, 430, 261, 3076, 480, 446, 597, 1296, 18, 4169, 5289, 10756, 288, 377, 1082, 202, 588, 18415, 7675, 588, 4666, 3748, 7675, 588, 2189, 2624, 7675, 8837, 12, 3076, 1769, 377, 9506, 377, 1082, 202, 6385, 1033, 938, 273, 25667, 691, 7675, 588, 1908, 921, 5621, 377, 1082, 202, 430, 14015, 2284, 480, 446, 13, 597, 261, 2284, 1276, 4115, 6672, 13, 1377, 9506, 3639, 597, 401, 12, 2284, 1276, 6565, 907, 3719, 288, 377, 9506, 565, 10494, 1750, 6353, 25840, 273, 394, 10494, 1750, 6353, 12, 588, 18415, 7675, 588, 3367, 7675, 588, 13220, 9334, 261, 7469, 6672, 13, 2284, 1769, 377, 9506, 3639, 9506, 565, 309, 261, 5761, 75, 18, 3190, 1435, 422, 17242, 18, 25268, 597, 2873, 18, 4169, 31224, 1435, 377, 9506, 5411, 597, 2873, 18, 588, 31224, 2189, 1435, 422, 1296, 13, 288, 377, 9506, 3639, 2873, 18, 31226, 5621, 377, 9506, 565, 289, 377, 1082, 202, 97, 377, 202, 202, 97, 469, 288, 377, 1082, 202, 588, 3935, 1133, 7675, 8992, 273, 463, 2908, 18, 18768, 67, 9826, 31, 377, 202, 202, 97, 377, 202, 97, 469, 288, 377, 202, 202, 588, 3935, 1133, 7675, 8992, 273, 463, 2908, 18, 18768, 67, 9826, 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, 4750, 918, 1640, 7544, 1435, 565, 288, 377, 202, 2725, 2326, 691, 5621, 377, 202, 2725, 2326, 4666, 1988, 5621, 377, 202, 377, 202, 430, 261, 588, 2326, 4666, 1988, 1435, 480, 446, 13, 288, 377, 202, 202, 2189, 1296, 273, 12856, 5621, 377, 202, 202, 430, 261, 3076, 480, 446, 597, 1296, 18, 4169, 5289, 10756, 288, 377, 1082, 202, 588, 18415, 7675, 588, 4666, 3748, 7675, 588, 2189, 2624, 7675, 8837, 12, 3076, 1769, 377, 9506, 377, 1082, 202, 6385, 1033, 938, 273, 25667, 691, 7675, 588, 1908, 921, 5621, 377, 1082, 202, 430, 14015, 2284, 480, 446, 13, 597, 261, 2284, 1276, 4115, 6672, 13, 1377, 9506, 3639, 597, 401, 12, 2284, 1276, 6565, 907, 2 ]
uri = new URI(baseURI, uri).toString(); }
uri = new URI(uri).toString(); }
public String getBaseURI() { if (needsSyncData()) { synchronizeData(); } String baseURI = this.ownerNode.getBaseURI(); if (attributes != null) { Attr attrNode = (Attr)attributes.getNamedItem("xml:base"); if (attrNode != null) { String uri = attrNode.getNodeValue(); if (uri.length() != 0 ) {// attribute value is always empty string try { uri = new URI(baseURI, uri).toString(); } catch (org.apache.xerces.util.URI.MalformedURIException e){ // REVISIT: what should happen in this case? return null; } return uri; } } } return baseURI; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/826daae563a44d2b9c6c6b7d18904b390fd8fe0c/ElementImpl.java/clean/src/org/apache/xerces/dom/ElementImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8297, 3098, 1435, 288, 3639, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 3639, 514, 1026, 3098, 273, 333, 18, 8443, 907, 18, 588, 2171, 3098, 5621, 3639, 309, 261, 4350, 480, 446, 13, 288, 5411, 11289, 1604, 907, 273, 261, 3843, 13, 4350, 18, 588, 7604, 1180, 2932, 2902, 30, 1969, 8863, 5411, 309, 261, 1747, 907, 480, 446, 13, 288, 7734, 514, 2003, 273, 225, 1604, 907, 18, 588, 907, 620, 5621, 7734, 309, 261, 1650, 18, 2469, 1435, 480, 374, 262, 288, 759, 1566, 460, 353, 3712, 1008, 533, 10792, 775, 288, 15604, 2003, 273, 394, 3699, 12, 1969, 3098, 16, 2003, 2934, 10492, 5621, 8227, 289, 5397, 1044, 261, 3341, 18, 19211, 18, 92, 264, 764, 18, 1367, 18, 3098, 18, 18695, 3098, 503, 425, 15329, 13491, 368, 2438, 26780, 1285, 30, 4121, 1410, 5865, 316, 333, 648, 35, 13491, 327, 446, 31, 10792, 289, 10792, 327, 2003, 31, 7734, 289, 5411, 289, 3639, 289, 3639, 327, 1026, 3098, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 514, 8297, 3098, 1435, 288, 3639, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 3639, 514, 1026, 3098, 273, 333, 18, 8443, 907, 18, 588, 2171, 3098, 5621, 3639, 309, 261, 4350, 480, 446, 13, 288, 5411, 11289, 1604, 907, 273, 261, 3843, 13, 4350, 18, 588, 7604, 1180, 2932, 2902, 30, 1969, 8863, 5411, 309, 261, 1747, 907, 480, 446, 13, 288, 7734, 514, 2003, 273, 225, 1604, 907, 18, 588, 907, 620, 5621, 7734, 309, 261, 1650, 18, 2469, 1435, 480, 374, 262, 288, 759, 1566, 460, 353, 3712, 1008, 533, 10792, 775, 288, 15604, 2003, 273, 394, 3699, 12, 1969, 3098, 16, 2003, 2934, 10492, 5621, 8227, 289, 5397, 2 ]
sp.printHTML("Exception getting bids list: " +e+"<br>"); return ;
sp.printHTML("Exception getting bids list: " + e + "<br>"); return;
private void listBids(Integer itemId) { Enumeration bidList=null; ItemHome iHome; QueryHome qHome = null; Query q; BidHome bidHome; Bid bid; Item item; float price; String name; // Connecting to Query Home thru JNDI try { qHome = (QueryHome)PortableRemoteObject.narrow(initialContext.lookup("QueryHome"), QueryHome.class); } catch (Exception e) { sp.printHTML("Cannot lookup Query: " +e+"<br>"); return ; } // Get the list of the user's last bids try { q = qHome.create(); bidList = q.getItemBidHistory(itemId).elements(); } catch (Exception e) { sp.printHTML("Exception getting bids list: " +e+"<br>"); return ; } if ((bidList == null) || (!bidList.hasMoreElements())) { sp.printHTML("<h3>There is no bid corresponding to this item.</h3><br>"); return ; } // Lookup bid home interface try { bidHome = (BidHome)PortableRemoteObject.narrow(initialContext.lookup("BidHome"), BidHome.class); } catch (Exception e) { sp.printHTML("Cannot lookup Bid: " +e+"<br>"); return ; } sp.printBidHistoryHeader(); while (bidList.hasMoreElements()) { // Get the bids try { bid = bidHome.findByPrimaryKey((BidPK)bidList.nextElement()); } catch (Exception e) { sp.printHTML("Exception getting bid: " + e +"<br>"); sp.printHTMLfooter(); return; } sp.printBidHistory(bid); } sp.printBidHistoryFooter(); }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/ViewBidHistory.java/clean/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/ViewBidHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 666, 38, 2232, 12, 4522, 18424, 13, 282, 288, 565, 13864, 9949, 682, 33, 2011, 31, 565, 4342, 8684, 277, 8684, 31, 565, 2770, 8684, 282, 1043, 8684, 273, 446, 31, 565, 2770, 4202, 1043, 31, 565, 605, 350, 8684, 9949, 8684, 31, 565, 605, 350, 9949, 31, 565, 4342, 761, 31, 565, 1431, 6205, 31, 565, 514, 508, 31, 565, 368, 8289, 310, 358, 2770, 21321, 286, 8653, 804, 24513, 565, 775, 377, 288, 1377, 1043, 8684, 273, 261, 1138, 8684, 13, 2617, 429, 5169, 921, 18, 82, 7815, 12, 6769, 1042, 18, 8664, 2932, 1138, 8684, 6, 3631, 4766, 5397, 2770, 8684, 18, 1106, 1769, 565, 289, 377, 1044, 261, 503, 425, 13, 565, 288, 1377, 1694, 18, 1188, 4870, 2932, 4515, 3689, 2770, 30, 315, 397, 73, 9078, 32, 2848, 2984, 1769, 1377, 327, 274, 565, 289, 565, 368, 968, 326, 666, 434, 326, 729, 1807, 1142, 30534, 565, 775, 377, 288, 1377, 1043, 273, 1043, 8684, 18, 2640, 5621, 1377, 9949, 682, 273, 1043, 18, 588, 1180, 17763, 5623, 12, 1726, 548, 2934, 6274, 5621, 565, 289, 565, 1044, 261, 503, 425, 13, 565, 288, 1377, 1694, 18, 1188, 4870, 2932, 503, 8742, 30534, 666, 30, 315, 397, 73, 9078, 32, 2848, 2984, 1769, 1377, 327, 274, 565, 289, 565, 309, 14015, 19773, 682, 422, 446, 13, 747, 16051, 19773, 682, 18, 5332, 7417, 3471, 1435, 3719, 565, 288, 1377, 1694, 18, 1188, 4870, 2932, 32, 76, 23, 34, 9828, 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, 666, 38, 2232, 12, 4522, 18424, 13, 282, 288, 565, 13864, 9949, 682, 33, 2011, 31, 565, 4342, 8684, 277, 8684, 31, 565, 2770, 8684, 282, 1043, 8684, 273, 446, 31, 565, 2770, 4202, 1043, 31, 565, 605, 350, 8684, 9949, 8684, 31, 565, 605, 350, 9949, 31, 565, 4342, 761, 31, 565, 1431, 6205, 31, 565, 514, 508, 31, 565, 368, 8289, 310, 358, 2770, 21321, 286, 8653, 804, 24513, 565, 775, 377, 288, 1377, 1043, 8684, 273, 261, 1138, 8684, 13, 2617, 429, 5169, 921, 18, 82, 7815, 12, 6769, 1042, 18, 8664, 2932, 1138, 8684, 6, 3631, 4766, 5397, 2770, 8684, 18, 1106, 1769, 565, 289, 377, 1044, 261, 503, 425, 13, 565, 2 ]
if (nextLine.contains("]]>") && !nextLine.contains("<![CDATA")) { endOfCode = line.lastIndexOf("]]>"); logger.log(Level.FINE, "CDATA section complete at index: " + endOfCode); break;
cdataEnd = nextLine.lastIndexOf("]]>"); if (isInCDataSection && cdataEnd != -1) { cdataStart = nextLine.lastIndexOf("<![CDATA"); isInCDataSection = !(cdataEnd > cdataStart); } else if (!isInCDataSection) { cdataStart = nextLine.lastIndexOf("<![CDATA"); isInCDataSection = (cdataStart > cdataEnd);
public final WellFormedEventPacket read() throws EventReaderException { logger.entering(this.getClass().getName(), "read"); WellFormedEventPacket eventPacket = null; boolean cdatafragment = false; int lineNumber = 0; String line = null; String code = null; try { line = this.reader.readLine(); if (line == null) { logger.log(Level.INFO, "The read line is null. Assuming end of file."); if (this.sendEndEvent) { String eventStr = "<microActivity><system><type>termination</type></system></microActivity>"; eventPacket = ECGWriter.createValidEventPacket("msdt.system.xsd", this.dateOfLastEvent, eventStr); this.sendEndEvent = false; } else { this.module.deactivate(); } logger.exiting(this.getClass().getName(), "read", null); return eventPacket; } if (line.contains("<![CDATA") && !line.contains("]]>")) { cdatafragment = true; int beginOfCode = line.indexOf("<![CDATA"); logger.log(Level.FINE, "Begin of a CDATA section at index: " + beginOfCode); int endOfCode = 0; String nextLine; while ((nextLine = this.reader.readLine()) != null && this.run) { line += NEW_LINE_CHAR + nextLine; lineNumber++; // There may be many consequtive CDATA sections if (nextLine.contains("]]>") && !nextLine.contains("<![CDATA")) { endOfCode = line.lastIndexOf("]]>"); logger.log(Level.FINE, "CDATA section complete at index: " + endOfCode); break; } } if (endOfCode <= beginOfCode) { logger.log(Level.WARNING, "Error while reading line " + lineNumber + ":"); logger.log(Level.WARNING, "This line does not contain a valid CDATA section."); cdatafragment = false; return null; } code = line.substring(beginOfCode, endOfCode); String preCode = line.substring(0, beginOfCode); String postCode = line.substring(endOfCode, line.length()); line = preCode + CODE_REPLACEMENT + postCode; } int timeIndex = line.indexOf('#'); int datatypeIndex = line.indexOf('#', timeIndex+1); // Get the timestamp String. String timeStampString = line.substring(0, timeIndex); // Check if the timestamp String is well formed. if (timeStampString == null || timeStampString.equals("")) { logger .log(Level.WARNING, "Error while reading timeStamp in line " + lineNumber + ":"); logger.log(Level.WARNING, "The timeStamp is empty."); return null; } // Get the SensorDataType String. String sensorDataTypeString = line.substring(timeIndex+1, datatypeIndex); // Check if the SensorDataType String is well formed. if (sensorDataTypeString == null || sensorDataTypeString.equals("")) { logger.log(Level.WARNING, "Error while reading SensorDataType in line " + lineNumber + ":"); logger.log(Level.WARNING, "The SensorDataType is empty."); return null; } // Get the argList String. String argListString = line.substring(datatypeIndex+1); // Check if the argList String is well formed. if (argListString == null || argListString.equals("")) { logger.log(Level.WARNING, "Error while reading argList in line " + lineNumber + ":"); logger.log(Level.WARNING, "The argList is empty."); return null; } // Try to parse the timestamp String into a Date object. Date timeStamp = null; try { timeStamp = new SimpleDateFormat( WellFormedEventPacket.DATE_FORMAT_PATTERN) .parse(timeStampString); } catch (ParseException e) { logger .log(Level.WARNING, "Error while reading timeStamp in line " + lineNumber + ":"); logger.log(Level.WARNING, "The timeStamp is invalid."); logger.log(Level.WARNING, e.getMessage()); return null; } String[] argListStringArray = new String[3]; int firstSemi = argListString.indexOf(';'); int secondSemi = argListString.indexOf(';', firstSemi+1); int thirdSemi = argListString.indexOf(';', secondSemi+1); // ignore first (argListString.substring(0, firstSemi)); argListStringArray[0] = argListString.substring(firstSemi+1, secondSemi); argListStringArray[1] = argListString.substring(secondSemi+1, thirdSemi); argListStringArray[2] = argListString.substring(thirdSemi+1); if (cdatafragment) { if (code == null || code.equals("")) { logger.log(Level.WARNING, "Error while reading line " + lineNumber + ":"); logger.log(Level.WARNING, "This line does not contain a valid CDATA section replacement."); cdatafragment = false; return null; } String withCodeReplacement = argListStringArray[argListStringArray.length - 1]; if (!withCodeReplacement.contains(CODE_REPLACEMENT)) { logger.log(Level.WARNING, "Error while reading line " + lineNumber + ":"); logger.log(Level.WARNING, "This line does not contain a valid CDATA section replacement."); cdatafragment = false; return null; } String withCode = withCodeReplacement.replace(CODE_REPLACEMENT, code); argListStringArray[argListStringArray.length - 1] = withCode; } // Create a List object from the Array now containing the // argList String entries. List argList = Arrays.asList(argListStringArray); // Try to create an EventPacket object from the line's data. try { eventPacket = new WellFormedEventPacket(timeStamp, sensorDataTypeString, argList); } catch (IllegalEventParameterException e) { logger.log(Level.WARNING, "Error while generating event from line " + lineNumber + ":"); logger.log(Level.WARNING, e.getMessage()); return null; } if (this.mode != ReadMode.BURST) { logger.log(Level.FINER, "Process real time mode."); // If this was the first line, then no previous // timestamp // has been stored. if (this.dateOfLastEvent != null) { // Get the time delta of the last event and // the current // event. long eventDelta = eventPacket.getTimeStamp().getTime() - this.dateOfLastEvent.getTime(); logger.log(Level.FINER, " event delta: " + eventDelta); // Get the current Date Date currentDate = new Date(); // Get the delta of the time when the last // event was // parsed and now long realDelta = currentDate.getTime() - this.relativeDate.getTime(); logger.log(Level.FINER, " real Delta " + realDelta); // Get the delta in real realtime and compare // it to the // event time delta. while (realDelta < eventDelta && this.mode != ReadMode.BURST && this.run) { logger.log(Level.FINER, " Need to wait"); try { // Wait some time and retry until the // time has // ellapsed. Thread.sleep(TIME_SPAN); logger.log(Level.FINER, " Waiting finished"); currentDate = new Date(); realDelta = currentDate.getTime() - this.relativeDate.getTime(); logger.log(Level.FINER, " new real Delta " + realDelta); } catch (InterruptedException e) { // No problem if and interruption // occures... } } logger.log(Level.FINER, " Do not need to wait"); } } else { logger.log(Level.FINER, "Process burst mode."); } // Store the timestamp of the current event for the // next loop. this.dateOfLastEvent = eventPacket.getTimeStamp(); // Store the timestamp for the next loop. this.relativeDate = new Date(); } catch (IOException e) { throw new EventReaderException(e.getMessage()); } return eventPacket; }
239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/239/3dc41d385ad82ef12b7f9a52471724a156b94983/FileReaderThread.java/buggy/modules/ECG_FileSystemSourceModule/src/org/electrocodeogram/module/source/implementation/FileReaderThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 678, 1165, 1204, 329, 1133, 6667, 855, 1435, 1216, 2587, 2514, 503, 288, 3639, 1194, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 896, 8863, 3639, 678, 1165, 1204, 329, 1133, 6667, 871, 6667, 273, 446, 31, 3639, 1250, 20712, 11956, 273, 629, 31, 3639, 509, 13629, 273, 374, 31, 3639, 514, 980, 273, 446, 31, 3639, 514, 981, 273, 446, 31, 3639, 775, 288, 5411, 980, 273, 333, 18, 10530, 18, 896, 1670, 5621, 5411, 309, 261, 1369, 422, 446, 13, 288, 7734, 1194, 18, 1330, 12, 2355, 18, 5923, 16, 10792, 315, 1986, 855, 980, 353, 446, 18, 4725, 21249, 679, 434, 585, 1199, 1769, 27573, 309, 261, 2211, 18, 4661, 1638, 1133, 13, 288, 10792, 514, 871, 1585, 273, 3532, 14458, 6193, 4438, 4299, 4438, 723, 34, 9505, 367, 1757, 723, 4695, 4299, 4695, 14458, 6193, 2984, 31, 10792, 871, 6667, 273, 7773, 43, 2289, 18, 2640, 1556, 1133, 6667, 2932, 959, 7510, 18, 4299, 18, 19144, 3113, 333, 18, 712, 951, 3024, 1133, 16, 871, 1585, 1769, 10792, 333, 18, 4661, 1638, 1133, 273, 629, 31, 7734, 289, 469, 288, 10792, 333, 18, 2978, 18, 323, 10014, 5621, 7734, 289, 7734, 1194, 18, 8593, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 896, 3113, 446, 1769, 7734, 327, 871, 6667, 31, 5411, 289, 5411, 309, 261, 1369, 18, 12298, 2932, 5586, 63, 18375, 7923, 597, 401, 1369, 18, 12298, 2932, 13563, 2984, 3719, 288, 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, 727, 678, 1165, 1204, 329, 1133, 6667, 855, 1435, 1216, 2587, 2514, 503, 288, 3639, 1194, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 896, 8863, 3639, 678, 1165, 1204, 329, 1133, 6667, 871, 6667, 273, 446, 31, 3639, 1250, 20712, 11956, 273, 629, 31, 3639, 509, 13629, 273, 374, 31, 3639, 514, 980, 273, 446, 31, 3639, 514, 981, 273, 446, 31, 3639, 775, 288, 5411, 980, 273, 333, 18, 10530, 18, 896, 1670, 5621, 5411, 309, 261, 1369, 422, 446, 13, 288, 7734, 1194, 18, 1330, 12, 2355, 18, 5923, 16, 10792, 315, 1986, 855, 980, 353, 446, 18, 4725, 21249, 679, 434, 585, 1199, 1769, 27573, 309, 261, 2211, 18, 2 ]
new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 5, input);
new NoViableAltException("353:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 5, input);
public QueryDescr query() throws RecognitionException { QueryDescr query; Token loc=null; String queryName = null; query = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:338:17: ( opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:338:17: opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol { following.push(FOLLOW_opt_eol_in_query473); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,26,FOLLOW_26_in_query479); following.push(FOLLOW_word_in_query483); queryName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_query485); opt_eol(); following.pop(); query = new QueryDescr( queryName, null ); query.setLocation( loc.getLine(), loc.getCharPositionInLine() ); AndDescr lhs = new AndDescr(); query.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt15=2; switch ( input.LA(1) ) { case 21: int LA15_1 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 1, input); throw nvae; } break; case EOL: int LA15_2 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 2, input); throw nvae; } break; case 27: int LA15_3 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 3, input); throw nvae; } break; case 54: int LA15_4 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 4, input); throw nvae; } break; case 55: int LA15_5 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 5, input); throw nvae; } break; case 56: int LA15_6 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 6, input); throw nvae; } break; case ID: int LA15_7 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 7, input); throw nvae; } break; case 15: int LA15_8 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 8, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 57: alt15=1; break; default: NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 0, input); throw nvae; } switch (alt15) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:347:25: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "query", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_query501); expander_lhs_block(lhs); following.pop(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:348:27: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_query509); normal_lhs_block(lhs); following.pop(); } break; } match(input,27,FOLLOW_27_in_query524); following.push(FOLLOW_opt_eol_in_query526); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return query; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2770, 16198, 843, 1435, 1216, 9539, 288, 6647, 2770, 16198, 843, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 843, 461, 273, 446, 31, 540, 202, 202, 2271, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 3707, 28, 30, 4033, 30, 261, 2153, 67, 30951, 1515, 33, 296, 2271, 11, 843, 461, 33, 2076, 2153, 67, 30951, 20316, 4542, 264, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 571, 2212, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 262, 296, 409, 11, 2153, 67, 30951, 262, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 3707, 28, 30, 4033, 30, 2153, 67, 30951, 1515, 33, 296, 2271, 11, 843, 461, 33, 2076, 2153, 67, 30951, 20316, 4542, 264, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 571, 2212, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 262, 296, 409, 11, 2153, 67, 30951, 5411, 288, 5411, 3751, 18, 6206, 12, 29890, 67, 3838, 67, 30951, 67, 267, 67, 2271, 24, 9036, 1769, 5411, 2153, 67, 30951, 5621, 5411, 3751, 18, 5120, 5621, 5411, 1515, 28657, 1345, 13, 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, 2770, 16198, 843, 1435, 1216, 9539, 288, 6647, 2770, 16198, 843, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 843, 461, 273, 446, 31, 540, 202, 202, 2271, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 3707, 28, 30, 4033, 30, 261, 2153, 67, 30951, 1515, 33, 296, 2271, 11, 843, 461, 33, 2076, 2153, 67, 30951, 20316, 4542, 264, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 571, 2212, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 2 ]
for ( int i = 0 ; i < length ; ++i ) {
for (int i = 0; i < length; ++i) {
protected void printEscaped( String source ) throws IOException { int length = source.length(); for ( int i = 0 ; i < length ; ++i ) { int ch = source.charAt(i); if (!XMLChar.isValid(ch)) { if (++i <length) { surrogates(ch, source.charAt(i)); } else { fatalError("The character '"+(char)ch+"' is an invalid XML character"); } continue; } printXMLChar(ch, false); } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/54f4239946b55ff27db7627ac6740aff4949f966/XMLSerializer.java/clean/src/org/apache/xml/serialize/XMLSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1172, 17208, 12, 514, 1084, 262, 1216, 1860, 288, 3639, 509, 769, 273, 1084, 18, 2469, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 965, 77, 13, 288, 5411, 509, 462, 273, 1084, 18, 3001, 861, 12, 77, 1769, 5411, 309, 16051, 4201, 2156, 18, 26810, 12, 343, 3719, 288, 7734, 309, 261, 9904, 77, 411, 2469, 13, 288, 10792, 5056, 303, 28139, 12, 343, 16, 1084, 18, 3001, 861, 12, 77, 10019, 7734, 289, 469, 288, 10792, 10081, 668, 2932, 1986, 3351, 2119, 15, 12, 3001, 13, 343, 15, 5187, 353, 392, 2057, 3167, 3351, 8863, 1171, 289, 7734, 1324, 31, 5411, 289, 5411, 1172, 4201, 2156, 12, 343, 16, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1172, 17208, 12, 514, 1084, 262, 1216, 1860, 288, 3639, 509, 769, 273, 1084, 18, 2469, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 965, 77, 13, 288, 5411, 509, 462, 273, 1084, 18, 3001, 861, 12, 77, 1769, 5411, 309, 16051, 4201, 2156, 18, 26810, 12, 343, 3719, 288, 7734, 309, 261, 9904, 77, 411, 2469, 13, 288, 10792, 5056, 303, 28139, 12, 343, 16, 1084, 18, 3001, 861, 12, 77, 10019, 7734, 289, 469, 288, 10792, 10081, 668, 2932, 1986, 3351, 2119, 15, 12, 3001, 13, 343, 15, 5187, 353, 392, 2057, 3167, 3351, 8863, 1171, 289, 7734, 1324, 31, 5411, 289, 5411, 1172, 4201, 2156, 12, 343, 16, 2 ]
private IProgressMonitor getUIProgressMonitor(final String jobName) { return new IProgressMonitor() { IProgressMonitor internalMonitor; /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#beginTask(java.lang.String, * int) */ public void beginTask(String name, int totalWork) { if (name == null || name.length() == 0) getInternalMonitor().beginTask(jobName, totalWork); else getInternalMonitor().beginTask(name, totalWork); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#done() */ public void done() { getInternalMonitor().done(); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#internalWorked(double) */ public void internalWorked(double work) { getInternalMonitor().internalWorked(work); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#isCanceled() */ public boolean isCanceled() { return getInternalMonitor().isCanceled(); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#setCanceled(boolean) */ public void setCanceled(boolean value) { getInternalMonitor().setCanceled(value); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#setTaskName(java.lang.String) */ public void setTaskName(String name) { getInternalMonitor().setTaskName(name); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#subTask(java.lang.String) */ public void subTask(String name) { getInternalMonitor().subTask(name); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#worked(int) */ public void worked(int work) { getInternalMonitor().worked(work); } /** * Get the monitor that is being wrapped. This is called lazily as * we will not be able to get the monitor for the workbench outside * of the UI Thread and so we will have to wait until the monitor * is accessed. * * Return a NullProgressMonitor if the one from the workbench * cannot be found. * * @return IProgressMonitor */ private IProgressMonitor getInternalMonitor() { if (internalMonitor == null) { IStatusLineManager manager = getStatusLineManager(); if (manager == null) internalMonitor = new NullProgressMonitor(); else internalMonitor = manager.getProgressMonitor(); } return internalMonitor; } }; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dbe27565dfaf5a01ee200188f00a3b4c6b654ea2/WorkbenchMonitorProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/WorkbenchMonitorProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 45, 5491, 7187, 588, 5370, 5491, 7187, 12, 6385, 780, 4688, 461, 15329, 202, 202, 2463, 2704, 45, 5491, 7187, 1435, 95, 1082, 202, 45, 5491, 7187, 7236, 7187, 31, 1082, 202, 20308, 1082, 202, 21556, 5836, 17, 24060, 13, 36, 5946, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 7, 10086, 2174, 12, 6290, 18, 4936, 18, 780, 16, 1082, 202, 14, 474, 13, 1082, 202, 5549, 1082, 202, 482, 6459, 10086, 2174, 12, 780, 529, 16, 474, 4963, 2421, 15329, 9506, 202, 430, 12, 529, 631, 2011, 20081, 529, 18, 2469, 1435, 631, 20, 13, 6862, 202, 588, 3061, 7187, 7675, 10086, 2174, 12, 4688, 461, 16, 4963, 2421, 1769, 9506, 202, 12107, 6862, 202, 588, 3061, 7187, 7675, 10086, 2174, 12, 529, 16, 4963, 2421, 1769, 1082, 202, 97, 1082, 202, 20308, 1082, 202, 21556, 5836, 17, 24060, 13, 36, 5946, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 7, 8734, 1435, 1082, 202, 5549, 1082, 202, 482, 6459, 8734, 1435, 95, 9506, 202, 588, 3061, 7187, 7675, 8734, 5621, 1082, 202, 97, 1082, 202, 20308, 1082, 202, 21556, 5836, 17, 24060, 13, 36, 5946, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 7, 7236, 2421, 329, 12, 9056, 13, 1082, 202, 5549, 1082, 202, 482, 6459, 7236, 2421, 329, 12, 9056, 1252, 15329, 9506, 202, 588, 3061, 7187, 7675, 7236, 2421, 329, 12, 1252, 1769, 1082, 202, 97, 1082, 202, 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, 225, 202, 1152, 45, 5491, 7187, 588, 5370, 5491, 7187, 12, 6385, 780, 4688, 461, 15329, 202, 202, 2463, 2704, 45, 5491, 7187, 1435, 95, 1082, 202, 45, 5491, 7187, 7236, 7187, 31, 1082, 202, 20308, 1082, 202, 21556, 5836, 17, 24060, 13, 36, 5946, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 7, 10086, 2174, 12, 6290, 18, 4936, 18, 780, 16, 1082, 202, 14, 474, 13, 1082, 202, 5549, 1082, 202, 482, 6459, 10086, 2174, 12, 780, 529, 16, 474, 4963, 2421, 15329, 9506, 202, 430, 12, 529, 631, 2011, 20081, 529, 18, 2469, 1435, 631, 20, 13, 6862, 202, 588, 3061, 7187, 7675, 10086, 2174, 12, 4688, 461, 16, 4963, 2421, 1769, 9506, 2 ]
if (name.equals("char")) {
else if (name.equals("char")) {
public static String getTypeDescription(String name) { // lets avoid class loading // return getType(name).getDescriptor(); if (name == null) { return "Ljava/lang/Object;"; } if (name.equals("void")) { return "V"; } String prefix = ""; if (name.endsWith("[]")) { prefix = "["; name = name.substring(0, name.length() - 2); } if (name.equals("int")) { return prefix + "I"; } if (name.equals("long")) { return prefix + "J"; } if (name.equals("short")) { return prefix + "S"; } if (name.equals("float")) { return prefix + "F"; } if (name.equals("double")) { return prefix + "D"; } if (name.equals("byte")) { return prefix + "B"; } if (name.equals("char")) { return prefix + "C"; } if (name.equals("boolean")) { return prefix + "Z"; } return prefix + "L" + name.replace('.', '/') + ";"; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/814fb33f88a5439206c1388cd1e97339afb2000a/BytecodeHelper.java/buggy/src/main/org/codehaus/groovy/classgen/BytecodeHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3130, 3291, 12, 780, 508, 13, 288, 3639, 368, 14557, 4543, 667, 7153, 3639, 368, 327, 3130, 12, 529, 2934, 588, 3187, 5621, 3639, 309, 261, 529, 422, 446, 13, 288, 5411, 327, 315, 21159, 19, 4936, 19, 921, 4868, 31, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 6459, 6, 3719, 288, 5411, 327, 315, 58, 14432, 3639, 289, 3639, 514, 1633, 273, 1408, 31, 3639, 309, 261, 529, 18, 5839, 1190, 2932, 63, 4279, 3719, 288, 5411, 1633, 273, 13626, 31, 5411, 508, 273, 508, 18, 28023, 12, 20, 16, 508, 18, 2469, 1435, 300, 576, 1769, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 474, 6, 3719, 288, 5411, 327, 1633, 397, 315, 45, 14432, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 5748, 6, 3719, 288, 5411, 327, 1633, 397, 315, 46, 14432, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 6620, 6, 3719, 288, 5411, 327, 1633, 397, 315, 55, 14432, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 5659, 6, 3719, 288, 5411, 327, 1633, 397, 315, 42, 14432, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 9056, 6, 3719, 288, 5411, 327, 1633, 397, 315, 40, 14432, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 7229, 6, 3719, 288, 5411, 327, 1633, 397, 315, 38, 14432, 3639, 289, 3639, 469, 309, 261, 529, 18, 14963, 2932, 3001, 6, 3719, 288, 5411, 327, 1633, 397, 315, 39, 14432, 3639, 289, 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, 514, 3130, 3291, 12, 780, 508, 13, 288, 3639, 368, 14557, 4543, 667, 7153, 3639, 368, 327, 3130, 12, 529, 2934, 588, 3187, 5621, 3639, 309, 261, 529, 422, 446, 13, 288, 5411, 327, 315, 21159, 19, 4936, 19, 921, 4868, 31, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 6459, 6, 3719, 288, 5411, 327, 315, 58, 14432, 3639, 289, 3639, 514, 1633, 273, 1408, 31, 3639, 309, 261, 529, 18, 5839, 1190, 2932, 63, 4279, 3719, 288, 5411, 1633, 273, 13626, 31, 5411, 508, 273, 508, 18, 28023, 12, 20, 16, 508, 18, 2469, 1435, 300, 576, 1769, 3639, 289, 3639, 309, 261, 529, 18, 14963, 2932, 474, 6, 3719, 288, 5411, 327, 2 ]
return true; }
return true; }
public boolean isSingleton() { return true; }
54717 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54717/60533ff5234b3216373cf01e1a073a61f565b554/OsgiServiceProxyFactoryBean.java/clean/spring-osgi-core/src/main/java/org/springframework/osgi/service/OsgiServiceProxyFactoryBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 11604, 12551, 1435, 288, 3639, 327, 638, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 11604, 12551, 1435, 288, 3639, 327, 638, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new NotCompilableException("Node not supported: " + iVisited.toString());
lineNumber(iVisited); loadSelf(); mv.visitLdcInsn(iVisited.getName()); mv.visitFieldInsn(Opcodes.GETSTATIC, "org/jruby/runtime/builtin/IRubyObject", "NULL_ARRAY", "[Lorg/jruby/runtime/builtin/IRubyObject;"); mv.visitFieldInsn(Opcodes.GETSTATIC, "org/jruby/runtime/CallType", "FUNCTIONAL", "Lorg/jruby/runtime/CallType;"); invokeIRubyObject("callMethod", "(Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/CallType;)Lorg/jruby/runtime/builtin/IRubyObject;"); return null;
public Instruction visitVCallNode(VCallNode iVisited) { throw new NotCompilableException("Node not supported: " + iVisited.toString()); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/1a9bdcaf49f77f5c15fe4d5f69d5815c92686aca/InstructionCompiler2.java/clean/src/org/jruby/ast/executable/InstructionCompiler2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 3757, 58, 1477, 907, 12, 58, 1477, 907, 277, 30019, 13, 288, 3639, 13629, 12, 77, 30019, 1769, 1262, 10084, 5621, 225, 7701, 18, 11658, 48, 7201, 11796, 12, 77, 30019, 18, 17994, 10663, 225, 7701, 18, 11658, 974, 11796, 12, 51, 18108, 18, 3264, 22741, 16, 315, 3341, 19, 78, 27768, 19, 9448, 19, 24553, 19, 7937, 10340, 921, 3113, 315, 8560, 67, 8552, 3113, 5158, 48, 3341, 19, 78, 27768, 19, 9448, 19, 24553, 19, 7937, 10340, 921, 4868, 1769, 7701, 18, 11658, 974, 11796, 12, 51, 18108, 18, 3264, 22741, 16, 315, 3341, 19, 78, 27768, 19, 9448, 19, 1477, 559, 3113, 315, 7788, 1013, 3113, 315, 48, 3341, 19, 78, 27768, 19, 9448, 19, 1477, 559, 4868, 1769, 225, 4356, 7937, 10340, 921, 2932, 1991, 1305, 3113, 7751, 21159, 19, 4936, 19, 780, 31, 63, 48, 3341, 19, 78, 27768, 19, 9448, 19, 24553, 19, 7937, 10340, 921, 31, 48, 3341, 19, 78, 27768, 19, 9448, 19, 1477, 559, 30943, 48, 3341, 19, 78, 27768, 19, 9448, 19, 24553, 19, 7937, 10340, 921, 4868, 1769, 225, 327, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24605, 3757, 58, 1477, 907, 12, 58, 1477, 907, 277, 30019, 13, 288, 3639, 13629, 12, 77, 30019, 1769, 1262, 10084, 5621, 225, 7701, 18, 11658, 48, 7201, 11796, 12, 77, 30019, 18, 17994, 10663, 225, 7701, 18, 11658, 974, 11796, 12, 51, 18108, 18, 3264, 22741, 16, 315, 3341, 19, 78, 27768, 19, 9448, 19, 24553, 19, 7937, 10340, 921, 3113, 315, 8560, 67, 8552, 3113, 5158, 48, 3341, 19, 78, 27768, 19, 9448, 19, 24553, 19, 7937, 10340, 921, 4868, 1769, 7701, 18, 11658, 974, 11796, 12, 51, 18108, 18, 3264, 22741, 16, 315, 3341, 19, 78, 27768, 19, 9448, 19, 1477, 559, 3113, 315, 7788, 1013, 3113, 315, 48, 3341, 19, 78, 27768, 19, 2 ]
} else { noex = Constants.NOEX_PUBLIC;
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = ruby.getRubyClass(); if (rubyClass == null) { throw new TypeError(ruby, "No class to add method."); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); ICallable method = rubyClass.searchMethod(iVisited.getName()); // RubyObject origin = body.getOrigin(); // if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } // } int noex; if (ruby.isScope(Constants.SCOPE_PRIVATE) || iVisited.getName().equals("initialize")) { noex = Constants.NOEX_PRIVATE; } else if (ruby.isScope(Constants.SCOPE_PROTECTED)) { noex = Constants.NOEX_PROTECTED; } else if (rubyClass == ruby.getClasses().getObjectClass()) { noex = iVisited.getNoex(); } else { noex = Constants.NOEX_PUBLIC; } if (method != null && method.getImplementationClass() == rubyClass && (method.getNoex() & Constants.NOEX_UNDEF) != 0) { noex |= Constants.NOEX_UNDEF; } // FIXME Create new method store class. // ScopeNode body = copyNodeScope((ScopeNode)iVisited.getBodyNode(), ruby.getNamespace()); DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), ruby.getNamespace()); rubyClass.addMethod(iVisited.getName(), newMethod, noex); if (ruby.getCurrentMethodScope() == Constants.SCOPE_MODFUNC) { rubyClass.getSingletonClass().addMethod(iVisited.getName(), newMethod, Constants.NOEX_PUBLIC); rubyClass.callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } if (rubyClass.isSingleton()) { rubyClass.getInstanceVariable("__attached__").callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } else { rubyClass.callMethod("method_added", builtins.toSymbol(iVisited.getName())); } }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/f05423516c2d1bfe54c4363eedb9654f7cfb6898/EvaluateVisitor.java/buggy/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 13, 288, 5411, 604, 394, 3580, 12, 27768, 16, 315, 2279, 667, 358, 527, 707, 1199, 1769, 3639, 289, 3639, 368, 430, 261, 27768, 67, 1106, 422, 4170, 10340, 7675, 588, 921, 797, 1435, 597, 756, 18, 4880, 67, 13138, 1435, 422, 1208, 13, 288, 3639, 368, 1894, 2932, 266, 5649, 310, 1033, 7, 11160, 2026, 4620, 14853, 2798, 8863, 3639, 19363, 3639, 368, 430, 261, 2159, 18, 4880, 67, 13138, 1435, 422, 1001, 350, 972, 747, 756, 18, 4880, 67, 13138, 1435, 422, 1001, 4661, 972, 13, 288, 3639, 368, 1894, 2932, 266, 5649, 310, 12430, 87, 11, 2026, 4620, 703, 22774, 6199, 3113, 14015, 54, 10340, 548, 13, 2159, 18, 4880, 67, 13138, 1435, 2934, 869, 461, 10663, 3639, 19363, 3639, 368, 22155, 67, 1106, 18, 542, 42, 9808, 12, 3767, 1769, 3639, 467, 11452, 707, 273, 22155, 797, 18, 3072, 1305, 12, 77, 30019, 18, 17994, 10663, 3639, 368, 19817, 921, 4026, 273, 1417, 18, 588, 7571, 5621, 3639, 368, 309, 261, 3432, 480, 446, 15329, 3639, 368, 309, 261, 27768, 67, 11369, 18, 291, 5510, 1435, 597, 22155, 67, 1106, 422, 4026, 597, 1417, 18, 4880, 67, 13085, 1435, 422, 374, 13, 288, 3639, 368, 377, 24137, 18, 6731, 67, 8551, 2932, 31992, 310, 1592, 738, 87, 3113, 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, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 13, 288, 5411, 604, 394, 3580, 12, 27768, 16, 315, 2279, 667, 358, 527, 707, 1199, 1769, 3639, 289, 3639, 368, 430, 261, 27768, 67, 1106, 422, 4170, 10340, 7675, 588, 921, 797, 1435, 597, 756, 18, 4880, 67, 13138, 1435, 422, 1208, 13, 288, 3639, 368, 1894, 2932, 266, 5649, 310, 1033, 7, 11160, 2026, 4620, 14853, 2798, 8863, 3639, 19363, 3639, 368, 430, 261, 2159, 18, 4880, 67, 13138, 1435, 422, 1001, 350, 972, 747, 756, 18, 4880, 67, 13138, 1435, 422, 2 ]
boolean isSupported(PeriodType type) { switch (iFieldType) {
boolean isSupported(PeriodType type, int field) { switch (field) {
boolean isSupported(PeriodType type) { switch (iFieldType) { default: return false; case 1: return type.years().isSupported(); case 2: return type.months().isSupported(); case 3: return type.weeks().isSupported(); case 4: return type.days().isSupported(); case 5: return type.hours().isSupported(); case 6: return type.minutes().isSupported(); case 7: return type.seconds().isSupported(); case 8: return type.millis().isSupported(); case 9: // drop through case 10: return type.seconds().isSupported() || type.millis().isSupported(); } }
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/5fd28fcd3425461dfcff1800753513f94807f652/PeriodFormatterBuilder.java/clean/JodaTime/src/java/org/joda/time/format/PeriodFormatterBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1250, 25946, 12, 5027, 559, 618, 13, 288, 5411, 1620, 261, 77, 13715, 13, 288, 5411, 805, 30, 7734, 327, 629, 31, 5411, 648, 404, 30, 7734, 327, 618, 18, 29391, 7675, 291, 7223, 5621, 5411, 648, 576, 30, 7734, 327, 618, 18, 27584, 7675, 291, 7223, 5621, 5411, 648, 890, 30, 7734, 327, 618, 18, 10741, 87, 7675, 291, 7223, 5621, 5411, 648, 1059, 30, 7734, 327, 618, 18, 9810, 7675, 291, 7223, 5621, 5411, 648, 1381, 30, 7734, 327, 618, 18, 16814, 7675, 291, 7223, 5621, 5411, 648, 1666, 30, 7734, 327, 618, 18, 17916, 7675, 291, 7223, 5621, 5411, 648, 2371, 30, 7734, 327, 618, 18, 7572, 7675, 291, 7223, 5621, 5411, 648, 1725, 30, 7734, 327, 618, 18, 81, 3503, 7675, 291, 7223, 5621, 5411, 648, 2468, 30, 368, 3640, 3059, 5411, 648, 1728, 30, 7734, 327, 618, 18, 7572, 7675, 291, 7223, 1435, 747, 225, 618, 18, 81, 3503, 7675, 291, 7223, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1250, 25946, 12, 5027, 559, 618, 13, 288, 5411, 1620, 261, 77, 13715, 13, 288, 5411, 805, 30, 7734, 327, 629, 31, 5411, 648, 404, 30, 7734, 327, 618, 18, 29391, 7675, 291, 7223, 5621, 5411, 648, 576, 30, 7734, 327, 618, 18, 27584, 7675, 291, 7223, 5621, 5411, 648, 890, 30, 7734, 327, 618, 18, 10741, 87, 7675, 291, 7223, 5621, 5411, 648, 1059, 30, 7734, 327, 618, 18, 9810, 7675, 291, 7223, 5621, 5411, 648, 1381, 30, 7734, 327, 618, 18, 16814, 7675, 291, 7223, 5621, 5411, 648, 1666, 30, 7734, 327, 618, 18, 17916, 7675, 291, 7223, 5621, 5411, 648, 2371, 30, 7734, 327, 618, 18, 7572, 7675, 291, 7223, 5621, 5411, 648, 1725, 30, 2 ]
if (className.indexOf('/') >= 0) className = className.replace('/','.'); if (signature.indexOf('/') >= 0) signature = signature.replace('/','.');
if (className.indexOf('.') >= 0) { dottedCountClass++; } else if (className.indexOf('/') >= 0) { slashCountClass++; className = className.replace('/','.'); assert false; } if (signature.indexOf('.') >= 0) { signature = signature.replace('.','/'); dottedCountSignature++; assert false; } else if (signature.indexOf('/') >= 0) slashCountSignature++;
protected AbstractClassMember(String className, String name, String signature, int accessFlags) { if (className.indexOf('/') >= 0) className = className.replace('/','.'); if (signature.indexOf('/') >= 0) signature = signature.replace('/','.'); this.className = className; this.name = name; this.signature = signature; this.accessFlags = accessFlags; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/818e3a70d28562876123e58e355714b862253e2a/AbstractClassMember.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractClassMember.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4115, 797, 4419, 12, 780, 2658, 16, 514, 508, 16, 514, 3372, 16, 509, 2006, 5094, 13, 288, 202, 202, 430, 261, 12434, 18, 31806, 2668, 2473, 13, 1545, 374, 13, 2658, 273, 2658, 18, 2079, 2668, 19, 17023, 1093, 1769, 202, 202, 430, 261, 8195, 18, 31806, 2668, 2473, 13, 1545, 374, 13, 3372, 273, 3372, 18, 2079, 2668, 19, 17023, 1093, 1769, 202, 202, 2211, 18, 12434, 273, 2658, 31, 202, 202, 2211, 18, 529, 273, 508, 31, 202, 202, 2211, 18, 8195, 273, 3372, 31, 202, 202, 2211, 18, 3860, 5094, 273, 2006, 5094, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4115, 797, 4419, 12, 780, 2658, 16, 514, 508, 16, 514, 3372, 16, 509, 2006, 5094, 13, 288, 202, 202, 430, 261, 12434, 18, 31806, 2668, 2473, 13, 1545, 374, 13, 2658, 273, 2658, 18, 2079, 2668, 19, 17023, 1093, 1769, 202, 202, 430, 261, 8195, 18, 31806, 2668, 2473, 13, 1545, 374, 13, 3372, 273, 3372, 18, 2079, 2668, 19, 17023, 1093, 1769, 202, 202, 2211, 18, 12434, 273, 2658, 31, 202, 202, 2211, 18, 529, 273, 508, 31, 202, 202, 2211, 18, 8195, 273, 3372, 31, 202, 202, 2211, 18, 3860, 5094, 273, 2006, 5094, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
MutablePicoContainer tempContainer = new DefaultPicoContainer(requestContainer); tempContainer.registerComponentImplementation(actionClass); result = (Action) tempContainer.getComponentInstance(actionClass);
result = (Action) createComponentInstance(requestContainer, actionClass);
protected Action instantiateAction(Class actionClass) { PicoContainer requestContainer = getParentContainer(); Action result = (Action) requestContainer.getComponentInstance(actionClass); if (result == null) { // The action wasn't registered. Do it ad-hoc here. MutablePicoContainer tempContainer = new DefaultPicoContainer(requestContainer); tempContainer.registerComponentImplementation(actionClass); result = (Action) tempContainer.getComponentInstance(actionClass); } return result; }
14418 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14418/3f07e12293ad24ff91a16700b1a99ab61a8e373f/PicoActionFactory.java/clean/nanowar/src/java/org/nanocontainer/nanowar/webwork/PicoActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4382, 10275, 1803, 12, 797, 1301, 797, 13, 288, 3639, 453, 10764, 2170, 590, 2170, 273, 5089, 2170, 5621, 3639, 4382, 563, 273, 261, 1803, 13, 590, 2170, 18, 588, 1841, 1442, 12, 1128, 797, 1769, 3639, 309, 261, 2088, 422, 446, 13, 288, 5411, 368, 1021, 1301, 14487, 1404, 4104, 18, 2256, 518, 1261, 17, 76, 504, 2674, 18, 5411, 10960, 52, 10764, 2170, 1906, 2170, 273, 394, 2989, 52, 10764, 2170, 12, 2293, 2170, 1769, 5411, 1906, 2170, 18, 4861, 1841, 13621, 12, 1128, 797, 1769, 5411, 563, 273, 261, 1803, 13, 1906, 2170, 18, 588, 1841, 1442, 12, 1128, 797, 1769, 3639, 289, 3639, 327, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 4750, 4382, 10275, 1803, 12, 797, 1301, 797, 13, 288, 3639, 453, 10764, 2170, 590, 2170, 273, 5089, 2170, 5621, 3639, 4382, 563, 273, 261, 1803, 13, 590, 2170, 18, 588, 1841, 1442, 12, 1128, 797, 1769, 3639, 309, 261, 2088, 422, 446, 13, 288, 5411, 368, 1021, 1301, 14487, 1404, 4104, 18, 2256, 518, 1261, 17, 76, 504, 2674, 18, 5411, 10960, 52, 10764, 2170, 1906, 2170, 273, 394, 2989, 52, 10764, 2170, 12, 2293, 2170, 1769, 5411, 1906, 2170, 18, 4861, 1841, 13621, 12, 1128, 797, 1769, 5411, 563, 273, 261, 1803, 13, 1906, 2170, 18, 588, 1841, 1442, 12, 1128, 797, 1769, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100 ]
dateSelected(dialogResponse == DateSelectionDialog.CANCEL, newCalendar);
dateSelected(dialogResponse == Window.CANCEL, newCalendar);
private void initialize() { GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; gridLayout.makeColumnsEqualWidth = false; this.setLayout(gridLayout); setSize(new org.eclipse.swt.graphics.Point(120, 19)); simpleDateFormat.applyPattern("MM/dd/yy h:mm aa"); dateText = new Text(this, SWT.NONE); GridData dateTextGridData = new org.eclipse.swt.layout.GridData(); dateTextGridData.widthHint = 95; dateText.setLayoutData(dateTextGridData); dateText.setText(initialText); dateText.addFocusListener(new FocusListener() {// DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(currentDate)); Calendar calendar = Calendar.getInstance(); public void focusGained(FocusEvent e) { } public void focusLost(FocusEvent e) { Date reminderDate; try { reminderDate = simpleDateFormat.parse(dateText.getText()); calendar.setTime(reminderDate); date = calendar; updateDateText(); } catch (ParseException e1) { updateDateText(); } } }); pickButton = new Button(this, SWT.ARROW | SWT.DOWN); GridData pickButtonGridData = new org.eclipse.swt.layout.GridData(); pickButtonGridData.horizontalAlignment = org.eclipse.swt.layout.GridData.END; pickButton.setLayoutData(pickButtonGridData); pickButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent arg0) { Calendar newCalendar = GregorianCalendar.getInstance(); if(date != null) { newCalendar.setTime(date.getTime()); } Shell shell = null; if (PlatformUI.getWorkbench().getActiveWorkbenchWindow() != null) { shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); } else { shell = new Shell(PlatformUI.getWorkbench().getDisplay()); } DateSelectionDialog dialog = new DateSelectionDialog(shell, newCalendar, DatePicker.TITLE_DIALOG); pickButton.setEnabled(false); dateText.setEnabled(false); int dialogResponse = dialog.open(); newCalendar.setTime(dialog.getDate()); dateSelected(dialogResponse == DateSelectionDialog.CANCEL, newCalendar); // Display display = Display.getCurrent();// showDatePicker((display.getCursorLocation().x), (display.getCursorLocation().y)); } public void widgetDefaultSelected(SelectionEvent arg0) { } }); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3795dbf159ca461ff46554eebd5d2ae042adc3f0/DatePicker.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/DatePicker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4046, 1435, 288, 1082, 202, 6313, 3744, 3068, 3744, 273, 394, 7145, 3744, 5621, 202, 202, 5222, 3744, 18, 2107, 3380, 273, 576, 31, 202, 202, 5222, 3744, 18, 18396, 18006, 273, 374, 31, 202, 202, 5222, 3744, 18, 17824, 18006, 273, 374, 31, 202, 202, 5222, 3744, 18, 10107, 2384, 273, 374, 31, 202, 202, 5222, 3744, 18, 10107, 2686, 273, 374, 31, 202, 202, 5222, 3744, 18, 6540, 3380, 5812, 2384, 273, 629, 31, 202, 202, 2211, 18, 542, 3744, 12, 5222, 3744, 1769, 202, 202, 542, 1225, 12, 2704, 2358, 18, 20416, 18, 5328, 88, 18, 31586, 18, 2148, 12, 22343, 16, 5342, 10019, 9506, 202, 9647, 11878, 18, 9010, 3234, 2932, 8206, 19, 449, 19, 6795, 366, 30, 7020, 12391, 8863, 202, 202, 712, 1528, 273, 394, 3867, 12, 2211, 16, 348, 8588, 18, 9826, 1769, 9506, 202, 6313, 751, 1509, 1528, 6313, 751, 273, 394, 2358, 18, 20416, 18, 5328, 88, 18, 6741, 18, 6313, 751, 5621, 202, 202, 712, 1528, 6313, 751, 18, 2819, 7002, 273, 16848, 31, 6862, 202, 712, 1528, 18, 542, 3744, 751, 12, 712, 1528, 6313, 751, 1769, 202, 202, 712, 1528, 18, 542, 1528, 12, 6769, 1528, 1769, 202, 202, 712, 1528, 18, 1289, 9233, 2223, 12, 2704, 478, 4560, 2223, 1435, 288, 759, 1082, 202, 11878, 18, 588, 5096, 1442, 12, 11878, 18, 15993, 16, 18371, 18, 15993, 2934, 2139, 12, 2972, 1626, 10019, 25083, 202, 7335, 5686, 273, 5542, 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, 1152, 918, 4046, 1435, 288, 1082, 202, 6313, 3744, 3068, 3744, 273, 394, 7145, 3744, 5621, 202, 202, 5222, 3744, 18, 2107, 3380, 273, 576, 31, 202, 202, 5222, 3744, 18, 18396, 18006, 273, 374, 31, 202, 202, 5222, 3744, 18, 17824, 18006, 273, 374, 31, 202, 202, 5222, 3744, 18, 10107, 2384, 273, 374, 31, 202, 202, 5222, 3744, 18, 10107, 2686, 273, 374, 31, 202, 202, 5222, 3744, 18, 6540, 3380, 5812, 2384, 273, 629, 31, 202, 202, 2211, 18, 542, 3744, 12, 5222, 3744, 1769, 202, 202, 542, 1225, 12, 2704, 2358, 18, 20416, 18, 5328, 88, 18, 31586, 18, 2148, 12, 22343, 16, 5342, 10019, 9506, 202, 9647, 11878, 18, 9010, 3234, 2932, 2 ]
int count = (int)srcFile.length(); byte indata[] = new byte[count]; try { FileInputStream inStream = new FileInputStream(srcFile); inStream.read(indata); inStream.close(); } catch (IOException e) { throw new BuildException(e);
int count = (int)srcFile.length(); byte indata[] = new byte[count]; try { FileInputStream inStream = new FileInputStream(srcFile); inStream.read(indata); inStream.close(); } catch (IOException e) { throw new BuildException(e); } int cr = 0; int lf = 0; int tab = 0; for (int k=0; k<count; k++) { byte c = indata[k]; if (c == '\r') cr++; if (c == '\n') lf++; if (c == '\t') tab++; } boolean eof = ((count>0) && (indata[count-1] == 0x1A)); project.log(srcFile + ": size=" + count + " cr=" + cr + " lf=" + lf + " tab=" + tab + " eof=" + eof, "fixcrlf", project.MSG_VERBOSE); int outsize = count; if (addcr != 0) outsize-=cr; if (addcr == +1) outsize+=lf; if (addtab == -1) outsize+=tab*7; if (ctrlz == +1) outsize+=1; byte outdata[] = new byte[outsize]; int o = 0; int line = o; int col = 0; for (int k=0; k<count; k++) { switch (indata[k]) { case ' ': if (addtab == 0) outdata[o++]=(byte)' '; col++; break; case '\t': if (addtab == 0) { outdata[o++]=(byte)'\t'; col++; } else { col = (col|7)+1; } break; case '\r': if (addcr == 0) { outdata[o++]=(byte)'\r'; col++; } break; case '\n': if (addcr == +1) outdata[o++]=(byte)'\r'; outdata[o++]=(byte)'\n'; line=o; col=0; break; default: if (addtab>0 && o+1<line+col) { int diff=o-line; while ((diff|7)<col) { outdata[o++]=(byte)'\t'; line-=7-(diff&7); diff=o-line; }; }; while (o<line+col) outdata[o++]=(byte)' '; outdata[o++]=indata[k]; col++;
public void execute() throws BuildException { // first off, make sure that we've got a srcdir and destdir if (srcDir == null) { throw new BuildException("srcdir attribute must be set!"); } if (!srcDir.exists()) { throw new BuildException("srcdir does not exist!"); } if (!srcDir.isDirectory()) { throw new BuildException("srcdir is not a directory!"); } if (destDir != null) { if (!destDir.exists()) { throw new BuildException("destdir does not exist!"); } if (!destDir.isDirectory()) { throw new BuildException("destdir is not a directory!"); } } // log options used project.log("options:" + " cr=" + (addcr==-1 ? "add" : addcr==0 ? "asis" : "remove") + " tab=" + (addtab==-1 ? "add" : addtab==0 ? "asis" : "remove") + " eof=" + (ctrlz==-1 ? "add" : ctrlz==0 ? "asis" : "remove"), "fixcrlf", project.MSG_VERBOSE); DirectoryScanner ds = super.getDirectoryScanner(srcDir); String[] files = ds.getIncludedFiles(); try { for (int i = 0; i < files.length; i++) { File srcFile = new File(srcDir, files[i]); // read the contents of the file int count = (int)srcFile.length(); byte indata[] = new byte[count]; try { FileInputStream inStream = new FileInputStream(srcFile); inStream.read(indata); inStream.close(); } catch (IOException e) { throw new BuildException(e); } // count the number of cr, lf, and tab characters int cr = 0; int lf = 0; int tab = 0; for (int k=0; k<count; k++) { byte c = indata[k]; if (c == '\r') cr++; if (c == '\n') lf++; if (c == '\t') tab++; } // check for trailing eof boolean eof = ((count>0) && (indata[count-1] == 0x1A)); // log stats (before fixes) project.log(srcFile + ": size=" + count + " cr=" + cr + " lf=" + lf + " tab=" + tab + " eof=" + eof, "fixcrlf", project.MSG_VERBOSE); // determine the output buffer size (slightly pessimisticly) int outsize = count; if (addcr != 0) outsize-=cr; if (addcr == +1) outsize+=lf; if (addtab == -1) outsize+=tab*7; if (ctrlz == +1) outsize+=1; // copy the data byte outdata[] = new byte[outsize]; int o = 0; // output offset int line = o; // beginning of line int col = 0; // desired column for (int k=0; k<count; k++) { switch (indata[k]) { case ' ': // advance column if (addtab == 0) outdata[o++]=(byte)' '; col++; break; case '\t': if (addtab == 0) { // treat like any other character outdata[o++]=(byte)'\t'; col++; } else { // advance column to next tab stop col = (col|7)+1; } break; case '\r': if (addcr == 0) { // treat like any other character outdata[o++]=(byte)'\r'; col++; } break; case '\n': // start a new line (optional CR followed by LF) if (addcr == +1) outdata[o++]=(byte)'\r'; outdata[o++]=(byte)'\n'; line=o; col=0; break; default: // add tabs if two or more spaces are required if (addtab>0 && o+1<line+col) { // determine logical column int diff=o-line; // add tabs until this column would be passed // note: the start of line is adjusted to match while ((diff|7)<col) { outdata[o++]=(byte)'\t'; line-=7-(diff&7); diff=o-line; }; }; // space out to desired column while (o<line+col) outdata[o++]=(byte)' '; // append desired character outdata[o++]=indata[k]; col++; } } // add or remove an eof character as required if (ctrlz == +1) { if (outdata[o-1]!=0x1A) outdata[o++]=0x1A; } else if (ctrlz == -1) { if (o>2 && outdata[o-1]==0x0A && outdata[o-2]==0x1A) o--; if (o>1 && outdata[o-1]==0x1A) o--; } // output the data try { File destFile = srcFile; if (destDir != null) destFile = new File(destDir, files[i]); FileOutputStream outStream = new FileOutputStream(destFile); outStream.write(outdata,0,o); outStream.close(); } catch (IOException e) { throw new BuildException(e); } } /* end for */ } catch (Exception e) { e.printStackTrace(); throw new BuildException(e); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/8d02bfc707ffeb41a31153bba6adbccebb06106b/FixCRLF.java/buggy/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 368, 1122, 3397, 16, 1221, 3071, 716, 732, 8081, 2363, 279, 1705, 1214, 471, 1570, 1214, 3639, 309, 261, 4816, 1621, 422, 446, 13, 288, 5411, 604, 394, 18463, 2932, 4816, 1214, 1566, 1297, 506, 444, 4442, 1769, 3639, 289, 3639, 309, 16051, 4816, 1621, 18, 1808, 10756, 288, 5411, 604, 394, 18463, 2932, 4816, 1214, 1552, 486, 1005, 4442, 1769, 3639, 289, 3639, 309, 16051, 4816, 1621, 18, 291, 2853, 10756, 288, 5411, 604, 394, 18463, 2932, 4816, 1214, 353, 486, 279, 1867, 4442, 1769, 3639, 289, 3639, 309, 261, 10488, 1621, 480, 446, 13, 288, 5411, 309, 16051, 10488, 1621, 18, 1808, 10756, 288, 7734, 604, 394, 18463, 2932, 10488, 1214, 1552, 486, 1005, 4442, 1769, 5411, 289, 5411, 309, 16051, 10488, 1621, 18, 291, 2853, 10756, 288, 7734, 604, 394, 18463, 2932, 10488, 1214, 353, 486, 279, 1867, 4442, 1769, 5411, 289, 3639, 289, 3639, 368, 613, 702, 1399, 3639, 1984, 18, 1330, 2932, 2116, 2773, 397, 5411, 315, 4422, 1546, 397, 261, 1289, 3353, 631, 17, 21, 692, 315, 1289, 6, 294, 527, 3353, 631, 20, 692, 315, 17247, 6, 294, 315, 4479, 7923, 397, 5411, 315, 3246, 1546, 397, 261, 1289, 7032, 631, 17, 21, 692, 315, 1289, 6, 294, 527, 7032, 631, 20, 692, 315, 17247, 6, 294, 315, 4479, 7923, 397, 5411, 315, 14813, 1546, 397, 261, 16277, 94, 631, 17, 21, 692, 315, 1289, 6, 294, 6414, 94, 631, 20, 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, 1836, 1435, 1216, 18463, 288, 3639, 368, 1122, 3397, 16, 1221, 3071, 716, 732, 8081, 2363, 279, 1705, 1214, 471, 1570, 1214, 3639, 309, 261, 4816, 1621, 422, 446, 13, 288, 5411, 604, 394, 18463, 2932, 4816, 1214, 1566, 1297, 506, 444, 4442, 1769, 3639, 289, 3639, 309, 16051, 4816, 1621, 18, 1808, 10756, 288, 5411, 604, 394, 18463, 2932, 4816, 1214, 1552, 486, 1005, 4442, 1769, 3639, 289, 3639, 309, 16051, 4816, 1621, 18, 291, 2853, 10756, 288, 5411, 604, 394, 18463, 2932, 4816, 1214, 353, 486, 279, 1867, 4442, 1769, 3639, 289, 3639, 309, 261, 10488, 1621, 480, 446, 13, 288, 5411, 309, 16051, 10488, 1621, 18, 1808, 10756, 288, 7734, 604, 394, 18463, 2 ]
else { System.out.println("Bad Item"); }
public void populateAdditions(List additions) { additions.clear(); IConfigurationElement[] items = additionElement.getChildren(); for (int i = 0; i < items.length; i++) { String itemType = items[i].getName(); IContributionItem newItem = null; System.out.println("Item: " + getId(items[i])); //$NON-NLS-1$ if (IWorkbenchRegistryConstants.TAG_ITEM.equals(itemType)) { if (isDynamic(items[i])) { } else newItem = createItemAdditionContribution(items[i]); } else if (IWorkbenchRegistryConstants.TAG_WIDGET.equals(itemType)) { newItem = createWidgetAdditionContribution(items[i]); } else if (IWorkbenchRegistryConstants.TAG_SEPARATOR.equals(itemType)) { newItem = createSeparatorAdditionContribution(items[i]); } else if (IWorkbenchRegistryConstants.TAG_MENU.equals(itemType)) { newItem = createMenuAdditionContribution(items[i]); // Menus are special...we have to add any sub menu // items into their own cache // -ALL- contibuted menus must have an id so create one // if necessary String menuId = getId(items[i]); MenuLocationURI uri = new MenuLocationURI("menu:" + menuId); //$NON-NLS-1$ List subMenuCache = menuSvc.getAdditionsForURI(uri); MenuAdditionCacheEntry subMenuEntry = new MenuAdditionCacheEntry(items[i], menuSvc); // Add the 'original' definition to the start of the list subMenuCache.add(0, subMenuEntry); } // Cache the relationship between the ICI and the // registry element used to back it if (newItem != null) { additions.add(newItem); iciToConfigElementMap.put(newItem, items[i]); } else { System.out.println("Bad Item"); //$NON-NLS-1$ } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/19dff4e9a21ba46aea8989c210f8a32a6a5c3bbb/MenuAdditionCacheEntry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6490, 986, 5029, 12, 682, 26260, 13, 288, 202, 202, 1289, 5029, 18, 8507, 5621, 9506, 202, 45, 1750, 1046, 8526, 1516, 273, 2719, 1046, 18, 588, 4212, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1516, 18, 2469, 31, 277, 27245, 288, 1082, 202, 780, 23080, 273, 1516, 63, 77, 8009, 17994, 5621, 1082, 202, 45, 442, 4027, 1180, 26536, 273, 446, 31, 25083, 202, 3163, 18, 659, 18, 8222, 2932, 1180, 30, 315, 397, 2634, 12, 3319, 63, 77, 5717, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 25083, 202, 430, 261, 45, 2421, 22144, 4243, 2918, 18, 7927, 67, 12674, 18, 14963, 12, 1726, 559, 3719, 288, 9506, 202, 430, 261, 291, 9791, 12, 3319, 63, 77, 22643, 288, 6862, 6862, 202, 97, 9506, 202, 12107, 6862, 202, 2704, 1180, 273, 29274, 30296, 442, 4027, 12, 3319, 63, 77, 19226, 1082, 202, 97, 469, 309, 261, 45, 2421, 22144, 4243, 2918, 18, 7927, 67, 59, 734, 3264, 18, 14963, 12, 1726, 559, 3719, 288, 9506, 202, 2704, 1180, 273, 752, 4609, 30296, 442, 4027, 12, 3319, 63, 77, 19226, 1082, 202, 97, 469, 309, 261, 45, 2421, 22144, 4243, 2918, 18, 7927, 67, 4550, 18, 14963, 12, 1726, 559, 3719, 288, 9506, 202, 2704, 1180, 273, 752, 6581, 30296, 442, 4027, 12, 3319, 63, 77, 19226, 1082, 202, 97, 469, 309, 261, 45, 2421, 22144, 4243, 2918, 18, 7927, 67, 29227, 18, 14963, 12, 1726, 559, 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, 6490, 986, 5029, 12, 682, 26260, 13, 288, 202, 202, 1289, 5029, 18, 8507, 5621, 9506, 202, 45, 1750, 1046, 8526, 1516, 273, 2719, 1046, 18, 588, 4212, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1516, 18, 2469, 31, 277, 27245, 288, 1082, 202, 780, 23080, 273, 1516, 63, 77, 8009, 17994, 5621, 1082, 202, 45, 442, 4027, 1180, 26536, 273, 446, 31, 25083, 202, 3163, 18, 659, 18, 8222, 2932, 1180, 30, 315, 397, 2634, 12, 3319, 63, 77, 5717, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 25083, 202, 430, 261, 45, 2421, 22144, 4243, 2918, 18, 7927, 67, 12674, 18, 14963, 12, 1726, 559, 3719, 288, 9506, 2 ]
httpResponse.setField("Expires", "-1");
hackRemoveLastModifiedSince(httpRequest); setNoCacheHeaders(httpResponse);
public void handle(String pathInContext, String pathParams, HttpRequest httpRequest, HttpResponse httpResponse) throws HttpException, IOException { httpResponse.setField("Expires", "-1"); // never cached. if (pathInContext.equals("/core/SeleneseRunner.html") && SeleniumServer.isProxyInjectionMode()) { pathInContext = pathInContext.replaceFirst("/core/SeleneseRunner.html", "/core/InjectedSeleneseRunner.html"); } super.handle(pathInContext, pathParams, httpRequest, httpResponse); }
4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/61381e5d1c23596093bdc86ca7142ed4024d2516/StaticContentHandler.java/buggy/server-coreless/src/main/java/org/openqa/selenium/server/StaticContentHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 12, 780, 589, 29334, 16, 514, 17756, 16, 14069, 12189, 16, 9476, 15001, 13, 1216, 23190, 16, 1860, 288, 3639, 11769, 3288, 14747, 9673, 12, 2505, 691, 1769, 444, 2279, 1649, 3121, 12, 2505, 1064, 1769, 368, 5903, 3472, 18, 3639, 309, 261, 803, 29334, 18, 14963, 2932, 19, 3644, 19, 1877, 275, 3392, 9709, 18, 2620, 7923, 597, 4352, 17327, 2081, 18, 291, 3886, 12039, 2309, 10756, 288, 5411, 589, 29334, 273, 589, 29334, 18, 2079, 3759, 2932, 19, 3644, 19, 1877, 275, 3392, 9709, 18, 2620, 3113, 10792, 2206, 3644, 19, 382, 6059, 1877, 275, 3392, 9709, 18, 2620, 8863, 3639, 289, 3639, 2240, 18, 4110, 12, 803, 29334, 16, 17756, 16, 12189, 16, 15001, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 12, 780, 589, 29334, 16, 514, 17756, 16, 14069, 12189, 16, 9476, 15001, 13, 1216, 23190, 16, 1860, 288, 3639, 11769, 3288, 14747, 9673, 12, 2505, 691, 1769, 444, 2279, 1649, 3121, 12, 2505, 1064, 1769, 368, 5903, 3472, 18, 3639, 309, 261, 803, 29334, 18, 14963, 2932, 19, 3644, 19, 1877, 275, 3392, 9709, 18, 2620, 7923, 597, 4352, 17327, 2081, 18, 291, 3886, 12039, 2309, 10756, 288, 5411, 589, 29334, 273, 589, 29334, 18, 2079, 3759, 2932, 19, 3644, 19, 1877, 275, 3392, 9709, 18, 2620, 3113, 10792, 2206, 3644, 19, 382, 6059, 1877, 275, 3392, 9709, 18, 2620, 8863, 3639, 289, 3639, 2240, 18, 4110, 12, 803, 29334, 16, 17756, 16, 12189, 2 ]
String outgoingMailServer = i.next().toString (); StringBuffer logMessageBuffer = new StringBuffer(256) .append("Attempting delivery of ") .append(mail.getName()) .append(" to host ") .append(outgoingMailServer) .append(" to addresses ") .append(Arrays.asList(addr)); log(logMessageBuffer.toString()); URLName urlname = new URLName("smtp: Properties props = session.getProperties(); if (mail.getSender() == null) { props.put("mail.smtp.from", "<>"); } else { String sender = mail.getSender().toString(); props.put("mail.smtp.from", sender); } Transport transport = null;
transport = session.getTransport(urlname);
private boolean deliver(MailImpl mail, Session session) { try { if (isDebug) { log("Attempting to deliver " + mail.getName()); } MimeMessage message = mail.getMessage(); //Create an array of the recipients as InternetAddress objects Collection recipients = mail.getRecipients(); InternetAddress addr[] = new InternetAddress[recipients.size()]; int j = 0; for (Iterator i = recipients.iterator(); i.hasNext(); j++) { MailAddress rcpt = (MailAddress)i.next(); addr[j] = rcpt.toInternetAddress(); } //Figure out which servers to try to send to. This collection // will hold all the possible target servers Collection targetServers = null; if (gatewayServer == null) { MailAddress rcpt = (MailAddress) recipients.iterator().next(); String host = rcpt.getHost(); //Lookup the possible targets targetServers = getMailetContext().getMailServers(host); if (targetServers.size() == 0) { log("No mail server found for: " + host); StringBuffer exceptionBuffer = new StringBuffer(128) .append("There are no DNS entries for the hostname ") .append(host) .append(". I cannot determine where to send this message."); return failMessage(mail, new MessagingException(exceptionBuffer.toString()), false); } } else { targetServers = new Vector(); targetServers.add(gatewayServer); } MessagingException lastError = null; if (addr.length > 0) { Iterator i = targetServers.iterator(); while ( i.hasNext()) { try { String outgoingMailServer = i.next().toString (); StringBuffer logMessageBuffer = new StringBuffer(256) .append("Attempting delivery of ") .append(mail.getName()) .append(" to host ") .append(outgoingMailServer) .append(" to addresses ") .append(Arrays.asList(addr)); log(logMessageBuffer.toString()); URLName urlname = new URLName("smtp://" + outgoingMailServer); Properties props = session.getProperties(); if (mail.getSender() == null) { props.put("mail.smtp.from", "<>"); } else { String sender = mail.getSender().toString(); props.put("mail.smtp.from", sender); } //Many of these properties are only in later JavaMail versions //"mail.smtp.ehlo" //default true //"mail.smtp.auth" //default false //"mail.smtp.dsn.ret" //default to nothing... appended as RET= after MAIL FROM line. //"mail.smtp.dsn.notify" //default to nothing...appended as NOTIFY= after RCPT TO line. Transport transport = null; try { transport = session.getTransport(urlname); try { transport.connect(); } catch (MessagingException me) { // Any error on connect should cause the mailet to attempt // to connect to the next SMTP server associated with this MX record, // assuming the number of retries hasn't been exceeded. if (failMessage(mail, me, false)) { return true; } else { continue; } } transport.sendMessage(message, addr); } finally { if (transport != null) { transport.close(); transport = null; } } logMessageBuffer = new StringBuffer(256) .append("Mail (") .append(mail.getName()) .append(") sent successfully to ") .append(outgoingMailServer); log(logMessageBuffer.toString()); return true; } catch (MessagingException me) { //MessagingException are horribly difficult to figure out what actually happened. StringBuffer exceptionBuffer = new StringBuffer(256) .append("Exception delivering message (") .append(mail.getName()) .append(") - ") .append(me.getMessage()); log(exceptionBuffer.toString()); if ((me.getNextException() != null) && (me.getNextException() instanceof java.io.IOException)) { //This is more than likely a temporary failure // If it's an IO exception with no nested exception, it's probably // some socket or weird I/O related problem. lastError = me; continue; } // This was not a connection or I/O error particular to one // SMTP server of an MX set. Instead, it is almost certainly // a protocol level error. In this case we assume that this // is an error we'd encounter with any of the SMTP servers // associated with this MX record, and we pass the exception // to the code in the outer block that determines its severity. throw me; } } // end while //If we encountered an exception while looping through, send the last exception we got if (lastError != null) { throw lastError; } } else { log("No recipients specified... not sure how this could have happened."); } } catch (SendFailedException sfe) { //Would like to log all the types of email addresses if (sfe.getValidSentAddresses() != null) { Address[] validSent = sfe.getValidSentAddresses(); Collection recipients = mail.getRecipients(); //Remove these addresses for the recipients for (int i = 0; i < validSent.length; i++) { try { MailAddress addr = new MailAddress(validSent[i].toString()); recipients.remove(addr); } catch (ParseException pe) { //ignore once debugging done pe.printStackTrace(); } } } // The rest of the recipients failed for one reason or another. // let failMessage handle it -- 5xx codes are permanent, others temporary. /* * SendFailedException actually handles this for us. For * example, if you send a message that has multiple invalid * addresses, you'll get a top-level SendFailedException * that that has the valid, valid-unsent, and invalid * address lists, with all of the server response messages * will be contained within the nested exceptions. [Note: * the content of the nested exceptions is implementation * dependent.] * * For an immediate fix, we will simply go one level down. * THIS IS ONLY TEMPORARY. * * Proposal: * * By the time we get here, we've removed the valid sent * addresses from the message (see the code right above). * * sfe.getInvalidAddresses() should be considered permanent. * sfe.getValidUnsentAddresses() should be considered temporary. * * JavaMail v1.3 properly populates those collections based * upon the 4xx and 5xx response codes. * * failMessage could re-spool for ValidUnsetAddresses, and * bounce InvalidAddresses. * */ //Assume it is a permanent exception, or prove ourselves otherwise boolean permanent = true; switch (sfe.getMessage().charAt(0)) { case '4': permanent = false; break; case '5': permanent = true; break; default: Exception nested = sfe.getNextException(); if (nested != null) { permanent = ('5' == nested.getMessage().charAt(0)); } } return failMessage(mail, sfe, permanent); } catch (MessagingException ex) { // We should do a better job checking this... if the failure is a general // connect exception, this is less descriptive than more specific SMTP command // failure... have to lookup and see what are the various Exception // possibilities //Unable to deliver message after numerous tries... fail accordingly return failMessage(mail, ex, ('5' == ex.getMessage().charAt(0))); } return true; }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/893dd84963d60dc5cf9a4eed55163e419562028a/RemoteDelivery.java/buggy/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 11795, 12, 6759, 2828, 4791, 16, 3877, 1339, 13, 288, 3639, 775, 288, 5411, 309, 261, 291, 2829, 13, 288, 7734, 613, 2932, 23089, 358, 11795, 315, 397, 4791, 18, 17994, 10663, 5411, 289, 5411, 22059, 1079, 883, 273, 4791, 18, 24906, 5621, 5411, 368, 1684, 392, 526, 434, 326, 12045, 487, 21352, 1887, 2184, 5411, 2200, 12045, 273, 4791, 18, 588, 22740, 5621, 5411, 21352, 1887, 3091, 8526, 273, 394, 21352, 1887, 63, 27925, 18, 1467, 1435, 15533, 5411, 509, 525, 273, 374, 31, 5411, 364, 261, 3198, 277, 273, 12045, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 525, 27245, 288, 7734, 11542, 1887, 4519, 337, 273, 261, 6759, 1887, 13, 77, 18, 4285, 5621, 7734, 3091, 63, 78, 65, 273, 4519, 337, 18, 869, 26562, 1887, 5621, 5411, 289, 5411, 368, 42, 15906, 596, 1492, 7084, 358, 775, 358, 1366, 358, 18, 225, 1220, 1849, 5411, 368, 225, 903, 6887, 777, 326, 3323, 1018, 7084, 5411, 2200, 1018, 11913, 273, 446, 31, 5411, 309, 261, 11127, 2081, 422, 446, 13, 288, 7734, 11542, 1887, 4519, 337, 273, 261, 6759, 1887, 13, 12045, 18, 9838, 7675, 4285, 5621, 7734, 514, 1479, 273, 4519, 337, 18, 588, 2594, 5621, 7734, 368, 6609, 326, 3323, 5774, 7734, 1018, 11913, 273, 31991, 278, 1042, 7675, 588, 6759, 11913, 12, 2564, 1769, 7734, 309, 261, 3299, 11913, 18, 1467, 1435, 422, 374, 13, 288, 10792, 613, 2932, 2279, 4791, 1438, 1392, 364, 30, 315, 397, 1479, 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, 11795, 12, 6759, 2828, 4791, 16, 3877, 1339, 13, 288, 3639, 775, 288, 5411, 309, 261, 291, 2829, 13, 288, 7734, 613, 2932, 23089, 358, 11795, 315, 397, 4791, 18, 17994, 10663, 5411, 289, 5411, 22059, 1079, 883, 273, 4791, 18, 24906, 5621, 5411, 368, 1684, 392, 526, 434, 326, 12045, 487, 21352, 1887, 2184, 5411, 2200, 12045, 273, 4791, 18, 588, 22740, 5621, 5411, 21352, 1887, 3091, 8526, 273, 394, 21352, 1887, 63, 27925, 18, 1467, 1435, 15533, 5411, 509, 525, 273, 374, 31, 5411, 364, 261, 3198, 277, 273, 12045, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 525, 27245, 288, 7734, 11542, 1887, 4519, 337, 273, 261, 6759, 1887, 13, 77, 18, 4285, 2 ]
player.pickMarker());
selectedMarkerId);
public static void main(String [] args) { JFrame frame = new JFrame("testing SplitLegion"); int scale = Scale.get(); frame.setSize(new Dimension(80 * scale, 80 * scale)); frame.pack(); frame.setVisible(true); Game game = new Game(); game.initBoard(); MasterHex hex = game.getBoard().getHexByLabel("130"); game.addPlayer("Test"); Player player = game.getPlayer(0); player.setTower(1); player.setColor("Red"); player.initMarkersAvailable(); String selectedMarkerId = player.selectMarkerId("Rd01"); Legion legion = Legion.getStartingLegion(selectedMarkerId, hex.getLabel(), player.getName(), game); player.addLegion(legion); Marker marker = new Marker(4 * scale, selectedMarkerId, frame, game); legion.setMarker(marker); String retval = SplitLegion.splitLegion(frame, legion, player.pickMarker()); System.out.println(retval); System.exit(0); }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/86902f81e383916ddb285ab20096b96c43d25f36/SplitLegion.java/clean/Colossus/SplitLegion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5378, 833, 13, 565, 288, 3639, 804, 3219, 2623, 273, 394, 804, 3219, 2932, 3813, 310, 5385, 8329, 285, 8863, 3639, 509, 3159, 273, 12591, 18, 588, 5621, 3639, 2623, 18, 542, 1225, 12, 2704, 13037, 12, 3672, 380, 3159, 16, 8958, 380, 3159, 10019, 3639, 2623, 18, 2920, 5621, 3639, 2623, 18, 542, 6207, 12, 3767, 1769, 3639, 14121, 7920, 273, 394, 14121, 5621, 3639, 7920, 18, 2738, 22233, 5621, 3639, 13453, 7037, 3827, 273, 7920, 18, 588, 22233, 7675, 588, 7037, 858, 2224, 2932, 24417, 8863, 3639, 7920, 18, 1289, 12148, 2932, 4709, 8863, 3639, 19185, 7291, 273, 7920, 18, 588, 12148, 12, 20, 1769, 3639, 7291, 18, 542, 56, 2085, 12, 21, 1769, 3639, 7291, 18, 542, 2957, 2932, 3715, 8863, 3639, 7291, 18, 2738, 21644, 5268, 5621, 3639, 514, 3170, 7078, 548, 273, 7291, 18, 4025, 7078, 548, 2932, 54, 72, 1611, 8863, 3639, 17167, 285, 4553, 285, 273, 17167, 285, 18, 588, 11715, 8329, 285, 12, 8109, 7078, 548, 16, 5411, 3827, 18, 588, 2224, 9334, 7291, 18, 17994, 9334, 7920, 1769, 3639, 7291, 18, 1289, 8329, 285, 12, 1935, 285, 1769, 3639, 14742, 5373, 273, 394, 14742, 12, 24, 380, 3159, 16, 3170, 7078, 548, 16, 2623, 16, 7920, 1769, 3639, 4553, 285, 18, 542, 7078, 12, 11145, 1769, 3639, 514, 5221, 273, 5385, 8329, 285, 18, 4939, 8329, 285, 12, 3789, 16, 4553, 285, 16, 5411, 3170, 7078, 548, 1769, 540, 2332, 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, 377, 1071, 760, 918, 2774, 12, 780, 5378, 833, 13, 565, 288, 3639, 804, 3219, 2623, 273, 394, 804, 3219, 2932, 3813, 310, 5385, 8329, 285, 8863, 3639, 509, 3159, 273, 12591, 18, 588, 5621, 3639, 2623, 18, 542, 1225, 12, 2704, 13037, 12, 3672, 380, 3159, 16, 8958, 380, 3159, 10019, 3639, 2623, 18, 2920, 5621, 3639, 2623, 18, 542, 6207, 12, 3767, 1769, 3639, 14121, 7920, 273, 394, 14121, 5621, 3639, 7920, 18, 2738, 22233, 5621, 3639, 13453, 7037, 3827, 273, 7920, 18, 588, 22233, 7675, 588, 7037, 858, 2224, 2932, 24417, 8863, 3639, 7920, 18, 1289, 12148, 2932, 4709, 8863, 3639, 19185, 7291, 273, 7920, 18, 588, 12148, 12, 20, 1769, 3639, 7291, 18, 542, 56, 2 ]
Modification modification = new Modification();
Modification modification = new Modification("buildstatus");
public List getModifications(Date lastBuild, Date unused) { List modifications = new ArrayList(); File logDirectory = new File(logDir); final String filename = Log.formatLogFileName(lastBuild); try { File[] newLogs = logDirectory.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { if (name.compareTo(filename) > 0 && Log.wasSuccessfulBuild(name)) { return true; } return false; } }); Modification mostRecent = null; for (int i = 0; i < newLogs.length; i++) { Modification modification = new Modification(); String name = newLogs[i].getName(); modification.modifiedTime = Log.parseDateFromLogFileName(name); modification.userName = "CruiseControl"; modification.comment = "New build"; modification.revision = Log.parseLabelFromLogFileName(name); modification.folderName = ""; modification.fileName = name; modification.type = "add"; if (mostRecent == null || modification.modifiedTime.after(mostRecent.modifiedTime)) { mostRecent = modification; } modifications.add(modification); } // This makes information about the most recent modification // available to Ant tasks if (mostRecent != null) { properties.put(MOST_RECENT_LOGFILE_KEY, mostRecent.fileName); properties.put(MOST_RECENT_LOGTIME_KEY, Project.getFormatedTime(mostRecent.modifiedTime)); properties.put(MOST_RECENT_LOGLABEL_KEY, mostRecent.revision); } } catch (Exception e) { LOG.error("Error checking for modifications", e); } return modifications; }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/6c388b514a0547682989734ceba9679338747a3a/BuildStatus.java/buggy/main/src/net/sourceforge/cruisecontrol/sourcecontrols/BuildStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 10197, 13, 288, 3639, 987, 17953, 273, 394, 2407, 5621, 3639, 1387, 613, 2853, 273, 394, 1387, 12, 1330, 1621, 1769, 3639, 727, 514, 1544, 273, 1827, 18, 2139, 1343, 4771, 12, 2722, 3116, 1769, 3639, 775, 288, 5411, 1387, 8526, 394, 7777, 273, 613, 2853, 18, 1098, 2697, 12, 2704, 16671, 1586, 1435, 288, 7734, 1071, 1250, 2791, 12, 812, 1577, 16, 514, 508, 13, 288, 10792, 309, 261, 529, 18, 9877, 774, 12, 3459, 13, 405, 374, 597, 1827, 18, 17416, 14277, 3116, 12, 529, 3719, 288, 13491, 327, 638, 31, 10792, 289, 10792, 327, 629, 31, 7734, 289, 5411, 15549, 5411, 3431, 1480, 4486, 17076, 273, 446, 31, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 394, 7777, 18, 2469, 31, 277, 27245, 288, 7734, 3431, 1480, 11544, 273, 394, 3431, 1480, 2932, 3510, 2327, 8863, 7734, 514, 508, 273, 394, 7777, 63, 77, 8009, 17994, 5621, 7734, 11544, 18, 7342, 950, 273, 1827, 18, 2670, 1626, 1265, 1343, 4771, 12, 529, 1769, 7734, 11544, 18, 1355, 461, 273, 315, 39, 8653, 784, 3367, 14432, 7734, 11544, 18, 3469, 273, 315, 1908, 1361, 14432, 7734, 11544, 18, 13057, 273, 1827, 18, 2670, 2224, 1265, 1343, 4771, 12, 529, 1769, 7734, 11544, 18, 5609, 461, 273, 1408, 31, 7734, 11544, 18, 17812, 273, 508, 31, 7734, 11544, 18, 723, 273, 315, 1289, 14432, 7734, 309, 261, 10329, 17076, 422, 446, 747, 11544, 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, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 10197, 13, 288, 3639, 987, 17953, 273, 394, 2407, 5621, 3639, 1387, 613, 2853, 273, 394, 1387, 12, 1330, 1621, 1769, 3639, 727, 514, 1544, 273, 1827, 18, 2139, 1343, 4771, 12, 2722, 3116, 1769, 3639, 775, 288, 5411, 1387, 8526, 394, 7777, 273, 613, 2853, 18, 1098, 2697, 12, 2704, 16671, 1586, 1435, 288, 7734, 1071, 1250, 2791, 12, 812, 1577, 16, 514, 508, 13, 288, 10792, 309, 261, 529, 18, 9877, 774, 12, 3459, 13, 405, 374, 597, 1827, 18, 17416, 14277, 3116, 12, 529, 3719, 288, 13491, 327, 638, 31, 10792, 289, 10792, 327, 629, 31, 7734, 289, 5411, 15549, 5411, 3431, 1480, 4486, 17076, 2 ]
gl.glBindTexture(GL.GL_TEXTURE_2D, dynamicTextureIDs[CA_TEXTURE_FORCE_TARGET]);
dynamicTextures[CA_TEXTURE_FORCE_TARGET].bind();
private void doSingleTimeStep(GL gl) { int temp; // Swap texture source & target indices & pointers // 0 = start from initial loaded texture // 1/2 = flip flop back and forth between targets & sources switch (flipState) { case 0: texHeightInput = dynamicTextureIDs[CA_TEXTURE_HEIGHT_SOURCE]; // initial height map. texHeightOutput = dynamicTextureIDs[CA_TEXTURE_HEIGHT_TARGET]; // next height map. texVelocityInput = dynamicTextureIDs[CA_TEXTURE_VELOCITY_SOURCE]; // initial velocity. texVelocityOutput = dynamicTextureIDs[CA_TEXTURE_VELOCITY_TARGET]; // next velocity. // Clear initial velocity texture to 0x80 == gray gl.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); gl.glClear(GL.GL_COLOR_BUFFER_BIT); // Now we need to copy the resulting pixels into the intermediate force field texture gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texVelocityInput); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); break; case 1: temp = texHeightInput; texHeightInput = texHeightOutput; texHeightOutput = temp; temp = texVelocityInput; texVelocityInput = texVelocityOutput; texVelocityOutput = temp; break; case 2: temp = texHeightInput; texHeightInput = texHeightOutput; texHeightOutput = temp; temp = texVelocityInput; texVelocityInput = texVelocityOutput; texVelocityOutput = temp; break; } // even if wireframe mode, render to texture as solid gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL); ///////////////////////////////////////////////////////////// // Render first 3 components of force from three neighbors // Offsets selected are 1 center texel for center height // and 3 of the 4 nearest neighbors. Texture selected // is same for all stages as we're turning height difference // of nearest neightbor texels into a force value. gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_NEIGHBOR_FORCE_CALC_1]); // set current source texture for stage 0 texture for (int i = 0; i < 4; i++) { gl.glActiveTexture(GL.GL_TEXTURE0 + i); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightInput); gl.glEnable(GL.GL_TEXTURE_2D); } int wrapMode = wrap ? GL.GL_REPEAT : GL.GL_CLAMP_TO_EDGE; gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, wrapMode); gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, wrapMode); // disable blending gl.glDisable(GL.GL_BLEND); // render using offset 1 (type 1 -- center + 3 of 4 nearest neighbors). gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 1, 0, 0, 0); // bind the vertex program to be used for this step and the next one. gl.glBindProgramARB(GL.GL_VERTEX_PROGRAM_ARB, vertexProgramID); gl.glEnable(GL.GL_VERTEX_PROGRAM_ARB); // render a screen quad. with texture coords doing difference of nearby texels for force calc. gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); // Now we need to copy the resulting pixels into the intermediate force field texture gl.glActiveTexture(GL.GL_TEXTURE2); gl.glBindTexture(GL.GL_TEXTURE_2D, dynamicTextureIDs[CA_TEXTURE_FORCE_INTERMEDIATE]); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); //////////////////////////////////////////////////////////////// // Now add in last component of force for the 4th neighbor // that we didn't have enough texture lookups to do in the // first pass gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_NEIGHBOR_FORCE_CALC_2]); // Cannot use additive blending as the force contribution might // be negative and would have to subtract from the dest. // We must instead use an additional texture as target and read // the previous partial 3-neighbor result into the pixel shader // for possible subtraction // Alphablend must be false //; t0 = center (same as last phase) //; t1 = 2nd axis final point (same as last phase) //; t2 = previous partial result texture sampled at center (result of last phase copied to texture) //; t3 = not used (disable now) gl.glTexParameterf(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, wrapMode); gl.glTexParameterf(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, wrapMode); gl.glActiveTexture(GL.GL_TEXTURE3); gl.glDisable(GL.GL_TEXTURE_2D); // vertex program already bound. // render using offset 2 (type 2 -- final nearest neighbor plus center of previous result). gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 2, 0, 0, 0); // render a screen quad gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); // Now we need to copy the resulting pixels into the intermediate force field texture gl.glActiveTexture(GL.GL_TEXTURE1); gl.glBindTexture(GL.GL_TEXTURE_2D, dynamicTextureIDs[CA_TEXTURE_FORCE_TARGET]); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); ///////////////////////////////////////////////////////////////// // Apply the force with a scale factor to reduce it's magnitude. // Add this to the current texture representing the water height. gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_APPLY_FORCE]); // use offsets of zero gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 0, 0, 0, 0); // bind the vertex program to be used for this step and the next one. gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texVelocityInput); gl.glActiveTexture(GL.GL_TEXTURE1); gl.glBindTexture(GL.GL_TEXTURE_2D, dynamicTextureIDs[CA_TEXTURE_FORCE_TARGET]); gl.glActiveTexture(GL.GL_TEXTURE2); gl.glDisable(GL.GL_TEXTURE_2D); gl.glActiveTexture(GL.GL_TEXTURE3); gl.glDisable(GL.GL_TEXTURE_2D); // Draw the quad to add in force. gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); /////////////////////////////////////////////////////////////////// // With velocity texture selected, render new excitation droplets // at random freq. float randomFrequency = (float) Math.random(); if (dropletFrequency > randomFrequency) { // a drop falls - decide where Droplet drop = new Droplet(2 * ((float)Math.random() - 0.5f), 2 * ((float)Math.random() - 0.5f), 0.02f + 0.1f * ((float)Math.random())); addDroplet(drop); } // Now draw the droplets: if (!droplets.isEmpty()) { drawDroplets(gl); droplets.clear(); } // Now we need to copy the resulting pixels into the velocity texture gl.glActiveTexture(GL.GL_TEXTURE1); gl.glBindTexture(GL.GL_TEXTURE_2D, texVelocityOutput); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); ////////////////////////////////////////////////////////////////////// // Apply velocity to position gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_APPLY_VELOCITY]); gl.glEnable(GL.GL_VERTEX_PROGRAM_ARB); gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightInput); gl.glActiveTexture(GL.GL_TEXTURE1); // velocity output already bound gl.glEnable(GL.GL_TEXTURE_2D); // use offsets of zero gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 0, 0, 0, 0); // Draw the quad to add in force. gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); // Now we need to copy the resulting pixels into the input height texture gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightInput); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); /////////////////////////////////////////////////////////////////// // blur positions to smooth noise & generaly dampen things // degree of blur is controlled by magnitude of 4 neighbor texel // offsets with bilinear on for (int i = 1; i < 4; i++) { gl.glActiveTexture(GL.GL_TEXTURE0 + i); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightInput); gl.glEnable(GL.GL_TEXTURE_2D); } // use offsets of 3 gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 3, 0, 0, 0); gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_EQ_WEIGHT_COMBINE]); gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); // Draw the logo in the water. if (applyInteriorBoundaries) { gl.glDisable(GL.GL_VERTEX_PROGRAM_ARB); drawInteriorBoundaryObjects(gl); } // Now we need to copy the resulting pixels into the velocity texture gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightOutput); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); /////////////////////////////////////////////////////////////////// // If selected, create a normal map from the height if (createNormalMap) { createNormalMap(gl); } /////////////////////////////////////////////////////////// // Flip the state variable for the next round of rendering switch (flipState) { case 0: flipState = 1; break; case 1: flipState = 2; break; case 2: flipState = 1; break; } }
8999 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8999/2e32df6eb0181d50f002e0dfe055572b60088428/Water.java/buggy/src/demos/proceduralTexturePhysics/Water.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 741, 5281, 950, 4160, 12, 11261, 5118, 13, 288, 565, 509, 1906, 31, 565, 368, 12738, 11428, 1084, 473, 1018, 4295, 473, 13857, 565, 368, 225, 374, 273, 787, 628, 2172, 4203, 11428, 565, 368, 225, 404, 19, 22, 273, 9668, 284, 16884, 1473, 471, 364, 451, 3086, 5774, 473, 5550, 565, 1620, 261, 12357, 1119, 13, 288, 565, 648, 374, 30, 1377, 16573, 2686, 1210, 565, 273, 5976, 10967, 5103, 63, 3587, 67, 24652, 67, 14595, 67, 6537, 15533, 4202, 368, 2172, 2072, 852, 18, 1377, 16573, 2686, 1447, 282, 273, 5976, 10967, 5103, 63, 3587, 67, 24652, 67, 14595, 67, 16374, 15533, 565, 368, 1024, 2072, 852, 18, 1377, 16573, 27522, 1210, 225, 273, 5976, 10967, 5103, 63, 3587, 67, 24652, 67, 24397, 39, 4107, 67, 6537, 15533, 225, 368, 2172, 14767, 18, 1377, 16573, 27522, 1447, 273, 5976, 10967, 5103, 63, 3587, 67, 24652, 67, 24397, 39, 4107, 67, 16374, 15533, 225, 368, 1024, 14767, 18, 1377, 368, 10121, 2172, 14767, 11428, 358, 374, 92, 3672, 422, 16937, 1377, 5118, 18, 7043, 9094, 2957, 12, 20, 18, 25, 74, 16, 374, 18, 25, 74, 16, 374, 18, 25, 74, 16, 404, 18, 20, 74, 1769, 1377, 5118, 18, 7043, 9094, 12, 11261, 18, 11261, 67, 10989, 67, 11302, 67, 15650, 1769, 1377, 368, 4494, 732, 1608, 358, 1610, 326, 8156, 8948, 1368, 326, 12110, 2944, 652, 11428, 1377, 5118, 18, 7043, 3896, 10967, 12, 11261, 18, 11261, 67, 24652, 20, 1769, 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, 5281, 950, 4160, 12, 11261, 5118, 13, 288, 565, 509, 1906, 31, 565, 368, 12738, 11428, 1084, 473, 1018, 4295, 473, 13857, 565, 368, 225, 374, 273, 787, 628, 2172, 4203, 11428, 565, 368, 225, 404, 19, 22, 273, 9668, 284, 16884, 1473, 471, 364, 451, 3086, 5774, 473, 5550, 565, 1620, 261, 12357, 1119, 13, 288, 565, 648, 374, 30, 1377, 16573, 2686, 1210, 565, 273, 5976, 10967, 5103, 63, 3587, 67, 24652, 67, 14595, 67, 6537, 15533, 4202, 368, 2172, 2072, 852, 18, 1377, 16573, 2686, 1447, 282, 273, 5976, 10967, 5103, 63, 3587, 67, 24652, 67, 14595, 67, 16374, 15533, 565, 368, 1024, 2072, 852, 18, 1377, 16573, 27522, 1210, 225, 273, 2 ]
public void begin( InterpretationContext ec, String localName, Attributes attributes) { //LogLog.debug("in NestComponentIA begin method"); // get the action data object pushed in isApplicable() method call ImplicitActionData actionData = (ImplicitActionData) actionDataStack.peek(); String className = attributes.getValue(CLASS_ATTRIBUTE); // perform variable name substitution className = ec.subst(className); if (OptionHelper.isEmpty(className)) { actionData.inError = true; String errMsg = "No class name attribute in <" + localName + ">"; addError(errMsg); return; } try { //getLogger().debug( // "About to instantiate component <{}> of type [{}]", localName, // className); // FIXME: Loading classes should be governed by config file rules. actionData.nestedComponent = Loader.loadClass(className).newInstance(); // pass along the repository if(actionData.nestedComponent instanceof ContextAware) { ((ContextAware) actionData.nestedComponent).setContext(this.context); } //getLogger().debug( addInfo("Pushing component <"+localName+"> on top of the object stack."); ec.pushObject(actionData.nestedComponent); } catch (Exception oops) { actionData.inError = true; String msg = "Could not create component <" + localName + "> of type ["+className+"]"; addError(msg, oops); } }
46578 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46578/445c93509c33d1cf431a1f997c92db98d3b8fd69/NestedComponentIA.java/clean/logback-core/src/main/java/ch/qos/logback/core/joran/action/NestedComponentIA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2376, 12, 565, 5294, 15089, 367, 1042, 6557, 16, 514, 11927, 16, 9055, 1677, 13, 288, 565, 368, 1343, 1343, 18, 4148, 2932, 267, 423, 395, 1841, 15188, 2376, 707, 8863, 565, 368, 336, 326, 1301, 501, 733, 18543, 316, 353, 27873, 1435, 707, 745, 565, 26142, 1803, 751, 1301, 751, 273, 261, 15787, 1803, 751, 13, 1301, 751, 2624, 18, 347, 3839, 5621, 565, 514, 2658, 273, 1677, 18, 24805, 12, 5237, 67, 11616, 1769, 565, 368, 3073, 2190, 508, 12785, 565, 2658, 273, 6557, 18, 1717, 334, 12, 12434, 1769, 565, 309, 261, 1895, 2276, 18, 291, 1921, 12, 12434, 3719, 288, 1377, 1301, 751, 18, 267, 668, 273, 638, 31, 1377, 514, 12412, 273, 315, 2279, 667, 508, 1566, 316, 411, 6, 397, 11927, 397, 14675, 31, 1377, 9501, 12, 370, 3332, 1769, 1377, 327, 31, 565, 289, 565, 775, 288, 1377, 368, 588, 3328, 7675, 4148, 12, 1377, 368, 225, 315, 24813, 358, 10275, 1794, 411, 2916, 34, 434, 618, 17936, 3113, 11927, 16, 1377, 368, 225, 2658, 1769, 1377, 368, 9852, 30, 4444, 310, 3318, 1410, 506, 314, 1643, 11748, 635, 642, 585, 2931, 18, 4202, 1301, 751, 18, 12985, 1841, 273, 13920, 18, 945, 797, 12, 12434, 2934, 2704, 1442, 5621, 5411, 368, 1342, 7563, 326, 3352, 1377, 309, 12, 1128, 751, 18, 12985, 1841, 1276, 1772, 10155, 13, 288, 3639, 14015, 1042, 10155, 13, 1301, 751, 18, 12985, 1841, 2934, 542, 1042, 12, 2211, 18, 2472, 1769, 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, 2376, 12, 565, 5294, 15089, 367, 1042, 6557, 16, 514, 11927, 16, 9055, 1677, 13, 288, 565, 368, 1343, 1343, 18, 4148, 2932, 267, 423, 395, 1841, 15188, 2376, 707, 8863, 565, 368, 336, 326, 1301, 501, 733, 18543, 316, 353, 27873, 1435, 707, 745, 565, 26142, 1803, 751, 1301, 751, 273, 261, 15787, 1803, 751, 13, 1301, 751, 2624, 18, 347, 3839, 5621, 565, 514, 2658, 273, 1677, 18, 24805, 12, 5237, 67, 11616, 1769, 565, 368, 3073, 2190, 508, 12785, 565, 2658, 273, 6557, 18, 1717, 334, 12, 12434, 1769, 565, 309, 261, 1895, 2276, 18, 291, 1921, 12, 12434, 3719, 288, 1377, 1301, 751, 18, 267, 668, 273, 638, 31, 1377, 514, 12412, 2 ]
openPerspMode = IPreferenceConstants.OPM_ACTIVE_PAGE; }
openPerspMode = IPreferenceConstants.OPM_ACTIVE_PAGE; }
public void widgetSelected(SelectionEvent e) { openPerspMode = IPreferenceConstants.OPM_ACTIVE_PAGE; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/746367859d59773cbeff2310599d50ef5545f979/PerspectivesPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PerspectivesPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 1696, 14781, 84, 2309, 273, 467, 9624, 2918, 18, 3665, 49, 67, 13301, 67, 11219, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 1696, 14781, 84, 2309, 273, 467, 9624, 2918, 18, 3665, 49, 67, 13301, 67, 11219, 31, 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 ]
throws TransformerException { System.err.println("FATAL: "+e.getMessageAndLocation());
throws TransformerException { System.err.println("FATAL: " + e.getMessageAndLocation());
public void fatalError(TransformerException e) throws TransformerException { System.err.println("FATAL: "+e.getMessageAndLocation()); Throwable wrapped = e.getException(); if (wrapped != null) System.err.println(" : "+wrapped.getMessage()); throw(e); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/ee5f7629a90e982a1395486f1cb4e74a3269d07f/TransformerImpl.java/buggy/src/org/apache/xalan/xsltc/trax/TransformerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10081, 668, 12, 8319, 503, 425, 13, 202, 15069, 21684, 288, 202, 3163, 18, 370, 18, 8222, 2932, 29891, 30, 13773, 73, 18, 24906, 1876, 2735, 10663, 202, 15155, 5805, 273, 425, 18, 588, 503, 5621, 202, 430, 261, 18704, 480, 446, 13, 202, 565, 2332, 18, 370, 18, 8222, 2932, 377, 294, 13773, 18704, 18, 24906, 10663, 202, 12849, 12, 73, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 10081, 668, 12, 8319, 503, 425, 13, 202, 15069, 21684, 288, 202, 3163, 18, 370, 18, 8222, 2932, 29891, 30, 13773, 73, 18, 24906, 1876, 2735, 10663, 202, 15155, 5805, 273, 425, 18, 588, 503, 5621, 202, 430, 261, 18704, 480, 446, 13, 202, 565, 2332, 18, 370, 18, 8222, 2932, 377, 294, 13773, 18704, 18, 24906, 10663, 202, 12849, 12, 73, 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 ]
private Chart getConvertedChart( Chart currentChart, String sNewSubType, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); if ( ( currentChart instanceof ChartWithAxes ) ) { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithoutAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); if ( !currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( helperModel.getSampleData( ) ) ); } currentChart.setScript( helperModel.getScript( ) ); if ( helperModel.isSetSeriesThickness( ) ) { currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); } else { currentChart.setSeriesThickness( 15 ); } currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getGridColumnCount( ) > 0 ) { currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); } else { currentChart.setGridColumnCount( 1 ); } // Copy series definitions from old chart ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .add( ( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ); Vector vOSD = new Vector( ); EList axesOrthogonal = ( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axesOrthogonal.size( ); i++ ) { EList osd = ( (Axis) axesOrthogonal.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < osd.size( ); j++ ) { SeriesDefinition sd = (SeriesDefinition) osd.get( j ); Series series = sd.getDesignTimeSeries( ); sd.getSeries( ).clear( ); sd.getSeries( ).add( getConvertedSeries( series ) ); vOSD.add( sd ); } } ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).clear( ); ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).addAll( vOSD ); // Set the legend item type t Categories to have the chart behave as // expected by default. currentChart.getLegend( ) .setItemType( LegendItemType.CATEGORIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } else if ( currentChart instanceof ChartWithoutAxes ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSubType( sNewSubType ); if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } if ( !currentChart.isSetSeriesThickness( ) ) { currentChart.setSeriesThickness( 15 ); } } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithoutAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); // Clear existing series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .clear( ); // Copy series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .addAll( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) ); // Update the series EList seriesdefinitions = ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ); Series series; for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } currentChart.getLegend( ) .setItemType( LegendItemType.CATEGORIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } } else { return null; } return currentChart; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/afaae2e20ac670dea4214a8e9c6bcef7f6f44e06/PieChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 780, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 783, 7984, 11272, 202, 202, 430, 261, 261, 783, 7984, 1276, 14804, 1190, 26494, 262, 262, 202, 202, 95, 1082, 202, 759, 1788, 279, 394, 791, 434, 326, 3434, 618, 471, 444, 2172, 1082, 202, 759, 1790, 1082, 202, 2972, 7984, 273, 14804, 8073, 26494, 2828, 18, 2640, 12, 11272, 1082, 202, 2972, 7984, 18, 542, 559, 12, 3463, 67, 23225, 11272, 1082, 202, 2972, 7984, 18, 542, 30511, 12, 272, 1908, 30511, 11272, 1082, 202, 2972, 7984, 18, 542, 8611, 12, 20283, 1290, 12, 272, 1908, 8611, 262, 11272, 1082, 202, 759, 5631, 5210, 4980, 1790, 628, 326, 1592, 4980, 1082, 202, 2972, 7984, 18, 542, 1768, 12, 4222, 1488, 18, 588, 1768, 12, 262, 11272, 1082, 202, 2972, 7984, 18, 542, 3291, 12, 4222, 1488, 18, 588, 3291, 12, 262, 11272, 1082, 202, 2972, 7984, 18, 542, 6313, 1494, 1380, 12, 4222, 1488, 18, 588, 6313, 1494, 1380, 12, 262, 11272, 1082, 202, 430, 261, 401, 2972, 7984, 18, 588, 559, 12, 262, 18, 14963, 12, 5377, 7984, 18, 2399, 67, 23225, 262, 6862, 202, 10, 10, 401, 2972, 7984, 18, 588, 559, 12, 262, 18, 14963, 12, 16654, 7984, 18, 2399, 67, 23225, 262, 6862, 202, 10, 10, 401, 2972, 7984, 18, 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, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 780, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 783, 7984, 11272, 202, 202, 430, 261, 261, 783, 7984, 1276, 14804, 1190, 26494, 262, 262, 202, 202, 95, 1082, 202, 759, 1788, 279, 394, 791, 434, 326, 3434, 618, 471, 444, 2172, 1082, 202, 759, 1790, 1082, 202, 2972, 7984, 273, 14804, 8073, 26494, 2828, 18, 2640, 12, 11272, 1082, 202, 2972, 7984, 18, 542, 559, 12, 3463, 67, 23225, 11272, 1082, 202, 2972, 7984, 18, 542, 30511, 12, 272, 1908, 30511, 11272, 1082, 202, 2972, 7984, 2 ]
limit = type + 4;
limit = type + 4;
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; if (w < 0 || h < 0) limit = -1; else if (e == 0) limit = type; else if (e <= Math.PI / 2.0) limit = type + 1; else if (e <= Math.PI) limit = type + 2; else if (e <= 3.0 * (Math.PI / 2.0)) limit = type + 3; else limit = type + 4; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b20d0a695843e575c328a55000265cb08be3480d/Arc2D.java/buggy/libraries/javalib/java/awt/geom/Arc2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 24881, 3198, 12, 14598, 22, 40, 279, 16, 23906, 558, 4059, 619, 687, 13, 565, 288, 1377, 333, 18, 92, 687, 273, 619, 687, 31, 1377, 619, 273, 279, 18, 588, 60, 5621, 1377, 677, 273, 279, 18, 588, 61, 5621, 1377, 341, 273, 279, 18, 588, 2384, 5621, 1377, 366, 273, 279, 18, 588, 2686, 5621, 1377, 787, 273, 279, 18, 588, 8467, 1685, 1435, 380, 261, 10477, 18, 1102, 342, 9259, 1769, 1377, 11933, 273, 279, 18, 588, 8467, 17639, 1435, 380, 261, 10477, 18, 1102, 342, 9259, 1769, 1377, 618, 273, 279, 18, 723, 31, 1377, 1645, 425, 273, 11933, 411, 374, 692, 300, 18181, 294, 11933, 31, 1377, 309, 261, 91, 411, 374, 747, 366, 411, 374, 13, 3639, 1800, 273, 300, 21, 31, 1377, 469, 309, 261, 73, 422, 374, 13, 3639, 1800, 273, 618, 31, 1377, 469, 309, 261, 73, 1648, 2361, 18, 1102, 342, 576, 18, 20, 13, 3639, 1800, 273, 618, 397, 404, 31, 1377, 469, 309, 261, 73, 1648, 2361, 18, 1102, 13, 3639, 1800, 273, 618, 397, 576, 31, 1377, 469, 309, 261, 73, 1648, 890, 18, 20, 380, 261, 10477, 18, 1102, 342, 576, 18, 20, 3719, 3639, 1800, 273, 618, 397, 890, 31, 1377, 469, 3639, 1800, 273, 618, 397, 1059, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 24881, 3198, 12, 14598, 22, 40, 279, 16, 23906, 558, 4059, 619, 687, 13, 565, 288, 1377, 333, 18, 92, 687, 273, 619, 687, 31, 1377, 619, 273, 279, 18, 588, 60, 5621, 1377, 677, 273, 279, 18, 588, 61, 5621, 1377, 341, 273, 279, 18, 588, 2384, 5621, 1377, 366, 273, 279, 18, 588, 2686, 5621, 1377, 787, 273, 279, 18, 588, 8467, 1685, 1435, 380, 261, 10477, 18, 1102, 342, 9259, 1769, 1377, 11933, 273, 279, 18, 588, 8467, 17639, 1435, 380, 261, 10477, 18, 1102, 342, 9259, 1769, 1377, 618, 273, 279, 18, 723, 31, 1377, 1645, 425, 273, 11933, 411, 374, 692, 300, 18181, 294, 11933, 31, 1377, 309, 261, 91, 411, 374, 747, 2 ]
private String tr(RubyString search, RubyString replace, boolean squeeze) { String srchSpec = search.getValue();
private String tr(IRubyObject search, IRubyObject replace, boolean squeeze) { String srchSpec = search.convertToString().getValue();
private String tr(RubyString search, RubyString replace, boolean squeeze) { String srchSpec = search.getValue(); String srch = expandTemplate(srchSpec, true); if (srchSpec.startsWith("^")) { StringBuffer sbuf = new StringBuffer(256); for (int i = 0; i < 256; i++) { char c = (char) i; if (srch.indexOf(c) == -1) { sbuf.append(c); } } srch = sbuf.toString(); } String repl = expandTemplate(replace.getValue(), false); int strLen = getValue().length(); if (strLen == 0 || srch.length() == 0) { return getValue(); } int repLen = repl.length(); StringBuffer sbuf = new StringBuffer(strLen); int last = -1; for (int i = 0; i < strLen; i++) { char cs = getValue().charAt(i); int pos = srch.indexOf(cs); if (pos == -1) { sbuf.append(cs); last = -1; } else if (repLen > 0) { char cr = repl.charAt(Math.min(pos, repLen - 1)); if (squeeze && cr == last) { continue; } sbuf.append(cr); last = cr; } } return sbuf.toString(); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 433, 12, 54, 10340, 780, 1623, 16, 19817, 780, 1453, 16, 1250, 17173, 13, 288, 202, 202, 780, 9133, 343, 1990, 273, 1623, 18, 24805, 5621, 202, 202, 780, 9133, 343, 273, 4542, 2283, 12, 11254, 343, 1990, 16, 638, 1769, 202, 202, 430, 261, 11254, 343, 1990, 18, 17514, 1190, 2932, 66, 6, 3719, 288, 1082, 202, 780, 1892, 2393, 696, 273, 394, 6674, 12, 5034, 1769, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 8303, 31, 277, 27245, 288, 9506, 202, 3001, 276, 273, 261, 3001, 13, 277, 31, 9506, 202, 430, 261, 11254, 343, 18, 31806, 12, 71, 13, 422, 300, 21, 13, 288, 6862, 202, 87, 4385, 18, 6923, 12, 71, 1769, 9506, 202, 97, 1082, 202, 97, 1082, 202, 11254, 343, 273, 2393, 696, 18, 10492, 5621, 202, 202, 97, 202, 202, 780, 6831, 273, 4542, 2283, 12, 2079, 18, 24805, 9334, 629, 1769, 202, 202, 474, 609, 2891, 273, 2366, 7675, 2469, 5621, 202, 202, 430, 261, 701, 2891, 422, 374, 747, 9133, 343, 18, 2469, 1435, 422, 374, 13, 288, 1082, 202, 2463, 2366, 5621, 202, 202, 97, 202, 202, 474, 2071, 2891, 273, 6831, 18, 2469, 5621, 202, 202, 780, 1892, 2393, 696, 273, 394, 6674, 12, 701, 2891, 1769, 202, 202, 474, 1142, 273, 300, 21, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 609, 2891, 31, 277, 27245, 288, 1082, 202, 3001, 2873, 273, 2366, 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, 225, 202, 1152, 514, 433, 12, 54, 10340, 780, 1623, 16, 19817, 780, 1453, 16, 1250, 17173, 13, 288, 202, 202, 780, 9133, 343, 1990, 273, 1623, 18, 24805, 5621, 202, 202, 780, 9133, 343, 273, 4542, 2283, 12, 11254, 343, 1990, 16, 638, 1769, 202, 202, 430, 261, 11254, 343, 1990, 18, 17514, 1190, 2932, 66, 6, 3719, 288, 1082, 202, 780, 1892, 2393, 696, 273, 394, 6674, 12, 5034, 1769, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 8303, 31, 277, 27245, 288, 9506, 202, 3001, 276, 273, 261, 3001, 13, 277, 31, 9506, 202, 430, 261, 11254, 343, 18, 31806, 12, 71, 13, 422, 300, 21, 13, 288, 6862, 202, 87, 4385, 18, 2 ]
if (hilliness > 1000) { hilliness = 1000;
if (hilliness > 99) { hilliness = 99;
public void validateMapGenParameters() { if (hilliness < 0) { hilliness = 0; } if (hilliness > 1000) { hilliness = 1000; } if (range < 0 ) { range = 0; } if (minWaterSpots < 0) { minWaterSpots = 0; } if (maxWaterSpots < minWaterSpots) { maxWaterSpots = minWaterSpots; } if (minWaterSize < 0) { minWaterSize = 0; } if (maxWaterSize < minWaterSize) { maxWaterSize = minWaterSize; } if (probDeep < 0) { probDeep = 0; } if (probDeep > 100) { probDeep = 100; } if (minForestSpots < 0) { minForestSpots = 0; } if (maxForestSpots < minForestSpots) { maxForestSpots = minForestSpots; } if (minForestSize < 0) { minForestSize = 0; } if (maxForestSize < minForestSize) { maxForestSize = minForestSize; } if (probHeavy < 0) { probHeavy = 0; } if (probHeavy > 100) { probHeavy = 100; } if (minRoughSpots < 0) { minRoughSpots = 0; } if (maxRoughSpots < minRoughSpots) { maxRoughSpots = minRoughSpots; } if (minRoughSize < 0) { minRoughSize = 0; } if (maxRoughSize < minRoughSize) { maxRoughSize = minRoughSize; } if (minSwampSpots < 0) { minSwampSpots = 0; } if (maxSwampSpots < minSwampSpots) { maxSwampSpots = minSwampSpots; } if (minSwampSize < 0) { minSwampSize = 0; } if (maxSwampSize < minSwampSize) { maxSwampSize = minSwampSize; } if (probRoad < 0) { probRoad = 0; } if (probRoad > 100) { probRoad = 100; } if (probInvert < 0) { probInvert = 0; } if (probInvert > 100) { probInvert = 100; } if (probRiver < 0) { probRiver = 0; } if (probRiver > 100) { probRiver = 100; } if (probCrater < 0) { probCrater = 0; } if (probCrater > 100) { probCrater = 100; } if (minRadius < 0) { minRadius = 0; } if (maxRadius < minRadius) { maxRadius = minRadius; } if (minCraters < 0 ) { minCraters = 0; } if (maxCraters < minCraters) { maxCraters = minCraters; } if (algorithmToUse < 0) { algorithmToUse = 0; } if (algorithmToUse > 2) { algorithmToUse = 2; } } /* validateMapGenParameters */
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/a63109655931e71b9b5a873a31af0d6a779aa4a0/MapSettings.java/buggy/megamek/src/megamek/common/MapSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1954, 863, 7642, 2402, 1435, 288, 565, 309, 261, 76, 737, 6336, 411, 374, 13, 288, 3639, 366, 737, 6336, 273, 374, 31, 565, 289, 565, 309, 261, 76, 737, 6336, 405, 4336, 13, 288, 3639, 366, 737, 6336, 273, 4336, 31, 565, 289, 565, 309, 261, 3676, 411, 374, 262, 288, 3639, 1048, 273, 374, 31, 565, 289, 4202, 309, 261, 1154, 24064, 3389, 6968, 411, 374, 13, 288, 3639, 1131, 24064, 3389, 6968, 273, 374, 31, 565, 289, 565, 309, 261, 1896, 24064, 3389, 6968, 411, 1131, 24064, 3389, 6968, 13, 288, 3639, 943, 24064, 3389, 6968, 273, 1131, 24064, 3389, 6968, 31, 565, 289, 565, 309, 261, 1154, 24064, 1225, 411, 374, 13, 288, 3639, 1131, 24064, 1225, 273, 374, 31, 565, 289, 565, 309, 261, 1896, 24064, 1225, 411, 1131, 24064, 1225, 13, 288, 3639, 943, 24064, 1225, 273, 1131, 24064, 1225, 31, 565, 289, 565, 309, 261, 7748, 13980, 411, 374, 13, 288, 3639, 3137, 13980, 273, 374, 31, 565, 289, 565, 309, 261, 7748, 13980, 405, 2130, 13, 288, 3639, 3137, 13980, 273, 2130, 31, 565, 289, 565, 309, 261, 1154, 13573, 334, 3389, 6968, 411, 374, 13, 288, 3639, 1131, 13573, 334, 3389, 6968, 273, 374, 31, 565, 289, 565, 309, 261, 1896, 13573, 334, 3389, 6968, 411, 1131, 13573, 334, 3389, 6968, 13, 288, 3639, 943, 13573, 334, 3389, 6968, 273, 1131, 13573, 334, 3389, 6968, 31, 565, 289, 565, 309, 261, 1154, 13573, 334, 1225, 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, 1954, 863, 7642, 2402, 1435, 288, 565, 309, 261, 76, 737, 6336, 411, 374, 13, 288, 3639, 366, 737, 6336, 273, 374, 31, 565, 289, 565, 309, 261, 76, 737, 6336, 405, 4336, 13, 288, 3639, 366, 737, 6336, 273, 4336, 31, 565, 289, 565, 309, 261, 3676, 411, 374, 262, 288, 3639, 1048, 273, 374, 31, 565, 289, 4202, 309, 261, 1154, 24064, 3389, 6968, 411, 374, 13, 288, 3639, 1131, 24064, 3389, 6968, 273, 374, 31, 565, 289, 565, 309, 261, 1896, 24064, 3389, 6968, 411, 1131, 24064, 3389, 6968, 13, 288, 3639, 943, 24064, 3389, 6968, 273, 1131, 24064, 3389, 6968, 31, 565, 289, 565, 309, 261, 1154, 24064, 1225, 411, 374, 13, 2 ]
if (networkInterfaces == null) networkInterfaces = getRealNetworkInterfaces ();
Vector networkInterfaces = getRealNetworkInterfaces ();
public static Enumeration getNetworkInterfaces () throws SocketException { if (networkInterfaces == null) networkInterfaces = getRealNetworkInterfaces (); Enumeration tmp = networkInterfaces.elements (); if (tmp.hasMoreElements ()) return tmp; return null; }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/9457d1e514cd0c7531df656d96bba3557ced520c/NetworkInterface.java/clean/libjava/java/net/NetworkInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 13864, 28263, 10273, 1832, 565, 1216, 8758, 503, 225, 288, 565, 309, 261, 5185, 10273, 422, 446, 13, 1377, 2483, 10273, 273, 12361, 3906, 10273, 261, 1769, 565, 13864, 1853, 273, 2483, 10273, 18, 6274, 261, 1769, 565, 309, 261, 5645, 18, 5332, 7417, 3471, 1832, 13, 1377, 327, 1853, 31, 565, 327, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 13864, 28263, 10273, 1832, 565, 1216, 8758, 503, 225, 288, 565, 309, 261, 5185, 10273, 422, 446, 13, 1377, 2483, 10273, 273, 12361, 3906, 10273, 261, 1769, 565, 13864, 1853, 273, 2483, 10273, 18, 6274, 261, 1769, 565, 309, 261, 5645, 18, 5332, 7417, 3471, 1832, 13, 1377, 327, 1853, 31, 565, 327, 446, 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 ]
public void mTokens() throws RecognitionException { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT ) int alt16=58; alt16 = dfa16.predict(input); if (failed) return ; switch (alt16) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:10: T15 { mT15(); if (failed) return ; } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:14: T16 { mT16(); if (failed) return ; } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:18: T17 { mT17(); if (failed) return ; } break; case 4 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:22: T18 { mT18(); if (failed) return ; } break; case 5 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:26: T19 { mT19(); if (failed) return ; } break; case 6 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:30: T20 { mT20(); if (failed) return ; } break; case 7 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:34: T21 { mT21(); if (failed) return ; } break; case 8 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:38: T22 { mT22(); if (failed) return ; } break; case 9 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:42: T23 { mT23(); if (failed) return ; } break; case 10 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:46: T24 { mT24(); if (failed) return ; } break; case 11 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:50: T25 { mT25(); if (failed) return ; } break; case 12 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:54: T26 { mT26(); if (failed) return ; } break; case 13 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:58: T27 { mT27(); if (failed) return ; } break; case 14 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:62: T28 { mT28(); if (failed) return ; } break; case 15 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:66: T29 { mT29(); if (failed) return ; } break; case 16 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:70: T30 { mT30(); if (failed) return ; } break; case 17 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:74: T31 { mT31(); if (failed) return ; } break; case 18 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:78: T32 { mT32(); if (failed) return ; } break; case 19 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:82: T33 { mT33(); if (failed) return ; } break; case 20 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:86: T34 { mT34(); if (failed) return ; } break; case 21 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:90: T35 { mT35(); if (failed) return ; } break; case 22 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:94: T36 { mT36(); if (failed) return ; } break; case 23 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:98: T37 { mT37(); if (failed) return ; } break; case 24 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:102: T38 { mT38(); if (failed) return ; } break; case 25 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:106: T39 { mT39(); if (failed) return ; } break; case 26 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:110: T40 { mT40(); if (failed) return ; } break; case 27 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:114: T41 { mT41(); if (failed) return ; } break; case 28 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:118: T42 { mT42(); if (failed) return ; } break; case 29 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:122: T43 { mT43(); if (failed) return ; } break; case 30 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:126: T44 { mT44(); if (failed) return ; } break; case 31 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:130: T45 { mT45(); if (failed) return ; } break; case 32 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:134: T46 { mT46(); if (failed) return ; } break; case 33 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:138: T47 { mT47(); if (failed) return ; } break; case 34 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:142: T48 { mT48(); if (failed) return ; } break; case 35 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:146: T49 { mT49(); if (failed) return ; } break; case 36 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:150: T50 { mT50(); if (failed) return ; } break; case 37 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:154: T51 { mT51(); if (failed) return ; } break; case 38 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:158: T52 { mT52(); if (failed) return ; } break; case 39 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:162: T53 { mT53(); if (failed) return ; } break; case 40 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:166: T54 { mT54(); if (failed) return ; } break; case 41 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:170: T55 { mT55(); if (failed) return ; } break; case 42 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:174: T56 { mT56(); if (failed) return ; } break; case 43 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:178: T57 { mT57(); if (failed) return ; } break; case 44 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:182: T58 { mT58(); if (failed) return ; } break; case 45 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:186: T59 { mT59(); if (failed) return ; } break; case 46 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:190: T60 { mT60(); if (failed) return ; } break; case 47 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:194: T61 { mT61(); if (failed) return ; } break; case 48 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:198: MISC { mMISC(); if (failed) return ; } break; case 49 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:203: WS { mWS(); if (failed) return ; } break; case 50 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:206: EOL { mEOL(); if (failed) return ; } break; case 51 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:210: INT { mINT(); if (failed) return ; } break; case 52 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:214: FLOAT { mFLOAT(); if (failed) return ; } break; case 53 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:220: STRING { mSTRING(); if (failed) return ; } break; case 54 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:227: BOOL { mBOOL(); if (failed) return ; } break; case 55 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:232: ID { mID(); if (failed) return ; } break; case 56 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:235: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 57 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:264: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 58 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:292: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/cb210a30853642e270a3bba6ce570409f6046852/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 21, 30, 2163, 30, 261, 399, 3600, 571, 399, 2313, 571, 399, 4033, 571, 399, 2643, 571, 399, 3657, 571, 399, 3462, 571, 399, 5340, 571, 399, 3787, 571, 399, 4366, 571, 399, 3247, 571, 399, 2947, 571, 399, 5558, 571, 399, 5324, 571, 399, 6030, 571, 399, 5540, 571, 399, 5082, 571, 399, 6938, 571, 399, 1578, 571, 399, 3707, 571, 399, 5026, 571, 399, 4763, 571, 399, 5718, 571, 399, 6418, 571, 399, 7414, 571, 399, 5520, 571, 399, 7132, 571, 399, 9803, 571, 399, 9452, 571, 399, 8942, 571, 399, 6334, 571, 399, 7950, 571, 399, 8749, 571, 399, 9462, 571, 399, 8875, 571, 399, 7616, 571, 399, 3361, 571, 399, 10593, 571, 399, 9401, 571, 399, 8643, 571, 399, 6564, 571, 399, 2539, 571, 399, 4313, 571, 399, 10321, 571, 399, 8204, 571, 399, 6162, 571, 399, 4848, 571, 399, 9498, 571, 20806, 2312, 571, 7649, 571, 19995, 571, 6137, 571, 15483, 571, 9469, 571, 9784, 1741, 571, 1599, 571, 6122, 67, 15066, 67, 20184, 67, 5997, 67, 12200, 571, 385, 67, 15066, 67, 20184, 67, 5997, 67, 12200, 571, 27125, 67, 5997, 67, 12200, 262, 3639, 509, 3770, 2313, 33, 8204, 31, 3639, 3770, 2313, 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, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 21, 30, 2163, 30, 261, 399, 3600, 571, 399, 2313, 571, 399, 4033, 571, 399, 2643, 571, 399, 3657, 571, 399, 3462, 571, 399, 5340, 571, 399, 3787, 571, 399, 4366, 571, 399, 3247, 571, 399, 2947, 571, 399, 5558, 571, 399, 5324, 571, 399, 6030, 571, 399, 5540, 571, 399, 5082, 571, 399, 6938, 571, 399, 1578, 571, 399, 3707, 571, 399, 5026, 571, 399, 4763, 571, 399, 5718, 571, 399, 2 ]
System.out.println("Usage: MondrianFoodMartLoader [-verbose] [-tables] [-data] [-indexes] [-populationQueries]" +
System.out.println("Usage: MondrianFoodMartLoader [-tables] [-data] [-indexes] [-populationQueries]" +
public void usage() { System.out.println("Usage: MondrianFoodMartLoader [-verbose] [-tables] [-data] [-indexes] [-populationQueries]" + "-jdbcDrivers=<jdbcDriver> " + "-outputJdbcURL=<jdbcURL> [-outputJdbcUser=user] [-outputJdbcPassword=password]" + "[-outputJdbcBatchSize=<batch size>] " + "| " + "[-outputDirectory=<directory name>] " + "[" + " [-inputJdbcURL=<jdbcURL> [-inputJdbcUser=user] [-inputJdbcPassword=password]]" + " | " + " [-inputfile=<file name>]" + "]"); System.out.println(""); System.out.println(" <jdbcURL> JDBC connect string for DB"); System.out.println(" [user] JDBC user name for DB"); System.out.println(" [password] JDBC password for user for DB"); System.out.println(" If no source DB parameters are given, assumes data comes from file"); System.out.println(" [file name] file containing test data - INSERT statements in MySQL format"); System.out.println(" If no input file name or input JDBC parameters are given, assume insert statements come from demo/FoodMartCreateData.zip file"); System.out.println(" [outputDirectory] Where FoodMartCreateTables.sql, FoodMartCreateData.sql and FoodMartCreateIndexes.sql will be created"); System.out.println(" <batch size> size of JDBC batch updates - default to 50 inserts"); System.out.println(" <jdbcDrivers> Comma-separated list of JDBC drivers."); System.out.println(" They must be on the classpath."); System.out.println(" -verbose Verbose mode."); System.out.println(" -tables If specified, drop and create the tables."); System.out.println(" -data If specified, load the data."); System.out.println(" -indexes If specified, drop and create the tables."); System.out.println(" -populationQueries If specified, run the data loading queries. Runs by default if -data is specified."); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/fb2c3676710865fd954e58e04ef53f8b10bd8d52/MondrianFoodMartLoader.java/clean/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4084, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 5357, 30, 490, 1434, 566, 304, 42, 4773, 49, 485, 2886, 23059, 9373, 65, 23059, 892, 65, 23059, 11265, 65, 23059, 23555, 9592, 4279, 397, 7734, 3701, 24687, 26310, 27127, 24687, 4668, 34, 315, 397, 7734, 3701, 2844, 25316, 1785, 27127, 24687, 1785, 34, 23059, 2844, 25316, 1299, 33, 1355, 65, 23059, 2844, 25316, 3913, 33, 3664, 4279, 397, 7734, 5158, 17, 2844, 25316, 23304, 27127, 5303, 963, 34, 65, 315, 397, 7734, 11747, 315, 397, 7734, 5158, 17, 2844, 2853, 27127, 5149, 508, 34, 65, 315, 397, 7734, 13626, 397, 7734, 315, 282, 23059, 2630, 25316, 1785, 27127, 24687, 1785, 34, 23059, 2630, 25316, 1299, 33, 1355, 65, 23059, 2630, 25316, 3913, 33, 3664, 65, 4279, 397, 7734, 315, 282, 571, 315, 397, 7734, 315, 282, 23059, 2630, 768, 27127, 768, 508, 34, 4279, 397, 7734, 9870, 1769, 3639, 2332, 18, 659, 18, 8222, 2932, 8863, 3639, 2332, 18, 659, 18, 8222, 2932, 225, 411, 24687, 1785, 34, 1850, 202, 30499, 3077, 533, 364, 2383, 8863, 3639, 2332, 18, 659, 18, 8222, 2932, 225, 306, 1355, 65, 2398, 202, 30499, 729, 508, 364, 2383, 8863, 3639, 2332, 18, 659, 18, 8222, 2932, 225, 306, 3664, 65, 540, 202, 30499, 2201, 364, 729, 364, 2383, 8863, 3639, 2332, 18, 659, 18, 8222, 2932, 5397, 202, 2047, 1158, 1084, 2383, 1472, 854, 864, 16, 13041, 501, 14535, 628, 585, 8863, 3639, 2332, 18, 659, 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, 377, 1071, 918, 4084, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 5357, 30, 490, 1434, 566, 304, 42, 4773, 49, 485, 2886, 23059, 9373, 65, 23059, 892, 65, 23059, 11265, 65, 23059, 23555, 9592, 4279, 397, 7734, 3701, 24687, 26310, 27127, 24687, 4668, 34, 315, 397, 7734, 3701, 2844, 25316, 1785, 27127, 24687, 1785, 34, 23059, 2844, 25316, 1299, 33, 1355, 65, 23059, 2844, 25316, 3913, 33, 3664, 4279, 397, 7734, 5158, 17, 2844, 25316, 23304, 27127, 5303, 963, 34, 65, 315, 397, 7734, 11747, 315, 397, 7734, 5158, 17, 2844, 2853, 27127, 5149, 508, 34, 65, 315, 397, 7734, 13626, 397, 7734, 315, 282, 23059, 2630, 25316, 1785, 27127, 24687, 1785, 34, 23059, 2630, 25316, 1299, 2 ]
if (themeColorRegistry != null)
if (themeColorRegistry != null) {
public ColorRegistry getColorRegistry() { if (themeColorRegistry != null) return themeColorRegistry; return WorkbenchThemeManager.getInstance() .getDefaultThemeColorRegistry(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/Theme.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/Theme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5563, 4243, 15672, 4243, 1435, 288, 202, 202, 430, 261, 7997, 2957, 4243, 480, 446, 13, 1082, 202, 2463, 5006, 2957, 4243, 31, 202, 202, 2463, 4147, 22144, 8335, 1318, 18, 588, 1442, 1435, 9506, 202, 18, 588, 1868, 8335, 2957, 4243, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5563, 4243, 15672, 4243, 1435, 288, 202, 202, 430, 261, 7997, 2957, 4243, 480, 446, 13, 1082, 202, 2463, 5006, 2957, 4243, 31, 202, 202, 2463, 4147, 22144, 8335, 1318, 18, 588, 1442, 1435, 9506, 202, 18, 588, 1868, 8335, 2957, 4243, 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 ]
pushFollow(FOLLOW_lhs_and_in_lhs_or2778);
pushFollow(FOLLOW_lhs_and_in_lhs_or2760);
public BaseDescr lhs_or() throws RecognitionException { BaseDescr d = null; BaseDescr left = null; BaseDescr right = null; d = null; OrDescr or = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1178:3: (left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1178:3: left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* { pushFollow(FOLLOW_lhs_and_in_lhs_or2759); left=lhs_and(); _fsp--; if (failed) return d; if ( backtracking==0 ) { d = left; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1179:3: ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* loop42: do { int alt42=2; int LA42_0 = input.LA(1); if ( ((LA42_0>=53 && LA42_0<=54)) ) { alt42=1; } switch (alt42) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1179:5: ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and { if ( (input.LA(1)>=53 && input.LA(1)<=54) ) { input.consume(); errorRecovery=false;failed=false; } else { if (backtracking>0) {failed=true; return d;} MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2768); throw mse; } pushFollow(FOLLOW_lhs_and_in_lhs_or2778); right=lhs_and(); _fsp--; if (failed) return d; if ( backtracking==0 ) { if ( or == null ) { or = new OrDescr(); or.addDescr( left ); d = or; } or.addDescr( right ); } } break; default : break loop42; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/afea9f80e7c11e7b76df18f232d3b5ca5ad21e72/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 16198, 8499, 67, 280, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 2002, 273, 446, 31, 3639, 3360, 16198, 2145, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 202, 1162, 16198, 578, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, 1695, 12215, 1695, 4936, 1695, 16483, 18, 75, 30, 2499, 8285, 30, 23, 30, 261, 4482, 33, 8499, 67, 464, 261, 261, 7707, 280, 11, 16637, 20081, 6134, 8499, 67, 464, 13216, 7707, 280, 11, 16637, 20081, 6134, 4083, 33, 8499, 67, 464, 8618, 262, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, 1695, 12215, 1695, 4936, 1695, 16483, 18, 75, 30, 2499, 8285, 30, 23, 30, 2002, 33, 8499, 67, 464, 261, 261, 7707, 280, 11, 16637, 20081, 6134, 8499, 67, 464, 13216, 7707, 280, 11, 16637, 20081, 6134, 4083, 33, 8499, 67, 464, 8618, 5411, 288, 5411, 10881, 12, 29890, 67, 80, 4487, 67, 464, 67, 267, 67, 80, 4487, 67, 280, 5324, 6162, 1769, 5411, 2002, 33, 80, 4487, 67, 464, 5621, 5411, 389, 10749, 413, 31, 5411, 309, 261, 7307, 13, 327, 302, 31, 5411, 309, 261, 6888, 631, 20, 262, 288, 2868, 302, 273, 2002, 31, 2398, 289, 5411, 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, 3360, 16198, 8499, 67, 280, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 2002, 273, 446, 31, 3639, 3360, 16198, 2145, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 202, 1162, 16198, 578, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, 1695, 12215, 1695, 4936, 1695, 16483, 18, 75, 30, 2499, 8285, 30, 23, 30, 261, 4482, 33, 8499, 67, 464, 261, 261, 7707, 280, 11, 16637, 20081, 6134, 8499, 67, 464, 13216, 7707, 280, 11, 16637, 20081, 6134, 4083, 33, 8499, 67, 2 ]
sheet.refresh(); editor.refresh();
revalidate(); repaint();
public void addNormalEditor(PropertySheet sheet, ConfigElement elm, Object value, PropertyDefinition prop_def, String label, int row, int list_num) { PropertyEditorPanel editor = new PropertyEditorPanel(value, prop_def, elm, list_num, sheet.getColor()); ((TableLayout)sheet.getLayout()).insertRow(row, TableLayout.PREFERRED); // Add both columns to this row. TableLayoutConstraints c = new TableLayoutConstraints(1, row, 1, row, TableLayout.FULL, TableLayout.FULL); sheet.add(editor, c); sheet.add(new JLabel(label), "0," + Integer.toString(row) + ",F,F"); addDeleteButton(sheet, elm, prop_def, value, row); //We must refresh things in the following order: // 1) This control. // 2) All contained containers recursively. sheet.refresh(); editor.refresh(); }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/83ec27c8c32995f2b6128b170ad2836749c83e72/PropertySheetFactory.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/PropertySheetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 527, 5506, 6946, 12, 1396, 8229, 6202, 16, 1903, 1046, 12531, 16, 1033, 460, 16, 4766, 4276, 1852, 2270, 67, 536, 16, 514, 1433, 16, 509, 1027, 16, 509, 666, 67, 2107, 13, 282, 288, 1377, 4276, 6946, 5537, 4858, 273, 394, 4276, 6946, 5537, 12, 1132, 16, 2270, 67, 536, 16, 12531, 16, 666, 67, 2107, 16, 6202, 18, 588, 2957, 10663, 5411, 14015, 1388, 3744, 13, 8118, 18, 588, 3744, 1435, 2934, 6387, 1999, 12, 492, 16, 3555, 3744, 18, 3670, 17356, 1769, 540, 368, 1436, 3937, 2168, 358, 333, 1027, 18, 1377, 3555, 3744, 4878, 276, 273, 394, 3555, 3744, 4878, 12, 21, 16, 1027, 16, 404, 16, 1027, 16, 3555, 3744, 18, 18111, 16, 3555, 3744, 18, 18111, 1769, 1377, 6202, 18, 1289, 12, 9177, 16, 276, 1769, 1377, 6202, 18, 1289, 12, 2704, 21403, 12, 1925, 3631, 315, 20, 10837, 397, 2144, 18, 10492, 12, 492, 13, 397, 3104, 42, 16, 42, 8863, 5411, 527, 2613, 3616, 12, 8118, 16, 12531, 16, 2270, 67, 536, 16, 460, 16, 1027, 1769, 1377, 368, 3218, 1297, 4460, 9198, 316, 326, 3751, 1353, 30, 1377, 368, 404, 13, 1220, 3325, 18, 1377, 368, 576, 13, 4826, 7542, 8475, 8536, 18, 1377, 6202, 18, 9144, 5621, 1377, 4858, 18, 9144, 5621, 282, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 527, 5506, 6946, 12, 1396, 8229, 6202, 16, 1903, 1046, 12531, 16, 1033, 460, 16, 4766, 4276, 1852, 2270, 67, 536, 16, 514, 1433, 16, 509, 1027, 16, 509, 666, 67, 2107, 13, 282, 288, 1377, 4276, 6946, 5537, 4858, 273, 394, 4276, 6946, 5537, 12, 1132, 16, 2270, 67, 536, 16, 12531, 16, 666, 67, 2107, 16, 6202, 18, 588, 2957, 10663, 5411, 14015, 1388, 3744, 13, 8118, 18, 588, 3744, 1435, 2934, 6387, 1999, 12, 492, 16, 3555, 3744, 18, 3670, 17356, 1769, 540, 368, 1436, 3937, 2168, 358, 333, 1027, 18, 1377, 3555, 3744, 4878, 276, 273, 394, 3555, 3744, 4878, 12, 21, 16, 1027, 16, 404, 16, 1027, 16, 3555, 3744, 18, 2 ]
componentClassAsStream = ClassLoader.getSystemClassLoader().getResourceAsStream(componentName + ".class");
componentClassAsStream = ClassLoader.getSystemClassLoader().getResourceAsStream( componentName + ".class" );
private static ClassInfo createClassInfoFromStream(final String name, final ClassLoader loader, boolean lazyAttributes) { final String className = name.replace('.', '/'); // to handle primitive type we need to know the array dimension if (name.indexOf('/') < 0) { // it might be one // gets its non array component type and the dimension int dimension = 0; for (int i = className.indexOf('['); i > 0; i = className.indexOf('[', i+1)) { dimension++; } String unidimComponentName = className; if (dimension > 0) { int unidimComponentTypeIndex = className.indexOf('['); unidimComponentName = className.substring(0, unidimComponentTypeIndex); } Class primitiveClass = AsmClassInfo.getPrimitiveClass(unidimComponentName); if (primitiveClass != null && primitiveClass.isPrimitive()) { if (dimension == 0) { return JavaClassInfo.getClassInfo(primitiveClass); } else { Class arrayClass = Array.newInstance(primitiveClass, new int[dimension]).getClass(); return JavaClassInfo.getClassInfo(arrayClass); } } } // for non primitive, we need to chain component type ala java.lang.reflect // to support multi. dim. arrays int componentTypeIndex = className.lastIndexOf('['); String componentName = className; boolean isArray = false; if (componentTypeIndex > 0) { componentName = className.substring(0, componentTypeIndex); isArray = true; } ClassInfo componentInfo = null; // is component yet another array ie this name is a multi dim array ? if (componentName.indexOf('[') > 0) { componentInfo = getClassInfo(componentName, loader); } else { InputStream componentClassAsStream = null; if (loader != null) { componentClassAsStream = loader.getResourceAsStream(componentName + ".class"); } else { // boot class loader, fall back to system classloader that will see it anyway componentClassAsStream = ClassLoader.getSystemClassLoader().getResourceAsStream(componentName + ".class"); } if (componentClassAsStream == null) { // might be more than one dimension if (componentName.indexOf('[') > 0) { return getClassInfo(componentName, loader); } System.out.println( "AW::WARNING - could not load class [" + componentName + "] as a resource in loader [" + loader + "]" ); componentInfo = new ClassInfo.NullClassInfo(); } try { componentInfo = AsmClassInfo.getClassInfo(componentClassAsStream, loader, lazyAttributes); } finally { try { componentClassAsStream.close(); } catch (Exception e) { ; } } } if (!isArray) { return componentInfo; } else { return AsmClassInfo.getArrayClassInfo(className, loader, componentInfo); } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/ddd965be4dbba0d956f2bbc3a923a154b2b70fdd/AsmClassInfo.java/buggy/aspectwerkz4/src/main/org/codehaus/aspectwerkz/reflect/impl/asm/AsmClassInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 19010, 752, 19455, 1265, 1228, 12, 6385, 514, 508, 16, 4766, 15604, 727, 9403, 4088, 16, 4766, 15604, 1250, 7962, 2498, 13, 288, 3639, 727, 514, 2658, 273, 508, 18, 2079, 2668, 1093, 16, 2023, 1769, 3639, 368, 358, 1640, 8225, 618, 732, 1608, 358, 5055, 326, 526, 4968, 3639, 309, 261, 529, 18, 31806, 2668, 2473, 13, 411, 374, 13, 288, 5411, 368, 518, 4825, 506, 1245, 5411, 368, 5571, 2097, 1661, 526, 1794, 618, 471, 326, 4968, 5411, 509, 4968, 273, 374, 31, 5411, 364, 261, 474, 277, 273, 2658, 18, 31806, 2668, 3292, 1769, 277, 405, 374, 31, 277, 273, 2658, 18, 31806, 2668, 63, 2187, 277, 15, 21, 3719, 288, 7734, 4968, 9904, 31, 5411, 289, 5411, 514, 640, 350, 381, 1841, 461, 273, 2658, 31, 5411, 309, 261, 11808, 405, 374, 13, 288, 7734, 509, 640, 350, 381, 28116, 1016, 273, 2658, 18, 31806, 2668, 3292, 1769, 7734, 640, 350, 381, 1841, 461, 273, 2658, 18, 28023, 12, 20, 16, 640, 350, 381, 28116, 1016, 1769, 5411, 289, 5411, 1659, 8225, 797, 273, 2970, 81, 19455, 18, 588, 9840, 797, 12, 318, 350, 381, 1841, 461, 1769, 5411, 309, 261, 683, 5025, 797, 480, 446, 597, 8225, 797, 18, 291, 9840, 10756, 288, 7734, 309, 261, 11808, 422, 374, 13, 288, 10792, 327, 5110, 19455, 18, 588, 19455, 12, 683, 5025, 797, 1769, 7734, 289, 469, 288, 10792, 1659, 526, 797, 273, 1510, 18, 2704, 1442, 12, 683, 5025, 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, 760, 19010, 752, 19455, 1265, 1228, 12, 6385, 514, 508, 16, 4766, 15604, 727, 9403, 4088, 16, 4766, 15604, 1250, 7962, 2498, 13, 288, 3639, 727, 514, 2658, 273, 508, 18, 2079, 2668, 1093, 16, 2023, 1769, 3639, 368, 358, 1640, 8225, 618, 732, 1608, 358, 5055, 326, 526, 4968, 3639, 309, 261, 529, 18, 31806, 2668, 2473, 13, 411, 374, 13, 288, 5411, 368, 518, 4825, 506, 1245, 5411, 368, 5571, 2097, 1661, 526, 1794, 618, 471, 326, 4968, 5411, 509, 4968, 273, 374, 31, 5411, 364, 261, 474, 277, 273, 2658, 18, 31806, 2668, 3292, 1769, 277, 405, 374, 31, 277, 273, 2658, 18, 31806, 2668, 63, 2187, 277, 15, 21, 3719, 288, 7734, 4968, 2 ]
addKeyword( TokenNames.REGISTER.toUpperCase(), TokenTypes.REGISTER); addKeyword(TokenNames.ACK.toUpperCase(), TokenTypes.ACK); addKeyword( TokenNames.OPTIONS.toUpperCase(), TokenTypes.OPTIONS); addKeyword(TokenNames.BYE.toUpperCase(), TokenTypes.BYE); addKeyword(TokenNames.INVITE.toUpperCase(), TokenTypes.INVITE);
addKeyword(TokenNames.REGISTER,TokenTypes.REGISTER); addKeyword(TokenNames.ACK, TokenTypes.ACK); addKeyword(TokenNames.OPTIONS,TokenTypes.OPTIONS); addKeyword(TokenNames.BYE, TokenTypes.BYE); addKeyword(TokenNames.INVITE, TokenTypes.INVITE);
public void selectLexer(String lexerName) { synchronized( lexerTables ) { // Synchronization Bug fix by Robert Rosen. currentLexer = (Hashtable) lexerTables.get(lexerName); this.currentLexerName = lexerName; if (currentLexer == null) { addLexer(lexerName); if (lexerName.equals("method_keywordLexer")) { addKeyword( TokenNames.REGISTER.toUpperCase(), TokenTypes.REGISTER); addKeyword(TokenNames.ACK.toUpperCase(), TokenTypes.ACK); addKeyword( TokenNames.OPTIONS.toUpperCase(), TokenTypes.OPTIONS); addKeyword(TokenNames.BYE.toUpperCase(), TokenTypes.BYE); addKeyword(TokenNames.INVITE.toUpperCase(), TokenTypes.INVITE); addKeyword(TokenNames.SIP.toUpperCase(), TokenTypes.SIP); addKeyword(TokenNames.SUBSCRIBE.toUpperCase(),TokenTypes.SUBSCRIBE); addKeyword(TokenNames.NOTIFY.toUpperCase(), TokenTypes.NOTIFY); addKeyword(TokenNames.MESSAGE.toUpperCase(),TokenTypes.MESSAGE); // JvB: added to support RFC3903 addKeyword(TokenNames.PUBLISH.toUpperCase(), TokenTypes.PUBLISH); } else if (lexerName.equals("command_keywordLexer")) { addKeyword( ErrorInfoHeader.NAME.toUpperCase(), TokenTypes.ERROR_INFO); addKeyword( AllowEventsHeader.NAME.toUpperCase(), TokenTypes.ALLOW_EVENTS); addKeyword( AuthenticationInfoHeader.NAME.toUpperCase(), TokenTypes.AUTHENTICATION_INFO); addKeyword(EventHeader.NAME.toUpperCase(), TokenTypes.EVENT); addKeyword( MinExpiresHeader.NAME.toUpperCase(), TokenTypes.MIN_EXPIRES); addKeyword(RSeqHeader.NAME.toUpperCase(), TokenTypes.RSEQ); addKeyword(RAckHeader.NAME.toUpperCase(), TokenTypes.RACK); addKeyword(ReasonHeader.NAME.toUpperCase(), TokenTypes.REASON); addKeyword( ReplyToHeader.NAME.toUpperCase(), TokenTypes.REPLY_TO); addKeyword( SubscriptionStateHeader.NAME.toUpperCase(), TokenTypes.SUBSCRIPTION_STATE); addKeyword( TimeStampHeader.NAME.toUpperCase(), TokenTypes.TIMESTAMP); addKeyword( InReplyToHeader.NAME.toUpperCase(), TokenTypes.IN_REPLY_TO); addKeyword( MimeVersionHeader.NAME.toUpperCase(), TokenTypes.MIME_VERSION); addKeyword( AlertInfoHeader.NAME.toUpperCase(), TokenTypes.ALERT_INFO); addKeyword(FromHeader.NAME.toUpperCase(), TokenTypes.FROM); addKeyword(ToHeader.NAME.toUpperCase(), TokenTypes.TO); addKeyword( ReferToHeader.NAME.toUpperCase(), TokenTypes.REFER_TO); addKeyword(ViaHeader.NAME.toUpperCase(), TokenTypes.VIA); addKeyword( UserAgentHeader.NAME.toUpperCase(), TokenTypes.USER_AGENT); addKeyword(ServerHeader.NAME.toUpperCase(), TokenTypes.SERVER); addKeyword( AcceptEncodingHeader.NAME.toUpperCase(), TokenTypes.ACCEPT_ENCODING); addKeyword(AcceptHeader.NAME.toUpperCase(), TokenTypes.ACCEPT); addKeyword(AllowHeader.NAME.toUpperCase(), TokenTypes.ALLOW); addKeyword(RouteHeader.NAME.toUpperCase(), TokenTypes.ROUTE); addKeyword( AuthorizationHeader.NAME.toUpperCase(), TokenTypes.AUTHORIZATION); addKeyword( ProxyAuthorizationHeader.NAME.toUpperCase(), TokenTypes.PROXY_AUTHORIZATION); addKeyword( RetryAfterHeader.NAME.toUpperCase(), TokenTypes.RETRY_AFTER); addKeyword( ProxyRequireHeader.NAME.toUpperCase(), TokenTypes.PROXY_REQUIRE); addKeyword( ContentLanguageHeader.NAME.toUpperCase(), TokenTypes.CONTENT_LANGUAGE); addKeyword( UnsupportedHeader.NAME.toUpperCase(), TokenTypes.UNSUPPORTED); addKeyword( SupportedHeader.NAME.toUpperCase(), TokenTypes.SUPPORTED); addKeyword( WarningHeader.NAME.toUpperCase(), TokenTypes.WARNING); addKeyword( MaxForwardsHeader.NAME.toUpperCase(), TokenTypes.MAX_FORWARDS); addKeyword(DateHeader.NAME.toUpperCase(), TokenTypes.DATE); addKeyword( PriorityHeader.NAME.toUpperCase(), TokenTypes.PRIORITY); addKeyword( ProxyAuthenticateHeader.NAME.toUpperCase(), TokenTypes.PROXY_AUTHENTICATE); addKeyword( ContentEncodingHeader.NAME.toUpperCase(), TokenTypes.CONTENT_ENCODING); addKeyword( ContentLengthHeader.NAME.toUpperCase(), TokenTypes.CONTENT_LENGTH); addKeyword( SubjectHeader.NAME.toUpperCase(), TokenTypes.SUBJECT); addKeyword( ContentTypeHeader.NAME.toUpperCase(), TokenTypes.CONTENT_TYPE); addKeyword( ContactHeader.NAME.toUpperCase(), TokenTypes.CONTACT); addKeyword(CallIdHeader.NAME.toUpperCase(), TokenTypes.CALL_ID); addKeyword( RequireHeader.NAME.toUpperCase(), TokenTypes.REQUIRE); addKeyword( ExpiresHeader.NAME.toUpperCase(), TokenTypes.EXPIRES); addKeyword( RecordRouteHeader.NAME.toUpperCase(), TokenTypes.RECORD_ROUTE); addKeyword( OrganizationHeader.NAME.toUpperCase(), TokenTypes.ORGANIZATION); addKeyword(CSeqHeader.NAME.toUpperCase(), TokenTypes.CSEQ); addKeyword( AcceptLanguageHeader.NAME.toUpperCase(), TokenTypes.ACCEPT_LANGUAGE); addKeyword( WWWAuthenticateHeader.NAME.toUpperCase(), TokenTypes.WWW_AUTHENTICATE); addKeyword( CallInfoHeader.NAME.toUpperCase(), TokenTypes.CALL_INFO); addKeyword( ContentDispositionHeader.NAME.toUpperCase(), TokenTypes.CONTENT_DISPOSITION); // And now the dreaded short forms.... addKeyword(TokenNames.K.toUpperCase(), TokenTypes.SUPPORTED); addKeyword(TokenNames.C.toUpperCase(), TokenTypes.CONTENT_TYPE); addKeyword( TokenNames.E.toUpperCase(), TokenTypes.CONTENT_ENCODING); addKeyword(TokenNames.F.toUpperCase(), TokenTypes.FROM); addKeyword(TokenNames.I.toUpperCase(), TokenTypes.CALL_ID); addKeyword(TokenNames.M.toUpperCase(), TokenTypes.CONTACT); addKeyword( TokenNames.L.toUpperCase(), TokenTypes.CONTENT_LENGTH); addKeyword(TokenNames.S.toUpperCase(), TokenTypes.SUBJECT); addKeyword(TokenNames.T.toUpperCase(), TokenTypes.TO); addKeyword(TokenNames.U.toUpperCase(), TokenTypes.ALLOW_EVENTS); // JvB: added addKeyword(TokenNames.V.toUpperCase(), TokenTypes.VIA); addKeyword(TokenNames.R.toUpperCase(), TokenTypes.REFER_TO); addKeyword(TokenNames.O.toUpperCase(), TokenTypes.EVENT); // Bug fix by Mario Mantak // JvB: added to support RFC3903 addKeyword(SIPETagHeader.NAME.toUpperCase(), TokenTypes.SIP_ETAG); addKeyword(SIPIfMatchHeader.NAME.toUpperCase(), TokenTypes.SIP_IF_MATCH); // IMS Headers addKeyword(PathHeader.NAME.toUpperCase(), TokenTypes.PATH); addKeyword(ServiceRouteHeader.NAME.toUpperCase(), TokenTypes.SERVICE_ROUTE); addKeyword(AssertedIdentityHeader.NAME.toUpperCase(), TokenTypes.P_ASSERTED_IDENTITY); addKeyword(PreferredIdentityHeader.NAME.toUpperCase(), TokenTypes.P_PREFERRED_IDENTITY); // issued by jmf addKeyword(CalledPartyIDHeader.NAME.toUpperCase(), TokenTypes.P_CALLED_PARTY_ID); addKeyword(AssociatedURIHeader.NAME.toUpperCase(), TokenTypes.P_ASSOCIATED_URI); addKeyword(VisitedNetworkIDHeader.NAME.toUpperCase(), TokenTypes.P_VISITED_NETWORK_ID); addKeyword(ChargingFunctionAddressesHeader.NAME.toUpperCase(), TokenTypes.P_CHARGING_FUNCTION_ADDRESSES); addKeyword(ChargingVectorHeader.NAME.toUpperCase(), TokenTypes.P_VECTOR_CHARGING); addKeyword(AccessNetworkInfoHeader.NAME.toUpperCase(), TokenTypes.P_ACCESS_NETWORK_INFO); addKeyword(MediaAuthorizationHeader.NAME.toUpperCase(), TokenTypes.P_MEDIA_AUTHORIZATION); } else if (lexerName.equals("status_lineLexer")) { addKeyword(TokenNames.SIP.toUpperCase(), TokenTypes.SIP); } else if (lexerName.equals("request_lineLexer")) { addKeyword(TokenNames.SIP.toUpperCase(), TokenTypes.SIP); } else if (lexerName.equals("sip_urlLexer")) { addKeyword(TokenNames.TEL.toUpperCase(), TokenTypes.TEL); addKeyword(TokenNames.SIP.toUpperCase(), TokenTypes.SIP); } } } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/03dca67285f3f95348b33eceb3358da9431826b5/Lexer.java/buggy/trunk/src/gov/nist/javax/sip/parser/Lexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2027, 13356, 12, 780, 8512, 461, 13, 288, 202, 377, 3852, 12, 8512, 6905, 262, 288, 202, 202, 759, 26535, 1588, 16907, 2917, 635, 534, 83, 25925, 534, 8918, 18, 202, 202, 2972, 13356, 273, 261, 5582, 14544, 13, 8512, 6905, 18, 588, 12, 31731, 461, 1769, 202, 202, 2211, 18, 2972, 13356, 461, 273, 8512, 461, 31, 202, 202, 430, 261, 2972, 13356, 422, 446, 13, 288, 1082, 202, 1289, 13356, 12, 31731, 461, 1769, 1082, 202, 430, 261, 31731, 461, 18, 14963, 2932, 2039, 67, 11041, 13356, 6, 3719, 288, 9506, 202, 1289, 8736, 12, 6862, 202, 1345, 1557, 18, 27511, 18, 869, 8915, 9334, 6862, 202, 1345, 2016, 18, 27511, 1769, 9506, 202, 1289, 8736, 12, 1345, 1557, 18, 3649, 18, 869, 8915, 9334, 3155, 2016, 18, 3649, 1769, 9506, 202, 1289, 8736, 12, 6862, 202, 1345, 1557, 18, 12422, 18, 869, 8915, 9334, 4405, 202, 1345, 2016, 18, 12422, 1769, 9506, 202, 1289, 8736, 12, 1345, 1557, 18, 6486, 41, 18, 869, 8915, 9334, 3155, 2016, 18, 6486, 41, 1769, 9506, 202, 1289, 8736, 12, 1345, 1557, 18, 706, 58, 5398, 18, 869, 8915, 9334, 3155, 2016, 18, 706, 58, 5398, 1769, 9506, 202, 1289, 8736, 12, 1345, 1557, 18, 17739, 18, 869, 8915, 9334, 3155, 2016, 18, 17739, 1769, 9506, 202, 1289, 8736, 12, 1345, 1557, 18, 8362, 26469, 18, 869, 8915, 9334, 1345, 2016, 18, 8362, 26469, 1769, 9506, 202, 1289, 8736, 12, 1345, 1557, 18, 4400, 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, 2027, 13356, 12, 780, 8512, 461, 13, 288, 202, 377, 3852, 12, 8512, 6905, 262, 288, 202, 202, 759, 26535, 1588, 16907, 2917, 635, 534, 83, 25925, 534, 8918, 18, 202, 202, 2972, 13356, 273, 261, 5582, 14544, 13, 8512, 6905, 18, 588, 12, 31731, 461, 1769, 202, 202, 2211, 18, 2972, 13356, 461, 273, 8512, 461, 31, 202, 202, 430, 261, 2972, 13356, 422, 446, 13, 288, 1082, 202, 1289, 13356, 12, 31731, 461, 1769, 1082, 202, 430, 261, 31731, 461, 18, 14963, 2932, 2039, 67, 11041, 13356, 6, 3719, 288, 9506, 202, 1289, 8736, 12, 6862, 202, 1345, 1557, 18, 27511, 18, 869, 8915, 9334, 6862, 202, 1345, 2016, 18, 27511, 1769, 9506, 2 ]
static String getDefaultXArgs(String[] oldArgs) { boolean bInit = false; // If the old args has an -init somewhere, make sure // we don't use the restart default xargs for(int i = 0; i < oldArgs.length; i++) { if("-init".equals(oldArgs[i])) { bInit = true; } } String fwDirStr = System.getProperty(FWDIR_PROP, FWDIR_DEFAULT); File fwDir = new File(fwDirStr); File xargsFile = null; // avoid getParentFile since some profiles don't have this String defDirStr = (new File(fwDir.getAbsolutePath())).getParent(); File defDir = defDirStr != null ? new File(defDirStr) : null; println("fwDir="+ fwDir, 2); println("defDir="+ defDir, 2); println("bInit=" + bInit, 2); // ..and select appropiate xargs file if(defDir != null) { topDir = defDir + File.separator; try { String osName = Alias.unifyOsName(System.getProperty("os.name")); File f = new File(defDir, "init_" + osName + ".xargs"); if(f.exists()) { defaultXArgsInit = f.getName(); println("found OS specific xargs=" + defaultXArgsInit, 1); } } catch (Exception ignored) { // No OS specific xargs found } if(!bInit && (fwDir.exists() && fwDir.isDirectory())) { println("found fwdir at " + fwDir.getAbsolutePath(), 1); xargsFile = new File(defDir, defaultXArgsStart); if(xargsFile.exists()) { println("\n" + "Default restart xargs file: " + xargsFile + "\n" + "To reinitialize, remove the " + fwDir.toString() + " directory\n", 5); } else { File xargsFile2 = new File(defDir, defaultXArgsInit); println("No restart xargs file " + xargsFile + ", trying " + xargsFile2 + " instead.", 0); xargsFile = xargsFile2; } } else { println("no fwdir at " + fwDir.getAbsolutePath(), 1); xargsFile = new File(defDir, defaultXArgsInit); if(xargsFile.exists()) { println("\n" + "Default init xargs file: " + xargsFile + "\n", 5); } else { xargsFile = new File(defDir, defaultXArgsInit2); if(xargsFile.exists()) { println("\n" + "Deafult secondary init xargs file: " + xargsFile + "\n", 5); } } } } else { // No parent dir to fwdir } return xargsFile != null ? xargsFile.getAbsolutePath() : null; }
13251 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13251/17ae88b3f7b2b6dd3c0f3c451b2a40ec7c30404f/Main.java/buggy/osgi/framework/src/org/knopflerfish/framework/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 514, 4829, 60, 2615, 12, 780, 8526, 1592, 2615, 13, 288, 565, 1250, 324, 2570, 273, 629, 31, 565, 368, 971, 326, 1592, 833, 711, 392, 300, 2738, 22234, 16, 1221, 3071, 565, 368, 732, 2727, 1404, 999, 326, 7870, 805, 619, 1968, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 1592, 2615, 18, 2469, 31, 277, 27245, 288, 1377, 309, 2932, 17, 2738, 9654, 14963, 12, 1673, 2615, 63, 77, 22643, 288, 3639, 324, 2570, 273, 638, 31, 1377, 289, 565, 289, 565, 514, 7600, 1621, 1585, 273, 2332, 18, 588, 1396, 12, 29753, 4537, 67, 15811, 16, 478, 59, 4537, 67, 5280, 1769, 565, 1387, 7600, 1621, 1377, 273, 394, 1387, 12, 11966, 1621, 1585, 1769, 565, 1387, 619, 1968, 812, 225, 273, 446, 31, 3639, 368, 4543, 21460, 3241, 2690, 11788, 2727, 1404, 1240, 333, 565, 514, 1652, 1621, 1585, 273, 261, 2704, 1387, 12, 11966, 1621, 18, 588, 10368, 743, 10756, 2934, 588, 3054, 5621, 565, 1387, 282, 1652, 1621, 565, 273, 1652, 1621, 1585, 480, 446, 692, 394, 1387, 12, 536, 1621, 1585, 13, 294, 446, 31, 3639, 3785, 2932, 11966, 1621, 1546, 15, 7600, 1621, 16, 576, 1769, 565, 3785, 2932, 536, 1621, 1546, 15, 1652, 1621, 16, 576, 1769, 565, 3785, 2932, 70, 2570, 1546, 397, 324, 2570, 16, 576, 1769, 565, 368, 6116, 464, 2027, 5145, 3840, 619, 1968, 585, 565, 309, 12, 536, 1621, 480, 446, 13, 288, 1377, 1760, 1621, 273, 1652, 1621, 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, 760, 514, 4829, 60, 2615, 12, 780, 8526, 1592, 2615, 13, 288, 565, 1250, 324, 2570, 273, 629, 31, 565, 368, 971, 326, 1592, 833, 711, 392, 300, 2738, 22234, 16, 1221, 3071, 565, 368, 732, 2727, 1404, 999, 326, 7870, 805, 619, 1968, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 1592, 2615, 18, 2469, 31, 277, 27245, 288, 1377, 309, 2932, 17, 2738, 9654, 14963, 12, 1673, 2615, 63, 77, 22643, 288, 3639, 324, 2570, 273, 638, 31, 1377, 289, 565, 289, 565, 514, 7600, 1621, 1585, 273, 2332, 18, 588, 1396, 12, 29753, 4537, 67, 15811, 16, 478, 59, 4537, 67, 5280, 1769, 565, 1387, 7600, 1621, 1377, 273, 394, 1387, 12, 11966, 2 ]
+ "{vowel})u>{ypsilon};" + "u<{vowel}){ypsilon};" + "{vowel})\u00fa>{ypsilon+};" + "\u00fa<{vowel}){ypsilon+};" + "{vowel})\u00fc>{ypsilon\u00a8};" + "\u00fc<{vowel}){ypsilon\u00a8};"
+ "u <> ({vowel}){ypsilon};" + "\u00fa <> ({vowel}){ypsilon+};" + "\u00fc <> ({vowel}){ypsilon_diaeresis};"
public Object[][] getContents() { return new Object[][] { { "Rule", "" // ============================================== // Modern Greek Transliteration Rules // // This transliterates modern Greek characters, but using rules // that are traditional for Ancient Greek, and // thus more resemble Greek words that have become part // of English. It differs from the official Greek // transliteration, which is more phonetic (since // most modern Greek vowels, for example, have // degenerated simply to sound like "ee"). // // There are only a few tricky parts. // 1. eta and omega don't map directly to Latin vowels, // so we use a macron on e and o, and some // other combinations if they are accented. // 2. The accented, diaeresis i and y are substituted too. // 3. Some letters use digraphs, like "ph". While typical, // they need some special handling. // 4. A gamma before a gamma or a few other letters is // transliterated as an "n", as in "Anglo" // 5. An ypsilon after a vowel is a "u", as in // "Mouseio". Otherwise it is a "y" as in "Physikon" // 6. The construction of the rules is made simpler by making sure // that most rules for lowercase letters exactly correspond to the // rules for uppercase letters, *except* for the case of the letters // in the rule itself. That way, after modifying the uppercase rules, // you can just copy, paste, and "set to lowercase" to get // the rules for lowercase letters! // ============================================== // ============================================== // Variables, used to make the rules more comprehensible // and for conditionals. // ============================================== // Latin Letters + "E-MACRON=\u0112;" + "e-macron=\u0113;" + "O-MACRON=\u014C;" + "o-macron=\u014D;" + "Y-UMLAUT=\u0178;" + "y-umlaut=\u00FF;" /* // with real accents. + "E-MACRON-ACUTE=\u0112\u0301;" + "e-macron-acute=\u0113\u0301;" + "O-MACRON-ACUTE=\u014C\u0301;" + "o-macron-acute=\u014D\u0301;" + "y-umlaut-acute=\u00FF\u0301;" + "\u00ef-acute=\u00ef\u0301;" + "\u00fc-acute=\u00fc\u0301;" //*/ // single letter equivalents + "E-MACRON-ACUTE=\u00CA;" + "e-macron-acute=\u00EA;" + "O-MACRON-ACUTE=\u00D4;" + "o-macron-acute=\u00F4;" + "y-umlaut-acute=\u0177;" + "\u00ef-acute=\u00EE;" + "\u00fc-acute=\u00FB;" // Greek Letters + "ALPHA=\u0391;" + "BETA=\u0392;" + "GAMMA=\u0393;" + "DELTA=\u0394;" + "EPSILON=\u0395;" + "ZETA=\u0396;" + "ETA=\u0397;" + "THETA=\u0398;" + "IOTA=\u0399;" + "KAPPA=\u039A;" + "LAMBDA=\u039B;" + "MU=\u039C;" + "NU=\u039D;" + "XI=\u039E;" + "OMICRON=\u039F;" + "PI=\u03A0;" + "RHO=\u03A1;" + "SIGMA=\u03A3;" + "TAU=\u03A4;" + "YPSILON=\u03A5;" + "PHI=\u03A6;" + "CHI=\u03A7;" + "PSI=\u03A8;" + "OMEGA=\u03A9;" + "ALPHA+=\u0386;" + "EPSILON+=\u0388;" + "ETA+=\u0389;" + "IOTA+=\u038A;" + "OMICRON+=\u038C;" + "YPSILON+=\u038E;" + "OMEGA+=\u038F;" + "IOTA\u00a8=\u03AA;" + "YPSILON\u00a8=\u03AB;" + "alpha=\u03B1;" + "beta=\u03B2;" + "gamma=\u03B3;" + "delta=\u03B4;" + "epsilon=\u03B5;" + "zeta=\u03B6;" + "eta=\u03B7;" + "theta=\u03B8;" + "iota=\u03B9;" + "kappa=\u03BA;" + "lambda=\u03BB;" + "mu=\u03BC;" + "nu=\u03BD;" + "xi=\u03BE;" + "omicron=\u03BF;" + "pi=\u03C0;" + "rho=\u03C1;" + "sigma=\u03C3;" + "tau=\u03C4;" + "ypsilon=\u03C5;" + "phi=\u03C6;" + "chi=\u03C7;" + "psi=\u03C8;" + "omega=\u03C9;" //forms + "alpha+=\u03AC;" + "epsilon+=\u03AD;" + "eta+=\u03AE;" + "iota+=\u03AF;" + "omicron+=\u03CC;" + "ypsilon+=\u03CD;" + "omega+=\u03CE;" + "iota\u00a8=\u03CA;" + "ypsilon\u00a8=\u03CB;" + "iota\u00a8+=\u0390;" + "ypsilon\u00a8+=\u03B0;" + "sigma+=\u03C2;" // Variables for conditional mappings // Use lowercase for all variable names, to allow cut/paste below. + "letter=[[:Lu:][:Ll:]];" + "lower=[[:Ll:]];" + "vowel=[aeiouAEIOU" + "{ALPHA}{EPSILON}{ETA}{IOTA}{OMICRON}{YPSILON}{OMEGA}" + "{ALPHA+}{EPSILON+}{ETA+}{IOTA+}{OMICRON+}{YPSILON+}{OMEGA+}" + "{IOTA\u00a8}{YPSILON\u00a8}" + "{alpha}{epsilon}{eta}{iota}{omicron}{ypsilon}{omega}" + "{alpha+}{epsilon+}{eta+}{iota+}{omicron+}{ypsilon+}{omega+}" + "{iota\u00a8}{ypsilon\u00a8}" + "{iota\u00a8+}{ypsilon\u00a8+}" + "];" + "n-gamma=[GKXCgkxc];" + "gamma-n=[{GAMMA}{KAPPA}{CHI}{XI}{gamma}{kappa}{chi}{xi}];" + "pp=[Pp];" // ============================================== // Rules // ============================================== // The following are special titlecases, and should // not be copied when duplicating the lowercase // ============================================== + "Th<{THETA}({lower};" + "Ph<{PHI}({lower};" + "Ch<{CHI}({lower};" //masked: + "Ps<{PHI}({lower};" // Because there is no uppercase forms for final sigma, // we had to move all the sigma rules up here. // insert ' to preserve round trip, for double letters // don't need to do this for the digraphs with h, // since it is not created when mapping back from greek + "''S<{pp}){SIGMA};" // for PS + "''s<{pp}){sigma};" // for ps + "''s<{pp}){sigma+};" // for ps + "S({letter}>{SIGMA};" + "S<{SIGMA};" + "s({letter}>{sigma};" + "s<{sigma};" + "s<>{sigma+};" // because there are no uppercase forms, had to move these up too. + "i\"`>{iota\u00a8+};" + "y\"`>{ypsilon\u00a8+};" + "{\u00ef-acute}<>{iota\u00a8+};" + "{vowel}){\u00fc-acute}>{ypsilon\u00a8+};" + "{\u00fc-acute}<{vowel}){ypsilon\u00a8+};" + "{y-umlaut-acute}<>{ypsilon\u00a8+};" // ============================================== // Uppercase Forms. // To make lowercase forms, just copy and lowercase below // ============================================== // Typing variants, in case the keyboard doesn't have accents + "A`>{ALPHA+};" + "E`>{EPSILON+};" + "EE`>{ETA+};" + "EE>{ETA};" + "I`>{IOTA+};" + "O`>{OMICRON+};" + "OO`>{OMEGA+};" + "OO>{OMEGA};" + "I\">{IOTA\u00a8};" + "Y\">{YPSILON\u00a8};" // Basic Letters + "A<>{ALPHA};" + "\u00c1<>{ALPHA+};" + "B<>{BETA};" + "N){n-gamma}>{GAMMA};" + "N<{GAMMA}({gamma-n};" + "G<>{GAMMA};" + "D<>{DELTA};" + "E<>{EPSILON};" + "\u00c9<>{EPSILON+};" + "Z<>{ZETA};" + "{E-MACRON-ACUTE}<>{ETA+};" + "{E-MACRON}<>{ETA};" + "TH<>{THETA};" + "I<>{IOTA};" + "\u00cd<>{IOTA+};" + "\u00cf<>{IOTA\u00a8};" + "K<>{KAPPA};" + "L<>{LAMBDA};" + "M<>{MU};" + "N<>{NU};" + "X<>{XI};" + "O<>{OMICRON};" + "\u00d3>{OMICRON+};" + "\u00d3<{OMEGA+};" + "PH<>{PHI};" // needs ordering before P + "PS<>{PSI};" // needs ordering before P + "P<>{PI};" + "R<>{RHO};" + "T<>{TAU};" + "{vowel})U>{YPSILON};" + "U<{vowel}){YPSILON};" + "{vowel})\u00da>{YPSILON+};" + "\u00da<{vowel}){YPSILON+};" + "{vowel})\u00dc>{YPSILON\u00a8};" + "\u00dc<{vowel}){YPSILON\u00a8};" + "Y<>{YPSILON};" + "\u00dd<>{YPSILON+};" + "{Y-UMLAUT}<>{YPSILON\u00a8};" + "CH<>{CHI};" + "{O-MACRON-ACUTE}>{OMEGA+};" + "{O-MACRON-ACUTE}<{OMICRON+};" + "{O-MACRON}<>{OMEGA};" // Extra English Letters. Mapped for completeness + "C(I>{SIGMA};" + "C(E>{SIGMA};" + "C(Y>{SIGMA};" + "C>{KAPPA};" + "F>{PHI};" + "H>{CHI};" + "J>{IOTA};" + "Q>{KAPPA};" + "V>{YPSILON};" + "W>{YPSILON};" // ============================================== // Lowercase Forms. Just copy above and lowercase // ============================================== // typing variants, in case the keyboard doesn't have accents + "a`>{alpha+};" + "e`>{epsilon+};" + "ee`>{eta+};" + "ee>{eta};" + "i`>{iota+};" + "o`>{omicron+};" + "oo`>{omega+};" + "oo>{omega};" + "i\">{iota\u00a8};" + "y\">{ypsilon\u00a8};" // basic letters + "a<>{alpha};" + "\u00e1<>{alpha+};" + "b<>{beta};" + "n){n-gamma}>{gamma};" + "n<{gamma}({gamma-n};" + "g<>{gamma};" + "d<>{delta};" + "e<>{epsilon};" + "\u00e9<>{epsilon+};" + "z<>{zeta};" + "{e-macron-acute}<>{eta+};" + "{e-macron}<>{eta};" + "th<>{theta};" + "i<>{iota};" + "\u00ed<>{iota+};" + "\u00ef<>{iota\u00a8};" + "k<>{kappa};" + "l<>{lambda};" + "m<>{mu};" + "n<>{nu};" + "x<>{xi};" + "o<>{omicron};" + "\u00f3>{omicron+};" + "\u00f3<{omega+};" + "ph<>{phi};" // needs ordering before p + "ps<>{psi};" // needs ordering before p + "p<>{pi};" + "r<>{rho};" + "t<>{tau};" + "{vowel})u>{ypsilon};" + "u<{vowel}){ypsilon};" + "{vowel})\u00fa>{ypsilon+};" + "\u00fa<{vowel}){ypsilon+};" + "{vowel})\u00fc>{ypsilon\u00a8};" + "\u00fc<{vowel}){ypsilon\u00a8};" + "y<>{ypsilon};" + "\u00fd<>{ypsilon+};" + "{y-umlaut}<>{ypsilon\u00a8};" + "ch<>{chi};" + "{o-macron-acute}>{omega+};" + "{o-macron-acute}<{omicron+};" + "{o-macron}<>{omega};" // extra english letters. mapped for completeness + "c(i>{sigma};" + "c(e>{sigma};" + "c(y>{sigma};" + "c>{kappa};" + "f>{phi};" + "h>{chi};" + "j>{iota};" + "q>{kappa};" + "v>{ypsilon};" + "w>{ypsilon};" // ==================================== // Normal final rule: remove ' // ==================================== + "''>;" } }; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/dd2712bf8b5962dd9a9c4346de209d08c7f56635/TransliterationRule$Latin$Greek.java/clean/icu4j/src/com/ibm/text/resources/TransliterationRule$Latin$Greek.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 63, 6362, 65, 15015, 1435, 288, 3639, 327, 394, 1033, 63, 6362, 65, 288, 5411, 288, 315, 2175, 3113, 1408, 7734, 368, 422, 4428, 14468, 7734, 368, 3431, 8865, 611, 992, 79, 8193, 16108, 15718, 7734, 368, 7734, 368, 1220, 2162, 2165, 815, 681, 8865, 611, 992, 79, 3949, 16, 1496, 1450, 2931, 7734, 368, 716, 854, 1284, 1460, 287, 364, 1922, 71, 1979, 611, 992, 79, 16, 471, 7734, 368, 12493, 1898, 283, 10045, 611, 992, 79, 4511, 716, 1240, 12561, 1087, 7734, 368, 434, 24151, 18, 2597, 21944, 628, 326, 3397, 22354, 611, 992, 79, 7734, 368, 2162, 16108, 16, 1492, 353, 1898, 22105, 7943, 261, 9256, 7734, 368, 4486, 681, 8865, 611, 992, 79, 331, 25068, 16, 364, 3454, 16, 1240, 7734, 368, 443, 11168, 8616, 358, 14190, 3007, 315, 1340, 20387, 7734, 368, 7734, 368, 6149, 854, 1338, 279, 11315, 433, 13055, 2140, 18, 7734, 368, 404, 18, 14251, 471, 17220, 2727, 1404, 852, 5122, 358, 11134, 267, 331, 25068, 16, 7734, 368, 565, 1427, 732, 999, 279, 5318, 1949, 603, 425, 471, 320, 16, 471, 2690, 7734, 368, 565, 1308, 17265, 309, 2898, 854, 30122, 329, 18, 7734, 368, 576, 18, 1021, 30122, 329, 16, 302, 1155, 11737, 291, 277, 471, 677, 854, 7461, 4817, 4885, 18, 7734, 368, 890, 18, 10548, 13768, 999, 3097, 1483, 87, 16, 3007, 315, 844, 9654, 21572, 24917, 16, 7734, 368, 565, 2898, 1608, 2690, 4582, 5057, 18, 7734, 368, 1059, 18, 432, 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, 63, 6362, 65, 15015, 1435, 288, 3639, 327, 394, 1033, 63, 6362, 65, 288, 5411, 288, 315, 2175, 3113, 1408, 7734, 368, 422, 4428, 14468, 7734, 368, 3431, 8865, 611, 992, 79, 8193, 16108, 15718, 7734, 368, 7734, 368, 1220, 2162, 2165, 815, 681, 8865, 611, 992, 79, 3949, 16, 1496, 1450, 2931, 7734, 368, 716, 854, 1284, 1460, 287, 364, 1922, 71, 1979, 611, 992, 79, 16, 471, 7734, 368, 12493, 1898, 283, 10045, 611, 992, 79, 4511, 716, 1240, 12561, 1087, 7734, 368, 434, 24151, 18, 2597, 21944, 628, 326, 3397, 22354, 611, 992, 79, 7734, 368, 2162, 16108, 16, 1492, 353, 1898, 22105, 7943, 261, 9256, 7734, 368, 4486, 681, 8865, 611, 992, 2 ]
int sproc_AddExistingDocToMenu( int meta_id, int existing_meta_id, int doc_menu_no ) {
public int sproc_AddExistingDocToMenu( int meta_id, int existing_meta_id, int doc_menu_no ) {
int sproc_AddExistingDocToMenu( int meta_id, int existing_meta_id, int doc_menu_no ) { // test if this is the first child String sqlLinksCount = "select count(*) from childs where meta_id = ? and menu_sort = ? "; Object[] paramValuesLinksCount = new Object[]{new Integer( meta_id ), new Integer( doc_menu_no )}; ArrayList countResult = sqlProcessor.executeQuery( sqlLinksCount, paramValuesLinksCount, new ResultProcessor() { public Object mapOneRow( ResultSet rs ) throws SQLException { return new Integer( rs.getInt( 1 ) ); } } ); Integer countItem = (Integer)countResult.get( 0 ); int manualSortOrder = 500; if( countItem.intValue() > 0 ) {// update manual_sort_order String sqlSortOrder = "select max(manual_sort_order) from childs where meta_id = ? and menu_sort = ?"; Object[] paramValuesSortOrder = new Object[]{new Integer( meta_id ), new Integer( doc_menu_no )}; ArrayList sortOrderResult = sqlProcessor.executeQuery( sqlSortOrder, paramValuesSortOrder, new ResultProcessor() { public Object mapOneRow( ResultSet rs ) throws SQLException { return new Integer( rs.getInt( 1 ) ); } } ); manualSortOrder = ((Integer)sortOrderResult.get( 0 )).intValue() + 10; } //- test if child already exist in this menu. If not, then we will add the child to the menu. String sqlThisLinksCount = "select count(*) from childs where meta_id = ? and to_meta_id = ? and menu_sort = ?"; Object[] paramValuesThisLinksCount = new Object[]{new Integer( meta_id ), new Integer( existing_meta_id ), new Integer( doc_menu_no )}; ArrayList queryResult = sqlProcessor.executeQuery( sqlThisLinksCount, paramValuesThisLinksCount, new ResultProcessor() { public Object mapOneRow( ResultSet rs ) throws SQLException { return new Integer( rs.getInt( 1 ) ); } } ); Integer thisCountItem = (Integer)queryResult.get( 0 ); int rowCount = 0; if( thisCountItem.intValue() == 0 ) { String sql = "insert into childs( meta_id, to_meta_id, menu_sort, manual_sort_order) values( ?, ?, ?, ? )"; Object[] paramValues = new Object[]{new Integer( meta_id ), new Integer( existing_meta_id ), new Integer( doc_menu_no ), new Integer( manualSortOrder )}; rowCount = sqlProcessor.executeUpdate( sql, paramValues ); sql = "UPDATE meta SET date_modified = ? WHERE meta_id = ?"; paramValues = new Object[]{new Timestamp( new java.util.Date().getTime() ), new Integer( meta_id )}; rowCount += sqlProcessor.executeUpdate( sql, paramValues ); } return rowCount; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/907682463dda6719b69cb62bcf11e1c0a21731d0/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 272, 9381, 67, 986, 9895, 1759, 774, 4599, 12, 509, 2191, 67, 350, 16, 509, 2062, 67, 3901, 67, 350, 16, 509, 997, 67, 5414, 67, 2135, 262, 288, 3639, 368, 1842, 309, 333, 353, 326, 1122, 1151, 3639, 514, 1847, 7100, 1380, 273, 315, 4025, 1056, 24099, 628, 21619, 1625, 2191, 67, 350, 273, 692, 225, 471, 3824, 67, 3804, 273, 692, 13636, 3639, 1033, 8526, 579, 1972, 7100, 1380, 273, 394, 1033, 63, 7073, 2704, 2144, 12, 2191, 67, 350, 262, 16, 394, 2144, 12, 997, 67, 5414, 67, 2135, 262, 20451, 3639, 2407, 1056, 1253, 273, 1847, 5164, 18, 8837, 1138, 12, 1847, 7100, 1380, 16, 579, 1972, 7100, 1380, 16, 394, 3438, 5164, 1435, 288, 5411, 1071, 1033, 852, 3335, 1999, 12, 10842, 3597, 262, 1216, 6483, 288, 7734, 327, 394, 2144, 12, 3597, 18, 588, 1702, 12, 404, 262, 11272, 5411, 289, 3639, 289, 11272, 3639, 2144, 1056, 1180, 273, 261, 4522, 13, 1883, 1253, 18, 588, 12, 374, 11272, 3639, 509, 11297, 31460, 273, 6604, 31, 3639, 309, 12, 1056, 1180, 18, 474, 620, 1435, 405, 374, 262, 288, 759, 1089, 11297, 67, 3804, 67, 1019, 5411, 514, 1847, 31460, 273, 315, 4025, 943, 12, 19840, 67, 3804, 67, 1019, 13, 628, 21619, 1625, 2191, 67, 350, 273, 692, 471, 3824, 67, 3804, 273, 692, 14432, 5411, 1033, 8526, 579, 1972, 31460, 273, 394, 1033, 63, 7073, 2704, 2144, 12, 2191, 67, 350, 262, 16, 394, 2144, 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, 1071, 509, 272, 9381, 67, 986, 9895, 1759, 774, 4599, 12, 509, 2191, 67, 350, 16, 509, 2062, 67, 3901, 67, 350, 16, 509, 997, 67, 5414, 67, 2135, 262, 288, 3639, 368, 1842, 309, 333, 353, 326, 1122, 1151, 3639, 514, 1847, 7100, 1380, 273, 315, 4025, 1056, 24099, 628, 21619, 1625, 2191, 67, 350, 273, 692, 225, 471, 3824, 67, 3804, 273, 692, 13636, 3639, 1033, 8526, 579, 1972, 7100, 1380, 273, 394, 1033, 63, 7073, 2704, 2144, 12, 2191, 67, 350, 262, 16, 394, 2144, 12, 997, 67, 5414, 67, 2135, 262, 20451, 3639, 2407, 1056, 1253, 273, 1847, 5164, 18, 8837, 1138, 12, 1847, 7100, 1380, 16, 579, 1972, 7100, 1380, 16, 394, 3438, 2 ]
tgtItem.addAttribute(new Attribute("failType", sb.toString()));
protected void setBioEntityMap(Item srcItem, Item tgtItem) throws ObjectStoreException { StringBuffer sb = new StringBuffer(); ReferenceList failTypes = new ReferenceList(); failTypes = srcItem.getCollection("failTypes"); if (failTypes != null) { for (Iterator l = srcItem.getCollection("failTypes").getRefIds().iterator(); l.hasNext();) { Item ontoItem = ItemHelper.convert(srcItemReader.getItemById((String) l.next())); sb.append(ontoItem.getAttribute("value").getValue() + " "); } tgtItem.addAttribute(new Attribute("failType", sb.toString())); } Reference controlType = new Reference(); controlType = srcItem.getReference("controlType"); boolean controlFlg = false; if (controlType != null) { Item controlItem = ItemHelper.convert(srcItemReader.getItemById( (String) srcItem.getReference("controlType").getRefId())); if (controlItem.getAttribute("value").getValue().equals("control_buffer")) { controlFlg = true; } } ReferenceList featureReporterMaps = srcItem.getCollection("featureReporterMaps"); ReferenceList immobilizedChar = srcItem.getCollection("immobilizedCharacteristics"); sb = new StringBuffer(); String identifier = null; if (immobilizedChar == null) { if (failTypes != null) { //throw new IllegalArgumentException( LOG.info("Reporter (" + srcItem.getIdentifier() + ") does not have immobilizedCharacteristics because it fails"); } else if (controlFlg) { LOG.info("Reporter (" + srcItem.getIdentifier() + ") does not have immobilizedCharacteristics because" + " it is a control_buffer"); } else { throw new IllegalArgumentException("Reporter (" + srcItem.getIdentifier() + ") does not have immobilizedCharacteristics"); } } else if (!isSingleElementCollection(immobilizedChar)) { throw new IllegalArgumentException("Reporter (" + srcItem.getIdentifier() + ") have more than one immobilizedCharacteristics"); } else { //create bioEntity2IdentifierMap //identifier = reporter: name for CDNAClone, Vector //identifier = reporter: controlType;name;descriptions for genomic_dna identifier = (String) immobilizedChar.getRefIds().get(0); if (tgtItem.getClassName().equals(tgtNs + "NuclearDNA")) { sb = new StringBuffer(); if (srcItem.hasReference("controlType")) { Item controlItem = ItemHelper.convert(srcItemReader.getItemById( (String) srcItem.getReference("controlType").getRefId())); if (controlItem.hasAttribute("value")) { sb.append(controlItem.getAttribute("value").getValue() + ";"); } } if (srcItem.hasAttribute("name")) { sb.append(srcItem.getAttribute("name").getValue() + ";"); } if (srcItem.hasCollection("descriptions")) { for (Iterator k = srcItem.getCollection("descriptions").getRefIds().iterator(); k.hasNext();) { Item description = ItemHelper.convert(srcItemReader.getItemById( (String) k.next())); if (description.hasAttribute("text")) { sb.append(description.getAttribute("text").getValue() + ";"); } } } if (sb.length() > 1) { bioEntity2IdentifierMap.put(identifier, sb.substring(0, sb.length() - 1)); } } else { sb = new StringBuffer(); if (srcItem.hasAttribute("name")) { sb.append(srcItem.getAttribute("name").getValue()); bioEntity2IdentifierMap.put(identifier, sb.toString()); } } //create bioEntity2FeatureMap sb = new StringBuffer(); if (featureReporterMaps != null) { for (Iterator i = featureReporterMaps.getRefIds().iterator(); i.hasNext(); ) { //FeatureReporterMap //desc2 Item frm = ItemHelper.convert(srcItemReader.getItemById((String) i.next())); if (frm.hasCollection("featureInformationSources")) { Iterator j = frm.getCollection("featureInformationSources"). getRefIds().iterator(); //can't prefetch from FeatureReporterMap get featureInformationSources while (j.hasNext()) { Item fis = ItemHelper.convert(srcItemReader.getItemById( (String) j.next())); if (fis.hasReference("feature")) { sb.append(fis.getReference("feature").getRefId() + " "); } } } } //identifier = (String) immobilizedChar.getRefIds().get(0); tgtItem.addReference(new Reference("material", identifier)); if (sb.length() > 1) { bioEntity2Feature.put(identifier, sb.substring(0, sb.length() - 1)); } LOG.debug("bioEntity2Feature" + bioEntity2Feature.toString()); } } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/92aeb406bb739a7c747d04e7114f03bfdde0afcd/MageDataTranslator.java/clean/flymine/model/mage/src/java/org/flymine/dataconversion/MageDataTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 15268, 1594, 1943, 863, 12, 1180, 1705, 1180, 16, 4342, 11680, 1180, 13, 3639, 1216, 1033, 21151, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 6268, 682, 2321, 2016, 273, 394, 6268, 682, 5621, 3639, 2321, 2016, 273, 1705, 1180, 18, 588, 2532, 2932, 6870, 2016, 8863, 3639, 309, 261, 6870, 2016, 480, 446, 13, 288, 5411, 364, 261, 3198, 328, 273, 1705, 1180, 18, 588, 2532, 2932, 6870, 2016, 20387, 588, 1957, 2673, 7675, 9838, 5621, 5397, 328, 18, 5332, 2134, 5621, 13, 288, 7734, 4342, 10170, 1180, 273, 4342, 2276, 18, 6283, 12, 4816, 1180, 2514, 18, 588, 1180, 5132, 12443, 780, 13, 328, 18, 4285, 1435, 10019, 7734, 2393, 18, 6923, 12, 265, 869, 1180, 18, 588, 1499, 2932, 1132, 20387, 24805, 1435, 397, 315, 315, 1769, 5411, 289, 10792, 289, 3639, 6268, 3325, 559, 273, 394, 6268, 5621, 3639, 3325, 559, 273, 1705, 1180, 18, 588, 2404, 2932, 7098, 559, 8863, 3639, 1250, 3325, 2340, 75, 273, 629, 31, 3639, 309, 261, 7098, 559, 480, 446, 13, 288, 5411, 4342, 3325, 1180, 273, 4342, 2276, 18, 6283, 12, 4816, 1180, 2514, 18, 588, 1180, 5132, 12, 19694, 261, 780, 13, 1705, 1180, 18, 588, 2404, 2932, 7098, 559, 20387, 588, 1957, 548, 1435, 10019, 5411, 309, 261, 7098, 1180, 18, 588, 1499, 2932, 1132, 20387, 24805, 7675, 14963, 2932, 7098, 67, 4106, 6, 3719, 288, 7734, 3325, 2340, 75, 273, 638, 31, 5411, 289, 3639, 289, 3639, 6268, 682, 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, 15268, 1594, 1943, 863, 12, 1180, 1705, 1180, 16, 4342, 11680, 1180, 13, 3639, 1216, 1033, 21151, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 6268, 682, 2321, 2016, 273, 394, 6268, 682, 5621, 3639, 2321, 2016, 273, 1705, 1180, 18, 588, 2532, 2932, 6870, 2016, 8863, 3639, 309, 261, 6870, 2016, 480, 446, 13, 288, 5411, 364, 261, 3198, 328, 273, 1705, 1180, 18, 588, 2532, 2932, 6870, 2016, 20387, 588, 1957, 2673, 7675, 9838, 5621, 5397, 328, 18, 5332, 2134, 5621, 13, 288, 7734, 4342, 10170, 1180, 273, 4342, 2276, 18, 6283, 12, 4816, 1180, 2514, 18, 588, 1180, 5132, 12443, 780, 13, 328, 18, 4285, 1435, 10019, 7734, 2393, 18, 6923, 12, 2 ]
ExceptionHandler.openErrorMessageBox( Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Title" ), Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Message" ) );
ExceptionHandler.openErrorMessageBox( Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Title" ), Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Message" ) );
public void widgetSelected( SelectionEvent event ) { FileDialog fileChooser = new FileDialog( getShell( ), SWT.OPEN ); fileChooser.setText( Messages.getString( "ImageBuilder.Chooser.Title" ) ); //$NON-NLS-1$ fileChooser.setFilterExtensions( IMAGE_FILEFILTERS ); try { String fullPath = fileChooser.open( ); if ( fullPath != null ) { String fileName = fileChooser.getFileName( ); if ( fileName != null ) { if ( embeddedImageList.indexOf( fileName ) != -1 ) { ExceptionHandler.openMessageBox( DLG_TITLE_IMPORT_FAIL, DLG_ERROR_MSG_FILE_EXISTS, SWT.ICON_WARNING ); return; } if ( checkExtensions( fileName ) == false ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Title" ), Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Message" ) ); return; } previewCanvas.loadImage( ImageManager.getInstance( ).loadImage( fullPath ) ); BirtImageLoader imageLoader = new BirtImageLoader( ); EmbeddedImage image = imageLoader.save( getModuleHandle( ), fullPath, fileName ); embeddedImageList.add( image.getName( ) ); embeddedImageList.select( embeddedImageList.indexOf( image.getName( ) ) ); updateButtons( ); } } } catch ( Throwable e ) { preview( ); if ( e instanceof OutOfMemoryError ) { e = GUIException.createGUIException( ReportPlugin.REPORT_UI, e ); } ExceptionHandler.handle( e, DLG_TITLE_LOADING_FAIL, DLG_ERROR_MSG_LOADING_FAIL ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/f06fb5699fc635c9c62b83fb721c2da353cf68a6/ImageBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ImageBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 871, 262, 1082, 202, 95, 9506, 202, 812, 6353, 585, 17324, 273, 394, 1387, 6353, 12, 7932, 1165, 12, 262, 16, 348, 8588, 18, 11437, 11272, 9506, 202, 768, 17324, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 2040, 1263, 18, 17324, 18, 4247, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 768, 17324, 18, 542, 1586, 7513, 12, 10757, 67, 3776, 11126, 55, 11272, 9506, 202, 698, 9506, 202, 95, 6862, 202, 780, 11225, 273, 585, 17324, 18, 3190, 12, 11272, 6862, 202, 430, 261, 11225, 480, 446, 262, 6862, 202, 95, 25083, 202, 780, 3968, 273, 585, 17324, 18, 588, 4771, 12, 11272, 25083, 202, 430, 261, 3968, 480, 446, 262, 25083, 202, 95, 6862, 1082, 202, 430, 261, 7488, 2040, 682, 18, 31806, 12, 3968, 262, 480, 300, 21, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 18894, 18, 3190, 27647, 12, 463, 48, 43, 67, 14123, 67, 20445, 67, 12319, 16, 6862, 25083, 202, 8914, 43, 67, 3589, 67, 11210, 67, 3776, 67, 21205, 16, 6862, 25083, 202, 55, 8588, 18, 21745, 67, 9511, 11272, 6862, 9506, 202, 2463, 31, 6862, 1082, 202, 97, 6862, 6862, 25083, 202, 430, 261, 866, 7513, 12, 3968, 262, 422, 629, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 18894, 18, 3190, 14935, 3514, 12, 4838, 18, 588, 780, 12, 315, 14980, 8946, 907, 2249, 18, 4771, 668, 18, 4247, 6, 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, 1875, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 871, 262, 1082, 202, 95, 9506, 202, 812, 6353, 585, 17324, 273, 394, 1387, 6353, 12, 7932, 1165, 12, 262, 16, 348, 8588, 18, 11437, 11272, 9506, 202, 768, 17324, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 2040, 1263, 18, 17324, 18, 4247, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 768, 17324, 18, 542, 1586, 7513, 12, 10757, 67, 3776, 11126, 55, 11272, 9506, 202, 698, 9506, 202, 95, 6862, 202, 780, 11225, 273, 585, 17324, 18, 3190, 12, 11272, 6862, 202, 430, 261, 11225, 480, 446, 262, 6862, 202, 95, 25083, 202, 780, 3968, 273, 585, 17324, 18, 588, 4771, 12, 2 ]
String roleId = roleElements[i].getAttribute(ID_ATTRIBUTE);
String roleId = roleElements[j].getAttribute(ID_ATTRIBUTE);
public void setup(Request request) throws AccessControlException { SourceResolver resolver = null; Source source = null; try { resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE); Publication publication = PublicationFactory.getPublication(resolver, request); source = resolver.resolveURI( "context:///" + Publication.PUBLICATION_PREFIX_URI + "/" + publication.getId() + CONFIGURATION_FILE); Document document = DocumentHelper.readDocument(source.getInputStream()); assert document.getDocumentElement().getLocalName().equals(USECASES_ELEMENT); NamespaceHelper helper = new NamespaceHelper( AccessController.NAMESPACE, AccessController.DEFAULT_PREFIX, document); Element[] usecaseElements = helper.getChildren(document.getDocumentElement(), USECASE_ELEMENT); for (int i = 0; i < usecaseElements.length; i++) { String usecaseId = usecaseElements[i].getAttribute(ID_ATTRIBUTE); getLogger().debug("Found usecase [" + usecaseId + "]"); Element[] roleElements = helper.getChildren(usecaseElements[i], ROLE_ELEMENT); Set roleIds = new HashSet(); for (int j = 0; j < roleElements.length; j++) { String roleId = roleElements[i].getAttribute(ID_ATTRIBUTE); roleIds.add(roleId); getLogger().debug("Adding role [" + roleId + "]"); } usecaseToRoles.put(usecaseId, roleIds); } } catch (Exception e) { throw new AccessControlException("Building usecase role configuration failed: ", e); } finally { if (resolver != null) { if (source != null) { resolver.release(source); } manager.release(resolver); } } roles = PolicyAuthorizer.getRoles(request); }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/3617b88801f72d6ac3d56e01a2bd2862670206aa/UsecaseAuthorizer.java/clean/src/java/org/apache/lenya/cms/ac2/usecase/UsecaseAuthorizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3875, 12, 691, 590, 13, 1216, 24349, 503, 288, 3639, 4998, 4301, 5039, 273, 446, 31, 3639, 4998, 1084, 273, 446, 31, 3639, 775, 288, 5411, 5039, 273, 261, 1830, 4301, 13, 3301, 18, 8664, 12, 1830, 4301, 18, 16256, 1769, 5411, 7224, 367, 20574, 273, 7224, 367, 1733, 18, 588, 4782, 367, 12, 14122, 16, 590, 1769, 5411, 1084, 273, 7734, 5039, 18, 10828, 3098, 12, 10792, 315, 2472, 2207, 4898, 13491, 397, 7224, 367, 18, 14939, 2689, 67, 6307, 67, 3098, 13491, 397, 4016, 13491, 397, 20574, 18, 26321, 1435, 13491, 397, 28527, 67, 3776, 1769, 5411, 4319, 1668, 273, 4319, 2276, 18, 896, 2519, 12, 3168, 18, 588, 4348, 10663, 5411, 1815, 1668, 18, 588, 2519, 1046, 7675, 588, 29583, 7675, 14963, 12, 8001, 13415, 55, 67, 10976, 1769, 5411, 6005, 2276, 4222, 273, 7734, 394, 6005, 2276, 12, 10792, 25556, 18, 11368, 16, 10792, 25556, 18, 5280, 67, 6307, 16, 10792, 1668, 1769, 5411, 3010, 8526, 999, 3593, 3471, 273, 7734, 4222, 18, 588, 4212, 12, 5457, 18, 588, 2519, 1046, 9334, 14988, 13415, 67, 10976, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 999, 3593, 3471, 18, 2469, 31, 277, 27245, 288, 7734, 514, 999, 3593, 548, 273, 999, 3593, 3471, 63, 77, 8009, 588, 1499, 12, 734, 67, 11616, 1769, 7734, 7156, 7675, 4148, 2932, 2043, 999, 3593, 8247, 397, 999, 3593, 548, 397, 9870, 1769, 7734, 3010, 8526, 2478, 3471, 273, 4222, 18, 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, 1071, 918, 3875, 12, 691, 590, 13, 1216, 24349, 503, 288, 3639, 4998, 4301, 5039, 273, 446, 31, 3639, 4998, 1084, 273, 446, 31, 3639, 775, 288, 5411, 5039, 273, 261, 1830, 4301, 13, 3301, 18, 8664, 12, 1830, 4301, 18, 16256, 1769, 5411, 7224, 367, 20574, 273, 7224, 367, 1733, 18, 588, 4782, 367, 12, 14122, 16, 590, 1769, 5411, 1084, 273, 7734, 5039, 18, 10828, 3098, 12, 10792, 315, 2472, 2207, 4898, 13491, 397, 7224, 367, 18, 14939, 2689, 67, 6307, 67, 3098, 13491, 397, 4016, 13491, 397, 20574, 18, 26321, 1435, 13491, 397, 28527, 67, 3776, 1769, 5411, 4319, 1668, 273, 4319, 2276, 18, 896, 2519, 12, 3168, 18, 588, 4348, 10663, 5411, 1815, 1668, 2 ]
if (logger.isInfoEnabled()) { String peerUrl = ProActive.getActiveObjectNodeUrl(peer); logger.info("Acquaintance " + peerUrl + " " + result + " added"); }
String peerUrl = ProActive.getActiveObjectNodeUrl(peer); logger.info("Acquaintance " + peerUrl + " " + result + " added");
public void add(P2PService peer) { if (!this.groupOfAcquaintances.contains(peer)) { boolean result = this.groupOfAcquaintances.add(peer); if (logger.isInfoEnabled()) { String peerUrl = ProActive.getActiveObjectNodeUrl(peer); logger.info("Acquaintance " + peerUrl + " " + result + " added"); } } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/1279458d52679339839158611daec34b4baf800a/P2PAcquaintanceManager.java/clean/src/org/objectweb/proactive/p2p/service/P2PAcquaintanceManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 52, 22, 52, 1179, 4261, 13, 288, 3639, 309, 16051, 2211, 18, 1655, 951, 9988, 372, 1598, 6872, 18, 12298, 12, 12210, 3719, 288, 5411, 1250, 563, 273, 333, 18, 1655, 951, 9988, 372, 1598, 6872, 18, 1289, 12, 12210, 1769, 5411, 309, 261, 4901, 18, 291, 966, 1526, 10756, 288, 7734, 514, 4261, 1489, 273, 1186, 3896, 18, 588, 3896, 921, 907, 1489, 12, 12210, 1769, 7734, 1194, 18, 1376, 2932, 9988, 372, 1598, 1359, 315, 397, 4261, 1489, 397, 315, 315, 397, 563, 397, 10792, 315, 3096, 8863, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 52, 22, 52, 1179, 4261, 13, 288, 3639, 309, 16051, 2211, 18, 1655, 951, 9988, 372, 1598, 6872, 18, 12298, 12, 12210, 3719, 288, 5411, 1250, 563, 273, 333, 18, 1655, 951, 9988, 372, 1598, 6872, 18, 1289, 12, 12210, 1769, 5411, 309, 261, 4901, 18, 291, 966, 1526, 10756, 288, 7734, 514, 4261, 1489, 273, 1186, 3896, 18, 588, 3896, 921, 907, 1489, 12, 12210, 1769, 7734, 1194, 18, 1376, 2932, 9988, 372, 1598, 1359, 315, 397, 4261, 1489, 397, 315, 315, 397, 563, 397, 10792, 315, 3096, 8863, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else {
} else {
private void generation () throws Exception { int i,j=0; double best_fit = -Double.MAX_VALUE; int old_count = 0; int count; GABitSet [] newPop = new GABitSet [m_popSize]; int parent1,parent2; /** first ensure that the population best is propogated into the new generation */ for (i=0;i<m_popSize;i++) { if (m_population[i].getFitness() > best_fit) { j = i; best_fit = m_population[i].getFitness(); old_count = countFeatures(m_population[i].getChromosome()); } else if (Utils.eq(m_population[i].getFitness(), best_fit)) { count = countFeatures(m_population[i].getChromosome()); if (count < old_count) { j = i; best_fit = m_population[i].getFitness(); old_count = count; } } } newPop[0] = (GABitSet)(m_population[j].clone()); newPop[1] = newPop[0]; for (j=2;j<m_popSize;j+=2) { parent1 = select(); parent2 = select(); newPop[j] = (GABitSet)(m_population[parent1].clone()); newPop[j+1] = (GABitSet)(m_population[parent2].clone()); // if parents are equal mutate one bit if (parent1 == parent2) { int r; if (m_hasClass) { while ((r = (Math.abs(m_random.nextInt()) % m_numAttribs)) == m_classIndex); } else { r = m_random.nextInt() % m_numAttribs; } if (newPop[j].get(r)) { newPop[j].clear(r); } else { newPop[j].set(r); } } else { // crossover double r = m_random.nextDouble(); if (r < m_pCrossover) { // cross point int cp = Math.abs(m_random.nextInt()); cp %= (m_numAttribs-2); cp ++; for (i=0;i<cp;i++) { if (m_population[parent1].get(i)) { newPop[j+1].set(i); } else { newPop[j+1].clear(i); } if (m_population[parent2].get(i)) { newPop[j].set(i); } else { newPop[j].clear(i); } } } // mutate for (int k=0;k<2;k++) { for (i=0;i<m_numAttribs;i++) { r = m_random.nextDouble(); if (r < m_pMutation) { if (m_hasClass && (i == m_classIndex)) { // ignore class attribute } else { if (newPop[j+k].get(i)) { newPop[j+k].clear(i); } else { newPop[j+k].set(i); } } } } } } } m_population = newPop; }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/ab381beaa32cfbad24cb73364489a607927d5ab3/GeneticSearch.java/clean/trunk/weka/attributeSelection/GeneticSearch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 9377, 1832, 1216, 1185, 288, 565, 509, 277, 16, 78, 33, 20, 31, 565, 1645, 3796, 67, 7216, 273, 300, 5265, 18, 6694, 67, 4051, 31, 565, 509, 1592, 67, 1883, 273, 374, 31, 565, 509, 1056, 31, 565, 611, 2090, 305, 694, 5378, 394, 7049, 273, 394, 611, 2090, 305, 694, 306, 81, 67, 5120, 1225, 15533, 565, 509, 982, 21, 16, 2938, 22, 31, 565, 1783, 1122, 3387, 716, 326, 11209, 3796, 353, 2270, 717, 690, 1368, 326, 394, 202, 25514, 1195, 565, 364, 261, 77, 33, 20, 31, 77, 32, 81, 67, 5120, 1225, 31, 77, 27245, 288, 1377, 309, 261, 81, 67, 23555, 63, 77, 8009, 588, 42, 9746, 1435, 405, 3796, 67, 7216, 13, 288, 202, 78, 273, 277, 31, 202, 12729, 67, 7216, 273, 312, 67, 23555, 63, 77, 8009, 588, 42, 9746, 5621, 202, 1673, 67, 1883, 273, 1056, 8696, 12, 81, 67, 23555, 63, 77, 8009, 588, 30761, 16958, 10663, 1377, 289, 469, 309, 261, 1989, 18, 11253, 12, 81, 67, 23555, 63, 77, 8009, 588, 42, 9746, 9334, 3796, 67, 7216, 3719, 288, 202, 1883, 273, 1056, 8696, 12, 81, 67, 23555, 63, 77, 8009, 588, 30761, 16958, 10663, 202, 430, 261, 1883, 411, 1592, 67, 1883, 13, 288, 202, 225, 525, 273, 277, 31, 202, 225, 3796, 67, 7216, 273, 312, 67, 23555, 63, 77, 8009, 588, 42, 9746, 5621, 202, 225, 1592, 67, 1883, 273, 1056, 31, 202, 97, 1377, 289, 565, 289, 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, 9377, 1832, 1216, 1185, 288, 565, 509, 277, 16, 78, 33, 20, 31, 565, 1645, 3796, 67, 7216, 273, 300, 5265, 18, 6694, 67, 4051, 31, 565, 509, 1592, 67, 1883, 273, 374, 31, 565, 509, 1056, 31, 565, 611, 2090, 305, 694, 5378, 394, 7049, 273, 394, 611, 2090, 305, 694, 306, 81, 67, 5120, 1225, 15533, 565, 509, 982, 21, 16, 2938, 22, 31, 565, 1783, 1122, 3387, 716, 326, 11209, 3796, 353, 2270, 717, 690, 1368, 326, 394, 202, 25514, 1195, 565, 364, 261, 77, 33, 20, 31, 77, 32, 81, 67, 5120, 1225, 31, 77, 27245, 288, 1377, 309, 261, 81, 67, 23555, 63, 77, 8009, 588, 42, 9746, 1435, 405, 3796, 2 ]
setRequiredElements( artifact, VALID, VALID, VALID ); MockRepositoryQueryLayer queryLayer = new MockRepositoryQueryLayer(); queryLayer.addReturnValue( ARTIFACT_FOUND );
Dependency dependency = createDependency( VALID_GROUP_ID, VALID_ARTIFACT_ID, "[" ); model.addDependency( dependency );
public void testValidArtifactWithInvalidDependencyVersion() { MockArtifactFactory artifactFactory = new MockArtifactFactory(); processor.setArtifactFactory( artifactFactory ); setRequiredElements( artifact, VALID, VALID, VALID ); MockRepositoryQueryLayer queryLayer = new MockRepositoryQueryLayer(); queryLayer.addReturnValue( ARTIFACT_FOUND ); Dependency dependency = new Dependency(); setRequiredElements( dependency, VALID, VALID, null ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); processor.setRepositoryQueryLayer( queryLayer ); processor.processArtifact( model, artifact, reporter, null ); assertEquals( 1, reporter.getNumSuccesses() ); assertEquals( 1, reporter.getNumFailures() ); assertEquals( 0, reporter.getNumWarnings() ); Iterator failures = reporter.getArtifactFailureIterator(); ArtifactResult result = (ArtifactResult) failures.next(); assertEquals( ArtifactReporter.EMPTY_DEPENDENCY_VERSION, result.getReason() ); }
28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/63c171e2eb136117115bc2f964d92c8a30480d6e/ArtifactReportProcessorTest.java/clean/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ArtifactReportProcessorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1556, 7581, 1190, 1941, 7787, 1444, 1435, 565, 288, 3639, 7867, 7581, 1733, 6462, 1733, 273, 394, 7867, 7581, 1733, 5621, 3639, 6659, 18, 542, 7581, 1733, 12, 6462, 1733, 11272, 3639, 22156, 3471, 12, 6462, 16, 15093, 16, 15093, 16, 15093, 11272, 3639, 7867, 3305, 1138, 4576, 843, 4576, 273, 394, 7867, 3305, 1138, 4576, 5621, 3639, 843, 4576, 18, 1289, 19092, 12, 6052, 23240, 11625, 67, 9294, 11272, 3639, 11993, 4904, 273, 394, 11993, 5621, 3639, 22156, 3471, 12, 4904, 16, 15093, 16, 15093, 16, 446, 11272, 3639, 938, 18, 1289, 7787, 12, 4904, 11272, 3639, 843, 4576, 18, 1289, 19092, 12, 6052, 23240, 11625, 67, 9294, 11272, 3639, 6659, 18, 542, 3305, 1138, 4576, 12, 843, 4576, 11272, 3639, 6659, 18, 2567, 7581, 12, 938, 16, 6462, 16, 11528, 16, 446, 11272, 3639, 1815, 8867, 12, 404, 16, 11528, 18, 588, 2578, 4510, 281, 1435, 11272, 3639, 1815, 8867, 12, 404, 16, 11528, 18, 588, 2578, 14479, 1435, 11272, 3639, 1815, 8867, 12, 374, 16, 11528, 18, 588, 2578, 4312, 1435, 11272, 3639, 4498, 11720, 273, 11528, 18, 588, 7581, 5247, 3198, 5621, 3639, 14022, 1253, 563, 273, 261, 7581, 1253, 13, 11720, 18, 4285, 5621, 3639, 1815, 8867, 12, 14022, 13289, 18, 13625, 67, 1639, 25690, 26325, 67, 5757, 16, 563, 18, 588, 8385, 1435, 11272, 565, 289, 2, 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, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1556, 7581, 1190, 1941, 7787, 1444, 1435, 565, 288, 3639, 7867, 7581, 1733, 6462, 1733, 273, 394, 7867, 7581, 1733, 5621, 3639, 6659, 18, 542, 7581, 1733, 12, 6462, 1733, 11272, 3639, 22156, 3471, 12, 6462, 16, 15093, 16, 15093, 16, 15093, 11272, 3639, 7867, 3305, 1138, 4576, 843, 4576, 273, 394, 7867, 3305, 1138, 4576, 5621, 3639, 843, 4576, 18, 1289, 19092, 12, 6052, 23240, 11625, 67, 9294, 11272, 3639, 11993, 4904, 273, 394, 11993, 5621, 3639, 22156, 3471, 12, 4904, 16, 15093, 16, 15093, 16, 446, 11272, 3639, 938, 18, 1289, 7787, 12, 4904, 11272, 3639, 843, 4576, 18, 1289, 19092, 12, 6052, 23240, 11625, 67, 9294, 11272, 3639, 6659, 18, 542, 3305, 2 ]
return gre.getMessage(); }
return t.getMessage(); }
public String getMessage() { return gre.getMessage(); }
52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/a1cfacbb56e963e9c5c30b98fb844509dee7e0b1/GrailsWrappedRuntimeException.java/buggy/src/web/org/codehaus/groovy/grails/web/errors/GrailsWrappedRuntimeException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2381, 1435, 288, 202, 202, 2463, 5174, 18, 24906, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 2381, 1435, 288, 202, 202, 2463, 5174, 18, 24906, 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, -100, -100, -100 ]
return new Float( (float) ( (Long) obj ).longValue() );
return new Float( ( (Double) obj ).floatValue() );
public Object convert( Object obj, String param ) { return new Float( (float) ( (Long) obj ).longValue() ); }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/fdcc53ee639bb83ad76562252bd0f3ff894b19a6/Types.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/mapping/loader/Types.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 1765, 12, 1033, 1081, 16, 514, 579, 262, 288, 7734, 327, 394, 5450, 12, 261, 261, 5265, 13, 1081, 262, 18, 5659, 620, 1435, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 1765, 12, 1033, 1081, 16, 514, 579, 262, 288, 7734, 327, 394, 5450, 12, 261, 261, 5265, 13, 1081, 262, 18, 5659, 620, 1435, 11272, 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 ]
if (handler.accept(paths[i]))
if (handler.accept(path))
public static void showRunScriptDialog(View view) { String[] paths = GUIUtilities.showVFSFileDialog(view, null,JFileChooser.OPEN_DIALOG,true); if(paths != null) { Buffer buffer = view.getBuffer(); try { buffer.beginCompoundEdit(); for(int i = 0; i < paths.length; i++) { Handler handler; for (int j = 0; j < macroHandlers.size(); j++) { handler = (Handler)macroHandlers.get(j); if (handler.accept(paths[i])) { Macro macro = handler.createMacro(paths[i],paths[i]); macro.invoke(view); break; } } } } finally { buffer.endCompoundEdit(); } } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/f8ddd6d374551e583aee81e82f15420593374c30/Macros.java/clean/org/gjt/sp/jedit/Macros.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2405, 1997, 3651, 6353, 12, 1767, 1476, 13, 202, 95, 202, 202, 780, 8526, 2953, 273, 10978, 11864, 18, 4500, 58, 4931, 812, 6353, 12, 1945, 16, 1082, 202, 2011, 16, 46, 812, 17324, 18, 11437, 67, 2565, 18683, 16, 3767, 1769, 202, 202, 430, 12, 4481, 480, 446, 13, 202, 202, 95, 1082, 202, 1892, 1613, 273, 1476, 18, 588, 1892, 5621, 1082, 202, 698, 1082, 202, 95, 9506, 202, 4106, 18, 10086, 16835, 4666, 5621, 9506, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 2953, 18, 2469, 31, 277, 27245, 9506, 202, 95, 6862, 202, 1503, 1838, 31, 6862, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 11522, 6919, 18, 1467, 5621, 525, 27245, 6862, 202, 95, 25083, 202, 4176, 273, 261, 1503, 13, 26448, 6919, 18, 588, 12, 78, 1769, 25083, 202, 430, 261, 4176, 18, 9436, 12, 4481, 63, 77, 22643, 25083, 202, 95, 6862, 1082, 202, 17392, 11522, 273, 1838, 18, 2640, 17392, 12, 4481, 63, 77, 6487, 4481, 63, 77, 19226, 6862, 1082, 202, 26448, 18, 14407, 12, 1945, 1769, 6862, 1082, 202, 8820, 31, 25083, 202, 97, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 1082, 202, 23417, 1082, 202, 95, 9506, 202, 4106, 18, 409, 16835, 4666, 5621, 1082, 202, 97, 202, 202, 97, 202, 97, 368, 9090, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2405, 1997, 3651, 6353, 12, 1767, 1476, 13, 202, 95, 202, 202, 780, 8526, 2953, 273, 10978, 11864, 18, 4500, 58, 4931, 812, 6353, 12, 1945, 16, 1082, 202, 2011, 16, 46, 812, 17324, 18, 11437, 67, 2565, 18683, 16, 3767, 1769, 202, 202, 430, 12, 4481, 480, 446, 13, 202, 202, 95, 1082, 202, 1892, 1613, 273, 1476, 18, 588, 1892, 5621, 1082, 202, 698, 1082, 202, 95, 9506, 202, 4106, 18, 10086, 16835, 4666, 5621, 9506, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 2953, 18, 2469, 31, 277, 27245, 9506, 202, 95, 6862, 202, 1503, 1838, 31, 6862, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 11522, 2 ]