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
|
|---|---|---|---|---|---|---|
AST tmp2448_AST_in = (AST)_t;
|
AST tmp2447_AST_in = (AST)_t;
|
public final void sqlexpression(AST _t) throws RecognitionException { AST sqlexpression_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OR: { AST __t2432 = _t; AST tmp2429_AST_in = (AST)_t; match(_t,OR); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; sqlexpression(_t); _t = _retTree; _t = __t2432; _t = _t.getNextSibling(); break; } case AND: { AST __t2433 = _t; AST tmp2430_AST_in = (AST)_t; match(_t,AND); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; sqlexpression(_t); _t = _retTree; _t = __t2433; _t = _t.getNextSibling(); break; } case NOT: { AST __t2434 = _t; AST tmp2431_AST_in = (AST)_t; match(_t,NOT); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; _t = __t2434; _t = _t.getNextSibling(); break; } case MATCHES: { AST __t2435 = _t; AST tmp2432_AST_in = (AST)_t; match(_t,MATCHES); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2435; _t = _t.getNextSibling(); break; } case BEGINS: { AST __t2437 = _t; AST tmp2433_AST_in = (AST)_t; match(_t,BEGINS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2437; _t = _t.getNextSibling(); break; } case CONTAINS: { AST __t2439 = _t; AST tmp2434_AST_in = (AST)_t; match(_t,CONTAINS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2439; _t = _t.getNextSibling(); break; } case EQ: { AST __t2441 = _t; AST tmp2435_AST_in = (AST)_t; match(_t,EQ); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2441; _t = _t.getNextSibling(); break; } case NE: { AST __t2443 = _t; AST tmp2436_AST_in = (AST)_t; match(_t,NE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2443; _t = _t.getNextSibling(); break; } case GTHAN: { AST __t2445 = _t; AST tmp2437_AST_in = (AST)_t; match(_t,GTHAN); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2445; _t = _t.getNextSibling(); break; } case GE: { AST __t2447 = _t; AST tmp2438_AST_in = (AST)_t; match(_t,GE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2447; _t = _t.getNextSibling(); break; } case LTHAN: { AST __t2449 = _t; AST tmp2439_AST_in = (AST)_t; match(_t,LTHAN); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2449; _t = _t.getNextSibling(); break; } case LE: { AST __t2451 = _t; AST tmp2440_AST_in = (AST)_t; match(_t,LE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2451; _t = _t.getNextSibling(); break; } case EXISTS: { AST __t2453 = _t; AST tmp2441_AST_in = (AST)_t; match(_t,EXISTS); _t = _t.getFirstChild(); AST tmp2442_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; AST tmp2443_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2453; _t = _t.getNextSibling(); break; } case Sql_begins: { AST __t2454 = _t; AST tmp2444_AST_in = (AST)_t; match(_t,Sql_begins); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2445_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case BEGINS: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2446_AST_in = (AST)_t; match(_t,BEGINS); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2454; _t = _t.getNextSibling(); break; } case Sql_between: { AST __t2456 = _t; AST tmp2447_AST_in = (AST)_t; match(_t,Sql_between); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2448_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case BETWEEN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2449_AST_in = (AST)_t; match(_t,BETWEEN); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; AST tmp2450_AST_in = (AST)_t; match(_t,AND); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2456; _t = _t.getNextSibling(); break; } case Sql_in: { AST __t2458 = _t; AST tmp2451_AST_in = (AST)_t; match(_t,Sql_in); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2452_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2453_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp2454_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SELECT: { selectstatea(_t); _t = _retTree; break; } case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LITTLEENDIAN: case NO: case NOLOCK: case NOWAIT: case NULL_KW: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TRUE_KW: case USERID: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case Field_ref: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { sql_in_val(_t); _t = _retTree; { _loop2462: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2455_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sql_in_val(_t); _t = _retTree; } else { break _loop2462; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } AST tmp2456_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2458; _t = _t.getNextSibling(); break; } case Sql_like: { AST __t2463 = _t; AST tmp2457_AST_in = (AST)_t; match(_t,Sql_like); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2458_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case LIKE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2459_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ESCAPE: { AST tmp2460_AST_in = (AST)_t; match(_t,ESCAPE); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2463; _t = _t.getNextSibling(); break; } case Sql_null_test: { AST __t2466 = _t; AST tmp2461_AST_in = (AST)_t; match(_t,Sql_null_test); _t = _t.getFirstChild(); AST tmp2462_AST_in = (AST)_t; match(_t,IS); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2463_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case NULL_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2464_AST_in = (AST)_t; match(_t,NULL_KW); _t = _t.getNextSibling(); _t = __t2466; _t = _t.getNextSibling(); break; } default: if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/JPTreeParser.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4744,
4149,
1337,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4744,
4149,
1337,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
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,
4869,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
1578,
273,
389,
88,
31,
1082,
202,
9053,
1853,
3247,
5540,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
916,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
11410,
4149,
1337,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
11410,
4149,
1337,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3247,
1578,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
4116,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
3707,
273,
389,
88,
31,
1082,
202,
9053,
1853,
3247,
5082,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4307,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
11410,
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,
4744,
4149,
1337,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4744,
4149,
1337,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
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,
4869,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
1578,
273,
389,
88,
31,
1082,
202,
9053,
1853,
3247,
5540,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
916,
1769,
1082,
202,
67,
88,
273,
389,
2
] |
if ( featureID >= 0 )
|
switch ( featureID )
|
public NotificationChain eInverseRemove( InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs ) { if ( featureID >= 0 ) { switch ( eDerivedStructuralFeatureID( featureID, baseClass ) ) { case ComponentPackage.NEEDLE__LINE_ATTRIBUTES : return basicSetLineAttributes( null, msgs ); default : return eDynamicInverseRemove( otherEnd, featureID, baseClass, msgs ); } } return eBasicSetContainer( null, featureID, msgs ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/NeedleImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/NeedleImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
202,
95,
1082,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
6966,
16,
23955,
262,
262,
1082,
202,
95,
9506,
202,
3593,
5435,
2261,
18,
5407,
2056,
900,
972,
5997,
67,
22308,
294,
6862,
202,
2463,
5337,
694,
1670,
2498,
12,
446,
16,
8733,
11272,
9506,
202,
1886,
294,
6862,
202,
2463,
425,
9791,
16376,
3288,
12,
1308,
1638,
16,
6862,
1082,
202,
7238,
734,
16,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
202,
95,
1082,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
6966,
16,
23955,
262,
262,
1082,
202,
95,
9506,
202,
3593,
5435,
2261,
18,
5407,
2056,
900,
972,
5997,
67,
22308,
294,
6862,
202,
2463,
5337,
694,
1670,
2498,
12,
446,
16,
8733,
11272,
9506,
202,
1886,
294,
6862,
202,
2463,
425,
9791,
16376,
3288,
12,
1308,
1638,
16,
6862,
1082,
202,
7238,
734,
16,
6862,
1082,
202,
1969,
797,
16,
6862,
1082,
202,
27439,
11272,
1082,
202,
97,
202,
202,
97,
2
] |
Log.write(Conversions.pagesToBytes(Plan.getPagesUsed())>>10);
|
Log.write(Conversions.pagesToBytes(Plan.getPagesUsed()).toWord().rshl(10).toInt());
|
private final void baseGlobalPrepare(long start) { Statistics.gcCount++; gcStartTime = start; if ((Options.verbose == 1) || (Options.verbose == 2)) { Log.write("[GC "); Log.write(Statistics.gcCount); if (Options.verbose == 1) { Log.write(" Start "); Log.write(VM_Interface.cyclesToSecs(gcStartTime - bootTime)); Log.write(" s"); } else { Log.write(" Start "); Log.write(VM_Interface.cyclesToMillis(gcStartTime - bootTime)); Log.write(" ms"); } Log.write(" "); Log.write(Conversions.pagesToBytes(Plan.getPagesUsed())>>10); Log.write(" KB "); Log.flush(); } if (Options.verbose > 2) { Log.write("Collection "); Log.write(Statistics.gcCount); Log.write(": reserved = "); writePages(Plan.getPagesReserved(), MB_PAGES); Log.write(" total = "); writePages(getTotalPages(), MB_PAGES); Log.writeln(); Log.write(" Before Collection: "); MemoryResource.showUsage(MB); if (Options.verbose >= 4) { Log.write(" "); MemoryResource.showUsage(PAGES); } } globalPrepare(); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/e43d7e2016a91361127c8fb9db97d6fb31546065/StopTheWorldGC.java/buggy/MMTk/src/org/mmtk/plan/StopTheWorldGC.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
918,
1026,
5160,
7543,
12,
5748,
787,
13,
288,
565,
22964,
18,
13241,
1380,
9904,
31,
565,
8859,
13649,
273,
787,
31,
565,
309,
14015,
1320,
18,
11369,
422,
404,
13,
747,
261,
1320,
18,
11369,
422,
576,
3719,
288,
1377,
1827,
18,
2626,
2932,
63,
15396,
315,
1769,
1827,
18,
2626,
12,
8569,
18,
13241,
1380,
1769,
1377,
309,
261,
1320,
18,
11369,
422,
404,
13,
288,
3639,
1827,
18,
2626,
2932,
3603,
315,
1769,
540,
1827,
18,
2626,
12,
7397,
67,
1358,
18,
23976,
774,
25059,
12,
13241,
13649,
300,
4835,
950,
10019,
3639,
1827,
18,
2626,
2932,
272,
8863,
1377,
289,
469,
288,
3639,
1827,
18,
2626,
2932,
3603,
315,
1769,
540,
1827,
18,
2626,
12,
7397,
67,
1358,
18,
23976,
774,
4814,
12,
13241,
13649,
300,
4835,
950,
10019,
3639,
1827,
18,
2626,
2932,
4086,
8863,
1377,
289,
1377,
1827,
18,
2626,
2932,
282,
315,
1769,
1377,
1827,
18,
2626,
12,
29287,
18,
7267,
21033,
12,
5365,
18,
588,
5716,
6668,
1435,
2934,
869,
3944,
7675,
86,
674,
80,
12,
2163,
2934,
869,
1702,
10663,
1377,
1827,
18,
2626,
2932,
20784,
315,
1769,
1377,
1827,
18,
11330,
5621,
565,
289,
565,
309,
261,
1320,
18,
11369,
405,
576,
13,
288,
1377,
1827,
18,
2626,
2932,
2532,
315,
1769,
1827,
18,
2626,
12,
8569,
18,
13241,
1380,
1769,
1377,
1827,
18,
2626,
2932,
30,
3639,
8735,
273,
315,
1769,
1045,
5716,
12,
5365,
18,
588,
5716,
10435,
9334,
17897,
67,
11219,
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,
727,
918,
1026,
5160,
7543,
12,
5748,
787,
13,
288,
565,
22964,
18,
13241,
1380,
9904,
31,
565,
8859,
13649,
273,
787,
31,
565,
309,
14015,
1320,
18,
11369,
422,
404,
13,
747,
261,
1320,
18,
11369,
422,
576,
3719,
288,
1377,
1827,
18,
2626,
2932,
63,
15396,
315,
1769,
1827,
18,
2626,
12,
8569,
18,
13241,
1380,
1769,
1377,
309,
261,
1320,
18,
11369,
422,
404,
13,
288,
3639,
1827,
18,
2626,
2932,
3603,
315,
1769,
540,
1827,
18,
2626,
12,
7397,
67,
1358,
18,
23976,
774,
25059,
12,
13241,
13649,
300,
4835,
950,
10019,
3639,
1827,
18,
2626,
2932,
272,
8863,
1377,
289,
469,
288,
3639,
1827,
18,
2626,
2932,
3603,
315,
1769,
540,
1827,
2
] |
target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_ATTACH,
|
target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_RUN,
|
public void run( IProgressMonitor m ) { target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_ATTACH, cdiTarget, name, null, project, false, true ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/97fc7f02f379551586610a36ac715d2aefcbf893/CDebugModel.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
467,
5491,
7187,
312,
262,
1082,
202,
95,
9506,
202,
3299,
63,
20,
65,
273,
394,
385,
2829,
2326,
12,
8037,
16,
17322,
9506,
225,
26899,
2829,
2326,
559,
18,
16374,
67,
2399,
67,
14922,
67,
789,
9833,
1792,
16,
17322,
9506,
225,
276,
3211,
2326,
16,
17322,
9506,
225,
508,
16,
6862,
6862,
9506,
225,
446,
16,
6862,
6862,
9506,
225,
1984,
16,
6862,
6862,
9506,
225,
629,
16,
6862,
6862,
9506,
225,
638,
11272,
1082,
202,
97,
2,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1086,
12,
467,
5491,
7187,
312,
262,
1082,
202,
95,
9506,
202,
3299,
63,
20,
65,
273,
394,
385,
2829,
2326,
12,
8037,
16,
17322,
9506,
225,
26899,
2829,
2326,
559,
18,
16374,
67,
2399,
67,
14922,
67,
789,
9833,
1792,
16,
17322,
9506,
225,
276,
3211,
2326,
16,
17322,
9506,
225,
508,
16,
6862,
6862,
9506,
225,
446,
16,
6862,
6862,
9506,
225,
1984,
16,
6862,
6862,
9506,
225,
629,
16,
6862,
6862,
9506,
225,
638,
11272,
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
] |
return cu.getOriginalElement().getUnderlyingResource();
|
return cu.getOriginalElement().getResource();
|
private IResource getResource(IJavaElement element) throws JavaModelException { if (element instanceof IMember) { ICompilationUnit cu = ((IMember)element).getCompilationUnit(); if (cu != null) { if (cu.isWorkingCopy()) { return cu.getOriginalElement().getUnderlyingResource(); } else { return cu.getUnderlyingResource(); } } } return element.getUnderlyingResource();}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/93b35a5a711d0edb75c141799c4443c91fb39f10/SearchEngine.java/buggy/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
467,
1420,
5070,
12,
45,
5852,
1046,
930,
13,
1216,
5110,
1488,
503,
288,
202,
430,
261,
2956,
1276,
467,
4419,
13,
288,
202,
202,
45,
19184,
2802,
15985,
273,
14015,
3445,
2558,
13,
2956,
2934,
588,
19184,
2802,
5621,
202,
202,
430,
261,
6319,
480,
446,
13,
288,
1082,
202,
430,
261,
6319,
18,
291,
14836,
2951,
10756,
288,
9506,
202,
2463,
15985,
18,
588,
8176,
1046,
7675,
588,
14655,
6291,
1420,
5621,
1082,
202,
97,
469,
288,
9506,
202,
2463,
15985,
18,
588,
14655,
6291,
1420,
5621,
1082,
202,
97,
202,
202,
97,
225,
202,
97,
225,
202,
2463,
930,
18,
588,
14655,
6291,
1420,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
467,
1420,
5070,
12,
45,
5852,
1046,
930,
13,
1216,
5110,
1488,
503,
288,
202,
430,
261,
2956,
1276,
467,
4419,
13,
288,
202,
202,
45,
19184,
2802,
15985,
273,
14015,
3445,
2558,
13,
2956,
2934,
588,
19184,
2802,
5621,
202,
202,
430,
261,
6319,
480,
446,
13,
288,
1082,
202,
430,
261,
6319,
18,
291,
14836,
2951,
10756,
288,
9506,
202,
2463,
15985,
18,
588,
8176,
1046,
7675,
588,
14655,
6291,
1420,
5621,
1082,
202,
97,
469,
288,
9506,
202,
2463,
15985,
18,
588,
14655,
6291,
1420,
5621,
1082,
202,
97,
202,
202,
97,
225,
202,
97,
225,
202,
2463,
930,
18,
588,
14655,
6291,
1420,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int in = (int) (((double)tin*10.0) / (divby*(double)(i+1))); int out =(int) (((double)tout*10.0) /(divby*(double)(i+1)));
|
int in = (int) ((tin*10.0) / (divby*(i+1))); int out =(int) ((tout*10.0) /(divby*(i+1)));
|
private void _dumpInfo() { rotate(); //DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRANCE); //System.err.println(DateFormat.getDateInstance().format(new Date())); System.err.println(new Date()); Iterator it = targets.keySet().iterator(); final double divby = STATISTICS_DURATION_S*1024; while (it.hasNext()) { String key = (String)it.next(); int inres[] = ((StatisticEntry)targets.get(key)).getRecieved(); int outres[] = ((StatisticEntry)targets.get(key)).getSent(); System.err.print((key + " ").substring(0,22) + ": "); int tin = 0; int tout = 0; for (int i = 0 ; i < inres.length ; i++) { // in/out in 102.4 bytes (hecto-bytes) tin += inres[i]; tout += outres[i]; int in = (int) (((double)tin*10.0) / (divby*(double)(i+1))); int out =(int) (((double)tout*10.0) /(divby*(double)(i+1))); System.err.print("i:" + (in/10) + "." + (in%10)); System.err.print(" o:" + (out/10) + "." + (out%10)); System.err.print(" \t"); } System.err.println(); } System.err.println(); }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/IOStatisticCollector.java/buggy/src/freenet/io/comm/IOStatisticCollector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
389,
8481,
966,
1435,
288,
202,
202,
20342,
5621,
202,
202,
759,
11878,
3013,
273,
18371,
18,
588,
1626,
1442,
12,
11878,
18,
14639,
16,
6458,
18,
9981,
4722,
1769,
202,
202,
759,
3163,
18,
370,
18,
8222,
12,
11878,
18,
588,
1626,
1442,
7675,
2139,
12,
2704,
2167,
1435,
10019,
202,
202,
3163,
18,
370,
18,
8222,
12,
2704,
2167,
10663,
202,
202,
3198,
518,
273,
5774,
18,
856,
694,
7675,
9838,
5621,
202,
202,
6385,
1645,
3739,
1637,
273,
2347,
789,
5511,
28919,
67,
24951,
67,
55,
14,
2163,
3247,
31,
3196,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
498,
273,
261,
780,
13,
305,
18,
4285,
5621,
1082,
202,
474,
316,
455,
8526,
273,
14015,
20673,
1622,
13,
11358,
18,
588,
12,
856,
13,
2934,
588,
5650,
1385,
2155,
5621,
1082,
202,
474,
596,
455,
8526,
273,
14015,
20673,
1622,
13,
11358,
18,
588,
12,
856,
13,
2934,
588,
7828,
5621,
1082,
202,
3163,
18,
370,
18,
1188,
12443,
856,
397,
315,
1850,
315,
2934,
28023,
12,
20,
16,
3787,
13,
397,
6398,
315,
1769,
1082,
202,
474,
268,
267,
273,
374,
31,
1082,
202,
474,
358,
322,
273,
374,
31,
25083,
202,
1884,
261,
474,
277,
273,
374,
274,
277,
411,
316,
455,
18,
2469,
274,
277,
27245,
288,
9506,
202,
759,
316,
19,
659,
316,
21822,
18,
24,
1731,
261,
76,
386,
83,
17,
3890,
13,
9506,
202,
88,
267,
1011,
316,
455,
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,
389,
8481,
966,
1435,
288,
202,
202,
20342,
5621,
202,
202,
759,
11878,
3013,
273,
18371,
18,
588,
1626,
1442,
12,
11878,
18,
14639,
16,
6458,
18,
9981,
4722,
1769,
202,
202,
759,
3163,
18,
370,
18,
8222,
12,
11878,
18,
588,
1626,
1442,
7675,
2139,
12,
2704,
2167,
1435,
10019,
202,
202,
3163,
18,
370,
18,
8222,
12,
2704,
2167,
10663,
202,
202,
3198,
518,
273,
5774,
18,
856,
694,
7675,
9838,
5621,
202,
202,
6385,
1645,
3739,
1637,
273,
2347,
789,
5511,
28919,
67,
24951,
67,
55,
14,
2163,
3247,
31,
3196,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
498,
273,
261,
780,
13,
305,
18,
4285,
5621,
2
] |
public IWorkbenchWindow getActiveWorkbenchWindow() { // Display will be null if SWT has not been initialized or // this method was called from wrong thread. Display display = Display.getCurrent(); if (display == null) return null; // Look at the current shell and up its parent // hierarchy for a workbench window. Control shell = display.getActiveShell(); while (shell != null) { Object data = shell.getData(); if (data instanceof IWorkbenchWindow) return (IWorkbenchWindow) data; shell = shell.getParent(); } // Look for the window that was last known being // the active one WorkbenchWindow win = getActivatedWindow(); if (win != null) { return win; } // Look at all the shells and pick the first one // that is a workbench window. Shell shells[] = display.getShells(); for (int i = 0; i < shells.length; i++) { Object data = shells[i].getData(); if (data instanceof IWorkbenchWindow) return (IWorkbenchWindow) data; } // Can't find anything! return null; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c982c620ee74d8f88359cf86b9700d8f8f07c71a/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2421,
22144,
3829,
11960,
2421,
22144,
3829,
1435,
288,
202,
202,
759,
9311,
903,
506,
446,
309,
348,
8588,
711,
486,
2118,
6454,
578,
202,
202,
759,
333,
707,
1703,
2566,
628,
7194,
2650,
18,
202,
202,
4236,
2562,
273,
9311,
18,
588,
3935,
5621,
202,
202,
430,
261,
5417,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
10176,
622,
326,
783,
5972,
471,
731,
2097,
982,
202,
202,
759,
9360,
364,
279,
1440,
22144,
2742,
18,
202,
202,
3367,
5972,
273,
2562,
18,
588,
3896,
13220,
5621,
202,
202,
17523,
261,
10304,
480,
446,
13,
288,
1082,
202,
921,
501,
273,
5972,
18,
588,
751,
5621,
1082,
202,
430,
261,
892,
1276,
467,
2421,
22144,
3829,
13,
9506,
202,
2463,
261,
45,
2421,
22144,
3829,
13,
501,
31,
1082,
202,
10304,
273,
5972,
18,
588,
3054,
5621,
202,
202,
97,
9506,
202,
759,
10176,
364,
326,
2742,
716,
1703,
1142,
4846,
3832,
202,
202,
759,
326,
2695,
1245,
202,
202,
2421,
22144,
3829,
5657,
273,
336,
28724,
3829,
5621,
202,
202,
430,
261,
8082,
480,
446,
13,
288,
1082,
202,
2463,
5657,
31,
202,
202,
97,
9506,
202,
759,
10176,
622,
777,
326,
5972,
87,
471,
6002,
326,
1122,
1245,
202,
202,
759,
716,
353,
279,
1440,
22144,
2742,
18,
202,
202,
13220,
5972,
87,
8526,
273,
2562,
18,
588,
13220,
87,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
5972,
87,
18,
2469,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2421,
22144,
3829,
11960,
2421,
22144,
3829,
1435,
288,
202,
202,
759,
9311,
903,
506,
446,
309,
348,
8588,
711,
486,
2118,
6454,
578,
202,
202,
759,
333,
707,
1703,
2566,
628,
7194,
2650,
18,
202,
202,
4236,
2562,
273,
9311,
18,
588,
3935,
5621,
202,
202,
430,
261,
5417,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
10176,
622,
326,
783,
5972,
471,
731,
2097,
982,
202,
202,
759,
9360,
364,
279,
1440,
22144,
2742,
18,
202,
202,
3367,
5972,
273,
2562,
18,
588,
3896,
13220,
5621,
202,
202,
17523,
261,
10304,
480,
446,
13,
288,
1082,
202,
921,
501,
273,
5972,
18,
588,
751,
5621,
1082,
202,
430,
261,
892,
2
] |
||
if(getPattern()==null) return AlwaysMatch.v; if(!getPattern().matchesMethod(msm.getMethod())) return null;
|
if(!getPattern().matchesMethodRef(msm.getMethodRef())) return null;
|
protected Residue matchesAt(ShadowMatch sm) { if(!(sm instanceof MethodCallShadowMatch)) return null; MethodCallShadowMatch msm=(MethodCallShadowMatch) sm; // FIXME: Hack should be removed when patterns are added if(getPattern()==null) return AlwaysMatch.v; if(!getPattern().matchesMethod(msm.getMethod())) return null; return AlwaysMatch.v; }
|
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/997f4e7c5dc7eab7f3734a2c9600492132debb26/MethodCall.java/buggy/aop/abc/src/abc/weaving/aspectinfo/MethodCall.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1124,
23965,
1885,
861,
12,
12957,
2060,
3029,
13,
288,
202,
430,
12,
5,
12,
4808,
1276,
2985,
1477,
12957,
2060,
3719,
327,
446,
31,
202,
12592,
12957,
2060,
4086,
81,
28657,
12592,
12957,
2060,
13,
3029,
31,
202,
759,
9852,
30,
670,
484,
1410,
506,
3723,
1347,
6884,
854,
3096,
202,
430,
12,
588,
3234,
1435,
631,
2011,
13,
327,
14178,
2060,
18,
90,
31,
202,
430,
12,
5,
588,
3234,
7675,
8436,
1305,
12,
959,
81,
18,
588,
1305,
1435,
3719,
327,
446,
31,
202,
2463,
14178,
2060,
18,
90,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
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,
1124,
23965,
1885,
861,
12,
12957,
2060,
3029,
13,
288,
202,
430,
12,
5,
12,
4808,
1276,
2985,
1477,
12957,
2060,
3719,
327,
446,
31,
202,
12592,
12957,
2060,
4086,
81,
28657,
12592,
12957,
2060,
13,
3029,
31,
202,
759,
9852,
30,
670,
484,
1410,
506,
3723,
1347,
6884,
854,
3096,
202,
430,
12,
588,
3234,
1435,
631,
2011,
13,
327,
14178,
2060,
18,
90,
31,
202,
430,
12,
5,
588,
3234,
7675,
8436,
1305,
12,
959,
81,
18,
588,
1305,
1435,
3719,
327,
446,
31,
202,
2463,
14178,
2060,
18,
90,
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
] |
for (;;) { if (obj instanceof NativeWith) { Scriptable withObj = obj.getPrototype();
|
do { if (scope instanceof NativeWith) { Scriptable withObj = scope.getPrototype();
|
public static Scriptable bind(Context cx, Scriptable scope, String id) { Scriptable obj = scope; Scriptable firstXMLObject = null; for (;;) { if (obj instanceof NativeWith) { Scriptable withObj = obj.getPrototype(); if (withObj instanceof XMLObject) { XMLObject xmlObject = (XMLObject)withObj; if (xmlObject.ecmaHas(cx, id)) { return xmlObject; } if (firstXMLObject == null) { firstXMLObject = xmlObject; } } else { if (ScriptableObject.hasProperty(withObj, id)) { return withObj; } } } else { if (ScriptableObject.hasProperty(obj, id)) { return obj; } } obj = obj.getParentScope(); if (obj == null) { // XML objects always bind so return it if it was found return firstXMLObject; } } }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/cef67b9e54df90242c6b61cd47b35f1810416ada/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
1993,
12,
1042,
9494,
16,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
22780,
1081,
273,
2146,
31,
3639,
22780,
1122,
4201,
921,
273,
446,
31,
3639,
364,
261,
25708,
13,
288,
5411,
309,
261,
2603,
1276,
16717,
1190,
13,
288,
7734,
22780,
598,
2675,
273,
1081,
18,
588,
15846,
5621,
7734,
309,
261,
1918,
2675,
1276,
3167,
921,
13,
288,
10792,
3167,
921,
2025,
921,
273,
261,
4201,
921,
13,
1918,
2675,
31,
10792,
309,
261,
2902,
921,
18,
557,
2540,
5582,
12,
71,
92,
16,
612,
3719,
288,
13491,
327,
2025,
921,
31,
10792,
289,
10792,
309,
261,
3645,
4201,
921,
422,
446,
13,
288,
13491,
1122,
4201,
921,
273,
2025,
921,
31,
10792,
289,
7734,
289,
469,
288,
10792,
309,
261,
3651,
429,
921,
18,
5332,
1396,
12,
1918,
2675,
16,
612,
3719,
288,
13491,
327,
598,
2675,
31,
10792,
289,
7734,
289,
5411,
289,
469,
288,
7734,
309,
261,
3651,
429,
921,
18,
5332,
1396,
12,
2603,
16,
612,
3719,
288,
10792,
327,
1081,
31,
7734,
289,
5411,
289,
5411,
1081,
273,
1081,
18,
588,
3054,
3876,
5621,
5411,
309,
261,
2603,
422,
446,
13,
288,
7734,
368,
3167,
2184,
3712,
1993,
1427,
327,
518,
309,
518,
1703,
1392,
7734,
327,
1122,
4201,
921,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
1993,
12,
1042,
9494,
16,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
22780,
1081,
273,
2146,
31,
3639,
22780,
1122,
4201,
921,
273,
446,
31,
3639,
364,
261,
25708,
13,
288,
5411,
309,
261,
2603,
1276,
16717,
1190,
13,
288,
7734,
22780,
598,
2675,
273,
1081,
18,
588,
15846,
5621,
7734,
309,
261,
1918,
2675,
1276,
3167,
921,
13,
288,
10792,
3167,
921,
2025,
921,
273,
261,
4201,
921,
13,
1918,
2675,
31,
10792,
309,
261,
2902,
921,
18,
557,
2540,
5582,
12,
71,
92,
16,
612,
3719,
288,
13491,
327,
2025,
921,
31,
10792,
289,
10792,
309,
261,
3645,
4201,
921,
422,
446,
13,
288,
13491,
1122,
4201,
921,
273,
2025,
921,
2
] |
} else if (str.indexOf("FIXME: what is the message that indicates server has stoping") != -1) {
|
} else if (str.indexOf("FIXME: what is the message that indicates server is stopping") != -1) {
|
public void run() { try { String str; while ((str = forrestOutput.readLine()) != null) { // FIXME: Output should be sent to log not console System.out.println(str); if (str.indexOf("init-props:") != -1) { status = CONFIGURING; } else if (str.indexOf("run_default_jetty:") != -1 || str.indexOf("run_custom_jetty:") != -1) { status = STARTING; } else if (str.indexOf("EVENT Started org.mortbay.jetty.Server") != -1) { status = RUNNING; } else if (str.indexOf("FIXME: what is the message that indicates server has stoping") != -1) { status = STOPPING; } else if (str.indexOf("FIXME: what is the message that indicates server has stopped") != -1) { status = STOPPED; } else if (str.indexOf("org.mortbay.util.MultiException[java.net.BindException: Address already in use: JVM_Bind]") != -1) { exceptionMessage = str; status = EXCEPTION; } } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
|
6140 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6140/75e07f99b02ce58458c7732680e216dd77ddc6fd/ForrestRunner.java/clean/tools/eclipse/src/org/apache/forrest/ForrestRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
698,
288,
1082,
202,
780,
609,
31,
1082,
202,
17523,
14015,
701,
273,
364,
8792,
1447,
18,
896,
1670,
10756,
480,
446,
13,
288,
9506,
202,
759,
9852,
30,
3633,
1410,
506,
3271,
358,
613,
486,
2983,
9506,
202,
3163,
18,
659,
18,
8222,
12,
701,
1769,
9506,
202,
430,
261,
701,
18,
31806,
2932,
2738,
17,
9693,
2773,
13,
480,
300,
21,
13,
288,
6862,
202,
2327,
273,
9128,
1099,
1360,
31,
9506,
202,
97,
469,
309,
261,
701,
18,
31806,
2932,
2681,
67,
1886,
67,
78,
22084,
2773,
13,
480,
300,
21,
747,
609,
18,
31806,
2932,
2681,
67,
3662,
67,
78,
22084,
2773,
13,
480,
300,
21,
13,
288,
6862,
202,
2327,
273,
10485,
1360,
31,
9506,
202,
97,
469,
309,
261,
701,
18,
31806,
2932,
10454,
225,
29386,
2358,
18,
81,
499,
70,
528,
18,
78,
22084,
18,
2081,
7923,
480,
300,
21,
13,
288,
6862,
202,
2327,
273,
23574,
31,
9506,
202,
97,
469,
309,
261,
701,
18,
31806,
2932,
25810,
30,
4121,
353,
326,
883,
716,
8527,
1438,
711,
2132,
310,
7923,
480,
300,
21,
13,
288,
6862,
202,
2327,
273,
17815,
20002,
31,
9506,
202,
97,
469,
309,
261,
701,
18,
31806,
2932,
25810,
30,
4121,
353,
326,
883,
716,
8527,
1438,
711,
9627,
7923,
480,
300,
21,
13,
288,
6862,
202,
2327,
273,
17815,
12120,
31,
9506,
202,
97,
469,
309,
261,
701,
18,
31806,
2932,
3341,
18,
81,
499,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
698,
288,
1082,
202,
780,
609,
31,
1082,
202,
17523,
14015,
701,
273,
364,
8792,
1447,
18,
896,
1670,
10756,
480,
446,
13,
288,
9506,
202,
759,
9852,
30,
3633,
1410,
506,
3271,
358,
613,
486,
2983,
9506,
202,
3163,
18,
659,
18,
8222,
12,
701,
1769,
9506,
202,
430,
261,
701,
18,
31806,
2932,
2738,
17,
9693,
2773,
13,
480,
300,
21,
13,
288,
6862,
202,
2327,
273,
9128,
1099,
1360,
31,
9506,
202,
97,
469,
309,
261,
701,
18,
31806,
2932,
2681,
67,
1886,
67,
78,
22084,
2773,
13,
480,
300,
21,
747,
609,
18,
31806,
2932,
2681,
67,
3662,
67,
78,
22084,
2773,
13,
480,
300,
21,
2
] |
if ( "solid".equalsIgnoreCase(borders[i].borderStyle) ) { if (null == solid) { solid = new ArrayList(); } solid.add(borders[i]); } if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) )
|
else if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) )
|
private void drawBorder(BorderInfo[] borders) { //double>solid>dashed>dotted>none ArrayList dbl = null; ArrayList solid = null; ArrayList dashed = null; ArrayList dotted = null; for(int i=0; i<borders.length; i++) { if ( "double".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dbl) { dbl = new ArrayList(); } dbl.add(borders[i]); } if ( "solid".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == solid) { solid = new ArrayList(); } solid.add(borders[i]); } if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dashed) { dashed = new ArrayList(); } dashed.add(borders[i]); } if ( "dotted".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dotted) { dotted = new ArrayList(); } dotted.add(borders[i]); } } if ( null != dotted ) { for (Iterator it=dotted.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "dotted", cb ); //$NON-NLS-1$ } } if ( null != dashed ) { for (Iterator it=dashed.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "dashed", cb ); //$NON-NLS-1$ } } if ( null != solid ) { for (Iterator it=solid.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ } } if ( null != dbl ) { for (Iterator it=dbl.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); int outerBorderWidth=bi.borderWidth/3, innerBorderWidth=bi.borderWidth/3; switch (bi.borderType) { case BorderInfo.TOP_BORDER: drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY-bi.borderWidth/2+outerBorderWidth/2 ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+2*borders[BorderInfo.LEFT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.startY+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointX2PDF( bi.endX-2*borders[BorderInfo.RIGHT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.endY+bi.borderWidth/2-innerBorderWidth/2 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.RIGHT_BORDER: drawLine( layoutPointX2PDF( bi.startX+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointY2PDF( bi.endY ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointY2PDF( bi.startY+2*borders[BorderInfo.TOP_BORDER].borderWidth/3 ), layoutPointX2PDF( bi.endX-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointY2PDF( bi.endY-2*borders[BorderInfo.BOTTOM_BORDER].borderWidth/3 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.BOTTOM_BORDER: drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY+bi.borderWidth/2-outerBorderWidth/2 ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+2*borders[BorderInfo.LEFT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.startY-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointX2PDF( bi.endX-2*borders[BorderInfo.RIGHT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.endY-bi.borderWidth/2+innerBorderWidth/2 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.LEFT_BORDER: drawLine( layoutPointX2PDF( bi.startX-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointY2PDF( bi.endY ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointY2PDF( bi.startY+2*borders[BorderInfo.TOP_BORDER].borderWidth/3 ), layoutPointX2PDF( bi.endX+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointY2PDF( bi.endY-2*borders[BorderInfo.BOTTOM_BORDER].borderWidth/3 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; } } } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e18d58fe2fd81052ce23c4a1d562fba26e7d1aaf/PDFEmitter.java/buggy/engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
3724,
8107,
12,
8107,
966,
8526,
24028,
13,
202,
202,
95,
1082,
202,
759,
9056,
34,
30205,
34,
72,
13912,
34,
9811,
2344,
34,
6102,
1082,
202,
19558,
1319,
80,
273,
446,
31,
1082,
202,
19558,
18035,
273,
446,
31,
1082,
202,
19558,
12558,
329,
273,
446,
31,
1082,
202,
19558,
20965,
273,
446,
31,
6862,
3196,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
70,
9972,
18,
2469,
31,
277,
27245,
1082,
202,
95,
9506,
202,
430,
261,
315,
9056,
9654,
14963,
5556,
12,
70,
9972,
63,
77,
8009,
8815,
2885,
13,
262,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
95,
6862,
202,
430,
261,
2011,
422,
1319,
80,
13,
6862,
202,
95,
25083,
202,
1966,
80,
273,
394,
2407,
5621,
6862,
202,
97,
6862,
202,
1966,
80,
18,
1289,
12,
70,
9972,
63,
77,
19226,
9506,
202,
97,
9506,
202,
430,
261,
315,
30205,
9654,
14963,
5556,
12,
70,
9972,
63,
77,
8009,
8815,
2885,
13,
262,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
95,
6862,
202,
430,
261,
2011,
422,
18035,
13,
6862,
202,
95,
25083,
202,
30205,
273,
394,
2407,
5621,
6862,
202,
97,
6862,
202,
30205,
18,
1289,
12,
70,
9972,
63,
77,
19226,
9506,
202,
97,
9506,
202,
430,
261,
315,
72,
13912,
9654,
14963,
5556,
12,
70,
9972,
63,
77,
8009,
8815,
2885,
13,
262,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
95,
6862,
202,
430,
261,
2011,
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,
3196,
202,
1152,
918,
3724,
8107,
12,
8107,
966,
8526,
24028,
13,
202,
202,
95,
1082,
202,
759,
9056,
34,
30205,
34,
72,
13912,
34,
9811,
2344,
34,
6102,
1082,
202,
19558,
1319,
80,
273,
446,
31,
1082,
202,
19558,
18035,
273,
446,
31,
1082,
202,
19558,
12558,
329,
273,
446,
31,
1082,
202,
19558,
20965,
273,
446,
31,
6862,
3196,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
70,
9972,
18,
2469,
31,
277,
27245,
1082,
202,
95,
9506,
202,
430,
261,
315,
9056,
9654,
14963,
5556,
12,
70,
9972,
63,
77,
8009,
8815,
2885,
13,
262,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
95,
6862,
202,
430,
261,
2011,
422,
1319,
80,
13,
2
] |
public DefinitionsPane(MainFrame mf, GlobalModel model, OpenDefinitionsDocument doc) { _mainFrame = mf; _model = model; _doc = doc; setDocument(_doc); setContentType("text/java"); //setFont(new Font("Courier", 0, 12)); Font mainFont = DrJava.getConfig().getSetting(FONT_MAIN); setFont(mainFont); //setSize(new Dimension(1024, 1000)); setEditable(true); // add actions for indent key Keymap ourMap = addKeymap("INDENT_KEYMAP", getKeymap()); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), _indentKeyActionLine); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), _indentKeyActionTab); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke('}'), _indentKeyActionSquiggly); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke('{'), _indentKeyActionOpenSquiggly); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(':'), _indentKeyActionColon); setKeymap(ourMap); //this.setEditorKit(new StyledEditorKit()); // Add listener that checks if position in the document has changed. // If it has changed, check and see if we should be highlighting matching braces. this.addCaretListener(_matchListener); if (CodeStatus.DEVELOPMENT) { _antiAliasText = DrJava.getConfig().getSetting(TEXT_ANTIALIAS).booleanValue(); } // Setup the color listeners. new ForegroundColorListener(this); new BackgroundColorListener(this); DrJava.getConfig().addOptionListener( OptionConstants.DEFINITIONS_MATCH_COLOR, new MatchColorOptionListener()); DrJava.getConfig().addOptionListener( OptionConstants.COMPILER_ERROR_COLOR, new ErrorColorOptionListener()); DrJava.getConfig().addOptionListener( OptionConstants.DEBUG_BREAKPOINT_COLOR, new BreakpointColorOptionListener()); DrJava.getConfig().addOptionListener( OptionConstants.DEBUG_THREAD_COLOR, new ThreadColorOptionListener()); if (CodeStatus.DEVELOPMENT) { DrJava.getConfig().addOptionListener( OptionConstants.TEXT_ANTIALIAS, new AntiAliasOptionListener()); } createPopupMenu(); //Add listener to components that can bring up popup menus. _popupMenuMA = new PopupMenuMouseAdapter(); this.addMouseListener( _popupMenuMA ); _highlightManager = new HighlightManager(this); int rate = this.getCaret().getBlinkRate(); // Change the caret to one that doesn't remove selection highlighting when focus is lost. // Fixes bug #788295 "No highlight when find/replace switches docs". this.setCaret(new DefaultCaret() { public void focusLost(FocusEvent e) { setVisible(false); } }); this.getCaret().setBlinkRate(rate); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/310ad6d573c9d5b05b96345b8e88424e666118bd/DefinitionsPane.java/clean/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10849,
87,
8485,
12,
6376,
3219,
14749,
16,
7682,
8510,
1488,
938,
16,
7682,
3502,
7130,
2519,
997,
13,
225,
288,
565,
389,
5254,
3219,
273,
14749,
31,
565,
389,
2284,
273,
938,
31,
565,
389,
2434,
273,
997,
31,
565,
444,
2519,
24899,
2434,
1769,
565,
21852,
2932,
955,
19,
6290,
8863,
565,
368,
542,
5711,
12,
2704,
10063,
2932,
39,
24775,
3113,
374,
16,
2593,
10019,
565,
10063,
2774,
5711,
273,
11473,
5852,
18,
588,
809,
7675,
588,
5568,
12,
25221,
67,
19803,
1769,
565,
20454,
12,
5254,
5711,
1769,
565,
368,
542,
1225,
12,
2704,
13037,
12,
2163,
3247,
16,
4336,
10019,
565,
444,
15470,
12,
3767,
1769,
565,
368,
527,
4209,
364,
3504,
498,
565,
1929,
1458,
3134,
863,
273,
24819,
1458,
2932,
2356,
2222,
67,
3297,
8352,
3113,
3579,
1458,
10663,
565,
3134,
863,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
12278,
16,
374,
3631,
4766,
389,
9355,
653,
1803,
1670,
1769,
565,
3134,
863,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
28899,
16,
374,
3631,
4766,
389,
9355,
653,
1803,
5661,
1769,
565,
3134,
863,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
2668,
1713,
3631,
4766,
389,
9355,
653,
1803,
55,
372,
360,
75,
715,
1769,
565,
3134,
863,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
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,
10849,
87,
8485,
12,
6376,
3219,
14749,
16,
7682,
8510,
1488,
938,
16,
7682,
3502,
7130,
2519,
997,
13,
225,
288,
565,
389,
5254,
3219,
273,
14749,
31,
565,
389,
2284,
273,
938,
31,
565,
389,
2434,
273,
997,
31,
565,
444,
2519,
24899,
2434,
1769,
565,
21852,
2932,
955,
19,
6290,
8863,
565,
368,
542,
5711,
12,
2704,
10063,
2932,
39,
24775,
3113,
374,
16,
2593,
10019,
565,
10063,
2774,
5711,
273,
11473,
5852,
18,
588,
809,
7675,
588,
5568,
12,
25221,
67,
19803,
1769,
565,
20454,
12,
5254,
5711,
1769,
565,
368,
542,
1225,
12,
2704,
13037,
12,
2163,
3247,
16,
4336,
10019,
565,
444,
15470,
12,
3767,
1769,
565,
368,
527,
4209,
364,
3504,
2
] |
||
case COMPLEX :
|
case COMPLEX:
|
protected void control(IWContext iwc)throws RemoteException,FinderException { service =getBuildingService(iwc); outerTable = new Table(1, 2); outerTable.setCellpadding(0); outerTable.setCellspacing(0); outerTable.setWidth("100%"); outerTable.setHeight("100%"); outerTable.setHeight(2, "100%"); // outerTable.setColor(1,1,"#0E2456"); int iAction = BUILDING; if (iwc.getParameter(sAction) != null) { iAction = Integer.parseInt(iwc.getParameter(sAction)); } if (iwc.getParameter("dr_id") != null) { eId = Integer.valueOf(iwc.getParameter("dr_id")); } else if ((String) iwc.getSessionAttribute("dr_id") != null) { eId = Integer.valueOf((String) iwc.getSessionAttribute("dr_id")); iwc.removeSessionAttribute("dr_id"); } //System.err.println("Entity id " + eId); if (iwc.getParameter(prmSave) != null || iwc.getParameter(prmSave + ".x") != null) { if (iwc.getParameter("bm_choice") != null) { int i = Integer.parseInt(iwc.getParameter("bm_choice")); if (iwc.isParameterSet("delete_text")) { textId = null; } else if (iwc.isParameterSet("txt_id")) { try { textId = Integer.valueOf(iwc.getParameter("txt_id")); } catch (Exception ex) { textId = null; } } switch (i) { case COMPLEX : storeComplex(iwc); break; case BUILDING : storeBuilding(iwc); break; case FLOOR : storeFloor(iwc); break; case APARTMENT : storeApartment(iwc); break; case CATEGORY : storeApartmentCategory(iwc); break; case TYPE : storeApartmentType(iwc); break; } } } else if (iwc.getParameter(prmDelete) != null || iwc.getParameter(prmDelete + ".x") != null) { if (iwc.getParameter("bm_choice") != null && eId.intValue() > 0) { int i = Integer.parseInt(iwc.getParameter("bm_choice")); switch (i) { case COMPLEX : service.removeComplex(eId); break; case BUILDING : service.removeBuilding(eId); break; case FLOOR : service.removeFloor(eId); break; case APARTMENT : service.removeApartment(eId); break; case CATEGORY : service.removeApartmentCategory(eId); break; case TYPE : service.removeApartmentType(eId); break; } eId = null; //BuildingCacher.setToReloadNextTimeReferenced(); } } if (includeLinks) outerTable.add(makeLinkTable(iAction), 1, 1); switch (iAction) { case COMPLEX : doComplex(iwc); break; case BUILDING : doBuilding(iwc); break; case FLOOR : doFloor(iwc); break; case APARTMENT : doApartment(iwc); break; case CATEGORY : doCategory(iwc); break; case TYPE : doType(iwc); break; } add(outerTable); }
|
57352 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57352/f4ed842fa82d9ac1ea871a201abfe3132c20e560/BuildingEditor.java/buggy/src/java/com/idega/block/building/presentation/BuildingEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3325,
12,
45,
59,
1042,
25522,
71,
13,
15069,
18361,
16,
8441,
503,
288,
202,
202,
3278,
273,
588,
16713,
1179,
12,
22315,
71,
1769,
202,
202,
14068,
1388,
273,
394,
3555,
12,
21,
16,
576,
1769,
202,
202,
14068,
1388,
18,
542,
4020,
9598,
12,
20,
1769,
202,
202,
14068,
1388,
18,
542,
4020,
14080,
12,
20,
1769,
202,
202,
14068,
1388,
18,
542,
2384,
2932,
6625,
9,
8863,
202,
202,
14068,
1388,
18,
542,
2686,
2932,
6625,
9,
8863,
202,
202,
14068,
1388,
18,
542,
2686,
12,
22,
16,
315,
6625,
9,
8863,
202,
202,
759,
225,
6390,
1388,
18,
542,
2957,
12,
21,
16,
21,
10837,
7,
20,
41,
3247,
4313,
8863,
202,
202,
474,
277,
1803,
273,
30054,
1360,
31,
202,
202,
430,
261,
22315,
71,
18,
588,
1662,
12,
87,
1803,
13,
480,
446,
13,
288,
1082,
202,
77,
1803,
273,
2144,
18,
2670,
1702,
12,
22315,
71,
18,
588,
1662,
12,
87,
1803,
10019,
202,
202,
97,
202,
202,
430,
261,
22315,
71,
18,
588,
1662,
2932,
3069,
67,
350,
7923,
480,
446,
13,
288,
1082,
202,
73,
548,
273,
2144,
18,
1132,
951,
12,
22315,
71,
18,
588,
1662,
2932,
3069,
67,
350,
7923,
1769,
202,
202,
97,
202,
202,
12107,
309,
14015,
780,
13,
25522,
71,
18,
588,
2157,
1499,
2932,
3069,
67,
350,
7923,
480,
446,
13,
288,
1082,
202,
73,
548,
273,
2144,
18,
1132,
951,
12443,
780,
13,
25522,
71,
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,
1117,
918,
3325,
12,
45,
59,
1042,
25522,
71,
13,
15069,
18361,
16,
8441,
503,
288,
202,
202,
3278,
273,
588,
16713,
1179,
12,
22315,
71,
1769,
202,
202,
14068,
1388,
273,
394,
3555,
12,
21,
16,
576,
1769,
202,
202,
14068,
1388,
18,
542,
4020,
9598,
12,
20,
1769,
202,
202,
14068,
1388,
18,
542,
4020,
14080,
12,
20,
1769,
202,
202,
14068,
1388,
18,
542,
2384,
2932,
6625,
9,
8863,
202,
202,
14068,
1388,
18,
542,
2686,
2932,
6625,
9,
8863,
202,
202,
14068,
1388,
18,
542,
2686,
12,
22,
16,
315,
6625,
9,
8863,
202,
202,
759,
225,
6390,
1388,
18,
542,
2957,
12,
21,
16,
21,
10837,
7,
20,
41,
3247,
4313,
8863,
2
] |
IEditorPart editor = commonNavigator.getSite().getPage() .getActiveEditor(); if(editor != null) { IEditorInput input = editor.getEditorInput(); ILinkHelper[] helpers = linkService.getLinkHelpersFor(input); IStructuredSelection selection = StructuredSelection.EMPTY; IStructuredSelection newSelection = StructuredSelection.EMPTY; for (int i = 0; i < helpers.length; i++) { selection = helpers[i].findSelection(input); if (selection != null && !selection.isEmpty()) { newSelection = mergeSelection(newSelection, selection);
|
IWorkbenchPage page = commonNavigator.getSite().getPage(); if(page != null) { IEditorPart editor = page.getActiveEditor(); if(editor != null) { IEditorInput input = editor.getEditorInput(); ILinkHelper[] helpers = linkService.getLinkHelpersFor(input); IStructuredSelection selection = StructuredSelection.EMPTY; IStructuredSelection newSelection = StructuredSelection.EMPTY; for (int i = 0; i < helpers.length; i++) { selection = helpers[i].findSelection(input); if (selection != null && !selection.isEmpty()) { newSelection = mergeSelection(newSelection, selection); }
|
public IStatus runInUIThread(IProgressMonitor monitor) { try { IEditorPart editor = commonNavigator.getSite().getPage() .getActiveEditor(); if(editor != null) { IEditorInput input = editor.getEditorInput(); ILinkHelper[] helpers = linkService.getLinkHelpersFor(input); IStructuredSelection selection = StructuredSelection.EMPTY; IStructuredSelection newSelection = StructuredSelection.EMPTY; for (int i = 0; i < helpers.length; i++) { selection = helpers[i].findSelection(input); if (selection != null && !selection.isEmpty()) { newSelection = mergeSelection(newSelection, selection); } } if(!newSelection.isEmpty()) { commonNavigator.selectReveal(newSelection); } } } catch (Throwable e) { String msg = e.getMessage() != null ? e.getMessage() : e.toString(); NavigatorPlugin.logError(0, msg, e); } return Status.OK_STATUS; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/00fec3adb998199d572c723bc756e3be36370b66/LinkEditorAction.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/actions/LinkEditorAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
698,
288,
4697,
202,
45,
6946,
1988,
4858,
273,
2975,
22817,
18,
588,
4956,
7675,
588,
1964,
1435,
25083,
202,
18,
588,
3896,
6946,
5621,
9506,
202,
430,
12,
9177,
480,
446,
13,
288,
6862,
202,
45,
6946,
1210,
810,
273,
4858,
18,
588,
6946,
1210,
5621,
6862,
202,
45,
2098,
2276,
8526,
9246,
273,
1692,
1179,
18,
588,
2098,
13375,
1290,
12,
2630,
1769,
25083,
202,
45,
30733,
6233,
4421,
273,
7362,
2862,
6233,
18,
13625,
31,
6862,
202,
45,
30733,
6233,
394,
6233,
273,
7362,
2862,
6233,
18,
13625,
31,
25083,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
9246,
18,
2469,
31,
277,
27245,
288,
25083,
202,
10705,
273,
9246,
63,
77,
8009,
4720,
6233,
12,
2630,
1769,
25083,
202,
430,
261,
10705,
480,
446,
597,
401,
10705,
18,
291,
1921,
10756,
288,
6862,
1082,
202,
2704,
6233,
273,
2691,
6233,
12,
2704,
6233,
16,
4421,
1769,
25083,
202,
97,
6862,
202,
97,
6862,
202,
430,
12,
5,
2704,
6233,
18,
291,
1921,
10756,
288,
25083,
202,
6054,
22817,
18,
4025,
426,
24293,
12,
2704,
6233,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1044,
261,
15155,
425,
13,
288,
4697,
202,
780,
1234,
273,
425,
18,
24906,
1435,
480,
446,
692,
425,
18,
24906,
1435,
294,
425,
18,
10492,
5621,
9506,
202,
22817,
3773,
18,
1330,
668,
12,
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,
3196,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
698,
288,
4697,
202,
45,
6946,
1988,
4858,
273,
2975,
22817,
18,
588,
4956,
7675,
588,
1964,
1435,
25083,
202,
18,
588,
3896,
6946,
5621,
9506,
202,
430,
12,
9177,
480,
446,
13,
288,
6862,
202,
45,
6946,
1210,
810,
273,
4858,
18,
588,
6946,
1210,
5621,
6862,
202,
45,
2098,
2276,
8526,
9246,
273,
1692,
1179,
18,
588,
2098,
13375,
1290,
12,
2630,
1769,
25083,
202,
45,
30733,
6233,
4421,
273,
7362,
2862,
6233,
18,
13625,
31,
6862,
202,
45,
30733,
6233,
394,
6233,
273,
7362,
2862,
6233,
18,
13625,
31,
25083,
202,
1884,
261,
474,
277,
273,
2
] |
final PsiManager psiManager = PsiManager.getInstance(project); final CodeStyleManager styleManager = psiManager.getCodeStyleManager();
|
public void applyFix(Project project, ProblemDescriptor descriptor) { final PsiElement leftBrace = descriptor.getPsiElement(); final PsiCodeBlock block = (PsiCodeBlock) leftBrace.getParent(); final PsiBlockStatement blockStatement = (PsiBlockStatement) block.getParent(); final PsiElement containingElement = blockStatement.getParent(); try { final PsiManager psiManager = PsiManager.getInstance(project); final CodeStyleManager styleManager = psiManager.getCodeStyleManager(); final PsiElement[] children = block.getChildren(); for (int i = 1; i < children.length - 1; i++) { final PsiElement child = children[i]; final PsiElement childCopy = child.copy(); final PsiElement copiedElement = containingElement.addBefore(childCopy, blockStatement); styleManager.reformat(copiedElement); } blockStatement.delete(); styleManager.reformat(containingElement); } catch (IncorrectOperationException e) { final Class aClass = getClass(); final String className = aClass.getName(); final Logger logger = Logger.getInstance(className); logger.error(e); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3d1f98a3c250af05c4778fcb4219487181e75099/UnnecessaryBlockStatementInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/UnnecessaryBlockStatementInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
13,
288,
5411,
727,
453,
7722,
1046,
2002,
21965,
273,
4950,
18,
588,
52,
7722,
1046,
5621,
5411,
727,
453,
7722,
1085,
1768,
1203,
273,
261,
52,
7722,
1085,
1768,
13,
2002,
21965,
18,
588,
3054,
5621,
5411,
727,
453,
7722,
1768,
3406,
1203,
3406,
273,
261,
52,
7722,
1768,
3406,
13,
1203,
18,
588,
3054,
5621,
5411,
727,
453,
7722,
1046,
4191,
1046,
273,
1203,
3406,
18,
588,
3054,
5621,
5411,
775,
288,
7734,
727,
453,
7722,
1318,
23921,
1318,
273,
453,
7722,
1318,
18,
588,
1442,
12,
4406,
1769,
7734,
727,
3356,
2885,
1318,
2154,
1318,
273,
23921,
1318,
18,
588,
1085,
2885,
1318,
5621,
7734,
727,
453,
7722,
1046,
8526,
2325,
273,
1203,
18,
588,
4212,
5621,
7734,
364,
261,
474,
277,
273,
404,
31,
277,
411,
2325,
18,
2469,
300,
404,
31,
277,
27245,
288,
10792,
727,
453,
7722,
1046,
1151,
273,
2325,
63,
77,
15533,
10792,
727,
453,
7722,
1046,
1151,
2951,
273,
1151,
18,
3530,
5621,
10792,
727,
453,
7722,
1046,
9268,
1046,
273,
4191,
1046,
18,
1289,
4649,
12,
3624,
2951,
16,
1203,
3406,
1769,
10792,
2154,
1318,
18,
266,
2139,
12,
22295,
2092,
1046,
1769,
7734,
289,
7734,
1203,
3406,
18,
3733,
5621,
7734,
2154,
1318,
18,
266,
2139,
12,
1213,
3280,
1046,
1769,
5411,
289,
1044,
261,
16268,
10602,
425,
13,
288,
7734,
727,
1659,
20148,
273,
2900,
5621,
7734,
727,
514,
2658,
273,
20148,
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,
540,
1071,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
13,
288,
5411,
727,
453,
7722,
1046,
2002,
21965,
273,
4950,
18,
588,
52,
7722,
1046,
5621,
5411,
727,
453,
7722,
1085,
1768,
1203,
273,
261,
52,
7722,
1085,
1768,
13,
2002,
21965,
18,
588,
3054,
5621,
5411,
727,
453,
7722,
1768,
3406,
1203,
3406,
273,
261,
52,
7722,
1768,
3406,
13,
1203,
18,
588,
3054,
5621,
5411,
727,
453,
7722,
1046,
4191,
1046,
273,
1203,
3406,
18,
588,
3054,
5621,
5411,
775,
288,
7734,
727,
453,
7722,
1318,
23921,
1318,
273,
453,
7722,
1318,
18,
588,
1442,
12,
4406,
1769,
7734,
727,
3356,
2885,
1318,
2154,
1318,
273,
23921,
1318,
18,
588,
1085,
2885,
1318,
5621,
2
] |
|
SelectionChoiceDialog dialog = new SelectionChoiceDialog( Messages.getString("ParameterDialog.SelectionDialog.Edit") );
|
SelectionChoiceDialog dialog = new SelectionChoiceDialog( Messages.getString( "ParameterDialog.SelectionDialog.Edit" ) );
|
public boolean editItem( final Object element ) { final SelectionChoice choice = (SelectionChoice) element; boolean isDefault = isDefaultChoice( choice ); SelectionChoiceDialog dialog = new SelectionChoiceDialog( Messages.getString("ParameterDialog.SelectionDialog.Edit") ); //$NON-NLS-1$ dialog.setInput( choice ); dialog.setValidator( new SelectionChoiceDialog.ISelectionChoiceValidator( ) { public String validate( String displayLabel, String value ) { return validateChoice( choice, displayLabel, value ); } } ); if ( dialog.open( ) == Dialog.OK ) { choice.setValue( convertToStandardFormat( choice.getValue( ) ) ); if ( isDefault ) { defaultValue = choice.getValue( ); } return true; } return false; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/05eaa07ecbd0b690fd917d050b42db71034caf5d/ParameterDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
3874,
1180,
12,
727,
1033,
930,
262,
202,
202,
95,
1082,
202,
6385,
12977,
10538,
6023,
273,
261,
6233,
10538,
13,
930,
31,
1082,
202,
6494,
20652,
273,
20652,
10538,
12,
6023,
11272,
1082,
202,
6233,
10538,
6353,
6176,
273,
394,
12977,
10538,
6353,
12,
4838,
18,
588,
780,
12,
315,
1662,
6353,
18,
6233,
6353,
18,
4666,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12730,
18,
542,
1210,
12,
6023,
11272,
1082,
202,
12730,
18,
542,
5126,
12,
394,
12977,
10538,
6353,
18,
45,
6233,
10538,
5126,
12,
262,
288,
9506,
202,
482,
514,
1954,
12,
514,
2562,
2224,
16,
514,
460,
262,
9506,
202,
95,
6862,
202,
2463,
1954,
10538,
12,
6023,
16,
2562,
2224,
16,
460,
11272,
9506,
202,
97,
1082,
202,
97,
11272,
1082,
202,
430,
261,
6176,
18,
3190,
12,
262,
422,
17242,
18,
3141,
262,
1082,
202,
95,
9506,
202,
11569,
18,
542,
620,
12,
8137,
8336,
1630,
12,
6023,
18,
24805,
12,
262,
262,
11272,
9506,
202,
430,
261,
20652,
262,
9506,
202,
95,
6862,
202,
27652,
273,
6023,
18,
24805,
12,
11272,
9506,
202,
97,
9506,
202,
2463,
638,
31,
1082,
202,
97,
1082,
202,
2463,
629,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
3874,
1180,
12,
727,
1033,
930,
262,
202,
202,
95,
1082,
202,
6385,
12977,
10538,
6023,
273,
261,
6233,
10538,
13,
930,
31,
1082,
202,
6494,
20652,
273,
20652,
10538,
12,
6023,
11272,
1082,
202,
6233,
10538,
6353,
6176,
273,
394,
12977,
10538,
6353,
12,
4838,
18,
588,
780,
12,
315,
1662,
6353,
18,
6233,
6353,
18,
4666,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12730,
18,
542,
1210,
12,
6023,
11272,
1082,
202,
12730,
18,
542,
5126,
12,
394,
12977,
10538,
6353,
18,
45,
6233,
10538,
5126,
12,
262,
288,
9506,
202,
482,
514,
1954,
12,
514,
2562,
2224,
16,
514,
460,
262,
9506,
202,
95,
6862,
202,
2463,
2
] |
String name = identifier.getText(); if (name != null) { name = variableNameToPropertyName(name, VariableKind.PARAMETER); String[] names = getSuggestionsByName(name, variableKind, false); return new NamesByExprInfo(names, name);
|
if (identifier != null) { String name = identifier.getText(); if (name != null) { name = variableNameToPropertyName(name, VariableKind.PARAMETER); String[] names = getSuggestionsByName(name, variableKind, false); return new NamesByExprInfo(names, name); }
|
private NamesByExprInfo suggestVariableNameByExpressionPlace(PsiExpression expr, final VariableKind variableKind) { if (expr.getParent() instanceof PsiExpressionList) { PsiExpressionList list = (PsiExpressionList)expr.getParent(); PsiElement listParent = list.getParent(); PsiMethod method = null; if (listParent instanceof PsiMethodCallExpression) { method = (PsiMethod)((PsiMethodCallExpression)listParent).getMethodExpression().resolve(); } else { if (listParent instanceof PsiAnonymousClass) { listParent = listParent.getParent(); } if (listParent instanceof PsiNewExpression) { method = ((PsiNewExpression)listParent).resolveConstructor(); } } if (method != null) { method = (PsiMethod)method.getNavigationElement(); PsiExpression[] expressions = list.getExpressions(); int index = -1; for (int i = 0; i < expressions.length; i++) { if (expressions[i] == expr) { index = i; break; } } PsiParameter[] parms = method.getParameterList().getParameters(); if (index < parms.length) { PsiIdentifier identifier = parms[index].getNameIdentifier(); String name = identifier.getText(); if (name != null) { name = variableNameToPropertyName(name, VariableKind.PARAMETER); String[] names = getSuggestionsByName(name, variableKind, false); return new NamesByExprInfo(names, name); } } } } return new NamesByExprInfo(ArrayUtil.EMPTY_STRING_ARRAY, null); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/6d40cf12d74af780a66ff70596bdbc90b632d82c/CodeStyleManagerImpl.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5276,
858,
4742,
966,
19816,
21519,
858,
2300,
6029,
12,
52,
7722,
2300,
3065,
16,
727,
7110,
5677,
2190,
5677,
13,
288,
565,
309,
261,
8638,
18,
588,
3054,
1435,
1276,
453,
7722,
2300,
682,
13,
288,
1377,
453,
7722,
2300,
682,
666,
273,
261,
52,
7722,
2300,
682,
13,
8638,
18,
588,
3054,
5621,
1377,
453,
7722,
1046,
666,
3054,
273,
666,
18,
588,
3054,
5621,
1377,
453,
7722,
1305,
707,
273,
446,
31,
1377,
309,
261,
1098,
3054,
1276,
453,
7722,
12592,
2300,
13,
288,
3639,
707,
273,
261,
52,
7722,
1305,
13,
12443,
52,
7722,
12592,
2300,
13,
1098,
3054,
2934,
588,
1305,
2300,
7675,
10828,
5621,
1377,
289,
1377,
469,
288,
3639,
309,
261,
1098,
3054,
1276,
453,
7722,
18792,
797,
13,
288,
1850,
666,
3054,
273,
666,
3054,
18,
588,
3054,
5621,
3639,
289,
3639,
309,
261,
1098,
3054,
1276,
453,
7722,
1908,
2300,
13,
288,
1850,
707,
273,
14015,
52,
7722,
1908,
2300,
13,
1098,
3054,
2934,
10828,
6293,
5621,
3639,
289,
1377,
289,
1377,
309,
261,
2039,
480,
446,
13,
288,
3639,
707,
273,
261,
52,
7722,
1305,
13,
2039,
18,
588,
14301,
1046,
5621,
3639,
453,
7722,
2300,
8526,
8041,
273,
666,
18,
588,
8927,
5621,
3639,
509,
770,
273,
300,
21,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
8041,
18,
2469,
31,
277,
27245,
288,
1850,
309,
261,
21480,
63,
77,
65,
422,
3065,
13,
288,
5411,
770,
273,
277,
31,
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,
282,
3238,
5276,
858,
4742,
966,
19816,
21519,
858,
2300,
6029,
12,
52,
7722,
2300,
3065,
16,
727,
7110,
5677,
2190,
5677,
13,
288,
565,
309,
261,
8638,
18,
588,
3054,
1435,
1276,
453,
7722,
2300,
682,
13,
288,
1377,
453,
7722,
2300,
682,
666,
273,
261,
52,
7722,
2300,
682,
13,
8638,
18,
588,
3054,
5621,
1377,
453,
7722,
1046,
666,
3054,
273,
666,
18,
588,
3054,
5621,
1377,
453,
7722,
1305,
707,
273,
446,
31,
1377,
309,
261,
1098,
3054,
1276,
453,
7722,
12592,
2300,
13,
288,
3639,
707,
273,
261,
52,
7722,
1305,
13,
12443,
52,
7722,
12592,
2300,
13,
1098,
3054,
2934,
588,
1305,
2300,
7675,
10828,
5621,
1377,
289,
1377,
469,
288,
3639,
309,
2
] |
this.systemId = systemId; parse( new BufferedReader ( new AnselInputStreamReader ( (new URL(systemId)).openStream() ) ) ); }
|
this.systemId = systemId; parse(new BufferedReader( new AnselInputStreamReader( (new URL(systemId)).openStream()))); }
|
public void parse(String systemId) throws SAXException, IOException { this.systemId = systemId; parse( new BufferedReader ( new AnselInputStreamReader ( (new URL(systemId)).openStream() ) ) ); }
|
6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/7b30da2f47cbda6e16406770c133332adb1b4079/GedcomParser.java/buggy/MacPAF/src/gedml/GedcomParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
780,
30083,
13,
1216,
14366,
16,
1860,
288,
3639,
333,
18,
4299,
548,
273,
30083,
31,
3639,
1109,
12,
394,
10633,
261,
10792,
394,
1922,
1786,
4348,
2514,
261,
13491,
261,
2704,
1976,
12,
4299,
548,
13,
2934,
3190,
1228,
1435,
262,
262,
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,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1109,
12,
780,
30083,
13,
1216,
14366,
16,
1860,
288,
3639,
333,
18,
4299,
548,
273,
30083,
31,
3639,
1109,
12,
394,
10633,
261,
10792,
394,
1922,
1786,
4348,
2514,
261,
13491,
261,
2704,
1976,
12,
4299,
548,
13,
2934,
3190,
1228,
1435,
262,
262,
11272,
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
] |
if (isLeader(thisAgent)) {
|
if (thisAgent.equals(preferredLeader())) {
|
public void execute() { if ((wakeAlarm != null) && ((wakeAlarm.hasExpired()))) { if (isLeader(thisAgent)) { logger.info(statusSummary()); checkCommunityReady(); checkLoadBalance(); } wakeAlarm = new WakeAlarm((new Date()).getTime() + STATUS_INTERVAL); alarmService.addRealTimeAlarm(wakeAlarm); } }
|
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/da81c74aab1eaf4f1866c47f89194a08ab5ab145/DefaultRobustnessController.java/buggy/mgmt_agent/src/org/cougaar/tools/robustness/ma/controllers/DefaultRobustnessController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
1435,
288,
565,
309,
14015,
91,
911,
16779,
480,
446,
13,
597,
3639,
14015,
91,
911,
16779,
18,
5332,
10556,
1435,
20349,
288,
1377,
309,
261,
2211,
3630,
18,
14963,
12,
23616,
15254,
1435,
3719,
288,
3639,
1194,
18,
1376,
12,
2327,
4733,
10663,
3639,
866,
12136,
13352,
8367,
5621,
3639,
866,
2563,
13937,
5621,
1377,
289,
1377,
19891,
16779,
273,
394,
678,
911,
16779,
12443,
2704,
2167,
1435,
2934,
588,
950,
1435,
397,
7136,
67,
16435,
1769,
1377,
13721,
1179,
18,
1289,
6955,
950,
16779,
12,
91,
911,
16779,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
1435,
288,
565,
309,
14015,
91,
911,
16779,
480,
446,
13,
597,
3639,
14015,
91,
911,
16779,
18,
5332,
10556,
1435,
20349,
288,
1377,
309,
261,
2211,
3630,
18,
14963,
12,
23616,
15254,
1435,
3719,
288,
3639,
1194,
18,
1376,
12,
2327,
4733,
10663,
3639,
866,
12136,
13352,
8367,
5621,
3639,
866,
2563,
13937,
5621,
1377,
289,
1377,
19891,
16779,
273,
394,
678,
911,
16779,
12443,
2704,
2167,
1435,
2934,
588,
950,
1435,
397,
7136,
67,
16435,
1769,
1377,
13721,
1179,
18,
1289,
6955,
950,
16779,
12,
91,
911,
16779,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.padding = " ";
|
this.padding = GrouperConfig.EMPTY_STRING;
|
protected XmlWriter(Writer w) { this.newLine = GrouperConfig.NL; this.padding = " "; this.w = w; } // protected XmlWriter(w)
|
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/8ecf60cad0e72d2183ff0185a8b3e6484b3c60c5/XmlWriter.java/buggy/grouper/src/grouper/edu/internet2/middleware/grouper/XmlWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
5714,
2289,
12,
2289,
341,
13,
288,
565,
333,
18,
2704,
1670,
225,
273,
3756,
264,
809,
18,
24924,
31,
565,
333,
18,
9598,
225,
273,
3756,
264,
809,
18,
13625,
67,
5804,
31,
565,
333,
18,
91,
3639,
273,
341,
31,
225,
289,
368,
4750,
5714,
2289,
12,
91,
13,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
5714,
2289,
12,
2289,
341,
13,
288,
565,
333,
18,
2704,
1670,
225,
273,
3756,
264,
809,
18,
24924,
31,
565,
333,
18,
9598,
225,
273,
3756,
264,
809,
18,
13625,
67,
5804,
31,
565,
333,
18,
91,
3639,
273,
341,
31,
225,
289,
368,
4750,
5714,
2289,
12,
91,
13,
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
] |
exportElement( contentHandle, false );
|
exportElement( contentHandle, canOverride );
|
void exportDesign( ReportDesignHandle designToExport ) throws SemanticException { ModelUtil.duplicateProperties( designToExport, targetLibraryHandle, false ); // Copy the contents in design file. int slotCount = designToExport.getDefn( ).getSlotCount( ); for ( int i = 0; i < slotCount; i++ ) { SlotHandle sourceSlotHandle = designToExport.getSlot( i ); Iterator iter = sourceSlotHandle.iterator( ); while ( iter.hasNext( ) ) { DesignElementHandle contentHandle = (DesignElementHandle) iter .next( ); if ( !StringUtil.isBlank( contentHandle.getName( ) ) ) exportElement( contentHandle, false ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/52e6185e9c5e6224a528b3b882b626f8cc757c6a/ElementExporter.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/ElementExporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3359,
15478,
12,
8706,
15478,
3259,
8281,
774,
6144,
262,
1082,
202,
15069,
24747,
503,
202,
95,
202,
202,
1488,
1304,
18,
17342,
2297,
12,
8281,
774,
6144,
16,
1018,
9313,
3259,
16,
9506,
202,
5743,
11272,
202,
202,
759,
5631,
326,
2939,
316,
8281,
585,
18,
202,
202,
474,
4694,
1380,
273,
8281,
774,
6144,
18,
588,
3262,
82,
12,
262,
18,
588,
8764,
1380,
12,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
4694,
1380,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
8764,
3259,
1084,
8764,
3259,
273,
8281,
774,
6144,
18,
588,
8764,
12,
277,
11272,
1082,
202,
3198,
1400,
273,
1084,
8764,
3259,
18,
9838,
12,
11272,
1082,
202,
17523,
261,
1400,
18,
5332,
2134,
12,
262,
262,
1082,
202,
95,
9506,
202,
15478,
1046,
3259,
913,
3259,
273,
261,
15478,
1046,
3259,
13,
1400,
25083,
202,
18,
4285,
12,
11272,
9506,
202,
430,
261,
401,
13565,
18,
291,
7796,
12,
913,
3259,
18,
17994,
12,
262,
262,
262,
6862,
202,
6530,
1046,
12,
913,
3259,
16,
629,
11272,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3359,
15478,
12,
8706,
15478,
3259,
8281,
774,
6144,
262,
1082,
202,
15069,
24747,
503,
202,
95,
202,
202,
1488,
1304,
18,
17342,
2297,
12,
8281,
774,
6144,
16,
1018,
9313,
3259,
16,
9506,
202,
5743,
11272,
202,
202,
759,
5631,
326,
2939,
316,
8281,
585,
18,
202,
202,
474,
4694,
1380,
273,
8281,
774,
6144,
18,
588,
3262,
82,
12,
262,
18,
588,
8764,
1380,
12,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
4694,
1380,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
8764,
3259,
1084,
8764,
3259,
273,
8281,
774,
6144,
18,
588,
8764,
12,
277,
11272,
1082,
202,
3198,
1400,
273,
1084,
8764,
3259,
18,
9838,
12,
2
] |
if(A_OpenCms.isLogging()) {
|
if((A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) {
|
public CmsLauncherManager() throws CmsException { String launcherPackage = getLauncherPackage(); Class launcherClass = null; I_CmsLauncher launcherInstance = null; Integer launcherId = null; // Initialize Hashtable launchers = new Hashtable(); A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[CmsLauncherManager] launcher package is:" + launcherPackage); // try to load launcher classes. for(int i = 0;i < C_KNOWN_LAUNCHERS.length;i++) { try { launcherClass = Class.forName(launcherPackage + "." + C_KNOWN_LAUNCHERS[i]); launcherInstance = (I_CmsLauncher)launcherClass.newInstance(); } catch(Throwable e) { if(e instanceof ClassNotFoundException) { // The launcher class could not be loaded. // This is no critical error. // We assume the launcher should not be integrated into the OpenCms system. if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] OpenCms launcher \"" + C_KNOWN_LAUNCHERS[i] + "\" not found. Ignoring."); } continue; } else { if(e instanceof ClassCastException) { // The launcher could be loaded but doesn't implement the interface // I_CmsLauncher. // So this class is anything, but NOT a OpenCms launcher. // We have to stop the system. String errorMessage = "Loaded launcher class \"" + C_KNOWN_LAUNCHERS[i] + "\" is no OpenCms launcher (does not implement I_CmsLauncher). Ignoring"; if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] " + errorMessage); } continue; } else { String errorMessage = "Unknown error while initializing launcher \"" + C_KNOWN_LAUNCHERS[i] + "\". Ignoring."; if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] " + errorMessage); A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] " + e); } continue; } } } // Now the launcher class was loaded successfully. // Let's check the launcher ID launcherId = new Integer(launcherInstance.getLauncherId()); if(launchers.containsKey(launcherId)) { String errorMessage = "Duplicate launcher ID " + launcherId + " in launcher \"" + C_KNOWN_LAUNCHERS[i] + "\"."; if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] " + errorMessage); } throw new CmsException(errorMessage, CmsException.C_LAUNCH_ERROR); } // Now everything is fine. // We can store the launcher in our Hashtable. launchers.put(launcherId, launcherInstance); if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] OpenCms launcher \"" + C_KNOWN_LAUNCHERS[i] + "\" with launcher ID " + launcherId + " loaded successfully."); } } }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/65fec749058083642e3e85283287c65357fa8690/CmsLauncherManager.java/buggy/src/com/opencms/launcher/CmsLauncherManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
28820,
1318,
1435,
1216,
11228,
288,
3639,
514,
26618,
2261,
273,
9014,
4760,
264,
2261,
5621,
3639,
1659,
26618,
797,
273,
446,
31,
3639,
467,
67,
4747,
28820,
26618,
1442,
273,
446,
31,
3639,
2144,
26618,
548,
273,
446,
31,
7734,
368,
9190,
18559,
3639,
8037,
414,
273,
394,
18559,
5621,
3639,
432,
67,
3678,
4747,
18,
1330,
12,
45,
67,
4747,
1343,
10585,
18,
39,
67,
11437,
13802,
67,
12919,
16,
5158,
4747,
28820,
1318,
65,
26618,
2181,
353,
2773,
397,
26618,
2261,
1769,
7734,
368,
775,
358,
1262,
26618,
3318,
18,
3639,
364,
12,
474,
277,
273,
374,
31,
77,
411,
385,
67,
9308,
67,
2534,
2124,
1792,
11367,
18,
2469,
31,
77,
27245,
288,
5411,
775,
288,
7734,
26618,
797,
273,
1659,
18,
1884,
461,
12,
20738,
264,
2261,
397,
4585,
397,
385,
67,
9308,
67,
2534,
2124,
1792,
11367,
63,
77,
19226,
7734,
26618,
1442,
273,
261,
45,
67,
4747,
28820,
13,
20738,
264,
797,
18,
2704,
1442,
5621,
5411,
289,
5411,
1044,
12,
15155,
425,
13,
288,
7734,
309,
12,
73,
1276,
10403,
13,
288,
4766,
3639,
368,
1021,
26618,
667,
3377,
486,
506,
4203,
18,
4766,
3639,
368,
1220,
353,
1158,
11239,
555,
18,
4766,
3639,
368,
1660,
6750,
326,
26618,
1410,
486,
506,
31121,
1368,
326,
10319,
2619,
18,
10792,
309,
12443,
37,
67,
3678,
4747,
18,
291,
7735,
1435,
597,
467,
67,
4747,
1343,
10585,
18,
39,
67,
3670,
16560,
916,
67,
5127,
67,
28162,
3719,
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,
2149,
28820,
1318,
1435,
1216,
11228,
288,
3639,
514,
26618,
2261,
273,
9014,
4760,
264,
2261,
5621,
3639,
1659,
26618,
797,
273,
446,
31,
3639,
467,
67,
4747,
28820,
26618,
1442,
273,
446,
31,
3639,
2144,
26618,
548,
273,
446,
31,
7734,
368,
9190,
18559,
3639,
8037,
414,
273,
394,
18559,
5621,
3639,
432,
67,
3678,
4747,
18,
1330,
12,
45,
67,
4747,
1343,
10585,
18,
39,
67,
11437,
13802,
67,
12919,
16,
5158,
4747,
28820,
1318,
65,
26618,
2181,
353,
2773,
397,
26618,
2261,
1769,
7734,
368,
775,
358,
1262,
26618,
3318,
18,
3639,
364,
12,
474,
277,
273,
374,
31,
77,
411,
385,
67,
9308,
67,
2534,
2124,
1792,
11367,
18,
2469,
31,
77,
27245,
2
] |
public org.quickfix.field.SignatureLength get(org.quickfix.field.SignatureLength value)
|
public quickfix.field.SignatureLength get(quickfix.field.SignatureLength value)
|
public org.quickfix.field.SignatureLength get(org.quickfix.field.SignatureLength value) throws FieldNotFound { getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Message.java/buggy/src/java/src/quickfix/fix43/Message.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9549,
904,
18,
1518,
18,
5374,
1782,
336,
12,
19525,
904,
18,
1518,
18,
5374,
1782,
225,
460,
13,
1377,
1216,
2286,
2768,
565,
288,
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,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2286,
2768,
565,
288,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return s47;
|
return s49;
|
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 25: return s34; case 24: return s47; case EOL: case 15: return s99; default: NoViableAltException nvae = new NoViableAltException("", 4, 99, input); throw nvae; } }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/8c3be0baa8712893e2dea6fbb679cbb7e80de372/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
6969,
30,
10792,
327,
272,
5026,
31,
7734,
648,
4248,
30,
10792,
327,
272,
7616,
31,
7734,
648,
19995,
30,
7734,
648,
4711,
30,
10792,
327,
272,
2733,
31,
7734,
805,
30,
10792,
17114,
15077,
273,
13491,
394,
17114,
2932,
3113,
1059,
16,
14605,
16,
810,
1769,
10792,
604,
15077,
31,
3639,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
6969,
30,
10792,
327,
272,
5026,
31,
7734,
648,
4248,
30,
10792,
327,
272,
7616,
31,
7734,
648,
19995,
30,
7734,
648,
4711,
30,
10792,
327,
272,
2733,
31,
7734,
805,
30,
10792,
17114,
15077,
273,
13491,
394,
17114,
2932,
3113,
1059,
16,
14605,
16,
810,
1769,
10792,
604,
15077,
31,
3639,
289,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int graphConnectionStyle= getCastedModel().getGraphModel().getConnectionStyle();
|
private boolean isDirected() { int graphConnectionStyle= getCastedModel().getGraphModel().getConnectionStyle(); int connectionStyle = getCastedModel().getConnectionStyle(); if (ZestStyles.checkStyle(connectionStyle, ZestStyles.CONNECTIONS_DIRECTED)) { return true; } else if (ZestStyles.checkStyle(graphConnectionStyle, ZestStyles.CONNECTIONS_DIRECTED)) { return true; } return false; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/4d8505f94ad9a568ae6ca572f130b5b217a63299/GraphConnectionEditPart.java/clean/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/internal/graphviewer/parts/GraphConnectionEditPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
353,
5368,
329,
1435,
288,
202,
202,
474,
2667,
1952,
2885,
33,
1927,
689,
329,
1488,
7675,
588,
4137,
1488,
7675,
588,
1952,
2885,
5621,
202,
202,
474,
1459,
2885,
273,
1927,
689,
329,
1488,
7675,
588,
1952,
2885,
5621,
202,
202,
430,
261,
62,
395,
9725,
18,
1893,
2885,
12,
4071,
2885,
16,
2285,
395,
9725,
18,
15461,
55,
67,
17541,
2056,
3719,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
469,
309,
261,
62,
395,
9725,
18,
1893,
2885,
12,
4660,
1952,
2885,
16,
2285,
395,
9725,
18,
15461,
55,
67,
17541,
2056,
3719,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
2463,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
353,
5368,
329,
1435,
288,
202,
202,
474,
2667,
1952,
2885,
33,
1927,
689,
329,
1488,
7675,
588,
4137,
1488,
7675,
588,
1952,
2885,
5621,
202,
202,
474,
1459,
2885,
273,
1927,
689,
329,
1488,
7675,
588,
1952,
2885,
5621,
202,
202,
430,
261,
62,
395,
9725,
18,
1893,
2885,
12,
4071,
2885,
16,
2285,
395,
9725,
18,
15461,
55,
67,
17541,
2056,
3719,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
469,
309,
261,
62,
395,
9725,
18,
1893,
2885,
12,
4660,
1952,
2885,
16,
2285,
395,
9725,
18,
15461,
55,
67,
17541,
2056,
3719,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100
] |
|
private static final String propToString(int propType) {
|
private static final String propToString(int propType) {
|
private static final String propToString(int propType) { if (Token.printTrees) { // If Context.printTrees is false, the compiler // can remove all these strings. switch (propType) { case FUNCTION_PROP: return "function"; case LOCAL_PROP: return "local"; case LOCAL_BLOCK_PROP: return "local_block"; case REGEXP_PROP: return "regexp"; case CASES_PROP: return "cases"; case DEFAULT_PROP: return "default"; case CASEARRAY_PROP: return "casearray"; case SPECIAL_PROP_PROP: return "special_prop"; case TARGETBLOCK_PROP: return "targetblock"; case VARIABLE_PROP: return "variable"; case ISNUMBER_PROP: return "isnumber"; case DIRECTCALL_PROP: return "directcall"; case SPECIALCALL_PROP: return "specialcall"; default: Kit.codeBug(); } } return null; }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/6d458931ee3299fbfab0e9840614ad9b93413dd4/Node.java/buggy/src/org/mozilla/javascript/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
514,
2270,
5808,
12,
474,
2270,
559,
13,
288,
3639,
309,
261,
1345,
18,
1188,
26590,
13,
288,
5411,
368,
971,
1772,
18,
1188,
26590,
353,
629,
16,
326,
5274,
5411,
368,
848,
1206,
777,
4259,
2064,
18,
5411,
1620,
261,
5986,
559,
13,
288,
7734,
648,
13690,
67,
15811,
30,
1377,
327,
315,
915,
14432,
7734,
648,
15234,
67,
15811,
30,
540,
327,
315,
3729,
14432,
7734,
648,
15234,
67,
11403,
67,
15811,
30,
282,
327,
315,
3729,
67,
2629,
14432,
7734,
648,
11980,
16109,
67,
15811,
30,
3639,
327,
315,
17745,
14432,
7734,
648,
18403,
55,
67,
15811,
30,
540,
327,
315,
22186,
14432,
7734,
648,
3331,
67,
15811,
30,
4202,
327,
315,
1886,
14432,
7734,
648,
18403,
8552,
67,
15811,
30,
377,
327,
315,
3593,
1126,
14432,
7734,
648,
22872,
6365,
67,
15811,
67,
15811,
30,
225,
327,
315,
9371,
67,
5986,
14432,
7734,
648,
16964,
11403,
67,
15811,
30,
282,
327,
315,
3299,
2629,
14432,
7734,
648,
22965,
67,
15811,
30,
1377,
327,
315,
6105,
14432,
7734,
648,
4437,
9931,
67,
15811,
30,
1377,
327,
315,
291,
2696,
14432,
7734,
648,
29100,
13730,
67,
15811,
30,
565,
327,
315,
7205,
1991,
14432,
7734,
648,
22872,
6365,
13730,
67,
15811,
30,
282,
327,
315,
9371,
1991,
14432,
7734,
805,
30,
1475,
305,
18,
710,
19865,
5621,
5411,
289,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
514,
2270,
5808,
12,
474,
2270,
559,
13,
288,
3639,
309,
261,
1345,
18,
1188,
26590,
13,
288,
5411,
368,
971,
1772,
18,
1188,
26590,
353,
629,
16,
326,
5274,
5411,
368,
848,
1206,
777,
4259,
2064,
18,
5411,
1620,
261,
5986,
559,
13,
288,
7734,
648,
13690,
67,
15811,
30,
1377,
327,
315,
915,
14432,
7734,
648,
15234,
67,
15811,
30,
540,
327,
315,
3729,
14432,
7734,
648,
15234,
67,
11403,
67,
15811,
30,
282,
327,
315,
3729,
67,
2629,
14432,
7734,
648,
11980,
16109,
67,
15811,
30,
3639,
327,
315,
17745,
14432,
7734,
648,
18403,
55,
67,
15811,
30,
540,
327,
315,
22186,
14432,
7734,
648,
3331,
67,
15811,
30,
4202,
327,
315,
2
] |
List subTasks = launcher.getMigrationProcess().getMigrationTasks();
|
List subTasks = subLauncher.getMigrationProcess().getMigrationTasks();
|
public LinkedHashMap getMigrationTasksWithLaunchers() throws MigrationException { LinkedHashMap tasks = new LinkedHashMap(); for (Iterator controlledSystemIter = getControlledSystems().keySet().iterator(); controlledSystemIter.hasNext();) { String controlledSystemName = (String)controlledSystemIter.next(); JdbcMigrationLauncher launcher = (JdbcMigrationLauncher)getControlledSystems().get(controlledSystemName); List subTasks = launcher.getMigrationProcess().getMigrationTasks(); log.info("Found " + subTasks.size() + " for system " + controlledSystemName); if (log.isDebugEnabled()) { for (Iterator subTaskIter = subTasks.iterator(); subTaskIter.hasNext();) { MigrationTask task = (MigrationTask)subTaskIter.next(); log.debug("\tFound subtask " + task.getName()); tasks.put(task, launcher); } } } // Its difficult to tell what's going on when you don't see any patches. // This will help people realize they don't have patches, and perhaps // help them discover why. if (tasks.size() == 0) { log.info("No patches were discovered in your classpath. " + "Run with DEBUG logging enabled for patch search details."); } return tasks; }
|
49460 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49460/592a37bfb2de892342bf37e9df66da289b3d5087/DistributedMigrationProcess.java/buggy/migrate/src/java/com/tacitknowledge/util/migration/DistributedMigrationProcess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13589,
2108,
6574,
6685,
1190,
9569,
414,
1435,
1216,
15309,
503,
565,
288,
3639,
13589,
4592,
273,
394,
13589,
5621,
7734,
364,
261,
3198,
25934,
3163,
2360,
273,
27174,
1259,
31072,
7675,
856,
694,
7675,
9838,
5621,
5411,
25934,
3163,
2360,
18,
5332,
2134,
5621,
13,
3639,
288,
5411,
514,
25934,
3163,
461,
273,
261,
780,
13,
7098,
1259,
3163,
2360,
18,
4285,
5621,
5411,
24209,
10224,
28820,
26618,
273,
1171,
261,
25316,
10224,
28820,
13,
588,
3367,
1259,
31072,
7675,
588,
12,
7098,
1259,
3163,
461,
1769,
2868,
987,
720,
6685,
273,
720,
28820,
18,
588,
10224,
2227,
7675,
588,
10224,
6685,
5621,
5411,
613,
18,
1376,
2932,
2043,
315,
397,
720,
6685,
18,
1467,
1435,
397,
315,
364,
2619,
315,
397,
25934,
3163,
461,
1769,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
288,
7734,
364,
261,
3198,
720,
2174,
2360,
273,
720,
6685,
18,
9838,
5621,
720,
2174,
2360,
18,
5332,
2134,
5621,
13,
7734,
288,
10792,
15309,
2174,
1562,
273,
261,
10224,
2174,
13,
1717,
2174,
2360,
18,
4285,
5621,
10792,
613,
18,
4148,
31458,
88,
2043,
720,
4146,
315,
397,
1562,
18,
17994,
10663,
10792,
4592,
18,
458,
12,
4146,
16,
26618,
1769,
7734,
289,
5411,
289,
3639,
289,
7734,
368,
29517,
3122,
17551,
358,
9276,
4121,
1807,
8554,
603,
1347,
1846,
2727,
1404,
2621,
1281,
16482,
18,
3639,
368,
1220,
903,
2809,
16951,
2863,
554,
2898,
2727,
1404,
1240,
16482,
16,
471,
26282,
3639,
368,
2809,
2182,
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,
13589,
2108,
6574,
6685,
1190,
9569,
414,
1435,
1216,
15309,
503,
565,
288,
3639,
13589,
4592,
273,
394,
13589,
5621,
7734,
364,
261,
3198,
25934,
3163,
2360,
273,
27174,
1259,
31072,
7675,
856,
694,
7675,
9838,
5621,
5411,
25934,
3163,
2360,
18,
5332,
2134,
5621,
13,
3639,
288,
5411,
514,
25934,
3163,
461,
273,
261,
780,
13,
7098,
1259,
3163,
2360,
18,
4285,
5621,
5411,
24209,
10224,
28820,
26618,
273,
1171,
261,
25316,
10224,
28820,
13,
588,
3367,
1259,
31072,
7675,
588,
12,
7098,
1259,
3163,
461,
1769,
2868,
987,
720,
6685,
273,
720,
28820,
18,
588,
10224,
2227,
7675,
588,
10224,
6685,
5621,
5411,
613,
18,
1376,
2932,
2043,
315,
397,
720,
6685,
18,
1467,
1435,
2
] |
}
|
} if (!mURLString.startsWith("http: { mURLString = "http: }
|
public void setURLString (String val) { mURLString = val; //-- needs to have a trailing slash --- if (!mURLString.endsWith("/")) { mURLString = mURLString + "/"; } mLoggedIn = false; }
|
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/5eac56f05beec621669e245a56940ea16a1fe900/GalleryComm.java/buggy/com/gallery/GalleryRemote/GalleryComm.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
1785,
780,
261,
780,
1244,
13,
288,
202,
202,
81,
1785,
780,
273,
1244,
31,
9506,
202,
759,
413,
4260,
358,
1240,
279,
7341,
9026,
9948,
202,
202,
430,
16051,
81,
1785,
780,
18,
5839,
1190,
2932,
4898,
3719,
288,
1082,
202,
81,
1785,
780,
273,
312,
1785,
780,
397,
4016,
31,
202,
202,
97,
1082,
202,
81,
29327,
273,
629,
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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785,
780,
261,
780,
1244,
13,
288,
202,
202,
81,
1785,
780,
273,
1244,
31,
9506,
202,
759,
413,
4260,
358,
1240,
279,
7341,
9026,
9948,
202,
202,
430,
16051,
81,
1785,
780,
18,
5839,
1190,
2932,
4898,
3719,
288,
1082,
202,
81,
1785,
780,
273,
312,
1785,
780,
397,
4016,
31,
202,
202,
97,
1082,
202,
81,
29327,
273,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throws Exception {
|
throws Exception {
|
private double estimateAccuracy(BitSet feature_set, int num_atts) throws Exception { int i; Instances newInstances; int [] fs = new int [num_atts]; double acc = 0.0; double [][] evalArray; double [] instA = new double [num_atts]; int classI = m_theInstances.classIndex(); int index = 0; for (i=0;i<m_numAttributes;i++) if (feature_set.get(i)) fs[index++] = i; // create new hash table m_entries = new Hashtable((int)(m_theInstances.numInstances() * 1.5)); // insert instances into the hash table for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); insertIntoTable(inst, instA); } if (m_CVFolds == 1) { // calculate leave one out error for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); double t = classifyInstanceLeaveOneOut(inst, instA); if (m_classIsNominal) { if (t == inst.classValue()) acc+=inst.weight(); } else acc += ((inst.weight() * (t - inst.classValue())) * (inst.weight() * (t - inst.classValue()))); // weight_sum += inst.weight(); } } else { m_theInstances.randomize(m_rr); m_theInstances.stratify(m_CVFolds); // calculate 10 fold cross validation error for (i=0;i<m_CVFolds;i++) { Instances insts = m_theInstances.testCV(m_CVFolds,i); acc += classifyFoldCV(insts, fs); } } if (m_classIsNominal) return (acc / m_theInstances.sumOfWeights()); else return -(Math.sqrt(acc / m_theInstances.sumOfWeights())); }
|
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/9e72041e2204a61830b9cccfa8173a6ed2c39eb5/DecisionTable.java/clean/weka/classifiers/rules/DecisionTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
11108,
37,
10988,
12,
5775,
694,
2572,
67,
542,
16,
509,
818,
67,
270,
3428,
13,
565,
1216,
1185,
225,
288,
565,
509,
277,
31,
565,
18357,
394,
5361,
31,
565,
509,
5378,
2662,
273,
394,
509,
306,
2107,
67,
270,
3428,
15533,
565,
1645,
4078,
273,
374,
18,
20,
31,
565,
1645,
5378,
8526,
5302,
1076,
31,
565,
1645,
5378,
1804,
37,
273,
394,
1645,
306,
2107,
67,
270,
3428,
15533,
565,
509,
667,
45,
273,
312,
67,
5787,
5361,
18,
1106,
1016,
5621,
3639,
509,
770,
273,
374,
31,
565,
364,
261,
77,
33,
20,
31,
77,
32,
81,
67,
2107,
2498,
31,
77,
27245,
1377,
309,
261,
7238,
67,
542,
18,
588,
12,
77,
3719,
202,
2556,
63,
1615,
9904,
65,
273,
277,
31,
3639,
368,
752,
394,
1651,
1014,
565,
312,
67,
8219,
273,
394,
18559,
12443,
474,
21433,
81,
67,
5787,
5361,
18,
2107,
5361,
1435,
380,
404,
18,
25,
10019,
565,
368,
2243,
3884,
1368,
326,
1651,
1014,
565,
364,
261,
77,
33,
20,
31,
77,
32,
81,
67,
2107,
5361,
31,
77,
27245,
565,
288,
1377,
5180,
1804,
273,
312,
67,
5787,
5361,
18,
1336,
12,
77,
1769,
1377,
364,
261,
474,
525,
33,
20,
31,
78,
32,
2556,
18,
2469,
31,
78,
27245,
202,
430,
261,
2556,
63,
78,
65,
422,
667,
45,
13,
202,
225,
1804,
37,
63,
78,
65,
273,
3698,
18,
6694,
67,
4051,
31,
368,
3315,
364,
326,
667,
202,
12107,
309,
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,
1645,
11108,
37,
10988,
12,
5775,
694,
2572,
67,
542,
16,
509,
818,
67,
270,
3428,
13,
565,
1216,
1185,
225,
288,
565,
509,
277,
31,
565,
18357,
394,
5361,
31,
565,
509,
5378,
2662,
273,
394,
509,
306,
2107,
67,
270,
3428,
15533,
565,
1645,
4078,
273,
374,
18,
20,
31,
565,
1645,
5378,
8526,
5302,
1076,
31,
565,
1645,
5378,
1804,
37,
273,
394,
1645,
306,
2107,
67,
270,
3428,
15533,
565,
509,
667,
45,
273,
312,
67,
5787,
5361,
18,
1106,
1016,
5621,
3639,
509,
770,
273,
374,
31,
565,
364,
261,
77,
33,
20,
31,
77,
32,
81,
67,
2107,
2498,
31,
77,
27245,
1377,
309,
261,
7238,
67,
542,
18,
588,
12,
2
] |
public void set(org.quickfix.field.TradeReportID value)
|
public void set(quickfix.field.TradeReportID value)
|
public void set(org.quickfix.field.TradeReportID value) { setField(value); }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralAssignment.java/buggy/src/java/src/quickfix/fix44/CollateralAssignment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
22583,
4820,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
22583,
4820,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
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
] |
String content = getLocalizedString( textItem.getTextKey( ), textItem.getText( ) ); textItem.setDomTree( new TextParser( ).parse( content, textItem .getTextType( ) ) ); textContent.setDomTree( textItem.getDomTree( ) );
|
logger.log( Level.SEVERE, "Error:", t );
|
public void execute( ReportItemDesign item, IReportEmitter emitter ) { TextItemDesign textItem = (TextItemDesign) item; IReportItemEmitter textEmitter = emitter.getEmitter( "text" ); //$NON-NLS-1$ if ( textEmitter == null ) { return; } IResultSet rs = openResultSet( item ); if ( rs != null ) { rs.next( ); } TextItemContent textContent = (TextItemContent)ContentFactory.createTextContent( textItem, context.getContentObject( ) ); setStyles( textContent, item ); setVisibility( item, textContent ); //Checks if the content has been parsed before. If so, use the DOM tree // directly to improve performance. In addition to the DOM tree, the CSS // style is also a part of the parsed content. Or else, parse the // content and save the DOM tree and CSS style in the Text item design. HTMLProcessor htmlProcessor = new HTMLProcessor( context ); if ( textItem.getDomTree( ) == null ) { //Only when the Text is in the master page. //Because ExpressionBuilder has parsed the content. And the style // has not been extracted yet. String content = getLocalizedString( textItem.getTextKey( ), textItem.getText( ) ); textItem.setDomTree( new TextParser( ).parse( content, textItem .getTextType( ) ) ); textContent.setDomTree( textItem.getDomTree( ) ); } Document doc = textItem.getDomTree( ); Element body = null; if ( doc != null ) { Node node = doc.getFirstChild( ); //The following must be true if ( node instanceof Element ) { body = (Element) node; } } if ( body != null ) { //Checks if the DOM can be reused here. If no, then convert the DOM // tree. if ( !textItem.isReused( ) ) { htmlProcessor.execute( body, textContent ); //Saves the CSS style associated with the original text content textItem.setCssStyleSet( textContent.getCssStyleSet( ) ); textItem.setReused( true ); } evaluateEmbeddedExpression( body, textItem, textContent, htmlProcessor ); } String bookmarkStr = evalBookmark( textItem ); if ( bookmarkStr != null ) { textContent.setBookmarkValue( bookmarkStr ); } textEmitter.start( textContent ); textEmitter.end( ); closeResultSet( rs ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/46b3013f64d73accec44cdf5a1a0af7dcd5513b7/TextItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TextItemExecutor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
8706,
1180,
15478,
761,
16,
467,
4820,
13476,
11520,
262,
202,
95,
202,
202,
1528,
1180,
15478,
977,
1180,
273,
261,
1528,
1180,
15478,
13,
761,
31,
202,
202,
45,
4820,
1180,
13476,
977,
13476,
273,
11520,
18,
588,
13476,
12,
315,
955,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
977,
13476,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
45,
13198,
3597,
273,
1696,
13198,
12,
761,
11272,
202,
202,
430,
261,
3597,
480,
446,
262,
202,
202,
95,
1082,
202,
5453,
18,
4285,
12,
11272,
202,
202,
97,
202,
202,
1528,
1180,
1350,
16655,
273,
261,
1528,
1180,
1350,
13,
1350,
1733,
18,
2640,
1528,
1350,
12,
977,
1180,
16,
819,
18,
588,
1350,
921,
12,
262,
11272,
202,
202,
542,
9725,
12,
16655,
16,
761,
11272,
202,
202,
542,
10135,
12,
761,
16,
16655,
11272,
202,
202,
759,
4081,
309,
326,
913,
711,
2118,
2707,
1865,
18,
971,
1427,
16,
999,
326,
4703,
2151,
202,
202,
759,
5122,
358,
21171,
9239,
18,
657,
2719,
358,
326,
4703,
2151,
16,
326,
6765,
202,
202,
759,
2154,
353,
2546,
279,
1087,
434,
326,
2707,
913,
18,
2965,
469,
16,
1109,
326,
202,
202,
759,
913,
471,
1923,
326,
4703,
2151,
471,
6765,
2154,
316,
326,
3867,
761,
8281,
18,
202,
202,
4870,
5164,
1729,
5164,
273,
394,
3982,
5164,
12,
819,
11272,
202,
202,
430,
261,
977,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
8706,
1180,
15478,
761,
16,
467,
4820,
13476,
11520,
262,
202,
95,
202,
202,
1528,
1180,
15478,
977,
1180,
273,
261,
1528,
1180,
15478,
13,
761,
31,
202,
202,
45,
4820,
1180,
13476,
977,
13476,
273,
11520,
18,
588,
13476,
12,
315,
955,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
977,
13476,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
45,
13198,
3597,
273,
1696,
13198,
12,
761,
11272,
202,
202,
430,
261,
3597,
480,
446,
262,
202,
202,
95,
1082,
202,
5453,
18,
4285,
12,
11272,
202,
202,
97,
202,
202,
1528,
1180,
1350,
16655,
273,
261,
1528,
1180,
2
] |
} else if (b != bbound[offset] && offset > 0) {
|
} else if ((b != bbound[offset]) && (offset > 0)) {
|
private void parseMultiPartData() throws IOException { String ctype = (String) this.headers.get("content-type"); if (ctype == null) return; String[] ctypeparts = ctype.split(";"); if(ctypeparts[0].equalsIgnoreCase("application/x-www-form-urlencoded")) { // Completely different encoding, but easy to handle if(data.size() > 1024*1024) throw new IOException("Too big"); byte[] buf = BucketTools.toByteArray(data); String s = new String(buf, "us-ascii"); parseRequestParameters(s, true); } if (!ctypeparts[0].trim().equalsIgnoreCase("multipart/form-data") || ctypeparts.length < 2) { return; } String boundary = null; for (int i = 0; i < ctypeparts.length; i++) { String[] subparts = ctypeparts[i].split("="); if (subparts.length == 2 && subparts[0].trim().equalsIgnoreCase("boundary")) { boundary = subparts[1]; } } if (boundary == null || boundary.length() == 0) return; if (boundary.charAt(0) == '"') boundary = boundary.substring(1); if (boundary.charAt(boundary.length() - 1) == '"') boundary = boundary.substring(0, boundary.length() - 1); boundary = "--"+boundary; InputStream is = this.data.getInputStream(); LineReadingInputStream lis = new LineReadingInputStream(is); String line; line = lis.readLine(100, 100, false); // really it's US-ASCII, but ISO-8859-1 is close enough. while (is.available() > 0 && !line.equals(boundary)) { line = lis.readLine(100, 100, false); } boundary = "\r\n"+boundary; Bucket filedata = null; String name = null; while(is.available() > 0) { name = null; // chomp headers while( (line = lis.readLine(100, 100, false)) /* see above */ != null) { if (line.length() == 0) break; String[] lineparts = line.split(":"); if (lineparts == null) continue; String hdrname = lineparts[0].trim(); if (lineparts.length < 2) continue; String[] valueparts = lineparts[1].split(";"); for (int i = 0; i < valueparts.length; i++) { String[] subparts = valueparts[i].split("="); if (subparts.length != 2) { continue; } if (hdrname.equalsIgnoreCase("Content-Disposition")) { if (subparts[0].trim().equalsIgnoreCase("name")) { name = subparts[1].trim(); if (name.charAt(0) == '"') name = name.substring(1); if (name.charAt(name.length() - 1) == '"') name = name.substring(0, name.length() - 1); } } } } if (name == null) continue; // we should be at the data now. Start reading it in, checking for the // boundary string // we can only give an upper bound for the size of the bucket filedata = this.bucketfactory.makeBucket(is.available()); OutputStream bucketos = filedata.getOutputStream(); // buffer characters that match the boundary so far byte[] buf = new byte[boundary.length()]; byte[] bbound = boundary.getBytes("UTF-8"); int offset = 0; while (is.available() > 0 && !boundary.equals(new String(buf))) { byte b = (byte)is.read(); if (b == bbound[offset]) { buf[offset] = b; offset++; } else if (b != bbound[offset] && offset > 0) { // empty the buffer out bucketos.write(buf, 0, offset); bucketos.write(b); offset = 0; } else { bucketos.write(b); } } bucketos.close(); this.parts.put(name, filedata); } }
|
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/HTTPRequest.java/clean/src/freenet/clients/http/HTTPRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1109,
5002,
1988,
751,
1435,
1216,
1860,
288,
202,
202,
780,
11920,
273,
261,
780,
13,
333,
18,
2485,
18,
588,
2932,
1745,
17,
723,
8863,
202,
202,
430,
261,
12387,
422,
446,
13,
327,
31,
202,
202,
780,
8526,
11920,
6019,
273,
11920,
18,
4939,
2932,
4868,
1769,
202,
202,
430,
12,
12387,
6019,
63,
20,
8009,
14963,
5556,
2932,
3685,
19,
92,
17,
5591,
17,
687,
17,
19690,
6,
3719,
288,
1082,
202,
759,
8359,
2357,
3775,
2688,
16,
1496,
12779,
358,
1640,
1082,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
9506,
202,
12849,
394,
1860,
2932,
10703,
5446,
8863,
1082,
202,
7229,
8526,
1681,
273,
7408,
10348,
18,
869,
8826,
12,
892,
1769,
1082,
202,
780,
272,
273,
394,
514,
12,
4385,
16,
315,
407,
17,
9184,
8863,
1082,
202,
2670,
691,
2402,
12,
87,
16,
638,
1769,
202,
202,
97,
202,
202,
430,
16051,
12387,
6019,
63,
20,
8009,
5290,
7675,
14963,
5556,
2932,
16404,
19,
687,
17,
892,
7923,
747,
11920,
6019,
18,
2469,
411,
576,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
780,
7679,
273,
446,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
11920,
6019,
18,
2469,
31,
277,
27245,
288,
1082,
202,
780,
8526,
720,
6019,
273,
11920,
6019,
63,
77,
8009,
4939,
2932,
1546,
1769,
1082,
202,
430,
261,
1717,
6019,
18,
2469,
422,
576,
597,
720,
6019,
63,
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,
225,
202,
1152,
918,
1109,
5002,
1988,
751,
1435,
1216,
1860,
288,
202,
202,
780,
11920,
273,
261,
780,
13,
333,
18,
2485,
18,
588,
2932,
1745,
17,
723,
8863,
202,
202,
430,
261,
12387,
422,
446,
13,
327,
31,
202,
202,
780,
8526,
11920,
6019,
273,
11920,
18,
4939,
2932,
4868,
1769,
202,
202,
430,
12,
12387,
6019,
63,
20,
8009,
14963,
5556,
2932,
3685,
19,
92,
17,
5591,
17,
687,
17,
19690,
6,
3719,
288,
1082,
202,
759,
8359,
2357,
3775,
2688,
16,
1496,
12779,
358,
1640,
1082,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
9506,
202,
12849,
394,
1860,
2932,
10703,
5446,
8863,
1082,
202,
7229,
8526,
1681,
273,
7408,
2
] |
IJavaProject project = this.createJavaProject("P", new String[] {"nested/src"}, new String[] {getExternalJCLPath()}, "bin");
|
IJavaProject project = this.createJavaProject("P", new String[] {"nested/src"}, new String[] {getExternalJCLPathString()}, "bin");
|
public void testClasspathDeleteNestedRoot() throws CoreException { IJavaProject project = this.createJavaProject("P", new String[] {"nested/src"}, new String[] {getExternalJCLPath()}, "bin"); IPackageFragmentRoot root= getPackageFragmentRoot("P", "nested/src"); IClasspathEntry[] originalCP= project.getRawClasspath(); // delete the root root.getUnderlyingResource().delete(false, null); IClasspathEntry[] newCP= project.getRawClasspath(); try { // should still be an entry for the "src" folder assertTrue("classpath should not have been updated", newCP.length == 2 && newCP[0].equals(originalCP[0]) && newCP[1].equals(originalCP[1])); } finally { this.deleteProject("P"); }}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/0fb012af3c6557520ab00415c58833602b027192/ClasspathTests.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
17461,
2613,
8649,
2375,
1435,
1216,
30015,
288,
202,
45,
5852,
4109,
1984,
273,
333,
18,
2640,
5852,
4109,
2932,
52,
3113,
394,
514,
8526,
12528,
12985,
19,
4816,
6,
5779,
394,
514,
8526,
288,
588,
6841,
46,
5017,
743,
1435,
5779,
315,
4757,
8863,
202,
45,
2261,
7456,
2375,
1365,
33,
11506,
7456,
2375,
2932,
52,
3113,
315,
12985,
19,
4816,
8863,
202,
45,
17461,
1622,
8526,
2282,
4258,
33,
1984,
18,
588,
4809,
17461,
5621,
202,
759,
1430,
326,
1365,
202,
3085,
18,
588,
14655,
6291,
1420,
7675,
3733,
12,
5743,
16,
446,
1769,
202,
45,
17461,
1622,
8526,
394,
4258,
33,
1984,
18,
588,
4809,
17461,
5621,
202,
698,
288,
202,
202,
759,
1410,
4859,
506,
392,
1241,
364,
326,
315,
4816,
6,
3009,
202,
202,
11231,
5510,
2932,
26302,
1410,
486,
1240,
2118,
3526,
3113,
1875,
202,
2704,
4258,
18,
2469,
422,
576,
597,
1082,
202,
2704,
4258,
63,
20,
8009,
14963,
12,
8830,
4258,
63,
20,
5717,
597,
1082,
202,
2704,
4258,
63,
21,
8009,
14963,
12,
8830,
4258,
63,
21,
5717,
1769,
202,
97,
3095,
288,
202,
202,
2211,
18,
3733,
4109,
2932,
52,
8863,
202,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
17461,
2613,
8649,
2375,
1435,
1216,
30015,
288,
202,
45,
5852,
4109,
1984,
273,
333,
18,
2640,
5852,
4109,
2932,
52,
3113,
394,
514,
8526,
12528,
12985,
19,
4816,
6,
5779,
394,
514,
8526,
288,
588,
6841,
46,
5017,
743,
1435,
5779,
315,
4757,
8863,
202,
45,
2261,
7456,
2375,
1365,
33,
11506,
7456,
2375,
2932,
52,
3113,
315,
12985,
19,
4816,
8863,
202,
45,
17461,
1622,
8526,
2282,
4258,
33,
1984,
18,
588,
4809,
17461,
5621,
202,
759,
1430,
326,
1365,
202,
3085,
18,
588,
14655,
6291,
1420,
7675,
3733,
12,
5743,
16,
446,
1769,
202,
45,
17461,
1622,
8526,
394,
4258,
33,
1984,
18,
588,
4809,
17461,
5621,
202,
698,
288,
202,
202,
759,
2
] |
public String generateClassifier(MClassifier cls) { /* * 2002-07-11 * Jaap Branderhorst * To prevent generation of not requested whitespace etc. the method is reorganized. * First the start of the classifier is generated. * Next the body (method). * Then the end of the classifier. * The last step is to concatenate everything. * Done this because if the body was empty there were still linefeeds. * Start old code: StringBuffer sb = generateClassifierStart(cls); if (sb == null) return ""; // not a class or interface String tv = null; // helper for tagged values // add attributes Collection strs = MMUtil.SINGLETON.getAttributes(cls); // // 2002-06-08 // Jaap Branderhorst // Bugfix: strs is never null. Should check for isEmpty instead // old code: // if (strs != null) // new code: // if (!strs.isEmpty()) { sb.append('\n'); if (_verboseDocs && cls instanceof MClass) { sb.append(INDENT).append("// Attributes\n"); } Iterator strEnum = strs.iterator(); while (strEnum.hasNext()) { MStructuralFeature sf = (MStructuralFeature) strEnum.next(); sb.append(generate(sf)); tv = generateTaggedValues(sf); if (tv != null && tv.length() > 0) { sb.append(INDENT).append(tv); } } } // add attributes implementing associations Collection ends = cls.getAssociationEnds(); if (ends != null) { sb.append('\n'); if (_verboseDocs && cls instanceof MClass) { sb.append(INDENT).append("// Associations\n"); } Iterator endEnum = ends.iterator(); while (endEnum.hasNext()) { MAssociationEnd ae = (MAssociationEnd) endEnum.next(); MAssociation a = ae.getAssociation(); sb.append(generateAssociationFrom(a, ae)); tv = generateTaggedValues(a); if (tv != null && tv.length() > 0) { sb.append(INDENT).append(tv); } } } // add operations // TODO: constructors Collection behs = MMUtil.SINGLETON.getOperations(cls); // // 2002-06-08 // Jaap Branderhorst // Bugfix: behs is never null. Should check for isEmpty instead // old code: // if (behs != null) // new code: // if (!behs.isEmpty()) { sb.append('\n'); if (_verboseDocs) { sb.append(INDENT).append("// Operations\n"); } Iterator behEnum = behs.iterator(); while (behEnum.hasNext()) { MBehavioralFeature bf = (MBehavioralFeature) behEnum.next(); sb.append(generate(bf)); tv = generateTaggedValues((MModelElement) bf); if ((cls instanceof MClass) && (bf instanceof MOperation) && (!((MOperation) bf).isAbstract())) { if (_lfBeforeCurly) sb.append('\n').append(INDENT); else sb.append(' '); sb.append('{'); if (tv.length() > 0) { sb.append('\n').append(INDENT).append(tv); } // there is no ReturnType in behavioral feature (nsuml) sb.append('\n').append(generateMethodBody((MOperation) bf)).append( INDENT).append( "}\n"); } else { sb.append(";\n"); if (tv.length() > 0) { sb.append(INDENT).append(tv).append('\n'); } } } } sb = appendClassifierEnd(sb, cls, false); return sb.toString(); start new code: */ StringBuffer returnValue = new StringBuffer(); StringBuffer start = generateClassifierStart(cls); if ((start != null) && (start.length() > 0)) { StringBuffer body = generateClassifierBody(cls); StringBuffer end = generateClassifierEnd(cls); returnValue.append(start); if ((body != null) && (body.length() > 0)) { returnValue.append(LINE_SEPARATOR); returnValue.append(body); if (_lfBeforeCurly) { returnValue.append(LINE_SEPARATOR); } } returnValue.append((end != null) ? end.toString() : ""); } return returnValue.toString(); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/8b93d53259027848aaa50e2d9d130b9175fa9357/GeneratorJava.java/buggy/src_new/org/argouml/language/java/generator/GeneratorJava.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2103,
13860,
12,
49,
13860,
2028,
13,
288,
3639,
1748,
540,
380,
4044,
22,
17,
8642,
17,
2499,
540,
380,
804,
69,
438,
605,
7884,
264,
76,
280,
334,
540,
380,
2974,
5309,
9377,
434,
486,
3764,
7983,
5527,
18,
326,
707,
353,
283,
22543,
1235,
18,
540,
380,
5783,
326,
787,
434,
326,
14622,
353,
4374,
18,
540,
380,
4804,
326,
1417,
261,
2039,
2934,
540,
380,
9697,
326,
679,
434,
326,
14622,
18,
540,
380,
1021,
1142,
2235,
353,
358,
11361,
7756,
18,
540,
380,
8677,
333,
2724,
309,
326,
1417,
1703,
1008,
1915,
4591,
4859,
980,
7848,
87,
18,
540,
380,
3603,
1592,
981,
30,
3639,
6674,
2393,
273,
2103,
13860,
1685,
12,
6429,
1769,
3639,
309,
261,
18366,
422,
446,
13,
540,
202,
2463,
1408,
31,
368,
486,
279,
667,
578,
1560,
7734,
514,
13521,
273,
446,
31,
368,
4222,
364,
12503,
924,
7734,
368,
527,
1677,
3639,
2200,
19954,
273,
18295,
1304,
18,
20184,
56,
673,
18,
588,
2498,
12,
6429,
1769,
3639,
368,
540,
368,
4044,
22,
17,
7677,
17,
6840,
540,
368,
804,
69,
438,
605,
7884,
264,
76,
280,
334,
540,
368,
16907,
904,
30,
19954,
353,
5903,
446,
18,
9363,
866,
364,
2709,
3560,
540,
368,
1592,
981,
30,
540,
368,
309,
261,
24432,
480,
446,
13,
540,
368,
394,
981,
30,
540,
368,
3639,
309,
16051,
24432,
18,
291,
1921,
10756,
3639,
288,
540,
202,
18366,
18,
6923,
2668,
64,
82,
8284,
540,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2103,
13860,
12,
49,
13860,
2028,
13,
288,
3639,
1748,
540,
380,
4044,
22,
17,
8642,
17,
2499,
540,
380,
804,
69,
438,
605,
7884,
264,
76,
280,
334,
540,
380,
2974,
5309,
9377,
434,
486,
3764,
7983,
5527,
18,
326,
707,
353,
283,
22543,
1235,
18,
540,
380,
5783,
326,
787,
434,
326,
14622,
353,
4374,
18,
540,
380,
4804,
326,
1417,
261,
2039,
2934,
540,
380,
9697,
326,
679,
434,
326,
14622,
18,
540,
380,
1021,
1142,
2235,
353,
358,
11361,
7756,
18,
540,
380,
8677,
333,
2724,
309,
326,
1417,
1703,
1008,
1915,
4591,
4859,
980,
7848,
87,
18,
540,
380,
3603,
1592,
981,
30,
3639,
6674,
2393,
273,
2103,
13860,
1685,
12,
2
] |
||
RubyArray backtrace = RubyArray.newArray(runtime);
|
RubyArray backtrace = runtime.newArray();
|
public static IRubyObject createBacktrace(Ruby runtime, int level, boolean nativeException) { RubyArray backtrace = RubyArray.newArray(runtime); FrameStack stack = runtime.getFrameStack(); int traceSize = stack.size() - level - 1; if (traceSize <= 0) { return backtrace; } if (nativeException) { // assert level == 0; addBackTraceElement(backtrace, (Frame) stack.elementAt(stack.size() - 1), null); } for (int i = traceSize; i > 0; i--) { addBackTraceElement(backtrace, (Frame) stack.elementAt(i), (Frame) stack.elementAt(i-1)); } return backtrace; }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RaiseException.java/buggy/src/org/jruby/exceptions/RaiseException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
752,
2711,
5129,
12,
54,
10340,
3099,
16,
509,
1801,
16,
1250,
6448,
503,
13,
288,
3639,
19817,
1076,
13902,
273,
3099,
18,
2704,
1076,
5621,
3639,
8058,
2624,
2110,
273,
3099,
18,
588,
3219,
2624,
5621,
3639,
509,
2606,
1225,
273,
2110,
18,
1467,
1435,
300,
1801,
300,
404,
31,
7734,
309,
261,
5129,
1225,
1648,
374,
13,
288,
540,
202,
2463,
13902,
31,
3639,
289,
7734,
309,
261,
13635,
503,
13,
288,
5411,
368,
1815,
1801,
422,
374,
31,
5411,
527,
2711,
3448,
1046,
12,
18728,
16,
261,
3219,
13,
2110,
18,
2956,
861,
12,
3772,
18,
1467,
1435,
300,
404,
3631,
446,
1769,
3639,
289,
7734,
364,
261,
474,
277,
273,
2606,
1225,
31,
277,
405,
374,
31,
277,
413,
13,
288,
540,
202,
1289,
2711,
3448,
1046,
12,
18728,
16,
261,
3219,
13,
2110,
18,
2956,
861,
12,
77,
3631,
261,
3219,
13,
2110,
18,
2956,
861,
12,
77,
17,
21,
10019,
3639,
289,
3639,
327,
13902,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
752,
2711,
5129,
12,
54,
10340,
3099,
16,
509,
1801,
16,
1250,
6448,
503,
13,
288,
3639,
19817,
1076,
13902,
273,
3099,
18,
2704,
1076,
5621,
3639,
8058,
2624,
2110,
273,
3099,
18,
588,
3219,
2624,
5621,
3639,
509,
2606,
1225,
273,
2110,
18,
1467,
1435,
300,
1801,
300,
404,
31,
7734,
309,
261,
5129,
1225,
1648,
374,
13,
288,
540,
202,
2463,
13902,
31,
3639,
289,
7734,
309,
261,
13635,
503,
13,
288,
5411,
368,
1815,
1801,
422,
374,
31,
5411,
527,
2711,
3448,
1046,
12,
18728,
16,
261,
3219,
13,
2110,
18,
2956,
861,
12,
3772,
18,
1467,
1435,
300,
404,
3631,
446,
1769,
3639,
289,
7734,
364,
261,
474,
277,
2
] |
public void testXmlPageReadOldVersion() throws Exception { // create a XML entity resolver CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; String content; // validate "old" xmlpage 1 content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-old-1.xml", UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); assertTrue(page.hasValue("body", Locale.ENGLISH)); CmsLinkTable table = page.getLinkTable("body", Locale.ENGLISH); assertTrue(table.getLink("link0").isInternal()); assertEquals("English! Image <img src=\"/sites/default/folder1/image2.gif\" />", page.getStringValue(null, "body", Locale.ENGLISH)); // validate "old" xmlpage 2 content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-old-2.xml", UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); assertTrue(page.hasValue("body", Locale.ENGLISH)); assertTrue(page.hasValue("body", Locale.GERMAN)); assertTrue(page.hasValue("body2", Locale.ENGLISH)); assertEquals("English! Image <img src=\"/sites/default/folder1/image2.gif\" />", page.getStringValue(null, "body", Locale.ENGLISH)); assertEquals("English 2!", page.getStringValue(null, "body2", Locale.ENGLISH)); assertEquals("Deutsch! Image <img src=\"/sites/default/folder1/image2.gif\" />", page.getStringValue(null, "body", Locale.GERMAN)); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestCmsXmlPage.java/buggy/test/org/opencms/xml/page/TestCmsXmlPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4432,
1964,
1994,
7617,
1444,
1435,
1216,
1185,
288,
13491,
368,
752,
279,
3167,
1522,
5039,
3639,
16084,
1943,
4301,
5039,
273,
394,
16084,
1943,
4301,
12,
2011,
1769,
7734,
16084,
1964,
1363,
31,
3639,
514,
913,
31,
1171,
368,
1954,
315,
1673,
6,
2025,
2433,
404,
3639,
913,
273,
28118,
1304,
18,
896,
812,
2932,
3341,
19,
556,
14645,
19,
2902,
19,
2433,
19,
2902,
2433,
17,
1673,
17,
21,
18,
2902,
3113,
6380,
28,
1769,
7734,
1363,
273,
16084,
1964,
1733,
18,
318,
3108,
12,
1745,
16,
6380,
28,
16,
5039,
1769,
3639,
1815,
5510,
12,
2433,
18,
5332,
620,
2932,
3432,
3113,
6458,
18,
16324,
13462,
10019,
3639,
2149,
2098,
1388,
1014,
273,
1363,
18,
588,
2098,
1388,
2932,
3432,
3113,
6458,
18,
16324,
13462,
1769,
3639,
1815,
5510,
12,
2121,
18,
588,
2098,
2932,
1232,
20,
20387,
291,
3061,
10663,
3639,
1815,
8867,
2932,
664,
13740,
5,
3421,
411,
6081,
1705,
5189,
19,
12180,
19,
1886,
19,
5609,
21,
19,
2730,
22,
18,
13905,
2412,
28505,
16,
1363,
18,
588,
19733,
12,
2011,
16,
315,
3432,
3113,
6458,
18,
16324,
13462,
10019,
7734,
368,
1954,
315,
1673,
6,
2025,
2433,
576,
3639,
913,
273,
28118,
1304,
18,
896,
812,
2932,
3341,
19,
556,
14645,
19,
2902,
19,
2433,
19,
2902,
2433,
17,
1673,
17,
22,
18,
2902,
3113,
6380,
28,
1769,
7734,
1363,
273,
16084,
1964,
1733,
18,
318,
3108,
12,
1745,
16,
6380,
28,
16,
5039,
1769,
3639,
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,
4432,
1964,
1994,
7617,
1444,
1435,
1216,
1185,
288,
13491,
368,
752,
279,
3167,
1522,
5039,
3639,
16084,
1943,
4301,
5039,
273,
394,
16084,
1943,
4301,
12,
2011,
1769,
7734,
16084,
1964,
1363,
31,
3639,
514,
913,
31,
1171,
368,
1954,
315,
1673,
6,
2025,
2433,
404,
3639,
913,
273,
28118,
1304,
18,
896,
812,
2932,
3341,
19,
556,
14645,
19,
2902,
19,
2433,
19,
2902,
2433,
17,
1673,
17,
21,
18,
2902,
3113,
6380,
28,
1769,
7734,
1363,
273,
16084,
1964,
1733,
18,
318,
3108,
12,
1745,
16,
6380,
28,
16,
5039,
1769,
3639,
1815,
5510,
12,
2433,
18,
5332,
620,
2932,
3432,
3113,
6458,
18,
16324,
13462,
10019,
3639,
2149,
2098,
1388,
1014,
2
] |
||
public ProblemDescriptor[] checkMethod(PsiMethod method, InspectionManager manager, boolean isOnTheFly) {
|
public ProblemDescriptor[] checkMethod(@NotNull PsiMethod method, @NotNull InspectionManager manager, boolean isOnTheFly) {
|
public ProblemDescriptor[] checkMethod(PsiMethod method, InspectionManager manager, boolean isOnTheFly) { if (CHECK_ACTIONS && CHECK_JAVA_CODE && method.isConstructor() && method.getNameIdentifier() != null && method.getContainingFile().getVirtualFile() != null) { if (method.getParameterList().getParametersCount() == 0 && !isPublic(method)) { final PsiClass checkedClass = method.getContainingClass(); if (ActionType.ACTION.isOfType(checkedClass)) { if (isActionRegistered(checkedClass)) { return new ProblemDescriptor[]{ manager.createProblemDescriptor(method.getNameIdentifier(), DevKitBundle.message("inspections.registration.problems.ctor.not.public"), new MakePublicFix(method, isOnTheFly), ProblemHighlightType.GENERIC_ERROR_OR_WARNING) }; } } } } return null; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8775ec08b2d41eea27d599b9310e86a6e1f62261/RegistrationProblemsInspection.java/clean/plugins/devkit/src/inspections/RegistrationProblemsInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
21685,
3187,
8526,
866,
1305,
26964,
5962,
453,
7722,
1305,
707,
16,
632,
5962,
22085,
7017,
1318,
3301,
16,
1250,
28181,
1986,
42,
715,
13,
288,
565,
309,
261,
10687,
67,
12249,
55,
597,
14565,
67,
27264,
67,
5572,
597,
5411,
707,
18,
291,
6293,
1435,
597,
5411,
707,
18,
17994,
3004,
1435,
480,
446,
597,
5411,
707,
18,
588,
24344,
812,
7675,
588,
6466,
812,
1435,
480,
446,
13,
565,
288,
1377,
309,
261,
2039,
18,
588,
1662,
682,
7675,
588,
2402,
1380,
1435,
422,
374,
597,
401,
291,
4782,
12,
2039,
3719,
288,
3639,
727,
453,
7722,
797,
5950,
797,
273,
707,
18,
588,
24344,
797,
5621,
3639,
309,
261,
26995,
18,
12249,
18,
291,
18859,
12,
4532,
797,
3719,
288,
1850,
309,
261,
291,
1803,
10868,
12,
4532,
797,
3719,
288,
5411,
327,
394,
21685,
3187,
63,
7073,
10792,
3301,
18,
2640,
13719,
3187,
12,
2039,
18,
17994,
3004,
9334,
18701,
9562,
14102,
3405,
18,
2150,
2932,
2679,
7017,
87,
18,
14170,
18,
29812,
18,
30206,
18,
902,
18,
482,
6,
3631,
18701,
394,
4344,
4782,
8585,
12,
2039,
16,
28181,
1986,
42,
715,
3631,
18701,
21685,
16205,
559,
18,
13990,
2871,
67,
3589,
67,
916,
67,
9511,
13,
5411,
289,
31,
1850,
289,
3639,
289,
1377,
289,
565,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
21685,
3187,
8526,
866,
1305,
26964,
5962,
453,
7722,
1305,
707,
16,
632,
5962,
22085,
7017,
1318,
3301,
16,
1250,
28181,
1986,
42,
715,
13,
288,
565,
309,
261,
10687,
67,
12249,
55,
597,
14565,
67,
27264,
67,
5572,
597,
5411,
707,
18,
291,
6293,
1435,
597,
5411,
707,
18,
17994,
3004,
1435,
480,
446,
597,
5411,
707,
18,
588,
24344,
812,
7675,
588,
6466,
812,
1435,
480,
446,
13,
565,
288,
1377,
309,
261,
2039,
18,
588,
1662,
682,
7675,
588,
2402,
1380,
1435,
422,
374,
597,
401,
291,
4782,
12,
2039,
3719,
288,
3639,
727,
453,
7722,
797,
5950,
797,
273,
707,
18,
588,
24344,
797,
5621,
3639,
309,
261,
26995,
18,
12249,
18,
291,
2
] |
stringBuffer.append(TEXT_31);
|
stringBuffer.append(TEXT_32);
|
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); final GenDiagram genDiagram = (GenDiagram) argument;final GenModel genModel = genDiagram.getEMFGenModel(); stringBuffer.append(TEXT_1); stringBuffer.append(genDiagram.getPreferenceInitializerQualifiedClassName()); stringBuffer.append(TEXT_2); stringBuffer.append(genDiagram.getDiagramFileExtension()); stringBuffer.append(TEXT_3); stringBuffer.append(genDiagram.getDiagramFileExtension()); stringBuffer.append(TEXT_4); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_5); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_6); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_7); stringBuffer.append(genDiagram.getDiagramFileExtension()); stringBuffer.append(TEXT_8); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_9); stringBuffer.append(genDiagram.getMatchingStrategyQualifiedClassName()); stringBuffer.append(TEXT_10); stringBuffer.append(genDiagram.getActionBarContributorQualifiedClassName()); stringBuffer.append(TEXT_11); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_12); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_13); stringBuffer.append(genDiagram.getCreationWizardQualifiedClassName()); stringBuffer.append(TEXT_14); stringBuffer.append(genDiagram.getCreationWizardQualifiedClassName()); stringBuffer.append(TEXT_15); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_16); stringBuffer.append(genDiagram.getPluginID()); stringBuffer.append(TEXT_17); stringBuffer.append(genDiagram.getDomainDiagramElement().getGenPackage().getPrefix().toLowerCase()); stringBuffer.append(TEXT_18); stringBuffer.append(genDiagram.getDiagramFileExtension()); stringBuffer.append(TEXT_19); stringBuffer.append(genDiagram.getInitDiagramFileActionQualifiedClassName()); stringBuffer.append(TEXT_20); stringBuffer.append(genDiagram.getInitDiagramFileActionQualifiedClassName()); stringBuffer.append(TEXT_21); if (genDiagram.generateCreateShortcutAction()) { stringBuffer.append(TEXT_22); stringBuffer.append(genDiagram.getPluginID()); stringBuffer.append(TEXT_23); stringBuffer.append(genDiagram.getCreateShortcutActionQualifiedClassName()); stringBuffer.append(TEXT_24); stringBuffer.append(genDiagram.getCreateShortcutActionQualifiedClassName()); stringBuffer.append(TEXT_25); } stringBuffer.append(TEXT_26); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_27); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_28); if (genDiagram.isPrintingEnabled()) { stringBuffer.append(TEXT_29); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_30); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_31); } stringBuffer.append(TEXT_32); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_33); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_34); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_35); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_36); stringBuffer.append(genDiagram.getNotationViewProviderQualifiedClassName()); stringBuffer.append(TEXT_37); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_38); stringBuffer.append(genDiagram.getEditPartProviderQualifiedClassName()); stringBuffer.append(TEXT_39); stringBuffer.append(genDiagram.getMetamodelSupportProviderQualifiedClassName()); stringBuffer.append(TEXT_40); stringBuffer.append(genDiagram.getModelingAssistantProviderQualifiedClassName()); stringBuffer.append(TEXT_41); stringBuffer.append(genDiagram.getPropertyProviderQualifiedClassName()); stringBuffer.append(TEXT_42); stringBuffer.append(genDiagram.getIconProviderQualifiedClassName()); stringBuffer.append(TEXT_43); stringBuffer.append(TEXT_44); GenAuditContainer rootContainer = genDiagram.getAudits();if(rootContainer != null) { java.util.List containers = rootContainer != null ? rootContainer.getAllAuditContainers() : java.util.Collections.EMPTY_LIST; stringBuffer.append(TEXT_45); java.util.HashMap idMap = new java.util.HashMap(); for(int i = 0; i < containers.size(); i++) { GenAuditContainer container = (GenAuditContainer)containers.get(i); idMap.put(container, container.getId() != null ? container.getId() : "category" + Integer.toString(i + 1)); } java.util.HashMap pathMap = new java.util.HashMap(); for(int i = 0; i < containers.size(); i++) { GenAuditContainer category = (GenAuditContainer)containers.get(i); java.util.List path = category.getPath(); StringBuffer id = new StringBuffer(); for(int pathPos = 0; pathPos < path.size(); pathPos++) { if(pathPos > 0) id.append('/'); id.append(idMap.get(path.get(pathPos))); } pathMap.put(category, id.toString()); stringBuffer.append(TEXT_46); stringBuffer.append(id.toString()); stringBuffer.append(TEXT_47); stringBuffer.append(category.getName() != null ? category.getName() : id.toString()); stringBuffer.append(TEXT_48); stringBuffer.append(category.getDescription() != null ? category.getDescription():""); stringBuffer.append(TEXT_49); } // end of categories loop String rootCategoryId = (String)pathMap.get(rootContainer); stringBuffer.append(TEXT_50); stringBuffer.append(genDiagram.getDomainMetaModel().getNSURI()); stringBuffer.append(TEXT_51); int rulePos = 0; for(java.util.Iterator catIt = containers.iterator(); catIt.hasNext(); rulePos++) { GenAuditContainer category = (GenAuditContainer)catIt.next(); for(java.util.Iterator it = category.getAudits().iterator(); it.hasNext();) { GenAuditRule audit = (GenAuditRule)it.next(); GenClass targetClass = audit.getTarget(); String targetClassName = (targetClass != null) ? targetClass.getGenPackage().getNSName() + "." + targetClass.getInterfaceName() : "null"; String modeAttr = audit.isUseInLiveMode() ? "" : "mode=\"Batch\""; String name = audit.getName() != null ? audit.getName() : audit.getId(); String message = audit.getMessage() != null ? audit.getMessage() : name + " audit violated"; stringBuffer.append(TEXT_52); stringBuffer.append(pathMap.get(category)); stringBuffer.append(TEXT_53); stringBuffer.append(audit.getId()); stringBuffer.append(TEXT_54); stringBuffer.append(modeAttr); stringBuffer.append(TEXT_55); stringBuffer.append(name); stringBuffer.append(TEXT_56); stringBuffer.append(audit.getSeverity().getName()); stringBuffer.append(TEXT_57); stringBuffer.append(Integer.toString(200 + rulePos)); stringBuffer.append(TEXT_58); stringBuffer.append(audit.getRule() != null ? audit.getRule().getBody() : ""); stringBuffer.append(TEXT_59); stringBuffer.append(audit.getDescription() != null ? audit.getDescription():""); stringBuffer.append(TEXT_60); stringBuffer.append(message); stringBuffer.append(TEXT_61); stringBuffer.append(targetClassName); stringBuffer.append(TEXT_62); } // end of audits in category } // end of category loop stringBuffer.append(TEXT_63); stringBuffer.append(rootCategoryId); stringBuffer.append(TEXT_64); stringBuffer.append(rootCategoryId); stringBuffer.append(TEXT_65); stringBuffer.append(rootCategoryId); stringBuffer.append(TEXT_66); } stringBuffer.append(TEXT_67); stringBuffer.append(TEXT_68); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/0bf1a833628aff43b1383f77062929555c4d1879/PluginXML.java/buggy/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/editor/PluginXML.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
14058,
1940,
3157,
14058,
1940,
273,
261,
7642,
14058,
1940,
13,
1237,
31,
6385,
10938,
1488,
3157,
1488,
273,
3157,
14058,
1940,
18,
588,
3375,
42,
7642,
1488,
5621,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
9624,
14729,
8708,
3834,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
14058,
1940,
812,
3625,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
23,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
14058,
1940,
812,
3625,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
24,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
6946,
8708,
3834,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
25,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
1488,
18,
588,
22363,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
26,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
1488,
18,
588,
22363,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
27,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
14058,
1940,
812,
3625,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
28,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
6946,
8708,
3834,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
14058,
1940,
3157,
14058,
1940,
273,
261,
7642,
14058,
1940,
13,
1237,
31,
6385,
10938,
1488,
3157,
1488,
273,
3157,
14058,
1940,
18,
588,
3375,
42,
7642,
1488,
5621,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
9624,
14729,
8708,
3834,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
14058,
1940,
812,
3625,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
23,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
2
] |
return standardError; }
|
return standardError; }
|
public RubyClass getStandardError() { return standardError; }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyExceptions.java/clean/org/jruby/runtime/RubyExceptions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
797,
336,
8336,
668,
1435,
288,
202,
202,
2463,
4529,
668,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
797,
336,
8336,
668,
1435,
288,
202,
202,
2463,
4529,
668,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) {
|
if (headerIFDs == null) headerIFDs = ifds; for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) {
|
protected void initMetadata() { for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) { // the series data // ID_SERIES metadata.put("Version", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Number of Series", new Integer(DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Length of filename", new Integer(DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Length of file extension", new Integer(DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Image file extension", DataTools.stripString(new String(temp, 16, ((Integer) metadata.get("Length of file extension")).intValue()))); } temp = (byte[]) headerIFDs[i].get(new Integer(15)); if (temp != null) { // the image data // ID_IMAGES metadata.put("Number of images", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Image width", new Integer( DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Image height", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Bits per Sample", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Samples per pixel", new Integer( DataTools.bytesToInt(temp, 16, 4, littleEndian))); } temp = (byte[]) headerIFDs[i].get(new Integer(20)); if (temp != null) { // dimension description // ID_DIMDESCR int pt = 0; metadata.put("Voxel Version", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); int voxelType = DataTools.bytesToInt(temp, 4, 4, littleEndian); String type = ""; switch (voxelType) { case 0: type = "undefined"; break; case 10: type = "gray normal"; break; case 20: type = "RGB"; break; } metadata.put("VoxelType", type); metadata.put("Bytes per pixel", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Real world resolution", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); int length = DataTools.bytesToInt(temp, 16, 4, littleEndian); metadata.put("Maximum voxel intensity", DataTools.stripString(new String(temp, 20, length))); pt = 20 + length; pt += 4; metadata.put("Minimum voxel intensity", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4 + length + 4; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); for (int j=0; j<length; j++) { int dimId = DataTools.bytesToInt(temp, pt, 4, littleEndian); String dimType = ""; switch (dimId) { case 0: dimType = "undefined"; break; case 120: dimType = "x"; break; case 121: dimType = "y"; break; case 122: dimType = "z"; break; case 116: dimType = "t"; break; case 6815843: dimType = "channel"; break; case 6357100: dimType = "wave length"; break; case 7602290: dimType = "rotation"; break; case 7798904: dimType = "x-wide for the motorized xy-stage"; break; case 7798905: dimType = "y-wide for the motorized xy-stage"; break; case 7798906: dimType = "z-wide for the z-stage-drive"; break; case 4259957: dimType = "user1 - unspecified"; break; case 4325493: dimType = "user2 - unspecified"; break; case 4391029: dimType = "user3 - unspecified"; break; case 6357095: dimType = "graylevel"; break; case 6422631: dimType = "graylevel1"; break; case 6488167: dimType = "graylevel2"; break; case 6553703: dimType = "graylevel3"; break; case 7864398: dimType = "logical x"; break; case 7929934: dimType = "logical y"; break; case 7995470: dimType = "logical z"; break; case 7602254: dimType = "logical t"; break; case 7077966: dimType = "logical lambda"; break; case 7471182: dimType = "logical rotation"; break; case 5767246: dimType = "logical x-wide"; break; case 5832782: dimType = "logical y-wide"; break; case 5898318: dimType = "logical z-wide"; break; } metadata.put("Dim" + j + " type", dimType); pt += 4; metadata.put("Dim" + j + " size", new Integer( DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dim" + j + " distance between sub-dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical length", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical origin", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " name", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " description", DataTools.stripString(new String(temp, pt, len))); } } temp = (byte[]) headerIFDs[i].get(new Integer(30)); if (temp != null) { // filter data // ID_FILTERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(40)); if (temp != null) { // time data // ID_TIMEINFO try { metadata.put("Number of time-stamped dimensions", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); int nDims = DataTools.bytesToInt(temp, 4, 4, littleEndian); metadata.put("Time-stamped dimension", new Integer(nDims)); int pt = 8; for (int j=0; j < nDims; j++) { metadata.put("Dimension " + j + " ID", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " size", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " distance between dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } int numStamps = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-stamps", new Integer(numStamps)); for (int j=0; j<numStamps; j++) { metadata.put("Timestamp " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } int numTMs = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-markers", new Integer(numTMs)); for (int j=0; j<numTMs; j++) { int numDims = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; for (int k=0; k<numDims; k++) { metadata.put("Time-marker " + j + " Dimension " + k + " coordinate", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } metadata.put("Time-marker " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } } catch (Throwable t) { } } temp = (byte[]) headerIFDs[i].get(new Integer(50)); if (temp != null) { // scanner data // ID_SCANNERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(60)); if (temp != null) { // experiment data // ID_EXPERIMENT int pt = 8; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Image Description", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Main file extension", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image format identifier", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image extension", DataTools.stripString(new String(temp, pt, 2*len))); } temp = (byte[]) headerIFDs[i].get(new Integer(70)); if (temp != null) { // LUT data // ID_LUTDESC int pt = 0; int numChannels = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of LUT channels", new Integer(numChannels)); metadata.put("ID of colored dimension", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; for (int j=0; j<numChannels; j++) { metadata.put("LUT Channel " + j + " version", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int invert = DataTools.bytesToInt(temp, pt, 1, littleEndian); pt += 1; boolean inverted = invert == 1; metadata.put("LUT Channel " + j + " inverted?", new Boolean(inverted).toString()); int length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " description", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " filename", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " name", DataTools.stripString(new String(temp, pt, length))); pt += length; pt += 8; } } } if (ome != null) { Integer sizeX = (Integer) metadata.get("Image width"); Integer sizeY = (Integer) metadata.get("Image height"); Integer sizeZ = (Integer) metadata.get("Number of images"); OMETools.setPixels(ome, sizeX, sizeY, sizeZ, new Integer(1), // SizeC new Integer(1), // SizeT null, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC"); // DimensionOrder OMETools.setCreationDate(ome, metadata.get("Timestamp 1").toString().substring(3)); OMETools.setDescription(ome, metadata.get("Image Description").toString());// String voxel = metadata.get("VoxelType").toString();// String photoInterp;// if (voxel.equals("gray normal")) photoInterp = "monochrome";// else if (voxel.equals("RGB")) photoInterp = "RGB";// else photoInterp = "monochrome";//// OMETools.setAttribute(ome, "ChannelInfo",// "PhotometricInterpretation", photoInterp);//// OMETools.setAttribute(ome, "ChannelInfo", "SamplesPerPixel",// metadata.get("Samples per pixel").toString()); } }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/41d9e586fbb5488ebcea41db97b26e9af0b7e6fe/LeicaReader.java/clean/loci/formats/LeicaReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
2277,
1435,
288,
282,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3374,
5501,
22831,
18,
2469,
31,
277,
27245,
288,
377,
1160,
8526,
1906,
273,
261,
7229,
63,
5717,
1446,
5501,
22831,
63,
77,
8009,
588,
12,
2704,
2144,
12,
2163,
10019,
377,
309,
261,
5814,
480,
446,
13,
288,
4202,
368,
326,
4166,
501,
4202,
368,
1599,
67,
2123,
8805,
3639,
1982,
18,
458,
2932,
1444,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
374,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
1854,
434,
9225,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
1059,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
1782,
434,
1544,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
1725,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
1782,
434,
585,
2710,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
2593,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
2040,
585,
2710,
3113,
1850,
1910,
10348,
18,
6406,
780,
12,
2704,
514,
12,
5814,
16,
2872,
16,
1850,
14015,
4522,
13,
1982,
18,
588,
2932,
1782,
434,
585,
2710,
7923,
2934,
474,
620,
1435,
3719,
1769,
1377,
289,
1377,
1906,
273,
261,
7229,
63,
5717,
1446,
5501,
22831,
63,
77,
8009,
588,
12,
2704,
2144,
12,
3600,
10019,
1377,
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,
4750,
918,
1208,
2277,
1435,
288,
282,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3374,
5501,
22831,
18,
2469,
31,
277,
27245,
288,
377,
1160,
8526,
1906,
273,
261,
7229,
63,
5717,
1446,
5501,
22831,
63,
77,
8009,
588,
12,
2704,
2144,
12,
2163,
10019,
377,
309,
261,
5814,
480,
446,
13,
288,
4202,
368,
326,
4166,
501,
4202,
368,
1599,
67,
2123,
8805,
3639,
1982,
18,
458,
2932,
1444,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
374,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
1854,
434,
9225,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
1059,
16,
1059,
16,
2
] |
RubyArray argArray = RubyArray.newArray(recv.getRuntime(), args); return argArray.join(RubyString.newString(recv.getRuntime(), separator()));
|
RubyArray argArray = recv.getRuntime().newArray(args); return argArray.join(recv.getRuntime().newString(separator()));
|
public static RubyString join(IRubyObject recv, IRubyObject[] args) { RubyArray argArray = RubyArray.newArray(recv.getRuntime(), args); return argArray.join(RubyString.newString(recv.getRuntime(), separator())); }
|
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFile.java/clean/src/org/jruby/RubyFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
1233,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
202,
202,
54,
10340,
1076,
1501,
1076,
273,
19817,
1076,
18,
2704,
1076,
12,
18334,
18,
588,
5576,
9334,
833,
1769,
202,
202,
2463,
1501,
1076,
18,
5701,
12,
54,
10340,
780,
18,
2704,
780,
12,
18334,
18,
588,
5576,
9334,
4182,
1435,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19817,
780,
1233,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
202,
202,
54,
10340,
1076,
1501,
1076,
273,
19817,
1076,
18,
2704,
1076,
12,
18334,
18,
588,
5576,
9334,
833,
1769,
202,
202,
2463,
1501,
1076,
18,
5701,
12,
54,
10340,
780,
18,
2704,
780,
12,
18334,
18,
588,
5576,
9334,
4182,
1435,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
c.gridx = 1; c.gridwidth = 1; c.gridy = 0; c.weightx = 0.0; JPanel pane = new JPanel(); pane.setLayout(new FlowLayout(FlowLayout.LEFT)); pane.add(_attrCheckBox); pane.add(_operCheckBox); gb.setConstraints(pane, c); add(pane);
|
c.gridx = 1; c.gridwidth = 1; c.gridy = 0; c.weightx = 0.0; JPanel pane = new JPanel(); pane.setLayout(new FlowLayout(FlowLayout.LEFT)); pane.add(_attrCheckBox); pane.add(_operCheckBox); gb.setConstraints(pane, c); add(pane);
|
public StylePanelFigClass() { super(); GridBagLayout gb = (GridBagLayout) getLayout(); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.ipadx = 0; c.ipady = 0; c.gridx = 0; c.gridwidth = 1; c.gridy = 0; c.weightx = 0.0; gb.setConstraints(_displayLabel, c); add(_displayLabel); c.gridx = 1; c.gridwidth = 1; c.gridy = 0; c.weightx = 0.0; JPanel pane = new JPanel(); pane.setLayout(new FlowLayout(FlowLayout.LEFT)); pane.add(_attrCheckBox); pane.add(_operCheckBox); gb.setConstraints(pane, c); add(pane); _attrCheckBox.setSelected(false); _operCheckBox.setSelected(false); _attrCheckBox.addItemListener(this); _operCheckBox.addItemListener(this); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/StylePanelFigClass.java/buggy/src_new/org/argouml/uml/diagram/static_structure/ui/StylePanelFigClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9767,
5537,
42,
360,
797,
1435,
288,
565,
2240,
5621,
565,
7145,
5013,
3744,
21649,
273,
261,
6313,
5013,
3744,
13,
17670,
5621,
565,
13075,
276,
273,
394,
13075,
5621,
565,
276,
18,
5935,
273,
13075,
18,
38,
18307,
31,
565,
276,
18,
625,
361,
92,
273,
374,
31,
276,
18,
625,
361,
93,
273,
374,
31,
565,
276,
18,
5222,
92,
273,
374,
31,
565,
276,
18,
5222,
2819,
273,
404,
31,
565,
276,
18,
5222,
93,
273,
374,
31,
565,
276,
18,
4865,
92,
273,
374,
18,
20,
31,
565,
21649,
18,
542,
4878,
24899,
5417,
2224,
16,
276,
1769,
565,
527,
24899,
5417,
2224,
1769,
565,
276,
18,
5222,
92,
273,
404,
31,
565,
276,
18,
5222,
2819,
273,
404,
31,
565,
276,
18,
5222,
93,
273,
374,
31,
565,
276,
18,
4865,
92,
273,
374,
18,
20,
31,
565,
24048,
13618,
273,
394,
24048,
5621,
565,
13618,
18,
542,
3744,
12,
2704,
9473,
3744,
12,
5249,
3744,
18,
10066,
10019,
565,
13618,
18,
1289,
24899,
1747,
19174,
1769,
565,
13618,
18,
1289,
24899,
4063,
19174,
1769,
565,
21649,
18,
542,
4878,
12,
29009,
16,
276,
1769,
565,
527,
12,
29009,
1769,
565,
389,
1747,
19174,
18,
542,
7416,
12,
5743,
1769,
565,
389,
4063,
19174,
18,
542,
7416,
12,
5743,
1769,
565,
389,
1747,
19174,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
4063,
19174,
18,
1289,
1180,
2223,
12,
2211,
1769,
225,
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,
282,
1071,
9767,
5537,
42,
360,
797,
1435,
288,
565,
2240,
5621,
565,
7145,
5013,
3744,
21649,
273,
261,
6313,
5013,
3744,
13,
17670,
5621,
565,
13075,
276,
273,
394,
13075,
5621,
565,
276,
18,
5935,
273,
13075,
18,
38,
18307,
31,
565,
276,
18,
625,
361,
92,
273,
374,
31,
276,
18,
625,
361,
93,
273,
374,
31,
565,
276,
18,
5222,
92,
273,
374,
31,
565,
276,
18,
5222,
2819,
273,
404,
31,
565,
276,
18,
5222,
93,
273,
374,
31,
565,
276,
18,
4865,
92,
273,
374,
18,
20,
31,
565,
21649,
18,
542,
4878,
24899,
5417,
2224,
16,
276,
1769,
565,
527,
24899,
5417,
2224,
1769,
565,
276,
18,
5222,
92,
273,
404,
31,
565,
2
] |
public BpelProcess(QName pid, OProcess oprocess, Map<OPartnerLink, Endpoint> myRoleEndpointNames, Map<OPartnerLink, Endpoint> initialPartners, BpelEventListener debugger, ExpressionLanguageRuntimeRegistry expLangRuntimeRegistry, List<MessageExchangeInterceptor> localMexInterceptors, ProcessStore store) { _pid = pid;
|
public BpelProcess(ProcessConf conf, OProcess oprocess, BpelEventListener debugger, ExpressionLanguageRuntimeRegistry expLangRuntimeRegistry) { _pid = conf.getProcessId(); _pconf = conf;
|
public BpelProcess(QName pid, OProcess oprocess, Map<OPartnerLink, Endpoint> myRoleEndpointNames, Map<OPartnerLink, Endpoint> initialPartners, BpelEventListener debugger, ExpressionLanguageRuntimeRegistry expLangRuntimeRegistry, List<MessageExchangeInterceptor> localMexInterceptors, ProcessStore store) { _pid = pid; _replacementMap = new ReplacementMapImpl(oprocess); _oprocess = oprocess; _expLangRuntimeRegistry = expLangRuntimeRegistry; _mexInterceptors.addAll(localMexInterceptors); _store = store; _inMemory = store.getProcessConfiguration(_pid).isInMemory(); for (OPartnerLink pl : _oprocess.getAllPartnerLinks()) { if (pl.hasMyRole()) { Endpoint endpoint = myRoleEndpointNames.get(pl); if (endpoint == null) throw new IllegalArgumentException("No service name for myRole plink " + pl.getName()); PartnerLinkMyRoleImpl myRole = new PartnerLinkMyRoleImpl(pl, endpoint); _myRoles.put(pl, myRole); _endpointToMyRoleMap.put(endpoint, myRole); } if (pl.hasPartnerRole()) { PartnerLinkPartnerRoleImpl partnerRole = new PartnerLinkPartnerRoleImpl(pl, initialPartners.get(pl)); _partnerRoles.put(pl, partnerRole); } } }
|
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/5f138028c4f2f9da31f4670375dc15a4f70fbe3a/BpelProcess.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
605,
84,
292,
2227,
12,
13688,
4231,
16,
531,
2227,
320,
2567,
16,
1635,
32,
51,
1988,
1224,
2098,
16,
6961,
34,
3399,
2996,
3293,
1557,
16,
15604,
1635,
32,
51,
1988,
1224,
2098,
16,
6961,
34,
2172,
1988,
9646,
16,
605,
84,
292,
7375,
19977,
16,
15604,
5371,
3779,
5576,
4243,
1329,
7275,
5576,
4243,
16,
15604,
987,
32,
1079,
11688,
10281,
34,
1191,
49,
338,
20540,
16,
4389,
2257,
1707,
13,
288,
3639,
389,
6610,
273,
4231,
31,
3639,
389,
24394,
863,
273,
394,
6910,
475,
863,
2828,
12,
556,
16127,
1769,
3639,
389,
556,
16127,
273,
320,
2567,
31,
3639,
389,
2749,
7275,
5576,
4243,
273,
1329,
7275,
5576,
4243,
31,
3639,
389,
81,
338,
20540,
18,
1289,
1595,
12,
3729,
49,
338,
20540,
1769,
3639,
389,
2233,
273,
1707,
31,
3639,
389,
267,
6031,
273,
1707,
18,
588,
2227,
1750,
24899,
6610,
2934,
291,
382,
6031,
5621,
3639,
364,
261,
51,
1988,
1224,
2098,
886,
294,
389,
556,
16127,
18,
588,
1595,
1988,
1224,
7100,
10756,
288,
5411,
309,
261,
412,
18,
5332,
12062,
2996,
10756,
288,
7734,
6961,
2494,
273,
3399,
2996,
3293,
1557,
18,
588,
12,
412,
1769,
7734,
309,
261,
8003,
422,
446,
13,
10792,
604,
394,
2754,
2932,
2279,
1156,
508,
364,
3399,
2996,
886,
754,
315,
397,
886,
18,
17994,
10663,
7734,
6393,
1224,
2098,
12062,
2996,
2828,
3399,
2996,
273,
394,
6393,
1224,
2098,
12062,
2996,
2828,
12,
412,
16,
2494,
1769,
7734,
389,
4811,
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,
605,
84,
292,
2227,
12,
13688,
4231,
16,
531,
2227,
320,
2567,
16,
1635,
32,
51,
1988,
1224,
2098,
16,
6961,
34,
3399,
2996,
3293,
1557,
16,
15604,
1635,
32,
51,
1988,
1224,
2098,
16,
6961,
34,
2172,
1988,
9646,
16,
605,
84,
292,
7375,
19977,
16,
15604,
5371,
3779,
5576,
4243,
1329,
7275,
5576,
4243,
16,
15604,
987,
32,
1079,
11688,
10281,
34,
1191,
49,
338,
20540,
16,
4389,
2257,
1707,
13,
288,
3639,
389,
6610,
273,
4231,
31,
3639,
389,
24394,
863,
273,
394,
6910,
475,
863,
2828,
12,
556,
16127,
1769,
3639,
389,
556,
16127,
273,
320,
2567,
31,
3639,
389,
2749,
7275,
5576,
4243,
273,
1329,
7275,
5576,
4243,
31,
3639,
389,
81,
2
] |
public LoanOfferingBO getLoanOffering(Short loanOfferingId, Short localeId)
|
public LoanOfferingBO getLoanOffering(Short prdofferingId)
|
public LoanOfferingBO getLoanOffering(Short loanOfferingId, Short localeId) throws ServiceException { try { return new LoanPrdPersistence().getLoanOffering(loanOfferingId, localeId); } catch (PersistenceException e) { throw new ServiceException(e); } }
|
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/8c29345f77fcd6c9ad0f4c44eb113bfd9feda957/LoanPrdBusinessService.java/buggy/mifos/src/org/mifos/application/productdefinition/business/service/LoanPrdBusinessService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3176,
304,
17800,
5315,
336,
1504,
304,
17800,
12,
4897,
28183,
17800,
548,
16,
7925,
2573,
548,
13,
1082,
202,
15069,
16489,
288,
202,
202,
698,
288,
1082,
202,
2463,
394,
3176,
304,
2050,
72,
13182,
7675,
588,
1504,
304,
17800,
12,
383,
304,
17800,
548,
16,
6862,
202,
6339,
548,
1769,
202,
202,
97,
1044,
261,
13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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3176,
304,
17800,
5315,
336,
1504,
304,
17800,
12,
4897,
28183,
17800,
548,
16,
7925,
2573,
548,
13,
1082,
202,
15069,
16489,
288,
202,
202,
698,
288,
1082,
202,
2463,
394,
3176,
304,
2050,
72,
13182,
7675,
588,
1504,
304,
17800,
12,
383,
304,
17800,
548,
16,
6862,
202,
6339,
548,
1769,
202,
202,
97,
1044,
261,
13182,
503,
425,
13,
288,
1082,
202,
12849,
394,
16489,
12,
73,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return getPropertyGroups().getProperties(PROPGROUP_OUTPUTS); }
|
return getPropertyGroups().getProperties(PROPGROUP_OUTPUTS); }
|
public IProperties getOutputs() { return getPropertyGroups().getProperties(PROPGROUP_OUTPUTS); }
|
9195 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9195/5e9c556e14fa1ac9f905114d06241620c97370af/ZebraProcessDefinition.java/buggy/zebra/src/java/zebra-hivemind/src/main/java/com/anite/zebra/hivemind/om/defs/Z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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2297,
11062,
87,
1435,
288,
202,
202,
2463,
3911,
3621,
7675,
588,
2297,
12,
15811,
8468,
67,
15527,
55,
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,
-100
] |
protected boolean debug(final String msg) {
|
protected boolean debug(final char[] msg) {
|
protected boolean debug(final String msg) { if (msg != null) { System.out.print(msg); // log.finest(msg); } return true; }
|
51933 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51933/27e1ebcad1ef97cc586e26ad972eaad05291f006/IOService.java/buggy/src/tigase/net/IOService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
1198,
12,
6385,
1149,
8526,
1234,
13,
288,
565,
309,
261,
3576,
480,
446,
13,
288,
1082,
202,
3163,
18,
659,
18,
1188,
12,
3576,
1769,
1082,
202,
759,
1377,
613,
18,
926,
395,
12,
3576,
1769,
565,
289,
565,
327,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
4750,
1250,
1198,
12,
6385,
1149,
8526,
1234,
13,
288,
565,
309,
261,
3576,
480,
446,
13,
288,
1082,
202,
3163,
18,
659,
18,
1188,
12,
3576,
1769,
1082,
202,
759,
1377,
613,
18,
926,
395,
12,
3576,
1769,
565,
289,
565,
327,
638,
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
] |
int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1;
|
NodeRecord best = null; NodeRecord r; Enumeration en = nodes.elements();
|
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree - nothing to return. Object node = row2node.get(new Integer(row)); NodeRecord nr = (NodeRecord) nodes.get(node); return nr.getPath(); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/0d84414b1037035df02aea8cd7252c51091c5663/FixedHeightLayoutCache.java/clean/javax/swing/tree/FixedHeightLayoutCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4902,
743,
4339,
4082,
7781,
774,
12,
474,
619,
16,
509,
677,
13,
225,
288,
565,
309,
261,
18013,
13,
1377,
1089,
5621,
565,
368,
1660,
741,
486,
1608,
358,
7401,
2724,
777,
2595,
1240,
326,
1967,
2072,
18,
565,
509,
1027,
273,
677,
342,
1027,
2686,
31,
565,
309,
261,
492,
411,
374,
13,
1377,
1027,
273,
374,
31,
565,
309,
261,
492,
405,
11835,
1380,
10756,
1377,
1027,
273,
11835,
1380,
1435,
300,
404,
31,
3639,
309,
261,
492,
411,
374,
13,
1377,
327,
446,
31,
368,
8953,
2151,
300,
5083,
358,
327,
18,
3639,
1033,
756,
273,
1027,
22,
2159,
18,
588,
12,
2704,
2144,
12,
492,
10019,
565,
2029,
2115,
9884,
273,
261,
907,
2115,
13,
2199,
18,
588,
12,
2159,
1769,
565,
327,
9884,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4902,
743,
4339,
4082,
7781,
774,
12,
474,
619,
16,
509,
677,
13,
225,
288,
565,
309,
261,
18013,
13,
1377,
1089,
5621,
565,
368,
1660,
741,
486,
1608,
358,
7401,
2724,
777,
2595,
1240,
326,
1967,
2072,
18,
565,
509,
1027,
273,
677,
342,
1027,
2686,
31,
565,
309,
261,
492,
411,
374,
13,
1377,
1027,
273,
374,
31,
565,
309,
261,
492,
405,
11835,
1380,
10756,
1377,
1027,
273,
11835,
1380,
1435,
300,
404,
31,
3639,
309,
261,
492,
411,
374,
13,
1377,
327,
446,
31,
368,
8953,
2151,
300,
5083,
358,
327,
18,
3639,
1033,
756,
273,
1027,
22,
2159,
18,
588,
12,
2704,
2144,
12,
492,
10019,
565,
2029,
2115,
9884,
273,
261,
2
] |
LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(): " + insertPref); insertPrefPstmt.setString(5, value); insertPrefPstmt.executeUpdate();
|
LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(PREF_ID=" + prefId + "): " + deletePrefValues); deletePrefValuesPstmt.setInt(1, prefId); deletePrefValuesPstmt.executeUpdate();
|
public void setEntityPreferences(final int userId, final int layoutId, final String chanDescId, final PreferenceSet prefs) throws Exception { final Connection con = RDBMServices.getConnection(); final String deleteCurrentPrefs = "DELETE FROM UP_PORTLET_ENTITY_PREFS " + "WHERE USER_ID=? AND LAYOUT_ID=? AND CHAN_DESC_ID=?"; final String insertPref = "INSERT INTO UP_PORTLET_ENTITY_PREFS " + "(USER_ID, LAYOUT_ID, CHAN_DESC_ID, PORTLET_PREF_NAME, PORTLET_PREF_VALUE) " + "VALUES (?, ?, ?, ?, ?)"; LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(userId=" + userId + ", layoutId=" + layoutId + ", chanDescId=" + chanDescId + ")"); try { // Set autocommit false for the connection RDBMServices.setAutoCommit(con, false); PreparedStatement deleteCurrentPrefsPstmt = null; PreparedStatement insertPrefPstmt = null; try { deleteCurrentPrefsPstmt = con.prepareStatement(deleteCurrentPrefs); insertPrefPstmt = con.prepareStatement(insertPref); LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(): " + deleteCurrentPrefs); deleteCurrentPrefsPstmt.setInt(1, userId); deleteCurrentPrefsPstmt.setInt(2, layoutId); deleteCurrentPrefsPstmt.setString(3, chanDescId); deleteCurrentPrefsPstmt.execute(); for (final Iterator prefItr = prefs.iterator(); prefItr.hasNext();) { final Preference pref = (Preference)prefItr.next(); insertPrefPstmt.setInt(1, userId); insertPrefPstmt.setInt(2, layoutId); insertPrefPstmt.setString(3, chanDescId); insertPrefPstmt.setString(4, pref.getName()); for (final Iterator valueItr = pref.getValues(); valueItr.hasNext();) { final String value = (String)valueItr.next(); LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(): " + insertPref); insertPrefPstmt.setString(5, value); insertPrefPstmt.executeUpdate(); } } RDBMServices.commit(con); } catch (Exception e) { // Roll back the transaction RDBMServices.rollback(con); throw e; } finally { try { deleteCurrentPrefsPstmt.close(); } catch (Exception e) { } try { insertPrefPstmt.close(); } catch (Exception e) { } } } finally { RDBMServices.releaseConnection(con); } }
|
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/8dc073ef3a5946c6e14fbb8c4ef1466b04e15302/RDBMPortletPreferencesStore.java/buggy/source/org/jasig/portal/RDBMPortletPreferencesStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20739,
12377,
12,
6385,
509,
6249,
16,
727,
509,
3511,
548,
16,
727,
514,
3861,
4217,
548,
16,
727,
29125,
694,
15503,
13,
1216,
1185,
288,
3639,
727,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
7734,
727,
514,
1430,
3935,
1386,
2556,
273,
2398,
315,
6460,
4571,
7376,
67,
6354,
15146,
67,
11101,
67,
3670,
4931,
315,
397,
5411,
315,
12299,
7443,
67,
734,
17282,
4116,
25239,
5069,
67,
734,
17282,
4116,
6469,
1258,
67,
10964,
67,
734,
25501,
31,
7734,
727,
514,
2243,
23218,
273,
2398,
315,
11356,
12421,
7376,
67,
6354,
15146,
67,
11101,
67,
3670,
4931,
315,
397,
5411,
7751,
4714,
67,
734,
16,
25239,
5069,
67,
734,
16,
6469,
1258,
67,
10964,
67,
734,
16,
20987,
15146,
67,
3670,
42,
67,
1985,
16,
20987,
15146,
67,
3670,
42,
67,
4051,
13,
315,
397,
5411,
315,
16386,
13590,
16,
20033,
20033,
20033,
692,
2225,
31,
7734,
1827,
1179,
18,
1330,
12,
1343,
1179,
18,
9394,
16,
315,
54,
2290,
49,
18566,
12377,
2257,
2866,
542,
1943,
12377,
12,
18991,
1546,
397,
6249,
397,
3104,
3511,
548,
1546,
397,
3511,
548,
397,
3104,
3861,
4217,
548,
1546,
397,
3861,
4217,
548,
397,
7310,
1769,
3639,
775,
288,
5411,
368,
1000,
2059,
27159,
629,
364,
326,
1459,
5411,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
629,
1769,
10792,
16913,
1430,
3935,
1386,
2556,
52,
10589,
273,
446,
31,
5411,
16913,
2243,
23218,
52,
10589,
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,
918,
20739,
12377,
12,
6385,
509,
6249,
16,
727,
509,
3511,
548,
16,
727,
514,
3861,
4217,
548,
16,
727,
29125,
694,
15503,
13,
1216,
1185,
288,
3639,
727,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
7734,
727,
514,
1430,
3935,
1386,
2556,
273,
2398,
315,
6460,
4571,
7376,
67,
6354,
15146,
67,
11101,
67,
3670,
4931,
315,
397,
5411,
315,
12299,
7443,
67,
734,
17282,
4116,
25239,
5069,
67,
734,
17282,
4116,
6469,
1258,
67,
10964,
67,
734,
25501,
31,
7734,
727,
514,
2243,
23218,
273,
2398,
315,
11356,
12421,
7376,
67,
6354,
15146,
67,
11101,
67,
3670,
4931,
315,
397,
5411,
7751,
4714,
67,
734,
16,
25239,
5069,
67,
734,
16,
2
] |
result = ScriptRuntime.setObjectElem(lhs, id, rhs, cx, scope);
|
result = ScriptRuntime.setObjectElem(lhs, id, rhs, cx, state.scope);
|
private static int do_setElem(Object[] stack, double[] sDbl, int stackTop, Context cx, Scriptable scope) { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); Object lhs = stack[stackTop - 2]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop - 2]); Object result; Object id = stack[stackTop - 1]; if (id != DBL_MRK) { result = ScriptRuntime.setObjectElem(lhs, id, rhs, cx, scope); } else { double val = sDbl[stackTop - 1]; if (lhs == null || lhs == Undefined.instance) { throw ScriptRuntime.undefWriteError( lhs, ScriptRuntime.toString(val), rhs); } Scriptable obj = (lhs instanceof Scriptable) ? (Scriptable)lhs : ScriptRuntime.toObject(cx, scope, lhs); int index = (int)val; if (index == val) { result = ScriptRuntime.setObjectIndex(obj, index, rhs, cx); } else { String s = ScriptRuntime.toString(val); result = ScriptRuntime.setObjectProp(obj, s, rhs, cx); } } stackTop -= 2; stack[stackTop] = result; return stackTop; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/199b043221701f9744538a048390c041bd370c5f/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
741,
67,
542,
7498,
12,
921,
8526,
2110,
16,
1645,
8526,
272,
40,
3083,
16,
509,
2110,
3401,
16,
21394,
1772,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
1033,
7711,
273,
2110,
63,
3772,
3401,
15533,
3639,
309,
261,
86,
4487,
422,
2383,
48,
67,
23464,
47,
13,
7711,
273,
1645,
2964,
12,
87,
40,
3083,
63,
3772,
3401,
19226,
3639,
1033,
8499,
273,
2110,
63,
3772,
3401,
300,
576,
15533,
3639,
309,
261,
80,
4487,
422,
2383,
48,
67,
23464,
47,
13,
8499,
273,
1645,
2964,
12,
87,
40,
3083,
63,
3772,
3401,
300,
576,
19226,
3639,
1033,
563,
31,
3639,
1033,
612,
273,
2110,
63,
3772,
3401,
300,
404,
15533,
3639,
309,
261,
350,
480,
2383,
48,
67,
23464,
47,
13,
288,
5411,
563,
273,
7739,
5576,
18,
542,
921,
7498,
12,
80,
4487,
16,
612,
16,
7711,
16,
9494,
16,
919,
18,
4887,
1769,
3639,
289,
469,
288,
5411,
1645,
1244,
273,
272,
40,
3083,
63,
3772,
3401,
300,
404,
15533,
5411,
309,
261,
80,
4487,
422,
446,
747,
8499,
422,
22243,
18,
1336,
13,
288,
7734,
604,
7739,
5576,
18,
318,
536,
3067,
668,
12,
12900,
8499,
16,
7739,
5576,
18,
10492,
12,
1125,
3631,
7711,
1769,
5411,
289,
5411,
22780,
1081,
273,
261,
80,
4487,
1276,
22780,
13,
11794,
692,
261,
3651,
429,
13,
80,
4487,
11794,
294,
7739,
5576,
18,
869,
921,
12,
71,
92,
16,
2146,
16,
8499,
1769,
5411,
509,
770,
273,
261,
474,
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,
509,
741,
67,
542,
7498,
12,
921,
8526,
2110,
16,
1645,
8526,
272,
40,
3083,
16,
509,
2110,
3401,
16,
21394,
1772,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
1033,
7711,
273,
2110,
63,
3772,
3401,
15533,
3639,
309,
261,
86,
4487,
422,
2383,
48,
67,
23464,
47,
13,
7711,
273,
1645,
2964,
12,
87,
40,
3083,
63,
3772,
3401,
19226,
3639,
1033,
8499,
273,
2110,
63,
3772,
3401,
300,
576,
15533,
3639,
309,
261,
80,
4487,
422,
2383,
48,
67,
23464,
47,
13,
8499,
273,
1645,
2964,
12,
87,
40,
3083,
63,
3772,
3401,
300,
576,
19226,
3639,
1033,
563,
31,
3639,
1033,
612,
273,
2110,
63,
3772,
3401,
300,
404,
15533,
3639,
309,
2
] |
if (jj_3R_67()) return true;
|
if (jj_scan_token(TRUE)) return true;
|
final private boolean jj_3R_47() { if (jj_3R_67()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/f5ebf1fa86f338484c8f14f11ac1fbcc329367a3/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9462,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
18724,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
1250,
10684,
67,
23,
54,
67,
9462,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
18724,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
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
] |
setModified(true);
|
public void setResourceId(String resourceId) { if (((resourceId == null) && (_resourceId != null)) || ((resourceId != null) && (_resourceId == null)) || ((resourceId != null) && (_resourceId != null) && !resourceId.equals(_resourceId))) { if (!XSS_ALLOW_RESOURCEID) { resourceId = XSSUtil.strip(resourceId); } _resourceId = resourceId; setModified(true); } }
|
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/f4d6afc6707f57fd84bf6b624f0c119657b0a766/PermissionModel.java/clean/portal-ejb/src/com/liferay/portal/model/PermissionModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
17790,
12,
780,
15035,
13,
288,
202,
202,
430,
261,
12443,
3146,
548,
422,
446,
13,
597,
261,
67,
3146,
548,
480,
446,
3719,
747,
9506,
202,
12443,
3146,
548,
480,
446,
13,
597,
261,
67,
3146,
548,
422,
446,
3719,
747,
9506,
202,
12443,
3146,
548,
480,
446,
13,
597,
261,
67,
3146,
548,
480,
446,
13,
597,
9506,
202,
5,
3146,
548,
18,
14963,
24899,
3146,
548,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
11395,
734,
13,
288,
9506,
202,
3146,
548,
273,
1139,
1260,
1304,
18,
6406,
12,
3146,
548,
1769,
1082,
202,
97,
1082,
202,
67,
3146,
548,
273,
15035,
31,
1082,
202,
542,
4575,
12,
3767,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
444,
17790,
12,
780,
15035,
13,
288,
202,
202,
430,
261,
12443,
3146,
548,
422,
446,
13,
597,
261,
67,
3146,
548,
480,
446,
3719,
747,
9506,
202,
12443,
3146,
548,
480,
446,
13,
597,
261,
67,
3146,
548,
422,
446,
3719,
747,
9506,
202,
12443,
3146,
548,
480,
446,
13,
597,
261,
67,
3146,
548,
480,
446,
13,
597,
9506,
202,
5,
3146,
548,
18,
14963,
24899,
3146,
548,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
11395,
734,
13,
288,
9506,
202,
3146,
548,
273,
1139,
1260,
1304,
18,
6406,
12,
3146,
548,
1769,
1082,
202,
97,
1082,
202,
67,
3146,
548,
273,
15035,
31,
1082,
202,
542,
4575,
12,
2
] |
|
String className = i == -1 ? fqName : fqName.substring(i + 1); return className;
|
return i == -1 ? fqName : fqName.substring(i + 1);
|
public static String extractClassName(String fqName) { int i = fqName.lastIndexOf('.'); String className = i == -1 ? fqName : fqName.substring(i + 1); return className; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/649d9a65411ea451539361398ec9a18af83c404e/ClassUtil.java/clean/openapi/src/com/intellij/psi/util/ClassUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
2608,
3834,
12,
780,
8508,
461,
13,
288,
565,
509,
277,
273,
8508,
461,
18,
2722,
31985,
2668,
1093,
1769,
565,
514,
2658,
273,
277,
422,
300,
21,
692,
8508,
461,
294,
8508,
461,
18,
28023,
12,
77,
397,
404,
1769,
565,
327,
2658,
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,
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,
77,
397,
404,
1769,
565,
327,
2658,
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
] |
synchronized (_syncherMonitor) { while (true) { SyncBatch currentBatch = _nextBatchToSync; _nextBatchToSync = new SyncBatch(); syncToFile(); currentBatch.setSynched(); Cool.wait(_syncherMonitor); } }
|
syncher();
|
public void run() { synchronized (_syncherMonitor) { while (true) { SyncBatch currentBatch = _nextBatchToSync; _nextBatchToSync = new SyncBatch(); syncToFile(); currentBatch.setSynched(); Cool.wait(_syncherMonitor); } } }
|
5929 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5929/18cf06002cd779977fd55c13e0a58abcebb04ca4/DurableOutputStream.java/buggy/src/main/org/prevayler/foundation/DurableOutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
22043,
261,
67,
87,
2515,
264,
7187,
13,
288,
6862,
202,
17523,
261,
3767,
13,
288,
25083,
202,
4047,
4497,
783,
4497,
273,
389,
4285,
4497,
774,
4047,
31,
25083,
202,
67,
4285,
4497,
774,
4047,
273,
394,
9721,
4497,
5621,
25083,
202,
8389,
15450,
5621,
25083,
202,
2972,
4497,
18,
542,
10503,
2049,
5621,
25083,
202,
39,
1371,
18,
7048,
24899,
87,
2515,
264,
7187,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1086,
1435,
288,
9506,
202,
22043,
261,
67,
87,
2515,
264,
7187,
13,
288,
6862,
202,
17523,
261,
3767,
13,
288,
25083,
202,
4047,
4497,
783,
4497,
273,
389,
4285,
4497,
774,
4047,
31,
25083,
202,
67,
4285,
4497,
774,
4047,
273,
394,
9721,
4497,
5621,
25083,
202,
8389,
15450,
5621,
25083,
202,
2972,
4497,
18,
542,
10503,
2049,
5621,
25083,
202,
39,
1371,
18,
7048,
24899,
87,
2515,
264,
7187,
1769,
6862,
202,
97,
9506,
202,
97,
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
] |
ByteBuffer toReturn = (ByteBuffer) SLICED.remove(new Integer(System.identityHashCode(buf)));
|
ByteBuffer toReturn = (ByteBuffer) SLICED.remove(buf);
|
public synchronized void put(ByteBuffer buf) { // see if this buffer was sliced off of a bigger one ByteBuffer toReturn = (ByteBuffer) SLICED.remove(new Integer(System.identityHashCode(buf))); if (toReturn == null) toReturn = buf; toReturn.clear(); Integer size = new Integer(toReturn.capacity()); List l = (List) CACHE.get(size); if (l == null) { l = new ArrayList(1); CACHE.put(size, l); } l.add(toReturn); }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/165ab242f1a68153585cd302d189616864967e50/HeapByteBufferCache.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/io/HeapByteBufferCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1378,
12,
12242,
1681,
13,
288,
7734,
368,
2621,
309,
333,
1613,
1703,
27353,
3397,
434,
279,
18983,
1245,
3639,
7400,
24029,
273,
261,
12242,
13,
2398,
348,
2053,
23552,
18,
4479,
12,
2704,
2144,
12,
3163,
18,
10781,
21952,
12,
4385,
3719,
1769,
3639,
309,
261,
869,
990,
422,
446,
13,
5411,
24029,
273,
1681,
31,
7734,
24029,
18,
8507,
5621,
3639,
2144,
963,
273,
394,
2144,
12,
869,
990,
18,
16017,
10663,
3639,
987,
328,
273,
261,
682,
13,
13669,
18,
588,
12,
1467,
1769,
3639,
309,
261,
80,
422,
446,
13,
288,
2398,
328,
273,
394,
2407,
12,
21,
1769,
5411,
13669,
18,
458,
12,
1467,
16,
328,
1769,
3639,
289,
3639,
328,
18,
1289,
12,
869,
990,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1378,
12,
12242,
1681,
13,
288,
7734,
368,
2621,
309,
333,
1613,
1703,
27353,
3397,
434,
279,
18983,
1245,
3639,
7400,
24029,
273,
261,
12242,
13,
2398,
348,
2053,
23552,
18,
4479,
12,
2704,
2144,
12,
3163,
18,
10781,
21952,
12,
4385,
3719,
1769,
3639,
309,
261,
869,
990,
422,
446,
13,
5411,
24029,
273,
1681,
31,
7734,
24029,
18,
8507,
5621,
3639,
2144,
963,
273,
394,
2144,
12,
869,
990,
18,
16017,
10663,
3639,
987,
328,
273,
261,
682,
13,
13669,
18,
588,
12,
1467,
1769,
3639,
309,
261,
80,
422,
446,
13,
288,
2398,
328,
273,
394,
2407,
12,
21,
1769,
5411,
13669,
18,
458,
12,
1467,
16,
328,
1769,
3639,
289,
3639,
2
] |
getScmRewriter().rewriteScmInfo( project, getTagLabel() ); }
|
getScmRewriter().rewriteScmInfo( project, getTagLabel() ); }
|
protected void executeTask() throws MojoExecutionException { try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_INITIALIZED ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_PREPARED_RELEASE ) ) { checkForLocalModifications(); for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); getVersionResolver().resolveVersion( project ); getScmRewriter().rewriteScmInfo( project, getTagLabel() ); } for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); checkForPresenceOfSnapshots( project ); transformPomToReleaseVersionPom( project ); } generateReleasePoms(); checkInRelease(); tagRelease(); for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); getVersionResolver().incrementVersion( project ); getScmRewriter().restoreScmInfo( project ); } for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); transformPomToSnapshotVersionPom( project ); } removeReleasePoms(); checkInNextSnapshot(); try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_PREPARED_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
|
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/625596d32f1138e016cf983748dd893bd640133a/PrepareReleaseMojo.java/clean/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
2174,
1435,
3639,
1216,
18780,
565,
288,
3639,
775,
3639,
288,
5411,
336,
7391,
5491,
7675,
25414,
12,
15573,
16,
10819,
5491,
8135,
18,
4258,
67,
12919,
25991,
11272,
3639,
289,
3639,
1044,
261,
1860,
425,
262,
3639,
288,
5411,
9189,
7675,
8935,
12,
315,
668,
7410,
9776,
1199,
16,
425,
11272,
3639,
289,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
3670,
4066,
5879,
67,
30762,
262,
262,
3639,
288,
5411,
13855,
2042,
28340,
5621,
5411,
364,
261,
4498,
518,
273,
19178,
15298,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
17176,
4109,
1984,
273,
261,
49,
7638,
4109,
13,
518,
18,
4285,
5621,
7734,
8343,
4301,
7675,
10828,
1444,
12,
1984,
11272,
7734,
1322,
7670,
17631,
1091,
7675,
21489,
1541,
81,
966,
12,
1984,
16,
11362,
2224,
1435,
11272,
5411,
289,
5411,
364,
261,
4498,
518,
273,
19178,
15298,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
17176,
4109,
1984,
273,
261,
49,
7638,
4109,
13,
518,
18,
4285,
5621,
7734,
13855,
22590,
951,
17095,
12,
1984,
11272,
7734,
2510,
52,
362,
774,
7391,
1444,
52,
362,
12,
1984,
11272,
5411,
289,
5411,
2103,
7391,
52,
25390,
5621,
5411,
866,
382,
7391,
5621,
5411,
1047,
7391,
5621,
5411,
364,
261,
4498,
518,
273,
19178,
15298,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
17176,
4109,
1984,
273,
261,
49,
7638,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
2174,
1435,
3639,
1216,
18780,
565,
288,
3639,
775,
3639,
288,
5411,
336,
7391,
5491,
7675,
25414,
12,
15573,
16,
10819,
5491,
8135,
18,
4258,
67,
12919,
25991,
11272,
3639,
289,
3639,
1044,
261,
1860,
425,
262,
3639,
288,
5411,
9189,
7675,
8935,
12,
315,
668,
7410,
9776,
1199,
16,
425,
11272,
3639,
289,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
3670,
4066,
5879,
67,
30762,
262,
262,
3639,
288,
5411,
13855,
2042,
28340,
5621,
5411,
364,
261,
4498,
518,
273,
19178,
15298,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
17176,
4109,
1984,
273,
261,
49,
7638,
4109,
13,
518,
2
] |
double m1 = 0; double m2 = 0;
|
public DescriptorResult calculate(AtomContainer container) { IsotopeFactory factory = null; double m1 = 0; double m2 = 0; try { factory = IsotopeFactory.getInstance(); } catch (Exception e) { System.out.println(e); } DoubleArrayResult retval = new DoubleArrayResult(7); double ccf = 1.000138; double eps = 1e-5; double[][] imat = new double[3][3]; Point3d cm = GeometryTools.get3DCentreOfMass(container); // make the MI tensor for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { double sum = 0.0; int delta; if (i == j) delta = 1; else delta = 0; for (int k = 0; k < container.getAtomCount(); k++) { double[] xyz = new double[3]; double mass = 0.0; double r = 0.0; mass = factory.getMajorIsotope( container.getAtomAt(k).getSymbol() ).getMassNumber(); r = cm.distance( container.getAtomAt(k).getPoint3d() ); xyz[0] = container.getAtomAt(k).getPoint3d().x - cm.x; xyz[1] = container.getAtomAt(k).getPoint3d().y - cm.y; xyz[2] = container.getAtomAt(k).getPoint3d().z - cm.z; sum = sum + mass * (r*r*delta - xyz[i]*xyz[j]); } imat[i][j] = sum; } } // diagonalize the MI tensor Matrix tmp = new Matrix(imat); EigenvalueDecomposition ed = tmp.eig(); double[] eval = ed.getRealEigenvalues(); retval.add( eval[0] ); retval.add( eval[1] ); retval.add( eval[2] ); if (Math.abs(eval[1]) > 1e-3) retval.add( eval[0]/eval[1] ); else retval.add( 1000 ); if (Math.abs(eval[2]) > 1e-3) { retval.add( eval[0]/eval[2] ); retval.add( eval[1]/eval[2] ); } else { retval.add( 1000 ); retval.add( 1000 ); } // finally get the radius of gyration double pri = 0.0; MFAnalyser mfa = new MFAnalyser(container); if (Math.abs(eval[2]) > eps) pri = Math.pow( eval[0]*eval[1]*eval[2], 1.0/3.0 ) ; else pri = Math.sqrt( eval[0] * ccf / mfa.getMass() ); retval.add( Math.sqrt(Math.PI * 2 * pri * ccf / mfa.getMass()) ); return retval; }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/0a7f0ac7459a9f9ba3f69e907ae5192937b6f0bd/MomentOfInertiaDescriptor.java/buggy/src/org/openscience/cdk/qsar/MomentOfInertiaDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12823,
1253,
4604,
12,
3641,
2170,
1478,
13,
288,
3639,
2585,
18946,
1733,
3272,
273,
446,
31,
3639,
1645,
312,
21,
273,
374,
31,
3639,
1645,
312,
22,
273,
374,
31,
3639,
775,
288,
5411,
3272,
273,
2585,
18946,
1733,
18,
588,
1442,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
73,
1769,
3639,
289,
3639,
3698,
1076,
1253,
5221,
273,
394,
3698,
1076,
1253,
12,
27,
1769,
3639,
1645,
4946,
74,
273,
404,
18,
13304,
7414,
31,
3639,
1645,
7785,
273,
404,
73,
17,
25,
31,
3639,
1645,
63,
6362,
65,
709,
270,
273,
394,
1645,
63,
23,
6362,
23,
15533,
3639,
4686,
23,
72,
5003,
273,
8344,
10348,
18,
588,
23,
5528,
319,
266,
951,
18060,
12,
3782,
1769,
3639,
368,
1221,
326,
20806,
8171,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
890,
31,
277,
27245,
288,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
890,
31,
525,
27245,
288,
7734,
1645,
2142,
273,
374,
18,
20,
31,
7734,
509,
3622,
31,
7734,
309,
261,
77,
422,
525,
13,
3622,
273,
404,
31,
7734,
469,
3622,
273,
374,
31,
7734,
364,
261,
474,
417,
273,
374,
31,
417,
411,
1478,
18,
588,
3641,
1380,
5621,
417,
27245,
288,
10792,
1645,
8526,
14779,
273,
394,
1645,
63,
23,
15533,
10792,
1645,
8039,
273,
374,
18,
20,
31,
10792,
1645,
436,
273,
374,
18,
20,
31,
10792,
8039,
273,
3272,
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,
12823,
1253,
4604,
12,
3641,
2170,
1478,
13,
288,
3639,
2585,
18946,
1733,
3272,
273,
446,
31,
3639,
1645,
312,
21,
273,
374,
31,
3639,
1645,
312,
22,
273,
374,
31,
3639,
775,
288,
5411,
3272,
273,
2585,
18946,
1733,
18,
588,
1442,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
73,
1769,
3639,
289,
3639,
3698,
1076,
1253,
5221,
273,
394,
3698,
1076,
1253,
12,
27,
1769,
3639,
1645,
4946,
74,
273,
404,
18,
13304,
7414,
31,
3639,
1645,
7785,
273,
404,
73,
17,
25,
31,
3639,
1645,
63,
6362,
65,
709,
270,
273,
394,
1645,
63,
23,
6362,
23,
15533,
3639,
4686,
23,
72,
5003,
273,
8344,
2
] |
|
reportSchemaError(list ? "src-simple-type.3" : "src-simple-type.2", null, content);
|
reportSchemaError(list ? "src-simple-type.3.a" : "src-simple-type.2.a", null, content);
|
private XSSimpleType traverseSimpleTypeDecl(Element simpleTypeDecl, Object[] attrValues, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // get name and final values String name = (String)attrValues[XSAttributeChecker.ATTIDX_NAME]; XInt finalAttr = (XInt)attrValues[XSAttributeChecker.ATTIDX_FINAL]; int finalProperty = finalAttr == null ? schemaDoc.fFinalDefault : finalAttr.intValue(); // annotation?,(list|restriction|union) Element child = DOMUtil.getFirstChildElement(simpleTypeDecl); if (child != null) { // traverse annotation if any if (DOMUtil.getLocalName(child).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child, attrValues, false, schemaDoc); child = DOMUtil.getNextSiblingElement(child); } } // (list|restriction|union) if (child == null) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, "(annotation?, (restriction | list | union))"}, simpleTypeDecl); return errorType(name, schemaDoc.fTargetNamespace, XSConstants.DERIVATION_RESTRICTION); } // derivation type: restriction/list/union String varietyProperty = DOMUtil.getLocalName(child); short refType = XSConstants.DERIVATION_RESTRICTION; boolean restriction = false, list = false, union = false; if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { refType = XSConstants.DERIVATION_RESTRICTION; restriction = true; } else if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { refType = XSConstants.DERIVATION_LIST; list = true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { refType = XSConstants.DERIVATION_UNION; union = true; } else { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, "(annotation?, (restriction | list | union))"}, simpleTypeDecl); return errorType(name, schemaDoc.fTargetNamespace, XSConstants.DERIVATION_RESTRICTION); } // nothing should follow this element Element nextChild = DOMUtil.getNextSiblingElement(child); if (nextChild != null) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, "(annotation?, (restriction | list | union))"}, nextChild); } // General Attribute Checking: get base/item/member types Object[] contentAttrs = fAttrChecker.checkAttributes(child, false, schemaDoc); QName baseTypeName = (QName)contentAttrs[restriction ? XSAttributeChecker.ATTIDX_BASE : XSAttributeChecker.ATTIDX_ITEMTYPE]; Vector memberTypes = (Vector)contentAttrs[XSAttributeChecker.ATTIDX_MEMBERTYPES]; //content = {annotation?,simpleType?...} Element content = DOMUtil.getFirstChildElement(child); //check content (annotation?, ...) if (content != null) { // traverse annotation if any if (DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(content, contentAttrs, false, schemaDoc); content = DOMUtil.getNextSiblingElement(content); } } // get base type from "base" attribute XSSimpleType baseValidator = null; if ((restriction || list) && baseTypeName != null) { baseValidator = findDTValidator(child, name, baseTypeName, refType, schemaDoc); // if its the built-in type, return null from here if (baseValidator == null && fIsBuiltIn) { fIsBuiltIn = false; return null; } } // get types from "memberTypes" attribute Vector dTValidators = null; XSSimpleType dv = null; XSObjectList dvs; if (union && memberTypes != null && memberTypes.size() > 0) { int size = memberTypes.size(); dTValidators = new Vector(size, 2); // for each qname in the list for (int i = 0; i < size; i++) { // get the type decl dv = findDTValidator(child, name, (QName)memberTypes.elementAt(i), XSConstants.DERIVATION_UNION, schemaDoc); if (dv != null) { // if it's a union, expand it if (dv.getVariety() == XSSimpleType.VARIETY_UNION) { dvs = dv.getMemberTypes(); for (int j = 0; j < dvs.getLength(); j++) dTValidators.addElement(dvs.item(j)); } else { dTValidators.addElement(dv); } } } } // when there is an error finding the base type of a restriciton // we use anySimpleType as the base, then we should skip the facets, // because anySimpleType doesn't recognize any facet. boolean skipFacets = false; // check if there is a child "simpleType" if (content != null && DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_SIMPLETYPE)) { if (restriction || list) { // it's an error for both "base" and "simpleType" to appear if (baseTypeName != null) { reportSchemaError(list ? "src-simple-type.3" : "src-simple-type.2", null, content); } else { // traver this child to get the base type baseValidator = traverseLocal(content, schemaDoc, grammar); } // get the next element content = DOMUtil.getNextSiblingElement(content); } else if (union) { if (dTValidators == null) { dTValidators = new Vector(2, 2); } do { // traver this child to get the member type dv = traverseLocal(content, schemaDoc, grammar); if (dv != null) { // if it's a union, expand it if (dv.getVariety() == XSSimpleType.VARIETY_UNION) { dvs = dv.getMemberTypes(); for (int j = 0; j < dvs.getLength(); j++) dTValidators.addElement(dvs.item(j)); } else { dTValidators.addElement(dv); } } // get the next element content = DOMUtil.getNextSiblingElement(content); } while (content != null && DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_SIMPLETYPE)); } } else if ((restriction || list) && baseTypeName == null) { // it's an error if neither "base" nor "simpleType" appears reportSchemaError("src-simple-type.2", null, child); // base can't be found, skip the facets. skipFacets = true; baseValidator = SchemaGrammar.fAnySimpleType; } else if (union && (memberTypes == null || memberTypes.size() == 0)) { // it's an error if "memberTypes" is empty and no "simpleType" appears reportSchemaError("src-union-memberTypes-or-simpleTypes", null, child); dTValidators = new Vector(1); dTValidators.addElement(SchemaGrammar.fAnySimpleType); } // error finding "base" or error traversing "simpleType". // don't need to report an error, since some error has been reported. if ((restriction || list) && baseValidator == null) { baseValidator = SchemaGrammar.fAnySimpleType; } // error finding "memberTypes" or error traversing "simpleType". // don't need to report an error, since some error has been reported. if (union && (dTValidators == null || dTValidators.size() == 0)) { dTValidators = new Vector(1); dTValidators.addElement(SchemaGrammar.fAnySimpleType); } // item type of list types can't have list content if (list && isListDatatype(baseValidator)) { reportSchemaError("cos-list-of-atomic", new Object[]{name}, child); } // create the simple type based on the "base" type XSSimpleType newDecl = null; if (restriction) { newDecl = schemaFactory.createTypeRestriction(name, schemaDoc.fTargetNamespace, (short)finalProperty, baseValidator); } else if (list) { newDecl = schemaFactory.createTypeList(name, schemaDoc.fTargetNamespace, (short)finalProperty, baseValidator); } else if (union) { XSSimpleType[] memberDecls = new XSSimpleType[dTValidators.size()]; for (int i = 0; i < dTValidators.size(); i++) memberDecls[i] = (XSSimpleType)dTValidators.elementAt(i); newDecl = schemaFactory.createTypeUnion(name, schemaDoc.fTargetNamespace, (short)finalProperty, memberDecls); } // now traverse facets, if it's derived by restriction if (restriction && content != null) { FacetInfo fi = traverseFacets(content, baseValidator, schemaDoc); content = fi.nodeAfterFacets; if (!skipFacets) { try { fValidationState.setNamespaceSupport(schemaDoc.fNamespaceSupport); newDecl.applyFacets(fi.facetdata, fi.fPresentFacets, fi.fFixedFacets, fValidationState); } catch (InvalidDatatypeFacetException ex) { reportSchemaError(ex.getKey(), ex.getArgs(), child); } } } // now element should appear after this point if (content != null) { if (restriction) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_RESTRICTION, "(annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | maxLength | enumeration | whiteSpace | pattern)*))"}, content); } else if (list) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_LIST, "(annotation?, (simpleType?))"}, content); } else if (union) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_UNION, "(annotation?, (simpleType*))"}, content); } } fAttrChecker.returnAttrArray(contentAttrs, schemaDoc); // return the new type return newDecl; }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b8632d1162b8572ec5348c474617947ba89f7bff/XSDSimpleTypeTraverser.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDSimpleTypeTraverser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1139,
1260,
2052,
559,
10080,
5784,
559,
3456,
12,
1046,
4143,
559,
3456,
16,
4766,
7734,
1033,
8526,
1604,
1972,
16,
4766,
7734,
1139,
55,
2519,
966,
1963,
1759,
16,
4766,
7734,
4611,
18576,
6473,
13,
288,
3639,
368,
336,
508,
471,
727,
924,
3639,
514,
508,
273,
261,
780,
13,
1747,
1972,
63,
60,
55,
1499,
8847,
18,
789,
56,
25647,
67,
1985,
15533,
3639,
1139,
1702,
727,
3843,
273,
261,
60,
1702,
13,
1747,
1972,
63,
60,
55,
1499,
8847,
18,
789,
56,
25647,
67,
7263,
1013,
15533,
3639,
509,
727,
1396,
273,
727,
3843,
422,
446,
692,
1963,
1759,
18,
74,
7951,
1868,
294,
727,
3843,
18,
474,
620,
5621,
3639,
368,
3204,
35,
16,
12,
1098,
96,
23954,
96,
18910,
13,
3639,
3010,
1151,
273,
4703,
1304,
18,
588,
3759,
1763,
1046,
12,
9647,
559,
3456,
1769,
3639,
309,
261,
3624,
480,
446,
13,
288,
5411,
368,
10080,
3204,
309,
1281,
5411,
309,
261,
8168,
1304,
18,
588,
29583,
12,
3624,
2934,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
24922,
3719,
288,
7734,
10080,
3257,
3456,
12,
3624,
16,
1604,
1972,
16,
629,
16,
1963,
1759,
1769,
7734,
1151,
273,
4703,
1304,
18,
588,
2134,
10291,
1046,
12,
3624,
1769,
5411,
289,
3639,
289,
3639,
368,
261,
1098,
96,
23954,
96,
18910,
13,
3639,
309,
261,
3624,
422,
446,
13,
288,
5411,
2605,
3078,
668,
2932,
87,
24,
87,
17,
20224,
17,
11926,
17,
1916,
3113,
394,
1033,
63,
7073,
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,
1139,
1260,
2052,
559,
10080,
5784,
559,
3456,
12,
1046,
4143,
559,
3456,
16,
4766,
7734,
1033,
8526,
1604,
1972,
16,
4766,
7734,
1139,
55,
2519,
966,
1963,
1759,
16,
4766,
7734,
4611,
18576,
6473,
13,
288,
3639,
368,
336,
508,
471,
727,
924,
3639,
514,
508,
273,
261,
780,
13,
1747,
1972,
63,
60,
55,
1499,
8847,
18,
789,
56,
25647,
67,
1985,
15533,
3639,
1139,
1702,
727,
3843,
273,
261,
60,
1702,
13,
1747,
1972,
63,
60,
55,
1499,
8847,
18,
789,
56,
25647,
67,
7263,
1013,
15533,
3639,
509,
727,
1396,
273,
727,
3843,
422,
446,
692,
1963,
1759,
18,
74,
7951,
1868,
294,
727,
3843,
18,
474,
620,
5621,
3639,
368,
3204,
35,
2
] |
boolean matchName, noMatch; String tagName = null; short matchNodeType;
|
boolean matchOnElement, matchFound; short findNodeType;
|
protected void compareNodeList(NodeList control, NodeList test, int numNodes, DifferenceListener listener) throws DifferenceFoundException { Node nextControl, nextTest = null; int j = 0; int lastTestNode = test.getLength() - 1; boolean matchName, noMatch; String tagName = null; short matchNodeType; testTracker.preloadNodeList(test); for (int i=0; i < numNodes; ++i) { nextControl = control.item(i); if (nextControl instanceof Element) { matchName = true; tagName = nextControl.getNodeName(); } else { matchName = false; } matchNodeType = nextControl.getNodeType(); int startAt = ( i > lastTestNode ? lastTestNode : i); j = startAt; noMatch = true; while (noMatch) { if (matchName && test.item(j) instanceof Element && test.item(j).getNodeName().equals(tagName)) { noMatch = false; } else if (!matchName && matchNodeType == test.item(j).getNodeType()) { noMatch = false; } else { ++j; if (j > lastTestNode) { j = 0; } if (j == startAt) { // been through all children noMatch = false; } } } nextTest = test.item(j); compare(new Integer(i), new Integer(j), nextControl, nextTest, listener, CHILD_NODELIST_SEQUENCE); compareNode(nextControl, nextTest, listener); } }
|
52340 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52340/906437557af2ec7b095a0e2d73ef01fe2ff53ecc/DifferenceEngine.java/clean/src/java/org/custommonkey/xmlunit/DifferenceEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3400,
19914,
12,
19914,
3325,
16,
16781,
1842,
16,
565,
509,
818,
3205,
16,
29474,
2223,
2991,
13,
1216,
29474,
2043,
503,
288,
3639,
2029,
1024,
3367,
16,
1024,
4709,
273,
446,
31,
3639,
509,
525,
273,
374,
31,
3639,
509,
1142,
4709,
907,
273,
1842,
18,
588,
1782,
1435,
300,
404,
31,
3639,
1250,
845,
461,
16,
1158,
2060,
31,
3639,
514,
7196,
273,
446,
31,
3639,
3025,
845,
15101,
31,
3639,
1842,
8135,
18,
1484,
945,
19914,
12,
3813,
1769,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
818,
3205,
31,
965,
77,
13,
288,
5411,
1024,
3367,
273,
3325,
18,
1726,
12,
77,
1769,
5411,
309,
261,
4285,
3367,
1276,
3010,
13,
288,
7734,
845,
461,
273,
638,
31,
7734,
7196,
273,
1024,
3367,
18,
588,
18948,
5621,
5411,
289,
469,
288,
7734,
845,
461,
273,
629,
31,
5411,
289,
5411,
845,
15101,
273,
1024,
3367,
18,
588,
15101,
5621,
5411,
509,
787,
861,
273,
261,
277,
405,
1142,
4709,
907,
692,
1142,
4709,
907,
294,
277,
1769,
5411,
525,
273,
787,
861,
31,
13491,
1158,
2060,
273,
638,
31,
5411,
1323,
261,
2135,
2060,
13,
288,
7734,
309,
261,
1916,
461,
597,
1842,
18,
1726,
12,
78,
13,
1276,
3010,
7734,
597,
1842,
18,
1726,
12,
78,
2934,
588,
18948,
7675,
14963,
12,
2692,
461,
3719,
288,
10792,
1158,
2060,
273,
629,
31,
7734,
289,
469,
309,
16051,
1916,
461,
7734,
597,
845,
15101,
422,
1842,
18,
1726,
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,
3400,
19914,
12,
19914,
3325,
16,
16781,
1842,
16,
565,
509,
818,
3205,
16,
29474,
2223,
2991,
13,
1216,
29474,
2043,
503,
288,
3639,
2029,
1024,
3367,
16,
1024,
4709,
273,
446,
31,
3639,
509,
525,
273,
374,
31,
3639,
509,
1142,
4709,
907,
273,
1842,
18,
588,
1782,
1435,
300,
404,
31,
3639,
1250,
845,
461,
16,
1158,
2060,
31,
3639,
514,
7196,
273,
446,
31,
3639,
3025,
845,
15101,
31,
3639,
1842,
8135,
18,
1484,
945,
19914,
12,
3813,
1769,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
818,
3205,
31,
965,
77,
13,
288,
5411,
1024,
3367,
273,
3325,
18,
1726,
12,
77,
1769,
5411,
309,
261,
4285,
3367,
1276,
3010,
2
] |
firePropertyChange(LIGHTWEIGHT_POPUP_ENABLED_PROPERTY_CHANGED, !isEnabled, isEnabled);
|
firePropertyChange(StringConstants.LIGHTWEIGHT_POPUP_ENABLED_PROPERTY_CHANGED, !isEnabled, isEnabled);
|
public void setLightWeightPopupEnabled(final boolean isEnabled) { if (lightWeightPopupEnabled != isEnabled) { lightWeightPopupEnabled = isEnabled; firePropertyChange(LIGHTWEIGHT_POPUP_ENABLED_PROPERTY_CHANGED, !isEnabled, isEnabled); } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9b00f971bab2256d913aec1b141462a929f6e182/JComboBox.java/clean/modules/swing/src/main/java/common/javax/swing/JComboBox.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
12128,
6544,
13770,
1526,
12,
6385,
1250,
12047,
13,
288,
3639,
309,
261,
5099,
6544,
13770,
1526,
480,
12047,
13,
288,
5411,
9052,
6544,
13770,
1526,
273,
12047,
31,
5411,
4452,
1396,
3043,
12,
780,
2918,
18,
23516,
29988,
67,
30374,
3079,
67,
13560,
67,
9900,
67,
24435,
16,
401,
291,
1526,
16,
12047,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
12128,
6544,
13770,
1526,
12,
6385,
1250,
12047,
13,
288,
3639,
309,
261,
5099,
6544,
13770,
1526,
480,
12047,
13,
288,
5411,
9052,
6544,
13770,
1526,
273,
12047,
31,
5411,
4452,
1396,
3043,
12,
780,
2918,
18,
23516,
29988,
67,
30374,
3079,
67,
13560,
67,
9900,
67,
24435,
16,
401,
291,
1526,
16,
12047,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static RubyNumeric rand(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { double result = ruby.random.nextDouble(); return RubyFloat.newFloat(ruby, result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError("Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(ruby, ruby.random.nextInt((int) ceil)); } else { throw new ArgumentError(ruby, "wrong # of arguments(" + args.length + " for 1)"); } }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
54,
10340,
9902,
7884,
12,
54,
10340,
27768,
16,
54,
10340,
921,
18334,
16,
54,
10340,
921,
1968,
63,
5717,
95,
430,
12,
1968,
18,
2469,
631,
20,
15329,
2896,
440,
11737,
406,
33,
27768,
18,
9188,
18,
4285,
5265,
5621,
2463,
54,
10340,
4723,
18,
2704,
4723,
12,
27768,
16,
2088,
1769,
97,
12107,
430,
12,
1968,
18,
2469,
631,
21,
15329,
54,
10340,
4522,
7745,
39,
73,
330,
28657,
54,
10340,
4522,
13,
1968,
63,
20,
8009,
6283,
31616,
2932,
4522,
15937,
869,
67,
474,
3113,
3767,
1769,
5748,
311,
330,
33,
7745,
39,
73,
330,
18,
588,
3708,
620,
5621,
430,
12,
311,
330,
34,
4522,
18,
6694,
67,
4051,
15329,
12849,
2704,
1248,
8644,
668,
2932,
8529,
2372,
7901,
693,
23483,
4522,
18,
6694,
67,
2669,
57,
664,
352,
4127,
8863,
97,
2463,
54,
10340,
8585,
2107,
18,
2704,
8585,
2107,
12,
27768,
16,
27768,
18,
9188,
18,
4285,
1702,
12443,
474,
13,
311,
330,
10019,
97,
12107,
95,
12849,
2704,
1379,
668,
12,
27768,
10837,
21530,
7,
792,
7099,
2932,
15,
1968,
18,
2469,
9078,
1884,
21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
54,
10340,
27768,
16,
54,
10340,
921,
18334,
16,
54,
10340,
921,
1968,
63,
5717,
95,
430,
12,
1968,
18,
2469,
631,
20,
15329,
2896,
440,
11737,
406,
33,
27768,
18,
9188,
18,
4285,
5265,
5621,
2463,
54,
10340,
4723,
18,
2704,
4723,
12,
27768,
16,
2088,
1769,
97,
12107,
430,
12,
1968,
18,
2469,
631,
21,
15329,
54,
10340,
4522,
7745,
39,
73,
330,
28657,
54,
10340,
4522,
13,
1968,
63,
20,
8009,
6283,
31616,
2932,
4522,
15937,
869,
67,
474,
3113,
3767,
1769,
5748,
311,
330,
33,
7745,
39,
73,
330,
18,
588,
3708,
620,
5621,
430,
12,
311,
330,
34,
4522,
18,
6694,
67,
4051,
15329,
12849,
2704,
1248,
2
] |
||
} finally {
|
} catch (LockException e) { throw new RemoteException(e.getMessage(), e); } finally {
|
public int xupdateResource( String sessionId, String documentName, String xupdate) throws RemoteException { DBBroker broker = null; Session session = getSession(sessionId); try { broker = pool.get(session.getUser()); Document doc = broker.getDocument(documentName); if (doc == null) throw new RemoteException( "document " + documentName + " not found"); DocumentSet docs = new DocumentSet(); docs.add(doc); XUpdateProcessor processor = new XUpdateProcessor(broker, docs); Modification modifications[] = processor.parse(new InputSource(new StringReader(xupdate))); long mods = 0; for (int i = 0; i < modifications.length; i++) { mods += modifications[i].process(); broker.flush(); } return (int) mods; } catch (ParserConfigurationException e) { throw new RemoteException(e.getMessage(), e); } catch (IOException e) { throw new RemoteException(e.getMessage(), e); } catch (EXistException e) { throw new RemoteException(e.getMessage(), e); } catch (SAXException e) { throw new RemoteException(e.getMessage(), e); } catch (PermissionDeniedException e) { throw new RemoteException(e.getMessage(), e); } catch (XPathException e) { throw new RemoteException(e.getMessage(), e); } finally { pool.release(broker); } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/036ccdd3fe4cdde6cf0f24f284e57caec99eaa4a/AdminSoapBindingImpl.java/buggy/src/org/exist/soap/AdminSoapBindingImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
619,
2725,
1420,
12,
202,
202,
780,
10338,
16,
202,
202,
780,
1668,
461,
16,
202,
202,
780,
619,
2725,
13,
202,
202,
15069,
18361,
288,
202,
202,
2290,
11194,
8625,
273,
446,
31,
202,
202,
2157,
1339,
273,
7183,
12,
3184,
548,
1769,
202,
202,
698,
288,
1082,
202,
21722,
273,
2845,
18,
588,
12,
3184,
18,
588,
1299,
10663,
1082,
202,
2519,
997,
273,
8625,
18,
588,
2519,
12,
5457,
461,
1769,
1082,
202,
430,
261,
2434,
422,
446,
13,
9506,
202,
12849,
394,
18361,
12,
6862,
202,
6,
5457,
315,
397,
1668,
461,
397,
315,
486,
1392,
8863,
1082,
202,
2519,
694,
3270,
273,
394,
4319,
694,
5621,
1082,
202,
8532,
18,
1289,
12,
2434,
1769,
1082,
202,
60,
1891,
5164,
6659,
273,
9506,
202,
2704,
1139,
1891,
5164,
12,
21722,
16,
3270,
1769,
1082,
202,
13467,
17953,
8526,
273,
9506,
202,
8700,
18,
2670,
12,
2704,
23699,
12,
2704,
26227,
12,
92,
2725,
3719,
1769,
1082,
202,
5748,
15546,
273,
374,
31,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
17953,
18,
2469,
31,
277,
27245,
288,
9506,
202,
22760,
1011,
17953,
63,
77,
8009,
2567,
5621,
9506,
202,
21722,
18,
11330,
5621,
1082,
202,
97,
1082,
202,
2463,
261,
474,
13,
15546,
31,
202,
202,
97,
1044,
261,
2678,
10737,
425,
13,
288,
1082,
202,
12849,
394,
18361,
12,
73,
18,
24906,
9334,
425,
1769,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
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,
509,
619,
2725,
1420,
12,
202,
202,
780,
10338,
16,
202,
202,
780,
1668,
461,
16,
202,
202,
780,
619,
2725,
13,
202,
202,
15069,
18361,
288,
202,
202,
2290,
11194,
8625,
273,
446,
31,
202,
202,
2157,
1339,
273,
7183,
12,
3184,
548,
1769,
202,
202,
698,
288,
1082,
202,
21722,
273,
2845,
18,
588,
12,
3184,
18,
588,
1299,
10663,
1082,
202,
2519,
997,
273,
8625,
18,
588,
2519,
12,
5457,
461,
1769,
1082,
202,
430,
261,
2434,
422,
446,
13,
9506,
202,
12849,
394,
18361,
12,
6862,
202,
6,
5457,
315,
397,
1668,
461,
397,
315,
486,
1392,
8863,
1082,
202,
2519,
694,
3270,
273,
394,
4319,
694,
5621,
1082,
202,
8532,
18,
2
] |
out.println(" <br>"); out.println(" </td>"); out.println(" </tr>"); out.println(" <tr>"); out.println(" <td> </td>"); out.println(" <td background=\"" + _imageDir + "/bluestripesbottom.gif\"><img src=\"" + _imageDir + "/blank20.gif\" border=\"0\"></td>"); out.println(" </tr>"); out.println("</table>");
|
out.println(" <br>"); out.println(" </td>"); out.println(" </tr>"); out.println(" <tr>"); out.println(" <td> </td>"); out.println(" <td background=\"" + _imageDir + "/bluestripesbottom.gif\"><img src=\"" + _imageDir + "/blank20.gif\" border=\"0\"></td>"); out.println(" </tr>"); out.println("</table>");
|
public void doGet(HttpServletRequest req, HttpServletResponse res) { try { _logFile = req.getQueryString(); if(_logFile == null || _logFile.equals("")) _logFile = getLastBuildLogFilename(); else _logFile += ".xml"; _logFile = _logDir + "\\" + _logFile; PrintWriter out = res.getWriter(); res.setContentType("text/html"); out.println("<html>"); out.println("<head><title>" + _title + "</title></head>"); out.println("<body link=\"#FFFFFF\" vlink=\"#FFFFFF\" background=\"" + _imageDir + "/bluebg.gif\" topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">"); out.println("<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"98%\">"); out.println(" <tr>"); out.println(" <td> </td>"); out.println(" <td background=\"" + _imageDir + "/bluestripestop.gif\"><img src=\"" + _imageDir + "/blank20.gif\" border=\"0\"></td>"); out.println(" </tr>"); out.println(" <tr>"); out.println(" <td width=\"180\" valign=\"top\"><img src=\"" + _imageDir + "/" + _logo + "\" border=\"0\"><br><table border=\"0\" align=\"center\" width=\"98%\"><tr><td>"); out.println("<font face=\"arial\" size=\"2\" color=\"#FFFFFF\">"); // ***** print current build info (when did we start the running build?) ***** printCurrentBuildStatus(out); out.println("<br> <br><b>Previous Builds:</b><br>"); // ***** all logs for navigation ***** printLogsAsLinks(out); out.println(" </td></tr></table></td>"); out.println(" <td valign=\"top\" bgcolor=\"#FFFFFF\" width=\"640\">"); out.println(" <br>"); // ***** transform build xml to html ***** transformBuildLogToHTML(out); out.println(" <br>"); out.println(" </td>"); out.println(" </tr>"); out.println(" <tr>"); out.println(" <td> </td>"); out.println(" <td background=\"" + _imageDir + "/bluestripesbottom.gif\"><img src=\"" + _imageDir + "/blank20.gif\" border=\"0\"></td>"); out.println(" </tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } catch(Exception e) { e.printStackTrace(); } }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/2c86e3f0342c9427eb227ca6a95b4dc4c20cf077/BuildServlet.java/clean/main/src/net/sourceforge/cruisecontrol/BuildServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
23611,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
288,
1377,
775,
288,
540,
389,
1330,
812,
273,
1111,
18,
588,
15276,
5621,
540,
309,
24899,
1330,
812,
422,
446,
747,
389,
1330,
812,
18,
14963,
2932,
6,
3719,
5411,
389,
1330,
812,
273,
7595,
3116,
1343,
5359,
5621,
540,
469,
5411,
389,
1330,
812,
1011,
3552,
2902,
14432,
540,
389,
1330,
812,
273,
389,
1330,
1621,
397,
14520,
397,
389,
1330,
812,
31,
540,
14071,
596,
273,
400,
18,
588,
2289,
5621,
540,
400,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
540,
596,
18,
8222,
2932,
32,
2620,
2984,
1769,
540,
596,
18,
8222,
2932,
32,
1978,
4438,
2649,
2984,
397,
389,
2649,
397,
6823,
2649,
4695,
1978,
2984,
1769,
540,
596,
18,
8222,
2932,
32,
3432,
1692,
5189,
7,
18343,
2412,
331,
1232,
5189,
7,
18343,
2412,
5412,
13186,
397,
389,
2730,
1621,
397,
2206,
14081,
12370,
18,
13905,
2412,
1760,
10107,
5189,
20,
2412,
2002,
10107,
5189,
20,
2412,
7333,
4210,
5189,
20,
2412,
7333,
2819,
5189,
20,
21121,
1769,
540,
596,
18,
8222,
2932,
32,
2121,
5795,
5189,
20,
2412,
5689,
5189,
5693,
2412,
2484,
9598,
5189,
20,
2412,
2484,
14080,
5189,
20,
2412,
1835,
5189,
10689,
9,
21121,
1769,
540,
596,
18,
8222,
2932,
282,
411,
313,
2984,
1769,
540,
596,
18,
8222,
2932,
1377,
411,
4465,
22393,
10600,
27922,
4465,
2984,
1769,
540,
596,
18,
8222,
2932,
1377,
411,
4465,
5412,
13186,
397,
389,
2730,
1621,
397,
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,
565,
1071,
918,
23611,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
288,
1377,
775,
288,
540,
389,
1330,
812,
273,
1111,
18,
588,
15276,
5621,
540,
309,
24899,
1330,
812,
422,
446,
747,
389,
1330,
812,
18,
14963,
2932,
6,
3719,
5411,
389,
1330,
812,
273,
7595,
3116,
1343,
5359,
5621,
540,
469,
5411,
389,
1330,
812,
1011,
3552,
2902,
14432,
540,
389,
1330,
812,
273,
389,
1330,
1621,
397,
14520,
397,
389,
1330,
812,
31,
540,
14071,
596,
273,
400,
18,
588,
2289,
5621,
540,
400,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
540,
596,
18,
8222,
2932,
32,
2620,
2984,
1769,
540,
596,
18,
8222,
2932,
32,
1978,
4438,
2649,
2984,
397,
389,
2649,
397,
2
] |
if(_pos > -1) { setCaretPosition(_pos); }
|
if (_pos > -1) setCaretPosition(_pos);
|
public void redo() { _undo.redo(); if(_pos > -1) { setCaretPosition(_pos); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/03fcb19e2e455531cf9f2f73094d7f9c8d5e6255/DefinitionsPane.java/buggy/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24524,
1435,
288,
1377,
389,
31226,
18,
1118,
83,
5621,
1377,
309,
24899,
917,
405,
300,
21,
13,
288,
3639,
11440,
20731,
2555,
24899,
917,
1769,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24524,
1435,
288,
1377,
389,
31226,
18,
1118,
83,
5621,
1377,
309,
24899,
917,
405,
300,
21,
13,
288,
3639,
11440,
20731,
2555,
24899,
917,
1769,
1377,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
void handleListChange(IObservableList source, ListDiff diff);
|
void handleListChange(ListChangeEvent event);
|
void handleListChange(IObservableList source, ListDiff diff);
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6aecdb31231a8602dbf72944625703c440949c78/IListChangeListener.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/list/IListChangeListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1640,
682,
3043,
12,
4294,
3745,
682,
1084,
16,
987,
5938,
3122,
1769,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6459,
1640,
682,
3043,
12,
4294,
3745,
682,
1084,
16,
987,
5938,
3122,
1769,
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
] |
metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist );
|
querystring = checkEmptyQuery ( querystring ); querystring = workAroundLuceneBug( querystring ); querystring = stripHandles ( querystring );
|
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; }
|
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/8f858d84dc2fcea79f7852722d5a8a3ed610ba7d/DSQuery.java/clean/dspace/src/org/dspace/search/DSQuery.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3852,
4317,
741,
1138,
12,
1042,
276,
16,
514,
20741,
13,
3639,
1216,
1860,
565,
288,
3639,
20741,
273,
866,
1921,
1138,
12,
20741,
11272,
3639,
20741,
273,
1440,
30022,
19763,
19865,
12,
20741,
11272,
3639,
20741,
273,
2569,
8788,
12,
20741,
11272,
27573,
2407,
563,
1098,
33,
394,
2407,
5621,
3639,
2407,
761,
1098,
225,
202,
33,
394,
2407,
5621,
3639,
2407,
532,
781,
376,
225,
202,
33,
394,
2407,
5621,
3639,
2407,
4508,
1098,
225,
202,
33,
394,
2407,
5621,
3639,
4317,
282,
2191,
2816,
225,
202,
33,
394,
4317,
5621,
3639,
368,
2172,
1686,
854,
1008,
3639,
2191,
2816,
18,
458,
12,
4685,
16,
4202,
563,
1098,
1769,
3639,
2191,
2816,
18,
458,
12,
12674,
16,
1377,
761,
1098,
225,
11272,
3639,
2191,
2816,
18,
458,
12,
25964,
16,
12910,
1098,
225,
11272,
3639,
2191,
2816,
18,
458,
12,
4208,
49,
2124,
4107,
16,
532,
781,
376,
225,
11272,
3639,
775,
3639,
288,
5411,
3340,
2979,
264,
27349,
273,
394,
3340,
2979,
264,
12,
7734,
4659,
1318,
18,
588,
1396,
2932,
3072,
18,
1214,
7923,
1769,
5411,
2770,
2678,
22859,
273,
394,
2770,
2678,
2932,
1886,
3113,
394,
8678,
12803,
10663,
5411,
2770,
3399,
2271,
273,
22859,
18,
2670,
12,
2271,
1080,
1769,
5411,
670,
1282,
11076,
273,
27349,
18,
3072,
12,
4811,
2271,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
11076,
18,
2469,
5621,
277,
27245,
5411,
288,
7734,
4319,
302,
273,
11076,
18,
2434,
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,
760,
3852,
4317,
741,
1138,
12,
1042,
276,
16,
514,
20741,
13,
3639,
1216,
1860,
565,
288,
3639,
20741,
273,
866,
1921,
1138,
12,
20741,
11272,
3639,
20741,
273,
1440,
30022,
19763,
19865,
12,
20741,
11272,
3639,
20741,
273,
2569,
8788,
12,
20741,
11272,
27573,
2407,
563,
1098,
33,
394,
2407,
5621,
3639,
2407,
761,
1098,
225,
202,
33,
394,
2407,
5621,
3639,
2407,
532,
781,
376,
225,
202,
33,
394,
2407,
5621,
3639,
2407,
4508,
1098,
225,
202,
33,
394,
2407,
5621,
3639,
4317,
282,
2191,
2816,
225,
202,
33,
394,
4317,
5621,
3639,
368,
2172,
1686,
854,
1008,
3639,
2191,
2816,
18,
458,
12,
4685,
16,
4202,
563,
1098,
1769,
3639,
2191,
2816,
18,
458,
2
] |
List misc1Rows = testDoc.selectNodes(" List misc2Rows = testDoc.selectNodes("
|
misc1Rows = testDoc.selectNodes(" misc2Rows = testDoc.selectNodes("
|
public void testIdentityOverrideOn() throws Exception { if (!getPlatformInfo().isIdentityOverrideAllowed()) { // TODO: for testing these platforms, we need deleteRows return; } final String modelXml = "<?xml version='1.0' encoding='ISO-8859-1'?>\n"+ "<database name='roundtriptest'>\n"+ " <table name='misc1'>\n"+ " <column name='pk' type='INTEGER' primaryKey='true' required='true' autoIncrement='true'/>\n"+ " <column name='avalue' type='INTEGER' required='false'/>\n"+ " </table>\n"+ " <table name='misc2'>\n"+ " <column name='pk' type='INTEGER' primaryKey='true' required='true'/>\n"+ " <column name='fk' type='INTEGER' required='false'/>\n"+ " <foreign-key name='test' foreignTable='misc1'>\n"+ " <reference local='fk' foreign='pk'/>\n"+ " </foreign-key>\n"+ " </table>\n"+ "</database>"; createDatabase(modelXml); getPlatform().setIdentityOverrideOn(true); insertRow("misc1", new Object[] { new Integer(10), new Integer(1) }); insertRow("misc1", new Object[] { new Integer(12), new Integer(2) }); insertRow("misc1", new Object[] { new Integer(13), new Integer(3) }); insertRow("misc2", new Object[] { new Integer(1), new Integer(10) }); insertRow("misc2", new Object[] { new Integer(2), new Integer(13) }); StringWriter stringWriter = new StringWriter(); DatabaseDataIO dataIO = new DatabaseDataIO(); dataIO.writeDataToXML(getPlatform(), stringWriter, "UTF-8"); String dataAsXml = stringWriter.toString(); SAXReader reader = new SAXReader(); Document testDoc = reader.read(new InputSource(new StringReader(dataAsXml))); if (getPlatform().isDelimitedIdentifierModeOn()) { List misc1Rows = testDoc.selectNodes("//misc1"); List misc2Rows = testDoc.selectNodes("//misc2"); assertEquals(3, misc1Rows.size()); assertEquals("10", ((Element)misc1Rows.get(0)).attributeValue("pk")); assertEquals("1", ((Element)misc1Rows.get(0)).attributeValue("avalue")); assertEquals("12", ((Element)misc1Rows.get(1)).attributeValue("pk")); assertEquals("2", ((Element)misc1Rows.get(1)).attributeValue("avalue")); assertEquals("13", ((Element)misc1Rows.get(2)).attributeValue("pk")); assertEquals("3", ((Element)misc1Rows.get(2)).attributeValue("avalue")); assertEquals(2, misc2Rows.size()); assertEquals("1", ((Element)misc2Rows.get(0)).attributeValue("pk")); assertEquals("10", ((Element)misc2Rows.get(0)).attributeValue("fk")); assertEquals("2", ((Element)misc2Rows.get(1)).attributeValue("pk")); assertEquals("13", ((Element)misc2Rows.get(1)).attributeValue("fk")); } else { List misc1Rows = testDoc.selectNodes("//MISC1"); List misc2Rows = testDoc.selectNodes("//MISC2"); assertEquals(3, misc1Rows.size()); assertEquals("10", ((Element)misc1Rows.get(0)).attributeValue("PK")); assertEquals("1", ((Element)misc1Rows.get(0)).attributeValue("AVALUE")); assertEquals("12", ((Element)misc1Rows.get(1)).attributeValue("PK")); assertEquals("2", ((Element)misc1Rows.get(1)).attributeValue("AVALUE")); assertEquals("13", ((Element)misc1Rows.get(2)).attributeValue("PK")); assertEquals("3", ((Element)misc1Rows.get(2)).attributeValue("AVALUE")); assertEquals(2, misc2Rows.size()); assertEquals("1", ((Element)misc2Rows.get(0)).attributeValue("PK")); assertEquals("10", ((Element)misc2Rows.get(0)).attributeValue("FK")); assertEquals("2", ((Element)misc2Rows.get(1)).attributeValue("PK")); assertEquals("13", ((Element)misc2Rows.get(1)).attributeValue("FK")); } dropDatabase(); createDatabase(modelXml); StringReader stringReader = new StringReader(dataAsXml); dataIO.writeDataToDatabase(getPlatform(), new Reader[] { stringReader }); List beans = getRows("misc1"); assertEquals(new Integer(10), beans.get(0), "pk"); assertEquals(new Integer(1), beans.get(0), "avalue"); assertEquals(new Integer(12), beans.get(1), "pk"); assertEquals(new Integer(2), beans.get(1), "avalue"); assertEquals(new Integer(13), beans.get(2), "pk"); assertEquals(new Integer(3), beans.get(2), "avalue"); beans = getRows("misc2"); assertEquals(new Integer(1), beans.get(0), "pk"); assertEquals(new Integer(10), beans.get(0), "fk"); assertEquals(new Integer(2), beans.get(1), "pk"); assertEquals(new Integer(13), beans.get(1), "fk"); }
|
3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/43e4e6491ae42e1ee673c87561f79d87183263e6/TestMisc.java/clean/src/test/org/apache/ddlutils/io/TestMisc.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4334,
6618,
1398,
1435,
1216,
1185,
565,
288,
3639,
309,
16051,
588,
8201,
966,
7675,
291,
4334,
6618,
5042,
10756,
3639,
288,
5411,
368,
2660,
30,
364,
7769,
4259,
17422,
16,
732,
1608,
1430,
4300,
5411,
327,
31,
3639,
289,
3639,
727,
514,
938,
4432,
273,
2398,
20410,
2902,
1177,
2218,
21,
18,
20,
11,
2688,
2218,
12609,
17,
17258,
17,
21,
11,
35,
5333,
82,
6,
15,
5411,
3532,
6231,
508,
2218,
2260,
313,
8138,
395,
11,
5333,
82,
6,
15,
5411,
315,
225,
411,
2121,
508,
2218,
23667,
21,
11,
5333,
82,
6,
15,
5411,
315,
565,
411,
2827,
508,
2218,
5465,
11,
618,
2218,
14217,
11,
8841,
2218,
3767,
11,
1931,
2218,
3767,
11,
3656,
10798,
2218,
3767,
11,
19,
5333,
82,
6,
15,
5411,
315,
565,
411,
2827,
508,
2218,
842,
391,
11,
618,
2218,
14217,
11,
1931,
2218,
5743,
11,
19,
5333,
82,
6,
15,
5411,
315,
225,
7765,
2121,
5333,
82,
6,
15,
5411,
315,
225,
411,
2121,
508,
2218,
23667,
22,
11,
5333,
82,
6,
15,
5411,
315,
565,
411,
2827,
508,
2218,
5465,
11,
618,
2218,
14217,
11,
8841,
2218,
3767,
11,
1931,
2218,
3767,
11,
19,
5333,
82,
6,
15,
5411,
315,
565,
411,
2827,
508,
2218,
23120,
11,
618,
2218,
14217,
11,
1931,
2218,
5743,
11,
19,
5333,
82,
6,
15,
5411,
315,
565,
411,
12774,
17,
856,
508,
2218,
3813,
11,
5523,
1388,
2218,
23667,
21,
11,
5333,
82,
6,
15,
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,
918,
1842,
4334,
6618,
1398,
1435,
1216,
1185,
565,
288,
3639,
309,
16051,
588,
8201,
966,
7675,
291,
4334,
6618,
5042,
10756,
3639,
288,
5411,
368,
2660,
30,
364,
7769,
4259,
17422,
16,
732,
1608,
1430,
4300,
5411,
327,
31,
3639,
289,
3639,
727,
514,
938,
4432,
273,
2398,
20410,
2902,
1177,
2218,
21,
18,
20,
11,
2688,
2218,
12609,
17,
17258,
17,
21,
11,
35,
5333,
82,
6,
15,
5411,
3532,
6231,
508,
2218,
2260,
313,
8138,
395,
11,
5333,
82,
6,
15,
5411,
315,
225,
411,
2121,
508,
2218,
23667,
21,
11,
5333,
82,
6,
15,
5411,
315,
565,
411,
2827,
508,
2218,
5465,
11,
618,
2218,
14217,
11,
8841,
2218,
3767,
11,
1931,
2218,
2
] |
log.error("Must submit 'done' (press 'd') before mcasting new message");
|
System.err.println("Must submit 'done' (press 'd') before mcasting new message");
|
public void mcast(int num) throws IOException { if(!done_submitted) { log.error("Must submit 'done' (press 'd') before mcasting new message"); return; } for(int i=0; i < num; i++) { Util.sleep(100); System.out.println("Casting message #" + i); disp.castMessage(null, i, new Message(null, null, "Number #" + i), coll); } done_submitted=false; }
|
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/13de68466e3cf7fde6ee0bde0cee09a33e837e89/MessageDispatcherTestAsync.java/buggy/tests/other/org/jgroups/tests/MessageDispatcherTestAsync.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
4155,
12,
474,
818,
13,
1216,
1860,
288,
3639,
309,
12,
5,
8734,
67,
31575,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
10136,
4879,
296,
8734,
11,
261,
1028,
296,
72,
6134,
1865,
312,
4155,
310,
394,
883,
8863,
5411,
327,
31,
3639,
289,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
411,
818,
31,
277,
27245,
288,
5411,
3564,
18,
19607,
12,
6625,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
9735,
310,
883,
31526,
397,
277,
1769,
5411,
16232,
18,
4155,
1079,
12,
2011,
16,
10792,
277,
16,
10792,
394,
2350,
12,
2011,
16,
446,
16,
315,
1854,
31526,
397,
277,
3631,
10792,
4508,
1769,
3639,
289,
3639,
2731,
67,
31575,
33,
5743,
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,
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1071,
918,
312,
4155,
12,
474,
818,
13,
1216,
1860,
288,
3639,
309,
12,
5,
8734,
67,
31575,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
10136,
4879,
296,
8734,
11,
261,
1028,
296,
72,
6134,
1865,
312,
4155,
310,
394,
883,
8863,
5411,
327,
31,
3639,
289,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
411,
818,
31,
277,
27245,
288,
5411,
3564,
18,
19607,
12,
6625,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
9735,
310,
883,
31526,
397,
277,
1769,
5411,
16232,
18,
4155,
1079,
12,
2011,
16,
10792,
277,
16,
10792,
394,
2350,
12,
2011,
16,
446,
16,
315,
1854,
31526,
397,
277,
3631,
10792,
4508,
1769,
3639,
289,
3639,
2731,
67,
2
] |
public void serverMessage(boolean reliable, ByteBuffer databuff);
|
public void serverMessage(boolean reliable, UserID userID, ByteBuffer databuff);
|
public void serverMessage(boolean reliable, ByteBuffer databuff);
|
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/96b8c34a552c4fde1dbf307285233759afb44ea3/Router.java/clean/src/com/sun/gi/comm/routing/Router.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1438,
1079,
12,
6494,
31024,
16,
7400,
10481,
3809,
1769,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1438,
1079,
12,
6494,
31024,
16,
7400,
10481,
3809,
1769,
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
] |
handleSelect( (TableTreeItem) e.item );
|
handleSelect( (TreeItem) e.item );
|
public void widgetDefaultSelected( SelectionEvent e ) { handleSelect( (TableTreeItem) e.item ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/97ec512e11440a7aef4cabaf9a1d56dca5de4b0b/ReportPropertySheetPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/views/property/ReportPropertySheetPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
1868,
7416,
12,
12977,
1133,
425,
262,
1082,
202,
95,
9506,
202,
4110,
3391,
12,
261,
1388,
2471,
1180,
13,
425,
18,
1726,
11272,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3604,
1868,
7416,
12,
12977,
1133,
425,
262,
1082,
202,
95,
9506,
202,
4110,
3391,
12,
261,
1388,
2471,
1180,
13,
425,
18,
1726,
11272,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected Iterator getSetSpecs(Object nativeItem)
|
public Iterator getSetSpecs(Object nativeItem)
|
protected Iterator getSetSpecs(Object nativeItem) { HarvestedItemInfo hii = (HarvestedItemInfo) nativeItem; Iterator i = hii.collectionHandles.iterator(); List setSpecs = new LinkedList(); // Convert the DB Handle string 123.456/789 to the OAI-friendly // hdl_123.456/789 while (i.hasNext()) { String handle = "hdl_" + (String) i.next(); setSpecs.add(handle.replace('/', '_')); } return setSpecs.iterator(); }
|
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/9a9b0307b93afcc19694d4cb51db0f653b91a0be/DSpaceRecordFactory.java/clean/dspace/src/org/dspace/app/oai/DSpaceRecordFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
336,
694,
15999,
12,
921,
6448,
1180,
13,
565,
288,
3639,
670,
297,
90,
3149,
1180,
966,
366,
2835,
273,
261,
44,
297,
90,
3149,
1180,
966,
13,
6448,
1180,
31,
3639,
4498,
277,
273,
366,
2835,
18,
5548,
8788,
18,
9838,
5621,
3639,
987,
444,
15999,
273,
394,
10688,
5621,
3639,
368,
4037,
326,
2383,
5004,
533,
17335,
18,
24,
4313,
19,
27,
6675,
358,
326,
531,
18194,
17,
29111,
3639,
368,
366,
5761,
67,
12936,
18,
24,
4313,
19,
27,
6675,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
3639,
288,
5411,
514,
1640,
273,
315,
76,
5761,
9548,
397,
261,
780,
13,
277,
18,
4285,
5621,
5411,
444,
15999,
18,
1289,
12,
4110,
18,
2079,
2668,
19,
2187,
4427,
10019,
3639,
289,
3639,
327,
444,
15999,
18,
9838,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
336,
694,
15999,
12,
921,
6448,
1180,
13,
565,
288,
3639,
670,
297,
90,
3149,
1180,
966,
366,
2835,
273,
261,
44,
297,
90,
3149,
1180,
966,
13,
6448,
1180,
31,
3639,
4498,
277,
273,
366,
2835,
18,
5548,
8788,
18,
9838,
5621,
3639,
987,
444,
15999,
273,
394,
10688,
5621,
3639,
368,
4037,
326,
2383,
5004,
533,
17335,
18,
24,
4313,
19,
27,
6675,
358,
326,
531,
18194,
17,
29111,
3639,
368,
366,
5761,
67,
12936,
18,
24,
4313,
19,
27,
6675,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
3639,
288,
5411,
514,
1640,
273,
315,
76,
5761,
9548,
397,
261,
780,
13,
277,
18,
4285,
5621,
5411,
444,
15999,
18,
1289,
12,
4110,
2
] |
sharedDataRootDir = new File(MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + "SharedDataDir");
|
sharedDataRootDir = new File(MylarPlugin.getDefault().getDataDirectory() + File.separator + "SharedDataDir");
|
protected void setUp() throws Exception { super.setUp(); //Get the original main data directory so that it can be reset later originalMainDataDir = MylarPlugin.getDefault().getMylarDataDirectory(); //Create a task to make sure there is some data in the main directory createAndSaveTask("Task1"); //Create the shared data directory structure sharedDataRootDir = new File(MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + "SharedDataDir"); sharedDataRootDir.mkdir(); assertTrue(sharedDataRootDir.exists()); bobsDataDir = new File(sharedDataRootDir.getPath() + File.separator + "Bob"); bobsDataDir.mkdir(); assertTrue(bobsDataDir.exists()); jillsDataDir = new File(sharedDataRootDir.getPath() + File.separator + "Jill"); jillsDataDir.mkdir(); assertTrue(jillsDataDir.exists()); //Start the shared data dirs off with copies of the main data File mainDataDir = new File(originalMainDataDir); for ( File currFile : mainDataDir.listFiles()) { File destFile = new File(bobsDataDir.getPath() + File.separator + currFile.getName()); copy(currFile, destFile); destFile = new File(jillsDataDir.getPath() + File.separator + currFile.getName()); copy(currFile, destFile); } //Set the shared data dir originalSharedDataDir = MylarPlugin.getDefault().getSharedDataDirectory(); MylarReportsPlugin.getDefault().getPreferenceStore().setValue(MylarReportsPlugin.SHARED_TASK_DATA_ROOT_DIR, sharedDataRootDir.getPath()); MylarPlugin.getDefault().setSharedDataDirectory(sharedDataRootDir.getPath()); assertFalse(MylarPlugin.getDefault().getMylarDataDirectory().equals(sharedDataRootDir.getPath())); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e4d7d68e3083b7aa240fce198b4196a7b47eade8/SharedTaskFolderTest.java/buggy/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/SharedTaskFolderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
9506,
202,
759,
967,
326,
2282,
2774,
501,
1867,
1427,
716,
518,
848,
506,
2715,
5137,
202,
202,
8830,
6376,
751,
1621,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
12062,
7901,
751,
2853,
5621,
9506,
202,
759,
1684,
279,
1562,
358,
1221,
3071,
1915,
353,
2690,
501,
316,
326,
2774,
1867,
202,
202,
2640,
1876,
4755,
2174,
2932,
2174,
21,
8863,
9506,
202,
759,
1684,
326,
5116,
501,
1867,
3695,
202,
202,
11574,
751,
27322,
273,
394,
1387,
12,
12062,
7901,
3773,
18,
588,
1868,
7675,
588,
12062,
7901,
751,
2853,
1435,
397,
1387,
18,
11287,
397,
315,
7887,
751,
1621,
8863,
202,
202,
11574,
751,
27322,
18,
26686,
5621,
202,
202,
11231,
5510,
12,
11574,
751,
27322,
18,
1808,
10663,
6862,
202,
70,
10992,
751,
1621,
273,
394,
1387,
12,
11574,
751,
27322,
18,
588,
743,
1435,
397,
1387,
18,
11287,
397,
315,
38,
947,
8863,
202,
202,
70,
10992,
751,
1621,
18,
26686,
5621,
202,
202,
11231,
5510,
12,
70,
10992,
751,
1621,
18,
1808,
10663,
9506,
202,
78,
737,
87,
751,
1621,
273,
394,
1387,
12,
11574,
751,
27322,
18,
588,
743,
1435,
397,
1387,
18,
11287,
397,
315,
46,
737,
8863,
202,
202,
78,
737,
87,
751,
1621,
18,
26686,
5621,
202,
202,
11231,
5510,
12,
78,
737,
87,
751,
1621,
18,
1808,
10663,
202,
202,
759,
1685,
326,
5116,
501,
7717,
3397,
598,
13200,
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,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
9506,
202,
759,
967,
326,
2282,
2774,
501,
1867,
1427,
716,
518,
848,
506,
2715,
5137,
202,
202,
8830,
6376,
751,
1621,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
12062,
7901,
751,
2853,
5621,
9506,
202,
759,
1684,
279,
1562,
358,
1221,
3071,
1915,
353,
2690,
501,
316,
326,
2774,
1867,
202,
202,
2640,
1876,
4755,
2174,
2932,
2174,
21,
8863,
9506,
202,
759,
1684,
326,
5116,
501,
1867,
3695,
202,
202,
11574,
751,
27322,
273,
394,
1387,
12,
12062,
7901,
3773,
18,
588,
1868,
7675,
588,
12062,
7901,
751,
2853,
1435,
397,
1387,
18,
11287,
397,
315,
7887,
751,
1621,
2
] |
if (filename.indexOf(C_VFS_PATH_OLD_BODIES) != -1 || filename.indexOf(I_CmsWpConstants.C_VFS_PATH_BODIES) != -1) {
|
if (filename.indexOf(C_VFS_PATH_OLD_BODIES) != -1 || filename.indexOf(I_CmsWpConstants.C_VFS_PATH_BODIES) != -1) {
|
private byte[] convertFile(String filename, byte[] byteContent, String type){ byte[] returnValue = byteContent; if (!filename.startsWith("/")) { filename = "/" + filename; } // get content of the file and store it in String String fileContent = new String(byteContent); // check the frametemplates if (filename.indexOf("frametemplates")!=-1) { fileContent = scanFrameTemplate(fileContent); } // set encoding of xml files fileContent = setEncoding(fileContent, OpenCms.getDefaultEncoding()); // translate OpenCms 4.x paths to new directory structure fileContent = setDirectories(fileContent,type); // scan content/bodys if (filename.indexOf(C_VFS_PATH_OLD_BODIES) != -1 || filename.indexOf(I_CmsWpConstants.C_VFS_PATH_BODIES) != -1) { fileContent = convertPageBody(fileContent, filename); } // create output file returnValue = fileContent.getBytes(); return returnValue; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/f18005a4cbd8db6bd62da8693efef61642588e25/CmsImport.java/clean/src/com/opencms/file/CmsImport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1160,
8526,
1765,
812,
12,
780,
1544,
16,
1160,
8526,
1160,
1350,
16,
514,
618,
15329,
377,
202,
7229,
8526,
7750,
273,
1160,
1350,
31,
3639,
309,
16051,
3459,
18,
17514,
1190,
2932,
4898,
3719,
288,
5411,
1544,
273,
4016,
397,
1544,
31,
3639,
289,
4202,
202,
759,
336,
913,
434,
326,
585,
471,
1707,
518,
316,
514,
3639,
514,
19599,
273,
394,
514,
12,
7229,
1350,
1769,
3639,
368,
866,
326,
21799,
278,
351,
3483,
3639,
309,
261,
3459,
18,
31806,
2932,
74,
1940,
278,
351,
3483,
7923,
5,
29711,
21,
13,
288,
6647,
202,
768,
1350,
273,
4135,
3219,
2283,
12,
768,
1350,
1769,
3639,
289,
3639,
368,
444,
2688,
434,
2025,
1390,
3639,
19599,
273,
444,
4705,
12,
768,
1350,
16,
10319,
18,
588,
1868,
4705,
10663,
3639,
368,
4204,
10319,
1059,
18,
92,
2953,
358,
394,
1867,
3695,
540,
19599,
273,
444,
13071,
12,
768,
1350,
16,
723,
1769,
3639,
368,
4135,
913,
19,
3432,
87,
3639,
309,
261,
3459,
18,
31806,
12,
39,
67,
58,
4931,
67,
4211,
67,
11846,
67,
38,
1212,
8805,
13,
480,
300,
21,
747,
1544,
18,
31806,
12,
45,
67,
4747,
59,
84,
2918,
18,
39,
67,
58,
4931,
67,
4211,
67,
38,
1212,
8805,
13,
480,
300,
21,
13,
288,
5411,
19599,
273,
1765,
1964,
2250,
12,
768,
1350,
16,
1544,
1769,
3639,
289,
3639,
368,
752,
876,
585,
202,
565,
7750,
273,
19599,
18,
588,
2160,
5621,
202,
565,
327,
7750,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1160,
8526,
1765,
812,
12,
780,
1544,
16,
1160,
8526,
1160,
1350,
16,
514,
618,
15329,
377,
202,
7229,
8526,
7750,
273,
1160,
1350,
31,
3639,
309,
16051,
3459,
18,
17514,
1190,
2932,
4898,
3719,
288,
5411,
1544,
273,
4016,
397,
1544,
31,
3639,
289,
4202,
202,
759,
336,
913,
434,
326,
585,
471,
1707,
518,
316,
514,
3639,
514,
19599,
273,
394,
514,
12,
7229,
1350,
1769,
3639,
368,
866,
326,
21799,
278,
351,
3483,
3639,
309,
261,
3459,
18,
31806,
2932,
74,
1940,
278,
351,
3483,
7923,
5,
29711,
21,
13,
288,
6647,
202,
768,
1350,
273,
4135,
3219,
2283,
12,
768,
1350,
1769,
3639,
289,
3639,
368,
444,
2688,
434,
2025,
1390,
3639,
2
] |
if( index >= 0 ) { return new ViewerCell(this,index); }
|
public ViewerCell getCell(Point point) { int index = getColumnIndex(point); if( index >= 0 ) { return new ViewerCell(this,index); } return null; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/993eb3b2892341609501c5d74117b5ae4bbf9b50/ViewerRow.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerRow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
264,
4020,
16458,
12,
2148,
1634,
13,
288,
202,
202,
474,
770,
273,
6716,
1016,
12,
1153,
1769,
9506,
202,
430,
12,
770,
1545,
374,
262,
288,
1082,
202,
2463,
394,
4441,
264,
4020,
12,
2211,
16,
1615,
1769,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
264,
4020,
16458,
12,
2148,
1634,
13,
288,
202,
202,
474,
770,
273,
6716,
1016,
12,
1153,
1769,
9506,
202,
430,
12,
770,
1545,
374,
262,
288,
1082,
202,
2463,
394,
4441,
264,
4020,
12,
2211,
16,
1615,
1769,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
assertSaveBeforeProceedingCount(0);
|
assertSaveAllBeforeProceedingCount(0);
|
public void testCompileUnsavedButSaveWhenAsked() throws BadLocationException, IOException { final OpenDefinitionsDocument doc = setupDocument(FOO_TEXT); final File file = tempFile(); CompileShouldSucceedListener listener = new CompileShouldSucceedListener() { public void saveBeforeProceeding(GlobalModelListener.SaveReason reason) { assertEquals(_name() + "save reason", COMPILE_REASON, reason); assertModified(true, doc); assertSaveCount(0); assertCompileStartCount(0); assertCompileEndCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); try { doc.saveFile(new FileSelector(file)); } catch (IOException ioe) { fail("Save produced exception: " + ioe); } saveBeforeProceedingCount++; } public void fileSaved(OpenDefinitionsDocument doc) { assertModified(false, doc); assertSaveBeforeProceedingCount(0); assertCompileStartCount(0); assertCompileEndCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); File f = null; try { f = doc.getFile(); } catch (IllegalStateException ise) { // We know file should exist throw new UnexpectedException(ise); } assertEquals(_name() + "file saved", file, f); saveCount++; } }; _model.addListener(listener); doc.startCompile(); // Check events fired listener.assertSaveBeforeProceedingCount(1); listener.assertSaveCount(1); assertCompileErrorsPresent(_name(), false); listener.checkCompileOccurred(); // Make sure .class exists File compiled = classForJava(file, "Foo"); assertTrue(_name() + "Class file doesn't exist after compile", compiled.exists()); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/963348ced7921c9036c4d0267a79aecf5dc0da09/GlobalModelCompileTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/GlobalModelCompileTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
9937,
984,
14077,
31167,
4755,
9434,
23663,
329,
1435,
565,
1216,
6107,
2735,
503,
16,
1860,
225,
288,
565,
727,
3502,
7130,
2519,
997,
273,
3875,
2519,
12,
3313,
51,
67,
5151,
1769,
565,
727,
1387,
585,
273,
18286,
5621,
565,
16143,
14309,
55,
5286,
5288,
2223,
2991,
273,
394,
16143,
14309,
55,
5286,
5288,
2223,
1435,
288,
1377,
1071,
918,
1923,
4649,
626,
5288,
310,
12,
5160,
1488,
2223,
18,
4755,
8385,
3971,
13,
288,
3639,
1815,
8867,
24899,
529,
1435,
397,
315,
5688,
3971,
3113,
5423,
1102,
900,
67,
29416,
1413,
16,
3971,
1769,
3639,
1815,
4575,
12,
3767,
16,
997,
1769,
3639,
1815,
4755,
1380,
12,
20,
1769,
3639,
1815,
9937,
1685,
1380,
12,
20,
1769,
3639,
1815,
9937,
1638,
1380,
12,
20,
1769,
3639,
1815,
2465,
4905,
7013,
1380,
12,
20,
1769,
3639,
1815,
10215,
7013,
1380,
12,
20,
1769,
3639,
775,
288,
1850,
997,
18,
5688,
812,
12,
2704,
1387,
4320,
12,
768,
10019,
3639,
289,
3639,
1044,
261,
14106,
10847,
13,
288,
1850,
2321,
2932,
4755,
14929,
1520,
30,
315,
397,
10847,
1769,
3639,
289,
3639,
1923,
4649,
626,
5288,
310,
1380,
9904,
31,
1377,
289,
1377,
1071,
918,
585,
16776,
12,
3678,
7130,
2519,
997,
13,
288,
3639,
1815,
4575,
12,
5743,
16,
997,
1769,
3639,
1815,
4755,
1595,
4649,
626,
5288,
310,
1380,
12,
20,
1769,
3639,
1815,
9937,
1685,
1380,
12,
20,
1769,
3639,
1815,
9937,
1638,
1380,
12,
20,
1769,
3639,
1815,
2465,
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,
9937,
984,
14077,
31167,
4755,
9434,
23663,
329,
1435,
565,
1216,
6107,
2735,
503,
16,
1860,
225,
288,
565,
727,
3502,
7130,
2519,
997,
273,
3875,
2519,
12,
3313,
51,
67,
5151,
1769,
565,
727,
1387,
585,
273,
18286,
5621,
565,
16143,
14309,
55,
5286,
5288,
2223,
2991,
273,
394,
16143,
14309,
55,
5286,
5288,
2223,
1435,
288,
1377,
1071,
918,
1923,
4649,
626,
5288,
310,
12,
5160,
1488,
2223,
18,
4755,
8385,
3971,
13,
288,
3639,
1815,
8867,
24899,
529,
1435,
397,
315,
5688,
3971,
3113,
5423,
1102,
900,
67,
29416,
1413,
16,
3971,
1769,
3639,
1815,
4575,
12,
3767,
16,
997,
1769,
3639,
1815,
4755,
1380,
12,
20,
1769,
3639,
1815,
9937,
1685,
2
] |
printDocArg("arg","an ASCII character"); printDocReturn("An ATerm representing the ASCII value of |arg|");
|
printDocArg("ch","an ASCII character"); printDocReturn("An ATerm representing the ASCII value of #arg");
|
private void genStaticByteToChar() { printDocHead("Converts an ASCII char to an ATermInt",""); printDocArg("arg","an ASCII character"); printDocReturn("An ATerm representing the ASCII value of |arg|"); printDocTail(); println("ATerm " + prefix + "byteToChar(char ch) {"); // println("{"); println(" return (ATerm) ATmakeInt(ch);"); println("}"); println(); }
|
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/e7feae01bef1a9952eb7351226f23ef515adcef3/APIGenerator.java/buggy/apigen/src/apigen/gen/c/APIGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
5788,
3216,
774,
2156,
1435,
288,
202,
202,
1188,
1759,
1414,
2932,
5692,
392,
11768,
1149,
358,
392,
432,
4065,
1702,
3113,
3660,
1769,
202,
202,
1188,
1759,
4117,
2932,
3175,
15937,
304,
11768,
3351,
8863,
202,
202,
1188,
1759,
990,
2932,
979,
432,
4065,
5123,
326,
11768,
460,
434,
571,
3175,
96,
8863,
202,
202,
1188,
1759,
12363,
5621,
202,
202,
8222,
2932,
789,
1035,
315,
397,
1633,
397,
315,
7229,
774,
2156,
12,
3001,
462,
13,
288,
8863,
202,
202,
759,
202,
202,
8222,
2932,
95,
8863,
202,
202,
8222,
2932,
565,
327,
261,
789,
1035,
13,
14464,
6540,
1702,
12,
343,
1769,
8863,
202,
202,
8222,
2932,
1532,
1769,
202,
202,
8222,
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,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4117,
2932,
3175,
15937,
304,
11768,
3351,
8863,
202,
202,
1188,
1759,
990,
2932,
979,
432,
4065,
5123,
326,
11768,
460,
434,
571,
3175,
96,
8863,
202,
202,
1188,
1759,
12363,
5621,
202,
202,
8222,
2932,
789,
1035,
315,
397,
1633,
397,
315,
7229,
774,
2156,
12,
3001,
462,
13,
288,
8863,
202,
202,
759,
202,
202,
8222,
2932,
95,
8863,
202,
202,
8222,
2932,
565,
327,
261,
789,
1035,
13,
14464,
6540,
1702,
12,
343,
1769,
8863,
202,
202,
8222,
2932,
1532,
1769,
202,
202,
2
] |
public void maybeUpdate(){ synchronized(this) { try{ if(isFetching || (!isRunning) || (!isUpdatable())) return; }catch (PrivkeyHasBeenBlownException e){ // Handled in blow(). isRunning=false; return; } } alert.set(availableVersion,false); alert.isValid(true); Logger.normal(this,"Starting the update process"); System.err.println("Starting the update process: found the update, now fetching it.");// We fetch it try{ if((cg==null)||cg.isCancelled()){ cg = new ClientGetter(this, node.chkFetchScheduler, node.sskFetchScheduler, URI.setSuggestedEdition(availableVersion), ctx, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, this, new ArrayBucket()); } cg.start(); isFetching = true; queueFetchRevocation(0); }catch (Exception e) { Logger.error(this, "Error while starting the fetching: "+e, e); isFetching=false; } }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/0ce52e9ff1e0048c34e8d11f2ad596bc8936f6e9/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
225,
6944,
1891,
1435,
95,
202,
202,
22043,
12,
2211,
13,
225,
288,
1082,
202,
698,
95,
9506,
202,
430,
12,
291,
30806,
225,
747,
225,
16051,
291,
7051,
13,
225,
747,
225,
16051,
291,
1211,
3404,
429,
1435,
3719,
225,
327,
31,
1082,
202,
97,
14683,
225,
261,
15475,
856,
5582,
25931,
38,
821,
82,
503,
225,
425,
15329,
9506,
202,
759,
225,
2841,
1259,
225,
316,
225,
324,
821,
7675,
9506,
202,
291,
7051,
33,
5743,
31,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
9506,
202,
11798,
18,
542,
12,
5699,
1444,
16,
5743,
1769,
202,
202,
11798,
18,
26810,
12,
3767,
1769,
202,
202,
3328,
18,
6130,
12,
2211,
10837,
11715,
225,
326,
225,
1089,
225,
1207,
8863,
202,
202,
3163,
18,
370,
18,
8222,
2932,
11715,
225,
326,
225,
1089,
225,
1207,
30,
225,
1392,
225,
326,
225,
1089,
16,
225,
2037,
225,
16191,
225,
518,
1199,
1769,
759,
202,
202,
3218,
225,
2158,
225,
518,
202,
202,
698,
95,
1082,
202,
430,
12443,
26275,
631,
2011,
14047,
96,
26275,
18,
291,
21890,
10756,
95,
9506,
202,
26275,
225,
273,
225,
394,
225,
2445,
8461,
12,
2211,
16,
225,
756,
18,
27038,
5005,
11870,
16,
225,
756,
18,
1049,
79,
5005,
11870,
16,
282,
25083,
202,
3098,
18,
542,
55,
28892,
41,
1460,
12,
5699,
1444,
3631,
225,
1103,
16,
225,
1567,
510,
14153,
18,
38,
1506,
47,
67,
17482,
3776,
67,
19804,
67,
5237,
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,
225,
918,
225,
6944,
1891,
1435,
95,
202,
202,
22043,
12,
2211,
13,
225,
288,
1082,
202,
698,
95,
9506,
202,
430,
12,
291,
30806,
225,
747,
225,
16051,
291,
7051,
13,
225,
747,
225,
16051,
291,
1211,
3404,
429,
1435,
3719,
225,
327,
31,
1082,
202,
97,
14683,
225,
261,
15475,
856,
5582,
25931,
38,
821,
82,
503,
225,
425,
15329,
9506,
202,
759,
225,
2841,
1259,
225,
316,
225,
324,
821,
7675,
9506,
202,
291,
7051,
33,
5743,
31,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
9506,
202,
11798,
18,
542,
12,
5699,
1444,
16,
5743,
1769,
202,
202,
11798,
18,
26810,
12,
3767,
1769,
202,
202,
3328,
18,
6130,
12,
2
] |
||
if(fs.get("N2NType") == null) { fs.removeValue("N2NType");
|
if(fs.get("type") != null) { fs.removeValue("type");
|
public void receivedNodeToNodeMessage(Message m) { PeerNode source = (PeerNode)m.getSource(); int type = ((Integer) m.getObject(DMT.NODE_TO_NODE_MESSAGE_TYPE)).intValue(); if(type == Node.N2N_MESSAGE_TYPE_FPROXY_USERALERT) { ShortBuffer messageData = (ShortBuffer) m.getObject(DMT.NODE_TO_NODE_MESSAGE_DATA); Logger.normal(this, "Received N2NM from '"+source.getPeer()); SimpleFieldSet fs = null; try { fs = new SimpleFieldSet(messageData.toString()); } catch (IOException e) { Logger.error(this, "IOException while parsing node to node message data", e); return; } if(fs.get("N2NType") == null) { fs.removeValue("N2NType"); } fs.put("N2NType", Integer.toString(type)); int fileNumber = source.writeNewExtraPeerDataFile( fs, EXTRA_PEER_DATA_TYPE_N2NTM); if( fileNumber == -1 ) { Logger.error( this, "Failed to write N2NTM to extra peer data file for peer "+source.getPeer()); } // Keep track of the fileNumber so we can potentially delete the extra peer data file later, the file is authoritative try { handleNodeToNodeTextMessageSimpleFieldSet(fs, source, fileNumber); } catch (FSParseException e) { // Shouldn't happen throw new Error(e); } } else { Logger.error(this, "Received unknown node to node message type '"+type+"' from "+source.getPeer()); } }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/c7c45a3acb0353b0f2b42261fafcca645ebaed62/Node.java/buggy/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5079,
907,
31403,
1079,
12,
1079,
312,
13,
288,
202,
225,
10669,
907,
1084,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
202,
225,
509,
618,
273,
14015,
4522,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
2399,
13,
2934,
474,
620,
5621,
202,
225,
309,
12,
723,
422,
2029,
18,
50,
22,
50,
67,
8723,
67,
2399,
67,
42,
16085,
67,
4714,
1013,
11539,
13,
288,
202,
202,
4897,
1892,
883,
751,
273,
261,
4897,
1892,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
4883,
1769,
202,
202,
3328,
18,
6130,
12,
2211,
16,
315,
8872,
423,
22,
50,
49,
628,
2119,
15,
3168,
18,
588,
6813,
10663,
202,
202,
5784,
974,
694,
2662,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
2556,
273,
394,
4477,
974,
694,
12,
2150,
751,
18,
10492,
10663,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
14106,
1323,
5811,
756,
358,
756,
883,
501,
3113,
425,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
12,
2556,
18,
588,
2932,
50,
22,
50,
559,
7923,
422,
446,
13,
288,
1082,
202,
2556,
18,
4479,
620,
2932,
50,
22,
50,
559,
8863,
202,
202,
97,
202,
202,
2556,
18,
458,
2932,
50,
22,
50,
559,
3113,
2144,
18,
10492,
12,
723,
10019,
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,
918,
5079,
907,
31403,
1079,
12,
1079,
312,
13,
288,
202,
225,
10669,
907,
1084,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
202,
225,
509,
618,
273,
14015,
4522,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
2399,
13,
2934,
474,
620,
5621,
202,
225,
309,
12,
723,
422,
2029,
18,
50,
22,
50,
67,
8723,
67,
2399,
67,
42,
16085,
67,
4714,
1013,
11539,
13,
288,
202,
202,
4897,
1892,
883,
751,
273,
261,
4897,
1892,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
4883,
1769,
202,
202,
3328,
18,
6130,
12,
2211,
16,
2
] |
__db_close_reply result$ = __DB_db_close_4001(args$); call.reply(result$); break; } case 20: {
|
__db_close_reply result$ = __DB_db_close_4002(args$); call.reply(result$); break; } case 26: {
|
public void dispatchOncRpcCall(OncRpcCallInformation call, int program, int version, int procedure) throws OncRpcException, IOException { if ( version == 4001 ) { switch ( procedure ) { case 1: { __env_cachesize_msg args$ = new __env_cachesize_msg(); call.retrieveCall(args$); __env_cachesize_reply result$ = __DB_env_cachesize_4001(args$); call.reply(result$); break; } case 2: { __env_close_msg args$ = new __env_close_msg(); call.retrieveCall(args$); __env_close_reply result$ = __DB_env_close_4001(args$); call.reply(result$); break; } case 3: { __env_create_msg args$ = new __env_create_msg(); call.retrieveCall(args$); __env_create_reply result$ = __DB_env_create_4001(args$); call.reply(result$); break; } case 4: { __env_dbremove_msg args$ = new __env_dbremove_msg(); call.retrieveCall(args$); __env_dbremove_reply result$ = __DB_env_dbremove_4001(args$); call.reply(result$); break; } case 5: { __env_dbrename_msg args$ = new __env_dbrename_msg(); call.retrieveCall(args$); __env_dbrename_reply result$ = __DB_env_dbrename_4001(args$); call.reply(result$); break; } case 6: { __env_encrypt_msg args$ = new __env_encrypt_msg(); call.retrieveCall(args$); __env_encrypt_reply result$ = __DB_env_encrypt_4001(args$); call.reply(result$); break; } case 7: { __env_flags_msg args$ = new __env_flags_msg(); call.retrieveCall(args$); __env_flags_reply result$ = __DB_env_flags_4001(args$); call.reply(result$); break; } case 8: { __env_open_msg args$ = new __env_open_msg(); call.retrieveCall(args$); __env_open_reply result$ = __DB_env_open_4001(args$); call.reply(result$); break; } case 9: { __env_remove_msg args$ = new __env_remove_msg(); call.retrieveCall(args$); __env_remove_reply result$ = __DB_env_remove_4001(args$); call.reply(result$); break; } case 10: { __txn_abort_msg args$ = new __txn_abort_msg(); call.retrieveCall(args$); __txn_abort_reply result$ = __DB_txn_abort_4001(args$); call.reply(result$); break; } case 11: { __txn_begin_msg args$ = new __txn_begin_msg(); call.retrieveCall(args$); __txn_begin_reply result$ = __DB_txn_begin_4001(args$); call.reply(result$); break; } case 12: { __txn_commit_msg args$ = new __txn_commit_msg(); call.retrieveCall(args$); __txn_commit_reply result$ = __DB_txn_commit_4001(args$); call.reply(result$); break; } case 13: { __txn_discard_msg args$ = new __txn_discard_msg(); call.retrieveCall(args$); __txn_discard_reply result$ = __DB_txn_discard_4001(args$); call.reply(result$); break; } case 14: { __txn_prepare_msg args$ = new __txn_prepare_msg(); call.retrieveCall(args$); __txn_prepare_reply result$ = __DB_txn_prepare_4001(args$); call.reply(result$); break; } case 15: { __txn_recover_msg args$ = new __txn_recover_msg(); call.retrieveCall(args$); __txn_recover_reply result$ = __DB_txn_recover_4001(args$); call.reply(result$); break; } case 16: { __db_associate_msg args$ = new __db_associate_msg(); call.retrieveCall(args$); __db_associate_reply result$ = __DB_db_associate_4001(args$); call.reply(result$); break; } case 17: { __db_bt_maxkey_msg args$ = new __db_bt_maxkey_msg(); call.retrieveCall(args$); __db_bt_maxkey_reply result$ = __DB_db_bt_maxkey_4001(args$); call.reply(result$); break; } case 18: { __db_bt_minkey_msg args$ = new __db_bt_minkey_msg(); call.retrieveCall(args$); __db_bt_minkey_reply result$ = __DB_db_bt_minkey_4001(args$); call.reply(result$); break; } case 19: { __db_close_msg args$ = new __db_close_msg(); call.retrieveCall(args$); __db_close_reply result$ = __DB_db_close_4001(args$); call.reply(result$); break; } case 20: { __db_create_msg args$ = new __db_create_msg(); call.retrieveCall(args$); __db_create_reply result$ = __DB_db_create_4001(args$); call.reply(result$); break; } case 21: { __db_del_msg args$ = new __db_del_msg(); call.retrieveCall(args$); __db_del_reply result$ = __DB_db_del_4001(args$); call.reply(result$); break; } case 22: { __db_encrypt_msg args$ = new __db_encrypt_msg(); call.retrieveCall(args$); __db_encrypt_reply result$ = __DB_db_encrypt_4001(args$); call.reply(result$); break; } case 23: { __db_extentsize_msg args$ = new __db_extentsize_msg(); call.retrieveCall(args$); __db_extentsize_reply result$ = __DB_db_extentsize_4001(args$); call.reply(result$); break; } case 24: { __db_flags_msg args$ = new __db_flags_msg(); call.retrieveCall(args$); __db_flags_reply result$ = __DB_db_flags_4001(args$); call.reply(result$); break; } case 25: { __db_get_msg args$ = new __db_get_msg(); call.retrieveCall(args$); __db_get_reply result$ = __DB_db_get_4001(args$); call.reply(result$); break; } case 26: { __db_h_ffactor_msg args$ = new __db_h_ffactor_msg(); call.retrieveCall(args$); __db_h_ffactor_reply result$ = __DB_db_h_ffactor_4001(args$); call.reply(result$); break; } case 27: { __db_h_nelem_msg args$ = new __db_h_nelem_msg(); call.retrieveCall(args$); __db_h_nelem_reply result$ = __DB_db_h_nelem_4001(args$); call.reply(result$); break; } case 28: { __db_key_range_msg args$ = new __db_key_range_msg(); call.retrieveCall(args$); __db_key_range_reply result$ = __DB_db_key_range_4001(args$); call.reply(result$); break; } case 29: { __db_lorder_msg args$ = new __db_lorder_msg(); call.retrieveCall(args$); __db_lorder_reply result$ = __DB_db_lorder_4001(args$); call.reply(result$); break; } case 30: { __db_open_msg args$ = new __db_open_msg(); call.retrieveCall(args$); __db_open_reply result$ = __DB_db_open_4001(args$); call.reply(result$); break; } case 31: { __db_pagesize_msg args$ = new __db_pagesize_msg(); call.retrieveCall(args$); __db_pagesize_reply result$ = __DB_db_pagesize_4001(args$); call.reply(result$); break; } case 32: { __db_pget_msg args$ = new __db_pget_msg(); call.retrieveCall(args$); __db_pget_reply result$ = __DB_db_pget_4001(args$); call.reply(result$); break; } case 33: { __db_put_msg args$ = new __db_put_msg(); call.retrieveCall(args$); __db_put_reply result$ = __DB_db_put_4001(args$); call.reply(result$); break; } case 34: { __db_re_delim_msg args$ = new __db_re_delim_msg(); call.retrieveCall(args$); __db_re_delim_reply result$ = __DB_db_re_delim_4001(args$); call.reply(result$); break; } case 35: { __db_re_len_msg args$ = new __db_re_len_msg(); call.retrieveCall(args$); __db_re_len_reply result$ = __DB_db_re_len_4001(args$); call.reply(result$); break; } case 36: { __db_re_pad_msg args$ = new __db_re_pad_msg(); call.retrieveCall(args$); __db_re_pad_reply result$ = __DB_db_re_pad_4001(args$); call.reply(result$); break; } case 37: { __db_remove_msg args$ = new __db_remove_msg(); call.retrieveCall(args$); __db_remove_reply result$ = __DB_db_remove_4001(args$); call.reply(result$); break; } case 38: { __db_rename_msg args$ = new __db_rename_msg(); call.retrieveCall(args$); __db_rename_reply result$ = __DB_db_rename_4001(args$); call.reply(result$); break; } case 39: { __db_stat_msg args$ = new __db_stat_msg(); call.retrieveCall(args$); __db_stat_reply result$ = __DB_db_stat_4001(args$); call.reply(result$); break; } case 40: { __db_sync_msg args$ = new __db_sync_msg(); call.retrieveCall(args$); __db_sync_reply result$ = __DB_db_sync_4001(args$); call.reply(result$); break; } case 41: { __db_truncate_msg args$ = new __db_truncate_msg(); call.retrieveCall(args$); __db_truncate_reply result$ = __DB_db_truncate_4001(args$); call.reply(result$); break; } case 42: { __db_cursor_msg args$ = new __db_cursor_msg(); call.retrieveCall(args$); __db_cursor_reply result$ = __DB_db_cursor_4001(args$); call.reply(result$); break; } case 43: { __db_join_msg args$ = new __db_join_msg(); call.retrieveCall(args$); __db_join_reply result$ = __DB_db_join_4001(args$); call.reply(result$); break; } case 44: { __dbc_close_msg args$ = new __dbc_close_msg(); call.retrieveCall(args$); __dbc_close_reply result$ = __DB_dbc_close_4001(args$); call.reply(result$); break; } case 45: { __dbc_count_msg args$ = new __dbc_count_msg(); call.retrieveCall(args$); __dbc_count_reply result$ = __DB_dbc_count_4001(args$); call.reply(result$); break; } case 46: { __dbc_del_msg args$ = new __dbc_del_msg(); call.retrieveCall(args$); __dbc_del_reply result$ = __DB_dbc_del_4001(args$); call.reply(result$); break; } case 47: { __dbc_dup_msg args$ = new __dbc_dup_msg(); call.retrieveCall(args$); __dbc_dup_reply result$ = __DB_dbc_dup_4001(args$); call.reply(result$); break; } case 48: { __dbc_get_msg args$ = new __dbc_get_msg(); call.retrieveCall(args$); __dbc_get_reply result$ = __DB_dbc_get_4001(args$); call.reply(result$); break; } case 49: { __dbc_pget_msg args$ = new __dbc_pget_msg(); call.retrieveCall(args$); __dbc_pget_reply result$ = __DB_dbc_pget_4001(args$); call.reply(result$); break; } case 50: { __dbc_put_msg args$ = new __dbc_put_msg(); call.retrieveCall(args$); __dbc_put_reply result$ = __DB_dbc_put_4001(args$); call.reply(result$); break; } default: call.failProcedureUnavailable(); } } else { call.failProcedureUnavailable(); } }
|
2921 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2921/8960e3895f7af91126465368dff8fbb36ab4e853/DbServerStub.java/buggy/db/rpc_server/java/gen/DbServerStub.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3435,
1398,
71,
11647,
1477,
12,
1398,
71,
11647,
1477,
5369,
745,
16,
509,
5402,
16,
509,
1177,
16,
509,
12131,
13,
6647,
1216,
2755,
71,
11647,
503,
16,
1860,
288,
3639,
309,
261,
1177,
422,
7409,
21,
262,
288,
5411,
1620,
261,
12131,
262,
288,
5411,
648,
404,
30,
288,
7734,
1001,
3074,
67,
17703,
281,
554,
67,
3576,
833,
8,
273,
394,
1001,
3074,
67,
17703,
281,
554,
67,
3576,
5621,
7734,
745,
18,
17466,
1477,
12,
1968,
8,
1769,
7734,
1001,
3074,
67,
17703,
281,
554,
67,
10629,
563,
8,
273,
1001,
2290,
67,
3074,
67,
17703,
281,
554,
67,
24,
11664,
12,
1968,
8,
1769,
7734,
745,
18,
10629,
12,
2088,
8,
1769,
7734,
898,
31,
5411,
289,
5411,
648,
576,
30,
288,
7734,
1001,
3074,
67,
4412,
67,
3576,
833,
8,
273,
394,
1001,
3074,
67,
4412,
67,
3576,
5621,
7734,
745,
18,
17466,
1477,
12,
1968,
8,
1769,
7734,
1001,
3074,
67,
4412,
67,
10629,
563,
8,
273,
1001,
2290,
67,
3074,
67,
4412,
67,
24,
11664,
12,
1968,
8,
1769,
7734,
745,
18,
10629,
12,
2088,
8,
1769,
7734,
898,
31,
5411,
289,
5411,
648,
890,
30,
288,
7734,
1001,
3074,
67,
2640,
67,
3576,
833,
8,
273,
394,
1001,
3074,
67,
2640,
67,
3576,
5621,
7734,
745,
18,
17466,
1477,
12,
1968,
8,
1769,
7734,
1001,
3074,
67,
2640,
67,
10629,
563,
8,
273,
1001,
2290,
67,
3074,
67,
2640,
67,
24,
11664,
12,
1968,
8,
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,
3435,
1398,
71,
11647,
1477,
12,
1398,
71,
11647,
1477,
5369,
745,
16,
509,
5402,
16,
509,
1177,
16,
509,
12131,
13,
6647,
1216,
2755,
71,
11647,
503,
16,
1860,
288,
3639,
309,
261,
1177,
422,
7409,
21,
262,
288,
5411,
1620,
261,
12131,
262,
288,
5411,
648,
404,
30,
288,
7734,
1001,
3074,
67,
17703,
281,
554,
67,
3576,
833,
8,
273,
394,
1001,
3074,
67,
17703,
281,
554,
67,
3576,
5621,
7734,
745,
18,
17466,
1477,
12,
1968,
8,
1769,
7734,
1001,
3074,
67,
17703,
281,
554,
67,
10629,
563,
8,
273,
1001,
2290,
67,
3074,
67,
17703,
281,
554,
67,
24,
11664,
12,
1968,
8,
1769,
7734,
745,
18,
10629,
12,
2088,
8,
2
] |
DteResultSet resultSet = (DteResultSet) getResultSet( );
|
protected IResultSet doExecuteQuery( IBaseQueryDefinition query ) { assert query instanceof IQueryDefinition; IPreparedQuery pQuery = (IPreparedQuery) queryMap.get( query ); if ( pQuery == null ) { return null; } try { String queryID = (String) queryIDMap.get( query ); Scriptable scope = context.getSharedScope( ); DteResultSet resultSet = (DteResultSet) getResultSet( ); String pRsetId = null; // id of the parent query restuls long rowId = -1; // row id of the parent query results IQueryResults dteResults; // the dteResults of this query if ( resultSet == null ) { // this is the root query dteResults = pQuery.execute( scope ); } else { pRsetId = resultSet.getQueryResults( ).getID( ); rowId = resultSet.getCurrentPosition( ); // this is the nest query, execute the query in the // parent results dteResults = pQuery.execute( resultSet.getQueryResults( ), scope ); } resultSet = new DteResultSet( dteResults.getID( ), dteResults.getResultIterator( ), this, context ); rsets.addFirst( resultSet ); // save the storeDteMetaInfo( pRsetId, rowId, queryID, dteResults.getID( ) ); return resultSet; } catch ( BirtException be ) { logger.log( Level.SEVERE, be.getMessage( ) ); context.addException( be ); } return null; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5386013be68d2724b24f8a2bad7013b66e7b2ae/DataGenerationEngine.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DataGenerationEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
13198,
741,
5289,
1138,
12,
467,
2171,
1138,
1852,
843,
262,
202,
95,
202,
202,
11231,
843,
1276,
467,
1138,
1852,
31,
202,
202,
45,
15464,
1138,
293,
1138,
273,
261,
45,
15464,
1138,
13,
843,
863,
18,
588,
12,
843,
11272,
202,
202,
430,
261,
293,
1138,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
843,
734,
273,
261,
780,
13,
843,
734,
863,
18,
588,
12,
843,
11272,
1082,
202,
3651,
429,
2146,
273,
819,
18,
588,
7887,
3876,
12,
11272,
1082,
202,
40,
736,
13198,
12168,
273,
261,
40,
736,
13198,
13,
8601,
694,
12,
11272,
1082,
202,
780,
293,
54,
542,
548,
273,
446,
31,
368,
612,
434,
326,
982,
843,
3127,
332,
87,
1082,
202,
5748,
26798,
273,
300,
21,
31,
368,
1027,
612,
434,
326,
982,
843,
1686,
1082,
202,
45,
1138,
3447,
302,
736,
3447,
31,
368,
326,
302,
736,
3447,
434,
333,
843,
1082,
202,
430,
261,
12168,
422,
446,
262,
1082,
202,
95,
9506,
202,
759,
333,
353,
326,
1365,
843,
9506,
202,
72,
736,
3447,
273,
293,
1138,
18,
8837,
12,
2146,
11272,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
84,
54,
542,
548,
273,
12168,
18,
588,
1138,
3447,
12,
262,
18,
588,
734,
12,
11272,
9506,
202,
492,
548,
273,
12168,
18,
588,
3935,
2555,
12,
11272,
9506,
202,
759,
333,
353,
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,
467,
13198,
741,
5289,
1138,
12,
467,
2171,
1138,
1852,
843,
262,
202,
95,
202,
202,
11231,
843,
1276,
467,
1138,
1852,
31,
202,
202,
45,
15464,
1138,
293,
1138,
273,
261,
45,
15464,
1138,
13,
843,
863,
18,
588,
12,
843,
11272,
202,
202,
430,
261,
293,
1138,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
843,
734,
273,
261,
780,
13,
843,
734,
863,
18,
588,
12,
843,
11272,
1082,
202,
3651,
429,
2146,
273,
819,
18,
588,
7887,
3876,
12,
11272,
1082,
202,
40,
736,
13198,
12168,
273,
261,
40,
736,
13198,
13,
8601,
694,
12,
11272,
1082,
2
] |
|
final PsiBinaryExpression condition = (PsiBinaryExpression) forStatement.getCondition();
|
final PsiBinaryExpression condition = (PsiBinaryExpression) forStatement.getCondition();
|
private String createArrayIterationText(PsiForStatement forStatement, Project project) { final int length = forStatement.getText().length(); final StringBuffer out = new StringBuffer(length); final PsiBinaryExpression condition = (PsiBinaryExpression) forStatement.getCondition(); final PsiExpression lhs = condition.getLOperand(); final String indexName = lhs.getText(); final PsiReferenceExpression arrayLengthExpression = (PsiReferenceExpression) condition.getROperand(); final PsiReferenceExpression arrayReference = (PsiReferenceExpression) arrayLengthExpression.getQualifierExpression(); final PsiArrayType arrayType = (PsiArrayType) arrayReference.getType(); final PsiType componentType = arrayType.getComponentType(); final String type = componentType.getPresentableText(); final String arrayName = arrayReference.getText(); final PsiStatement body = forStatement.getBody(); final PsiStatement firstStatement = getFirstStatement(body); final String contentVariableName; final String finalString; final PsiStatement statementToSkip; final boolean isDeclaration = isArrayElementDeclaration(firstStatement, arrayName, indexName); if (isDeclaration) { final PsiDeclarationStatement decl = (PsiDeclarationStatement) firstStatement; final PsiElement[] declaredElements = decl.getDeclaredElements(); final PsiLocalVariable localVar = (PsiLocalVariable) declaredElements[0]; contentVariableName = localVar.getName(); statementToSkip = decl; if (localVar.hasModifierProperty(PsiModifier.FINAL)) { finalString = "final "; } else { finalString = ""; } } else { contentVariableName = createNewVarName(project, forStatement, componentType); finalString = ""; statementToSkip = null; } out.append("for(" + finalString + type + ' ' + contentVariableName + ": " + arrayName + ')'); replaceArrayAccess(body, contentVariableName, arrayName, indexName, statementToSkip, out); return out.toString(); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
514,
752,
1076,
10795,
1528,
12,
52,
7722,
1290,
3406,
364,
3406,
16,
5420,
1984,
13,
288,
5411,
727,
509,
769,
273,
364,
3406,
18,
588,
1528,
7675,
2469,
5621,
5411,
727,
6674,
596,
273,
394,
6674,
12,
2469,
1769,
5411,
727,
453,
7722,
5905,
2300,
2269,
273,
261,
52,
7722,
5905,
2300,
13,
364,
3406,
18,
588,
3418,
5621,
5411,
727,
453,
7722,
2300,
8499,
273,
2269,
18,
588,
1502,
457,
464,
5621,
5411,
727,
514,
12753,
273,
8499,
18,
588,
1528,
5621,
5411,
727,
453,
7722,
2404,
2300,
526,
1782,
2300,
273,
261,
52,
7722,
2404,
2300,
13,
2269,
18,
588,
1457,
457,
464,
5621,
5411,
727,
453,
7722,
2404,
2300,
526,
2404,
273,
261,
52,
7722,
2404,
2300,
13,
526,
1782,
2300,
18,
588,
16185,
2300,
5621,
5411,
727,
453,
7722,
27182,
526,
559,
273,
261,
52,
7722,
27182,
13,
526,
2404,
18,
588,
559,
5621,
5411,
727,
453,
7722,
559,
20065,
273,
526,
559,
18,
588,
28116,
5621,
5411,
727,
514,
618,
273,
20065,
18,
588,
6351,
429,
1528,
5621,
5411,
727,
514,
526,
461,
273,
526,
2404,
18,
588,
1528,
5621,
5411,
727,
453,
7722,
3406,
1417,
273,
364,
3406,
18,
588,
2250,
5621,
5411,
727,
453,
7722,
3406,
1122,
3406,
273,
7521,
3406,
12,
3432,
1769,
5411,
727,
514,
913,
21519,
31,
5411,
727,
514,
727,
780,
31,
5411,
727,
453,
7722,
3406,
3021,
774,
6368,
31,
5411,
727,
1250,
353,
6094,
273,
5439,
1046,
6094,
12,
3645,
3406,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
514,
752,
1076,
10795,
1528,
12,
52,
7722,
1290,
3406,
364,
3406,
16,
5420,
1984,
13,
288,
5411,
727,
509,
769,
273,
364,
3406,
18,
588,
1528,
7675,
2469,
5621,
5411,
727,
6674,
596,
273,
394,
6674,
12,
2469,
1769,
5411,
727,
453,
7722,
5905,
2300,
2269,
273,
261,
52,
7722,
5905,
2300,
13,
364,
3406,
18,
588,
3418,
5621,
5411,
727,
453,
7722,
2300,
8499,
273,
2269,
18,
588,
1502,
457,
464,
5621,
5411,
727,
514,
12753,
273,
8499,
18,
588,
1528,
5621,
5411,
727,
453,
7722,
2404,
2300,
526,
1782,
2300,
273,
261,
52,
7722,
2404,
2300,
13,
2269,
18,
588,
1457,
457,
464,
5621,
5411,
727,
453,
7722,
2404,
2300,
526,
2404,
273,
261,
2
] |
public void setElemFloat(int bank, int i, float val)
|
public void setElemFloat(int i, float val)
|
public void setElemFloat(int bank, int i, float val) { setElem(bank, i, (int) val); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f344432292580534f5ac8c558c5b0ed0bafeb3cc/DataBuffer.java/buggy/java/awt/image/DataBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
7498,
4723,
12,
474,
277,
16,
1431,
1244,
13,
225,
288,
565,
444,
7498,
12,
10546,
16,
277,
16,
261,
474,
13,
1244,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
7498,
4723,
12,
474,
277,
16,
1431,
1244,
13,
225,
288,
565,
444,
7498,
12,
10546,
16,
277,
16,
261,
474,
13,
1244,
1769,
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
] |
String message = "Zip error unzipping entry: " + entry.getName();
|
final String message = "Zip error unzipping entry: " + entry.getName();
|
private static void saveItem(ZipFile zipFile, String rootDirName, ZipEntry entry) throws ZipException, IOException { InputStream is = null; BufferedInputStream inStream = null; FileOutputStream outStream = null; BufferedOutputStream bufferedOutStream = null; try { File file = new File(rootDirName, entry.getName()); if (entry.isDirectory()) { file.mkdirs(); } else { is = zipFile.getInputStream(entry); inStream = new BufferedInputStream(is); File dir = new File(file.getParent()); dir.mkdirs(); outStream = new FileOutputStream(file); bufferedOutStream = new BufferedOutputStream(outStream); int c; while ((c = inStream.read()) != -1) { bufferedOutStream.write((byte) c); } } } catch (ZipException ze) { String message = "Zip error unzipping entry: " + entry.getName(); LOG.error(message, ze); System.err.println(message + " - " + ze.getMessage()); throw new RuntimeException(message, ze); } catch (IOException ioe) { String message = "I/O error unzipping entry: " + entry.getName(); LOG.error(message, ioe); System.err.println(message + " - " + ioe.getMessage()); throw new RuntimeException(message, ioe); } finally { if (bufferedOutStream != null) { bufferedOutStream.close(); } if (inStream != null) { inStream.close(); } } }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/0e3b303687ee2c38a1baf9187b401c67768adca4/ZipUtil.java/clean/contrib/distributed/src/net/sourceforge/cruisecontrol/distributed/util/ZipUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1923,
1180,
12,
29394,
19450,
16,
514,
15393,
461,
16,
23652,
1241,
13,
1216,
8603,
503,
16,
1860,
288,
3639,
5037,
353,
273,
446,
31,
3639,
24742,
28987,
273,
446,
31,
3639,
12942,
28997,
273,
446,
31,
3639,
28649,
11445,
1182,
1228,
273,
446,
31,
3639,
775,
288,
5411,
1387,
585,
273,
394,
1387,
12,
3085,
28780,
16,
1241,
18,
17994,
10663,
5411,
309,
261,
4099,
18,
291,
2853,
10756,
288,
7734,
585,
18,
24816,
8291,
5621,
5411,
289,
469,
288,
7734,
353,
273,
19450,
18,
588,
4348,
12,
4099,
1769,
7734,
28987,
273,
394,
24742,
12,
291,
1769,
7734,
1387,
1577,
273,
394,
1387,
12,
768,
18,
588,
3054,
10663,
7734,
1577,
18,
24816,
8291,
5621,
7734,
28997,
273,
394,
12942,
12,
768,
1769,
7734,
11445,
1182,
1228,
273,
394,
28649,
12,
659,
1228,
1769,
7734,
509,
276,
31,
7734,
1323,
14015,
71,
273,
28987,
18,
896,
10756,
480,
300,
21,
13,
288,
10792,
11445,
1182,
1228,
18,
2626,
12443,
7229,
13,
276,
1769,
7734,
289,
5411,
289,
3639,
289,
1044,
261,
9141,
503,
26637,
13,
288,
5411,
727,
514,
883,
273,
315,
9141,
555,
20259,
1382,
1241,
30,
315,
397,
1241,
18,
17994,
5621,
5411,
2018,
18,
1636,
12,
2150,
16,
26637,
1769,
5411,
2332,
18,
370,
18,
8222,
12,
2150,
397,
315,
300,
315,
397,
26637,
18,
24906,
10663,
5411,
604,
394,
3235,
12,
2150,
16,
26637,
1769,
3639,
289,
1044,
261,
14106,
10847,
13,
288,
5411,
514,
883,
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,
3238,
760,
918,
1923,
1180,
12,
29394,
19450,
16,
514,
15393,
461,
16,
23652,
1241,
13,
1216,
8603,
503,
16,
1860,
288,
3639,
5037,
353,
273,
446,
31,
3639,
24742,
28987,
273,
446,
31,
3639,
12942,
28997,
273,
446,
31,
3639,
28649,
11445,
1182,
1228,
273,
446,
31,
3639,
775,
288,
5411,
1387,
585,
273,
394,
1387,
12,
3085,
28780,
16,
1241,
18,
17994,
10663,
5411,
309,
261,
4099,
18,
291,
2853,
10756,
288,
7734,
585,
18,
24816,
8291,
5621,
5411,
289,
469,
288,
7734,
353,
273,
19450,
18,
588,
4348,
12,
4099,
1769,
7734,
28987,
273,
394,
24742,
12,
291,
1769,
7734,
1387,
1577,
273,
394,
1387,
12,
768,
18,
588,
3054,
10663,
7734,
1577,
18,
24816,
2
] |
Map permissionMap = getPermissionMapFromSession(iwc,permissionTypeOwner);
|
public void main(IWContext iwc) throws Exception { iwrb = this.getResourceBundle(iwc); parseAction(iwc); if(saveChanges){ AccessController access = iwc.getAccessController(); try { String[] values = iwc.getParameterValues(permissionTypeOwner); Map permissions = getPermissionMapFromSession(iwc,permissionTypeOwner); if(values!=null && values.length>0){ for (int i = 0; i < values.length; i++) {//different from groupPermissionWindow selectedGroupId and vaules[i] are swapped access.setPermission(AccessController.CATEGORY_GROUP_ID,iwc,values[i],selectedGroupId,permissionTypeOwner,Boolean.TRUE); } } Iterator entries = permissions.values().iterator(); while (entries.hasNext()) { ICPermission permission = (ICPermission) entries.next(); permission.setPermissionValue(false); permission.store(); } permissions.clear(); } catch (Exception e) { e.printStackTrace(); } } //get users, define converter to check is user is an owner Collection users = this.getUserBusiness(iwc).getUsersInGroup(Integer.parseInt(selectedGroupId)); EntityBrowser browser = new EntityBrowser(); browser.setEntities("gpow_"+selectedGroupId,users); browser.setDefaultNumberOfRows(users.size()); browser.setAcceptUserSettingsShowUserSettingsButton(false, false); browser.setWidth(browser.HUNDRED_PERCENT); browser.setUseExternalForm(true); // fonts Text columnText = new Text(); columnText.setBold(); browser.setColumnTextProxy(columnText); // set color of rows browser.setColorForEvenRows("#FFFFFF"); browser.setColorForOddRows(IWColor.getHexColorString(246, 246, 247)); int column = 1; String nameKey = "com.idega.user.data.User.FIRST_NAME:" + "com.idega.user.data.User.LAST_NAME:" + "com.idega.user.data.User.MIDDLE_NAME"; //browser.setLeadingEntity("com.idega.core.accesscontrol.data.ICPermission"); //browser.setMandatoryColumn(column,"com.idega.core.accesscontrol.data.ICPermission.GROUP_ID"); // define link converter class EntityToPresentationObjectConverter converterLink = new EntityToPresentationObjectConverter() { private com.idega.core.user.data.User administrator = null; private boolean loggedInUserIsAdmin; public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { User user = (User) entity; if (administrator == null) { try { administrator = iwc.getAccessController().getAdministratorUser(); } catch (Exception ex) { System.err.println("[BasicUserOverview] access controller failed " + ex.getMessage()); ex.printStackTrace(System.err); administrator = null; } loggedInUserIsAdmin = iwc.isSuperAdmin(); } PresentationObject text = browser.getDefaultConverter().getPresentationObject(entity, path, browser, iwc); Link aLink = new Link(text); if (!user.equals(administrator)) { aLink.setWindowToOpen(UserPropertyWindow.class); aLink.addParameter(UserPropertyWindow.PARAMETERSTRING_USER_ID, user.getPrimaryKey().toString()); } else if (loggedInUserIsAdmin) { aLink.setWindowToOpen(AdministratorPropertyWindow.class); aLink.addParameter(AdministratorPropertyWindow.PARAMETERSTRING_USER_ID, user.getPrimaryKey().toString()); } return aLink; } }; browser.setMandatoryColumn(column++,nameKey); browser.setEntityToPresentationConverter(nameKey,converterLink); //converter ends // define checkbox button converter class EntityToPresentationObjectConverter permissionTypeConverter = new EntityToPresentationObjectConverter() { private com.idega.core.user.data.User administrator = null; private boolean loggedInUserIsAdmin; public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object userEntity, EntityPath path,EntityBrowser browser, IWContext iwc) { User user = (User) userEntity; Collection col = getAllPermissionOwnedByUser(user,iwc); Iterator iterator = col.iterator(); boolean isOwner = false; final String ownerType = permissionTypeOwner; String groupId = null; String permissionType = null; while (iterator.hasNext() && !isOwner) { ICPermission perm = (ICPermission) iterator.next(); groupId = perm.getContextValue(); permissionType = perm.getPermissionString(); System.out.println("Context value: "+groupId+" permissionType "+permissionType); isOwner = (ownerType.equals(permissionType)) && groupId.equals(selectedGroupId) && perm.getPermissionValue() ; if( isOwner ){ Map permissionMap = getPermissionMapFromSession(iwc,permissionTypeOwner); permissionMap.put(groupId, perm); } } CheckBox returnObj = new CheckBox(ownerType,user.getPrimaryKey().toString()); returnObj.setChecked(isOwner); return returnObj; } private Collection getAllPermissionOwnedByUser(User user, IWContext iwc){ Collection allPermissions = null; try { allPermissions = AccessControl.getAllGroupPermissionsOwnedByGroup( user.getGroup() ); } catch (Exception e) { e.printStackTrace(); } return allPermissions; } }; browser.setMandatoryColumn(column++,permissionTypeOwner); browser.setEntityToPresentationConverter( permissionTypeOwner, permissionTypeConverter); //converter ends Form form = getGroupPermissionForm(browser); form.add(new HiddenInput(PARAM_SELECTED_GROUP_ID,selectedGroupId)); form.add(new HiddenInput(PARAM_SAVING,"TRUE")); add(form); }
|
52002 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52002/3403e660a3d36f9462d4d473fa471ba94f2ccf74/GroupOwnersWindow.java/clean/src/java/com/idega/user/presentation/GroupOwnersWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2774,
12,
45,
59,
1042,
25522,
71,
13,
1216,
1185,
288,
202,
202,
22315,
6731,
273,
333,
18,
588,
18731,
12,
22315,
71,
1769,
9506,
202,
2670,
1803,
12,
22315,
71,
1769,
25083,
202,
430,
12,
5688,
7173,
15329,
25083,
202,
1862,
2933,
2006,
273,
25522,
71,
18,
588,
1862,
2933,
5621,
1082,
202,
698,
288,
6862,
1082,
202,
780,
8526,
924,
273,
25522,
71,
18,
588,
1662,
1972,
12,
9827,
559,
5541,
1769,
9506,
202,
863,
4371,
273,
24981,
863,
1265,
2157,
12,
22315,
71,
16,
9827,
559,
5541,
1769,
6862,
9506,
202,
430,
12,
2372,
5,
33,
2011,
597,
924,
18,
2469,
34,
20,
15329,
6862,
25083,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
924,
18,
2469,
31,
277,
27245,
288,
759,
30738,
628,
1041,
5041,
3829,
3170,
8722,
471,
14162,
1513,
63,
77,
65,
854,
7720,
1845,
25083,
202,
3860,
18,
542,
5041,
12,
1862,
2933,
18,
24847,
67,
8468,
67,
734,
16,
22315,
71,
16,
2372,
63,
77,
6487,
8109,
8722,
16,
9827,
559,
5541,
16,
5507,
18,
18724,
1769,
6862,
202,
97,
6862,
6862,
202,
97,
6862,
9506,
202,
3198,
3222,
273,
4371,
18,
2372,
7675,
9838,
5621,
9506,
202,
17523,
261,
8219,
18,
5332,
2134,
10756,
288,
6862,
202,
2871,
5041,
4132,
273,
261,
2871,
5041,
13,
3222,
18,
4285,
5621,
6862,
202,
9827,
18,
542,
5041,
620,
12,
5743,
1769,
6862,
202,
9827,
18,
2233,
5621,
9506,
202,
97,
9506,
202,
9612,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2774,
12,
45,
59,
1042,
25522,
71,
13,
1216,
1185,
288,
202,
202,
22315,
6731,
273,
333,
18,
588,
18731,
12,
22315,
71,
1769,
9506,
202,
2670,
1803,
12,
22315,
71,
1769,
25083,
202,
430,
12,
5688,
7173,
15329,
25083,
202,
1862,
2933,
2006,
273,
25522,
71,
18,
588,
1862,
2933,
5621,
1082,
202,
698,
288,
6862,
1082,
202,
780,
8526,
924,
273,
25522,
71,
18,
588,
1662,
1972,
12,
9827,
559,
5541,
1769,
9506,
202,
863,
4371,
273,
24981,
863,
1265,
2157,
12,
22315,
71,
16,
9827,
559,
5541,
1769,
6862,
9506,
202,
430,
12,
2372,
5,
33,
2011,
597,
924,
18,
2469,
34,
20,
15329,
6862,
25083,
202,
1884,
261,
474,
277,
273,
2
] |
|
public static boolean gcInProgressProper () {
|
public static boolean gcInProgressProper() {
|
public static boolean gcInProgressProper () { return gcStatus == GC_PROPER; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
8859,
13434,
626,
457,
1435,
288,
565,
327,
8859,
1482,
422,
15085,
67,
3373,
3194,
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
] |
if (VM.VerifyAssertions) VM._assert(false);
|
if (VM.VerifyAssertions) VM._assert(false);
|
public static VM_TypeReference findCommonSuperclass (VM_TypeReference t1, VM_TypeReference t2) { if (t1 == t2) return t1; if (t1.isPrimitiveType() || t2.isPrimitiveType()) { if (t1.isIntLikeType() && t2.isIntLikeType()) { if (t1.isIntType() || t2.isIntType()) return VM_TypeReference.Int; if (t1.isCharType() || t2.isCharType()) return VM_TypeReference.Char; if (t1.isShortType() || t2.isShortType()) return VM_TypeReference.Short; if (t1.isByteType() || t2.isByteType()) return VM_TypeReference.Byte; } else if (t1.isWordType() && t2.isWordType()) { return VM_TypeReference.Word; } return null; } // can these next two cases happen? if (t1 == VM_TypeReference.NULL_TYPE) return t2; if (t2 == VM_TypeReference.NULL_TYPE) return t1; if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("finding common supertype of " + t1 + " and " + t2); // Strip off all array junk. int arrayDimensions = 0; while (t1.isArrayType() && t2.isArrayType()) { ++arrayDimensions; t1 = t1.getArrayElementType(); t2 = t2.getArrayElementType(); } // at this point, they are not both array types. // if one is a primitive, then we want an object array of one less // dimensionality if (t1.isPrimitiveType() || t2.isPrimitiveType()) { VM_TypeReference type = VM_TypeReference.JavaLangObject; if (t1 == t2) { // Kludge around the fact that we have two names for AddressArray if (t1.isWordType()) { arrayDimensions++; type = t1; } else { if (VM.VerifyAssertions) VM._assert(false); } } --arrayDimensions; while (arrayDimensions-- > 0) type = type.getArrayTypeForElementType(); if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("one is a primitive array, so supertype is " + type); return type; } // neither is a primitive, and they are not both array types. if (!t1.isClassType() || !t2.isClassType()) { // one is a class type, while the other isn't. VM_TypeReference type = VM_TypeReference.JavaLangObject; while (arrayDimensions-- > 0) type = type.getArrayTypeForElementType(); if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("differing dimensionalities for arrays, so supertype is " + type); return type; } // they both must be class types. // technique: push heritage of each type on a separate stack, // then find the highest point in the stack where they differ. VM_Class c1 = (VM_Class)t1.peekResolvedType(); VM_Class c2 = (VM_Class)t2.peekResolvedType(); if (c1 != null && c2 != null) { // The ancestor hierarchy is available, so do this exactly OPT_Stack s1 = new OPT_Stack(); do { s1.push(c1); c1 = c1.getSuperClass(); } while (c1 != null); OPT_Stack s2 = new OPT_Stack(); do { s2.push(c2); c2 = c2.getSuperClass(); } while (c2 != null); if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("stack 1: " + s1); if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("stack 2: " + s2); VM_TypeReference best = VM_TypeReference.JavaLangObject; while (!s1.empty() && !s2.empty()) { VM_Class temp = (VM_Class)s1.pop(); if (temp == s2.pop()) best = temp.getTypeRef(); else break; } if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("common supertype of the two classes is " + best); while (arrayDimensions-- > 0) best = best.getArrayTypeForElementType(); return best; } else { if (OPT_IRGenOptions.DBG_TYPE && c1 == null) VM.sysWrite(c1 + " is not loaded, using Object as common supertype"); if (OPT_IRGenOptions.DBG_TYPE && c2 == null) VM.sysWrite(c2 + " is not loaded, using Object as common supertype"); VM_TypeReference common = VM_TypeReference.JavaLangObject; while (arrayDimensions-- > 0) common = common.getArrayTypeForElementType(); return common; } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/8a0bbdf2bc80121b16a5381e72e5d2ea72d1a6a0/OPT_ClassLoaderProxy.java/clean/rvm/src/vm/compilers/optimizing/vmInterface/classLoader/OPT_ClassLoaderProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
8251,
67,
7534,
1104,
6517,
28471,
261,
7397,
67,
7534,
268,
21,
16,
8251,
67,
7534,
268,
22,
13,
288,
565,
309,
261,
88,
21,
422,
268,
22,
13,
1377,
327,
268,
21,
31,
565,
309,
261,
88,
21,
18,
291,
9840,
559,
1435,
747,
268,
22,
18,
291,
9840,
559,
10756,
288,
1377,
309,
261,
88,
21,
18,
291,
1702,
8804,
559,
1435,
597,
268,
22,
18,
291,
1702,
8804,
559,
10756,
288,
3639,
309,
261,
88,
21,
18,
291,
1702,
559,
1435,
747,
268,
22,
18,
291,
1702,
559,
10756,
1850,
327,
8251,
67,
7534,
18,
1702,
31,
3639,
309,
261,
88,
21,
18,
291,
2156,
559,
1435,
747,
268,
22,
18,
291,
2156,
559,
10756,
1850,
327,
8251,
67,
7534,
18,
2156,
31,
3639,
309,
261,
88,
21,
18,
291,
4897,
559,
1435,
747,
268,
22,
18,
291,
4897,
559,
10756,
1850,
327,
8251,
67,
7534,
18,
4897,
31,
3639,
309,
261,
88,
21,
18,
291,
3216,
559,
1435,
747,
268,
22,
18,
291,
3216,
559,
10756,
1850,
327,
8251,
67,
7534,
18,
3216,
31,
1377,
289,
469,
309,
261,
88,
21,
18,
291,
3944,
559,
1435,
597,
268,
22,
18,
291,
3944,
559,
10756,
288,
3639,
327,
8251,
67,
7534,
18,
3944,
31,
1377,
289,
1377,
327,
446,
31,
565,
289,
565,
368,
848,
4259,
1024,
2795,
6088,
5865,
35,
565,
309,
261,
88,
21,
422,
8251,
67,
7534,
18,
8560,
67,
2399,
13,
1377,
327,
268,
22,
31,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
8251,
67,
7534,
1104,
6517,
28471,
261,
7397,
67,
7534,
268,
21,
16,
8251,
67,
7534,
268,
22,
13,
288,
565,
309,
261,
88,
21,
422,
268,
22,
13,
1377,
327,
268,
21,
31,
565,
309,
261,
88,
21,
18,
291,
9840,
559,
1435,
747,
268,
22,
18,
291,
9840,
559,
10756,
288,
1377,
309,
261,
88,
21,
18,
291,
1702,
8804,
559,
1435,
597,
268,
22,
18,
291,
1702,
8804,
559,
10756,
288,
3639,
309,
261,
88,
21,
18,
291,
1702,
559,
1435,
747,
268,
22,
18,
291,
1702,
559,
10756,
1850,
327,
8251,
67,
7534,
18,
1702,
31,
3639,
309,
261,
88,
21,
18,
291,
2156,
559,
1435,
747,
268,
22,
18,
291,
2156,
2
] |
List lessons = (List) ServiceUtils.executeService( null, "LerAulasDeSalaEmSemestre", argsReadLessons);
|
List lessons; try { lessons = (List) ServiceUtils.executeService( null, "LerAulasDeSalaEmSemestre", argsReadLessons); } catch (FenixServiceException e) { throw new FenixActionException(e); }
|
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DynaActionForm indexForm = (DynaActionForm) form; HttpSession session = request.getSession(); session.removeAttribute(SessionConstants.INFO_SECTION); if (session != null) { List infoRooms = (List) session.getAttribute("publico.infoRooms"); InfoRoom infoRoom = (InfoRoom) infoRooms.get(((Integer) indexForm.get("index")).intValue()); session.removeAttribute("publico.infoRoom"); session.setAttribute("publico.infoRoom", infoRoom); InfoExecutionPeriod infoExecutionPeriod = (InfoExecutionPeriod) this.servlet.getServletContext().getAttribute( SessionConstants.INFO_EXECUTION_PERIOD_KEY); Object argsReadLessons[] = { infoExecutionPeriod, infoRoom }; List lessons = (List) ServiceUtils.executeService( null, "LerAulasDeSalaEmSemestre", argsReadLessons); if (lessons != null) { session.setAttribute(SessionConstants.LESSON_LIST_ATT, lessons); } return mapping.findForward("Sucess"); } else throw new Exception(); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/15c854d77812c45c36846ad617a990cbc575b564/ViewRoomFormAction.java/clean/src/ServidorApresentacao/Action/publico/ViewRoomFormAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
1836,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
202,
15069,
1185,
288,
6862,
9506,
202,
10419,
69,
1803,
1204,
770,
1204,
273,
261,
10419,
69,
1803,
1204,
13,
646,
31,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
3184,
18,
4479,
1499,
12,
2157,
2918,
18,
5923,
67,
19082,
1769,
202,
202,
430,
261,
3184,
480,
446,
13,
288,
1082,
202,
682,
1123,
13646,
87,
273,
261,
682,
13,
1339,
18,
588,
1499,
2932,
482,
83,
18,
1376,
13646,
87,
8863,
1082,
202,
966,
13646,
1123,
13646,
273,
202,
12,
966,
13646,
13,
1123,
13646,
87,
18,
588,
12443,
12,
4522,
13,
770,
1204,
18,
588,
2932,
1615,
7923,
2934,
474,
620,
10663,
1082,
202,
3184,
18,
4479,
1499,
2932,
482,
83,
18,
1376,
13646,
8863,
1082,
202,
3184,
18,
542,
1499,
2932,
482,
83,
18,
1376,
13646,
3113,
1123,
13646,
1769,
1082,
202,
966,
3210,
5027,
1123,
3210,
5027,
273,
9506,
202,
12,
966,
3210,
5027,
13,
333,
18,
23231,
18,
588,
4745,
1042,
7675,
588,
1499,
12,
6862,
202,
2157,
2918,
18,
5923,
67,
15271,
13269,
67,
28437,
67,
3297,
1769,
1082,
202,
921,
833,
1994,
15313,
7008,
8526,
273,
288,
1123,
3210,
5027,
16,
1123,
13646,
289,
31,
1082,
202,
682,
5242,
7008,
273,
9506,
202,
12,
682,
13,
1956,
1989,
18,
8837,
1179,
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,
225,
202,
482,
4382,
8514,
1836,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
202,
15069,
1185,
288,
6862,
9506,
202,
10419,
69,
1803,
1204,
770,
1204,
273,
261,
10419,
69,
1803,
1204,
13,
646,
31,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
3184,
18,
4479,
1499,
12,
2157,
2918,
18,
5923,
67,
19082,
1769,
202,
202,
430,
261,
3184,
480,
446,
13,
288,
1082,
202,
682,
1123,
13646,
87,
273,
261,
682,
13,
1339,
18,
588,
1499,
2932,
482,
83,
18,
1376,
13646,
87,
8863,
1082,
202,
966,
13646,
1123,
13646,
273,
202,
12,
2
] |
+ HTTP_BINDING, null);
|
+ HTTP_BINDING, null);
|
private void generatePostBinding(OMFactory fac, OMElement defintions) throws Exception { OMElement binding = fac.createOMElement(BINDING_LOCAL_NAME, wsdl); defintions.addChild(binding); binding.addAttribute(ATTRIBUTE_NAME, axisService.getName() + HTTP_BINDING, null); binding.addAttribute("type", tns.getPrefix() + ":" + axisService.getName() + PORT_TYPE_SUFFIX, null); // Adding ext elements OMElement httpBinding = fac.createOMElement("binding", http); binding.addChild(httpBinding); httpBinding.addAttribute("verb", "POST", null); for (Iterator operations = axisService.getOperations(); operations.hasNext();) { AxisOperation axisOperation = (AxisOperation) operations.next(); if (axisOperation.isControlOperation() || axisOperation.getName() == null) { continue; } String opeartionName = axisOperation.getName().getLocalPart(); OMElement operation = fac.createOMElement(OPERATION_LOCAL_NAME, wsdl); binding.addChild(operation); OMElement httpOperation = fac.createOMElement("operation", http); operation.addChild(httpOperation); httpOperation.addAttribute("location", axisOperation.getName() .getLocalPart(), null); String MEP = axisOperation.getMessageExchangePattern(); if (WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_ONLY.equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_OPTIONAL_OUT .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_OUT_OPTIONAL_IN .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_ROBUST_OUT_ONLY .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_ROBUST_IN_ONLY .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_OUT .equals(MEP)) { AxisMessage inaxisMessage = axisOperation .getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE); if (inaxisMessage != null) { operation.addAttribute(ATTRIBUTE_NAME, opeartionName, null); OMElement input = fac.createOMElement(IN_PUT_LOCAL_NAME, wsdl); OMElement inputelement = fac.createOMElement("content", mime); input.addChild(inputelement); inputelement.addAttribute("type", "text/xml", null); operation.addChild(input); } } if (WSDLConstants.WSDL20_2004Constants.MEP_URI_OUT_ONLY.equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_OUT_OPTIONAL_IN .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_OPTIONAL_OUT .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_ROBUST_OUT_ONLY .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_OUT .equals(MEP)) { AxisMessage outAxisMessage = axisOperation .getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE); if (outAxisMessage != null) { OMElement output = fac.createOMElement(OUT_PUT_LOCAL_NAME, wsdl); OMElement outElement = fac.createOMElement("content", mime); outElement.addChild(outElement); outElement.addAttribute("type", "text/xml", null); output.addChild(outElement); operation.addChild(output); } } } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6faf728c869b62d91149ee32b541bf550c61ba22/AxisService2OM.java/clean/modules/kernel/src/org/apache/axis2/description/AxisService2OM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
3349,
5250,
12,
1872,
1733,
5853,
16,
531,
12310,
1652,
474,
1115,
13,
5411,
1216,
1185,
288,
3639,
531,
12310,
5085,
273,
5853,
18,
2640,
51,
12310,
12,
2739,
67,
14922,
67,
1985,
16,
17642,
1769,
3639,
1652,
474,
1115,
18,
1289,
1763,
12,
7374,
1769,
3639,
5085,
18,
1289,
1499,
12,
11616,
67,
1985,
16,
2654,
1179,
18,
17994,
1435,
4766,
2398,
397,
2239,
67,
2739,
16,
446,
1769,
3639,
5085,
18,
1289,
1499,
2932,
723,
3113,
268,
2387,
18,
588,
2244,
1435,
397,
6153,
19694,
397,
2654,
1179,
18,
17994,
1435,
397,
20987,
67,
2399,
67,
14964,
16,
446,
1769,
3639,
368,
21240,
1110,
2186,
3639,
531,
12310,
1062,
5250,
273,
5853,
18,
2640,
51,
12310,
2932,
7374,
3113,
1062,
1769,
3639,
5085,
18,
1289,
1763,
12,
2505,
5250,
1769,
3639,
1062,
5250,
18,
1289,
1499,
2932,
16629,
3113,
315,
3798,
3113,
446,
1769,
3639,
364,
261,
3198,
5295,
273,
2654,
1179,
18,
588,
9343,
5621,
5295,
18,
5332,
2134,
5621,
13,
288,
5411,
15509,
2988,
2654,
2988,
273,
261,
6558,
2988,
13,
5295,
18,
4285,
5621,
5411,
309,
261,
4890,
2988,
18,
291,
3367,
2988,
1435,
747,
2654,
2988,
18,
17994,
1435,
422,
446,
13,
288,
7734,
1324,
31,
5411,
289,
5411,
514,
320,
347,
485,
285,
461,
273,
2654,
2988,
18,
17994,
7675,
588,
2042,
1988,
5621,
5411,
531,
12310,
1674,
273,
5853,
18,
2640,
51,
12310,
12,
22040,
67,
14922,
67,
1985,
16,
4766,
8227,
17642,
1769,
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,
3238,
918,
2103,
3349,
5250,
12,
1872,
1733,
5853,
16,
531,
12310,
1652,
474,
1115,
13,
5411,
1216,
1185,
288,
3639,
531,
12310,
5085,
273,
5853,
18,
2640,
51,
12310,
12,
2739,
67,
14922,
67,
1985,
16,
17642,
1769,
3639,
1652,
474,
1115,
18,
1289,
1763,
12,
7374,
1769,
3639,
5085,
18,
1289,
1499,
12,
11616,
67,
1985,
16,
2654,
1179,
18,
17994,
1435,
4766,
2398,
397,
2239,
67,
2739,
16,
446,
1769,
3639,
5085,
18,
1289,
1499,
2932,
723,
3113,
268,
2387,
18,
588,
2244,
1435,
397,
6153,
19694,
397,
2654,
1179,
18,
17994,
1435,
397,
20987,
67,
2399,
67,
14964,
16,
446,
1769,
3639,
368,
21240,
1110,
2186,
3639,
531,
12310,
1062,
5250,
273,
5853,
18,
2
] |
throw new RuntimeException("Not implemented");
|
return Remote.class.isAssignableFrom (representationClass);
|
isRepresentationClassRemote(){ // FIXME: Implement throw new RuntimeException("Not implemented");}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
353,
13742,
797,
5169,
1435,
95,
225,
368,
9852,
30,
10886,
225,
604,
394,
3235,
2932,
1248,
8249,
8863,
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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
3235,
2932,
1248,
8249,
8863,
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
] |
m_out .println("<tr><th>Class</th>"
|
m_out.println("<tr><th>Class</th>"
|
private void startResultSummaryTable(String style) { tableStart(style); m_out .println("<tr><th>Class</th>" + "<th>Method</th><th># of<br/>Scenarios</th><th>Time<br/>(Msecs)</th></tr>"); m_row = 0; }
|
50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/7e6c56df3951862560345666d65c96d7ecb27707/EmailableReporter.java/clean/src/main/org/testng/reporters/EmailableReporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
787,
1253,
4733,
1388,
12,
780,
2154,
13,
288,
565,
1014,
1685,
12,
4060,
1769,
565,
312,
67,
659,
3639,
263,
8222,
2932,
32,
313,
4438,
451,
34,
797,
1757,
451,
2984,
5411,
397,
3532,
451,
34,
1305,
1757,
451,
4438,
451,
34,
7,
434,
32,
2848,
21259,
1541,
18087,
1757,
451,
4438,
451,
34,
950,
32,
2848,
21259,
12,
49,
21317,
13,
1757,
451,
4695,
313,
2984,
1769,
565,
312,
67,
492,
273,
374,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
787,
1253,
4733,
1388,
12,
780,
2154,
13,
288,
565,
1014,
1685,
12,
4060,
1769,
565,
312,
67,
659,
3639,
263,
8222,
2932,
32,
313,
4438,
451,
34,
797,
1757,
451,
2984,
5411,
397,
3532,
451,
34,
1305,
1757,
451,
4438,
451,
34,
7,
434,
32,
2848,
21259,
1541,
18087,
1757,
451,
4438,
451,
34,
950,
32,
2848,
21259,
12,
49,
21317,
13,
1757,
451,
4695,
313,
2984,
1769,
565,
312,
67,
492,
273,
374,
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
] |
this.zone = zone; lenient = true; ResourceBundle rb = ResourceBundle.getBundle(bundleName, locale); firstDayOfWeek = ((Integer) rb.getObject("firstDayOfWeek")).intValue(); minimalDaysInFirstWeek = ((Integer) rb.getObject("minimalDaysInFirstWeek")).intValue();
|
this(TimeZone.getDefault(), Locale.getDefault());
|
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; ResourceBundle rb = ResourceBundle.getBundle(bundleName, locale); firstDayOfWeek = ((Integer) rb.getObject("firstDayOfWeek")).intValue(); minimalDaysInFirstWeek = ((Integer) rb.getObject("minimalDaysInFirstWeek")).intValue(); }
|
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/956ed13ee30b6f0a3e898c51f4e953e28f78df00/Calendar.java/buggy/libjava/java/util/Calendar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
5542,
12,
16760,
4157,
16,
6458,
2573,
13,
225,
288,
565,
333,
18,
3486,
273,
4157,
31,
565,
29444,
273,
638,
31,
565,
19198,
7138,
273,
19198,
18,
588,
3405,
12,
9991,
461,
16,
2573,
1769,
565,
1122,
23944,
273,
14015,
4522,
13,
7138,
18,
588,
921,
2932,
3645,
23944,
7923,
2934,
474,
620,
5621,
565,
16745,
9384,
382,
3759,
6630,
273,
1377,
14015,
4522,
13,
7138,
18,
588,
921,
2932,
1154,
2840,
9384,
382,
3759,
6630,
7923,
2934,
474,
620,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
5542,
12,
16760,
4157,
16,
6458,
2573,
13,
225,
288,
565,
333,
18,
3486,
273,
4157,
31,
565,
29444,
273,
638,
31,
565,
19198,
7138,
273,
19198,
18,
588,
3405,
12,
9991,
461,
16,
2573,
1769,
565,
1122,
23944,
273,
14015,
4522,
13,
7138,
18,
588,
921,
2932,
3645,
23944,
7923,
2934,
474,
620,
5621,
565,
16745,
9384,
382,
3759,
6630,
273,
1377,
14015,
4522,
13,
7138,
18,
588,
921,
2932,
1154,
2840,
9384,
382,
3759,
6630,
7923,
2934,
474,
620,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PropertyPageNode node = new PropertyPageNode(this, element,keywordReferences);
|
PropertyPageNode node = new PropertyPageNode(this, element);
|
public boolean contributePropertyPages(PropertyPageManager mng, IAdaptable element) { PropertyPageNode node = new PropertyPageNode(this, element,keywordReferences); if(getCategory() == null){ mng.addToRoot(node); return true; } if(!mng.addToDeep(getCategory(),node)) mng.addToRoot(node); return true; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ae3e100ae6878a705a77e44dd4224a8c8afb3d99/RegistryPageContributor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/RegistryPageContributor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
356,
887,
1396,
5716,
12,
1396,
1964,
1318,
312,
3368,
16,
5411,
467,
13716,
429,
930,
13,
288,
3639,
4276,
1964,
907,
756,
273,
394,
4276,
1964,
907,
12,
2211,
16,
930,
1769,
7734,
309,
12,
588,
4457,
1435,
422,
446,
15329,
540,
202,
81,
3368,
18,
1289,
774,
2375,
12,
2159,
1769,
540,
202,
2463,
638,
31,
3639,
289,
3639,
309,
12,
5,
81,
3368,
18,
1289,
774,
13980,
12,
588,
4457,
9334,
2159,
3719,
540,
202,
81,
3368,
18,
1289,
774,
2375,
12,
2159,
1769,
5411,
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,
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
3368,
16,
5411,
467,
13716,
429,
930,
13,
288,
3639,
4276,
1964,
907,
756,
273,
394,
4276,
1964,
907,
12,
2211,
16,
930,
1769,
7734,
309,
12,
588,
4457,
1435,
422,
446,
15329,
540,
202,
81,
3368,
18,
1289,
774,
2375,
12,
2159,
1769,
540,
202,
2463,
638,
31,
3639,
289,
3639,
309,
12,
5,
81,
3368,
18,
1289,
774,
13980,
12,
588,
4457,
9334,
2159,
3719,
540,
202,
81,
3368,
18,
1289,
774,
2375,
12,
2159,
1769,
5411,
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
] |
cancelController.doCancel(comm);
|
synchronized (cancelActive) { if (!cancelActive.booleanValue()) { comm.startPacket(TdsComm.CANCEL); comm.sendPacket(); cancelActive = Boolean.TRUE; } }
|
public void cancel() throws java.io.IOException, TdsException { // This is synched by the CancelController and, respectively, TdsComm, // so there is no need to synchronize it here especially since it has // to be asynchronous anyway. ;) cancelController.doCancel(comm); }
|
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/209992e94df47f36845f9a0bbe112b76e9b5c0b5/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3755,
1435,
2398,
1216,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
288,
3639,
368,
1220,
353,
6194,
2049,
635,
326,
10347,
2933,
471,
16,
19629,
16,
399,
2377,
12136,
16,
3639,
368,
1427,
1915,
353,
1158,
1608,
358,
16978,
518,
2674,
29440,
3241,
518,
711,
3639,
368,
358,
506,
9007,
13466,
18,
274,
13,
6647,
3852,
261,
10996,
3896,
13,
288,
309,
16051,
10996,
3896,
18,
6494,
620,
10756,
288,
1543,
18,
1937,
6667,
12,
56,
2377,
12136,
18,
25268,
1769,
1543,
18,
4661,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3755,
1435,
2398,
1216,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
288,
3639,
368,
1220,
353,
6194,
2049,
635,
326,
10347,
2933,
471,
16,
19629,
16,
399,
2377,
12136,
16,
3639,
368,
1427,
1915,
353,
1158,
1608,
358,
16978,
518,
2674,
29440,
3241,
518,
711,
3639,
368,
358,
506,
9007,
13466,
18,
274,
13,
6647,
3852,
261,
10996,
3896,
13,
288,
309,
16051,
10996,
3896,
18,
6494,
620,
10756,
288,
1543,
18,
1937,
6667,
12,
56,
2377,
12136,
18,
25268,
1769,
1543,
18,
4661,
6667,
5621,
3755,
3896,
273,
3411,
18,
18724,
31,
289,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
}
|
public HTTPUploader(Socket s, String file, int index, ActivityCallback callback, int begin, int end) { _state = CONNECTED; _isServer = true; _callback = callback; _fmanager = FileManager.instance(); _host = s.getInetAddress().getHostAddress(); _port = s.getPort(); _index = index; _uploadBegin = begin; _uploadEnd = end; _amountRead = 0; _priorAmountRead = 0; _socket = s; try { _ostream = s.getOutputStream(); } catch (IOException e) { _state = ERROR; } _filename = file; }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/9710cd81149dac2e1a403b9d3cb6dda04808a08a/HTTPUploader.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/HTTPUploader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2239,
28161,
12,
4534,
272,
16,
514,
585,
16,
5411,
509,
770,
16,
9621,
2428,
1348,
16,
5411,
509,
2376,
16,
509,
679,
13,
288,
3639,
389,
2019,
273,
21593,
2056,
31,
3639,
389,
291,
2081,
273,
638,
31,
3639,
389,
3394,
273,
1348,
31,
3639,
389,
74,
4181,
273,
1387,
1318,
18,
1336,
5621,
3639,
389,
2564,
273,
272,
18,
588,
382,
278,
1887,
7675,
588,
2594,
1887,
5621,
3639,
389,
655,
273,
272,
18,
588,
2617,
5621,
3639,
389,
1615,
273,
770,
31,
3639,
389,
6327,
8149,
273,
2376,
31,
3639,
389,
6327,
1638,
273,
679,
31,
3639,
389,
8949,
1994,
273,
374,
31,
3639,
389,
17927,
6275,
1994,
273,
374,
31,
3639,
389,
7814,
273,
272,
31,
3639,
775,
288,
5411,
389,
669,
793,
273,
272,
18,
588,
4632,
5621,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
389,
2019,
273,
5475,
31,
3639,
289,
3639,
389,
3459,
273,
585,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2239,
28161,
12,
4534,
272,
16,
514,
585,
16,
5411,
509,
770,
16,
9621,
2428,
1348,
16,
5411,
509,
2376,
16,
509,
679,
13,
288,
3639,
389,
2019,
273,
21593,
2056,
31,
3639,
389,
291,
2081,
273,
638,
31,
3639,
389,
3394,
273,
1348,
31,
3639,
389,
74,
4181,
273,
1387,
1318,
18,
1336,
5621,
3639,
389,
2564,
273,
272,
18,
588,
382,
278,
1887,
7675,
588,
2594,
1887,
5621,
3639,
389,
655,
273,
272,
18,
588,
2617,
5621,
3639,
389,
1615,
273,
770,
31,
3639,
389,
6327,
8149,
273,
2376,
31,
3639,
389,
6327,
1638,
273,
679,
31,
3639,
389,
8949,
1994,
273,
374,
31,
3639,
389,
17927,
6275,
1994,
273,
374,
31,
3639,
389,
7814,
2
] |
this.dimension = dimension; this.subName = subName;
|
super(dimension, subName);
|
RolapHierarchy(RolapDimension dimension, String subName, boolean hasAll) { this.dimension = dimension; this.subName = subName; this.hasAll = hasAll; this.levels = new RolapLevel[0]; this.name = dimension.getName(); setCaption(dimension.getCaption()); this.uniqueName = dimension.getUniqueName(); if (this.subName != null) { this.name += "." + subName; // e.g. "Time.Weekly" this.uniqueName = Util.makeFqName(name); // e.g. "[Time.Weekly]" } if (hasAll) { Util.discard(newLevel("(All)", RolapLevel.ALL | RolapLevel.UNIQUE)); this.allMemberName = "All " + name + "s"; } }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapHierarchy.java/buggy/src/main/mondrian/rolap/RolapHierarchy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
11714,
438,
12074,
12,
4984,
438,
8611,
4968,
16,
514,
720,
461,
16,
1250,
711,
1595,
13,
565,
288,
3639,
333,
18,
11808,
273,
4968,
31,
3639,
333,
18,
1717,
461,
273,
720,
461,
31,
3639,
333,
18,
5332,
1595,
273,
711,
1595,
31,
3639,
333,
18,
12095,
273,
394,
11714,
438,
2355,
63,
20,
15533,
3639,
333,
18,
529,
273,
4968,
18,
17994,
5621,
3639,
11440,
13507,
12,
11808,
18,
588,
21158,
10663,
3639,
333,
18,
6270,
461,
273,
4968,
18,
588,
6303,
461,
5621,
3639,
309,
261,
2211,
18,
1717,
461,
480,
446,
13,
288,
5411,
333,
18,
529,
1011,
4585,
397,
720,
461,
31,
368,
425,
18,
75,
18,
315,
950,
18,
6630,
715,
6,
5411,
333,
18,
6270,
461,
273,
3564,
18,
6540,
28200,
461,
12,
529,
1769,
368,
425,
18,
75,
18,
5158,
950,
18,
6630,
715,
4279,
3639,
289,
3639,
309,
261,
5332,
1595,
13,
288,
5411,
3564,
18,
31992,
12,
2704,
2355,
2932,
12,
1595,
2225,
16,
10792,
11714,
438,
2355,
18,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8585,
326,
22398,
316,
326,
981,
30,
377,
11714,
438,
12074,
12,
4984,
438,
8611,
4968,
16,
514,
720,
461,
16,
1250,
711,
1595,
13,
565,
288,
3639,
333,
18,
11808,
273,
4968,
31,
3639,
333,
18,
1717,
461,
273,
720,
461,
31,
3639,
333,
18,
5332,
1595,
273,
711,
1595,
31,
3639,
333,
18,
12095,
273,
394,
11714,
438,
2355,
63,
20,
15533,
3639,
333,
18,
529,
273,
4968,
18,
17994,
5621,
3639,
11440,
13507,
12,
11808,
18,
588,
21158,
10663,
3639,
333,
18,
6270,
461,
273,
4968,
18,
588,
6303,
461,
5621,
3639,
309,
261,
2211,
18,
1717,
461,
480,
446,
13,
288,
5411,
333,
18,
529,
1011,
4585,
397,
720,
461,
31,
368,
425,
18,
75,
18,
315,
950,
18,
6630,
715,
6,
2
] |
return RubyBoolean.newBoolean(recv.getRuntime(), obj.isTrue());
|
return recv.getRuntime().newBoolean(obj.isTrue());
|
public static RubyBoolean op_xor(IRubyObject recv, IRubyObject obj) { return RubyBoolean.newBoolean(recv.getRuntime(), obj.isTrue()); }
|
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNil.java/buggy/src/org/jruby/RubyNil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
5507,
1061,
67,
31346,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
1081,
13,
288,
3639,
327,
10665,
18,
588,
5576,
7675,
2704,
5507,
12,
2603,
18,
291,
5510,
10663,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19817,
5507,
1061,
67,
31346,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
1081,
13,
288,
3639,
327,
10665,
18,
588,
5576,
7675,
2704,
5507,
12,
2603,
18,
291,
5510,
10663,
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
] |
filter = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPSwapComplete).setTimeout(TIMEOUT);
|
public void run() { long uid = r.nextLong(); Long luid = new Long(uid); if(!lock()) return; try { startedSwaps++; // We can't lock friends_locations, so lets just // pretend that they're locked long random = r.nextLong(); double myLoc = loc.getValue(); double[] friendLocs = node.peers.getPeerLocationDoubles(); long[] myValueLong = new long[1+1+friendLocs.length]; myValueLong[0] = random; myValueLong[1] = Double.doubleToLongBits(myLoc); for(int i=0;i<friendLocs.length;i++) myValueLong[i+2] = Double.doubleToLongBits(friendLocs[i]); byte[] myValue = Fields.longsToBytes(myValueLong); MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw new Error(e); } byte[] myHash = md.digest(myValue); Message m = DMT.createFNPSwapRequest(uid, myHash, 6); NodePeer pn = node.peers.getRandomPeer(); if(pn == null) { // Nowhere to send return; } // Only 1 ID because we are sending; we won't receive addForwardedItem(uid, uid, null, pn); Logger.minor(this, "Sending SwapRequest "+uid+" to "+pn); MessageFilter filter1 = MessageFilter.create().setType(DMT.FNPSwapRejected).setField(DMT.UID, uid); MessageFilter filter2 = MessageFilter.create().setType(DMT.FNPSwapReply).setField(DMT.UID, uid); MessageFilter filter = filter1.or(filter2); // 60 seconds filter.setTimeout(TIMEOUT); node.usm.send(pn, m); Logger.minor(this, "Waiting for SwapReply/SwapRejected on "+uid); Message reply = node.usm.waitFor(filter); if(reply == null) { // Timed out! Abort... Logger.error(this, "Timed out waiting for SwapRejected/SwapReply on "+uid); return; } if(reply.getSpec() == DMT.FNPSwapRejected) { // Failed. Abort. Logger.minor(this, "Swap rejected on "+uid); return; } // We have an FNPSwapReply, yay // FNPSwapReply is exactly the same format as FNPSwapRequest byte[] hisHash = ((ShortBuffer)reply.getObject(DMT.HASH)).getData(); Message confirm = DMT.createFNPSwapCommit(uid, myValue); node.usm.send(pn, confirm); filter = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPSwapComplete).setTimeout(TIMEOUT); Logger.minor(this, "Waiting for SwapComplete: uid = "+uid); reply = node.usm.waitFor(filter); if(reply == null) { // Hrrrm! Logger.error(this, "Timed out waiting for SwapComplete - malicious node?? on "+uid); return; } byte[] hisBuf = ((ShortBuffer)reply.getObject(DMT.DATA)).getData(); if(hisBuf.length % 8 != 0 || hisBuf.length < 16) { Logger.error(this, "Bad content length in SwapComplete - malicious node? on "+uid); return; } // First does it verify? byte[] rehash = md.digest(hisBuf); if(!java.util.Arrays.equals(rehash, hisHash)) { Logger.error(this, "Bad hash in SwapComplete - malicious node? on "+uid); return; } // Now decode it long[] hisBufLong = Fields.bytesToLongs(hisBuf); long hisRandom = hisBufLong[0]; double hisLoc = Double.longBitsToDouble(hisBufLong[1]); if(hisLoc < 0.0 || hisLoc > 1.0) { Logger.error(this, "Bad loc: "+hisLoc+" on "+uid); return; } double[] hisFriendLocs = new double[hisBufLong.length-2]; for(int i=0;i<hisFriendLocs.length;i++) { hisFriendLocs[i] = Double.longBitsToDouble(hisBufLong[i+2]); if(hisFriendLocs[i] < 0.0 || hisFriendLocs[i] > 1.0) { Logger.error(this, "Bad friend loc: "+hisFriendLocs[i]+" on "+uid); return; } } if(shouldSwap(myLoc, friendLocs, hisLoc, hisFriendLocs, random ^ hisRandom)) { // Swap loc.setValue(hisLoc); Logger.minor(this, "Swapped: "+myLoc+" <-> "+hisLoc+" - "+uid); swaps++; announceLocChange(); } else { Logger.minor(this, "Didn't swap: "+myLoc+" <-> "+hisLoc+" - "+uid); noSwaps++; } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); } finally { unlock(); recentlyForwardedIDs.remove(luid); } }
|
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/d6f2b27b0068d0738bbd2f1afae8c1cc0bef24f4/LocationManager.java/clean/src/freenet/node/LocationManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1525,
4555,
273,
436,
18,
4285,
3708,
5621,
5411,
3407,
328,
1911,
273,
394,
3407,
12,
1911,
1769,
5411,
309,
12,
5,
739,
10756,
327,
31,
5411,
775,
288,
7734,
5746,
6050,
6679,
9904,
31,
7734,
368,
1660,
848,
1404,
2176,
284,
22259,
67,
12352,
16,
1427,
14557,
2537,
7734,
368,
675,
17445,
716,
2898,
4565,
8586,
7734,
1525,
2744,
273,
436,
18,
4285,
3708,
5621,
7734,
1645,
3399,
1333,
273,
1515,
18,
24805,
5621,
7734,
1645,
8526,
24271,
1333,
87,
273,
756,
18,
30502,
18,
588,
6813,
2735,
3244,
19314,
5621,
7734,
1525,
8526,
3399,
620,
3708,
273,
394,
1525,
63,
21,
15,
21,
15,
74,
7522,
1333,
87,
18,
2469,
15533,
7734,
3399,
620,
3708,
63,
20,
65,
273,
2744,
31,
7734,
3399,
620,
3708,
63,
21,
65,
273,
3698,
18,
9056,
30220,
6495,
12,
4811,
1333,
1769,
7734,
364,
12,
474,
277,
33,
20,
31,
77,
32,
74,
7522,
1333,
87,
18,
2469,
31,
77,
27245,
10792,
3399,
620,
3708,
63,
77,
15,
22,
65,
273,
3698,
18,
9056,
30220,
6495,
12,
74,
7522,
1333,
87,
63,
77,
19226,
7734,
1160,
8526,
3399,
620,
273,
7190,
18,
80,
7260,
21033,
12,
4811,
620,
3708,
1769,
27573,
22485,
3481,
31,
7734,
775,
288,
10792,
3481,
273,
22485,
18,
588,
1442,
2932,
8325,
17,
5034,
8863,
7734,
289,
1044,
261,
28341,
17293,
425,
13,
288,
10792,
604,
394,
1068,
12,
73,
1769,
7734,
289,
27573,
1160,
8526,
3399,
2310,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1525,
4555,
273,
436,
18,
4285,
3708,
5621,
5411,
3407,
328,
1911,
273,
394,
3407,
12,
1911,
1769,
5411,
309,
12,
5,
739,
10756,
327,
31,
5411,
775,
288,
7734,
5746,
6050,
6679,
9904,
31,
7734,
368,
1660,
848,
1404,
2176,
284,
22259,
67,
12352,
16,
1427,
14557,
2537,
7734,
368,
675,
17445,
716,
2898,
4565,
8586,
7734,
1525,
2744,
273,
436,
18,
4285,
3708,
5621,
7734,
1645,
3399,
1333,
273,
1515,
18,
24805,
5621,
7734,
1645,
8526,
24271,
1333,
87,
273,
756,
18,
30502,
18,
588,
6813,
2735,
3244,
19314,
5621,
7734,
1525,
8526,
3399,
620,
3708,
273,
394,
1525,
63,
21,
15,
21,
15,
74,
7522,
1333,
87,
18,
2469,
2
] |
|
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.IDENTITYDB_CMD, true); result.setHeader(Messages.getString("IdentityDBCmd.7")); //$NON-NLS-1$ result.setFooter(Messages.getString("IdentityDBCmd.8")); //$NON-NLS-1$ OptionGroup options = new OptionGroup(Messages.getString("IdentityDBCmd.9")); //$NON-NLS-1$ options.add(new Option(Main.FILE_OPT, Messages.getString("IdentityDBCmd.10"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.11")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _idbFileName = argument; } }); options.add(new Option(Main.STORETYPE_OPT, Messages.getString("IdentityDBCmd.12"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.13")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _ksType = argument; } }); options.add(new Option(Main.KEYSTORE_OPT, Messages.getString("IdentityDBCmd.14"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.15")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _ksURL = argument; } }); options.add(new Option(Main.STOREPASS_OPT, Messages.getString("IdentityDBCmd.16"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.17")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _ksPassword = argument; } }); options.add(new Option(Main.PROVIDER_OPT, Messages.getString("IdentityDBCmd.18"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.19")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _providerClassName = argument; } }); options.add(new Option(Main.VERBOSE_OPT, Messages.getString("IdentityDBCmd.20")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { verbose = true; } }); result.add(options); log.exiting(this.getClass().getName(), "getParser", result); //$NON-NLS-1$ return result; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/6e10879cd4d1df8b463898498b99e01d9ae63f24/IdentityDBCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/IdentityDBCmd.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6783,
588,
2678,
1435,
95,
1330,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
6,
588,
2678,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
2678,
2088,
33,
2704,
17461,
6364,
2678,
12,
6376,
18,
29413,
2290,
67,
19473,
16,
3767,
1769,
2088,
18,
542,
1864,
12,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
27,
7923,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
2088,
18,
542,
13787,
12,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
28,
7923,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
1895,
1114,
2116,
33,
2704,
1895,
1114,
12,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
29,
7923,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
2116,
18,
1289,
12,
2704,
1895,
12,
6376,
18,
3776,
67,
15620,
16,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
2163,
6,
3631,
759,
8,
3993,
17,
5106,
17,
21,
8,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
2499,
6,
3719,
759,
8,
3993,
17,
5106,
17,
21,
18498,
482,
6459,
10817,
12,
780,
3446,
13,
15069,
1895,
503,
95,
67,
350,
70,
4771,
33,
3446,
31,
9090,
1769,
2116,
18,
1289,
12,
2704,
1895,
12,
6376,
18,
13651,
2399,
67,
15620,
16,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
2138,
6,
3631,
759,
8,
3993,
17,
5106,
17,
21,
8,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
3437,
6,
3719,
759,
8,
3993,
17,
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,
6783,
588,
2678,
1435,
95,
1330,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
6,
588,
2678,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
2678,
2088,
33,
2704,
17461,
6364,
2678,
12,
6376,
18,
29413,
2290,
67,
19473,
16,
3767,
1769,
2088,
18,
542,
1864,
12,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
27,
7923,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
2088,
18,
542,
13787,
12,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
28,
7923,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
1895,
1114,
2116,
33,
2704,
1895,
1114,
12,
5058,
18,
588,
780,
2932,
4334,
2290,
5931,
18,
29,
7923,
1769,
759,
8,
3993,
2
] |
||
return new DataDefinitionComposite(parent, SWT.NONE, query, null, builder, oContext);
|
return new DataDefinitionComposite(parent, SWT.NONE, query, seriesdefinition, builder, oContext);
|
public Composite getSeriesDataSheet(Composite parent, Series series, IExpressionBuilder builder, Object oContext) { Query query = null; if (series.getDataDefinition().size() > 0) { query = ((Query) series.getDataDefinition().get(0)); } else { query = QueryImpl.create(""); series.getDataDefinition().add(query); } return new DataDefinitionComposite(parent, SWT.NONE, query, null, builder, oContext); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/258bad0d502f0759055374875005f9978172c4d7/BarSeriesUIProvider.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/series/BarSeriesUIProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14728,
336,
6485,
751,
8229,
12,
9400,
982,
16,
9225,
4166,
16,
467,
2300,
1263,
2089,
16,
1033,
320,
1042,
13,
565,
288,
3639,
2770,
843,
273,
446,
31,
3639,
309,
261,
10222,
18,
588,
751,
1852,
7675,
1467,
1435,
405,
374,
13,
3639,
288,
5411,
843,
273,
14015,
1138,
13,
4166,
18,
588,
751,
1852,
7675,
588,
12,
20,
10019,
3639,
289,
3639,
469,
3639,
288,
5411,
843,
273,
2770,
2828,
18,
2640,
2932,
8863,
5411,
4166,
18,
588,
751,
1852,
7675,
1289,
12,
2271,
1769,
3639,
289,
3639,
327,
394,
1910,
1852,
9400,
12,
2938,
16,
348,
8588,
18,
9826,
16,
843,
16,
4166,
6907,
16,
2089,
16,
320,
1042,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14728,
336,
6485,
751,
8229,
12,
9400,
982,
16,
9225,
4166,
16,
467,
2300,
1263,
2089,
16,
1033,
320,
1042,
13,
565,
288,
3639,
2770,
843,
273,
446,
31,
3639,
309,
261,
10222,
18,
588,
751,
1852,
7675,
1467,
1435,
405,
374,
13,
3639,
288,
5411,
843,
273,
14015,
1138,
13,
4166,
18,
588,
751,
1852,
7675,
588,
12,
20,
10019,
3639,
289,
3639,
469,
3639,
288,
5411,
843,
273,
2770,
2828,
18,
2640,
2932,
8863,
5411,
4166,
18,
588,
751,
1852,
7675,
1289,
12,
2271,
1769,
3639,
289,
3639,
327,
394,
1910,
1852,
9400,
12,
2938,
16,
348,
8588,
18,
9826,
16,
843,
16,
4166,
6907,
16,
2089,
16,
320,
1042,
1769,
565,
289,
2,
-100,
-100
] |
}
|
}
|
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; } else if (patternObj instanceof StringBuffer) { pattern = new char [((StringBuffer) patternObj).length()]; ((StringBuffer) patternObj).getChars(0,pattern.length,pattern,0); } else { pattern = patternObj.toString().toCharArray(); } int pLength = pattern.length; numSubs = 0; // Number of subexpressions in this token. Vector branches = null; // linked list of tokens (sort of -- some closed loops can exist) firstToken = lastToken = null; // Precalculate these so we don't pay for the math every time we // need to access them. boolean insens = ((cflags & REG_ICASE) > 0); // Parse pattern into tokens. Does anyone know if it's more efficient // to use char[] than a String.charAt()? I'm assuming so. // index tracks the position in the char array int index = 0; // this will be the current parse character (pattern[index]) CharUnit unit = new CharUnit(); // This is used for {x,y} calculations IntPair minMax = new IntPair(); // Buffer a token so we can create a TokenRepeated, etc. REToken currentToken = null; char ch; boolean quot = false; while (index < pLength) { // read the next character unit (including backslash escapes) index = getCharUnit(pattern,index,unit,quot); if (unit.bk) if (unit.ch == 'Q') { quot = true; continue; } else if (unit.ch == 'E') { quot = false; continue; } if (quot) unit.bk = false; // ALTERNATION OPERATOR // \| or | (if RE_NO_BK_VBAR) or newline (if RE_NEWLINE_ALT) // not available if RE_LIMITED_OPS is set // TODO: the '\n' literal here should be a test against REToken.newline, // which unfortunately may be more than a single character. if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ (unit.bk || quot))) || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\n') && !(unit.bk || quot)) ) && !syntax.get(RESyntax.RE_LIMITED_OPS)) { // make everything up to here be a branch. create vector if nec. addToken(currentToken); RE theBranch = new RE(firstToken, lastToken, numSubs, subIndex, minimumLength); minimumLength = 0; if (branches == null) { branches = new Vector(); } branches.addElement(theBranch); firstToken = lastToken = currentToken = null; } // INTERVAL OPERATOR: // {x} | {x,} | {x,y} (RE_INTERVALS && RE_NO_BK_BRACES) // \{x\} | \{x,\} | \{x,y\} (RE_INTERVALS && !RE_NO_BK_BRACES) // // OPEN QUESTION: // what is proper interpretation of '{' at start of string? else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ (unit.bk || quot))) { int newIndex = getMinMax(pattern,index,minMax,syntax); if (newIndex > index) { if (minMax.first > minMax.second) throw new REException(getLocalizedMessage("interval.order"),REException.REG_BADRPT,newIndex); if (currentToken == null) throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,newIndex); if (currentToken instanceof RETokenRepeated) throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,newIndex); if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,newIndex); if ((currentToken.getMinimumLength() == 0) && (minMax.second == Integer.MAX_VALUE)) throw new REException(getLocalizedMessage("repeat.empty.token"),REException.REG_BADRPT,newIndex); index = newIndex; currentToken = setRepeated(currentToken,minMax.first,minMax.second,index); } else { addToken(currentToken); currentToken = new RETokenChar(subIndex,unit.ch,insens); } } // LIST OPERATOR: // [...] | [^...] else if ((unit.ch == '[') && !(unit.bk || quot)) { Vector options = new Vector(); boolean negative = false; char lastChar = 0; if (index == pLength) throw new REException(getLocalizedMessage("unmatched.bracket"),REException.REG_EBRACK,index); // Check for initial caret, negation if ((ch = pattern[index]) == '^') { negative = true; if (++index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); ch = pattern[index]; } // Check for leading right bracket literal if (ch == ']') { lastChar = ch; if (++index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); } while ((ch = pattern[index++]) != ']') { if ((ch == '-') && (lastChar != 0)) { if (index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); if ((ch = pattern[index]) == ']') { options.addElement(new RETokenChar(subIndex,lastChar,insens)); lastChar = '-'; } else { options.addElement(new RETokenRange(subIndex,lastChar,ch,insens)); lastChar = 0; index++; } } else if ((ch == '\\') && syntax.get(RESyntax.RE_BACKSLASH_ESCAPE_IN_LISTS)) { if (index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); int posixID = -1; boolean negate = false; char asciiEsc = 0; if (("dswDSW".indexOf(pattern[index]) != -1) && syntax.get(RESyntax.RE_CHAR_CLASS_ESC_IN_LISTS)) { switch (pattern[index]) { case 'D': negate = true; case 'd': posixID = RETokenPOSIX.DIGIT; break; case 'S': negate = true; case 's': posixID = RETokenPOSIX.SPACE; break; case 'W': negate = true; case 'w': posixID = RETokenPOSIX.ALNUM; break; } } else if ("nrt".indexOf(pattern[index]) != -1) { switch (pattern[index]) { case 'n': asciiEsc = '\n'; break; case 't': asciiEsc = '\t'; break; case 'r': asciiEsc = '\r'; break; } } if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens)); if (posixID != -1) { options.addElement(new RETokenPOSIX(subIndex,posixID,insens,negate)); } else if (asciiEsc != 0) { lastChar = asciiEsc; } else { lastChar = pattern[index]; } ++index; } else if ((ch == '[') && (syntax.get(RESyntax.RE_CHAR_CLASSES)) && (index < pLength) && (pattern[index] == ':')) { StringBuffer posixSet = new StringBuffer(); index = getPosixSet(pattern,index+1,posixSet); int posixId = RETokenPOSIX.intValue(posixSet.toString()); if (posixId != -1) options.addElement(new RETokenPOSIX(subIndex,posixId,insens,false)); } else { if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens)); lastChar = ch; } if (index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); } // while in list // Out of list, index is one past ']' if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens)); // Create a new RETokenOneOf addToken(currentToken); options.trimToSize(); currentToken = new RETokenOneOf(subIndex,options,negative); } // SUBEXPRESSIONS // (...) | \(...\) depending on RE_NO_BK_PARENS else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) { boolean pure = false; boolean comment = false; boolean lookAhead = false; boolean negativelh = false; if ((index+1 < pLength) && (pattern[index] == '?')) { switch (pattern[index+1]) { case '!': if (syntax.get(RESyntax.RE_LOOKAHEAD)) { pure = true; negativelh = true; lookAhead = true; index += 2; } break; case '=': if (syntax.get(RESyntax.RE_LOOKAHEAD)) { pure = true; lookAhead = true; index += 2; } break; case ':': if (syntax.get(RESyntax.RE_PURE_GROUPING)) { pure = true; index += 2; } break; case '#': if (syntax.get(RESyntax.RE_COMMENTS)) { comment = true; } break; default: throw new REException(getLocalizedMessage("repeat.no.token"), REException.REG_BADRPT, index); } } if (index >= pLength) { throw new REException(getLocalizedMessage("unmatched.paren"), REException.REG_ESUBREG,index); } // find end of subexpression int endIndex = index; int nextIndex = index; int nested = 0; while ( ((nextIndex = getCharUnit(pattern,endIndex,unit,false)) > 0) && !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) ) if ((endIndex = nextIndex) >= pLength) throw new REException(getLocalizedMessage("subexpr.no.end"),REException.REG_ESUBREG,nextIndex); else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) nested++; else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) nested--; // endIndex is now position at a ')','\)' // nextIndex is end of string or position after ')' or '\)' if (comment) index = nextIndex; else { // not a comment // create RE subexpression as token. addToken(currentToken); if (!pure) { numSubs++; } int useIndex = (pure || lookAhead) ? 0 : nextSub + numSubs; currentToken = new RE(String.valueOf(pattern,index,endIndex-index).toCharArray(),cflags,syntax,useIndex,nextSub + numSubs); numSubs += ((RE) currentToken).getNumSubs(); if (lookAhead) { currentToken = new RETokenLookAhead(currentToken,negativelh); } index = nextIndex; } // not a comment } // subexpression // UNMATCHED RIGHT PAREN // ) or \) throw exception if // !syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot)))) { throw new REException(getLocalizedMessage("unmatched.paren"),REException.REG_EPAREN,index); } // START OF LINE OPERATOR // ^ else if ((unit.ch == '^') && !(unit.bk || quot)) { addToken(currentToken); currentToken = null; addToken(new RETokenStart(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null)); } // END OF LINE OPERATOR // $ else if ((unit.ch == '$') && !(unit.bk || quot)) { addToken(currentToken); currentToken = null; addToken(new RETokenEnd(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null)); } // MATCH-ANY-CHARACTER OPERATOR (except possibly newline and null) // . else if ((unit.ch == '.') && !(unit.bk || quot)) { addToken(currentToken); currentToken = new RETokenAny(subIndex,syntax.get(RESyntax.RE_DOT_NEWLINE) || ((cflags & REG_DOT_NEWLINE) > 0),syntax.get(RESyntax.RE_DOT_NOT_NULL)); } // ZERO-OR-MORE REPEAT OPERATOR // * else if ((unit.ch == '*') && !(unit.bk || quot)) { if (currentToken == null) throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,index); if (currentToken instanceof RETokenRepeated) throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,index); if (currentToken.getMinimumLength() == 0) throw new REException(getLocalizedMessage("repeat.empty.token"),REException.REG_BADRPT,index); currentToken = setRepeated(currentToken,0,Integer.MAX_VALUE,index); } // ONE-OR-MORE REPEAT OPERATOR / POSSESSIVE MATCHING OPERATOR // + | \+ depending on RE_BK_PLUS_QM // not available if RE_LIMITED_OPS is set else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ (unit.bk || quot))) { if (currentToken == null) throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,index); // Check for possessive matching on RETokenRepeated if (currentToken instanceof RETokenRepeated) { RETokenRepeated tokenRep = (RETokenRepeated)currentToken; if (syntax.get(RESyntax.RE_POSSESSIVE_OPS) && !tokenRep.isPossessive() && !tokenRep.isStingy()) tokenRep.makePossessive(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); } else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,index); else if (currentToken.getMinimumLength() == 0) throw new REException(getLocalizedMessage("repeat.empty.token"),REException.REG_BADRPT,index); else currentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index); } // ZERO-OR-ONE REPEAT OPERATOR / STINGY MATCHING OPERATOR // ? | \? depending on RE_BK_PLUS_QM // not available if RE_LIMITED_OPS is set // stingy matching if RE_STINGY_OPS is set and it follows a quantifier else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ (unit.bk || quot))) { if (currentToken == null) throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,index); // Check for stingy matching on RETokenRepeated if (currentToken instanceof RETokenRepeated) { RETokenRepeated tokenRep = (RETokenRepeated)currentToken; if (syntax.get(RESyntax.RE_STINGY_OPS) && !tokenRep.isStingy() && !tokenRep.isPossessive()) tokenRep.makeStingy(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); } else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,index); else currentToken = setRepeated(currentToken,0,1,index); } // BACKREFERENCE OPERATOR // \1 \2 ... \9 // not available if RE_NO_BK_REFS is set else if (unit.bk && Character.isDigit(unit.ch) && !syntax.get(RESyntax.RE_NO_BK_REFS)) { addToken(currentToken); currentToken = new RETokenBackRef(subIndex,Character.digit(unit.ch,10),insens); } // START OF STRING OPERATOR // \A if RE_STRING_ANCHORS is set else if (unit.bk && (unit.ch == 'A') && syntax.get(RESyntax.RE_STRING_ANCHORS)) { addToken(currentToken); currentToken = new RETokenStart(subIndex,null); } // WORD BREAK OPERATOR // \b if ???? else if (unit.bk && (unit.ch == 'b') && syntax.get(RESyntax.RE_STRING_ANCHORS)) { addToken(currentToken); currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, false); } // WORD BEGIN OPERATOR // \< if ???? else if (unit.bk && (unit.ch == '<')) { addToken(currentToken); currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN, false); } // WORD END OPERATOR // \> if ???? else if (unit.bk && (unit.ch == '>')) { addToken(currentToken); currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.END, false); } // NON-WORD BREAK OPERATOR // \B if ???? else if (unit.bk && (unit.ch == 'B') && syntax.get(RESyntax.RE_STRING_ANCHORS)) { addToken(currentToken); currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, true); } // DIGIT OPERATOR // \d if RE_CHAR_CLASS_ESCAPES is set else if (unit.bk && (unit.ch == 'd') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,false); } // NON-DIGIT OPERATOR // \D else if (unit.bk && (unit.ch == 'D') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,true); } // NEWLINE ESCAPE // \n else if (unit.bk && (unit.ch == 'n')) { addToken(currentToken); currentToken = new RETokenChar(subIndex,'\n',false); } // RETURN ESCAPE // \r else if (unit.bk && (unit.ch == 'r')) { addToken(currentToken); currentToken = new RETokenChar(subIndex,'\r',false); } // WHITESPACE OPERATOR // \s if RE_CHAR_CLASS_ESCAPES is set else if (unit.bk && (unit.ch == 's') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,false); } // NON-WHITESPACE OPERATOR // \S else if (unit.bk && (unit.ch == 'S') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,true); } // TAB ESCAPE // \t else if (unit.bk && (unit.ch == 't')) { addToken(currentToken); currentToken = new RETokenChar(subIndex,'\t',false); } // ALPHANUMERIC OPERATOR // \w else if (unit.bk && (unit.ch == 'w') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,false); } // NON-ALPHANUMERIC OPERATOR // \W else if (unit.bk && (unit.ch == 'W') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,true); } // END OF STRING OPERATOR // \Z else if (unit.bk && (unit.ch == 'Z') && syntax.get(RESyntax.RE_STRING_ANCHORS)) { addToken(currentToken); currentToken = new RETokenEnd(subIndex,null); } // NON-SPECIAL CHARACTER (or escape to make literal) // c | \* for example else { // not a special character addToken(currentToken); currentToken = new RETokenChar(subIndex,unit.ch,insens); } } // end while // Add final buffered token and an EndSub marker addToken(currentToken); if (branches != null) { branches.addElement(new RE(firstToken,lastToken,numSubs,subIndex,minimumLength)); branches.trimToSize(); // compact the Vector minimumLength = 0; firstToken = lastToken = null; addToken(new RETokenOneOf(subIndex,branches,false)); } else addToken(new RETokenEndSub(subIndex)); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8f1176391e1d000d946793693906d6dc8af29e19/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4046,
12,
921,
1936,
2675,
16,
509,
276,
7133,
16,
2438,
8070,
6279,
16,
509,
3399,
1016,
16,
509,
1024,
1676,
13,
1216,
2438,
503,
288,
1377,
1149,
8526,
1936,
31,
565,
309,
261,
4951,
2675,
1276,
514,
13,
288,
1377,
1936,
273,
14015,
780,
13,
1936,
2675,
2934,
869,
15936,
5621,
565,
289,
469,
309,
261,
4951,
2675,
1276,
1149,
63,
5717,
288,
1377,
1936,
273,
261,
3001,
63,
5717,
1936,
2675,
31,
565,
289,
469,
309,
261,
4951,
2675,
1276,
6674,
13,
288,
1377,
1936,
273,
394,
1149,
306,
12443,
780,
1892,
13,
1936,
2675,
2934,
2469,
1435,
15533,
1377,
14015,
780,
1892,
13,
1936,
2675,
2934,
588,
7803,
12,
20,
16,
4951,
18,
2469,
16,
4951,
16,
20,
1769,
565,
289,
469,
288,
202,
4951,
273,
1936,
2675,
18,
10492,
7675,
869,
15936,
5621,
565,
289,
565,
509,
293,
1782,
273,
1936,
18,
2469,
31,
565,
818,
26123,
273,
374,
31,
368,
3588,
434,
720,
21480,
316,
333,
1147,
18,
565,
5589,
11483,
273,
446,
31,
565,
368,
8459,
666,
434,
2430,
261,
3804,
434,
1493,
2690,
4375,
14075,
848,
1005,
13,
565,
1122,
1345,
273,
27231,
273,
446,
31,
565,
368,
2962,
11162,
4259,
1427,
732,
2727,
1404,
8843,
364,
326,
4233,
3614,
813,
732,
565,
368,
1608,
358,
2006,
2182,
18,
565,
1250,
2763,
773,
273,
14015,
71,
7133,
473,
11980,
67,
2871,
4429,
13,
405,
374,
1769,
565,
368,
2884,
1936,
1368,
2430,
18,
225,
9637,
1281,
476,
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,
4750,
918,
4046,
12,
921,
1936,
2675,
16,
509,
276,
7133,
16,
2438,
8070,
6279,
16,
509,
3399,
1016,
16,
509,
1024,
1676,
13,
1216,
2438,
503,
288,
1377,
1149,
8526,
1936,
31,
565,
309,
261,
4951,
2675,
1276,
514,
13,
288,
1377,
1936,
273,
14015,
780,
13,
1936,
2675,
2934,
869,
15936,
5621,
565,
289,
469,
309,
261,
4951,
2675,
1276,
1149,
63,
5717,
288,
1377,
1936,
273,
261,
3001,
63,
5717,
1936,
2675,
31,
565,
289,
469,
309,
261,
4951,
2675,
1276,
6674,
13,
288,
1377,
1936,
273,
394,
1149,
306,
12443,
780,
1892,
13,
1936,
2675,
2934,
2469,
1435,
15533,
1377,
14015,
780,
1892,
13,
1936,
2675,
2934,
588,
7803,
12,
20,
16,
4951,
18,
2
] |
return unlockCheck(EVENT_READ_CALENDAR, getReference());
|
return unlockCheck(AUTH_READ_CALENDAR, getReference());
|
public boolean allowGetEvents() { return unlockCheck(EVENT_READ_CALENDAR, getReference()); } // allowGetEvents
|
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/85b4f81a2e9787b98cf9b90fd36802cc55519989/BaseCalendarService.java/clean/calendar/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/BaseCalendarService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
1699,
967,
3783,
1435,
202,
202,
95,
1082,
202,
2463,
7186,
1564,
12,
10454,
67,
6949,
67,
12983,
29154,
16,
13223,
10663,
202,
202,
97,
368,
1699,
967,
3783,
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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,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
1699,
967,
3783,
1435,
202,
202,
95,
1082,
202,
2463,
7186,
1564,
12,
10454,
67,
6949,
67,
12983,
29154,
16,
13223,
10663,
202,
202,
97,
368,
1699,
967,
3783,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.