rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
q = q + " SERIALIZABLE"; | sb.append(" SERIALIZABLE"); | protected String getIsolationLevelSQL() throws SQLException { //7.1 and higher servers have a default specified so //no additional SQL is required to set the isolation level if (haveMinimumServerVersion("7.1")) { return ""; } String q = "SET TRANSACTION ISOLATION LEVEL"; switch(isolationLevel) { case java.sql.Connection.TRANSACTION_READ_COMMITTED: q = q + " READ COMMITTED"; break; case java.sql.Connection.TRANSACTION_SERIALIZABLE: q = q + " SERIALIZABLE"; break; default: throw new PSQLException("postgresql.con.isolevel",new Integer(isolationLevel)); } return q; } | 52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/7066253ab5268467e01049a6a8a735bebf74f989/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
14279,
12255,
2355,
3997,
1435,
1216,
6483,
288,
202,
759,
27,
18,
21,
471,
10478,
7084,
1240,
279,
805,
1269,
1427,
225,
202,
759,
2135,
3312,
3063,
353,
1931,
358,
444,
326,
25155,
1801,
202,
430,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
21,
6,
3719,
288,
1850,
327,
1408,
31,
3639,
289,
202,
780,
1043,
273,
315,
4043,
24896,
4437,
1741,
2689,
15080,
14432,
202,
9610,
12,
291,
12255,
2355,
13,
288,
202,
565,
648,
2252,
18,
4669,
18,
1952,
18,
22364,
67,
6949,
67,
18658,
6404,
30,
202,
202,
85,
273,
1043,
397,
315,
10746,
5423,
6068,
6404,
14432,
7734,
898,
31,
202,
565,
648,
2252,
18,
4669,
18,
1952,
18,
22364,
67,
2123,
15154,
2782,
30,
202,
202,
18366,
18,
6923,
2932,
7758,
15154,
2782,
8863,
7734,
898,
31,
202,
565,
805,
30,
202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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
14279,
12255,
2355,
3997,
1435,
1216,
6483,
288,
202,
759,
27,
18,
21,
471,
10478,
7084,
1240,
279,
805,
1269,
1427,
225,
202,
759,
2135,
3312,
3063,
353,
1931,
358,
444,
326,
25155,
1801,
202,
430,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
21,
6,
3719,
288,
1850,
327,
1408,
31,
3639,
289,
202,
780,
1043,
273,
315,
4043,
24896,
4437,
1741,
2689,
15080,
14432,
202,
9610,
12,
291,
12255,
2355,
13,
288,
202,
565,
648,
2252,
18,
4669,
18,
1952,
18,
22364,
67,
6949,
67,
18658,
6404,
30,
202,
202,
85,
273,
1043,
397,
315,
10746,
5423,
6068,
6404,
14432,
7734,
898,
31,
202,
565,
648,
2252,
18,
4669,
18,
1952,
18,
22364,
67,
2
] |
al.sourcef(source.getInt(4*0),AL.PITCH,1.0f); | al.sourcef(source.get(0),AL.PITCH,1.0f); | protected void i_LoopingTest() { int error; ByteBuffer source = ByteBuffer.allocateDirect(4*2); source.order(ByteOrder.nativeOrder()); int ch = -1; int bLooping0 = AL.FALSE; int bLooping1 = AL.FALSE; ByteBuffer source0Pos = ByteBuffer.allocateDirect(12); source0Pos.order(ByteOrder.nativeOrder()); source0Pos.putFloat(-2.0f); source0Pos.putFloat(0.0f); source0Pos.putFloat(-2.0f); ByteBuffer source0Vel = ByteBuffer.allocateDirect(12); source0Vel.order(ByteOrder.nativeOrder()); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); ByteBuffer source1Pos = ByteBuffer.allocateDirect(12); source1Pos.order(ByteOrder.nativeOrder()); source1Pos.putFloat(2.0f); source1Pos.putFloat(0.0f); source1Pos.putFloat(-2.0f); ByteBuffer source1Vel = ByteBuffer.allocateDirect(12); source1Vel.order(ByteOrder.nativeOrder()); source1Vel.putFloat(0.0f); source1Vel.putFloat(0.0f); source1Vel.putFloat(0.0f); // Clear Error Code al.getError(); al.genSources(2,Sys.getDirectBufferAddress(source)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alGenSources 1 : ", error); return; } al.sourcef(source.getInt(4*0),AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 0 AL_PITCH : \n", error); } al.sourcef(source.getInt(4*0),AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 0 AL_GAIN : \n", error); } al.sourcefv(source.getInt(4*0),AL.POSITION,Sys.getDirectBufferAddress(source0Pos)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 0 AL_POSITION : \n", error); } al.sourcefv(source.getInt(4*0),AL.VELOCITY,Sys.getDirectBufferAddress(source0Vel)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 0 AL_VELOCITY : \n", error); } al.sourcei(source.getInt(4*0),AL.BUFFER, buffers.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 0 AL_BUFFER buffer 0 : \n", error); } al.sourcei(source.getInt(4*0),AL.LOOPING,AL.FALSE); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 0 AL_LOOPING false : \n", error); } al.sourcef(source.getInt(4*1),AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 1 AL_PITCH : \n", error); } al.sourcef(source.getInt(4*1),AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 1 AL_GAIN : \n", error); } al.sourcefv(source.getInt(4*1),AL.POSITION,Sys.getDirectBufferAddress(source1Pos)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 1 AL_POSITION : \n", error); } al.sourcefv(source.getInt(4*1),AL.VELOCITY,Sys.getDirectBufferAddress(source1Vel)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 1 AL_VELOCITY : \n", error); } al.sourcei(source.getInt(4*1),AL.BUFFER, buffers.getInt(4*1)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 1 AL_BUFFER buffer 1 : \n", error); } al.sourcei(source.getInt(4*1),AL.LOOPING,AL.FALSE); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 1 AL_LOOPING false: \n", error); } System.out.print("Looping Test\n"); System.out.print("Press '1' to play source 0 once (single shot)\n"); System.out.print("Press '2' to toggle looping on source 0\n"); System.out.print("Press '3' to play source 1 once (single shot)\n"); System.out.print("Press '4' to toggle looping on source 1\n"); System.out.print("Press 'Q' to quit\n"); System.out.print("\nSource 0 : Not looping Source 1 : Not looping\n"); do { try { ch = System.in.read(); } catch (IOException ioe) { } switch (ch) { case '1': al.sourcePlay(source.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 0 : ", error); break; case '2': if (bLooping0 == AL.FALSE) { bLooping0 = AL.TRUE; if (bLooping1 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Looping \n"); else System.out.print("Source 0 : Looping Source 1 : Not looping\n"); } else { bLooping0 = AL.FALSE; if (bLooping1 == AL.TRUE) System.out.print("Source 0 : Not looping Source 1 : Looping \n"); else System.out.print("Source 0 : Not looping Source 1 : Not looping\n"); } al.sourcei(source.getInt(4*0), AL.LOOPING, bLooping0); break; case '3': al.sourcePlay(source.getInt(4*1)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 1 : ", error); break; case '4': if (bLooping1 == AL.FALSE) { bLooping1 = AL.TRUE; if (bLooping0 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Looping \n"); else System.out.print("Source 0 : Not looping Source 1 : Looping \n"); } else { bLooping1 = AL.FALSE; if (bLooping0 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Not looping\n"); else System.out.print("Source 0 : Not looping Source 1 : Not looping\n"); } al.sourcei(source.getInt(4*1), AL.LOOPING, bLooping1); break; } } while (ch != 'Q'); System.out.print("\n"); // Release resources al.sourceStop(source.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceStop source 1 : ", error); al.deleteSources(2, Sys.getDirectBufferAddress(source)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alDeleteSources 1 : ", error); return; } | 5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/c18e8bd28afc8401f80a918520500157aa5f199d/ALTest.java/buggy/src/java/org/lwjgl/openal/test/ALTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
277,
67,
6452,
310,
4709,
1435,
288,
3639,
509,
202,
1636,
31,
3639,
7400,
1084,
273,
7400,
18,
16247,
5368,
12,
24,
14,
22,
1769,
3639,
1084,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
509,
202,
343,
273,
300,
21,
31,
3639,
509,
324,
6452,
310,
20,
273,
7981,
18,
21053,
31,
3639,
509,
324,
6452,
310,
21,
273,
7981,
18,
21053,
31,
7734,
7400,
1084,
20,
1616,
273,
7400,
18,
16247,
5368,
12,
2138,
1769,
3639,
1084,
20,
1616,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
1084,
20,
1616,
18,
458,
4723,
19236,
22,
18,
20,
74,
1769,
3639,
1084,
20,
1616,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
3639,
1084,
20,
1616,
18,
458,
4723,
19236,
22,
18,
20,
74,
1769,
7734,
7400,
1084,
20,
58,
292,
273,
7400,
18,
16247,
5368,
12,
2138,
1769,
3639,
1084,
20,
58,
292,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
1084,
20,
58,
292,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
3639,
1084,
20,
58,
292,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
3639,
1084,
20,
58,
292,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
7734,
7400,
1084,
21,
1616,
273,
7400,
18,
16247,
5368,
12,
2138,
1769,
3639,
1084,
21,
1616,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
1084,
21,
1616,
18,
458,
4723,
12,
22,
18,
20,
74,
1769,
3639,
1084,
21,
1616,
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,
277,
67,
6452,
310,
4709,
1435,
288,
3639,
509,
202,
1636,
31,
3639,
7400,
1084,
273,
7400,
18,
16247,
5368,
12,
24,
14,
22,
1769,
3639,
1084,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
509,
202,
343,
273,
300,
21,
31,
3639,
509,
324,
6452,
310,
20,
273,
7981,
18,
21053,
31,
3639,
509,
324,
6452,
310,
21,
273,
7981,
18,
21053,
31,
7734,
7400,
1084,
20,
1616,
273,
7400,
18,
16247,
5368,
12,
2138,
1769,
3639,
1084,
20,
1616,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
1084,
20,
1616,
18,
458,
4723,
19236,
22,
18,
20,
74,
1769,
3639,
1084,
20,
1616,
18,
458,
4723,
12,
20,
18,
20,
2
] |
test = new DateMidnight(2004, 7, 15); | test = new DateMidnight(2004, 6, 15); | public void testPropertyRoundHalfCeilingMonthOfYear() { DateMidnight test = new DateMidnight(2004, 7, 16); DateMidnight copy = test.monthOfYear().roundHalfCeilingCopy(); assertEquals("2004-08-00T00:00:00.000+01:00", copy.toString()); test = new DateMidnight(2004, 7, 17); copy = test.monthOfYear().roundHalfCeilingCopy(); assertEquals("2004-08-00T00:00:00.000+01:00", copy.toString()); test = new DateMidnight(2004, 7, 15); copy = test.monthOfYear().roundHalfCeilingCopy(); assertEquals("2004-07-00T00:00:00.000+01:00", copy.toString()); } | 52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/4bcc1e7fd773ac2509f9f7087fce1010f8948d57/TestDateMidnight_Properties.java/clean/JodaTime/src/test/org/joda/time/TestDateMidnight_Properties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1396,
11066,
16168,
39,
73,
4973,
5445,
19091,
1435,
288,
3639,
2167,
20711,
18840,
1842,
273,
394,
2167,
20711,
18840,
12,
6976,
24,
16,
2371,
16,
2872,
1769,
3639,
2167,
20711,
18840,
1610,
273,
1842,
18,
7496,
19091,
7675,
2260,
16168,
39,
73,
4973,
2951,
5621,
3639,
1815,
8867,
2932,
6976,
24,
17,
6840,
17,
713,
56,
713,
30,
713,
30,
713,
18,
3784,
15,
1611,
30,
713,
3113,
1610,
18,
10492,
10663,
7734,
1842,
273,
394,
2167,
20711,
18840,
12,
6976,
24,
16,
2371,
16,
8043,
1769,
3639,
1610,
273,
1842,
18,
7496,
19091,
7675,
2260,
16168,
39,
73,
4973,
2951,
5621,
3639,
1815,
8867,
2932,
6976,
24,
17,
6840,
17,
713,
56,
713,
30,
713,
30,
713,
18,
3784,
15,
1611,
30,
713,
3113,
1610,
18,
10492,
10663,
7734,
1842,
273,
394,
2167,
20711,
18840,
12,
6976,
24,
16,
1666,
16,
4711,
1769,
3639,
1610,
273,
1842,
18,
7496,
19091,
7675,
2260,
16168,
39,
73,
4973,
2951,
5621,
3639,
1815,
8867,
2932,
6976,
24,
17,
8642,
17,
713,
56,
713,
30,
713,
30,
713,
18,
3784,
15,
1611,
30,
713,
3113,
1610,
18,
10492,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1396,
11066,
16168,
39,
73,
4973,
5445,
19091,
1435,
288,
3639,
2167,
20711,
18840,
1842,
273,
394,
2167,
20711,
18840,
12,
6976,
24,
16,
2371,
16,
2872,
1769,
3639,
2167,
20711,
18840,
1610,
273,
1842,
18,
7496,
19091,
7675,
2260,
16168,
39,
73,
4973,
2951,
5621,
3639,
1815,
8867,
2932,
6976,
24,
17,
6840,
17,
713,
56,
713,
30,
713,
30,
713,
18,
3784,
15,
1611,
30,
713,
3113,
1610,
18,
10492,
10663,
7734,
1842,
273,
394,
2167,
20711,
18840,
12,
6976,
24,
16,
2371,
16,
8043,
1769,
3639,
1610,
273,
1842,
18,
7496,
19091,
7675,
2260,
16168,
39,
73,
4973,
2951,
5621,
3639,
1815,
8867,
2932,
6976,
24,
17,
6840,
17,
713,
56,
713,
2
] |
is.close(); | is0.close(); | protected void assertEqualContent( byte[] b0, File file ) throws IOException { InputStream is = new java.io.FileInputStream( file ); try { byte[] b1 = new byte[ b0.length ]; int numRead = is.read( b1 ); assertTrue( "Different number of bytes", numRead == b0.length && is.available() == 0 ); for( int i = 0; i < numRead; assertTrue( "Byte " + i + " differs (" + b0[ i ] + " != " + b1[ i ] + ")", b0[ i ] == b1[ i ] ), i++ ); } finally { is.close(); } } | 56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/190c37ddff6a3cf3d098e78ed3ccbd28b1d8345b/FileBasedTestCase.java/buggy/src/test/org/apache/commons/io/testtools/FileBasedTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1815,
5812,
1350,
12,
1160,
8526,
324,
20,
16,
1387,
585,
262,
3639,
1216,
1860,
565,
288,
3639,
5037,
353,
273,
394,
2252,
18,
1594,
18,
812,
4348,
12,
585,
11272,
3639,
775,
288,
5411,
1160,
8526,
324,
21,
273,
394,
1160,
63,
324,
20,
18,
2469,
308,
31,
5411,
509,
818,
1994,
273,
353,
18,
896,
12,
324,
21,
11272,
5411,
1815,
5510,
12,
315,
26270,
1300,
434,
1731,
3113,
818,
1994,
422,
324,
20,
18,
2469,
597,
353,
18,
5699,
1435,
422,
374,
11272,
5411,
364,
12,
509,
277,
273,
374,
31,
1171,
277,
411,
818,
1994,
31,
1171,
1815,
5510,
12,
315,
3216,
315,
397,
277,
397,
315,
21944,
7566,
397,
324,
20,
63,
277,
308,
397,
315,
480,
315,
397,
324,
21,
63,
277,
308,
397,
7310,
16,
5397,
324,
20,
63,
277,
308,
422,
324,
21,
63,
277,
308,
262,
16,
277,
9904,
7734,
11272,
3639,
289,
3095,
288,
5411,
353,
20,
18,
4412,
5621,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1815,
5812,
1350,
12,
1160,
8526,
324,
20,
16,
1387,
585,
262,
3639,
1216,
1860,
565,
288,
3639,
5037,
353,
273,
394,
2252,
18,
1594,
18,
812,
4348,
12,
585,
11272,
3639,
775,
288,
5411,
1160,
8526,
324,
21,
273,
394,
1160,
63,
324,
20,
18,
2469,
308,
31,
5411,
509,
818,
1994,
273,
353,
18,
896,
12,
324,
21,
11272,
5411,
1815,
5510,
12,
315,
26270,
1300,
434,
1731,
3113,
818,
1994,
422,
324,
20,
18,
2469,
597,
353,
18,
5699,
1435,
422,
374,
11272,
5411,
364,
12,
509,
277,
273,
374,
31,
1171,
277,
411,
818,
1994,
31,
1171,
1815,
5510,
12,
315,
3216,
315,
397,
277,
397,
315,
21944,
7566,
397,
324,
20,
2
] |
if (log != null)log.debug("readStatusVector int: " + arg_value); | if (log != null)log.debug("readStatusVector arg:isc_arg_number int: " + arg_value); | private void readStatusVector(isc_db_handle_impl db) throws GDSException { try { GDSException head = null; GDSException tail = null; while (true) { int arg = db.in.readInt(); switch (arg) { case isc_arg_end: if (head != null && !head.isWarning()) throw head; else if (head != null && head.isWarning()) db.addWarning(head); return; case isc_arg_interpreted: case isc_arg_string: GDSException ts = new GDSException(arg, db.in.readString()); if (log != null) log.debug("readStatusVector string: " + ts.getMessage()); if (head == null) { head = ts; tail = ts; } else { tail.setNext(ts); tail = ts; } break; case isc_arg_number: { int arg_value = db.in.readInt(); if (log != null)log.debug("readStatusVector int: " + arg_value); GDSException td = new GDSException(arg, arg_value); if (head == null) { head = td; tail = td; } else { tail.setNext(td); tail = td; } break; } default: int e = db.in.readInt(); if (log != null)log.debug("readStatusVector int: " + e); if (e != 0) { GDSException td = new GDSException(arg, e); if (head == null) { head = td; tail = td; } else { tail.setNext(td); tail = td; } } break; } } } catch (IOException ioe) { // ioe.getMessage() makes little sense here, it will not be displayed // because error message for isc_net_read_err does not accept params throw new GDSException(isc_arg_gds, isc_net_read_err, ioe.getMessage()); } } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/0c85e5b9e025d1d2fc963451a40165c59f1cd5f4/GDS_Impl.java/buggy/src/main/org/firebirdsql/jgds/GDS_Impl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
855,
1482,
5018,
12,
291,
71,
67,
1966,
67,
4110,
67,
11299,
1319,
13,
5411,
1216,
611,
3948,
503,
288,
3639,
775,
288,
5411,
611,
3948,
503,
910,
273,
446,
31,
5411,
611,
3948,
503,
5798,
273,
446,
31,
5411,
1323,
261,
3767,
13,
288,
7734,
509,
1501,
273,
1319,
18,
267,
18,
896,
1702,
5621,
7734,
1620,
261,
3175,
13,
288,
10792,
648,
353,
71,
67,
3175,
67,
409,
30,
13491,
309,
261,
1978,
480,
446,
597,
401,
1978,
18,
291,
6210,
10756,
11794,
604,
910,
31,
13491,
469,
13491,
309,
261,
1978,
480,
446,
597,
910,
18,
291,
6210,
10756,
11794,
1319,
18,
1289,
6210,
12,
1978,
1769,
4766,
7734,
327,
31,
10792,
648,
353,
71,
67,
3175,
67,
24713,
329,
30,
10792,
648,
353,
71,
67,
3175,
67,
1080,
30,
13491,
611,
3948,
503,
3742,
273,
394,
611,
3948,
503,
12,
3175,
16,
1319,
18,
267,
18,
896,
780,
10663,
13491,
309,
261,
1330,
480,
446,
13,
613,
18,
4148,
2932,
896,
1482,
5018,
533,
30,
315,
397,
3742,
18,
24906,
10663,
13491,
309,
261,
1978,
422,
446,
13,
288,
18701,
910,
273,
3742,
31,
18701,
5798,
273,
3742,
31,
13491,
289,
13491,
469,
288,
18701,
5798,
18,
542,
2134,
12,
3428,
1769,
18701,
5798,
273,
3742,
31,
13491,
289,
13491,
898,
31,
10792,
648,
353,
71,
67,
3175,
67,
2696,
30,
13491,
288,
18701,
509,
1501,
67,
1132,
273,
1319,
18,
267,
18,
896,
1702,
5621,
18701,
309,
261,
1330,
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,
855,
1482,
5018,
12,
291,
71,
67,
1966,
67,
4110,
67,
11299,
1319,
13,
5411,
1216,
611,
3948,
503,
288,
3639,
775,
288,
5411,
611,
3948,
503,
910,
273,
446,
31,
5411,
611,
3948,
503,
5798,
273,
446,
31,
5411,
1323,
261,
3767,
13,
288,
7734,
509,
1501,
273,
1319,
18,
267,
18,
896,
1702,
5621,
7734,
1620,
261,
3175,
13,
288,
10792,
648,
353,
71,
67,
3175,
67,
409,
30,
13491,
309,
261,
1978,
480,
446,
597,
401,
1978,
18,
291,
6210,
10756,
11794,
604,
910,
31,
13491,
469,
13491,
309,
261,
1978,
480,
446,
597,
910,
18,
291,
6210,
10756,
11794,
1319,
18,
1289,
6210,
12,
1978,
1769,
4766,
7734,
327,
31,
10792,
648,
2
] |
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(nfs.create(dumpFile)))); | writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fs.create(dumpFile)))); | public void reader(File segment) throws IOException { LOG.info("Reader: segment: " + segment); JobConf job = new JobConf(getConf()); job.addInputDir(new File(segment, CrawlDatum.GENERATE_DIR_NAME)); job.addInputDir(new File(segment, CrawlDatum.FETCH_DIR_NAME)); job.addInputDir(new File(segment, CrawlDatum.PARSE_DIR_NAME)); job.addInputDir(new File(segment, Content.DIR_NAME)); job.addInputDir(new File(segment, ParseData.DIR_NAME)); job.addInputDir(new File(segment, ParseText.DIR_NAME)); job.setInputFormat(InputFormat.class); job.setInputKeyClass(UTF8.class); job.setInputValueClass(ObjectWritable.class); job.setReducerClass(SegmentReader.class); job.setOutputDir(segment); job.setOutputFormat(TextOutputFormat.class); job.setOutputKeyClass(UTF8.class); job.setOutputValueClass(ObjectWritable.class); JobClient.runJob(job); // concatenate the output NutchFileSystem nfs = NutchFileSystem.get(job); File directory = new File(job.getOutputDir(), SegmentReader.DIR_NAME); File dumpFile = new File(directory, job.get("segment.dump.dir", "dump")); // remove the old file nfs.delete(dumpFile); File[] files = nfs.listFiles(directory); PrintWriter writer = null; int currentReccordNumber = 0; if (files.length > 0) { writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(nfs.create(dumpFile)))); try { for (int i = 0 ; i < files.length; i++) { File partFile = (File)files[i]; try { currentReccordNumber = append(nfs, job, partFile, writer, currentReccordNumber); } catch (IOException exception) { LOG.warning("Couldn't copy the content of " + partFile.toString() + " into " + dumpFile.toString()); LOG.warning(exception.getMessage()); } } } finally { writer.close(); } } LOG.info("Reader: done"); } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/SegmentReader.java/buggy/src/java/org/apache/nutch/segment/SegmentReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2949,
12,
812,
3267,
13,
1216,
1860,
288,
565,
2018,
18,
1376,
2932,
2514,
30,
3267,
30,
315,
397,
3267,
1769,
565,
3956,
3976,
1719,
273,
394,
3956,
3976,
12,
588,
3976,
10663,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
385,
15161,
18268,
18,
13990,
1777,
67,
4537,
67,
1985,
10019,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
385,
15161,
18268,
18,
20231,
67,
4537,
67,
1985,
10019,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
385,
15161,
18268,
18,
21045,
67,
4537,
67,
1985,
10019,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
3697,
18,
4537,
67,
1985,
10019,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
2884,
751,
18,
4537,
67,
1985,
10019,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
2884,
1528,
18,
4537,
67,
1985,
10019,
565,
1719,
18,
542,
1210,
1630,
12,
1210,
1630,
18,
1106,
1769,
565,
1719,
18,
542,
1210,
653,
797,
12,
5159,
28,
18,
1106,
1769,
565,
1719,
18,
542,
1210,
620,
797,
12,
921,
12061,
18,
1106,
1769,
565,
1719,
18,
542,
26369,
797,
12,
4131,
2514,
18,
1106,
1769,
3639,
1719,
18,
542,
1447,
1621,
12,
9273,
1769,
565,
1719,
18,
542,
1447,
1630,
12,
1528,
1447,
1630,
18,
1106,
1769,
565,
1719,
18,
542,
1447,
653,
797,
12,
5159,
28,
18,
1106,
1769,
565,
1719,
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,
282,
1071,
918,
2949,
12,
812,
3267,
13,
1216,
1860,
288,
565,
2018,
18,
1376,
2932,
2514,
30,
3267,
30,
315,
397,
3267,
1769,
565,
3956,
3976,
1719,
273,
394,
3956,
3976,
12,
588,
3976,
10663,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
385,
15161,
18268,
18,
13990,
1777,
67,
4537,
67,
1985,
10019,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
385,
15161,
18268,
18,
20231,
67,
4537,
67,
1985,
10019,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
385,
15161,
18268,
18,
21045,
67,
4537,
67,
1985,
10019,
565,
1719,
18,
1289,
1210,
1621,
12,
2704,
1387,
12,
9273,
16,
3697,
18,
4537,
67,
2
] |
for (int i = 0; i < histFiles.length; i++) { final VirtualFile file = histFiles[i]; | for (final VirtualFile file : histFiles) { | void trimToSize(final int limit, final VirtualFile fileToIgnore) { if (myTabbedPane == null) { return; } final boolean closeNonModifiedFilesFirst = UISettings.getInstance().CLOSE_NON_MODIFIED_FILES_FIRST; final EditorComposite selectedComposite = getSelectedEditor(); try { myInsideTabChange++; while_label: while (myTabbedPane.getTabCount() > limit && myTabbedPane.getTabCount() > 0) { // If all tabs are pinned then do nothings. Othrwise we will get infinitive loop boolean allTabsArePinned = true; for (int i = myTabbedPane.getTabCount() - 1; i >= 0; i--) { final VirtualFile file = getFileAt(i); if (fileCanBeClosed(file, fileToIgnore)) { allTabsArePinned = false; break; } } if (allTabsArePinned) { return; } // Try to close non-modified files first (is specified in option) if (closeNonModifiedFilesFirst) { // Search in history final VirtualFile[] allFiles = getFiles(); final VirtualFile[] histFiles = EditorHistoryManager.getInstance(getManager ().myProject).getFiles(); // first, we search for files not in history for (int i = 0; i != allFiles.length; ++ i) { final VirtualFile file = allFiles[i]; if (fileCanBeClosed(file, fileToIgnore)) { boolean found = false; for (int j = 0; j != histFiles.length; j++) { if (histFiles[j] == file) { found = true; break; } } if (!found) { closeFile(file); continue while_label; } } } for (int i = 0; i < histFiles.length; i++) { final VirtualFile file = histFiles[i]; if (!fileCanBeClosed(file, fileToIgnore)) { continue; } final EditorComposite composite = findFileComposite(file); //LOG.assertTrue(composite != null); if (composite != null && composite.getInitialFileTimeStamp() == file.getTimeStamp()) { // we found non modified file closeFile(file); continue while_label; } } // Search in tabbed pane final VirtualFile selectedFile = getSelectedFile(); for (int i = 0; i < myTabbedPane.getTabCount(); i++) { final VirtualFile file = getFileAt(i); final EditorComposite composite = getEditorAt(i); if (!fileCanBeClosed(file, fileToIgnore)) { continue; } if (!selectedFile.equals(file)) { if (composite.getInitialFileTimeStamp() == file.getTimeStamp()) { // we found non modified file closeFile(file); continue while_label; } } } } // It's non enough to close non-modified files only. Try all other files. // Search in history from less frequently used. { final VirtualFile[] allFiles = getFiles(); final VirtualFile[] histFiles = EditorHistoryManager.getInstance(getManager ().myProject).getFiles(); // first, we search for files not in history for (int i = 0; i != allFiles.length; ++ i) { final VirtualFile file = allFiles[i]; if (fileCanBeClosed(file, fileToIgnore)) { boolean found = false; for (int j = 0; j != histFiles.length; j++) { if (histFiles[j] == file) { found = true; break; } } if (!found) { closeFile(file); continue while_label; } } } for (int i = 0; i < histFiles.length; i++) { final VirtualFile file = histFiles[i]; if (fileCanBeClosed(file, fileToIgnore)) { closeFile(file); continue while_label; } } } // Close first opened file in tabbed pane that isn't a selected one { final VirtualFile selectedFile = getSelectedFile(); for (int i = 0; i < myTabbedPane.getTabCount(); i++) { final VirtualFile file = getFileAt(i); if (!fileCanBeClosed(file, fileToIgnore)) { continue; } if (!selectedFile.equals(file)) { closeFile(file); continue while_label; } else if (i == myTabbedPane.getTabCount() - 1) { // if file is selected one and it's last file that we have no choice as close it closeFile(file); continue while_label; } } } } } finally { setSelectedEditor(selectedComposite); --myInsideTabChange; } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/01e706e8806ba7faf0f7e3c375559eb316bec8c9/EditorWindow.java/buggy/source/com/intellij/openapi/fileEditor/impl/EditorWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
2209,
774,
1225,
12,
6385,
509,
1800,
16,
727,
7269,
812,
31044,
3777,
13,
288,
565,
309,
261,
4811,
5661,
2992,
8485,
422,
446,
13,
288,
1377,
327,
31,
565,
289,
565,
727,
1250,
1746,
3989,
4575,
2697,
3759,
273,
6484,
2628,
18,
588,
1442,
7675,
13384,
67,
3993,
67,
21143,
67,
12669,
67,
15354,
31,
565,
727,
18451,
9400,
3170,
9400,
273,
16625,
6946,
5621,
565,
775,
288,
1377,
3399,
18619,
5661,
3043,
9904,
31,
1377,
1323,
67,
1925,
30,
1377,
1323,
261,
4811,
5661,
2992,
8485,
18,
588,
5661,
1380,
1435,
405,
1800,
597,
3399,
5661,
2992,
8485,
18,
588,
5661,
1380,
1435,
405,
374,
13,
288,
3639,
368,
971,
777,
10920,
854,
26193,
1508,
741,
486,
76,
899,
18,
531,
451,
86,
2460,
732,
903,
336,
316,
926,
3720,
2798,
3639,
1250,
777,
17348,
4704,
12178,
11748,
273,
638,
31,
3639,
364,
261,
474,
277,
273,
3399,
5661,
2992,
8485,
18,
588,
5661,
1380,
1435,
300,
404,
31,
277,
1545,
374,
31,
277,
413,
13,
288,
1850,
727,
7269,
812,
585,
273,
6034,
861,
12,
77,
1769,
1850,
309,
261,
768,
2568,
1919,
7395,
12,
768,
16,
31044,
3777,
3719,
288,
5411,
777,
17348,
4704,
12178,
11748,
273,
629,
31,
5411,
898,
31,
1850,
289,
3639,
289,
3639,
309,
261,
454,
17348,
4704,
12178,
11748,
13,
288,
1850,
327,
31,
3639,
289,
3639,
368,
6161,
358,
1746,
1661,
17,
7342,
1390,
1122,
261,
291,
1269,
316,
1456,
13,
3639,
309,
261,
4412,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
2209,
774,
1225,
12,
6385,
509,
1800,
16,
727,
7269,
812,
31044,
3777,
13,
288,
565,
309,
261,
4811,
5661,
2992,
8485,
422,
446,
13,
288,
1377,
327,
31,
565,
289,
565,
727,
1250,
1746,
3989,
4575,
2697,
3759,
273,
6484,
2628,
18,
588,
1442,
7675,
13384,
67,
3993,
67,
21143,
67,
12669,
67,
15354,
31,
565,
727,
18451,
9400,
3170,
9400,
273,
16625,
6946,
5621,
565,
775,
288,
1377,
3399,
18619,
5661,
3043,
9904,
31,
1377,
1323,
67,
1925,
30,
1377,
1323,
261,
4811,
5661,
2992,
8485,
18,
588,
5661,
1380,
1435,
405,
1800,
597,
3399,
5661,
2992,
8485,
18,
588,
5661,
1380,
1435,
405,
374,
13,
288,
3639,
368,
971,
777,
10920,
854,
26193,
1508,
2
] |
Properties p = new Properties() ; p.put("#SERVLET_URL#",servlet_url) ; p.put("#TOTAL_HITS#", "0") ; p.put("#HITS_RANGE#", "1-10") ; p.put("#START#", "0") ; p.put("#NEXT_PAGE#", "") ; p.put("#PREV_PAGE#", "") ; p.put("#SEARCH_TYPE#", "") ; p.put("#STRING_MATCH#", "") ; p.put("#SEARCH_AREA#", "") ; p.put("#QUEST#", "") ; | Properties p = new Properties() ; p.put("#SERVLET_URL#",servlet_url) ; p.put("#TOTAL_HITS#", "0") ; p.put("#HITS_RANGE#", "1-10") ; p.put("#START#", "0") ; p.put("#NEXT_PAGE#", "") ; p.put("#PREV_PAGE#", "") ; p.put("#SEARCH_TYPE#", "") ; p.put("#STRING_MATCH#", "") ; p.put("#SEARCH_AREA#", "") ; p.put("#QUEST#", "") ; | protected Properties getSummaryProps(String servlet_url) { Properties p = new Properties() ; //Summary p.put("#SERVLET_URL#",servlet_url) ; p.put("#TOTAL_HITS#", "0") ; p.put("#HITS_RANGE#", "1-10") ; p.put("#START#", "0") ; // Next Previous pages p.put("#NEXT_PAGE#", "") ; p.put("#PREV_PAGE#", "") ; //Search parameters p.put("#SEARCH_TYPE#", "") ; p.put("#STRING_MATCH#", "") ; p.put("#SEARCH_AREA#", "") ; p.put("#QUEST#", "") ; p.put("#ONE_RECORD#", "") ; return p ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ff3e4538b226da7dc2bc978e76d28f19f028c207/SearchDocuments.java/buggy/servlets/SearchDocuments.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
6183,
1322,
27804,
5047,
12,
780,
8100,
67,
718,
13,
288,
1377,
6183,
293,
273,
394,
6183,
1435,
274,
565,
368,
4733,
1377,
293,
18,
458,
2932,
7,
31066,
15146,
67,
1785,
7,
3113,
23231,
67,
718,
13,
225,
274,
1377,
293,
18,
458,
2932,
7,
28624,
67,
44,
10158,
7,
3113,
315,
20,
7923,
274,
1377,
293,
18,
458,
2932,
7,
44,
10158,
67,
15928,
7,
3113,
315,
21,
17,
2163,
7923,
274,
1377,
293,
18,
458,
2932,
7,
7570,
7,
3113,
315,
20,
7923,
274,
565,
368,
4804,
19369,
4689,
1377,
293,
18,
458,
2932,
7,
25539,
67,
11219,
7,
3113,
1408,
13,
274,
1377,
293,
18,
458,
2932,
7,
3670,
58,
67,
11219,
7,
3113,
1408,
13,
274,
565,
368,
2979,
1472,
1377,
293,
18,
458,
2932,
7,
17251,
67,
2399,
7,
3113,
1408,
13,
274,
1377,
293,
18,
458,
2932,
7,
5804,
67,
11793,
7,
3113,
1408,
13,
274,
1377,
293,
18,
458,
2932,
7,
17251,
67,
20933,
7,
3113,
1408,
13,
274,
1377,
293,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326,
22398,
316,
326,
981,
30,
282,
4750,
6183,
1322,
27804,
5047,
12,
780,
8100,
67,
718,
13,
288,
1377,
6183,
293,
273,
394,
6183,
1435,
274,
565,
368,
4733,
1377,
293,
18,
458,
2932,
7,
31066,
15146,
67,
1785,
7,
3113,
23231,
67,
718,
13,
225,
274,
1377,
293,
18,
458,
2932,
7,
28624,
67,
44,
10158,
7,
3113,
315,
20,
7923,
274,
1377,
293,
18,
458,
2932,
7,
44,
10158,
67,
15928,
7,
3113,
315,
21,
17,
2163,
7923,
274,
1377,
293,
18,
458,
2932,
7,
7570,
7,
3113,
315,
20,
7923,
274,
565,
368,
4804,
19369,
4689,
1377,
293,
18,
458,
2932,
7,
25539,
67,
11219,
7,
3113,
1408,
13,
274,
1377,
293,
18,
458,
2932,
7,
3670,
58,
67,
11219,
7,
2
] |
log.debug("Replaced certificate in user entry:" + certAttr); | log.debug("Appended new certificate in user entry:" + username+": "+dn); | public boolean storeCertificate(Admin admin, Certificate incert, String username, String password, String cafp, int status, int type, long revocationDate, int revocationReason, ExtendedInformation extendedinformation) throws PublisherException{ log.debug(">storeCertificate(username="+username+")"); // Don't publish non-active certificates if (status != CertificateDataBean.CERT_ACTIVE) { log.info("Not publishing revoked certificate, status="+status); return true; } int ldapVersion = LDAPConnection.LDAP_V3; LDAPConnection lc = createLdapConnection(); String dn = null; String certdn = null; try { // Extract the users DN from the cert. certdn = CertTools.getSubjectDN((X509Certificate) incert); log.debug( "Constructing DN for: " + username); dn = constructLDAPDN(certdn); log.debug("LDAP DN for user " +username +" is " + dn); } catch (Exception e) { log.error("LDAP ERROR: Error decoding input certificate: ", e); throw new PublisherException("Error decoding input certificate."); } // Extract the users email from the cert. String email = CertTools.getEMailAddress((X509Certificate)incert); // Check if the entry is already present, we will update it with the new certificate. LDAPEntry oldEntry = searchOldEntity(username, ldapVersion, lc, dn); // PART 2: Create LDAP entry LDAPEntry newEntry = null; ArrayList modSet = new ArrayList(); LDAPAttributeSet attributeSet = null; String attribute = null; String objectclass = null; if (type == CertificateDataBean.CERTTYPE_ENDENTITY) { log.debug("Publishing end user certificate to " + getHostname()); if (oldEntry != null) { // TODO: Are we the correct type objectclass? modSet = getModificationSet(oldEntry, certdn, true, true); } else { objectclass = getUserObjectClass(); // just used for logging attributeSet = getAttributeSet(incert, getUserObjectClass(), certdn, true, true, password, extendedinformation); } if (email != null) { //log.debug("Adding email attribute: "+email); LDAPAttribute mailAttr = new LDAPAttribute("mail", email); if (oldEntry != null) { modSet.add(new LDAPModification(LDAPModification.REPLACE, mailAttr)); } else { attributeSet.add(mailAttr); } } try { attribute = getUserCertAttribute(); LDAPAttribute certAttr = new LDAPAttribute(getUserCertAttribute(), incert.getEncoded()); if (oldEntry != null) { if (getAddMultipleCertificates()) { modSet.add(new LDAPModification(LDAPModification.ADD, certAttr)); log.debug("Replaced certificate in user entry:" + certAttr); } else { modSet.add(new LDAPModification(LDAPModification.REPLACE, certAttr)); log.debug("Appended new certificate in user entry:" + certAttr); } } else { attributeSet.add(certAttr); log.debug("Added new certificate to user entry:" + certAttr); } } catch (CertificateEncodingException e) { log.error("LDAP ERROR: Error encoding certificate when storing in LDAP: ", e); throw new PublisherException("Error encoding certificate when storing in LDAP."); } } else if ((type == CertificateDataBean.CERTTYPE_SUBCA) || (type == CertificateDataBean.CERTTYPE_ROOTCA)) { log.debug("Publishing CA certificate to " + getHostname()); if (oldEntry != null) { modSet = getModificationSet(oldEntry, certdn, false, false); } else { objectclass = getCAObjectClass(); // just used for logging attributeSet = getAttributeSet(incert, getCAObjectClass(), certdn, true, false, password, extendedinformation); } try { attribute = getCACertAttribute(); LDAPAttribute certAttr = new LDAPAttribute(getCACertAttribute(), incert.getEncoded()); if (oldEntry != null) { modSet.add(new LDAPModification(LDAPModification.REPLACE, certAttr)); } else { attributeSet.add(certAttr); // Also create using the crlattribute, it may be required LDAPAttribute crlAttr = new LDAPAttribute(getCRLAttribute(), fakecrl); attributeSet.add(crlAttr); // Also create using the arlattribute, it may be required LDAPAttribute arlAttr = new LDAPAttribute(getARLAttribute(), fakecrl); attributeSet.add(arlAttr); log.debug("Added (fake) attribute for CRL and ARL."); } } catch (CertificateEncodingException e) { log.error("LDAP ERROR: Error encoding certificate when storing in LDAP: ", e); throw new PublisherException("Error encoding certificate when storing in LDAP."); } } else { log.info("Certificate of type '" + type + "' will not be published."); throw new PublisherException("Certificate of type '" + type + "' will not be published."); } // PART 3: MODIFICATION AND ADDITION OF NEW USERS try { lc.connect(getHostname(), Integer.parseInt(getPort())); // authenticate to the server lc.bind(ldapVersion, getLoginDN(), getLoginPassword().getBytes("UTF8")); // Add or modify the entry if (oldEntry != null && getModifyExistingUsers()) { LDAPModification[] mods = new LDAPModification[modSet.size()]; mods = (LDAPModification[])modSet.toArray(mods); lc.modify(dn, mods); log.info("LDAP CERT: Modified object: " + dn + " successfully."); } else { if(this.getCreateNonExisingUsers()){ if (oldEntry == null) { newEntry = new LDAPEntry(dn, attributeSet); lc.add(newEntry); log.info("LDAP CERT: Added object: " + dn + " successfully."); } } } } catch (LDAPException e) { log.error("LDAP ERROR: Error storing certificate (" + attribute + ") in LDAP (" + objectclass + ") for DN (" + dn + "): ", e); throw new PublisherException("Error storing certificate (" + attribute + ") in LDAP (" + objectclass + ") for DN (" + dn + ")."); } catch (UnsupportedEncodingException e) { log.error("LDAP ERROR: Can't decode password for LDAP login: "+getLoginPassword(), e); throw new PublisherException("Can't decode password when storing (" + attribute + ") in LDAP (" + objectclass + ") for DN (" + dn + ")."); } finally { // disconnect with the server try { lc.disconnect(); } catch (LDAPException e) { log.error("LDAP ERROR: LdapPublisher: LDAP disconnection failed: ", e); } } log.debug("<storeCertificate()"); return true; } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/e51ab5d1371d32f46ec7993ec3b00ccce80f84ef/LdapPublisher.java/buggy/src/java/org/ejbca/core/model/ca/publisher/LdapPublisher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1707,
4719,
12,
4446,
3981,
16,
6660,
7290,
1051,
16,
514,
2718,
16,
514,
2201,
16,
514,
276,
1727,
84,
16,
509,
1267,
16,
509,
618,
16,
1525,
24158,
1626,
16,
509,
24158,
8385,
16,
14094,
5369,
7021,
13117,
13,
1216,
21932,
503,
95,
3639,
613,
18,
4148,
2932,
34,
2233,
4719,
12,
5053,
1546,
15,
5053,
9078,
2225,
1769,
3639,
368,
7615,
1404,
3808,
1661,
17,
3535,
12522,
3639,
309,
261,
2327,
480,
6660,
751,
3381,
18,
22367,
67,
13301,
13,
288,
540,
202,
1330,
18,
1376,
2932,
1248,
23636,
22919,
4944,
16,
1267,
1546,
15,
2327,
1769,
540,
202,
2463,
638,
31,
3639,
289,
3639,
509,
8079,
1444,
273,
11916,
1952,
18,
15496,
67,
58,
23,
31,
3639,
11916,
1952,
9109,
273,
752,
18437,
1952,
5621,
3639,
514,
8800,
273,
446,
31,
3639,
514,
3320,
5176,
273,
446,
31,
3639,
775,
288,
5411,
368,
8152,
326,
3677,
18001,
628,
326,
3320,
18,
540,
202,
7593,
5176,
273,
11921,
10348,
18,
588,
6638,
8609,
12443,
60,
5995,
4719,
13,
7290,
1051,
1769,
5411,
613,
18,
4148,
12,
315,
7249,
310,
18001,
364,
30,
315,
397,
2718,
1769,
5411,
8800,
273,
4872,
15496,
8609,
12,
7593,
5176,
1769,
5411,
613,
18,
4148,
2932,
15496,
18001,
364,
729,
315,
397,
5053,
397,
6,
353,
315,
397,
8800,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
1636,
2932,
15496,
5475,
30,
1068,
13547,
810,
4944,
30,
3104,
425,
1769,
13491,
604,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1707,
4719,
12,
4446,
3981,
16,
6660,
7290,
1051,
16,
514,
2718,
16,
514,
2201,
16,
514,
276,
1727,
84,
16,
509,
1267,
16,
509,
618,
16,
1525,
24158,
1626,
16,
509,
24158,
8385,
16,
14094,
5369,
7021,
13117,
13,
1216,
21932,
503,
95,
3639,
613,
18,
4148,
2932,
34,
2233,
4719,
12,
5053,
1546,
15,
5053,
9078,
2225,
1769,
3639,
368,
7615,
1404,
3808,
1661,
17,
3535,
12522,
3639,
309,
261,
2327,
480,
6660,
751,
3381,
18,
22367,
67,
13301,
13,
288,
540,
202,
1330,
18,
1376,
2932,
1248,
23636,
22919,
4944,
16,
1267,
1546,
15,
2327,
1769,
540,
202,
2463,
638,
31,
3639,
289,
3639,
509,
8079,
1444,
273,
11916,
1952,
18,
15496,
2
] |
ExecSQL("commit"); ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); | execSQL("commit"); execSQL("begin"); execSQL(getIsolationLevelSQL()); | public void commit() throws SQLException { if (autoCommit) return ; if (haveMinimumServerVersion("7.3")) { ExecSQL("commit; " + getIsolationLevelSQL()); } else if (haveMinimumServerVersion("7.1")) { ExecSQL("commit;begin;" + getIsolationLevelSQL()); } else { ExecSQL("commit"); ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); } } | 46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/16a30346c86590fbdcd83cacd2a0a9dbd2cd00dc/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3294,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
6079,
5580,
13,
1082,
202,
2463,
274,
202,
202,
430,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
23,
6,
3719,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
7371,
31,
315,
397,
14279,
12255,
2355,
3997,
10663,
202,
202,
97,
202,
202,
12107,
309,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
21,
6,
3719,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
7371,
31,
10086,
4868,
397,
14279,
12255,
2355,
3997,
10663,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
7371,
8863,
1082,
202,
1905,
3997,
2932,
10086,
8863,
1082,
202,
1905,
3997,
12,
588,
22982,
2355,
3997,
10663,
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,
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
482,
918,
3294,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
6079,
5580,
13,
1082,
202,
2463,
274,
202,
202,
430,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
23,
6,
3719,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
7371,
31,
315,
397,
14279,
12255,
2355,
3997,
10663,
202,
202,
97,
202,
202,
12107,
309,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
21,
6,
3719,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
7371,
31,
10086,
4868,
397,
14279,
12255,
2355,
3997,
10663,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
7371,
8863,
1082,
202,
1905,
3997,
2932,
10086,
8863,
1082,
202,
1905,
3997,
12,
588,
22982,
2355,
2
] |
UpdateContext(JSDebugger db, Context cx) { | UpdateContext(Main db, Context cx) { | UpdateContext(JSDebugger db, Context cx) { this.db = db; this.cx = cx; this.engine = cx.getDebuggableEngine(); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3d11fc509c101d1e08d6e3bf1871ee5cc04b89ae/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2315,
1042,
12,
6479,
24113,
1319,
16,
1772,
9494,
13,
288,
202,
2211,
18,
1966,
273,
1319,
31,
202,
2211,
18,
71,
92,
273,
9494,
31,
202,
2211,
18,
8944,
273,
9494,
18,
588,
2829,
8455,
4410,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2315,
1042,
12,
6479,
24113,
1319,
16,
1772,
9494,
13,
288,
202,
2211,
18,
1966,
273,
1319,
31,
202,
2211,
18,
71,
92,
273,
9494,
31,
202,
2211,
18,
8944,
273,
9494,
18,
588,
2829,
8455,
4410,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (IExaltedRuleSet ruleSet : ExaltedRuleSet.values()) { | for (IExaltedRuleSet ruleSet : ExaltedRuleSet.getRuleSetsByEdition(ExaltedEdition.FirstEdition)) { | public void initPresentation(CharmCascadeModuleView view) { final ICascadeView cascadeView = view.addCascadeView(viewProperties); this.selectionListener = new CascadeCharmGroupChangeListener( cascadeView, viewProperties, this, getTemplateRegistry()); for (IExaltedRuleSet ruleSet : ExaltedRuleSet.values()) { charmMapsByRules.put(ruleSet, new CharmTreeIdentificateMap()); } List<IIdentificate> supportedCharmTypes = new ArrayList<IIdentificate>(); List<ICharmGroup> allCharmGroups = new ArrayList<ICharmGroup>(); for (CharacterType type : CharacterType.values()) { ICharacterTemplate defaultTemplate = getTemplateRegistry().getDefaultTemplate(type, ExaltedEdition.FirstEdition); if (defaultTemplate.getMagicTemplate().getCharmTemplate().knowsCharms()) { for (IExaltedRuleSet ruleSet : ExaltedRuleSet.values()) { CharmTree charmTree = new CharmTree(defaultTemplate.getMagicTemplate().getCharmTemplate(), ruleSet); getCharmTreeMap(ruleSet).put(type, charmTree); allCharmGroups.addAll(Arrays.asList(charmTree.getAllCharmGroups())); } supportedCharmTypes.add(type); } } ICharacterTemplate siderealTemplate = getTemplateRegistry().getDefaultTemplate( CharacterType.SIDEREAL, ExaltedEdition.FirstEdition); for (IExaltedRuleSet ruleSet : ExaltedRuleSet.values()) { ICharmTree martialArtsTree = new MartialArtsCharmTree( siderealTemplate.getMagicTemplate().getCharmTemplate(), ruleSet); getCharmTreeMap(ruleSet).put(MARTIAL_ARTS, martialArtsTree); allCharmGroups.addAll(Arrays.asList(martialArtsTree.getAllCharmGroups())); } supportedCharmTypes.add(MARTIAL_ARTS); createCharmTypeSelector( supportedCharmTypes.toArray(new IIdentificate[supportedCharmTypes.size()]), cascadeView, "CharmTreeView.GUI.CharmType"); //$NON-NLS-1$ createCharmGroupSelector( cascadeView, selectionListener, allCharmGroups.toArray(new ICharmGroup[allCharmGroups.size()])); initRules(cascadeView); initCharmTypeSelectionListening(cascadeView); cascadeView.addDocumentLoadedListener(new IDocumentLoadedListener() { public void documentLoaded() { selectionListener.updateColors(); } }); } | 50281 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50281/3ae014ebd46f5dc96b6db56d9fd73db113ae2202/CascadePresenter.java/clean/Charm_Cascades/src/net/sf/anathema/cascades/presenter/CascadePresenter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
6351,
367,
12,
22980,
39,
10963,
3120,
1767,
1476,
13,
288,
565,
727,
26899,
10963,
1767,
17599,
1767,
273,
1476,
18,
1289,
39,
10963,
1767,
12,
1945,
2297,
1769,
565,
333,
18,
10705,
2223,
273,
394,
385,
10963,
22980,
1114,
15744,
12,
3639,
17599,
1767,
16,
3639,
1476,
2297,
16,
3639,
333,
16,
3639,
10646,
4243,
10663,
565,
364,
261,
45,
424,
287,
2344,
21474,
31897,
294,
1312,
287,
2344,
21474,
18,
588,
2175,
2785,
858,
41,
1460,
12,
424,
287,
2344,
41,
1460,
18,
3759,
41,
1460,
3719,
288,
1377,
14927,
8903,
858,
4478,
18,
458,
12,
5345,
694,
16,
394,
27412,
2471,
6106,
1507,
340,
863,
10663,
565,
289,
565,
987,
32,
45,
6106,
1507,
340,
34,
3260,
22980,
2016,
273,
394,
2407,
32,
45,
6106,
1507,
340,
34,
5621,
565,
987,
32,
45,
22980,
1114,
34,
777,
22980,
3621,
273,
394,
2407,
32,
45,
22980,
1114,
34,
5621,
565,
364,
261,
7069,
559,
618,
294,
6577,
559,
18,
2372,
10756,
288,
1377,
467,
7069,
2283,
805,
2283,
273,
10646,
4243,
7675,
588,
1868,
2283,
12,
723,
16,
1312,
287,
2344,
41,
1460,
18,
3759,
41,
1460,
1769,
1377,
309,
261,
1886,
2283,
18,
588,
19289,
2283,
7675,
588,
22980,
2283,
7675,
79,
3338,
87,
2156,
959,
10756,
288,
3639,
364,
261,
45,
424,
287,
2344,
21474,
31897,
294,
1312,
287,
2344,
21474,
18,
588,
2175,
2785,
858,
41,
1460,
12,
424,
287,
2344,
41,
1460,
18,
3759,
41,
1460,
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,
282,
1071,
918,
1208,
6351,
367,
12,
22980,
39,
10963,
3120,
1767,
1476,
13,
288,
565,
727,
26899,
10963,
1767,
17599,
1767,
273,
1476,
18,
1289,
39,
10963,
1767,
12,
1945,
2297,
1769,
565,
333,
18,
10705,
2223,
273,
394,
385,
10963,
22980,
1114,
15744,
12,
3639,
17599,
1767,
16,
3639,
1476,
2297,
16,
3639,
333,
16,
3639,
10646,
4243,
10663,
565,
364,
261,
45,
424,
287,
2344,
21474,
31897,
294,
1312,
287,
2344,
21474,
18,
588,
2175,
2785,
858,
41,
1460,
12,
424,
287,
2344,
41,
1460,
18,
3759,
41,
1460,
3719,
288,
1377,
14927,
8903,
858,
4478,
18,
458,
12,
5345,
694,
16,
394,
27412,
2471,
6106,
1507,
340,
863,
10663,
565,
289,
565,
987,
32,
45,
2
] |
Numeric sum = numeric.add(l.asNumeric()); | NumericProperty sum = numeric.add(l.asNumeric()); | public Numeric asNumeric() { Numeric numeric = null; for (Enumeration e = lengths.elements(); e.hasMoreElements();) { Length l = (Length) e.nextElement(); if (numeric == null) { numeric = l.asNumeric(); } else { try { Numeric sum = numeric.add(l.asNumeric()); numeric = sum; } catch (PropertyException pe) { System.err.println( "Can't convert MixedLength to Numeric: " + pe); } } } return numeric; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/d9a8ac86719e48e941fde9f58e7e579fe67495ce/MixedLength.java/buggy/src/java/org/apache/fop/datatypes/MixedLength.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16980,
487,
9902,
1435,
288,
3639,
16980,
6389,
273,
446,
31,
3639,
364,
261,
21847,
425,
273,
10917,
18,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
11311,
328,
273,
261,
1782,
13,
425,
18,
4285,
1046,
5621,
5411,
309,
261,
5246,
422,
446,
13,
288,
7734,
6389,
273,
328,
18,
345,
9902,
5621,
5411,
289,
469,
288,
7734,
775,
288,
10792,
16980,
1396,
2142,
273,
6389,
18,
1289,
12,
80,
18,
345,
9902,
10663,
10792,
6389,
273,
2142,
31,
7734,
289,
1044,
261,
1396,
503,
2804,
13,
288,
10792,
2332,
18,
370,
18,
8222,
12,
8227,
315,
2568,
1404,
1765,
24725,
1782,
358,
16980,
30,
315,
397,
2804,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
6389,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16980,
487,
9902,
1435,
288,
3639,
16980,
6389,
273,
446,
31,
3639,
364,
261,
21847,
425,
273,
10917,
18,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
11311,
328,
273,
261,
1782,
13,
425,
18,
4285,
1046,
5621,
5411,
309,
261,
5246,
422,
446,
13,
288,
7734,
6389,
273,
328,
18,
345,
9902,
5621,
5411,
289,
469,
288,
7734,
775,
288,
10792,
16980,
1396,
2142,
273,
6389,
18,
1289,
12,
80,
18,
345,
9902,
10663,
10792,
6389,
273,
2142,
31,
7734,
289,
1044,
261,
1396,
503,
2804,
13,
288,
10792,
2332,
18,
370,
18,
8222,
12,
8227,
315,
2568,
1404,
1765,
24725,
1782,
358,
16980,
30,
315,
397,
2804,
1769,
7734,
289,
5411,
289,
2
] |
final int maxVars = theData.itsVariableTable.size(); | final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK, // sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = theData.itsVariableTable.getParameterCount(); if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: starting pc of catch block // catchStack[2 * i + 1]: starting pc of finally block catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Exception ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, OTHER = 2; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else { errObj = ex; exType = OTHER; } if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (tryStackTop > 0) { --tryStackTop; scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { pc = catchStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = catchStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; else throw (RuntimeException)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/bd4398308e7a90b8c0479568416af0bb30da587c/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
7734,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
540,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
540,
727,
509,
4235,
61,
67,
19444,
67,
2664,
4464,
273,
15234,
67,
2664,
4464,
397,
943,
1333,
1031,
31,
759,
2110,
63,
20,
1648,
277,
411,
8350,
67,
2664,
4464,
14542,
2110,
501,
759,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
759,
2110,
63,
14922,
67,
2664,
4464,
1648,
277,
411,
4235,
61,
67,
19444,
67,
2664,
4464,
14542,
1399,
364,
394,
5814,
19,
407,
278,
30752,
759,
2110,
63,
17805,
67,
19444,
67,
2664,
4464,
1648,
277,
14542,
775,
8124,
759,
1347,
374,
1648,
277,
411,
15234,
67,
2664,
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,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
2
] |
ArrayList breaks = new ArrayList(); | List breaks = new ArrayList(); | protected BreakPoss getHeight(Body lm, LayoutContext context) { int ipd = context.getRefIPD(); BreakPoss bp; MinOptMax stackSize = new MinOptMax(); LayoutContext childLC = new LayoutContext(0); childLC.setStackLimit(context.getStackLimit()); childLC.setRefIPD(ipd); lm.setColumns(columns); ArrayList breaks = new ArrayList(); while (!lm.isFinished()) { if ((bp = lm.getNextBreakPoss(childLC)) != null) { stackSize.add(bp.getStackingSize()); breaks.add(bp); childLC.setStackLimit(MinOptMax.subtract( context.getStackLimit(), stackSize)); } } BreakPoss breakPoss = new BreakPoss( new SectionPosition(this, breaks.size() - 1, breaks)); breakPoss.setStackingSize(stackSize); return breakPoss; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/a62f977d812bb273863a574255920ca141eec969/TableLayoutManager.java/clean/src/org/apache/fop/layoutmgr/table/TableLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
17030,
1616,
87,
9263,
12,
2250,
14966,
16,
9995,
1042,
819,
13,
288,
3639,
509,
2359,
72,
273,
819,
18,
588,
1957,
2579,
40,
5621,
3639,
17030,
1616,
87,
9107,
31,
3639,
5444,
6179,
2747,
2110,
1225,
273,
394,
5444,
6179,
2747,
5621,
3639,
9995,
1042,
1151,
13394,
273,
394,
9995,
1042,
12,
20,
1769,
3639,
1151,
13394,
18,
542,
2624,
3039,
12,
2472,
18,
588,
2624,
3039,
10663,
3639,
1151,
13394,
18,
542,
1957,
2579,
40,
12,
625,
72,
1769,
3639,
14966,
18,
542,
3380,
12,
5112,
1769,
3639,
987,
16217,
273,
394,
2407,
5621,
3639,
1323,
16051,
25972,
18,
291,
10577,
10756,
288,
5411,
309,
14015,
17152,
273,
14966,
18,
588,
2134,
7634,
1616,
87,
12,
3624,
13394,
3719,
480,
446,
13,
288,
7734,
2110,
1225,
18,
1289,
12,
17152,
18,
588,
2624,
310,
1225,
10663,
7734,
16217,
18,
1289,
12,
17152,
1769,
7734,
1151,
13394,
18,
542,
2624,
3039,
12,
2930,
6179,
2747,
18,
1717,
1575,
12,
29159,
819,
18,
588,
2624,
3039,
9334,
2110,
1225,
10019,
5411,
289,
3639,
289,
3639,
17030,
1616,
87,
898,
1616,
87,
273,
394,
17030,
1616,
87,
12,
1171,
9079,
394,
10092,
2555,
12,
2211,
16,
16217,
18,
1467,
1435,
300,
404,
16,
16217,
10019,
3639,
898,
1616,
87,
18,
542,
2624,
310,
1225,
12,
3772,
1225,
1769,
3639,
327,
898,
1616,
87,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
17030,
1616,
87,
9263,
12,
2250,
14966,
16,
9995,
1042,
819,
13,
288,
3639,
509,
2359,
72,
273,
819,
18,
588,
1957,
2579,
40,
5621,
3639,
17030,
1616,
87,
9107,
31,
3639,
5444,
6179,
2747,
2110,
1225,
273,
394,
5444,
6179,
2747,
5621,
3639,
9995,
1042,
1151,
13394,
273,
394,
9995,
1042,
12,
20,
1769,
3639,
1151,
13394,
18,
542,
2624,
3039,
12,
2472,
18,
588,
2624,
3039,
10663,
3639,
1151,
13394,
18,
542,
1957,
2579,
40,
12,
625,
72,
1769,
3639,
14966,
18,
542,
3380,
12,
5112,
1769,
3639,
987,
16217,
273,
394,
2407,
5621,
3639,
1323,
16051,
25972,
18,
291,
10577,
10756,
288,
5411,
309,
14015,
17152,
273,
14966,
18,
588,
2134,
7634,
1616,
87,
2
] |
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <[email protected]> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // We also ask the DB for certain properties (i.e. DatabaseEncoding at this time) // firstWarning = null; java.sql.ResultSet initrset = ExecSQL("set datestyle to 'ISO'; select getdatabaseencoding()"); String dbEncoding = null; //retrieve DB properties if(initrset.next()) { //handle DatabaseEncoding dbEncoding = initrset.getString(1); //convert from the PostgreSQL name to the Java name if (dbEncoding.equals("SQL_ASCII")) { dbEncoding = "ASCII"; } else if (dbEncoding.equals("UNICODE")) { dbEncoding = "UTF8"; } else if (dbEncoding.equals("LATIN1")) { dbEncoding = "ISO8859_1"; } else if (dbEncoding.equals("LATIN2")) { dbEncoding = "ISO8859_2"; } else if (dbEncoding.equals("LATIN3")) { dbEncoding = "ISO8859_3"; } else if (dbEncoding.equals("LATIN4")) { dbEncoding = "ISO8859_4"; } else if (dbEncoding.equals("LATIN5")) { dbEncoding = "ISO8859_5"; } else if (dbEncoding.equals("LATIN6")) { dbEncoding = "ISO8859_6"; } else if (dbEncoding.equals("LATIN7")) { dbEncoding = "ISO8859_7"; } else if (dbEncoding.equals("LATIN8")) { dbEncoding = "ISO8859_8"; } else if (dbEncoding.equals("LATIN9")) { dbEncoding = "ISO8859_9"; } else if (dbEncoding.equals("EUC_JP")) { dbEncoding = "EUC_JP"; } else if (dbEncoding.equals("EUC_CN")) { dbEncoding = "EUC_CN"; } else if (dbEncoding.equals("EUC_KR")) { dbEncoding = "EUC_KR"; } else if (dbEncoding.equals("EUC_TW")) { dbEncoding = "EUC_TW"; } else if (dbEncoding.equals("KOI8")) { dbEncoding = "KOI8_R"; } else if (dbEncoding.equals("WIN")) { dbEncoding = "Cp1252"; } else { dbEncoding = null; } } //Set the encoding for this connection //Since the encoding could be specified or obtained from the DB we use the //following order: // 1. passed as a property // 2. value from DB if supported by current JVM // 3. default for JVM (leave encoding null) String passedEncoding = info.getProperty("charSet"); // could be null if (passedEncoding != null) { encoding = passedEncoding; } else { if (dbEncoding != null) { //test DB encoding try { "TEST".getBytes(dbEncoding); //no error the encoding is supported by the current JVM encoding = dbEncoding; } catch (UnsupportedEncodingException uee) { //dbEncoding is not supported by the current JVM encoding = null; } } else { encoding = null; } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/d832cd2773997d717fa8a1773bc600ff10ce33eb/Connection.java/clean/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
2201,
1790,
854,
3315,
565,
368,
1220,
9145,
345,
285,
1230,
9938,
1347,
326,
1004,
4692,
326,
1790,
1177,
565,
368,
434,
6742,
9334,
471,
353,
279,
2975,
5073,
603,
326,
2699,
6035,
565,
309,
12,
1376,
18,
588,
1396,
2932,
1355,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
1355,
8863,
565,
309,
12,
1376,
18,
588,
1396,
2932,
3664,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
5466,
8863,
3639,
333,
67,
7407,
273,
302,
31,
565,
333,
67,
718,
273,
880,
31,
565,
22116,
67,
22366,
273,
2063,
31,
565,
22116,
67,
13784,
273,
1123,
18,
588,
1396,
2932,
3664,
8863,
565,
22116,
67,
4714,
273,
1123,
18,
588,
1396,
2932,
1355,
8863,
565,
22116,
67,
6354,
273,
1756,
31,
565,
22116,
67,
8908,
273,
1479,
31,
565,
22116,
67,
8608,
273,
20695,
67,
16234,
31,
565,
368,
4494,
1221,
326,
2172,
1459,
565,
775,
1377,
288,
202,
8365,
67,
3256,
273,
394,
22116,
67,
1228,
12,
2564,
16,
1756,
1769,
1377,
289,
1044,
261,
5215,
503,
276,
338,
13,
288,
202,
759,
25808,
635,
453,
847,
13076,
411,
84,
847,
36,
266,
736,
84,
18,
3341,
18,
19445,
34,
202,
759,
8289,
503,
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,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
2201,
1790,
854,
3315,
565,
368,
1220,
9145,
345,
285,
1230,
9938,
1347,
326,
1004,
4692,
326,
1790,
1177,
565,
368,
434,
6742,
9334,
471,
353,
279,
2975,
5073,
603,
326,
2699,
6035,
565,
309,
12,
1376,
18,
588,
1396,
2932,
1355,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
1355,
8863,
565,
309,
12,
1376,
18,
588,
1396,
2932,
3664,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
2
] |
||
updateTitle(); | titleHandler.buildTitle(null, (ArgoDiagram) target); | public void targetSet(TargetEvent e) { Object target = e.getNewTarget(); if (target instanceof ArgoDiagram) { updateTitle(); } determineRemoveEnabled(); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/38c940397a741f46590371c7b449295d1a7a58ff/ProjectBrowser.java/clean/src_new/org/argouml/ui/ProjectBrowser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1018,
694,
12,
2326,
1133,
425,
13,
288,
3639,
1033,
1018,
273,
425,
18,
588,
1908,
2326,
5621,
3639,
309,
261,
3299,
1276,
1201,
3240,
14058,
1940,
13,
288,
5411,
2077,
1503,
18,
3510,
4247,
12,
2011,
16,
261,
686,
3240,
14058,
1940,
13,
1018,
1769,
3639,
289,
3639,
4199,
3288,
1526,
5621,
565,
289,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1018,
694,
12,
2326,
1133,
425,
13,
288,
3639,
1033,
1018,
273,
425,
18,
588,
1908,
2326,
5621,
3639,
309,
261,
3299,
1276,
1201,
3240,
14058,
1940,
13,
288,
5411,
2077,
1503,
18,
3510,
4247,
12,
2011,
16,
261,
686,
3240,
14058,
1940,
13,
1018,
1769,
3639,
289,
3639,
4199,
3288,
1526,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void handleStale(IObservable source) { processStalenessChange(source, true); | public void handleStale(StaleEvent event) { processStalenessChange((IObservable) event.getSource(), true); | public void handleStale(IObservable source) { processStalenessChange(source, true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/StalenessTracker.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/StalenessTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
19155,
12,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
19155,
12,
4294,
3745,
1084,
13,
288,
1082,
202,
2567,
510,
287,
15681,
3043,
12,
3168,
16,
638,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
task = connector.createTaskFromExistingKey(repository, Integer.MAX_VALUE + "", null); assertNull(task); | try { task = connector.createTaskFromExistingKey(repository, Integer.MAX_VALUE + "", null); fail("Expected CoreException"); } catch (CoreException e) { } | protected void createTaskFromExistingKey() throws CoreException { String id = data.tickets.get(0).getId() + ""; ITask task = connector.createTaskFromExistingKey(repository, id, null); assertNotNull(task); assertEquals(TracTask.class, task.getClass()); assertTrue(task.getDescription().contains("summary1")); assertEquals(repository.getUrl() + ITracClient.TICKET_URL + id, task.getUrl()); task = connector.createTaskFromExistingKey(repository, "does not exist", null); assertNull(task); task = connector.createTaskFromExistingKey(repository, Integer.MAX_VALUE + "", null); assertNull(task); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/c3c3854f4cb13f9dffbefe18ff70b6163534eea2/TracRepositoryConnectorTest.java/buggy/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
2174,
1265,
9895,
653,
1435,
1216,
30015,
288,
202,
202,
780,
612,
273,
501,
18,
6470,
2413,
18,
588,
12,
20,
2934,
26321,
1435,
397,
1408,
31,
202,
202,
1285,
835,
1562,
273,
8703,
18,
2640,
2174,
1265,
9895,
653,
12,
9071,
16,
612,
16,
446,
1769,
202,
202,
11231,
5962,
12,
4146,
1769,
202,
202,
11231,
8867,
12,
1609,
71,
2174,
18,
1106,
16,
1562,
18,
588,
797,
10663,
202,
202,
11231,
5510,
12,
4146,
18,
588,
3291,
7675,
12298,
2932,
7687,
21,
7923,
1769,
202,
202,
11231,
8867,
12,
9071,
18,
588,
1489,
1435,
397,
467,
1609,
71,
1227,
18,
56,
16656,
1584,
67,
1785,
397,
612,
16,
1562,
18,
588,
1489,
10663,
202,
202,
4146,
273,
8703,
18,
2640,
2174,
1265,
9895,
653,
12,
9071,
16,
315,
20657,
486,
1005,
3113,
446,
1769,
202,
202,
11231,
2041,
12,
4146,
1769,
202,
202,
4146,
273,
8703,
18,
2640,
2174,
1265,
9895,
653,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
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
2174,
1265,
9895,
653,
1435,
1216,
30015,
288,
202,
202,
780,
612,
273,
501,
18,
6470,
2413,
18,
588,
12,
20,
2934,
26321,
1435,
397,
1408,
31,
202,
202,
1285,
835,
1562,
273,
8703,
18,
2640,
2174,
1265,
9895,
653,
12,
9071,
16,
612,
16,
446,
1769,
202,
202,
11231,
5962,
12,
4146,
1769,
202,
202,
11231,
8867,
12,
1609,
71,
2174,
18,
1106,
16,
1562,
18,
588,
797,
10663,
202,
202,
11231,
5510,
12,
4146,
18,
588,
3291,
7675,
12298,
2932,
7687,
21,
7923,
1769,
202,
202,
11231,
8867,
12,
9071,
18,
588,
1489,
1435,
397,
467,
1609,
71,
1227,
18,
56,
16656,
1584,
67,
1785,
397,
612,
16,
1562,
18,
588,
1489,
2
] |
Object displayOptions = null; try { r.setVar("ome", root); | ImageNode image = (ImageNode) getChild(root, "Image", 0); CustomAttributesNode ca = (CustomAttributesNode) getChild(image, "CustomAttributes", 0); DisplayOptionsNode displayOptions = (DisplayOptionsNode) getChild(ca, "DisplayOptions", ndx); | public void setDefaultDisplaySettings(Integer i) { int ndx = i == null ? 0 : i.intValue(); /* CTR TODO FIX THIS if (i == null) i = new Integer(0); Float sizeCAsFloat = getPixelSizeC(i); if (sizeCAsFloat == null) { //log.warn("Out of order access or missing metadata 'sizeC'."); return; } int sizeC = sizeCAsFloat.intValue(); // Sanity check if (sizeC < 1) { //log.warn("Ignoring request for default display options: sizeC < 1."); return; } Object displayOptions = null; try { r.setVar("ome", root); Object image = getChild(root, "Image", i); r.setVar("image", image); r.exec("import org.openmicroscopy.xml.st.DisplayOptionsNode"); displayOptions = getChild(image, "DisplayOptions", i); r.setVar("displayOptions", displayOptions); // The strategy here is to use the already populated (hopefully :)) // global minimum and global maximum for the black and white levels. Object[] displayChannels = createRGBDisplayChannels(sizeC, displayOptions); Object greyscaleChannel = createGreyscaleDisplayChannel(displayOptions, new Integer(sizeC + 1)); // Populate the RGB channels if (displayChannels.length > 0) { // Red only r.setVar("channel", displayChannels[0]); r.exec("displayOptions.setRedChannel(channel)"); r.exec("displayOptions.setRedChannelOn(Boolean.TRUE)"); } if (displayChannels.length > 1) { // Red and green r.setVar("channel", displayChannels[1]); r.exec("displayOptions.setGreenChannel(channel)"); r.exec("displayOptions.setGreenChannelOn(Boolean.TRUE)"); } if (displayChannels.length > 2) { // Red, green and blue r.setVar("channel", displayChannels[2]); r.exec("displayOptions.setBlueChannel(channel)"); r.exec("displayOptions.setBlueChannelOn(Boolean.TRUE)"); } // Populate the greyscale channel r.setVar("channel", greyscaleChannel); r.exec("displayOptions.setGreyChannel(channel)"); r.exec("displayOptions.setGreyChannelOn(Boolean.TRUE)"); } catch (ReflectException e) { // We want potential errors in the reflected universe to be exposed to a // developer. //log.warn(e); } */ } | 55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/26045e26581487ca0ee88577433c810b05547aa6/OMEXMLMetadataStore.java/buggy/loci/formats/OMEXMLMetadataStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9277,
4236,
2628,
12,
4522,
277,
13,
288,
565,
509,
5346,
92,
273,
277,
422,
446,
692,
374,
294,
277,
18,
474,
620,
5621,
565,
1748,
31568,
2660,
8563,
20676,
565,
309,
261,
77,
422,
446,
13,
277,
273,
394,
2144,
12,
20,
1769,
565,
5450,
963,
24900,
4723,
273,
1689,
3556,
1225,
39,
12,
77,
1769,
565,
309,
261,
1467,
24900,
4723,
422,
446,
13,
288,
1377,
368,
1330,
18,
8935,
2932,
1182,
434,
1353,
2006,
578,
3315,
1982,
296,
1467,
39,
14550,
1769,
1377,
327,
31,
565,
289,
565,
509,
963,
39,
273,
963,
24900,
4723,
18,
474,
620,
5621,
565,
368,
23123,
866,
565,
309,
261,
1467,
39,
411,
404,
13,
288,
1377,
368,
1330,
18,
8935,
2932,
21702,
590,
364,
805,
2562,
702,
30,
963,
39,
411,
404,
1199,
1769,
1377,
327,
31,
565,
289,
565,
1033,
2562,
1320,
273,
446,
31,
565,
775,
288,
1377,
436,
18,
542,
1537,
2932,
1742,
3113,
1365,
1769,
1377,
1033,
1316,
273,
8154,
12,
3085,
16,
315,
2040,
3113,
277,
1769,
1377,
436,
18,
542,
1537,
2932,
2730,
3113,
1316,
1769,
1377,
436,
18,
4177,
2932,
5666,
2358,
18,
3190,
14458,
1017,
1101,
18,
2902,
18,
334,
18,
4236,
1320,
907,
8863,
1377,
2562,
1320,
273,
8154,
12,
2730,
16,
315,
4236,
1320,
3113,
277,
1769,
1377,
436,
18,
542,
1537,
2932,
5417,
1320,
3113,
2562,
1320,
1769,
1377,
368,
1021,
6252,
2674,
353,
358,
999,
326,
1818,
6737,
261,
76,
1306,
4095,
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,
9277,
4236,
2628,
12,
4522,
277,
13,
288,
565,
509,
5346,
92,
273,
277,
422,
446,
692,
374,
294,
277,
18,
474,
620,
5621,
565,
1748,
31568,
2660,
8563,
20676,
565,
309,
261,
77,
422,
446,
13,
277,
273,
394,
2144,
12,
20,
1769,
565,
5450,
963,
24900,
4723,
273,
1689,
3556,
1225,
39,
12,
77,
1769,
565,
309,
261,
1467,
24900,
4723,
422,
446,
13,
288,
1377,
368,
1330,
18,
8935,
2932,
1182,
434,
1353,
2006,
578,
3315,
1982,
296,
1467,
39,
14550,
1769,
1377,
327,
31,
565,
289,
565,
509,
963,
39,
273,
963,
24900,
4723,
18,
474,
620,
5621,
565,
368,
23123,
866,
565,
309,
261,
1467,
39,
411,
404,
13,
288,
1377,
2
] |
if (fGrammar != null) { if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: pushing context - element: "+fStringPool.toString(element.rawname)); } fMatcherStack.pushContext(); int eindex = fGrammar.getElementDeclIndex(element, -1); if (eindex != -1) { fGrammar.getElementDecl(eindex, fTempElementDecl); fValueStoreCache.initValueStoresFor(fTempElementDecl); int ucount = fTempElementDecl.unique.size(); for (int i = 0; i < ucount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.unique.elementAt(i)); } int kcount = fTempElementDecl.key.size(); for (int i = 0; i < kcount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.key.elementAt(i)); } int krcount = fTempElementDecl.keyRef.size(); for (int i = 0; i < krcount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.keyRef.elementAt(i)); } } int count = fMatcherStack.getMatcherCount(); for (int i = 0; i < count; i++) { XPathMatcher matcher = fMatcherStack.getMatcherAt(i); if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: "+matcher.toString()+"#startElement("+fStringPool.toString(element.rawname)+")"); } matcher.startElement(element, fAttrList, fAttrListHandle); } } | public void callStartElement(QName element) throws Exception { if ( DEBUG_SCHEMA_VALIDATION ) System.out.println("\n=======StartElement : " + fStringPool.toString(element.localpart)); // // Check after all specified attrs are scanned // (1) report error for REQUIRED attrs that are missing (V_TAGc) // (2) report error for PROHIBITED attrs that are present (V_TAGc) // (3) add default attrs (FIXED and NOT_FIXED) // if (!fSeenRootElement) { fSeenRootElement = true; rootElementSpecified(element); fStringPool.resetShuffleCount(); } if (fGrammar != null && fGrammarIsDTDGrammar) { fAttrListHandle = addDTDDefaultAttributes(element, fAttrList, fAttrListHandle, fValidating, fStandaloneReader != -1); } fCheckedForSchema = true; if (fNamespacesEnabled) { bindNamespacesToElementAndAttributes(element, fAttrList); } validateElementAndAttributes(element, fAttrList); if (fAttrListHandle != -1) { fAttrList.endAttrList(); } fDocumentHandler.startElement(element, fAttrList, fAttrListHandle); fAttrListHandle = -1; //before we increment the element depth, add this element's QName to its enclosing element 's children list fElementDepth++; //if (fElementDepth >= 0) { // REVISIT: Why are doing anything if the grammar is null? -Ac if (fValidating) { // push current length onto stack if (fElementChildrenOffsetStack.length <= fElementDepth) { int newarray[] = new int[fElementChildrenOffsetStack.length * 2]; System.arraycopy(fElementChildrenOffsetStack, 0, newarray, 0, fElementChildrenOffsetStack.length); fElementChildrenOffsetStack = newarray; } fElementChildrenOffsetStack[fElementDepth] = fElementChildrenLength; // add this element to children if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildrenLength * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.setValues(element); fElementChildrenLength++; if (DEBUG_ELEMENT_CHILDREN) { printChildren(); printStack(); } // activate identity constraints if (fGrammar != null) { if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: pushing context - element: "+fStringPool.toString(element.rawname)); } fMatcherStack.pushContext(); int eindex = fGrammar.getElementDeclIndex(element, -1); if (eindex != -1) { fGrammar.getElementDecl(eindex, fTempElementDecl); fValueStoreCache.initValueStoresFor(fTempElementDecl); int ucount = fTempElementDecl.unique.size(); for (int i = 0; i < ucount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.unique.elementAt(i)); } int kcount = fTempElementDecl.key.size(); for (int i = 0; i < kcount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.key.elementAt(i)); } int krcount = fTempElementDecl.keyRef.size(); for (int i = 0; i < krcount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.keyRef.elementAt(i)); } } // call all active identity constraints int count = fMatcherStack.getMatcherCount(); for (int i = 0; i < count; i++) { XPathMatcher matcher = fMatcherStack.getMatcherAt(i); if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: "+matcher.toString()+"#startElement("+fStringPool.toString(element.rawname)+")"); } matcher.startElement(element, fAttrList, fAttrListHandle); } } } ensureStackCapacity(fElementDepth); fCurrentElement.setValues(element); fCurrentElementEntity = fEntityHandler.getReaderId(); fElementQNamePartsStack[fElementDepth].setValues(fCurrentElement); fElementEntityStack[fElementDepth] = fCurrentElementEntity; fElementIndexStack[fElementDepth] = fCurrentElementIndex; fContentSpecTypeStack[fElementDepth] = fCurrentContentSpecType; if (fNeedValidationOff) { fValidating = false; fNeedValidationOff = false; } if (fValidating && fGrammarIsSchemaGrammar) { pushContentLeafStack(); } fValidationFlagStack[fElementDepth] = fValidating ? 0 : -1; fScopeStack[fElementDepth] = fCurrentScope; fGrammarNameSpaceIndexStack[fElementDepth] = fGrammarNameSpaceIndex; fAttrList.releaseAttrList(fAttrListHandle); fAttrListHandle = -1; } // callStartElement(QName) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/453abccd07a7ab9cac60ebd8f3b6fcea78ba0cf9/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
745,
1685,
1046,
12,
13688,
930,
13,
1216,
1185,
288,
1377,
309,
261,
6369,
67,
14233,
67,
5063,
2689,
262,
540,
2332,
18,
659,
18,
8222,
31458,
82,
894,
12275,
1685,
1046,
294,
315,
397,
284,
780,
2864,
18,
10492,
12,
2956,
18,
3729,
2680,
10019,
1377,
368,
1377,
368,
2073,
1839,
777,
1269,
3422,
854,
22711,
1377,
368,
261,
21,
13,
2605,
555,
364,
15810,
3422,
716,
854,
3315,
261,
58,
67,
7927,
71,
13,
1377,
368,
261,
22,
13,
2605,
555,
364,
4629,
44,
13450,
1285,
2056,
3422,
716,
854,
3430,
261,
58,
67,
7927,
71,
13,
1377,
368,
261,
23,
13,
527,
805,
3422,
261,
30406,
471,
4269,
67,
30406,
13,
1377,
368,
1377,
309,
16051,
74,
15160,
2375,
1046,
13,
288,
540,
284,
15160,
2375,
1046,
273,
638,
31,
540,
27575,
17068,
12,
2956,
1769,
540,
284,
780,
2864,
18,
6208,
1555,
10148,
1380,
5621,
1377,
289,
1377,
309,
261,
74,
18576,
480,
446,
597,
284,
18576,
2520,
25728,
18576,
13,
288,
540,
284,
3843,
682,
3259,
273,
527,
25728,
1868,
2498,
12,
2956,
16,
284,
3843,
682,
16,
284,
3843,
682,
3259,
16,
284,
31496,
16,
284,
20612,
12451,
2514,
480,
300,
21,
1769,
1377,
289,
1377,
284,
11454,
1290,
3078,
273,
638,
31,
1377,
309,
261,
74,
13180,
1526,
13,
288,
540,
1993,
13180,
774,
1046,
1876,
2498,
12,
2956,
16,
284,
3843,
682,
1769,
1377,
289,
1377,
1954,
1046,
1876,
2498,
12,
2956,
16,
284,
3843,
682,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
745,
1685,
1046,
12,
13688,
930,
13,
1216,
1185,
288,
1377,
309,
261,
6369,
67,
14233,
67,
5063,
2689,
262,
540,
2332,
18,
659,
18,
8222,
31458,
82,
894,
12275,
1685,
1046,
294,
315,
397,
284,
780,
2864,
18,
10492,
12,
2956,
18,
3729,
2680,
10019,
1377,
368,
1377,
368,
2073,
1839,
777,
1269,
3422,
854,
22711,
1377,
368,
261,
21,
13,
2605,
555,
364,
15810,
3422,
716,
854,
3315,
261,
58,
67,
7927,
71,
13,
1377,
368,
261,
22,
13,
2605,
555,
364,
4629,
44,
13450,
1285,
2056,
3422,
716,
854,
3430,
261,
58,
67,
7927,
71,
13,
1377,
368,
261,
23,
13,
527,
805,
3422,
261,
30406,
471,
4269,
67,
30406,
13,
1377,
368,
2
] |
|
KoLmafia.getSessionStream().println( "[" + KoLCharacter.getTotalTurnsUsed() + "] " + getAdventureName() ); | KoLmafia.getSessionStream().println( "[" + (KoLCharacter.getTotalTurnsUsed() + 1) + "] " + getAdventureName() ); | public void recordToSession() { KoLmafia.getSessionStream().println(); KoLmafia.getSessionStream().println( "[" + KoLCharacter.getTotalTurnsUsed() + "] " + getAdventureName() ); client.registerAdventure( this ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/622ab33083af86d6680a52188438327e50f0cfd3/KoLAdventure.java/clean/src/net/sourceforge/kolmafia/KoLAdventure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1409,
774,
2157,
1435,
202,
95,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
588,
2157,
1228,
7675,
8222,
5621,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
588,
2157,
1228,
7675,
8222,
12,
13626,
397,
1475,
83,
48,
7069,
18,
588,
5269,
31873,
6668,
1435,
397,
9850,
315,
397,
336,
1871,
616,
594,
461,
1435,
11272,
202,
202,
2625,
18,
4861,
1871,
616,
594,
12,
333,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
1409,
774,
2157,
1435,
202,
95,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
588,
2157,
1228,
7675,
8222,
5621,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
588,
2157,
1228,
7675,
8222,
12,
13626,
397,
1475,
83,
48,
7069,
18,
588,
5269,
31873,
6668,
1435,
397,
9850,
315,
397,
336,
1871,
616,
594,
461,
1435,
11272,
202,
202,
2625,
18,
4861,
1871,
616,
594,
12,
333,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void setSelections(org.eclipse.birt.report.soapengine.api.Vector selections) { | public void setSelections(org.eclipse.birt.report.soapengine.api.SelectItemChoice[] selections) { | public void setSelections(org.eclipse.birt.report.soapengine.api.Vector selections) { this.selections = selections; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d59e6e07e855381f706a731982c94c075d3249a0/SelectionList.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/soapengine/api/SelectionList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
29913,
12,
3341,
18,
20416,
18,
70,
2714,
18,
6006,
18,
19215,
8944,
18,
2425,
18,
3391,
1180,
10538,
8526,
21738,
13,
288,
3639,
333,
18,
10705,
87,
273,
21738,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
29913,
12,
3341,
18,
20416,
18,
70,
2714,
18,
6006,
18,
19215,
8944,
18,
2425,
18,
3391,
1180,
10538,
8526,
21738,
13,
288,
3639,
333,
18,
10705,
87,
273,
21738,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
addStation(s); } | addStation(s); } | public void run() { addStation(s); } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/6f6ff640e68e51000e8536aaabf379b661b82471/ChannelChooser.java/buggy/src/edu/sc/seis/fissuresUtil/chooser/ChannelChooser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
565,
1071,
918,
1086,
1435,
288,
1082,
202,
1289,
16672,
12,
87,
1769,
1082,
565,
289,
2,
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,
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,
565,
1071,
918,
1086,
1435,
288,
1082,
202,
1289,
16672,
12,
87,
1769,
1082,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
asm.emitMOV_RegDisp_Imm (SP, STACKFRAME_METHOD_ID_OFFSET, compiledMethodId); | asm.emitMOV_RegDisp_Imm (SP, Offset.fromIntSignExtend(STACKFRAME_METHOD_ID_OFFSET), compiledMethodId); | static void prepareStackHeader(VM_Assembler asm, VM_Method method, int compiledMethodId) { // set 2nd word of header = return address already pushed by CALL asm.emitPUSH_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // start new frame: set FP to point to the new frame VM_ProcessorLocalState.emitMoveRegToField(asm, VM_Entrypoints.framePointerField.getOffsetAsInt(), SP); // set first word of header: method ID asm.emitMOV_RegDisp_Imm (SP, STACKFRAME_METHOD_ID_OFFSET, compiledMethodId); // save nonvolatile registrs: EDI, EBX, EBP asm.emitMOV_RegDisp_Reg (SP, EDI_SAVE_OFFSET, JTOC); asm.emitMOV_RegDisp_Reg (SP, EBX_SAVE_OFFSET, EBX); asm.emitMOV_RegDisp_Reg (SP, EBP_SAVE_OFFSET, EBP); asm.emitMOV_Reg_Reg (EBP, SP); // Establish EBP as the framepointer for use in the rest of the glue frame // restore JTOC with the value saved in VM_Processor.jtoc for use in prolog VM_ProcessorLocalState.emitMoveFieldToReg(asm, JTOC, VM_Entrypoints.jtocField.getOffsetAsInt()); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/df5323a1679a545ad5b2e78b0bf88ba178e71da8/VM_JNICompiler.java/clean/rvm/src/vm/arch/intel/jni/VM_JNICompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
2911,
2624,
1864,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
707,
16,
509,
7743,
30793,
13,
288,
565,
368,
444,
576,
4880,
2076,
434,
1446,
273,
327,
1758,
1818,
18543,
635,
22753,
565,
20415,
18,
18356,
30348,
67,
1617,
1669,
84,
261,
8025,
16,
8251,
67,
1622,
4139,
18,
3789,
4926,
974,
18,
588,
2335,
31720,
10663,
565,
368,
787,
394,
2623,
30,
225,
444,
28740,
358,
1634,
358,
326,
394,
2623,
565,
8251,
67,
5164,
2042,
1119,
18,
18356,
7607,
1617,
774,
974,
12,
23522,
16,
4766,
2868,
8251,
67,
1622,
4139,
18,
3789,
4926,
974,
18,
588,
2335,
31720,
9334,
4766,
2868,
11405,
1769,
565,
368,
444,
1122,
2076,
434,
1446,
30,
707,
1599,
565,
20415,
18,
18356,
5980,
58,
67,
1617,
1669,
84,
67,
1170,
81,
261,
3118,
16,
9874,
18,
2080,
1702,
2766,
16675,
12,
21971,
15072,
67,
5327,
67,
734,
67,
11271,
3631,
7743,
30793,
1769,
377,
368,
1923,
1661,
15416,
20295,
17450,
87,
30,
512,
2565,
16,
512,
38,
60,
16,
512,
30573,
565,
20415,
18,
18356,
5980,
58,
67,
1617,
1669,
84,
67,
1617,
261,
3118,
16,
512,
2565,
67,
25242,
67,
11271,
16,
804,
4296,
39,
1769,
377,
20415,
18,
18356,
5980,
58,
67,
1617,
1669,
84,
67,
1617,
261,
3118,
16,
512,
38,
60,
67,
25242,
67,
11271,
16,
512,
38,
60,
1769,
565,
20415,
18,
18356,
5980,
58,
67,
1617,
1669,
84,
67,
1617,
261,
3118,
16,
512,
30573,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
2911,
2624,
1864,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
707,
16,
509,
7743,
30793,
13,
288,
565,
368,
444,
576,
4880,
2076,
434,
1446,
273,
327,
1758,
1818,
18543,
635,
22753,
565,
20415,
18,
18356,
30348,
67,
1617,
1669,
84,
261,
8025,
16,
8251,
67,
1622,
4139,
18,
3789,
4926,
974,
18,
588,
2335,
31720,
10663,
565,
368,
787,
394,
2623,
30,
225,
444,
28740,
358,
1634,
358,
326,
394,
2623,
565,
8251,
67,
5164,
2042,
1119,
18,
18356,
7607,
1617,
774,
974,
12,
23522,
16,
4766,
2868,
8251,
67,
1622,
4139,
18,
3789,
4926,
974,
18,
588,
2335,
31720,
9334,
4766,
2868,
11405,
1769,
565,
368,
444,
1122,
2076,
434,
2
] |
HttpServletRequest request, HttpServletResponse response) { | HttpServletRequest request, HttpServletResponse response) { | public ActionForward documentRequestTypeChoosedPostBack(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { final DocumentRequestCreateBean requestCreateBean = (DocumentRequestCreateBean) RenderUtils .getViewState().getMetaObject().getObject(); RenderUtils.invalidateViewState(); setAdditionalInformationSchemaName(request, requestCreateBean); request.setAttribute("documentRequestCreateBean", requestCreateBean); return mapping.findForward("createDocumentRequests"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f68ed5b1b23fe3c2b70f74fcc58cfe804e205653/DocumentRequestsManagementDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/administrativeOffice/serviceRequests/documentRequests/DocumentRequestsManagementDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1668,
691,
559,
782,
5161,
730,
3349,
2711,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
202,
565,
9984,
590,
16,
12446,
766,
13,
288,
202,
6385,
4319,
691,
1684,
3381,
590,
1684,
3381,
273,
261,
2519,
691,
1684,
3381,
13,
6987,
1989,
202,
202,
18,
588,
1767,
1119,
7675,
588,
2781,
921,
7675,
588,
921,
5621,
202,
3420,
1989,
18,
5387,
340,
1767,
1119,
5621,
565,
202,
542,
10552,
5369,
3078,
461,
12,
2293,
16,
590,
1684,
3381,
1769,
202,
2293,
18,
542,
1499,
2932,
5457,
691,
1684,
3381,
3113,
590,
1684,
3381,
1769,
202,
2463,
2874,
18,
4720,
8514,
2932,
2640,
2519,
6421,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1668,
691,
559,
782,
5161,
730,
3349,
2711,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
202,
565,
9984,
590,
16,
12446,
766,
13,
288,
202,
6385,
4319,
691,
1684,
3381,
590,
1684,
3381,
273,
261,
2519,
691,
1684,
3381,
13,
6987,
1989,
202,
202,
18,
588,
1767,
1119,
7675,
588,
2781,
921,
7675,
588,
921,
5621,
202,
3420,
1989,
18,
5387,
340,
1767,
1119,
5621,
565,
202,
542,
10552,
5369,
3078,
461,
12,
2293,
16,
590,
1684,
3381,
1769,
202,
2293,
18,
542,
1499,
2932,
5457,
691,
1684,
3381,
3113,
590,
1684,
3381,
1769,
202,
2463,
2874,
18,
4720,
8514,
2932,
2640,
2519,
6421,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( artifactVersion == null ) { artifactVersion = artifact.getVersion(); } | message.append( artifact.getId() ); | private void checkForPresenceOfSnapshots( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_SNAPSHOTS_CHECKED ) ) { getLog().info( "Checking lineage for snapshots ..." ); MavenProject currentProject = project; while ( currentProject.hasParent() ) { MavenProject parentProject = currentProject.getParent(); String parentVersion = getVersionResolver().getResolvedVersion( parentProject.getGroupId(), parentProject.getArtifactId() ); if ( isSnapshot( parentVersion ) ) { throw new MojoExecutionException( "Can't release project due to non released parent." ); } currentProject = parentProject; } getLog().info( "Checking dependencies for snapshots ..." ); Set snapshotDependencies = new HashSet(); for ( Iterator i = project.getArtifacts().iterator(); i.hasNext(); ) { Artifact artifact = (Artifact) i.next(); String artifactVersion = getVersionResolver().getResolvedVersion( artifact.getGroupId(), artifact.getArtifactId() ); if ( artifactVersion == null ) { artifactVersion = artifact.getVersion(); } if ( isSnapshot( artifactVersion ) ) { snapshotDependencies.add( artifact ); } } getLog().info( "Checking plugins for snapshots ..." ); for ( Iterator i = project.getPluginArtifacts().iterator(); i.hasNext(); ) { Artifact artifact = (Artifact) i.next(); String artifactVersion = getVersionResolver().getResolvedVersion( artifact.getGroupId(), artifact.getArtifactId() ); if ( artifactVersion == null ) { artifactVersion = artifact.getVersion(); } if ( isSnapshot( artifactVersion ) ) { snapshotDependencies.add( artifact ); } } if ( !snapshotDependencies.isEmpty() ) { List snapshotsList = new ArrayList( snapshotDependencies ); Collections.sort( snapshotsList ); StringBuffer message = new StringBuffer(); for ( Iterator i = snapshotsList.iterator(); i.hasNext(); ) { Artifact artifact = (Artifact) i.next(); message.append( " " ); message.append( artifact.getId() ); message.append( "\n" ); } throw new MojoExecutionException( "Can't release project due to non released dependencies :\n" + message.toString() ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_SNAPSHOTS_CHECKED ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/22f9a34107d27782bab8e88b50b54708304b73dc/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13855,
22590,
951,
17095,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
13653,
31667,
55,
67,
10687,
2056,
262,
262,
3639,
288,
5411,
9189,
7675,
1376,
12,
315,
14294,
31766,
364,
12808,
18483,
11272,
5411,
17176,
4109,
783,
4109,
273,
1984,
31,
5411,
1323,
261,
783,
4109,
18,
5332,
3054,
1435,
262,
5411,
288,
7734,
17176,
4109,
982,
4109,
273,
783,
4109,
18,
588,
3054,
5621,
7734,
514,
982,
1444,
273,
8343,
4301,
7675,
588,
12793,
1444,
12,
982,
4109,
18,
588,
8722,
9334,
28524,
7734,
982,
4109,
18,
588,
7581,
548,
1435,
11272,
7734,
309,
261,
353,
4568,
12,
982,
1444,
262,
262,
7734,
288,
10792,
604,
394,
18780,
12,
315,
2568,
1404,
3992,
1984,
6541,
358,
1661,
15976,
982,
1199,
11272,
7734,
289,
7734,
783,
4109,
273,
982,
4109,
31,
5411,
289,
5411,
9189,
7675,
1376,
12,
315,
14294,
5030,
364,
12808,
18483,
11272,
5411,
1000,
4439,
8053,
273,
394,
6847,
5621,
5411,
364,
261,
4498,
277,
273,
1984,
18,
588,
16981,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
14022,
6462,
273,
261,
7581,
13,
277,
18,
4285,
5621,
7734,
514,
6462,
1444,
273,
8343,
4301,
7675,
588,
12793,
1444,
12,
6462,
18,
588,
8722,
9334,
28524,
5375,
6462,
18,
588,
7581,
548,
1435,
11272,
7734,
309,
261,
6462,
1444,
422,
446,
262,
7734,
288,
10792,
6462,
1444,
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,
13855,
22590,
951,
17095,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
13653,
31667,
55,
67,
10687,
2056,
262,
262,
3639,
288,
5411,
9189,
7675,
1376,
12,
315,
14294,
31766,
364,
12808,
18483,
11272,
5411,
17176,
4109,
783,
4109,
273,
1984,
31,
5411,
1323,
261,
783,
4109,
18,
5332,
3054,
1435,
262,
5411,
288,
7734,
17176,
4109,
982,
4109,
273,
783,
4109,
18,
588,
3054,
5621,
7734,
514,
982,
1444,
273,
8343,
4301,
7675,
588,
12793,
1444,
12,
982,
4109,
18,
588,
8722,
9334,
28524,
7734,
982,
4109,
18,
588,
7581,
548,
1435,
11272,
7734,
309,
261,
2
] |
public org.quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { org.quickfix.field.BenchmarkCurveName value = new org.quickfix.field.BenchmarkCurveName(); | public quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { quickfix.field.BenchmarkCurveName value = new quickfix.field.BenchmarkCurveName(); | public org.quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { org.quickfix.field.BenchmarkCurveName value = new org.quickfix.field.BenchmarkCurveName(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
2882,
9737,
9423,
461,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
2882,
9737,
9423,
461,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public ExternalContributor(List cache) { | public ExternalContributor(ArrayList cache) { | public ExternalContributor(List cache) { this.cache = cache; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/37e84bac0070f808dc88f061b33daf9583dc748a/EditorActionBuilder.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
11352,
442,
19293,
12,
682,
1247,
13,
288,
1082,
202,
2211,
18,
2493,
273,
1247,
31,
202,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
11352,
442,
19293,
12,
682,
1247,
13,
288,
1082,
202,
2211,
18,
2493,
273,
1247,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); | AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); | public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table index = fElement.setXercesAttributeNode(attr); attr.setNodeValue(attrValue); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/20c5f7042fa9bebb446170029ab0f631c12bbe04/DOMNormalizer.java/buggy/src/org/apache/xerces/dom/DOMNormalizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
10759,
12,
13688,
12621,
16,
514,
1604,
559,
16,
514,
21676,
13,
288,
1875,
202,
474,
770,
273,
284,
1046,
18,
588,
60,
264,
764,
1499,
12,
85,
529,
18,
1650,
16,
12621,
18,
3729,
2680,
1769,
1082,
202,
759,
527,
3467,
358,
326,
2151,
1082,
202,
430,
261,
1615,
411,
374,
13,
288,
7734,
368,
326,
805,
1566,
1703,
3723,
635,
279,
729,
471,
3577,
358,
1171,
368,
506,
3096,
1473,
9506,
202,
3843,
2828,
1604,
273,
261,
3843,
2828,
13,
6862,
202,
12443,
4670,
2519,
2828,
13,
284,
1046,
18,
588,
5541,
2519,
1435,
2934,
2640,
1499,
3156,
12,
25083,
202,
85,
529,
18,
1650,
16,
25083,
202,
85,
529,
18,
1899,
529,
16,
25083,
202,
85,
529,
18,
3729,
2680,
1769,
7734,
368,
2438,
26780,
1285,
30,
326,
3751,
1410,
2546,
1089,
1599,
1014,
9506,
202,
1615,
273,
284,
1046,
18,
542,
60,
264,
764,
1499,
907,
12,
1747,
1769,
9506,
202,
1747,
18,
542,
907,
620,
12,
1747,
620,
1769,
9506,
202,
29534,
14870,
1012,
18,
6387,
1046,
861,
12,
2704,
432,
14870,
1012,
2828,
9334,
770,
1769,
7734,
1604,
18,
542,
17068,
12,
5743,
1769,
1082,
202,
97,
2398,
1082,
202,
12107,
288,
7734,
368,
805,
1566,
353,
316,
326,
2151,
7734,
368,
732,
2727,
1404,
1608,
358,
741,
6967,
3241,
1633,
1703,
1818,
5499,
7734,
368,
622,
326,
1981,
2917,
416,
813,
471,
460,
1297,
506,
1967,
460,
16,
3541,
7734,
368,
1566,
903,
506,
13974,
487,
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,
509,
10759,
12,
13688,
12621,
16,
514,
1604,
559,
16,
514,
21676,
13,
288,
1875,
202,
474,
770,
273,
284,
1046,
18,
588,
60,
264,
764,
1499,
12,
85,
529,
18,
1650,
16,
12621,
18,
3729,
2680,
1769,
1082,
202,
759,
527,
3467,
358,
326,
2151,
1082,
202,
430,
261,
1615,
411,
374,
13,
288,
7734,
368,
326,
805,
1566,
1703,
3723,
635,
279,
729,
471,
3577,
358,
1171,
368,
506,
3096,
1473,
9506,
202,
3843,
2828,
1604,
273,
261,
3843,
2828,
13,
6862,
202,
12443,
4670,
2519,
2828,
13,
284,
1046,
18,
588,
5541,
2519,
1435,
2934,
2640,
1499,
3156,
12,
25083,
202,
85,
529,
18,
1650,
16,
25083,
202,
85,
529,
18,
1899,
529,
2
] |
bhTrees.clear(); | ArrayList bhTrees = new ArrayList(); | boolean getVisibleBHTrees(RenderBin rBin, ArrayList bhTrees, BoundingBox frustumBBox, Locale locale, long referenceTime, boolean stateChanged, int visibilityPolicy) { int i, j; boolean unviInFB = true; // System.out.println("GeometryStructure : view's locale is " + locale); lock.readLock(); bhTrees.clear(); if (bhTreeCount == 1) { // For debugging only. if (J3dDebug.devPhase) { if (J3dDebug.doDebug(J3dDebug.geometryStructure, J3dDebug.LEVEL_2)) { System.out.println("GeometryStructure : In simple case"); System.out.println("GeometryStructure : view's locale is " + locale); System.out.println("GeometryStructure : bhTreeArr[0].locale is " + bhTreeArr[0].locale); } } // One locale case - Lets make the simple case fast. synchronized(visLock) { unviInFB = bhTreeArr[0].getVisibleBHTrees(rBin, bhTrees, frustumBBox, referenceTime, stateChanged, visibilityPolicy, true); } } else { // Multiple locale case. // For debugging only. if (J3dDebug.devPhase) J3dDebug.doDebug(J3dDebug.geometryStructure, J3dDebug.LEVEL_2, "GeometryStructure : bhTreeCount is " + universe.geometryStructure.bhTreeCount + " view's locale is " + locale + "\n"); BoundingBox localeFrustumBBox = new BoundingBox(); synchronized(visLock) { for (j=0; j<bhTreeCount; j++) { if (J3dDebug.devPhase) { J3dDebug.doDebug(J3dDebug.geometryStructure, J3dDebug.LEVEL_2, "GeometryStructure : bhTreeArr[" + j + "] is " + bhTreeArr[j].locale + "\n"); } if (!locale.hiRes.equals(bhTreeArr[j].locale.hiRes)) { bhTreeArr[j].locale.hiRes.difference(locale.hiRes, localeTrans); if (J3dDebug.devPhase) { J3dDebug.doDebug(J3dDebug.geometryStructure, J3dDebug.LEVEL_2, "localeTrans is " + localeTrans + "GeometryStructure : localeFrustumBBox " + localeFrustumBBox + "\n" ); } // Need to translate view frustumBBox here. localeFrustumBBox.lower.x = frustumBBox.lower.x + localeTrans.x; localeFrustumBBox.lower.y = frustumBBox.lower.y + localeTrans.y; localeFrustumBBox.lower.z = frustumBBox.lower.z + localeTrans.z; localeFrustumBBox.upper.x = frustumBBox.upper.x + localeTrans.x; localeFrustumBBox.upper.y = frustumBBox.upper.y + localeTrans.y; localeFrustumBBox.upper.z = frustumBBox.upper.z + localeTrans.z; } else { frustumBBox.copy(localeFrustumBBox); } if(!(bhTreeArr[j].getVisibleBHTrees(rBin, bhTrees, localeFrustumBBox, referenceTime, stateChanged, visibilityPolicy, false))) { unviInFB = false; } } } } lock.readUnlock(); return unviInFB; } | 8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/bf85f8ef8ccf6fe4ce43fb5c74eaad580997257c/GeometryStructure.java/buggy/src/classes/share/javax/media/j3d/GeometryStructure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
31564,
38,
5062,
5312,
12,
3420,
9913,
436,
9913,
16,
2407,
19822,
26590,
16,
9506,
1377,
25245,
3812,
31801,
30944,
16,
9506,
1377,
6458,
2573,
16,
1525,
2114,
950,
16,
9506,
1377,
1250,
919,
5033,
16,
9506,
1377,
509,
9478,
2582,
13,
288,
202,
202,
474,
277,
16,
525,
31,
202,
6494,
640,
522,
382,
22201,
273,
638,
31,
202,
377,
202,
759,
2332,
18,
659,
18,
8222,
2932,
9823,
6999,
294,
1476,
1807,
2573,
353,
315,
397,
2573,
1769,
202,
739,
18,
896,
2531,
5621,
202,
70,
76,
26590,
18,
8507,
5621,
202,
430,
261,
70,
76,
2471,
1380,
422,
404,
13,
288,
202,
565,
368,
2457,
10450,
1338,
18,
202,
565,
309,
261,
46,
23,
72,
2829,
18,
5206,
11406,
13,
288,
202,
202,
430,
261,
46,
23,
72,
2829,
18,
2896,
2829,
12,
46,
23,
72,
2829,
18,
14330,
6999,
16,
804,
23,
72,
2829,
18,
10398,
67,
22,
3719,
288,
1082,
565,
2332,
18,
659,
18,
8222,
2932,
9823,
6999,
294,
657,
4143,
648,
8863,
1082,
565,
2332,
18,
659,
18,
8222,
2932,
9823,
6999,
294,
1476,
1807,
2573,
353,
315,
397,
6862,
4202,
2573,
1769,
1082,
565,
2332,
18,
659,
18,
8222,
2932,
9823,
6999,
294,
19822,
2471,
5715,
63,
20,
8009,
6339,
353,
315,
397,
6862,
4202,
19822,
2471,
5715,
63,
20,
8009,
6339,
1769,
202,
202,
97,
202,
565,
289,
202,
565,
368,
6942,
2573,
648,
300,
511,
2413,
1221,
326,
4143,
648,
4797,
18,
202,
565,
3852,
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,
1250,
31564,
38,
5062,
5312,
12,
3420,
9913,
436,
9913,
16,
2407,
19822,
26590,
16,
9506,
1377,
25245,
3812,
31801,
30944,
16,
9506,
1377,
6458,
2573,
16,
1525,
2114,
950,
16,
9506,
1377,
1250,
919,
5033,
16,
9506,
1377,
509,
9478,
2582,
13,
288,
202,
202,
474,
277,
16,
525,
31,
202,
6494,
640,
522,
382,
22201,
273,
638,
31,
202,
377,
202,
759,
2332,
18,
659,
18,
8222,
2932,
9823,
6999,
294,
1476,
1807,
2573,
353,
315,
397,
2573,
1769,
202,
739,
18,
896,
2531,
5621,
202,
70,
76,
26590,
18,
8507,
5621,
202,
430,
261,
70,
76,
2471,
1380,
422,
404,
13,
288,
202,
565,
368,
2457,
10450,
1338,
18,
202,
565,
309,
261,
46,
23,
2
] |
TreePath tp = getSelectionPath(); OperatorNode parent = (OperatorNode)tp.getLastPathComponent(); try { parent = parent.addSuboperator(this,WorkingMemory,s); | TreePath tp = getSelectionPath(); OperatorNode parent = (OperatorNode)tp.getLastPathComponent(); try { parent = parent.addSuboperator(this,WorkingMemory,s); | public void addSuboperator() { String s; NameDialog theDialog = new NameDialog(MainFrame.getMainFrame()); theDialog.setTitle("Enter Operator Name"); theDialog.setVisible(true); if (theDialog.wasApproved()) { s = theDialog.getText(); TreePath tp = getSelectionPath(); OperatorNode parent = (OperatorNode)tp.getLastPathComponent(); try { parent = parent.addSuboperator(this,WorkingMemory,s); if (parent != null) { tp = new TreePath(parent.getPath()); if (parent.getChildCount() != 0) { expandPath(tp); } } } catch (IOException ioe) { JOptionPane.showMessageDialog(MainFrame.getMainFrame(), "Could not create suboperator, name may be invalid", "I/O Error", JOptionPane.ERROR_MESSAGE); } } } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/a346ed7f83eb1c70b9abfdfce06d4248fd83a1ab/OperatorWindow.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/operatorwindow/OperatorWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25716,
9497,
1435,
288,
202,
202,
780,
272,
31,
202,
202,
461,
6353,
326,
6353,
273,
394,
1770,
6353,
12,
6376,
3219,
18,
588,
6376,
3219,
10663,
202,
202,
5787,
6353,
18,
542,
4247,
2932,
10237,
11097,
1770,
8863,
202,
202,
5787,
6353,
18,
542,
6207,
12,
3767,
1769,
9506,
202,
430,
261,
5787,
6353,
18,
17416,
31639,
10756,
225,
288,
1082,
202,
87,
273,
326,
6353,
18,
588,
1528,
5621,
1082,
202,
2471,
743,
8071,
273,
23204,
743,
5621,
1082,
202,
5592,
907,
982,
273,
261,
5592,
907,
13,
6834,
18,
588,
3024,
743,
1841,
5621,
25083,
202,
698,
288,
9506,
202,
2938,
273,
982,
18,
1289,
1676,
9497,
12,
2211,
16,
14836,
6031,
16,
87,
1769,
9506,
202,
430,
261,
2938,
480,
446,
13,
288,
6862,
202,
6834,
273,
394,
4902,
743,
12,
2938,
18,
588,
743,
10663,
6862,
202,
430,
261,
2938,
18,
588,
1763,
1380,
1435,
480,
374,
13,
288,
25083,
202,
12320,
743,
12,
6834,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1044,
261,
14106,
10847,
13,
288,
9506,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
6376,
3219,
18,
588,
6376,
3219,
9334,
4405,
202,
6,
4445,
486,
752,
720,
9497,
16,
508,
2026,
506,
2057,
3113,
4405,
202,
6,
45,
19,
51,
1068,
3113,
804,
1895,
8485,
18,
3589,
67,
8723,
1769,
1082,
202,
97,
1082,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25716,
9497,
1435,
288,
202,
202,
780,
272,
31,
202,
202,
461,
6353,
326,
6353,
273,
394,
1770,
6353,
12,
6376,
3219,
18,
588,
6376,
3219,
10663,
202,
202,
5787,
6353,
18,
542,
4247,
2932,
10237,
11097,
1770,
8863,
202,
202,
5787,
6353,
18,
542,
6207,
12,
3767,
1769,
9506,
202,
430,
261,
5787,
6353,
18,
17416,
31639,
10756,
225,
288,
1082,
202,
87,
273,
326,
6353,
18,
588,
1528,
5621,
1082,
202,
2471,
743,
8071,
273,
23204,
743,
5621,
1082,
202,
5592,
907,
982,
273,
261,
5592,
907,
13,
6834,
18,
588,
3024,
743,
1841,
5621,
25083,
202,
698,
288,
9506,
202,
2938,
273,
982,
18,
1289,
1676,
9497,
12,
2211,
16,
14836,
6031,
2
] |
if( printMessages ) System.out.println("In resumeThread()"); | if (printMessages) { System.out.println("In resumeThread()"); } | protected synchronized void _resumeHelper(boolean shouldCopyBack) throws DebugException { try { ThreadReference thread = _suspendedThreads.pop(); if( printMessages ) System.out.println("In resumeThread()"); _resumeThread(thread, shouldCopyBack); } catch (NoSuchElementException e) { throw new DebugException("No thread to resume."); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/a42a1005ad3faca50638e0131df3bc7c45ba82de/JPDADebugger.java/buggy/drjava/src/edu/rice/cs/drjava/model/debug/JPDADebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
389,
25158,
2276,
12,
6494,
1410,
2951,
2711,
13,
565,
1216,
4015,
503,
225,
288,
565,
775,
288,
1377,
4884,
2404,
2650,
273,
389,
87,
22942,
13233,
18,
5120,
5621,
5411,
309,
261,
1188,
5058,
13,
288,
2332,
18,
659,
18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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
389,
25158,
2276,
12,
6494,
1410,
2951,
2711,
13,
565,
1216,
4015,
503,
225,
288,
565,
775,
288,
1377,
4884,
2404,
2650,
273,
389,
87,
22942,
13233,
18,
5120,
5621,
5411,
309,
261,
1188,
5058,
13,
288,
2332,
18,
659,
18,
8222,
2932,
382,
10774,
3830,
1435,
8863,
289,
1377,
389,
25158,
3830,
12,
5930,
16,
1410,
2951,
2711,
1769,
565,
289,
565,
1044,
261,
28341,
20826,
425,
13,
288,
1377,
604,
394,
4015,
503,
2932,
2279,
2650,
358,
10774,
1199,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_112(); jj_save(111, xla); return retval; } | jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_112(); } catch(LookaheadSuccess ls) { return true; } finally { jj_save(111, xla); } } | static final private boolean jj_2_112(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_112(); jj_save(111, xla); return retval; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
22,
67,
17666,
12,
474,
619,
11821,
13,
288,
3639,
10684,
67,
11821,
273,
619,
11821,
31,
3639,
10684,
67,
2722,
917,
273,
10684,
67,
9871,
917,
273,
1147,
31,
3639,
1250,
5221,
273,
401,
78,
78,
67,
23,
67,
17666,
5621,
3639,
10684,
67,
5688,
12,
20227,
16,
619,
11821,
1769,
3639,
327,
5221,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
22,
67,
17666,
12,
474,
619,
11821,
13,
288,
3639,
10684,
67,
11821,
273,
619,
11821,
31,
3639,
10684,
67,
2722,
917,
273,
10684,
67,
9871,
917,
273,
1147,
31,
3639,
1250,
5221,
273,
401,
78,
78,
67,
23,
67,
17666,
5621,
3639,
10684,
67,
5688,
12,
20227,
16,
619,
11821,
1769,
3639,
327,
5221,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void onStart() { markTime = System.currentTimeMillis(); startTime = System.currentTimeMillis(); propertyMap = ResourceUtil.getResourceBundleAsHashMap(iterationPropertyFiles[0]); // send a message to the random number server so that the random number seed will be set on all nodes PortManager pManager = PortManager.getInstance(); Port receivePort = pManager.getReceivePort(); Message waitMsg = null; Message propertyMapMsg = createMessage(); propertyMapMsg.setId(MessageID.START_INFO); propertyMapMsg.setValue(MessageID.PROPERTY_MAP_KEY, propertyMap); // set the global random number generator seed read from the properties file on the nodes // that runs the worker tasks if (LOGGING) logger.info(this.name + " starting the random number server task."); sendTo("RnServer", propertyMapMsg); // wait here until a message from the RnServer says it's heard from all RnWorkers. if (LOGGING) logger.info(this.name + " waiting to hear from RnServer that random number seeds have been set."); waitMsg = receivePort.receive(); while (!(waitMsg.getSender().equals("RnServer") && waitMsg.getId().equals(MessageID.EXIT))) { waitMsg = receivePort.receive(); } // send an exit message to the RnServer to tell it to free memory in its workers and itself. Message exitMsg = createMessage(); exitMsg.setId(MessageID.EXIT); sendTo("RnServer", exitMsg); // set the global random number generator seed read from the properties file on the node // that runs the server tasks SeededRandom.setSeed(Integer.parseInt((String) propertyMap.get("RandomSeed"))); if (LOGGING) { logger.info("Memory at end of RnServer"); showMemory(); } // set the global number of iterations read from the properties file numberOfIterations = (Integer.parseInt((String) propertyMap.get( "GlobalIterations"))); if(((String)propertyMap.get("FTA_Restart_run")).equalsIgnoreCase("true")){ ZDMTDM zdmtdm=readDiskObjectZDMTDM(propertyMap); //instantiate ZonalDataManager and TODDataManager object so that their static members are available to other classes (eg. DTMOutput) zdm=new ZonalDataManager(propertyMap); tdm=new TODDataManager(propertyMap); zdm=zdmtdm.getZDM(); showMemory(); tdm=zdmtdm.getTDM(); showMemory(); }else{ // build the zonal data table zdm = new ZonalDataManager(propertyMap); showMemory(); // build the TOD Ddata table tdm = new TODDataManager(propertyMap); showMemory(); } for (int i = 0; i < numberOfIterations; i++) { runModelIteration(i); } // Report report=new Report(); // report.generateReports(); if (LOGGING) { logger.info("Memory after running reports - end of program"); showMemory(); } if (LOGGING) { logger.info("end of MORPC Demand Models"); logger.info("full MORPC model run finished in " + ((System.currentTimeMillis() - startTime) / 60000.0) + " minutes"); } System.exit(0); } | 1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/010a6c5ec8eea32210f7634f9b310766c7288681/MorpcModelServer.java/clean/src/java/com/pb/morpc/daf/MorpcModelServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
265,
1685,
1435,
95,
3355,
950,
33,
3163,
18,
2972,
28512,
5621,
1937,
950,
33,
3163,
18,
2972,
28512,
5621,
4468,
863,
33,
1420,
1304,
18,
588,
18731,
1463,
8658,
12,
16108,
1396,
2697,
63,
20,
19226,
202,
202,
759,
4661,
301,
403,
346,
278,
3011,
2111,
13851,
29638,
10370,
270,
1136,
2111,
2696,
12407,
20194,
70,
281,
278,
265,
454,
4690,
202,
202,
2617,
1318,
84,
1318,
33,
2617,
1318,
18,
588,
1442,
5621,
202,
202,
2617,
18149,
2617,
33,
84,
1318,
18,
588,
11323,
2617,
5621,
202,
202,
49,
403,
346,
359,
1540,
3332,
33,
2011,
31,
202,
202,
1079,
4468,
863,
3332,
33,
2640,
1079,
5621,
202,
202,
4468,
863,
3332,
18,
542,
548,
12,
1079,
734,
18,
7570,
67,
5923,
1769,
202,
202,
4468,
863,
3332,
18,
542,
620,
12,
1079,
734,
18,
9900,
67,
8352,
67,
3297,
16,
4468,
863,
1769,
9506,
202,
759,
542,
451,
1332,
1820,
9188,
2696,
8812,
12407,
896,
2080,
5787,
4738,
768,
2152,
275,
1145,
202,
202,
759,
19056,
2681,
20244,
359,
778,
1051,
835,
87,
202,
202,
430,
12,
28162,
13,
1082,
202,
4901,
18,
1376,
12,
2211,
18,
529,
9078,
18526,
1136,
2111,
13851,
264,
1097,
835,
1199,
1769,
202,
202,
4661,
774,
2932,
54,
82,
2081,
3113,
4468,
863,
3332,
1769,
202,
202,
759,
91,
69,
483,
822,
12198,
301,
615,
2080,
5787,
54,
82,
11913,
8271,
305,
1807,
580,
1060,
2080,
454,
54,
82,
15252,
18,
202,
202,
430,
12,
28162,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
265,
1685,
1435,
95,
3355,
950,
33,
3163,
18,
2972,
28512,
5621,
1937,
950,
33,
3163,
18,
2972,
28512,
5621,
4468,
863,
33,
1420,
1304,
18,
588,
18731,
1463,
8658,
12,
16108,
1396,
2697,
63,
20,
19226,
202,
202,
759,
4661,
301,
403,
346,
278,
3011,
2111,
13851,
29638,
10370,
270,
1136,
2111,
2696,
12407,
20194,
70,
281,
278,
265,
454,
4690,
202,
202,
2617,
1318,
84,
1318,
33,
2617,
1318,
18,
588,
1442,
5621,
202,
202,
2617,
18149,
2617,
33,
84,
1318,
18,
588,
11323,
2617,
5621,
202,
202,
49,
403,
346,
359,
1540,
3332,
33,
2011,
31,
202,
202,
1079,
4468,
863,
3332,
33,
2640,
1079,
5621,
202,
202,
4468,
863,
3332,
18,
542,
548,
2
] |
||
name = " " + token; | name = " " + token; | void dirdcl() { int type; if (tokenType == '(') { dcl(); if (tokenType != ')') { // FIXME: Do we throw an exception ? not terminate parenthese return; } } else if (tokenType == NAME) { // Useless we do not need the name of the variable name = " " + token; } else if (tokenType == PARENS) { prependChild(GDBType.FUNCTION); } else if (tokenType == BRACKETS) { int len = 0; if (token.length() > 0) { try { len = Integer.parseInt(token); } catch (NumberFormatException e) { } } prependChild(GDBType.ARRAY, len); } else { // oops bad declaration ? return; } while ((type = getToken()) == PARENS || type == BRACKETS) { if (type == EOF) { return; } if (type == PARENS) { prependChild(GDBType.FUNCTION); } else { int len = 0; if (token.length() > 0) { try { len = Integer.parseInt(token); } catch (NumberFormatException e) { } } prependChild(GDBType.ARRAY, len); } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f3a9fae6384fd8bb36474b1661bb6d0b65b38d5f/GDBTypeParser.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1577,
72,
830,
1435,
288,
202,
202,
474,
618,
31,
202,
202,
430,
261,
2316,
559,
422,
7321,
13,
288,
1082,
202,
72,
830,
5621,
1082,
202,
430,
261,
2316,
559,
480,
5777,
13,
288,
9506,
202,
759,
9852,
30,
2256,
732,
604,
392,
1520,
692,
486,
10850,
22146,
451,
3392,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
2316,
559,
422,
6048,
13,
288,
1082,
202,
759,
587,
1786,
403,
732,
741,
486,
1608,
326,
508,
434,
326,
2190,
1082,
202,
529,
273,
315,
315,
397,
1147,
31,
202,
202,
97,
469,
309,
261,
2316,
559,
422,
453,
9332,
3156,
13,
288,
1082,
202,
23100,
1763,
12,
43,
2290,
559,
18,
7788,
1769,
202,
202,
97,
469,
309,
261,
2316,
559,
422,
22427,
17750,
55,
13,
288,
25083,
202,
474,
562,
273,
374,
31,
1082,
202,
430,
261,
2316,
18,
2469,
1435,
405,
374,
13,
288,
9506,
202,
698,
288,
6862,
202,
1897,
273,
2144,
18,
2670,
1702,
12,
2316,
1769,
9506,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
9506,
202,
97,
1082,
202,
97,
1082,
202,
23100,
1763,
12,
43,
2290,
559,
18,
8552,
16,
562,
1769,
202,
202,
97,
469,
288,
1082,
202,
759,
320,
4473,
5570,
8266,
692,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
17523,
14015,
723,
273,
9162,
10756,
422,
453,
9332,
3156,
747,
618,
422,
22427,
17750,
55,
13,
288,
1082,
202,
430,
261,
723,
422,
6431,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1577,
72,
830,
1435,
288,
202,
202,
474,
618,
31,
202,
202,
430,
261,
2316,
559,
422,
7321,
13,
288,
1082,
202,
72,
830,
5621,
1082,
202,
430,
261,
2316,
559,
480,
5777,
13,
288,
9506,
202,
759,
9852,
30,
2256,
732,
604,
392,
1520,
692,
486,
10850,
22146,
451,
3392,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
2316,
559,
422,
6048,
13,
288,
1082,
202,
759,
587,
1786,
403,
732,
741,
486,
1608,
326,
508,
434,
326,
2190,
1082,
202,
529,
273,
315,
315,
397,
1147,
31,
202,
202,
97,
469,
309,
261,
2316,
559,
422,
453,
9332,
3156,
13,
288,
1082,
202,
23100,
1763,
12,
43,
2290,
559,
2
] |
protected FilterUtils.FilterTransformer getReverter() { return new FilterUtils.FilterTransformer() { public FeatureFilter transform(FeatureFilter ff) { // fixme: should we be mapping filters on feature instance or sequence // instance? return ff; } }; } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/6af69e6d2e15b3553ee1bc70f261ad615ee61682/ReparentContext.java/clean/src/org/biojava/bio/seq/projection/ReparentContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1586,
1989,
18,
1586,
8319,
588,
426,
3243,
1435,
95,
2463,
2704,
1586,
1989,
18,
1586,
8319,
1435,
95,
482,
4595,
1586,
6547,
12,
4595,
1586,
1403,
15329,
759,
904,
3501,
30,
13139,
4875,
25248,
1382,
2188,
816,
7238,
1336,
280,
6178,
759,
1336,
35,
2463,
1403,
31,
9090,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1586,
1989,
18,
1586,
8319,
588,
426,
3243,
1435,
95,
2463,
2704,
1586,
1989,
18,
1586,
8319,
1435,
95,
482,
4595,
1586,
6547,
12,
4595,
1586,
1403,
15329,
759,
904,
3501,
30,
13139,
4875,
25248,
1382,
2188,
816,
7238,
1336,
280,
6178,
759,
1336,
35,
2463,
1403,
31,
9090,
31,
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
] |
||
int label = target.labelId; | int label = target.labelId(); | private int getTargetLabel(Node.Target target) { int label = target.labelId; if (label != -1) { return label; } label = itsLabelTableTop; if (itsLabelTable == null || label == itsLabelTable.length) { if (itsLabelTable == null) { itsLabelTable = new int[MIN_LABEL_TABLE_SIZE]; }else { int[] tmp = new int[itsLabelTable.length * 2]; System.arraycopy(itsLabelTable, 0, tmp, 0, label); itsLabelTable = tmp; } } itsLabelTableTop = label + 1; itsLabelTable[label] = -1; target.labelId = label; return label; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bef182034b96d54a2938fe141217e83b8644cf25/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
8571,
2224,
12,
907,
18,
2326,
1018,
13,
565,
288,
3639,
509,
1433,
273,
1018,
18,
1925,
548,
5621,
3639,
309,
261,
1925,
480,
300,
21,
13,
288,
5411,
327,
1433,
31,
3639,
289,
3639,
1433,
273,
2097,
2224,
1388,
3401,
31,
3639,
309,
261,
1282,
2224,
1388,
422,
446,
747,
1433,
422,
2097,
2224,
1388,
18,
2469,
13,
288,
5411,
309,
261,
1282,
2224,
1388,
422,
446,
13,
288,
7734,
2097,
2224,
1388,
273,
394,
509,
63,
6236,
67,
13545,
67,
7775,
67,
4574,
15533,
5411,
289,
12107,
288,
7734,
509,
8526,
1853,
273,
394,
509,
63,
1282,
2224,
1388,
18,
2469,
380,
576,
15533,
7734,
2332,
18,
1126,
3530,
12,
1282,
2224,
1388,
16,
374,
16,
1853,
16,
374,
16,
1433,
1769,
7734,
2097,
2224,
1388,
273,
1853,
31,
5411,
289,
3639,
289,
3639,
2097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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
8571,
2224,
12,
907,
18,
2326,
1018,
13,
565,
288,
3639,
509,
1433,
273,
1018,
18,
1925,
548,
5621,
3639,
309,
261,
1925,
480,
300,
21,
13,
288,
5411,
327,
1433,
31,
3639,
289,
3639,
1433,
273,
2097,
2224,
1388,
3401,
31,
3639,
309,
261,
1282,
2224,
1388,
422,
446,
747,
1433,
422,
2097,
2224,
1388,
18,
2469,
13,
288,
5411,
309,
261,
1282,
2224,
1388,
422,
446,
13,
288,
7734,
2097,
2224,
1388,
273,
394,
509,
63,
6236,
67,
13545,
67,
7775,
67,
4574,
15533,
5411,
289,
12107,
288,
7734,
509,
8526,
1853,
273,
394,
509,
63,
1282,
2224,
1388,
18,
2469,
380,
576,
15533,
7734,
2332,
18,
1126,
3530,
12,
1282,
2224,
1388,
16,
2
] |
if (t != t) return js_NaN_date_str; | private static String date_format(double t, int methodId) { if (t != t) return js_NaN_date_str; StringBuffer result = new StringBuffer(60); double local = LocalTime(t); /* Tue Oct 31 09:41:40 GMT-0800 (PST) 2000 */ /* Tue Oct 31 2000 */ /* 09:41:40 GMT-0800 (PST) */ if (methodId != Id_toTimeString) { appendWeekDayName(result, WeekDay(local)); result.append(' '); appendMonthName(result, MonthFromTime(local)); result.append(' '); append0PaddedUint(result, DateFromTime(local), 2); result.append(' '); int year = YearFromTime(local); if (year < 0) { result.append('-'); year = -year; } append0PaddedUint(result, year, 4); if (methodId != Id_toDateString) result.append(' '); } if (methodId != Id_toDateString) { append0PaddedUint(result, HourFromTime(local), 2); result.append(':'); append0PaddedUint(result, MinFromTime(local), 2); result.append(':'); append0PaddedUint(result, SecFromTime(local), 2); // offset from GMT in minutes. The offset includes daylight // savings, if it applies. int minutes = (int) Math.floor((LocalTZA + DaylightSavingTA(t)) / msPerMinute); // map 510 minutes to 0830 hours int offset = (minutes / 60) * 100 + minutes % 60; if (offset > 0) { result.append(" GMT+"); } else { result.append(" GMT-"); offset = -offset; } append0PaddedUint(result, offset, 4); if (timeZoneFormatter == null) timeZoneFormatter = new java.text.SimpleDateFormat("zzz"); // Find an equivalent year before getting the timezone // comment. See DaylightSavingTA. if (t < 0.0 || t > 2145916800000.0) { int equiv = EquivalentYear(YearFromTime(local)); double day = MakeDay(equiv, MonthFromTime(t), DateFromTime(t)); t = MakeDate(day, TimeWithinDay(t)); } result.append(" ("); java.util.Date date = new Date((long) t); result.append(timeZoneFormatter.format(date)); result.append(')'); } return result.toString(); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/ef2adbe0e46291a57bc6c6eda9ce45275f62985c/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1509,
67,
2139,
12,
9056,
268,
16,
509,
707,
548,
13,
565,
288,
3639,
309,
261,
88,
480,
268,
13,
5411,
327,
3828,
67,
21172,
67,
712,
67,
701,
31,
3639,
6674,
563,
273,
394,
6674,
12,
4848,
1769,
3639,
1645,
1191,
273,
25515,
12,
88,
1769,
3639,
1748,
399,
344,
29482,
8231,
21058,
30,
9803,
30,
7132,
21706,
17,
6840,
713,
261,
52,
882,
13,
16291,
1195,
3639,
1748,
399,
344,
29482,
8231,
16291,
1195,
3639,
1748,
21058,
30,
9803,
30,
7132,
21706,
17,
6840,
713,
261,
52,
882,
13,
1195,
3639,
309,
261,
2039,
548,
480,
3124,
67,
869,
950,
780,
13,
288,
5411,
714,
6630,
4245,
461,
12,
2088,
16,
10527,
4245,
12,
3729,
10019,
5411,
563,
18,
6923,
2668,
28005,
5411,
714,
5445,
461,
12,
2088,
16,
10337,
1265,
950,
12,
3729,
10019,
5411,
563,
18,
6923,
2668,
28005,
5411,
714,
20,
52,
9665,
5487,
12,
2088,
16,
2167,
1265,
950,
12,
3729,
3631,
576,
1769,
5411,
563,
18,
6923,
2668,
28005,
5411,
509,
3286,
273,
16666,
1265,
950,
12,
3729,
1769,
5411,
309,
261,
6874,
411,
374,
13,
288,
7734,
563,
18,
6923,
2668,
6627,
1769,
7734,
3286,
273,
300,
6874,
31,
5411,
289,
5411,
714,
20,
52,
9665,
5487,
12,
2088,
16,
3286,
16,
1059,
1769,
5411,
309,
261,
2039,
548,
480,
3124,
67,
869,
1626,
780,
13,
7734,
563,
18,
6923,
2668,
28005,
3639,
289,
3639,
309,
261,
2039,
548,
480,
3124,
67,
869,
1626,
780,
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,
514,
1509,
67,
2139,
12,
9056,
268,
16,
509,
707,
548,
13,
565,
288,
3639,
309,
261,
88,
480,
268,
13,
5411,
327,
3828,
67,
21172,
67,
712,
67,
701,
31,
3639,
6674,
563,
273,
394,
6674,
12,
4848,
1769,
3639,
1645,
1191,
273,
25515,
12,
88,
1769,
3639,
1748,
399,
344,
29482,
8231,
21058,
30,
9803,
30,
7132,
21706,
17,
6840,
713,
261,
52,
882,
13,
16291,
1195,
3639,
1748,
399,
344,
29482,
8231,
16291,
1195,
3639,
1748,
21058,
30,
9803,
30,
7132,
21706,
17,
6840,
713,
261,
52,
882,
13,
1195,
3639,
309,
261,
2039,
548,
480,
3124,
67,
869,
950,
780,
13,
288,
5411,
714,
6630,
4245,
461,
12,
2088,
16,
10527,
4245,
2
] |
|
return Argo.localize ("Tree", "misc.class.subclass"); } | return Argo.localize ("Tree", "misc.class.subclass"); } | public String getRuleName() { return Argo.localize ("Tree", "misc.class.subclass"); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/GoGenElementToDerived.java/buggy/src_new/org/argouml/uml/diagram/ui/GoGenElementToDerived.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
19048,
461,
1435,
288,
565,
327,
1201,
3240,
18,
3729,
554,
7566,
2471,
3113,
315,
23667,
18,
1106,
18,
10678,
8863,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
19048,
461,
1435,
288,
565,
327,
1201,
3240,
18,
3729,
554,
7566,
2471,
3113,
315,
23667,
18,
1106,
18,
10678,
8863,
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
] |
eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_LINE__VALUE, newValue, newValue)); | eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_LINE__VALUE, newValue, newValue)); | public void setValue(DataElement newValue) { if (newValue != value) { NotificationChain msgs = null; if (value != null) msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.MARKER_LINE__VALUE, null, msgs); if (newValue != null) msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.MARKER_LINE__VALUE, null, msgs); msgs = basicSetValue(newValue, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_LINE__VALUE, newValue, newValue)); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/MarkerLineImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/MarkerLineImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
12,
751,
1046,
6129,
13,
565,
288,
3639,
309,
261,
2704,
620,
480,
460,
13,
3639,
288,
5411,
27050,
8733,
273,
446,
31,
5411,
309,
261,
1132,
480,
446,
13,
7734,
8733,
273,
14015,
3061,
8029,
13,
1132,
2934,
73,
16376,
3288,
12,
2211,
16,
512,
3665,
24595,
67,
18257,
67,
8369,
300,
5435,
2261,
18,
25989,
67,
5997,
972,
4051,
16,
446,
16,
8733,
1769,
5411,
309,
261,
2704,
620,
480,
446,
13,
7734,
8733,
273,
14015,
3061,
8029,
13,
2704,
620,
2934,
73,
16376,
986,
12,
2211,
16,
512,
3665,
24595,
67,
18257,
67,
8369,
300,
5435,
2261,
18,
25989,
67,
5997,
972,
4051,
16,
446,
16,
8733,
1769,
5411,
8733,
273,
5337,
694,
620,
12,
2704,
620,
16,
8733,
1769,
5411,
309,
261,
27439,
480,
446,
13,
8733,
18,
10739,
5621,
3639,
289,
3639,
469,
309,
261,
73,
21107,
10756,
5411,
22596,
12,
2704,
19953,
12,
2211,
16,
8050,
18,
4043,
16,
5435,
2261,
18,
25989,
67,
5997,
972,
4051,
16,
6129,
16,
6129,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
1132,
2934,
73,
16376,
3288,
12,
2211,
16,
512,
3665,
24595,
67,
18257,
67,
8369,
300,
5435,
2261,
18,
25989,
67,
5997,
972,
4051,
16,
446,
16,
8733,
1769,
5411,
309,
261,
2704,
620,
480,
446,
13,
7734,
8733,
273,
14015,
3061,
8029,
13,
2704,
620,
2934,
73,
16376,
986,
12,
2211,
16,
512,
3665,
24595,
67,
18257,
67,
8369,
300,
5435,
2261,
18,
25989,
67,
5997,
972,
4051,
16,
446,
16,
8733,
1769,
5411,
8733,
273,
5337,
2
] |
void refresh() { if (isDisposed()) return; progressLabel.setText(getMainTitle()); int percentDone = getPercentDone(); if (isRunning()) { if (progressBar == null) createProgressBar(percentDone == IProgressMonitor.UNKNOWN ? SWT.INDETERMINATE : SWT.NONE); // Protect against bad counters if (percentDone >= 0 && percentDone <= 100) progressBar.setSelection(percentDone); } if (isCompleted()) { if (progressBar != null) { progressBar.dispose(); progressBar = null; } setLayoutsForNoProgress(); actionButton.setImage(JFaceResources .getImage(CLEAR_FINISHED_JOB_KEY)); actionButton.setDisabledImage(JFaceResources .getImage(DISABLED_CLEAR_FINISHED_JOB_KEY)); } JobInfo[] infos = getJobInfos(); int taskCount = 0; for (int i = 0; i < infos.length; i++) { JobInfo jobInfo = infos[i]; if (jobInfo.hasTaskInfo()) { String taskString = jobInfo.getTaskInfo().getTaskName(); String subTaskString = null; Object[] jobChildren = jobInfo.getChildren(); if (jobChildren.length > 0) subTaskString = ((JobTreeElement) jobChildren[0]) .getDisplayString(); if (subTaskString != null) { if (taskString == null) taskString = subTaskString; else taskString = NLS.bind( ProgressMessages.JobInfo_DoneNoProgressMessage, taskString, subTaskString); } if (taskString != null) { setLinkText(infos[i].getJob(), taskString, taskCount); taskCount++; } } else {// Check for the finished job state Job job = jobInfo.getJob(); if (job.getState() == Job.NONE) { setLinkText(job, job.getResult().getMessage(), i); taskCount++; } } } // Remove completed tasks if (taskCount < taskEntries.size()) { for (int i = taskCount; i < taskEntries.size(); i++) { ((Link) taskEntries.get(i)).dispose(); } taskEntries = taskEntries.subList(0, taskCount); } layout(true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fe9f2041196c03e2eebef06a16b93efff630ff84/ProgressInfoItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
4460,
1435,
288,
202,
202,
430,
261,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
202,
202,
8298,
2224,
18,
542,
1528,
12,
588,
6376,
4247,
10663,
202,
202,
474,
5551,
7387,
273,
22612,
2998,
7387,
5621,
202,
202,
430,
261,
291,
7051,
10756,
288,
1082,
202,
430,
261,
8298,
5190,
422,
446,
13,
9506,
202,
2640,
31547,
12,
8849,
7387,
422,
467,
5491,
7187,
18,
14737,
692,
348,
8588,
18,
2356,
1584,
654,
6236,
1777,
25083,
202,
30,
348,
8588,
18,
9826,
1769,
1082,
202,
759,
1186,
88,
386,
5314,
5570,
13199,
1082,
202,
430,
261,
8849,
7387,
1545,
374,
597,
5551,
7387,
1648,
2130,
13,
9506,
202,
8298,
5190,
18,
542,
6233,
12,
8849,
7387,
1769,
202,
202,
97,
202,
202,
430,
261,
291,
9556,
10756,
288,
25083,
202,
430,
261,
8298,
5190,
480,
446,
13,
288,
9506,
202,
8298,
5190,
18,
2251,
4150,
5621,
9506,
202,
8298,
5190,
273,
446,
31,
1082,
202,
97,
1082,
202,
542,
3744,
28388,
2279,
5491,
5621,
1082,
202,
1128,
3616,
18,
542,
2040,
12,
46,
11824,
3805,
6862,
202,
18,
588,
2040,
12,
23181,
985,
67,
23259,
2056,
67,
18321,
67,
3297,
10019,
1082,
202,
1128,
3616,
18,
542,
8853,
2040,
12,
46,
11824,
3805,
6862,
202,
18,
588,
2040,
12,
24493,
67,
23181,
985,
67,
23259,
2056,
67,
18321,
67,
3297,
10019,
6862,
202,
97,
202,
202,
2278,
966,
8526,
10626,
273,
13024,
7655,
5621,
202,
202,
474,
1562,
1380,
273,
374,
31,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
4460,
1435,
288,
202,
202,
430,
261,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
202,
202,
8298,
2224,
18,
542,
1528,
12,
588,
6376,
4247,
10663,
202,
202,
474,
5551,
7387,
273,
22612,
2998,
7387,
5621,
202,
202,
430,
261,
291,
7051,
10756,
288,
1082,
202,
430,
261,
8298,
5190,
422,
446,
13,
9506,
202,
2640,
31547,
12,
8849,
7387,
422,
467,
5491,
7187,
18,
14737,
692,
348,
8588,
18,
2356,
1584,
654,
6236,
1777,
25083,
202,
30,
348,
8588,
18,
9826,
1769,
1082,
202,
759,
1186,
88,
386,
5314,
5570,
13199,
1082,
202,
430,
261,
8849,
7387,
1545,
374,
597,
5551,
7387,
1648,
2130,
13,
9506,
202,
8298,
5190,
18,
542,
6233,
12,
8849,
2
] |
||
public void startAuthentication(final String user, final char[] password, final String server) throws IOException { canceled = false; if (getSynchronous()) { if (authenticate(user,password,server)) { fireLoginSucceeded(new LoginEvent(this)); } else { fireLoginFailed(new LoginEvent(this)); } } else { Runnable runnable = new Runnable() { public void run() { try { final boolean result = authenticate(user,password,server); if (!canceled) { EventQueue.invokeLater(new Runnable() { public void run() { if (result) { fireLoginSucceeded(new LoginEvent(LoginService.this)); } else { fireLoginFailed(new LoginEvent(LoginService.this)); } } }); } } catch(final IOException failed) { SwingUtilities.invokeLater(new Runnable() { public void run() { fireLoginFailed(new LoginEvent(LoginService.this, failed)); } }); } } }; loginThread = getLoginThread(runnable) ; loginThread.start(); fireLoginStarted(new LoginEvent(this)); } | public void startAuthentication(final String user, final char[] password, final String server) throws Exception { if (getSynchronous()) { try { if (authenticate(user,password,server)) { fireLoginSucceeded(new LoginEvent(this)); } else { fireLoginFailed(new LoginEvent(this)); } } catch (Exception e) { fireLoginFailed(new LoginEvent(this, e)); } } else { loginWorker = new SwingWorker() { protected Object doInBackground() throws Exception { try { final boolean result = authenticate(user,password,server); if (isCancelled()) { EventQueue.invokeLater(new Runnable() { public void run() { fireLoginCanceled(new LoginEvent(this)); } }); return false; } EventQueue.invokeLater(new Runnable() { public void run() { if (result) { fireLoginSucceeded(new LoginEvent(LoginService.this)); } else { fireLoginFailed(new LoginEvent(LoginService.this)); } } }); return result; } catch (final Exception failed) { if (!isCancelled()) { SwingUtilities.invokeLater(new Runnable() { public void run() { fireLoginFailed(new LoginEvent(LoginService.this, failed)); } }); } else { EventQueue.invokeLater(new Runnable() { public void run() { fireLoginCanceled(new LoginEvent(this)); } }); } return false; } } }; loginWorker.execute(); fireLoginStarted(new LoginEvent(this)); } | public void startAuthentication(final String user, final char[] password, final String server) throws IOException { canceled = false; if (getSynchronous()) { if (authenticate(user,password,server)) { fireLoginSucceeded(new LoginEvent(this)); } else { fireLoginFailed(new LoginEvent(this)); } } else { Runnable runnable = new Runnable() { public void run() { try { final boolean result = authenticate(user,password,server); if (!canceled) { EventQueue.invokeLater(new Runnable() { public void run() { if (result) { fireLoginSucceeded(new LoginEvent(LoginService.this)); } else { fireLoginFailed(new LoginEvent(LoginService.this)); } } }); } } catch(final IOException failed) { SwingUtilities.invokeLater(new Runnable() { public void run() { fireLoginFailed(new LoginEvent(LoginService.this, failed)); } }); } } }; loginThread = getLoginThread(runnable) ; loginThread.start(); fireLoginStarted(new LoginEvent(this)); } } | 47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/a11311a22ef561c606a731d392718eb2305b9423/LoginService.java/buggy/src/java/org/jdesktop/swingx/auth/LoginService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
6492,
12,
6385,
514,
729,
16,
727,
1149,
8526,
2201,
16,
727,
514,
1438,
13,
1216,
1860,
288,
4202,
17271,
273,
629,
31,
4202,
309,
261,
588,
55,
7121,
10756,
288,
540,
309,
261,
22035,
12,
1355,
16,
3664,
16,
3567,
3719,
288,
6647,
4452,
5358,
30500,
12,
2704,
11744,
1133,
12,
2211,
10019,
6647,
289,
469,
288,
6647,
4452,
5358,
2925,
12,
2704,
11744,
1133,
12,
2211,
10019,
6647,
289,
540,
289,
469,
288,
540,
10254,
14685,
273,
394,
10254,
1435,
288,
6647,
1071,
918,
1086,
1435,
288,
2398,
775,
288,
1171,
727,
1250,
563,
273,
8929,
12,
1355,
16,
3664,
16,
3567,
1769,
1171,
309,
16051,
10996,
329,
13,
288,
5397,
2587,
3183,
18,
14407,
20607,
12,
2704,
10254,
1435,
288,
13491,
1071,
918,
1086,
1435,
288,
21821,
309,
261,
2088,
13,
288,
17311,
4452,
5358,
30500,
12,
2704,
11744,
1133,
12,
5358,
1179,
18,
2211,
10019,
11794,
289,
21821,
469,
288,
17311,
4452,
5358,
2925,
12,
2704,
11744,
1133,
12,
5358,
1179,
18,
2211,
10019,
18701,
289,
13491,
289,
8227,
15549,
1171,
289,
2398,
289,
1044,
12,
6385,
1860,
2535,
13,
288,
1171,
26145,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
288,
5397,
1071,
918,
1086,
1435,
288,
7682,
4452,
5358,
2925,
12,
2704,
11744,
1133,
12,
5358,
1179,
18,
2211,
16,
2535,
10019,
5397,
289,
1171,
15549,
2398,
289,
6647,
289,
6647,
289,
31,
6647,
3925,
3830,
273,
25128,
3830,
12,
2681,
6914,
13,
274,
1850,
3925,
3830,
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,
787,
6492,
12,
6385,
514,
729,
16,
727,
1149,
8526,
2201,
16,
727,
514,
1438,
13,
1216,
1860,
288,
4202,
17271,
273,
629,
31,
4202,
309,
261,
588,
55,
7121,
10756,
288,
540,
309,
261,
22035,
12,
1355,
16,
3664,
16,
3567,
3719,
288,
6647,
4452,
5358,
30500,
12,
2704,
11744,
1133,
12,
2211,
10019,
6647,
289,
469,
288,
6647,
4452,
5358,
2925,
12,
2704,
11744,
1133,
12,
2211,
10019,
6647,
289,
540,
289,
469,
288,
540,
10254,
14685,
273,
394,
10254,
1435,
288,
6647,
1071,
918,
1086,
1435,
288,
2398,
775,
288,
1171,
727,
1250,
563,
273,
8929,
12,
1355,
16,
3664,
16,
3567,
1769,
1171,
309,
16051,
10996,
329,
13,
288,
5397,
2587,
3183,
2
] |
Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.decrementBusy(event.getJob()); } JobInfo info = getJobInfo(event.getJob()); if (event.getResult() != null && event.getResult().getSeverity() == IStatus.ERROR) { errorManager.addError(event.getResult(), event.getJob()); } jobs.remove(event.getJob()); removeJobInfo(info); if (hasNoRegularJobInfos() && !isNonDisplayableJob(event.getJob(), false)) { | Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.decrementBusy(event.getJob()); } JobInfo info = getJobInfo(event.getJob()); if (event.getResult() != null && event.getResult().getSeverity() == IStatus.ERROR) { errorManager.addError(event.getResult(), event.getJob()); } jobs.remove(event.getJob()); removeJobInfo(info); if (hasNoRegularJobInfos() && !isNonDisplayableJob(event.getJob(), false)) { | private void createChangeListener() { changeListener = new JobChangeAdapter() { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#aboutToRun(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void aboutToRun(IJobChangeEvent event) { JobInfo info = getJobInfo(event.getJob()); refreshJobInfo(info); Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.incrementBusy(event.getJob()); } } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#done(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void done(IJobChangeEvent event) { if (!PlatformUI.isWorkbenchRunning()) { return; } Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.decrementBusy(event.getJob()); } JobInfo info = getJobInfo(event.getJob()); if (event.getResult() != null && event.getResult().getSeverity() == IStatus.ERROR) { errorManager.addError(event.getResult(), event.getJob()); } jobs.remove(event.getJob()); // Only refresh if we are showing it removeJobInfo(info); // If there are no more left then refresh all on the last // displayed one. if (hasNoRegularJobInfos() && !isNonDisplayableJob(event.getJob(), false)) { refreshAll(); } } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#scheduled(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void scheduled(IJobChangeEvent event) { updateFor(event); if (event.getJob().isUser()) { boolean noDialog = shouldRunInBackground(); if (!noDialog) { final IJobChangeEvent finalEvent = event; WorkbenchJob showJob = new WorkbenchJob( ProgressMessages.ProgressManager_showInDialogName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread( IProgressMonitor monitor) { showInDialog(PlatformUI.getWorkbench() .getDisplay().getActiveShell(), finalEvent.getJob()); return Status.OK_STATUS; } }; showJob.setSystem(true); showJob.schedule(); return; } } } /** * Update the listeners for the receiver for the event. * * @param event */ private void updateFor(IJobChangeEvent event) { if (isNeverDisplayedJob(event.getJob())) { return; } if (jobs.containsKey(event.getJob())) { refreshJobInfo(getJobInfo(event.getJob())); } else { addJobInfo(new JobInfo(event.getJob())); } } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#awake(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void awake(IJobChangeEvent event) { updateFor(event); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#sleeping(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void sleeping(IJobChangeEvent event) { updateFor(event); } }; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
15744,
1435,
288,
202,
202,
3427,
2223,
273,
394,
3956,
3043,
4216,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
3644,
18,
9448,
18,
10088,
18,
2278,
3043,
4216,
7,
21071,
774,
1997,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
10088,
18,
45,
2278,
20930,
13,
9506,
1195,
1082,
202,
482,
918,
2973,
774,
1997,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
2278,
966,
1123,
273,
13024,
966,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
9144,
2278,
966,
12,
1376,
1769,
9506,
202,
3198,
787,
5583,
273,
21697,
5583,
1290,
2278,
12,
2575,
18,
588,
2278,
10756,
25083,
202,
18,
9838,
5621,
9506,
202,
17523,
261,
1937,
5583,
18,
5332,
2134,
10756,
288,
6862,
202,
45,
2278,
29289,
2223,
1024,
273,
261,
45,
2278,
29289,
2223,
13,
787,
5583,
6862,
1082,
202,
18,
4285,
5621,
6862,
202,
4285,
18,
15016,
29289,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
97,
1082,
202,
97,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
3644,
18,
9448,
18,
10088,
18,
2278,
3043,
4216,
7,
8734,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
10088,
18,
45,
2278,
20930,
13,
9506,
1195,
1082,
202,
482,
918,
2731,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
430,
16051,
8201,
5370,
18,
291,
2421,
22144,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
15744,
1435,
288,
202,
202,
3427,
2223,
273,
394,
3956,
3043,
4216,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
3644,
18,
9448,
18,
10088,
18,
2278,
3043,
4216,
7,
21071,
774,
1997,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
10088,
18,
45,
2278,
20930,
13,
9506,
1195,
1082,
202,
482,
918,
2973,
774,
1997,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
2278,
966,
1123,
273,
13024,
966,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
9144,
2278,
966,
12,
1376,
1769,
9506,
202,
3198,
787,
5583,
273,
21697,
5583,
1290,
2278,
12,
2575,
18,
588,
2
] |
if (header.localSeqID != NULL_ID) passUp(new Event(Event.MSG, msg)); | if (header.localSequenceID != NULL_ID) passUp(new Event(Event.MSG, msg)); | private void _deliverBcast() { Message msg; Header header; synchronized(upTbl) { while((msg = (Message)upTbl.remove(new Long(seqID+1))) != null) { header = (Header)msg.removeHeader(getName()); if (header.localSeqID != NULL_ID) passUp(new Event(Event.MSG, msg)); ++seqID; } } // synchronized(upTbl) } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/83f486f4daa5fcb410f15f0f5d587f3adff99f81/TOTAL.java/buggy/src/org/jgroups/protocols/TOTAL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
389,
26672,
38,
4155,
1435,
288,
202,
202,
1079,
1234,
31,
202,
202,
1864,
225,
1446,
31,
202,
202,
22043,
12,
416,
22592,
13,
288,
202,
202,
17523,
12443,
3576,
273,
261,
1079,
13,
416,
22592,
18,
4479,
12,
2704,
3407,
12,
5436,
734,
15,
21,
20349,
480,
446,
13,
288,
1082,
202,
3374,
273,
261,
1864,
13,
3576,
18,
4479,
1864,
12,
17994,
10663,
1082,
202,
430,
261,
3374,
18,
3729,
6926,
734,
480,
3206,
67,
734,
13,
1342,
1211,
12,
2704,
2587,
12,
1133,
18,
11210,
16,
1234,
10019,
1082,
202,
9904,
5436,
734,
31,
202,
202,
97,
202,
202,
97,
368,
3852,
12,
416,
22592,
13,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
389,
26672,
38,
4155,
1435,
288,
202,
202,
1079,
1234,
31,
202,
202,
1864,
225,
1446,
31,
202,
202,
22043,
12,
416,
22592,
13,
288,
202,
202,
17523,
12443,
3576,
273,
261,
1079,
13,
416,
22592,
18,
4479,
12,
2704,
3407,
12,
5436,
734,
15,
21,
20349,
480,
446,
13,
288,
1082,
202,
3374,
273,
261,
1864,
13,
3576,
18,
4479,
1864,
12,
17994,
10663,
1082,
202,
430,
261,
3374,
18,
3729,
6926,
734,
480,
3206,
67,
734,
13,
1342,
1211,
12,
2704,
2587,
12,
1133,
18,
11210,
16,
1234,
10019,
1082,
202,
9904,
5436,
734,
31,
202,
202,
97,
202,
202,
97,
368,
3852,
12,
416,
22592,
13,
202,
97,
2,
-100,
-100,
-100,
-100
] |
throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { | throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { | public byte[] getBytes(int len, boolean exclusiveBuffer) throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { byte result[]; // Do not keep an internal result buffer larger than 16k. // This would unnecessarily use up memory. if (exclusiveBuffer || len > 16384) { result = new byte[len]; } else { if (resBuffer.length < len) { resBuffer = new byte[len]; } result = resBuffer; } for (int i = 0; i < len;) { if (inBufferIndex >= inBufferLen) { getPhysicalPacket(); } int avail = inBufferLen - inBufferIndex; avail = avail > len - i ? len - i : avail; System.arraycopy(inBuffer, inBufferIndex, result, i, avail); i += avail; inBufferIndex += avail; } return result; } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/8552aa9a2df546b4d1977c587b04556c7b854ab4/TdsComm.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsComm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
8425,
12,
474,
562,
16,
1250,
12060,
1892,
13,
3639,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
1160,
563,
8526,
31,
3639,
368,
2256,
486,
3455,
392,
2713,
563,
1613,
10974,
2353,
2872,
79,
18,
3639,
368,
1220,
4102,
16209,
21513,
999,
731,
3778,
18,
3639,
309,
261,
23792,
1892,
747,
562,
405,
2872,
17295,
13,
288,
5411,
563,
273,
394,
1160,
63,
1897,
15533,
3639,
289,
469,
288,
5411,
309,
261,
455,
1892,
18,
2469,
411,
562,
13,
288,
7734,
400,
1892,
273,
394,
1160,
63,
1897,
15533,
5411,
289,
5411,
563,
273,
400,
1892,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
30943,
288,
5411,
309,
261,
267,
1892,
1016,
1545,
316,
1892,
2891,
13,
288,
7734,
21735,
7046,
6667,
5621,
5411,
289,
5411,
509,
15783,
273,
316,
1892,
2891,
300,
316,
1892,
1016,
31,
5411,
15783,
273,
15783,
405,
562,
300,
277,
692,
562,
300,
277,
294,
15783,
31,
5411,
2332,
18,
1126,
3530,
12,
267,
1892,
16,
316,
1892,
1016,
16,
563,
16,
277,
16,
15783,
1769,
5411,
277,
1011,
15783,
31,
5411,
316,
1892,
1016,
1011,
15783,
31,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
8425,
12,
474,
562,
16,
1250,
12060,
1892,
13,
3639,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
1160,
563,
8526,
31,
3639,
368,
2256,
486,
3455,
392,
2713,
563,
1613,
10974,
2353,
2872,
79,
18,
3639,
368,
1220,
4102,
16209,
21513,
999,
731,
3778,
18,
3639,
309,
261,
23792,
1892,
747,
562,
405,
2872,
17295,
13,
288,
5411,
563,
273,
394,
1160,
63,
1897,
15533,
3639,
289,
469,
288,
5411,
309,
261,
455,
1892,
18,
2469,
411,
562,
13,
288,
7734,
400,
1892,
273,
394,
1160,
63,
1897,
15533,
5411,
289,
5411,
563,
273,
400,
1892,
31,
2
] |
public final int getSuggestionDelayMs( javax.faces.context.FacesContext facesContext) { return engine.getIntProperty(Properties.SUGGESTION_DELAY_MS, 0, facesContext); } | public final int getSuggestionDelayMs() { return getSuggestionDelayMs(null); } | public final int getSuggestionDelayMs( javax.faces.context.FacesContext facesContext) { return engine.getIntProperty(Properties.SUGGESTION_DELAY_MS, 0, facesContext); } | 6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/SuggestTextEntryComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/SuggestTextEntryComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
1322,
21166,
6763,
6947,
12,
5411,
6863,
18,
4601,
18,
2472,
18,
17268,
1042,
22529,
13,
288,
3639,
327,
4073,
18,
588,
1702,
1396,
12,
2297,
18,
6639,
43,
27332,
1146,
67,
26101,
67,
3537,
16,
374,
16,
7734,
22529,
1769,
565,
289,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
1322,
21166,
6763,
6947,
12,
5411,
6863,
18,
4601,
18,
2472,
18,
17268,
1042,
22529,
13,
288,
3639,
327,
4073,
18,
588,
1702,
1396,
12,
2297,
18,
6639,
43,
27332,
1146,
67,
26101,
67,
3537,
16,
374,
16,
7734,
22529,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return _url; | return url; | public String getInstanceName() { return _url; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/Connection.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/client/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3694,
461,
1435,
288,
3639,
327,
880,
31,
565,
289,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3694,
461,
1435,
288,
3639,
327,
880,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IValidator v3 = new Validator(); spec.setValidator(v3); assertEquals(1, spec.getTypeConversionValidators().length); assertSame(v3, spec.getTypeConversionValidator()); assertSame(v3, spec.getTypeConversionValidators()[0]); } | IValidator v3 = new Validator(); spec.setValidator(v3); assertEquals(1, spec.getTypeConversionValidators().length); assertSame(v3, spec.getTypeConversionValidator()); assertSame(v3, spec.getTypeConversionValidators()[0]); } | public void testSetValidator() { BindSpec spec = new BindSpec(); IValidator v1 = new Validator(); IValidator v2 = new Validator(); spec.setValidators(new IValidator[] { v1, v2 }); assertEquals(2, spec.getTypeConversionValidators().length); IValidator v3 = new Validator(); spec.setValidator(v3); assertEquals(1, spec.getTypeConversionValidators().length); assertSame(v3, spec.getTypeConversionValidator()); assertSame(v3, spec.getTypeConversionValidators()[0]); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/646de6c1228ca0820a97e225df84d75e3993e272/BindSpecTests.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/BindSpecTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
694,
5126,
1435,
288,
3639,
6936,
1990,
857,
273,
394,
6936,
1990,
5621,
3639,
467,
5126,
331,
21,
273,
394,
9150,
5621,
3639,
467,
5126,
331,
22,
273,
394,
9150,
5621,
3639,
857,
18,
542,
19420,
12,
2704,
467,
5126,
8526,
288,
331,
21,
16,
331,
22,
15549,
3639,
1815,
8867,
12,
22,
16,
857,
18,
588,
559,
6814,
19420,
7675,
2469,
1769,
3639,
467,
5126,
331,
23,
273,
394,
9150,
5621,
3639,
857,
18,
542,
5126,
12,
90,
23,
1769,
3639,
1815,
8867,
12,
21,
16,
857,
18,
588,
559,
6814,
19420,
7675,
2469,
1769,
3639,
1815,
8650,
12,
90,
23,
16,
857,
18,
588,
559,
6814,
5126,
10663,
3639,
1815,
8650,
12,
90,
23,
16,
857,
18,
588,
559,
6814,
19420,
1435,
63,
20,
19226,
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,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
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
694,
5126,
1435,
288,
3639,
6936,
1990,
857,
273,
394,
6936,
1990,
5621,
3639,
467,
5126,
331,
21,
273,
394,
9150,
5621,
3639,
467,
5126,
331,
22,
273,
394,
9150,
5621,
3639,
857,
18,
542,
19420,
12,
2704,
467,
5126,
8526,
288,
331,
21,
16,
331,
22,
15549,
3639,
1815,
8867,
12,
22,
16,
857,
18,
588,
559,
6814,
19420,
7675,
2469,
1769,
3639,
467,
5126,
331,
23,
273,
394,
9150,
5621,
3639,
857,
18,
542,
5126,
12,
90,
23,
1769,
3639,
1815,
8867,
12,
21,
16,
857,
18,
588,
559,
6814,
19420,
7675,
2469,
1769,
3639,
1815,
8650,
12,
90,
23,
16,
857,
18,
588,
559,
6814,
5126,
10663,
3639,
1815,
8650,
12,
90,
2
] |
String[] suffixes = {"B", "KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"}; | public static String formatSize(long sz) { // First determine suffix String[] suffixes = {"B", "KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"}; long s = 1; int i; for(i=0;i<suffixes.length;i++) { s *= 1024; if(s > sz) { break; // Smaller than multiplier [i] - use the previous one } } s /= 1024; // we use the previous unit if (s == 1) // Bytes? Then we don't need real numbers with a comma { return sz + " " + suffixes[0]; } else { double mantissa = (double)sz / (double)s; String o = Double.toString(mantissa); if(o.indexOf('.') == 3) o = o.substring(0, 3); else if((o.indexOf('.') > -1) && (o.indexOf('E') == -1) && (o.length() > 4)) o = o.substring(0, 4); o += " " + suffixes[i]; return o; } } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/4bfa4b36acc6951d01c065c2ab58d98c12eb448e/SizeUtil.java/clean/src/freenet/support/SizeUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
740,
1225,
12,
5748,
11262,
13,
288,
202,
202,
759,
5783,
4199,
3758,
9506,
202,
780,
8526,
18333,
273,
12528,
38,
3113,
315,
47,
17632,
15937,
49,
17632,
15937,
43,
17632,
15937,
56,
17632,
15937,
16539,
38,
15937,
41,
17632,
15937,
62,
17632,
15937,
61,
17632,
6,
20451,
202,
202,
5748,
272,
273,
404,
31,
202,
202,
474,
277,
31,
202,
202,
1884,
12,
77,
33,
20,
31,
77,
32,
8477,
281,
18,
2469,
31,
77,
27245,
288,
1082,
202,
87,
6413,
6250,
31,
1082,
202,
430,
12,
87,
405,
11262,
13,
288,
9506,
202,
8820,
31,
9506,
202,
759,
9425,
454,
264,
2353,
15027,
306,
77,
65,
300,
999,
326,
2416,
1245,
1082,
202,
97,
202,
202,
97,
9506,
202,
87,
9531,
6250,
31,
368,
732,
999,
326,
2416,
2836,
202,
202,
430,
261,
87,
422,
404,
13,
225,
368,
5985,
35,
9697,
732,
2727,
1404,
1608,
2863,
5600,
598,
279,
8716,
202,
202,
95,
1082,
202,
2463,
11262,
397,
315,
315,
397,
18333,
63,
20,
15533,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
9056,
31340,
273,
261,
9056,
13,
24575,
342,
261,
9056,
13,
87,
31,
1082,
202,
780,
320,
273,
3698,
18,
10492,
12,
81,
970,
21269,
1769,
1082,
202,
430,
12,
83,
18,
31806,
2668,
1093,
13,
422,
890,
13,
9506,
202,
83,
273,
320,
18,
28023,
12,
20,
16,
890,
1769,
1082,
202,
12107,
309,
12443,
83,
18,
31806,
2668,
1093,
13,
405,
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,
760,
514,
740,
1225,
12,
5748,
11262,
13,
288,
202,
202,
759,
5783,
4199,
3758,
9506,
202,
780,
8526,
18333,
273,
12528,
38,
3113,
315,
47,
17632,
15937,
49,
17632,
15937,
43,
17632,
15937,
56,
17632,
15937,
16539,
38,
15937,
41,
17632,
15937,
62,
17632,
15937,
61,
17632,
6,
20451,
202,
202,
5748,
272,
273,
404,
31,
202,
202,
474,
277,
31,
202,
202,
1884,
12,
77,
33,
20,
31,
77,
32,
8477,
281,
18,
2469,
31,
77,
27245,
288,
1082,
202,
87,
6413,
6250,
31,
1082,
202,
430,
12,
87,
405,
11262,
13,
288,
9506,
202,
8820,
31,
9506,
202,
759,
9425,
454,
264,
2353,
15027,
306,
77,
65,
300,
999,
326,
2416,
1245,
1082,
2
] |
|
" DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)\n"+ | " DECLARE @tablename nvarchar(256), @constraintname nvarchar(256)\n"+ | public void testTableConstraints() throws Exception { assertEqualsIgnoringWhitespaces( "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'F' AND name = 'testfk')\n"+ " ALTER TABLE \"table3\" DROP CONSTRAINT \"testfk\";\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'F' AND name = 'table2_FK_COL_FK_1_COL_FK_2_table1')\n"+ " ALTER TABLE \"table2\" DROP CONSTRAINT \"table2_FK_COL_FK_1_COL_FK_2_table1\";\n"+ "SET quoted_identifier on;\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'table3')\n"+ "BEGIN\n"+ " DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)\n"+ " DECLARE refcursor CURSOR FOR\n"+ " SELECT object_name(objs.parent_obj) tablename, objs.name constraintname\n"+ " FROM sysobjects objs JOIN sysconstraints cons ON objs.id = cons.constid\n"+ " WHERE objs.xtype != 'PK' AND object_name(objs.parent_obj) = 'table3' OPEN refcursor\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " WHILE @@FETCH_STATUS = 0\n"+ " BEGIN\n"+ " EXEC ('ALTER TABLE '+@tablename+' DROP CONSTRAINT '+@constraintname)\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " END\n"+ " CLOSE refcursor\n"+ " DEALLOCATE refcursor\n"+ " DROP TABLE \"table3\"\n"+ "END;\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'table2')\n"+ "BEGIN\n"+ " DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)\n"+ " DECLARE refcursor CURSOR FOR\n"+ " SELECT object_name(objs.parent_obj) tablename, objs.name constraintname\n"+ " FROM sysobjects objs JOIN sysconstraints cons ON objs.id = cons.constid\n"+ " WHERE objs.xtype != 'PK' AND object_name(objs.parent_obj) = 'table2' OPEN refcursor\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " WHILE @@FETCH_STATUS = 0\n"+ " BEGIN\n"+ " EXEC ('ALTER TABLE '+@tablename+' DROP CONSTRAINT '+@constraintname)\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " END\n"+ " CLOSE refcursor\n"+ " DEALLOCATE refcursor\n"+ " DROP TABLE \"table2\"\n"+ "END;\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'table1')\n"+ "BEGIN\n"+ " DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)\n"+ " DECLARE refcursor CURSOR FOR\n"+ " SELECT object_name(objs.parent_obj) tablename, objs.name constraintname\n"+ " FROM sysobjects objs JOIN sysconstraints cons ON objs.id = cons.constid\n"+ " WHERE objs.xtype != 'PK' AND object_name(objs.parent_obj) = 'table1' OPEN refcursor\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " WHILE @@FETCH_STATUS = 0\n"+ " BEGIN\n"+ " EXEC ('ALTER TABLE '+@tablename+' DROP CONSTRAINT '+@constraintname)\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " END\n"+ " CLOSE refcursor\n"+ " DEALLOCATE refcursor\n"+ " DROP TABLE \"table1\"\n"+ "END;\n"+ "SET quoted_identifier on;\n"+ "CREATE TABLE \"table1\"\n"+ "(\n"+ " \"COL_PK_1\" VARCHAR(32) NOT NULL,\n"+ " \"COL_PK_2\" INT,\n"+ " \"COL_INDEX_1\" BINARY(100) NOT NULL,\n"+ " \"COL_INDEX_2\" FLOAT NOT NULL,\n"+ " \"COL_INDEX_3\" CHAR(4),\n"+ " PRIMARY KEY (\"COL_PK_1\", \"COL_PK_2\")\n"+ ");\n"+ "CREATE INDEX \"testindex1\" ON \"table1\" (\"COL_INDEX_2\");\n"+ "CREATE UNIQUE INDEX \"testindex2\" ON \"table1\" (\"COL_INDEX_3\", \"COL_INDEX_1\");\n"+ "SET quoted_identifier on;\n"+ "CREATE TABLE \"table2\"\n"+ "(\n"+ " \"COL_PK\" INT,\n"+ " \"COL_FK_1\" INT,\n"+ " \"COL_FK_2\" VARCHAR(32) NOT NULL,\n"+ " PRIMARY KEY (\"COL_PK\")\n"+ ");\n"+ "SET quoted_identifier on;\n"+ "CREATE TABLE \"table3\"\n"+ "(\n"+ " \"COL_PK\" VARCHAR(16),\n"+ " \"COL_FK\" INT NOT NULL,\n"+ " PRIMARY KEY (\"COL_PK\")\n"+ ");\n"+ "ALTER TABLE \"table2\" ADD CONSTRAINT \"table2_FK_COL_FK_1_COL_FK_2_table1\" FOREIGN KEY (\"COL_FK_1\", \"COL_FK_2\") REFERENCES \"table1\" (\"COL_PK_2\", \"COL_PK_1\");\n"+ "ALTER TABLE \"table3\" ADD CONSTRAINT \"testfk\" FOREIGN KEY (\"COL_FK\") REFERENCES \"table2\" (\"COL_PK\");\n", createTestDatabase(TABLE_CONSTRAINT_TEST_SCHEMA)); } | 3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/3d8eb9af044bfe73ec36a4317ec976b5cf42c0ea/TestMSSqlPlatform.java/clean/src/test/org/apache/ddlutils/platform/TestMSSqlPlatform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1388,
4878,
1435,
1216,
1185,
565,
288,
3639,
1815,
8867,
21702,
2888,
21693,
12,
5411,
315,
4043,
9298,
67,
5644,
603,
9747,
82,
6,
15,
5411,
315,
5501,
20476,
261,
4803,
404,
4571,
2589,
6911,
4852,
618,
273,
296,
42,
11,
4116,
508,
273,
296,
3813,
23120,
11,
5153,
82,
6,
15,
5411,
315,
377,
7981,
2560,
7567,
1239,
2121,
23,
2412,
25736,
29316,
1239,
3813,
23120,
2412,
9747,
82,
6,
15,
5411,
315,
4043,
9298,
67,
5644,
603,
9747,
82,
6,
15,
5411,
315,
5501,
20476,
261,
4803,
404,
4571,
2589,
6911,
4852,
618,
273,
296,
42,
11,
4116,
508,
273,
296,
2121,
22,
67,
13121,
67,
4935,
67,
13121,
67,
21,
67,
4935,
67,
13121,
67,
22,
67,
2121,
21,
11,
5153,
82,
6,
15,
5411,
315,
377,
7981,
2560,
7567,
1239,
2121,
22,
2412,
25736,
29316,
1239,
2121,
22,
67,
13121,
67,
4935,
67,
13121,
67,
21,
67,
4935,
67,
13121,
67,
22,
67,
2121,
21,
2412,
9747,
82,
6,
15,
5411,
315,
4043,
9298,
67,
5644,
603,
9747,
82,
6,
15,
5411,
315,
4043,
9298,
67,
5644,
603,
9747,
82,
6,
15,
5411,
315,
5501,
20476,
261,
4803,
404,
4571,
2589,
6911,
4852,
618,
273,
296,
57,
11,
4116,
508,
273,
296,
2121,
23,
11,
5153,
82,
6,
15,
5411,
315,
16061,
64,
82,
6,
15,
5411,
315,
225,
2030,
15961,
862,
632,
7032,
14724,
8779,
22483,
12,
5034,
3631,
632,
13364,
529,
8779,
22483,
12,
5034,
5153,
82,
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,
1388,
4878,
1435,
1216,
1185,
565,
288,
3639,
1815,
8867,
21702,
2888,
21693,
12,
5411,
315,
4043,
9298,
67,
5644,
603,
9747,
82,
6,
15,
5411,
315,
5501,
20476,
261,
4803,
404,
4571,
2589,
6911,
4852,
618,
273,
296,
42,
11,
4116,
508,
273,
296,
3813,
23120,
11,
5153,
82,
6,
15,
5411,
315,
377,
7981,
2560,
7567,
1239,
2121,
23,
2412,
25736,
29316,
1239,
3813,
23120,
2412,
9747,
82,
6,
15,
5411,
315,
4043,
9298,
67,
5644,
603,
9747,
82,
6,
15,
5411,
315,
5501,
20476,
261,
4803,
404,
4571,
2589,
6911,
4852,
618,
273,
296,
42,
11,
4116,
508,
273,
296,
2121,
22,
67,
13121,
67,
4935,
67,
13121,
67,
21,
67,
4935,
2
] |
public org.quickfix.field.Pool getPool() throws FieldNotFound { org.quickfix.field.Pool value = new org.quickfix.field.Pool(); | public quickfix.field.Pool getPool() throws FieldNotFound { quickfix.field.Pool value = new quickfix.field.Pool(); | public org.quickfix.field.Pool getPool() throws FieldNotFound { org.quickfix.field.Pool value = new org.quickfix.field.Pool(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java | [
1,
8585,
326,
22398,
316,
326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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
28575,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void setMessageListener(MessageListener l) { | public final void setMessageListener(MessageListener l) { | public void setMessageListener(MessageListener l) { msg_listener=l; } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/ae07d7d5a70d350c1163ba71f63db738cb292c88/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
15227,
2223,
12,
1079,
2223,
328,
13,
288,
3639,
1234,
67,
12757,
33,
80,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
15227,
2223,
12,
1079,
2223,
328,
13,
288,
3639,
1234,
67,
12757,
33,
80,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AtomContainerManipulator acm = new AtomContainerManipulator(); acm.removeHydrogens(mol); | AtomContainerManipulator.removeHydrogens(mol); | public void testWienerNumbersDescriptor() throws ClassNotFoundException, CDKException, java.lang.Exception { double [] testResult={18, 2}; Descriptor descriptor = new WienerNumbersDescriptor(); SmilesParser sp = new SmilesParser(); AtomContainer mol = sp.parseSmiles("[H]C([H])([H])C([H])([H])C(=O)O"); AtomContainerManipulator acm = new AtomContainerManipulator(); acm.removeHydrogens(mol); DoubleArrayResult retval = (DoubleArrayResult)descriptor.calculate(mol).getValue(); // OK: assertEquals(testResult[0], retval.get(0), 0.0001); assertEquals(testResult[1], retval.get(1), 0.0001); } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/a08c6ae51fd6e8e2448b2b9fde92a30a4e271589/WienerNumbersDescriptorTest.java/buggy/src/org/openscience/cdk/test/qsar/WienerNumbersDescriptorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
59,
77,
708,
10072,
3187,
1435,
1216,
10403,
16,
24570,
16,
2252,
18,
4936,
18,
503,
288,
202,
202,
9056,
5378,
1842,
1253,
5899,
2643,
16,
576,
20451,
202,
202,
3187,
4950,
273,
394,
678,
77,
708,
10072,
3187,
5621,
202,
202,
9552,
1449,
2678,
1694,
273,
394,
9425,
1449,
2678,
5621,
202,
202,
3641,
2170,
12629,
273,
1694,
18,
2670,
9552,
1449,
2932,
63,
44,
65,
39,
3816,
44,
5717,
3816,
44,
5717,
39,
3816,
44,
5717,
3816,
44,
5717,
39,
12,
33,
51,
13,
51,
8863,
202,
202,
3641,
2170,
27587,
1721,
81,
273,
394,
7149,
2170,
27587,
5621,
202,
202,
26279,
18,
4479,
17507,
9005,
23730,
12,
21260,
1769,
202,
202,
5265,
1076,
1253,
5221,
273,
261,
5265,
1076,
1253,
13,
12628,
18,
11162,
12,
21260,
2934,
24805,
5621,
202,
202,
759,
7791,
30,
1815,
8867,
12,
3813,
1253,
63,
20,
6487,
5221,
18,
588,
12,
20,
3631,
374,
18,
13304,
1769,
202,
202,
11231,
8867,
12,
3813,
1253,
63,
21,
6487,
5221,
18,
588,
12,
21,
3631,
374,
18,
13304,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
59,
77,
708,
10072,
3187,
1435,
1216,
10403,
16,
24570,
16,
2252,
18,
4936,
18,
503,
288,
202,
202,
9056,
5378,
1842,
1253,
5899,
2643,
16,
576,
20451,
202,
202,
3187,
4950,
273,
394,
678,
77,
708,
10072,
3187,
5621,
202,
202,
9552,
1449,
2678,
1694,
273,
394,
9425,
1449,
2678,
5621,
202,
202,
3641,
2170,
12629,
273,
1694,
18,
2670,
9552,
1449,
2932,
63,
44,
65,
39,
3816,
44,
5717,
3816,
44,
5717,
39,
3816,
44,
5717,
3816,
44,
5717,
39,
12,
33,
51,
13,
51,
8863,
202,
202,
3641,
2170,
27587,
1721,
81,
273,
394,
7149,
2170,
27587,
5621,
202,
202,
26279,
18,
4479,
17507,
9005,
23730,
12,
21260,
1769,
202,
202,
2
] |
return (SecurityInfo) _current.get(); | return (SecurityInfo) current.get(); | public static SecurityInfo getCurrent() { return (SecurityInfo) _current.get(); } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/SecurityInfo.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/SecurityInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6036,
966,
5175,
1435,
288,
3639,
327,
261,
4368,
966,
13,
783,
18,
588,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6036,
966,
5175,
1435,
288,
3639,
327,
261,
4368,
966,
13,
783,
18,
588,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
updatePageCompletion(); | private void addSelectionButtons(Composite composite) { Font parentFont = composite.getFont(); buttonComposite = new Composite(composite, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; buttonComposite.setLayout(layout); GridData data = new GridData(GridData.GRAB_HORIZONTAL); data.grabExcessHorizontalSpace = true; buttonComposite.setLayoutData(data); buttonComposite.setFont(parentFont); Button selectButton = createButton(buttonComposite, IDialogConstants.SELECT_ALL_ID, PreferencesMessages.SelectionDialog_selectLabel, false); SelectionListener listener = new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setAllChecked(true); } }; selectButton.addSelectionListener(listener); selectButton.setFont(parentFont); Button deselectButton = createButton(buttonComposite, IDialogConstants.DESELECT_ALL_ID, PreferencesMessages.SelectionDialog_deselectLabel, false); listener = new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setAllChecked(false); } }; deselectButton.addSelectionListener(listener); deselectButton.setFont(parentFont); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/699b37352a73028bcf84f70f095cbd22a559799a/WizardPreferencesPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2725,
1964,
11238,
5621,
918,
2725,
1964,
11238,
5621,
527,
6233,
14388,
12,
9400,
2725,
1964,
11238,
5621,
9635,
13,
2725,
1964,
11238,
5621,
288,
202,
202,
5711,
2725,
1964,
11238,
5621,
982,
5711,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
9635,
18,
588,
5711,
5621,
202,
202,
5391,
9400,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
394,
2725,
1964,
11238,
5621,
14728,
12,
27676,
16,
2725,
1964,
11238,
5621,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
2725,
1964,
11238,
5621,
3511,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
394,
2725,
1964,
11238,
5621,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
576,
31,
202,
202,
5391,
9400,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
2725,
1964,
11238,
5621,
501,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
394,
2725,
1964,
11238,
5621,
7145,
751,
12,
6313,
751,
18,
6997,
2090,
67,
44,
20344,
1769,
202,
202,
892,
18,
2752,
70,
424,
614,
14457,
3819,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
638,
31,
202,
202,
5391,
9400,
18,
542,
3744,
751,
12,
892,
1769,
202,
202,
5391,
9400,
18,
542,
5711,
12,
2938,
5711,
1769,
9506,
202,
3616,
2725,
1964,
11238,
5621,
2027,
3616,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
752,
3616,
12,
5391,
9400,
16,
9506,
202,
734,
3529,
2918,
18,
4803,
67,
4685,
67,
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,
2725,
1964,
11238,
5621,
918,
2725,
1964,
11238,
5621,
527,
6233,
14388,
12,
9400,
2725,
1964,
11238,
5621,
9635,
13,
2725,
1964,
11238,
5621,
288,
202,
202,
5711,
2725,
1964,
11238,
5621,
982,
5711,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
9635,
18,
588,
5711,
5621,
202,
202,
5391,
9400,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
394,
2725,
1964,
11238,
5621,
14728,
12,
27676,
16,
2725,
1964,
11238,
5621,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
2725,
1964,
11238,
5621,
3511,
2725,
1964,
11238,
5621,
273,
2725,
1964,
11238,
5621,
394,
2725,
1964,
11238,
5621,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
2725,
1964,
11238,
5621,
273,
2
] |
|
byte[][] tuple = new byte[1][0]; | public java.sql.ResultSet getTableTypes() throws SQLException { Field f[] = new Field[1]; Vector v = new Vector(); byte[][] tuple = new byte[1][0]; f[0] = new Field(connection,new String("TABLE_TYPE"),iVarcharOid,32); for(int i=0;i<getTableTypes.length;i++) { tuple[0] = getTableTypes[i][0].getBytes(); v.addElement(tuple); } return new ResultSet(connection,f,v,"OK",1); } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/9eddc7519d5ef21ff5f57f76470074adf5a421f6/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
5638,
2016,
1435,
1216,
6483,
225,
288,
565,
2286,
284,
8526,
273,
394,
2286,
63,
21,
15533,
565,
5589,
331,
273,
394,
5589,
5621,
4202,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
2399,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
364,
12,
474,
277,
33,
20,
31,
77,
32,
588,
1388,
2016,
18,
2469,
31,
77,
27245,
288,
1377,
3193,
63,
20,
65,
273,
5638,
2016,
63,
77,
6362,
20,
8009,
588,
2160,
5621,
1377,
331,
18,
1289,
1046,
12,
8052,
1769,
565,
289,
565,
327,
394,
10842,
12,
4071,
16,
74,
16,
90,
10837,
3141,
3113,
21,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
5638,
2016,
1435,
1216,
6483,
225,
288,
565,
2286,
284,
8526,
273,
394,
2286,
63,
21,
15533,
565,
5589,
331,
273,
394,
5589,
5621,
4202,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
2399,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
364,
12,
474,
277,
33,
20,
31,
77,
32,
588,
1388,
2016,
18,
2469,
31,
77,
27245,
288,
1377,
3193,
63,
20,
65,
273,
5638,
2016,
63,
77,
6362,
20,
8009,
588,
2160,
5621,
1377,
331,
18,
1289,
1046,
12,
8052,
1769,
565,
289,
565,
327,
394,
10842,
12,
4071,
16,
74,
16,
90,
10837,
3141,
3113,
21,
1769,
225,
289,
2
] |
|
} | } | public XSWildcardDecl performUnionWith(XSWildcardDecl wildcard) { // For a wildcard's {namespace constraint} value to be the intensional union of two other such // values (call them O1 and O2): the appropriate case among the following must be true: XSWildcardDecl unionWildcard = new XSWildcardDecl(); // 1 If O1 and O2 are the same value, then that value must be the value. if (fType == wildcard.fType) { unionWildcard.fType = fType; } // 2 If either O1 or O2 is any, then any must be the value. else if ( (fType == WILDCARD_ANY) || (wildcard.fType == WILDCARD_ANY) ) { unionWildcard.fType = WILDCARD_ANY; } // 3 If both O1 and O2 are sets of (namespace names or absent), then the union of those sets // must be the value. else if ( (fType == WILDCARD_LIST) && (wildcard.fType == WILDCARD_LIST) ) { Vector union = new Vector(fNamespaceList.length, wildcard.fNamespaceList.length); for (int i=0; i<fNamespaceList.length; i++) union.addElement(fNamespaceList[i]); boolean found; for (int i=0; i<wildcard.fNamespaceList.length; i++) { found = false; for (int j=0; j<fNamespaceList.length; j++) if (fNamespaceList[j] == wildcard.fNamespaceList[i]) { found = true; break; } if (!found) union.addElement(wildcard.fNamespaceList[i]); } unionWildcard.fType = WILDCARD_LIST; // copy elements from vector to array int size = union.size(); unionWildcard.fNamespaceList = new String[size]; union.copyInto(unionWildcard.fNamespaceList); } // 4 If the two are negations of different namespace names, then the intersection is not expressible. // 5 If either O1 or O2 is a pair of not and a namespace name and the other is a set of // (namespace names or absent), then The appropriate case among the following must be true: // 5.1 If the set includes the negated namespace name, then any must be the value. // 5.2 If the set does not include the negated namespace name, then whichever of O1 or O2 // is a pair of not and a namespace name must be the value. else if ( ((fType == WILDCARD_OTHER) && (wildcard.fType == WILDCARD_LIST)) || ((fType == WILDCARD_LIST) && (wildcard.fType == WILDCARD_OTHER)) ) { int i=0; if (fType == WILDCARD_OTHER) { for (i=0; i<wildcard.fNamespaceList.length; i++) if (fNamespaceList[0] == wildcard.fNamespaceList[i]) { unionWildcard.fType = WILDCARD_ANY; break; } // Loop traversed completely. This means, negated namespace viz. tNS (here) // is not in the other list. So, union is other. if (i == wildcard.fNamespaceList.length) unionWildcard.fType = fType; } else { for (i=0; i<fNamespaceList.length; i++) if (wildcard.fNamespaceList[0] == fNamespaceList[i]) { unionWildcard.fType = WILDCARD_ANY; break; } // Loop traversed completely. This means, negated namespace viz. tNS (here) // is not in the other list. So, union is other. if (i == fNamespaceList.length) unionWildcard.fType = wildcard.fType; } } unionWildcard.fProcessContents = fProcessContents; return unionWildcard; } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/d552df326d11532d23738eaf0325b838876bd942/XSWildcardDecl.java/clean/src/org/apache/xerces/impl/v2/XSWildcardDecl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1139,
55,
12121,
3456,
3073,
14325,
1190,
12,
60,
55,
12121,
3456,
8531,
13,
288,
377,
202,
759,
2457,
279,
8531,
1807,
288,
4937,
4954,
289,
460,
358,
506,
326,
509,
1451,
287,
7812,
434,
2795,
1308,
4123,
1377,
202,
759,
924,
261,
1991,
2182,
531,
21,
471,
531,
22,
4672,
326,
5505,
648,
17200,
326,
3751,
1297,
506,
638,
30,
540,
202,
60,
55,
12121,
3456,
7812,
12121,
273,
394,
1139,
55,
12121,
3456,
5621,
202,
3639,
368,
404,
971,
531,
21,
471,
531,
22,
854,
326,
1967,
460,
16,
1508,
716,
460,
1297,
506,
326,
460,
18,
1377,
202,
430,
261,
74,
559,
422,
8531,
18,
74,
559,
13,
288,
202,
202,
18910,
12121,
18,
74,
559,
273,
284,
559,
31,
202,
97,
202,
759,
576,
971,
3344,
531,
21,
578,
531,
22,
353,
1281,
16,
1508,
1281,
1297,
506,
326,
460,
18,
202,
12107,
309,
261,
261,
74,
559,
422,
678,
29067,
67,
15409,
13,
747,
261,
22887,
18,
74,
559,
422,
678,
29067,
67,
15409,
13,
262,
288,
202,
202,
18910,
12121,
18,
74,
559,
273,
678,
29067,
67,
15409,
31,
202,
97,
202,
759,
890,
971,
3937,
531,
21,
471,
531,
22,
854,
1678,
434,
261,
4937,
1257,
578,
17245,
3631,
1508,
326,
7812,
434,
5348,
1678,
225,
202,
759,
282,
1297,
506,
326,
460,
18,
202,
12107,
309,
261,
261,
74,
559,
422,
678,
29067,
67,
7085,
13,
597,
261,
22887,
18,
74,
559,
422,
678,
29067,
67,
7085,
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,
1139,
55,
12121,
3456,
3073,
14325,
1190,
12,
60,
55,
12121,
3456,
8531,
13,
288,
377,
202,
759,
2457,
279,
8531,
1807,
288,
4937,
4954,
289,
460,
358,
506,
326,
509,
1451,
287,
7812,
434,
2795,
1308,
4123,
1377,
202,
759,
924,
261,
1991,
2182,
531,
21,
471,
531,
22,
4672,
326,
5505,
648,
17200,
326,
3751,
1297,
506,
638,
30,
540,
202,
60,
55,
12121,
3456,
7812,
12121,
273,
394,
1139,
55,
12121,
3456,
5621,
202,
3639,
368,
404,
971,
531,
21,
471,
531,
22,
854,
326,
1967,
460,
16,
1508,
716,
460,
1297,
506,
326,
460,
18,
1377,
202,
430,
261,
74,
559,
422,
8531,
18,
74,
559,
13,
288,
202,
202,
18910,
12121,
18,
2
] |
public static org.omg.IIOP.ProfileBody_1_1 getProfileBody( byte [] profile, | public static ProfileBody_1_1 getProfileBody( byte[] profile, | public static org.omg.IIOP.ProfileBody_1_1 getProfileBody( byte [] profile, int min_minor ) { org.omg.IIOP.ProfileBody_1_1 _profile_body = null; CDRInputStream in = new CDRInputStream((org.omg.CORBA.ORB)null, profile); try { // look for all profiles, if we found TaggedComponents // we'll extract them in.setLittleEndian(in.read_boolean()); // mark position because we will pre-read version from stream in.mark(0); // first read the version and observe if we have already // decoded newer version of IIOP IOR int minor = org.omg.IIOP.VersionHelper.read(in).minor; if( ( minor < min_minor) || (minor > 2) ) return null; // return to start of profile body stream in.reset(); switch(minor){ case 2: // 1.2 is compatible with 1.1 case 1: _profile_body = org.omg.IIOP.ProfileBody_1_1Helper.read(in); break; case 0: // convert profile body 1.0 -> 1.1 by adding empty or existing tagged // components (should be always empty because if we already read >1.0 // profile version, we should never encounter these lines) org.omg.IIOP.ProfileBody_1_0 pb0; pb0 = org.omg.IIOP.ProfileBody_1_0Helper.read(in); _profile_body = new org.omg.IIOP.ProfileBody_1_1(pb0.iiop_version, pb0.host, pb0.port, pb0.object_key, new org.omg.IOP.TaggedComponent[0]); // taggedComponents); if( _profile_body.port < 0 ) _profile_body.port += 65536; break; } } catch ( Exception ex ) { org.jacorb.util.Debug.output( 2, ex ); throw new org.omg.CORBA.INV_OBJREF(); }; return _profile_body; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/293e7be387ef8abd47c6e8365dea77e5a2d17543/ParsedIOR.java/clean/src/org/jacorb/orb/ParsedIOR.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11357,
2250,
67,
21,
67,
21,
28042,
2250,
12,
1160,
8526,
3042,
16,
20982,
4202,
509,
1131,
67,
17364,
262,
565,
288,
202,
3341,
18,
362,
75,
18,
6954,
3665,
18,
4029,
2250,
67,
21,
67,
21,
389,
5040,
67,
3432,
273,
446,
31,
202,
39,
6331,
4348,
316,
273,
394,
385,
6331,
4348,
12443,
3341,
18,
362,
75,
18,
9428,
12536,
18,
916,
38,
13,
2011,
16,
3042,
1769,
202,
698,
3639,
288,
202,
565,
368,
2324,
364,
777,
11788,
16,
309,
732,
1392,
30802,
7171,
202,
565,
368,
732,
5614,
2608,
2182,
202,
565,
316,
18,
542,
48,
10609,
12,
267,
18,
896,
67,
6494,
10663,
4202,
202,
565,
368,
2267,
1754,
2724,
732,
903,
675,
17,
896,
1177,
628,
1407,
202,
565,
316,
18,
3355,
12,
20,
1769,
3639,
202,
565,
368,
1122,
855,
326,
1177,
471,
19389,
309,
732,
1240,
1818,
202,
565,
368,
6383,
16069,
1177,
434,
23076,
3665,
467,
916,
202,
565,
509,
8439,
273,
2358,
18,
362,
75,
18,
6954,
3665,
18,
1444,
2276,
18,
896,
12,
267,
2934,
17364,
31,
4202,
202,
565,
309,
12,
261,
8439,
411,
1131,
67,
17364,
13,
747,
261,
17364,
405,
576,
13,
262,
3196,
202,
2463,
446,
31,
4202,
202,
565,
368,
327,
358,
787,
434,
3042,
1417,
1407,
202,
565,
316,
18,
6208,
5621,
4202,
202,
565,
1620,
12,
17364,
15329,
202,
565,
648,
576,
30,
368,
404,
18,
22,
353,
7318,
598,
404,
18,
21,
202,
565,
648,
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,
11357,
2250,
67,
21,
67,
21,
28042,
2250,
12,
1160,
8526,
3042,
16,
20982,
4202,
509,
1131,
67,
17364,
262,
565,
288,
202,
3341,
18,
362,
75,
18,
6954,
3665,
18,
4029,
2250,
67,
21,
67,
21,
389,
5040,
67,
3432,
273,
446,
31,
202,
39,
6331,
4348,
316,
273,
394,
385,
6331,
4348,
12443,
3341,
18,
362,
75,
18,
9428,
12536,
18,
916,
38,
13,
2011,
16,
3042,
1769,
202,
698,
3639,
288,
202,
565,
368,
2324,
364,
777,
11788,
16,
309,
732,
1392,
30802,
7171,
202,
565,
368,
732,
5614,
2608,
2182,
202,
565,
316,
18,
542,
48,
10609,
12,
267,
18,
896,
67,
6494,
10663,
4202,
202,
565,
368,
2267,
1754,
2724,
732,
2
] |
userHasReached(subInfo, GRANT_LICENSE); doStep(context, request, response, subInfo, GRANT_LICENSE); | int nextStep = CC.isEnabled() ? CC_LICENSE : GRANT_LICENSE; userHasReached(subInfo, nextStep); doStep(context, request, response, subInfo, nextStep); | private void processReview(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException { String buttonPressed = UIUtil.getSubmitButton(request, "submit_cancel"); if (buttonPressed.equals("submit_cancel")) { doCancellation(request, response, subInfo, REVIEW_SUBMISSION, REVIEW_SUBMISSION); } else if (buttonPressed.equals("submit_next")) { // If the user is performing the initial submission // of an item, we go to the grant license stage if (!isWorkflow(subInfo)) { userHasReached(subInfo, GRANT_LICENSE); doStep(context, request, response, subInfo, GRANT_LICENSE); context.complete(); } else { // The user is performing an edit as part // of a workflow task, so we take them // back to the relevant perform task page request.setAttribute("workflow.item", subInfo.submission); JSPManager.showJSP(request, response, "/mydspace/perform-task.jsp"); } } else if (buttonPressed.equals("submit_prev")) { // Back to file upload doStep(context, request, response, subInfo, UPLOAD_FILES); } else { doStepJump(context, request, response, subInfo); } } | 51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/ff2d6332ab8a7caaa8f9f2a5dbcc2deecad999a9/SubmitServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
9159,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
16,
3639,
2592,
3951,
966,
720,
966,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
514,
3568,
24624,
273,
6484,
1304,
18,
588,
11620,
3616,
12,
2293,
16,
315,
9297,
67,
10996,
8863,
3639,
309,
261,
5391,
24624,
18,
14963,
2932,
9297,
67,
10996,
6,
3719,
3639,
288,
5411,
741,
2568,
6857,
12,
2293,
16,
7734,
766,
16,
7734,
720,
966,
16,
7734,
2438,
12145,
67,
8362,
15566,
16,
7734,
2438,
12145,
67,
8362,
15566,
1769,
3639,
289,
3639,
469,
309,
261,
5391,
24624,
18,
14963,
2932,
9297,
67,
4285,
6,
3719,
3639,
288,
5411,
368,
971,
326,
729,
353,
14928,
326,
2172,
8515,
5411,
368,
434,
392,
761,
16,
732,
1960,
358,
326,
7936,
8630,
6009,
5411,
309,
16051,
291,
8484,
12,
1717,
966,
3719,
5411,
288,
7734,
729,
5582,
23646,
12,
1717,
966,
16,
15228,
6856,
67,
6065,
23396,
1769,
7734,
741,
4160,
12,
2472,
16,
590,
16,
766,
16,
720,
966,
16,
15228,
6856,
67,
6065,
23396,
1769,
7734,
819,
18,
6226,
5621,
5411,
289,
5411,
469,
5411,
288,
7734,
368,
1021,
729,
353,
14928,
392,
3874,
487,
1087,
7734,
368,
434,
279,
6095,
1562,
16,
1427,
732,
4862,
2182,
7734,
368,
1473,
358,
326,
9368,
3073,
1562,
1363,
7734,
590,
18,
542,
1499,
2932,
13815,
18,
1726,
3113,
720,
966,
18,
12684,
1769,
7734,
804,
3118,
1318,
18,
4500,
46,
3118,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
9159,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
16,
3639,
2592,
3951,
966,
720,
966,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
514,
3568,
24624,
273,
6484,
1304,
18,
588,
11620,
3616,
12,
2293,
16,
315,
9297,
67,
10996,
8863,
3639,
309,
261,
5391,
24624,
18,
14963,
2932,
9297,
67,
10996,
6,
3719,
3639,
288,
5411,
741,
2568,
6857,
12,
2293,
16,
7734,
766,
16,
7734,
720,
966,
16,
7734,
2438,
12145,
67,
8362,
15566,
16,
7734,
2438,
12145,
67,
8362,
15566,
1769,
3639,
289,
3639,
469,
309,
261,
5391,
24624,
18,
14963,
2932,
9297,
67,
4285,
6,
3719,
3639,
288,
5411,
368,
971,
2
] |
throws NotImplementedException | public TreePath getPathForRow(int row) throws NotImplementedException { //TODO return null; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/354ad8e724c65b6b6984f632455ce4b17f1fb1d0/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
743,
4339,
1290,
1999,
12,
474,
1027,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4902,
743,
4339,
1290,
1999,
12,
474,
1027,
13,
565,
1216,
10051,
503,
202,
95,
202,
202,
759,
6241,
202,
202,
2463,
446,
31,
225,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
} else | } else | private String[] getProgramArguments( ILaunchConfiguration configuration ) throws CoreException { ArrayList programArgs = new ArrayList( ); // If a product is specified, then add it to the program args if ( configuration.getAttribute( USE_PRODUCT, false ) ) { programArgs.add( "-product" ); //$NON-NLS-1$ programArgs.add( configuration.getAttribute( PRODUCT, "" ) ); //$NON-NLS-1$ } else { // specify the application to launch programArgs.add( "-application" ); //$NON-NLS-1$ programArgs.add( configuration.getAttribute( APPLICATION, LauncherUtils.getDefaultApplicationName( ) ) ); } // specify the workspace location for the runtime workbench String targetWorkspace = configuration .getAttribute( LOCATION + "0", LauncherUtils.getDefaultPath( ).append( WORKESPACENAME ).toOSString( ) ); //$NON-NLS-1$ //$NON-NLS-2$ programArgs.add( "-data" ); //$NON-NLS-1$ programArgs.add( targetWorkspace ); boolean isOSGI = PDECore.getDefault( ).getModelManager( ) .isOSGiRuntime( ); if ( configuration.getAttribute( USEFEATURES, false ) ) { validateFeatures( ); IPath installPath = PDEPlugin.getWorkspace( ).getRoot( ) .getLocation( ); programArgs.add( "-install" ); //$NON-NLS-1$ programArgs .add( "file:" + installPath.removeLastSegments( 1 ).addTrailingSeparator( ).toString( ) ); //$NON-NLS-1$ programArgs.add( "-update" ); //$NON-NLS-1$ } else { TreeMap pluginMap = LauncherUtils.getPluginsToRun( configuration ); if ( pluginMap == null ) return null; String primaryFeatureId = ReportLauncherUtils.getPrimaryFeatureId( ); DebugUtil.runCreatePlatformConfigurationArea( pluginMap, getConfigDir( configuration ), primaryFeatureId, ReportLauncherUtils.getAutoStartPlugins( configuration ) ); programArgs.add( "-configuration" ); //$NON-NLS-1$ if ( isOSGI ) programArgs .add( "file:" + new Path( getConfigDir( configuration ).getPath( ) ).addTrailingSeparator( ).toString( ) ); //$NON-NLS-1$ else programArgs .add( "file:" + new Path( getConfigDir( configuration ).getPath( ) ).append( "platform.cfg" ).toString( ) ); //$NON-NLS-1$ //$NON-NLS-2$ if ( !isOSGI ) { if ( primaryFeatureId != null ) { programArgs.add( "-feature" ); //$NON-NLS-1$ programArgs.add( primaryFeatureId ); } IPluginModelBase bootModel = (IPluginModelBase) pluginMap .get( "org.eclipse.core.boot" ); //$NON-NLS-1$ String bootPath = LauncherUtils.getBootPath( bootModel ); if ( bootPath != null && !bootPath.endsWith( ".jar" ) ) { //$NON-NLS-1$ programArgs.add( "-boot" ); //$NON-NLS-1$ programArgs.add( "file:" + bootPath ); //$NON-NLS-1$ } } } // add the output folder names programArgs.add( "-dev" ); //$NON-NLS-1$ if ( PDECore.getDefault( ).getModelManager( ).isOSGiRuntime( ) ) programArgs.add( DebugUtil.getDevEntriesProperties( getConfigDir( configuration ).toString( ) + "/dev.properties", true ) ); //$NON-NLS-1$ else programArgs.add( DebugUtil.getDevEntries( true ) ); // necessary for PDE to know how to load plugins when target platform = // host platform // see PluginPathFinder.getPluginPaths() programArgs.add( "-pdelaunch" ); //$NON-NLS-1$ // add tracing, if turned on if ( configuration.getAttribute( TRACING, false ) && !TRACING_NONE.equals( configuration.getAttribute( TRACING_CHECKED, (String) null ) ) ) { programArgs.add( "-debug" ); //$NON-NLS-1$ programArgs.add( LauncherUtils.getTracingFileArgument( configuration, getConfigDir( configuration ).toString( ) + Path.SEPARATOR + ".options" ) ); //$NON-NLS-1$ } // add the program args specified by the user StringTokenizer tokenizer = new StringTokenizer( configuration .getAttribute( PROGARGS, "" ) ); //$NON-NLS-1$ while ( tokenizer.hasMoreTokens( ) ) { programArgs.add( tokenizer.nextToken( ) ); } // show splash only if we are launching the default application boolean showSplash = true; int index = programArgs.indexOf( "-application" ); //$NON-NLS-1$ if ( index != -1 && index <= programArgs.size( ) - 2 ) { if ( !programArgs.get( index + 1 ).equals( LauncherUtils.getDefaultApplicationName( ) ) ) { showSplash = false; } } if ( showSplash && !programArgs.contains( "-nosplash" ) ) { //$NON-NLS-1$ programArgs.add( 0, "-showsplash" ); //$NON-NLS-1$ programArgs.add( 1, computeShowsplashArgument( ) ); } return (String[]) programArgs.toArray( new String[programArgs.size( )] ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3ff8c8c7dcc1456137e4ae046739e5dc4d3f729d/ReportLaunchConfigurationDelegate.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
3570,
3295,
4628,
12,
467,
9569,
1750,
1664,
262,
1082,
202,
15069,
30015,
202,
95,
202,
202,
19558,
5402,
2615,
273,
394,
2407,
12,
11272,
202,
202,
759,
971,
279,
3017,
353,
1269,
16,
1508,
527,
518,
358,
326,
5402,
833,
202,
202,
430,
261,
1664,
18,
588,
1499,
12,
14988,
67,
25883,
16,
629,
262,
262,
202,
202,
95,
1082,
202,
12890,
2615,
18,
1289,
12,
3701,
5896,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12890,
2615,
18,
1289,
12,
1664,
18,
588,
1499,
12,
27958,
16,
1408,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
4800,
326,
2521,
358,
8037,
1082,
202,
12890,
2615,
18,
1289,
12,
3701,
3685,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12890,
2615,
18,
1289,
12,
1664,
18,
588,
1499,
12,
14148,
16,
6862,
202,
28820,
1989,
18,
588,
1868,
3208,
461,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
759,
4800,
326,
6003,
2117,
364,
326,
3099,
1440,
22144,
202,
202,
780,
1018,
8241,
273,
1664,
9506,
202,
18,
588,
1499,
12,
25083,
202,
15277,
397,
315,
20,
3113,
14643,
264,
1989,
18,
588,
1868,
743,
12,
262,
18,
6923,
12,
11671,
6859,
3118,
2226,
21150,
262,
18,
869,
4618,
780,
12,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
202,
12890,
2615,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
3570,
3295,
4628,
12,
467,
9569,
1750,
1664,
262,
1082,
202,
15069,
30015,
202,
95,
202,
202,
19558,
5402,
2615,
273,
394,
2407,
12,
11272,
202,
202,
759,
971,
279,
3017,
353,
1269,
16,
1508,
527,
518,
358,
326,
5402,
833,
202,
202,
430,
261,
1664,
18,
588,
1499,
12,
14988,
67,
25883,
16,
629,
262,
262,
202,
202,
95,
1082,
202,
12890,
2615,
18,
1289,
12,
3701,
5896,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12890,
2615,
18,
1289,
12,
1664,
18,
588,
1499,
12,
27958,
16,
1408,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
2
] |
public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); | public quickfix.field.CreditRating getCreditRating() throws FieldNotFound { quickfix.field.CreditRating value = new quickfix.field.CreditRating(); | public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Confirmation.java/clean/src/java/src/quickfix/fix44/Confirmation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (ls.isDeleted()) | if (ls.isDeleted() || ls.incomplete) | public OsmPrimitive getNearest(Point p, boolean lsInsteadWay) { double minDistanceSq = Double.MAX_VALUE; OsmPrimitive minPrimitive = null; // nodes for (Node n : Main.main.ds.nodes) { if (n.isDeleted()) continue; Point sp = getScreenPoint(n.coor); double dist = p.distanceSq(sp); if (minDistanceSq > dist && dist < 100) { minDistanceSq = p.distanceSq(sp); minPrimitive = n; } } if (minPrimitive != null) return minPrimitive; // for whole ways, try the ways first minDistanceSq = Double.MAX_VALUE; if (!lsInsteadWay) { for (Way w : Main.main.ds.waies) { if (w.isDeleted()) continue; for (LineSegment ls : w.segments) { if (ls.isDeleted()) continue; Point A = getScreenPoint(ls.start.coor); Point B = getScreenPoint(ls.end.coor); double c = A.distanceSq(B); double a = p.distanceSq(B); double b = p.distanceSq(A); double perDist = a-(a-b+c)*(a-b+c)/4/c; // perpendicular distance squared if (perDist < 100 && minDistanceSq > perDist && a < c+100 && b < c+100) { minDistanceSq = perDist; minPrimitive = w; } } } if (minPrimitive != null) return minPrimitive; } minDistanceSq = Double.MAX_VALUE; // line segments for (LineSegment ls : Main.main.ds.lineSegments) { if (ls.isDeleted()) continue; Point A = getScreenPoint(ls.start.coor); Point B = getScreenPoint(ls.end.coor); double c = A.distanceSq(B); double a = p.distanceSq(B); double b = p.distanceSq(A); double perDist = a-(a-b+c)*(a-b+c)/4/c; // perpendicular distance squared if (perDist < 100 && minDistanceSq > perDist && a < c+100 && b < c+100) { minDistanceSq = perDist; minPrimitive = ls; } } return minPrimitive; } | 2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/befeff8824b7261934487a4bc72df91a5de24079/NavigatableComponent.java/buggy/src/org/openstreetmap/josm/gui/NavigatableComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
531,
4808,
9840,
336,
28031,
12,
2148,
293,
16,
1250,
7180,
10773,
684,
21831,
13,
288,
202,
202,
9056,
1131,
7200,
19643,
273,
3698,
18,
6694,
67,
4051,
31,
202,
202,
51,
4808,
9840,
1131,
9840,
273,
446,
31,
1082,
202,
759,
2199,
202,
202,
1884,
261,
907,
290,
294,
12740,
18,
5254,
18,
2377,
18,
4690,
13,
288,
1082,
202,
430,
261,
82,
18,
291,
7977,
10756,
9506,
202,
17143,
31,
1082,
202,
2148,
1694,
273,
22303,
2148,
12,
82,
18,
2894,
280,
1769,
1082,
202,
9056,
2411,
273,
293,
18,
8969,
19643,
12,
1752,
1769,
1082,
202,
430,
261,
1154,
7200,
19643,
405,
2411,
597,
2411,
411,
2130,
13,
288,
9506,
202,
1154,
7200,
19643,
273,
293,
18,
8969,
19643,
12,
1752,
1769,
9506,
202,
1154,
9840,
273,
290,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
1154,
9840,
480,
446,
13,
1082,
202,
2463,
1131,
9840,
31,
9506,
202,
759,
364,
7339,
16226,
16,
775,
326,
16226,
1122,
202,
202,
1154,
7200,
19643,
273,
3698,
18,
6694,
67,
4051,
31,
202,
202,
430,
16051,
3251,
10773,
684,
21831,
13,
288,
1082,
202,
1884,
261,
21831,
341,
294,
12740,
18,
5254,
18,
2377,
18,
91,
69,
606,
13,
288,
9506,
202,
430,
261,
91,
18,
291,
7977,
10756,
6862,
202,
17143,
31,
9506,
202,
1884,
261,
1670,
4131,
7180,
294,
341,
18,
12838,
13,
288,
6862,
202,
430,
261,
3251,
18,
291,
7977,
10756,
25083,
202,
17143,
31,
6862,
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,
531,
4808,
9840,
336,
28031,
12,
2148,
293,
16,
1250,
7180,
10773,
684,
21831,
13,
288,
202,
202,
9056,
1131,
7200,
19643,
273,
3698,
18,
6694,
67,
4051,
31,
202,
202,
51,
4808,
9840,
1131,
9840,
273,
446,
31,
1082,
202,
759,
2199,
202,
202,
1884,
261,
907,
290,
294,
12740,
18,
5254,
18,
2377,
18,
4690,
13,
288,
1082,
202,
430,
261,
82,
18,
291,
7977,
10756,
9506,
202,
17143,
31,
1082,
202,
2148,
1694,
273,
22303,
2148,
12,
82,
18,
2894,
280,
1769,
1082,
202,
9056,
2411,
273,
293,
18,
8969,
19643,
12,
1752,
1769,
1082,
202,
430,
261,
1154,
7200,
19643,
405,
2411,
597,
2411,
411,
2130,
13,
288,
9506,
202,
1154,
7200,
2
] |
System.err.println("Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = " + dummyGL); | System.err.println(getThreadName() + ": Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = " + dummyGL); | protected void choosePixelFormatAndCreateContext(boolean onscreen) { PIXELFORMATDESCRIPTOR pfd = null; int pixelFormat = 0; if (onscreen) { GLCapabilities[] availableCaps = null; int numFormats = 0; pfd = newPixelFormatDescriptor(); GraphicsConfiguration config = component.getGraphicsConfiguration(); GraphicsDevice device = config.getDevice(); // Produce a recommended pixel format selection for the GLCapabilitiesChooser. // Use wglChoosePixelFormatARB if user requested multisampling and if we have it available GL dummyGL = null; if (capabilities.getSampleBuffers()) { dummyGL = WindowsGLContextFactory.getDummyGL(device); } int recommendedPixelFormat = -1; boolean haveWGLChoosePixelFormatARB = false; boolean haveWGLARBMultisample = false; if (dummyGL != null) { String availableWGLExtensions = WindowsGLContextFactory.getDummyGLExtensions(device); if (availableWGLExtensions.indexOf("WGL_ARB_pixel_format") >= 0) { haveWGLChoosePixelFormatARB = true; if (availableWGLExtensions.indexOf("WGL_ARB_multisample") >= 0) { haveWGLARBMultisample = true; } } } Rectangle rect = config.getBounds(); long dc = 0; long rc = 0; boolean freeWGLC = false; if( dummyGL != null ) { dc = WindowsGLContextFactory.getDummyGLContext( device ).hdc; rc = WindowsGLContextFactory.getDummyGLContext( device ).hglrc; if( !WGL.wglMakeCurrent( dc, rc ) ) { System.err.println("Error Making WGLC Current: " + WGL.GetLastError() ); } else { freeWGLC = true; } } // Fallback path for older cards, in particular Intel Extreme motherboard graphics boolean gotAvailableCaps = false; if (dummyGL != null && haveWGLChoosePixelFormatARB) { int[] iattributes = new int [2 * MAX_ATTRIBS]; int[] iresults = new int [2 * MAX_ATTRIBS]; float[] fattributes = new float[2 * MAX_ATTRIBS]; int niattribs = 0; int nfattribs = 0; iattributes[niattribs++] = GL.WGL_SUPPORT_OPENGL_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_DRAW_TO_WINDOW_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_PIXEL_TYPE_ARB; iattributes[niattribs++] = GL.WGL_TYPE_RGBA_ARB; iattributes[niattribs++] = GL.WGL_DOUBLE_BUFFER_ARB; if (capabilities.getDoubleBuffered()) { iattributes[niattribs++] = GL.GL_TRUE; } else { iattributes[niattribs++] = GL.GL_FALSE; } iattributes[niattribs++] = GL.WGL_STEREO_ARB; if (capabilities.getStereo()) { iattributes[niattribs++] = GL.GL_TRUE; } else { iattributes[niattribs++] = GL.GL_FALSE; } iattributes[niattribs++] = GL.WGL_DEPTH_BITS_ARB; iattributes[niattribs++] = capabilities.getDepthBits(); iattributes[niattribs++] = GL.WGL_RED_BITS_ARB; iattributes[niattribs++] = capabilities.getRedBits(); iattributes[niattribs++] = GL.WGL_GREEN_BITS_ARB; iattributes[niattribs++] = capabilities.getGreenBits(); iattributes[niattribs++] = GL.WGL_BLUE_BITS_ARB; iattributes[niattribs++] = capabilities.getBlueBits(); iattributes[niattribs++] = GL.WGL_ALPHA_BITS_ARB; iattributes[niattribs++] = capabilities.getAlphaBits(); iattributes[niattribs++] = GL.WGL_STENCIL_BITS_ARB; iattributes[niattribs++] = capabilities.getStencilBits(); if (capabilities.getAccumRedBits() > 0 || capabilities.getAccumGreenBits() > 0 || capabilities.getAccumBlueBits() > 0 || capabilities.getAccumAlphaBits() > 0) { iattributes[niattribs++] = GL.WGL_ACCUM_BITS_ARB; iattributes[niattribs++] = (capabilities.getAccumRedBits() + capabilities.getAccumGreenBits() + capabilities.getAccumBlueBits() + capabilities.getAccumAlphaBits()); iattributes[niattribs++] = GL.WGL_ACCUM_RED_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumRedBits(); iattributes[niattribs++] = GL.WGL_ACCUM_GREEN_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumGreenBits(); iattributes[niattribs++] = GL.WGL_ACCUM_BLUE_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumBlueBits(); iattributes[niattribs++] = GL.WGL_ACCUM_ALPHA_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumAlphaBits(); } if (haveWGLARBMultisample) { if (capabilities.getSampleBuffers()) { iattributes[niattribs++] = GL.WGL_SAMPLE_BUFFERS_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_SAMPLES_ARB; iattributes[niattribs++] = capabilities.getNumSamples(); } } int[] pformats = new int[MAX_PFORMATS]; int[] numFormatsTmp = new int[1]; if (dummyGL.wglChoosePixelFormatARB(hdc, iattributes, fattributes, MAX_PFORMATS, pformats, numFormatsTmp)) { numFormats = numFormatsTmp[0]; if (numFormats > 0) { // Remove one-basing of pixel format (added on later) recommendedPixelFormat = pformats[0] - 1; if (DEBUG) { System.err.println("Used wglChoosePixelFormatARB to recommend pixel format " + recommendedPixelFormat); } } } else { if (DEBUG) { System.err.println("wglChoosePixelFormatARB failed: " + WGL.GetLastError() ); Thread.dumpStack(); } } if (DEBUG) { if (recommendedPixelFormat < 0) { System.err.print("wglChoosePixelFormatARB didn't recommend a pixel format"); if (capabilities.getSampleBuffers()) { System.err.print(" for multisampled GLCapabilities"); } System.err.println(); } } // Produce a list of GLCapabilities to give to the // GLCapabilitiesChooser. // Use wglGetPixelFormatAttribivARB instead of // DescribePixelFormat to get higher-precision information // about the pixel format (should make the GLCapabilities // more precise as well...i.e., remove the // "HardwareAccelerated" bit, which is basically // meaningless, and put in whether it can render to a // window, to a pbuffer, or to a pixmap) niattribs = 0; iattributes[0] = GL.WGL_NUMBER_PIXEL_FORMATS_ARB; if (dummyGL.wglGetPixelFormatAttribivARB(hdc, 0, 0, 1, iattributes, iresults)) { numFormats = iresults[0]; // Should we be filtering out the pixel formats which aren't // applicable, as we are doing here? // We don't have enough information in the GLCapabilities to // represent those that aren't... iattributes[niattribs++] = GL.WGL_DRAW_TO_WINDOW_ARB; iattributes[niattribs++] = GL.WGL_ACCELERATION_ARB; iattributes[niattribs++] = GL.WGL_SUPPORT_OPENGL_ARB; iattributes[niattribs++] = GL.WGL_DEPTH_BITS_ARB; iattributes[niattribs++] = GL.WGL_STENCIL_BITS_ARB; iattributes[niattribs++] = GL.WGL_DOUBLE_BUFFER_ARB; iattributes[niattribs++] = GL.WGL_STEREO_ARB; iattributes[niattribs++] = GL.WGL_PIXEL_TYPE_ARB; iattributes[niattribs++] = GL.WGL_RED_BITS_ARB; iattributes[niattribs++] = GL.WGL_GREEN_BITS_ARB; iattributes[niattribs++] = GL.WGL_BLUE_BITS_ARB; iattributes[niattribs++] = GL.WGL_ALPHA_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_RED_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_GREEN_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_BLUE_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_ALPHA_BITS_ARB; if (haveWGLARBMultisample) { iattributes[niattribs++] = GL.WGL_SAMPLE_BUFFERS_ARB; iattributes[niattribs++] = GL.WGL_SAMPLES_ARB; } availableCaps = new GLCapabilities[numFormats]; for (int i = 0; i < numFormats; i++) { if (!dummyGL.wglGetPixelFormatAttribivARB(hdc, i+1, 0, niattribs, iattributes, iresults)) { throw new GLException("Error getting pixel format attributes for pixel format " + (i + 1) + " of device context"); } availableCaps[i] = iattributes2GLCapabilities(iattributes, iresults, niattribs, true); } if( freeWGLC ) { WGL.wglMakeCurrent( 0, 0 ); } gotAvailableCaps = true; } else { int lastErr = WGL.GetLastError(); // Intel Extreme graphics fails with a zero error code if (lastErr != 0) { throw new GLException("Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: error code " + WGL.GetLastError()); } } } if (!gotAvailableCaps) { if (DEBUG) { if (!capabilities.getSampleBuffers()) { System.err.println("Using ChoosePixelFormat because multisampling not requested"); } else { System.err.println("Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = " + dummyGL); } } pfd = glCapabilities2PFD(capabilities, onscreen); // Remove one-basing of pixel format (added on later) recommendedPixelFormat = WGL.ChoosePixelFormat(hdc, pfd) - 1; numFormats = WGL.DescribePixelFormat(hdc, 1, 0, null); if (numFormats == 0) { throw new GLException("Unable to enumerate pixel formats of window for GLCapabilitiesChooser"); } availableCaps = new GLCapabilities[numFormats]; for (int i = 0; i < numFormats; i++) { if (WGL.DescribePixelFormat(hdc, 1 + i, pfd.size(), pfd) == 0) { throw new GLException("Error describing pixel format " + (1 + i) + " of device context"); } availableCaps[i] = pfd2GLCapabilities(pfd); } } // Supply information to chooser pixelFormat = chooser.chooseCapabilities(capabilities, availableCaps, recommendedPixelFormat); if ((pixelFormat < 0) || (pixelFormat >= numFormats)) { throw new GLException("Invalid result " + pixelFormat + " from GLCapabilitiesChooser (should be between 0 and " + (numFormats - 1) + ")"); } if (DEBUG) { System.err.println("Chosen pixel format (" + pixelFormat + "):"); System.err.println(availableCaps[pixelFormat]); } pixelFormat += 1; // one-base the index if (WGL.DescribePixelFormat(hdc, pixelFormat, pfd.size(), pfd) == 0) { throw new GLException("Error re-describing the chosen pixel format: " + WGL.GetLastError()); } } else { // For now, use ChoosePixelFormat for offscreen surfaces until // we figure out how to properly choose an offscreen- // compatible pixel format pfd = glCapabilities2PFD(capabilities, onscreen); pixelFormat = WGL.ChoosePixelFormat(hdc, pfd); } if (!WGL.SetPixelFormat(hdc, pixelFormat, pfd)) { int lastError = WGL.GetLastError(); if (DEBUG) { System.err.println("SetPixelFormat failed: current context = " + WGL.wglGetCurrentContext() + ", current DC = " + WGL.wglGetCurrentDC()); System.err.println("GetPixelFormat(hdc " + hdcToString(hdc) + ") returns " + WGL.GetPixelFormat(hdc)); } throw new GLException("Unable to set pixel format " + pixelFormat + " for device context " + hdcToString(hdc) + ": error code " + lastError); } hglrc = WGL.wglCreateContext(hdc); if (DEBUG) { System.err.println("!!! Created OpenGL context " + hglrc + " for device context " + hdcToString(hdc) + " using pixel format " + pixelFormat); } if (hglrc == 0) { throw new GLException("Unable to create OpenGL context"); } } | 48257 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48257/7f0f3e8038d45b41796892d9ee7a59fb03fcbcb9/WindowsGLContext.java/clean/src/net/java/games/jogl/impl/windows/WindowsGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
9876,
9037,
1630,
1876,
1684,
1042,
12,
6494,
603,
9252,
13,
288,
565,
7024,
60,
2247,
7254,
1639,
27689,
293,
8313,
273,
446,
31,
565,
509,
4957,
1630,
273,
374,
31,
565,
309,
261,
265,
9252,
13,
288,
1377,
10252,
14012,
8526,
2319,
24193,
273,
446,
31,
1377,
509,
818,
8976,
273,
374,
31,
1377,
293,
8313,
273,
394,
9037,
1630,
3187,
5621,
1377,
16830,
1750,
642,
273,
1794,
18,
588,
17558,
1750,
5621,
1377,
16830,
3654,
2346,
273,
642,
18,
588,
3654,
5621,
1377,
368,
23278,
279,
14553,
4957,
740,
4421,
364,
326,
10252,
14012,
17324,
18,
1377,
368,
2672,
341,
7043,
24529,
9037,
1630,
20926,
309,
729,
3764,
22945,
7639,
471,
309,
732,
1240,
518,
2319,
1377,
10252,
9609,
11261,
273,
446,
31,
1377,
309,
261,
22140,
18,
588,
8504,
13699,
10756,
288,
3639,
9609,
11261,
273,
8202,
11261,
29871,
18,
588,
20094,
11261,
12,
5964,
1769,
1377,
289,
1377,
509,
14553,
9037,
1630,
273,
300,
21,
31,
1377,
1250,
1240,
59,
11261,
24529,
9037,
1630,
20926,
273,
629,
31,
1377,
1250,
1240,
59,
11261,
20926,
5049,
291,
1511,
273,
629,
31,
1377,
309,
261,
21050,
11261,
480,
446,
13,
288,
3639,
514,
2319,
59,
11261,
7513,
273,
8202,
11261,
29871,
18,
588,
20094,
11261,
7513,
12,
5964,
1769,
3639,
309,
261,
5699,
59,
11261,
7513,
18,
31806,
2932,
59,
11261,
67,
20926,
67,
11743,
67,
2139,
7923,
1545,
374,
13,
288,
1850,
1240,
59,
11261,
24529,
9037,
1630,
20926,
273,
638,
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,
9876,
9037,
1630,
1876,
1684,
1042,
12,
6494,
603,
9252,
13,
288,
565,
7024,
60,
2247,
7254,
1639,
27689,
293,
8313,
273,
446,
31,
565,
509,
4957,
1630,
273,
374,
31,
565,
309,
261,
265,
9252,
13,
288,
1377,
10252,
14012,
8526,
2319,
24193,
273,
446,
31,
1377,
509,
818,
8976,
273,
374,
31,
1377,
293,
8313,
273,
394,
9037,
1630,
3187,
5621,
1377,
16830,
1750,
642,
273,
1794,
18,
588,
17558,
1750,
5621,
1377,
16830,
3654,
2346,
273,
642,
18,
588,
3654,
5621,
1377,
368,
23278,
279,
14553,
4957,
740,
4421,
364,
326,
10252,
14012,
17324,
18,
1377,
368,
2672,
341,
7043,
24529,
9037,
1630,
20926,
309,
729,
3764,
22945,
7639,
471,
309,
732,
1240,
2
] |
finally { buffer.writeUnlock(); } _notifyScreenLineChanges(); textArea.foldStructureChanged(); | else expandFolds((int)(digit - '1') + 1); | public void expandFolds(int foldLevel) { try { buffer.writeLock(); if(buffer.getFoldHandler() instanceof IndentFoldHandler) foldLevel = (foldLevel - 1) * buffer.getIndentSize() + 1; showLineRange(0,buffer.getLineCount() - 1); /* this ensures that the first line is always visible */ boolean seenVisibleLine = false; int firstInvisible = 0; for(int i = 0; i < buffer.getLineCount(); i++) { if(!seenVisibleLine || buffer.getFoldLevel(i) < foldLevel) { if(firstInvisible != i) { hideLineRange(firstInvisible, i - 1); } firstInvisible = i + 1; seenVisibleLine = true; } } if(firstInvisible != buffer.getLineCount()) hideLineRange(firstInvisible,buffer.getLineCount() - 1); } finally { buffer.writeUnlock(); } _notifyScreenLineChanges(); textArea.foldStructureChanged(); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/03e4da5739b10bdc6744b544d08f9c0198062436/DisplayManager.java/buggy/org/gjt/sp/jedit/textarea/DisplayManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4542,
15592,
87,
12,
474,
11590,
2355,
13,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
4106,
18,
2626,
2531,
5621,
1082,
202,
430,
12,
4106,
18,
588,
15592,
1503,
1435,
1276,
28653,
15592,
1503,
13,
9506,
202,
16007,
2355,
273,
261,
16007,
2355,
300,
404,
13,
380,
1613,
18,
588,
7790,
1225,
1435,
397,
404,
31,
1082,
202,
4500,
1670,
2655,
12,
20,
16,
4106,
18,
588,
1670,
1380,
1435,
300,
404,
1769,
1082,
202,
20308,
333,
11932,
716,
326,
1122,
980,
353,
3712,
6021,
1195,
1082,
202,
6494,
5881,
6207,
1670,
273,
629,
31,
1082,
202,
474,
1122,
382,
8613,
273,
374,
31,
1082,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
1613,
18,
588,
1670,
1380,
5621,
277,
27245,
1082,
202,
95,
9506,
202,
430,
12,
5,
15156,
6207,
1670,
747,
1613,
18,
588,
15592,
2355,
12,
77,
13,
411,
11590,
2355,
13,
9506,
202,
95,
6862,
202,
430,
12,
3645,
382,
8613,
480,
277,
13,
6862,
202,
95,
25083,
202,
11248,
1670,
2655,
12,
3645,
382,
8613,
16,
6862,
1082,
202,
77,
300,
404,
1769,
6862,
202,
97,
6862,
202,
3645,
382,
8613,
273,
277,
397,
404,
31,
6862,
202,
15156,
6207,
1670,
273,
638,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
430,
12,
3645,
382,
8613,
480,
1613,
18,
588,
1670,
1380,
10756,
9506,
202,
11248,
1670,
2655,
12,
3645,
382,
8613,
16,
4106,
18,
588,
1670,
1380,
1435,
300,
404,
1769,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4542,
15592,
87,
12,
474,
11590,
2355,
13,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
4106,
18,
2626,
2531,
5621,
1082,
202,
430,
12,
4106,
18,
588,
15592,
1503,
1435,
1276,
28653,
15592,
1503,
13,
9506,
202,
16007,
2355,
273,
261,
16007,
2355,
300,
404,
13,
380,
1613,
18,
588,
7790,
1225,
1435,
397,
404,
31,
1082,
202,
4500,
1670,
2655,
12,
20,
16,
4106,
18,
588,
1670,
1380,
1435,
300,
404,
1769,
1082,
202,
20308,
333,
11932,
716,
326,
1122,
980,
353,
3712,
6021,
1195,
1082,
202,
6494,
5881,
6207,
1670,
273,
629,
31,
1082,
202,
474,
1122,
382,
8613,
273,
374,
31,
1082,
202,
1884,
12,
474,
277,
273,
374,
2
] |
GroovyClassLoader gcl = new GroovyClassLoader(); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); Class service = gcl.parseClass("class TestService { boolean transactional = true;def serviceMethod() { 'hello' } }"); GrailsServiceClass serviceClass = app.addServiceClass(service); conf.registerService(serviceClass,ctx); assertTrue(ctx.containsBean("TestServiceClass")); assertTrue(ctx.containsBean("TestServiceInstance")); GroovyObject serviceInstance = (GroovyObject)ctx.getBean("testService"); assertEquals("hello",serviceInstance.invokeMethod("serviceMethod",null)); } | GroovyClassLoader gcl = new GroovyClassLoader(); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); Class service = gcl.parseClass("class TestService { boolean transactional = true;def serviceMethod() { 'hello' } }"); GrailsServiceClass serviceClass = app.addServiceClass(service); conf.registerService(serviceClass,ctx); assertTrue(ctx.containsBean("TestServiceClass")); GroovyObject serviceInstance = (GroovyObject)ctx.getBean("testService"); assertEquals("hello",serviceInstance.invokeMethod("serviceMethod",null)); } | public void testRegisterService() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); Class service = gcl.parseClass("class TestService { boolean transactional = true;def serviceMethod() { 'hello' } }"); GrailsServiceClass serviceClass = app.addServiceClass(service); conf.registerService(serviceClass,ctx); assertTrue(ctx.containsBean("TestServiceClass")); assertTrue(ctx.containsBean("TestServiceInstance")); GroovyObject serviceInstance = (GroovyObject)ctx.getBean("testService"); assertEquals("hello",serviceInstance.invokeMethod("serviceMethod",null)); } | 55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/075145e116446e23fd77adcfc25dab01feb4a27e/GrailsRuntimeConfiguratorTests.java/clean/test/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfiguratorTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3996,
1179,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
9506,
202,
14571,
14573,
3208,
595,
273,
394,
2989,
14571,
14573,
3208,
12,
2704,
1659,
63,
20,
6487,
314,
830,
11272,
202,
202,
9865,
28278,
982,
273,
394,
7867,
28278,
5621,
202,
202,
2938,
18,
4861,
9865,
3381,
12,
14571,
14573,
3208,
18,
25039,
67,
734,
16,
595,
1769,
9506,
202,
14571,
14573,
5576,
17182,
2195,
273,
394,
10812,
14573,
5576,
17182,
12,
2910,
16,
2938,
1769,
202,
202,
14571,
14573,
4079,
28278,
1103,
273,
261,
14571,
14573,
4079,
28278,
13,
3923,
18,
14895,
12,
2704,
7867,
4745,
1042,
10663,
202,
202,
11231,
5962,
12,
5900,
1769,
9506,
202,
797,
1156,
273,
314,
830,
18,
2670,
797,
2932,
1106,
7766,
1179,
288,
1250,
25078,
273,
638,
31,
536,
1156,
1305,
1435,
288,
296,
23711,
11,
289,
289,
8863,
202,
202,
14571,
14573,
1179,
797,
1156,
797,
273,
595,
18,
1289,
1179,
797,
12,
3278,
1769,
202,
202,
3923,
18,
4861,
1179,
12,
3278,
797,
16,
5900,
1769,
9506,
202,
11231,
5510,
12,
5900,
18,
12298,
3381,
2932,
4709,
1179,
797,
7923,
1769,
202,
202,
11231,
5510,
12,
5900,
18,
12298,
3381,
2932,
4709,
29652,
7923,
1769,
202,
202,
43,
12859,
921,
1156,
1442,
273,
261,
43,
12859,
921,
13,
5900,
18,
588,
3381,
2932,
3813,
1179,
8863,
25083,
202,
11231,
8867,
2932,
23711,
3113,
3278,
1442,
18,
14407,
1305,
2932,
3278,
1305,
3113,
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,
225,
202,
482,
918,
1842,
3996,
1179,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
9506,
202,
14571,
14573,
3208,
595,
273,
394,
2989,
14571,
14573,
3208,
12,
2704,
1659,
63,
20,
6487,
314,
830,
11272,
202,
202,
9865,
28278,
982,
273,
394,
7867,
28278,
5621,
202,
202,
2938,
18,
4861,
9865,
3381,
12,
14571,
14573,
3208,
18,
25039,
67,
734,
16,
595,
1769,
9506,
202,
14571,
14573,
5576,
17182,
2195,
273,
394,
10812,
14573,
5576,
17182,
12,
2910,
16,
2938,
1769,
202,
202,
14571,
14573,
4079,
28278,
1103,
273,
261,
14571,
14573,
4079,
28278,
13,
3923,
18,
14895,
12,
2704,
7867,
4745,
1042,
10663,
202,
202,
11231,
5962,
12,
5900,
2
] |
Component p2 = component_loader.getComponent("p2"); | Component p2 = component_loader.getComponent("p2"); Component parallel = component_loader.getComponent("parallel"); | public void run() { try { // instantiate and deploy components deploymentDescriptor = ProActive.getProactiveDescriptor("file:" + DEPLOYMENT_DESCRIPTOR_LOCATION); Loader component_loader = new Loader(); component_loader.loadComponentsConfiguration("file:" + COMPONENTS_DESCRIPTOR_LOCATION, deploymentDescriptor); // start components Component c = component_loader.getComponent("c"); //System.out.println("name of c is : " + ((ComponentParametersController)c.getFcInterface(ComponentParametersController.COMPONENT_PARAMETERS_CONTROLLER)).getComponentParameters().getName()); Component p2 = component_loader.getComponent("p2"); //System.out.println("name of p2 is : " + ((ComponentParametersController)p2.getFcInterface(ComponentParametersController.COMPONENT_PARAMETERS_CONTROLLER)).getComponentParameters().getName()); Fractal.getLifeCycleController(c).startFc(); Fractal.getLifeCycleController(p2).startFc(); // invoke method on composite I1 i1 = (I1) c.getFcInterface("i1"); //I1 i1= (I1)p1.getFcInterface("i1"); message = i1.processInputMessage(new Message(MESSAGE)).append(MESSAGE); } catch (Exception e) { e.printStackTrace(); try { deploymentDescriptor.killall(); } catch (ProActiveException pae) { pae.printStackTrace(); } } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/c8d47023e2aff074052dbb51e6002f0373ba7820/Test.java/clean/src/nonregressiontest/component/descriptor/Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
368,
10275,
471,
7286,
4085,
7734,
6314,
3187,
273,
1186,
3896,
18,
588,
626,
3535,
3187,
2932,
768,
2773,
397,
13491,
2030,
22971,
3212,
67,
1639,
27689,
67,
15277,
1769,
7734,
13920,
1794,
67,
6714,
273,
394,
13920,
5621,
7734,
1794,
67,
6714,
18,
945,
7171,
1750,
2932,
768,
2773,
397,
10792,
13846,
15624,
55,
67,
1639,
27689,
67,
15277,
16,
6314,
3187,
1769,
7734,
368,
787,
4085,
7734,
5435,
276,
273,
1794,
67,
6714,
18,
588,
1841,
2932,
71,
8863,
7734,
368,
3163,
18,
659,
18,
8222,
2932,
529,
434,
276,
353,
294,
315,
397,
14015,
1841,
2402,
2933,
13,
71,
18,
588,
42,
71,
1358,
12,
1841,
2402,
2933,
18,
22922,
67,
20103,
67,
6067,
25353,
13,
2934,
588,
1841,
2402,
7675,
17994,
10663,
7734,
5435,
293,
22,
273,
1794,
67,
6714,
18,
588,
1841,
2932,
84,
22,
8863,
5435,
7230,
273,
1794,
67,
6714,
18,
588,
1841,
2932,
18054,
8863,
7734,
368,
3163,
18,
659,
18,
8222,
2932,
529,
434,
293,
22,
353,
294,
315,
397,
14015,
1841,
2402,
2933,
13,
84,
22,
18,
588,
42,
71,
1358,
12,
1841,
2402,
2933,
18,
22922,
67,
20103,
67,
6067,
25353,
13,
2934,
588,
1841,
2402,
7675,
17994,
10663,
7734,
478,
14266,
287,
18,
588,
15315,
13279,
2933,
12,
71,
2934,
1937,
42,
71,
5621,
7734,
478,
14266,
287,
18,
588,
15315,
13279,
2933,
12,
84,
22,
2934,
1937,
42,
71,
5621,
7734,
368,
4356,
707,
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,
775,
288,
7734,
368,
10275,
471,
7286,
4085,
7734,
6314,
3187,
273,
1186,
3896,
18,
588,
626,
3535,
3187,
2932,
768,
2773,
397,
13491,
2030,
22971,
3212,
67,
1639,
27689,
67,
15277,
1769,
7734,
13920,
1794,
67,
6714,
273,
394,
13920,
5621,
7734,
1794,
67,
6714,
18,
945,
7171,
1750,
2932,
768,
2773,
397,
10792,
13846,
15624,
55,
67,
1639,
27689,
67,
15277,
16,
6314,
3187,
1769,
7734,
368,
787,
4085,
7734,
5435,
276,
273,
1794,
67,
6714,
18,
588,
1841,
2932,
71,
8863,
7734,
368,
3163,
18,
659,
18,
8222,
2932,
529,
434,
276,
353,
294,
315,
397,
14015,
1841,
2402,
2933,
13,
71,
18,
588,
42,
71,
1358,
12,
1841,
2
] |
return method.getDeclaringClass(); | return isConstructor() ? Type.pointer_type : method.getDeclaringClass(); | public Type getParameterType(int index) { if (! getStaticFlag()) { if (index == 0) return method.getDeclaringClass(); index--; } int lenTypes = argTypes.length; if (index < lenTypes - 1) return argTypes[index]; boolean varArgs = takesVarArgs(); if (index < lenTypes && ! varArgs) return argTypes[index]; // if (! varArgs) ERROR; Type restType = argTypes[lenTypes - 1]; if (restType instanceof ArrayType) return ((ArrayType) restType).getComponentType(); else // Should be LList or some other Sequence class. return Type.pointer_type; } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1412,
5575,
559,
12,
474,
770,
13,
225,
288,
565,
309,
16051,
23414,
4678,
10756,
1377,
288,
3639,
309,
261,
1615,
422,
374,
13,
1850,
327,
353,
6293,
1435,
692,
1412,
18,
10437,
67,
723,
294,
707,
18,
588,
3456,
14682,
5621,
3639,
770,
413,
31,
1377,
289,
565,
509,
562,
2016,
273,
30973,
18,
2469,
31,
565,
309,
261,
1615,
411,
562,
2016,
300,
404,
13,
1377,
327,
30973,
63,
1615,
15533,
565,
1250,
569,
2615,
273,
5530,
1537,
2615,
5621,
565,
309,
261,
1615,
411,
562,
2016,
597,
401,
569,
2615,
13,
1377,
327,
30973,
63,
1615,
15533,
565,
368,
309,
16051,
569,
2615,
13,
5475,
31,
565,
1412,
3127,
559,
273,
30973,
63,
1897,
2016,
300,
404,
15533,
565,
309,
261,
8792,
559,
1276,
29935,
13,
1377,
327,
14015,
27182,
13,
3127,
559,
2934,
588,
28116,
5621,
565,
469,
368,
9363,
506,
511,
682,
578,
2690,
1308,
8370,
667,
18,
1377,
327,
1412,
18,
10437,
67,
723,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1412,
5575,
559,
12,
474,
770,
13,
225,
288,
565,
309,
16051,
23414,
4678,
10756,
1377,
288,
3639,
309,
261,
1615,
422,
374,
13,
1850,
327,
353,
6293,
1435,
692,
1412,
18,
10437,
67,
723,
294,
707,
18,
588,
3456,
14682,
5621,
3639,
770,
413,
31,
1377,
289,
565,
509,
562,
2016,
273,
30973,
18,
2469,
31,
565,
309,
261,
1615,
411,
562,
2016,
300,
404,
13,
1377,
327,
30973,
63,
1615,
15533,
565,
1250,
569,
2615,
273,
5530,
1537,
2615,
5621,
565,
309,
261,
1615,
411,
562,
2016,
597,
401,
569,
2615,
13,
1377,
327,
30973,
63,
1615,
15533,
565,
368,
309,
16051,
569,
2615,
13,
5475,
31,
565,
1412,
3127,
559,
273,
30973,
63,
1897,
2
] |
sentSuccess = true; | private void realRun() { runThread = Thread.currentThread(); // Send Accepted Message accepted = DMT.createFNPSSKAccepted(uid, pubKey == null); try { source.send(accepted, this); } catch (NotConnectedException e1) { Logger.minor(this, "Lost connection to source"); return; } if(pubKey == null) { // Wait for pub key Logger.minor(this, "Waiting for pubkey on "+uid); MessageFilter mfPK = MessageFilter.create().setType(DMT.FNPSSKPubKey).setField(DMT.UID, uid).setSource(source).setTimeout(PUBKEY_TIMEOUT); try { Message pk = node.usm.waitFor(mfPK, this); if(pk == null) { Logger.normal(this, "Failed to receive FNPSSKPubKey for "+uid); return; } byte[] pubkeyAsBytes = ((ShortBuffer)pk.getObject(DMT.PUBKEY_AS_BYTES)).getData(); try { pubKey = new DSAPublicKey(pubkeyAsBytes); Logger.minor(this, "Got pubkey on "+uid+" : "+pubKey); Message confirm = DMT.createFNPSSKPubKeyAccepted(uid); try { source.sendAsync(confirm, null, 0, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); return; } } catch (IOException e) { Logger.error(this, "Invalid pubkey from "+source+" on "+uid); Message msg = DMT.createFNPDataInsertRejected(uid, DMT.DATA_INSERT_REJECTED_SSK_ERROR); try { source.send(msg, this); } catch (NotConnectedException ee) { // Ignore } return; } } catch (DisconnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); return; } } try { key.setPubKey(pubKey); block = new SSKBlock(data, headers, key, false); } catch (SSKVerifyException e1) { Logger.error(this, "Invalid SSK from "+source, e1); Message msg = DMT.createFNPDataInsertRejected(uid, DMT.DATA_INSERT_REJECTED_SSK_ERROR); try { source.send(msg, this); } catch (NotConnectedException e) { // Ignore } return; } SSKBlock storedBlock = node.fetch(key); if((storedBlock != null) && !storedBlock.equals(block)) { Message msg = DMT.createFNPSSKDataFound(uid, storedBlock.getRawHeaders(), storedBlock.getRawData()); try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); } block = storedBlock; } Logger.minor(this, "Got block for "+key+" for "+uid); if(htl == 0) { Message msg = DMT.createFNPInsertReply(uid); sentSuccess = true; try { source.send(msg, this); } catch (NotConnectedException e) { // Ignore } canCommit = true; finish(SSKInsertSender.SUCCESS); return; } if(htl > 0) sender = node.makeInsertSender(block, htl, uid, source, false, closestLoc, true); boolean receivedRejectedOverload = false; while(true) { synchronized(sender) { try { if(sender.getStatus() == SSKInsertSender.NOT_FINISHED) sender.wait(5000); } catch (InterruptedException e) { // Ignore } } if((!receivedRejectedOverload) && sender.receivedRejectedOverload()) { receivedRejectedOverload = true; // Forward it Message m = DMT.createFNPRejectedOverload(uid, false); try { source.send(m, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } } if(sender.hasRecentlyCollided()) { // Forward collision data = sender.getData(); headers = sender.getHeaders(); try { block = new SSKBlock(data, headers, key, true); } catch (SSKVerifyException e1) { // Is verified elsewhere... throw new Error("Impossible: "+e1); } Message msg = DMT.createFNPSSKDataFound(uid, headers, data); try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } } int status = sender.getStatus(); if(status == SSKInsertSender.NOT_FINISHED) { continue; } // Local RejectedOverload's (fatal). // Internal error counts as overload. It'd only create a timeout otherwise, which is the same thing anyway. // We *really* need a good way to deal with nodes that constantly R_O! if((status == SSKInsertSender.TIMED_OUT) || (status == SSKInsertSender.GENERATED_REJECTED_OVERLOAD) || (status == SSKInsertSender.INTERNAL_ERROR)) { Message msg = DMT.createFNPRejectedOverload(uid, true); try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } // Might as well store it anyway. if((status == SSKInsertSender.TIMED_OUT) || (status == SSKInsertSender.GENERATED_REJECTED_OVERLOAD)) canCommit = true; finish(status); return; } if((status == SSKInsertSender.ROUTE_NOT_FOUND) || (status == SSKInsertSender.ROUTE_REALLY_NOT_FOUND)) { Message msg = DMT.createFNPRouteNotFound(uid, sender.getHTL()); try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } canCommit = true; finish(status); return; } if(status == SSKInsertSender.SUCCESS) { Message msg = DMT.createFNPInsertReply(uid); sentSuccess = true; try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } canCommit = true; finish(status); return; } // Otherwise...? Logger.error(this, "Unknown status code: "+sender.getStatusString()); Message msg = DMT.createFNPRejectedOverload(uid, true); try { source.send(msg, null); } catch (NotConnectedException e) { // Ignore } finish(status); return; } } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/eda25544c98825ea7f1e9ddd5c08127cd671f788/SSKInsertHandler.java/clean/src/freenet/node/SSKInsertHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2863,
1997,
1435,
288,
3639,
1086,
3830,
273,
4884,
18,
2972,
3830,
5621,
7734,
368,
2479,
8662,
329,
3639,
2350,
8494,
273,
463,
6152,
18,
2640,
19793,
52,
1260,
47,
18047,
12,
1911,
16,
18659,
422,
446,
1769,
7734,
775,
288,
1082,
202,
3168,
18,
4661,
12,
23847,
16,
333,
1769,
202,
202,
97,
1044,
261,
1248,
8932,
503,
425,
21,
13,
288,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
19024,
1459,
358,
1084,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
12,
10174,
653,
422,
446,
13,
288,
1082,
202,
759,
5838,
364,
5634,
498,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
15946,
364,
15649,
603,
13773,
1911,
1769,
25083,
202,
1079,
1586,
14749,
8784,
273,
2350,
1586,
18,
2640,
7675,
542,
559,
12,
40,
6152,
18,
19793,
52,
1260,
47,
17924,
2934,
542,
974,
12,
40,
6152,
18,
3060,
16,
4555,
2934,
542,
1830,
12,
3168,
2934,
542,
2694,
12,
17217,
3297,
67,
9503,
1769,
25083,
202,
698,
288,
9506,
202,
1079,
2365,
273,
756,
18,
407,
81,
18,
7048,
1290,
12,
16126,
8784,
16,
333,
1769,
9506,
202,
430,
12,
5465,
422,
446,
13,
288,
6862,
202,
3328,
18,
6130,
12,
2211,
16,
315,
2925,
358,
6798,
478,
23430,
1260,
47,
17924,
364,
13773,
1911,
1769,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
7229,
8526,
15649,
1463,
2160,
273,
14015,
4897,
1892,
13,
5465,
18,
588,
921,
12,
40,
6152,
18,
17217,
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,
2863,
1997,
1435,
288,
3639,
1086,
3830,
273,
4884,
18,
2972,
3830,
5621,
7734,
368,
2479,
8662,
329,
3639,
2350,
8494,
273,
463,
6152,
18,
2640,
19793,
52,
1260,
47,
18047,
12,
1911,
16,
18659,
422,
446,
1769,
7734,
775,
288,
1082,
202,
3168,
18,
4661,
12,
23847,
16,
333,
1769,
202,
202,
97,
1044,
261,
1248,
8932,
503,
425,
21,
13,
288,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
19024,
1459,
358,
1084,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
12,
10174,
653,
422,
446,
13,
288,
1082,
202,
759,
5838,
364,
5634,
498,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
15946,
364,
15649,
603,
13773,
1911,
2
] |
|
return NodeCHK.read(raf); } | return NodeCHK.readCHK(raf); } else if(type == NodeSSK.TYPE) return NodeSSK.readSSK(raf); | public static final Key read(DataInput raf) throws IOException { short type = raf.readShort(); if(type == NodeCHK.TYPE) { return NodeCHK.read(raf); } throw new IOException("Unrecognized format: "+type); } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/b559c2894d0056eb60ed1119dfeec68f972d122e/Key.java/buggy/src/freenet/keys/Key.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
1929,
855,
12,
751,
1210,
24671,
13,
1216,
1860,
288,
3639,
3025,
618,
273,
24671,
18,
896,
4897,
5621,
3639,
309,
12,
723,
422,
2029,
1792,
47,
18,
2399,
13,
288,
5411,
327,
2029,
1792,
47,
18,
896,
12,
13308,
1769,
3639,
289,
3639,
604,
394,
1860,
2932,
19648,
740,
30,
13773,
723,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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896,
12,
13308,
1769,
3639,
289,
3639,
604,
394,
1860,
2932,
19648,
740,
30,
13773,
723,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_scan_token(BYTE)) return true; | if (jj_scan_token(LPAREN)) return true; if (jj_3R_68()) return true; if (jj_scan_token(RPAREN)) return true; Token xsp; xsp = jj_scanpos; if (jj_scan_token(88)) { jj_scanpos = xsp; if (jj_scan_token(87)) { jj_scanpos = xsp; if (jj_scan_token(75)) { jj_scanpos = xsp; if (jj_scan_token(72)) { jj_scanpos = xsp; if (jj_scan_token(53)) { jj_scanpos = xsp; if (jj_scan_token(50)) { jj_scanpos = xsp; if (jj_scan_token(41)) { jj_scanpos = xsp; if (jj_3R_177()) return true; } } } } } } } | final private boolean jj_3R_121() { if (jj_scan_token(BYTE)) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26009,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
48,
15111,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
23,
54,
67,
9470,
10756,
327,
638,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
54,
15111,
3719,
327,
638,
31,
3155,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
5482,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
11035,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
5877,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
9060,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
8643,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3361,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
9803,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
23,
54,
67,
29882,
10756,
327,
638,
31,
289,
289,
289,
289,
289,
289,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26009,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
48,
15111,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
23,
54,
67,
9470,
10756,
327,
638,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
54,
15111,
3719,
327,
638,
31,
3155,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
5482,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
11035,
3719,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
5877,
3719,
2
] |
evaluator.cook(r); | evaluator.cook(content.toString(), r); | private Object compile(final Resource content, final boolean query) { Object ctx = objectCache.get(content); if (ctx == null) { ScriptEvaluator evaluator = new ScriptEvaluator(); //Exception are not required to be handled evaluator.setThrownExceptions(THROWN_EXCEPTIONS); evaluator.setParentClassLoader(getClass().getClassLoader()); evaluator.setExtendedType(query ? JaninoQuery.class: JaninoScript.class); evaluator.setStaticMethod(false); Reader r = null; try { r = content.open(); evaluator.cook(r);//todo use resource name } catch (Exception e) { throw new JaninoProviderException("Compilation failed", e); } finally { IOUtils.closeSilently(r); } Class<?> cl = evaluator.getMethod().getDeclaringClass(); try { ctx = cl.newInstance(); } catch (Exception e) { throw new JaninoProviderException("Unable to instantiate compiled class",e); } objectCache.put(content, ctx); } return ctx; } | 55401 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55401/ac26bc4e797864f870691c70a72f8d94e894e46c/CodeCompiler.java/buggy/drivers/src/java/scriptella/driver/janino/CodeCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
4074,
12,
6385,
2591,
913,
16,
727,
1250,
843,
13,
288,
3639,
1033,
1103,
273,
733,
1649,
18,
588,
12,
1745,
1769,
3639,
309,
261,
5900,
422,
446,
13,
288,
5411,
7739,
15876,
18256,
273,
394,
7739,
15876,
5621,
5411,
368,
503,
854,
486,
1931,
358,
506,
7681,
5411,
18256,
18,
542,
29591,
11416,
12,
2455,
1457,
5665,
67,
12658,
55,
1769,
5411,
18256,
18,
542,
3054,
7805,
12,
588,
797,
7675,
588,
7805,
10663,
5411,
18256,
18,
542,
11456,
559,
12,
2271,
692,
23214,
15020,
1138,
18,
1106,
30,
23214,
15020,
3651,
18,
1106,
1769,
5411,
18256,
18,
542,
5788,
1305,
12,
5743,
1769,
5411,
5393,
436,
273,
446,
31,
5411,
775,
288,
7734,
436,
273,
913,
18,
3190,
5621,
7734,
18256,
18,
29854,
12,
86,
1769,
759,
9012,
999,
1058,
508,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
604,
394,
23214,
15020,
2249,
503,
2932,
19184,
2535,
3113,
425,
1769,
5411,
289,
3095,
288,
7734,
18044,
18,
4412,
55,
8125,
715,
12,
86,
1769,
5411,
289,
5411,
1659,
12880,
34,
927,
273,
18256,
18,
588,
1305,
7675,
588,
3456,
14682,
5621,
5411,
775,
288,
7734,
1103,
273,
927,
18,
2704,
1442,
5621,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
604,
394,
23214,
15020,
2249,
503,
2932,
3370,
358,
10275,
7743,
667,
3113,
73,
1769,
5411,
289,
5411,
733,
1649,
18,
458,
12,
1745,
16,
1103,
1769,
3639,
289,
3639,
327,
1103,
31,
565,
289,
2,
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,
1,
1,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
4074,
12,
6385,
2591,
913,
16,
727,
1250,
843,
13,
288,
3639,
1033,
1103,
273,
733,
1649,
18,
588,
12,
1745,
1769,
3639,
309,
261,
5900,
422,
446,
13,
288,
5411,
7739,
15876,
18256,
273,
394,
7739,
15876,
5621,
5411,
368,
503,
854,
486,
1931,
358,
506,
7681,
5411,
18256,
18,
542,
29591,
11416,
12,
2455,
1457,
5665,
67,
12658,
55,
1769,
5411,
18256,
18,
542,
3054,
7805,
12,
588,
797,
7675,
588,
7805,
10663,
5411,
18256,
18,
542,
11456,
559,
12,
2271,
692,
23214,
15020,
1138,
18,
1106,
30,
23214,
15020,
3651,
18,
1106,
1769,
5411,
18256,
18,
542,
5788,
1305,
12,
5743,
1769,
5411,
5393,
436,
273,
446,
31,
5411,
775,
288,
7734,
436,
2
] |
else return new RGB(255,255, 225); | return new RGB(255,255, 225); | private static RGB getBgColor() { if (BG_COLOR_RGB != null) return BG_COLOR_RGB; else return new RGB(255,255, 225); // RGB value of info bg color on WindowsXP } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/7a1af2dd9d3563bc96ecc8210ca026e1ed44e2ab/HTMLPrinter.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/HTMLPrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
11510,
2882,
75,
2957,
1435,
288,
202,
202,
430,
261,
30098,
67,
10989,
67,
11343,
480,
446,
13,
1082,
202,
2463,
30609,
67,
10989,
67,
11343,
31,
202,
202,
12107,
1082,
202,
2463,
394,
11510,
12,
10395,
16,
10395,
16,
28298,
1769,
368,
11510,
460,
434,
1123,
7611,
2036,
603,
8202,
60,
52,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
11510,
2882,
75,
2957,
1435,
288,
202,
202,
430,
261,
30098,
67,
10989,
67,
11343,
480,
446,
13,
1082,
202,
2463,
30609,
67,
10989,
67,
11343,
31,
202,
202,
12107,
1082,
202,
2463,
394,
11510,
12,
10395,
16,
10395,
16,
28298,
1769,
368,
11510,
460,
434,
1123,
7611,
2036,
603,
8202,
60,
52,
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
] |
verifyEquals("Click here for next page", selenium.getText("link")); selenium.click("link"); | verifyEquals("Click here for next page", selenium.getText("link")); selenium.click("link"); | public void test() throws Throwable { selenium.setContext("Test Click", "info"); /* Test Click */ // open|./tests/html/test_click_page1.html| selenium.open("./tests/html/test_click_page1.html"); /* Click a regular link */ // verifyText|link|Click here for next page verifyEquals("Click here for next page", selenium.getText("link")); // clickAndWait|link| selenium.click("link"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page Target| verifyEquals("Click Page Target", selenium.getTitle()); // clickAndWait|previousPage| selenium.click("previousPage"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page 1| verifyEquals("Click Page 1", selenium.getTitle()); /* Click a link with an enclosed image */ // clickAndWait|linkWithEnclosedImage| selenium.click("linkWithEnclosedImage"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page Target| verifyEquals("Click Page Target", selenium.getTitle()); // clickAndWait|previousPage| selenium.click("previousPage"); selenium.waitForPageToLoad("60000"); /* Click an image enclosed by a link */ // clickAndWait|enclosedImage| selenium.click("enclosedImage"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page Target| verifyEquals("Click Page Target", selenium.getTitle()); // clickAndWait|previousPage| selenium.click("previousPage"); selenium.waitForPageToLoad("60000"); /* Click a link with an href anchor target within this page */ // click|linkToAnchorOnThisPage| selenium.click("linkToAnchorOnThisPage"); // verifyTitle|Click Page 1| verifyEquals("Click Page 1", selenium.getTitle()); /* Click a link where onclick returns false */ // click|linkWithOnclickReturnsFalse| selenium.click("linkWithOnclickReturnsFalse"); /* Need a pause to give the page a chance to reload (so this test can fail) */ // pause|300 pause(300); // verifyTitle|Click Page 1| verifyEquals("Click Page 1", selenium.getTitle()); /* TODO Click a link with a target attribute */ checkForVerificationErrors(); } | 25408 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25408/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestClick.java/buggy/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestClick.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
18417,
3113,
315,
1376,
8863,
225,
1748,
7766,
18417,
4202,
1195,
1082,
202,
759,
1696,
96,
18,
19,
16341,
19,
2620,
19,
3813,
67,
7475,
67,
2433,
21,
18,
2620,
96,
1082,
202,
1786,
17327,
18,
3190,
2932,
18,
19,
16341,
19,
2620,
19,
3813,
67,
7475,
67,
2433,
21,
18,
2620,
8863,
202,
202,
20308,
18417,
279,
6736,
1692,
1195,
1082,
202,
759,
3929,
1528,
96,
1232,
96,
6563,
2674,
364,
1024,
1363,
1082,
202,
8705,
8867,
2932,
6563,
2674,
364,
1024,
1363,
3113,
29480,
18,
588,
1528,
2932,
1232,
7923,
1769,
1082,
202,
759,
4682,
1876,
5480,
96,
1232,
96,
1082,
202,
1786,
17327,
18,
7475,
2932,
1232,
8863,
202,
202,
1786,
17327,
18,
7048,
1290,
1964,
26883,
2932,
26,
2787,
8863,
1082,
202,
759,
3929,
4247,
96,
6563,
3460,
5916,
96,
1082,
202,
8705,
8867,
2932,
6563,
3460,
5916,
3113,
29480,
18,
588,
4247,
10663,
1082,
202,
759,
4682,
1876,
5480,
96,
11515,
1964,
96,
1082,
202,
1786,
17327,
18,
7475,
2932,
11515,
1964,
8863,
202,
202,
1786,
17327,
18,
7048,
1290,
1964,
26883,
2932,
26,
2787,
8863,
1082,
202,
759,
3929,
4247,
96,
6563,
3460,
404,
96,
1082,
202,
8705,
8867,
2932,
6563,
3460,
404,
3113,
29480,
18,
588,
4247,
10663,
202,
202,
20308,
18417,
279,
1692,
598,
392,
25636,
1316,
1195,
1082,
202,
759,
4682,
1876,
5480,
96,
1232,
1190,
4280,
13783,
2040,
96,
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,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
18417,
3113,
315,
1376,
8863,
225,
1748,
7766,
18417,
4202,
1195,
1082,
202,
759,
1696,
96,
18,
19,
16341,
19,
2620,
19,
3813,
67,
7475,
67,
2433,
21,
18,
2620,
96,
1082,
202,
1786,
17327,
18,
3190,
2932,
18,
19,
16341,
19,
2620,
19,
3813,
67,
7475,
67,
2433,
21,
18,
2620,
8863,
202,
202,
20308,
18417,
279,
6736,
1692,
1195,
1082,
202,
759,
3929,
1528,
96,
1232,
96,
6563,
2674,
364,
1024,
1363,
1082,
202,
8705,
8867,
2932,
6563,
2674,
364,
1024,
1363,
3113,
29480,
18,
588,
1528,
2932,
1232,
7923,
1769,
1082,
202,
759,
4682,
1876,
5480,
96,
1232,
96,
2
] |
return result; | return address; | public ProtocolAddressBase createAddress (String address) { List factorylist = getTransportManager().getFactoriesList(); ProtocolAddressBase result = null; for (Iterator i = factorylist.iterator(); i.hasNext() && result == null;) { FactoriesBase f = (FactoriesBase)i.next(); result = f.create_protocol_address(address); } return result; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/0a95ce207a7d1951804f65b8092e36f02ac71b3d/ORB.java/buggy/src/org/jacorb/orb/ORB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4547,
1887,
2171,
752,
1887,
261,
780,
1758,
13,
565,
288,
3639,
987,
3272,
1098,
273,
29801,
1318,
7675,
588,
19271,
682,
5621,
3639,
4547,
1887,
2171,
563,
273,
446,
31,
3639,
364,
261,
3198,
277,
273,
3272,
1098,
18,
9838,
5621,
2398,
277,
18,
5332,
2134,
1435,
597,
563,
422,
446,
30943,
3639,
288,
5411,
29057,
2401,
2171,
284,
273,
261,
19271,
2171,
13,
77,
18,
4285,
5621,
5411,
563,
273,
284,
18,
2640,
67,
8373,
67,
2867,
12,
2867,
1769,
3639,
289,
540,
327,
1758,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4547,
1887,
2171,
752,
1887,
261,
780,
1758,
13,
565,
288,
3639,
987,
3272,
1098,
273,
29801,
1318,
7675,
588,
19271,
682,
5621,
3639,
4547,
1887,
2171,
563,
273,
446,
31,
3639,
364,
261,
3198,
277,
273,
3272,
1098,
18,
9838,
5621,
2398,
277,
18,
5332,
2134,
1435,
597,
563,
422,
446,
30943,
3639,
288,
5411,
29057,
2401,
2171,
284,
273,
261,
19271,
2171,
13,
77,
18,
4285,
5621,
5411,
563,
273,
284,
18,
2640,
67,
8373,
67,
2867,
12,
2867,
1769,
3639,
289,
540,
327,
1758,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
org.exist.xquery.parser.XQueryAST tmp254_AST = null; tmp254_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp254_AST); match(140); | org.exist.xquery.parser.XQueryAST tmp258_AST = null; tmp258_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp258_AST); match(142); | public final void documentTest() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST documentTest_AST = null; org.exist.xquery.parser.XQueryAST tmp254_AST = null; tmp254_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp254_AST); match(140); match(LPAREN); match(RPAREN); documentTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = documentTest_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1668,
4709,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1668,
4709,
67,
9053,
273,
446,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
26261,
67,
9053,
273,
446,
31,
202,
202,
5645,
26261,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
689,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
202,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
26261,
67,
9053,
1769,
202,
202,
1916,
12,
27092,
1769,
202,
202,
1916,
12,
48,
15111,
1769,
202,
202,
1916,
12,
54,
15111,
1769,
202,
202,
5457,
4709,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
2972,
9053,
18,
3085,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,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1668,
4709,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1668,
4709,
67,
9053,
273,
446,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
26261,
67,
9053,
273,
446,
31,
202,
202,
5645,
26261,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
689,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
202,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
26261,
2
] |
return ( _indent > 0 ); | return ( _indent > 0 ); | public boolean getIndenting() { return ( _indent > 0 ); } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/af047e33ee4283cd437ffa6760ccff3d3d2bf9ea/OutputFormat.java/buggy/src/org/apache/xml/serialize/OutputFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
336,
7790,
310,
1435,
565,
288,
202,
2463,
261,
389,
9355,
405,
374,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
336,
7790,
310,
1435,
565,
288,
202,
2463,
261,
389,
9355,
405,
374,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 index = path.indexOf("?"); | int index= path.indexOf("?"); | public void setPath(String path) { if (GET.equals(getMethod())) { int index = path.indexOf("?"); if (index > -1) { setProperty(PATH, path.substring(0, index)); parseArguments(path.substring(index + 1)); } else { setProperty(PATH, path); } } else { setProperty(PATH, path); } } | 50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/2b28185336c09d05f1ac5cd0c917c815f8fe7976/HTTPSampler.java/buggy/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16475,
12,
780,
589,
13,
565,
288,
3639,
309,
261,
3264,
18,
14963,
12,
588,
1305,
1435,
3719,
3639,
288,
5411,
509,
770,
33,
589,
18,
31806,
2932,
7225,
1769,
5411,
309,
261,
1615,
405,
300,
21,
13,
5411,
288,
7734,
7486,
12,
4211,
16,
589,
18,
28023,
12,
20,
16,
770,
10019,
7734,
1109,
4628,
12,
803,
18,
28023,
12,
1615,
397,
404,
10019,
5411,
289,
5411,
469,
5411,
288,
7734,
7486,
12,
4211,
16,
589,
1769,
5411,
289,
3639,
289,
3639,
469,
3639,
288,
5411,
7486,
12,
4211,
16,
589,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16475,
12,
780,
589,
13,
565,
288,
3639,
309,
261,
3264,
18,
14963,
12,
588,
1305,
1435,
3719,
3639,
288,
5411,
509,
770,
33,
589,
18,
31806,
2932,
7225,
1769,
5411,
309,
261,
1615,
405,
300,
21,
13,
5411,
288,
7734,
7486,
12,
4211,
16,
589,
18,
28023,
12,
20,
16,
770,
10019,
7734,
1109,
4628,
12,
803,
18,
28023,
12,
1615,
397,
404,
10019,
5411,
289,
5411,
469,
5411,
288,
7734,
7486,
12,
4211,
16,
589,
1769,
5411,
289,
3639,
289,
3639,
469,
3639,
288,
5411,
7486,
12,
4211,
16,
589,
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
] |
public void prolog() throws RecognitionException { String name = null; String packageName = ""; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:243:17: ( opt_eol (name= package_statement )? ( extra_statement | expander )* opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:243:17: opt_eol (name= package_statement )? ( extra_statement | expander )* opt_eol { following.push(FOLLOW_opt_eol_in_prolog115); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:244:17: (name= package_statement )? int alt3=2; int LA3_0 = input.LA(1); if ( LA3_0==16 ) { alt3=1; } else if ( LA3_0==-1||LA3_0==EOL||LA3_0==15||(LA3_0>=17 && LA3_0<=20)||LA3_0==26||LA3_0==28 ) { alt3=2; } else { NoViableAltException nvae = new NoViableAltException("244:17: (name= package_statement )?", 3, 0, input); throw nvae; } switch (alt3) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:244:19: name= package_statement { following.push(FOLLOW_package_statement_in_prolog123); name=package_statement(); following.pop(); packageName = name; } break; } this.packageDescr = new PackageDescr( name ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:248:17: ( extra_statement | expander )* loop4: do { int alt4=3; alt4 = dfa4.predict(input); switch (alt4) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:248:25: extra_statement { following.push(FOLLOW_extra_statement_in_prolog138); extra_statement(); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:249:25: expander { following.push(FOLLOW_expander_in_prolog144); expander(); following.pop(); } break; default : break loop4; } } while (true); following.push(FOLLOW_opt_eol_in_prolog156); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
450,
1330,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
9929,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
3247,
23,
30,
4033,
30,
261,
2153,
67,
30951,
261,
529,
33,
2181,
67,
11516,
7851,
261,
2870,
67,
11516,
571,
4542,
264,
8618,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
3247,
23,
30,
4033,
30,
2153,
67,
30951,
261,
529,
33,
2181,
67,
11516,
7851,
261,
2870,
67,
11516,
571,
4542,
264,
8618,
2153,
67,
30951,
5411,
288,
5411,
3751,
18,
6206,
12,
29890,
67,
3838,
67,
30951,
67,
267,
67,
685,
1330,
22062,
1769,
5411,
2153,
67,
30951,
5621,
5411,
3751,
18,
5120,
5621,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
3247,
24,
30,
4033,
30,
261,
529,
33,
2181,
67,
11516,
7851,
5411,
509,
3770,
23,
33,
22,
31,
5411,
509,
2928,
23,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
5411,
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,
377,
1071,
918,
450,
1330,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
9929,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
3247,
23,
30,
4033,
30,
261,
2153,
67,
30951,
261,
529,
33,
2181,
67,
11516,
7851,
261,
2870,
67,
11516,
571,
4542,
264,
8618,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
2
] |
||
Constructor batchCompilerConstructor = c.getConstructor( new Class[] { PrintWriter.class, PrintWriter.class, Boolean.TYPE }); Object batchCompilerInstance = batchCompilerConstructor.newInstance( new Object[] { new PrintWriter(System.out), new PrintWriter(System.err), new Boolean(true)}); Method compile = c.getMethod("compile", new Class[] { String[].class }); Object result = compile.invoke( batchCompilerInstance, new Object[] { cmd.getArguments()}); | Constructor batchCompilerConstructor = c.getConstructor(new Class[] { PrintWriter.class, PrintWriter.class, Boolean.TYPE}); Object batchCompilerInstance = batchCompilerConstructor.newInstance(new Object[] {new PrintWriter(System.out), new PrintWriter(System.err), new Boolean(true)}); Method compile = c.getMethod("compile", new Class[] {String[].class}); Object result = compile.invoke(batchCompilerInstance, new Object[] { cmd.getArguments()}); | public boolean execute() throws BuildException { attributes.log(Util.getString("ant.jdtadapter.info.usingJDTCompiler"), Project.MSG_VERBOSE); //$NON-NLS-1$ Commandline cmd = setupJavacCommand(); try { Class c = Class.forName(compilerClass); Constructor batchCompilerConstructor = c.getConstructor( new Class[] { PrintWriter.class, PrintWriter.class, Boolean.TYPE }); Object batchCompilerInstance = batchCompilerConstructor.newInstance( new Object[] { new PrintWriter(System.out), new PrintWriter(System.err), new Boolean(true)}); Method compile = c.getMethod("compile", new Class[] { String[].class }); //$NON-NLS-1$ Object result = compile.invoke( batchCompilerInstance, new Object[] { cmd.getArguments()}); final boolean resultValue = ((Boolean) result).booleanValue(); if (!resultValue && verbose) { System.out.println(Util.getString("ant.jdtadapter.error.compilationFailed", this.logFileName)); //$NON-NLS-1$ } return resultValue; } catch (ClassNotFoundException cnfe) { throw new BuildException(Util.getString("ant.jdtadapter.error.cannotFindJDTCompiler")); //$NON-NLS-1$ } catch (Exception ex) { throw new BuildException(ex); } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/43cd6a7d9958222f67164398a9ef01da87132a6f/JDTCompilerAdapter.java/clean/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
1435,
1216,
18463,
288,
202,
202,
4350,
18,
1330,
12,
1304,
18,
588,
780,
2932,
970,
18,
78,
7510,
10204,
18,
1376,
18,
9940,
46,
9081,
9213,
6,
3631,
5420,
18,
11210,
67,
21900,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2189,
1369,
1797,
273,
3875,
46,
842,
1077,
2189,
5621,
202,
202,
698,
288,
1082,
202,
797,
276,
273,
1659,
18,
1884,
461,
12,
9576,
797,
1769,
1082,
202,
6293,
2581,
9213,
6293,
273,
9506,
202,
71,
18,
588,
6293,
12,
6862,
202,
2704,
1659,
8526,
288,
25083,
202,
5108,
2289,
18,
1106,
16,
25083,
202,
5108,
2289,
18,
1106,
16,
25083,
202,
5507,
18,
2399,
15549,
1082,
202,
921,
2581,
9213,
1442,
273,
9506,
202,
5303,
9213,
6293,
18,
2704,
1442,
12,
6862,
202,
2704,
1033,
8526,
288,
25083,
202,
2704,
14071,
12,
3163,
18,
659,
3631,
25083,
202,
2704,
14071,
12,
3163,
18,
370,
3631,
25083,
202,
2704,
3411,
12,
3767,
16869,
1769,
1082,
202,
1305,
4074,
273,
276,
18,
588,
1305,
2932,
11100,
3113,
394,
1659,
8526,
288,
514,
63,
8009,
1106,
15549,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
921,
563,
273,
9506,
202,
11100,
18,
14407,
12,
6862,
202,
5303,
9213,
1442,
16,
6862,
202,
2704,
1033,
8526,
288,
1797,
18,
588,
4628,
17767,
1769,
1082,
202,
6385,
1250,
563,
620,
273,
14015,
5507,
13,
563,
2934,
6494,
620,
5621,
1082,
202,
430,
16051,
2088,
620,
597,
3988,
13,
288,
9506,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
1435,
1216,
18463,
288,
202,
202,
4350,
18,
1330,
12,
1304,
18,
588,
780,
2932,
970,
18,
78,
7510,
10204,
18,
1376,
18,
9940,
46,
9081,
9213,
6,
3631,
5420,
18,
11210,
67,
21900,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2189,
1369,
1797,
273,
3875,
46,
842,
1077,
2189,
5621,
202,
202,
698,
288,
1082,
202,
797,
276,
273,
1659,
18,
1884,
461,
12,
9576,
797,
1769,
1082,
202,
6293,
2581,
9213,
6293,
273,
9506,
202,
71,
18,
588,
6293,
12,
6862,
202,
2704,
1659,
8526,
288,
25083,
202,
5108,
2289,
18,
1106,
16,
25083,
202,
5108,
2289,
18,
1106,
16,
25083,
202,
5507,
18,
2399,
15549,
1082,
202,
921,
2
] |
manager.beginRule(rule, getEventLoopMonitor()); | manager.beginRule(rule, ((Workbench)PlatformUI.getWorkbench()).isStarting() ? new NullProgressMonitor() : getEventLoopMonitor()); | public void run() { try { manager.beginRule(rule, getEventLoopMonitor()); context.run(false, false, runnable); } catch (InvocationTargetException e) { exception[0] = e; } catch (InterruptedException e) { canceled[0] = e; } catch (OperationCanceledException e) { canceled[0] = new InterruptedException(e.getMessage()); } finally { manager.endRule(rule); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8243b86b3086f41e26ea3b63f165ae6e3674ff64/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
775,
288,
10792,
3301,
18,
10086,
2175,
12,
5345,
16,
14015,
2421,
22144,
13,
8201,
5370,
18,
588,
2421,
22144,
1435,
2934,
291,
11715,
1435,
692,
394,
4112,
5491,
7187,
1435,
294,
9832,
6452,
7187,
10663,
10792,
819,
18,
2681,
12,
5743,
16,
629,
16,
14685,
1769,
7734,
289,
1044,
261,
9267,
14950,
425,
13,
288,
10792,
1520,
63,
20,
65,
273,
425,
31,
7734,
289,
1044,
261,
24485,
503,
425,
13,
288,
10792,
17271,
63,
20,
65,
273,
425,
31,
7734,
289,
1044,
261,
2988,
23163,
503,
425,
13,
288,
10792,
17271,
63,
20,
65,
273,
394,
7558,
12,
73,
18,
24906,
10663,
7734,
289,
3095,
288,
10792,
3301,
18,
409,
2175,
12,
5345,
1769,
7734,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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3301,
18,
10086,
2175,
12,
5345,
16,
14015,
2421,
22144,
13,
8201,
5370,
18,
588,
2421,
22144,
1435,
2934,
291,
11715,
1435,
692,
394,
4112,
5491,
7187,
1435,
294,
9832,
6452,
7187,
10663,
10792,
819,
18,
2681,
12,
5743,
16,
629,
16,
14685,
1769,
7734,
289,
1044,
261,
9267,
14950,
425,
13,
288,
10792,
1520,
63,
20,
65,
273,
425,
31,
7734,
289,
1044,
261,
24485,
503,
425,
13,
288,
10792,
17271,
63,
20,
65,
273,
425,
31,
7734,
289,
1044,
261,
2988,
23163,
503,
425,
13,
288,
10792,
17271,
63,
20,
65,
273,
394,
7558,
12,
73,
18,
24906,
10663,
7734,
289,
3095,
288,
10792,
3301,
18,
409,
2
] |
disposed = true; | ++disposeCount; | public void dispose() { super.dispose(); disposed = true; } | 45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/0f0cd7c88657f6b409b696ab1a836a26dca0d359/ApplicationInstanceTest.java/buggy/src/app/test/nextapp/echo2/app/test/ApplicationInstanceTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
15825,
1435,
288,
5411,
2240,
18,
2251,
4150,
5621,
5411,
965,
2251,
4150,
1380,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
15825,
1435,
288,
5411,
2240,
18,
2251,
4150,
5621,
5411,
965,
2251,
4150,
1380,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ImageItem image = (ImageItem) getElement( ); StructRefValue refValue = (StructRefValue) image.getLocalProperty( getModule( ), IImageItemModel.IMAGE_NAME_PROP ); if ( refValue != null ) { return refValue.getName( ); } String name = getStringProperty( IImageItemModel.IMAGE_NAME_PROP ); if ( name == null ) return null; Module module = getModule( ); DesignElement parent = image.isVirtualElement( ) ? image .getVirtualParent( ) : image.getExtendsElement( ); while ( parent != null ) { if ( parent .getLocalProperty( null, IImageItemModel.IMAGE_NAME_PROP ) != null ) { module = parent.getRoot( ); break; } parent = parent.isVirtualElement( ) ? parent.getVirtualParent( ) : parent.getExtendsElement( ); } if ( module instanceof Library ) { String namespace = ( (Library) module ).getNamespace( ); return StringUtil.buildQualifiedReference( namespace, name ); } return name; | return getStringProperty( IImageItemModel.IMAGE_NAME_PROP ); | public String getImageName( ) { if ( !DesignChoiceConstants.IMAGE_REF_TYPE_EMBED .equalsIgnoreCase( getStringProperty( ImageItem.SOURCE_PROP ) ) ) return null; ImageItem image = (ImageItem) getElement( ); StructRefValue refValue = (StructRefValue) image.getLocalProperty( getModule( ), IImageItemModel.IMAGE_NAME_PROP ); if ( refValue != null ) { return refValue.getName( ); } String name = getStringProperty( IImageItemModel.IMAGE_NAME_PROP ); if ( name == null ) return null; // must be extends Module module = getModule( ); DesignElement parent = image.isVirtualElement( ) ? image .getVirtualParent( ) : image.getExtendsElement( ); while ( parent != null ) { if ( parent .getLocalProperty( null, IImageItemModel.IMAGE_NAME_PROP ) != null ) { module = parent.getRoot( ); break; } parent = parent.isVirtualElement( ) ? parent.getVirtualParent( ) : parent.getExtendsElement( ); } if ( module instanceof Library ) { String namespace = ( (Library) module ).getNamespace( ); return StringUtil.buildQualifiedReference( namespace, name ); } return name; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/3fb558e013bac00fe417e4959c7781015fb7f8fb/ImageHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ImageHandle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10567,
461,
12,
262,
202,
95,
202,
202,
430,
261,
401,
15478,
10538,
2918,
18,
13603,
67,
10771,
67,
2399,
67,
3375,
22235,
9506,
202,
18,
14963,
5556,
12,
4997,
1396,
12,
3421,
1180,
18,
6537,
67,
15811,
262,
262,
262,
1082,
202,
2463,
446,
31,
202,
202,
2040,
1180,
1316,
273,
261,
2040,
1180,
13,
7426,
12,
11272,
202,
202,
3823,
30556,
1278,
620,
273,
261,
3823,
30556,
13,
1316,
18,
588,
2042,
1396,
12,
9506,
202,
588,
3120,
12,
262,
16,
467,
2040,
1180,
1488,
18,
13603,
67,
1985,
67,
15811,
11272,
202,
202,
430,
261,
1278,
620,
480,
446,
262,
202,
202,
95,
1082,
202,
2463,
1278,
620,
18,
17994,
12,
11272,
202,
202,
97,
202,
202,
780,
508,
273,
4997,
1396,
12,
467,
2040,
1180,
1488,
18,
13603,
67,
1985,
67,
15811,
11272,
202,
202,
430,
261,
508,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
759,
1297,
506,
3231,
202,
202,
3120,
1605,
273,
11251,
12,
11272,
202,
202,
15478,
1046,
982,
273,
1316,
18,
291,
6466,
1046,
12,
262,
692,
1316,
9506,
202,
18,
588,
6466,
3054,
12,
262,
294,
1316,
18,
588,
19581,
1046,
12,
11272,
202,
202,
17523,
261,
982,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
982,
6862,
202,
18,
588,
2042,
1396,
12,
446,
16,
467,
2040,
1180,
1488,
18,
13603,
67,
1985,
67,
15811,
262,
480,
446,
262,
1082,
202,
95,
9506,
202,
2978,
273,
982,
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,
514,
10567,
461,
12,
262,
202,
95,
202,
202,
430,
261,
401,
15478,
10538,
2918,
18,
13603,
67,
10771,
67,
2399,
67,
3375,
22235,
9506,
202,
18,
14963,
5556,
12,
4997,
1396,
12,
3421,
1180,
18,
6537,
67,
15811,
262,
262,
262,
1082,
202,
2463,
446,
31,
202,
202,
2040,
1180,
1316,
273,
261,
2040,
1180,
13,
7426,
12,
11272,
202,
202,
3823,
30556,
1278,
620,
273,
261,
3823,
30556,
13,
1316,
18,
588,
2042,
1396,
12,
9506,
202,
588,
3120,
12,
262,
16,
467,
2040,
1180,
1488,
18,
13603,
67,
1985,
67,
15811,
11272,
202,
202,
430,
261,
1278,
620,
480,
446,
262,
202,
202,
95,
1082,
202,
2463,
1278,
620,
18,
17994,
12,
11272,
2
] |
data = new short[seq.size()]; addAll(seq); | data = S16Vector.empty; | public U16Vector(Sequence seq) { data = new short[seq.size()]; addAll(seq); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/a6832beb1c7e39094e94e80c395d319bdbacd189/U16Vector.java/buggy/gnu/lists/U16Vector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
587,
2313,
5018,
12,
4021,
3833,
13,
225,
288,
565,
501,
273,
394,
3025,
63,
5436,
18,
1467,
1435,
15533,
565,
5428,
12,
5436,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
587,
2313,
5018,
12,
4021,
3833,
13,
225,
288,
565,
501,
273,
394,
3025,
63,
5436,
18,
1467,
1435,
15533,
565,
5428,
12,
5436,
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,
-100
] |
input.close(); } | input.close(); } | protected void initMapping() throws IOException, ServletException { String value = null; // Link our mappings collection to this servlet instance mappings.setServlet(this); // Initialize the debugging detail level we will use int detail; try { value = getServletConfig().getInitParameter("detail"); detail = Integer.parseInt(value); } catch (Throwable t) { detail = 0; } // Initialize the validating XML parser flag value = getServletConfig().getInitParameter("validating"); if (value != null) { if (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("yes")) validating = true; else validating = false; } // Initialize the name of our ActionFormBean implementation class value = getServletConfig().getInitParameter("formBean"); if (value != null) formBeanClass = value; // Initialize the name of our ActionForward implementation class value = getServletConfig().getInitParameter("forward"); if (value != null) forwardClass = value; // Initialize the name of our ActionMapping implementation class value = getServletConfig().getInitParameter("mapping"); if (value != null) mappingClass = value; // Initialize the context-relative path to our configuration resources value = getServletConfig().getInitParameter("config"); if (value != null) config = value; if (debug >= 1) log(internal.getMessage("configInit", config)); // Acquire an input stream to our configuration resource InputStream input = getServletContext().getResourceAsStream(config); if (input == null) throw new UnavailableException (internal.getMessage("configMissing", config)); // Build a digester to process our configuration resource Digester digester = initDigester(detail); // Parse the input stream to configure our mappings try { formBeans.setFast(false); forwards.setFast(false); mappings.setFast(false); digester.parse(input); mappings.setFast(true); forwards.setFast(true); formBeans.setFast(true); } catch (SAXException e) { throw new ServletException (internal.getMessage("configParse", config), e); } finally { input.close(); } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/893cf1f05ff2aed2f868307f45763b5b3bc5a257/ActionServlet.java/clean/src/share/org/apache/struts/action/ActionServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
3233,
1435,
1216,
1860,
16,
16517,
288,
202,
780,
460,
273,
446,
31,
3639,
368,
4048,
3134,
7990,
1849,
358,
333,
8100,
791,
3639,
7990,
18,
542,
4745,
12,
2211,
1769,
202,
759,
9190,
326,
10450,
7664,
1801,
732,
903,
999,
202,
474,
7664,
31,
202,
698,
288,
202,
565,
460,
273,
19136,
809,
7675,
588,
2570,
1662,
2932,
8992,
8863,
202,
565,
7664,
273,
2144,
18,
2670,
1702,
12,
1132,
1769,
202,
97,
1044,
261,
15155,
268,
13,
288,
202,
565,
7664,
273,
374,
31,
202,
97,
202,
759,
9190,
326,
18075,
3167,
2082,
2982,
202,
1132,
273,
19136,
809,
7675,
588,
2570,
1662,
2932,
877,
1776,
8863,
202,
430,
261,
1132,
480,
446,
13,
288,
202,
565,
309,
261,
1132,
18,
14963,
5556,
2932,
3767,
7923,
747,
202,
3639,
460,
18,
14963,
5556,
2932,
9707,
6,
3719,
202,
3639,
18075,
273,
638,
31,
202,
565,
469,
202,
3639,
18075,
273,
629,
31,
202,
97,
3639,
368,
9190,
326,
508,
434,
3134,
4382,
1204,
3381,
4471,
667,
3639,
460,
273,
19136,
809,
7675,
588,
2570,
1662,
2932,
687,
3381,
8863,
3639,
309,
261,
1132,
480,
446,
13,
5411,
646,
3381,
797,
273,
460,
31,
202,
759,
9190,
326,
508,
434,
3134,
4382,
8514,
4471,
667,
202,
1132,
273,
19136,
809,
7675,
588,
2570,
1662,
2932,
11565,
8863,
202,
430,
261,
1132,
480,
446,
13,
202,
565,
5104,
797,
273,
460,
31,
202,
759,
9190,
326,
508,
434,
3134,
4382,
3233,
4471,
667,
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,
1208,
3233,
1435,
1216,
1860,
16,
16517,
288,
202,
780,
460,
273,
446,
31,
3639,
368,
4048,
3134,
7990,
1849,
358,
333,
8100,
791,
3639,
7990,
18,
542,
4745,
12,
2211,
1769,
202,
759,
9190,
326,
10450,
7664,
1801,
732,
903,
999,
202,
474,
7664,
31,
202,
698,
288,
202,
565,
460,
273,
19136,
809,
7675,
588,
2570,
1662,
2932,
8992,
8863,
202,
565,
7664,
273,
2144,
18,
2670,
1702,
12,
1132,
1769,
202,
97,
1044,
261,
15155,
268,
13,
288,
202,
565,
7664,
273,
374,
31,
202,
97,
202,
759,
9190,
326,
18075,
3167,
2082,
2982,
202,
1132,
273,
19136,
809,
7675,
588,
2570,
1662,
2932,
877,
1776,
8863,
202,
430,
261,
1132,
480,
446,
2
] |
(type == SOURCE ? source : skelSource), o, dbIdsStored); | (type == SOURCE ? source : skelSource), o, dbIdsStored, this, source, skelSource); | protected InterMineObject store(InterMineObject o, Source source, Source skelSource, int type) throws ObjectStoreException { if (o == null) { return null; } //String oText = o.getClass().getName() + ":" + o.getId().toString(); //int oTextLength = oText.length(); //oText = oText.substring(oTextLength > 60 ? 60 : oTextLength); //LOG.debug("store() called on " + oText); Set equivalentObjects = getEquivalentObjects(o, source); if ((equivalentObjects.size() == 1) && (type == SKELETON)) { InterMineObject onlyEquivalent = (InterMineObject) equivalentObjects.iterator().next(); if (onlyEquivalent instanceof ProxyReference) { //LOG.debug("store() finished trivially for object " + oText); return onlyEquivalent; } } Integer newId = null; // if multiple equivalent objects in database just use id of first one Iterator equivalentIter = equivalentObjects.iterator(); if (equivalentIter.hasNext()) { newId = ((InterMineObject) equivalentIter.next()).getId(); } Set classes = new HashSet(); classes.addAll(DynamicUtil.decomposeClass(o.getClass())); Iterator objIter = equivalentObjects.iterator(); while (objIter.hasNext()) { InterMineObject obj = (InterMineObject) objIter.next(); if (obj instanceof ProxyReference) { obj = ((ProxyReference) obj).getObject(); } try { classes.addAll(DynamicUtil.decomposeClass(obj.getClass())); } catch (Exception e) { LOG.error("Broken with: " + DynamicUtil.decomposeClass(o.getClass())); throw new ObjectStoreException(e); } } if (newId == null) { newId = getSerial(); } InterMineObject newObj = (InterMineObject) DynamicUtil.createObject(classes); newObj.setId(newId); if (type != FROM_DB) { assignMapping(o.getId(), newId); } Map trackingMap = new HashMap(); try { Map fieldToEquivalentObjects = new HashMap(); Map fieldDescriptors = getModel().getFieldDescriptorsForClass(newObj.getClass()); Set modelFieldNames = fieldDescriptors.keySet(); Set typeUtilFieldNames = TypeUtil.getFieldInfos(newObj.getClass()).keySet(); if (!modelFieldNames.equals(typeUtilFieldNames)) { throw new ObjectStoreException("Failed to store data not in the model"); } Iterator fieldIter = fieldDescriptors.entrySet().iterator(); while (fieldIter.hasNext()) { FieldDescriptor field = (FieldDescriptor) ((Map.Entry) fieldIter.next()).getValue(); String fieldName = field.getName(); if (!"id".equals(fieldName)) { Set sortedEquivalentObjects; // always add to collections, resolve other clashes by priority if (field instanceof CollectionDescriptor) { sortedEquivalentObjects = new HashSet(); } else { Comparator compare = new SourcePriorityComparator(dataTracker, field, (type == SOURCE ? source : skelSource), o, dbIdsStored); sortedEquivalentObjects = new TreeSet(compare); } if (getModel().getFieldDescriptorsForClass(o.getClass()) .containsKey(fieldName)) { sortedEquivalentObjects.add(o); } objIter = equivalentObjects.iterator(); while (objIter.hasNext()) { InterMineObject obj = (InterMineObject) objIter.next(); Source fieldSource = dataTracker.getSource(obj.getId(), fieldName); if ((equivalentObjects.size() == 1) && (fieldSource != null) && (fieldSource.equals(source) || (fieldSource.equals(skelSource) && (type != SOURCE)))) { if (type == SOURCE) { String errMessage; if (dbIdsStored.contains(obj.getId())) { errMessage = "There is already an equivalent " + "in the database from this source (" + source + ") from *this* run; new object from source: \"" + o + "\", object from database (read earlier in this run): \"" + obj + "\"; noticed problem while merging field \"" + field.getName() + "\" originally read from source: " + fieldSource; } else { errMessage = "There is already an equivalent " + "in the database from this source (" + source + ") from a *previous* run; " + "object from source in this run: \"" + o + "\", object from database: \"" + obj + "\"; noticed problem while merging field \"" + field.getName() + "\" originally read from source: " + fieldSource; } if (!ignoreDuplicates) { LOG.error(errMessage); throw new IllegalArgumentException(errMessage); } } //LOG.debug("store() finished simply for object " + oText); return obj; } // materialise proxies before searching for this field if (obj instanceof ProxyReference) { ProxyReference newproxy = (ProxyReference) obj; obj = ((ProxyReference) obj).getObject(); if (obj == null) { LOG.error("obj is null "); LOG.error ("o " + o); LOG.error("proxyId " + newproxy.getId()); LOG.error("proxy " + newproxy); ObjectStore os = newproxy.getObjectStore(); os.invalidateObjectById(newproxy.getId()); obj = newproxy.getObject(); LOG.error("obj: " + obj); } } try { if (getModel().getFieldDescriptorsForClass(obj.getClass()) .containsKey(fieldName)) { sortedEquivalentObjects.add(obj); } } catch (RuntimeException e) { LOG.error("fieldName " + fieldName); LOG.error ("o " + o); LOG.error("id " + obj.getId()); LOG.error("obj " + obj); LOG.error("obj.getClass() " + obj.getClass()); LOG.error("desc " + getModel().getFieldDescriptorsForClass(obj.getClass())); LOG.error("error " , e); throw e; } } fieldToEquivalentObjects.put(field, sortedEquivalentObjects); } } Iterator fieldToEquivIter = fieldToEquivalentObjects.entrySet().iterator(); while (fieldToEquivIter.hasNext()) { Source lastSource = null; Map.Entry fieldToEquivEntry = (Map.Entry) fieldToEquivIter.next(); FieldDescriptor field = (FieldDescriptor) fieldToEquivEntry.getKey(); Set sortedEquivalentObjects = (Set) fieldToEquivEntry.getValue(); String fieldName = field.getName(); objIter = sortedEquivalentObjects.iterator(); while (objIter.hasNext()) { InterMineObject obj = (InterMineObject) objIter.next(); if (obj == o) { copyField(obj, newObj, source, skelSource, field, type); lastSource = (type == SOURCE ? source : skelSource); } else { Source fieldSource = dataTracker.getSource(obj.getId(), fieldName); copyField(obj, newObj, fieldSource, fieldSource, field, FROM_DB); lastSource = fieldSource; } } trackingMap.put(fieldName, lastSource); } } catch (IllegalAccessException e) { throw new ObjectStoreException(e); } store(newObj); // We have called store() on an object, and we are about to write all of its data tracking // data. We should tell the data tracker, ONLY IF THE ID OF THE OBJECT IS NEW, so that // the data tracker can cache the writes without having to ask the db if records for that // objectid already exist - we know there aren't. if (newId == null) { dataTracker.clearObj(newObj.getId()); } Iterator trackIter = trackingMap.entrySet().iterator(); while (trackIter.hasNext()) { Map.Entry trackEntry = (Map.Entry) trackIter.next(); String fieldName = (String) trackEntry.getKey(); Source lastSource = (Source) trackEntry.getValue(); dataTracker.setSource(newObj.getId(), fieldName, lastSource); } while (equivalentIter.hasNext()) { InterMineObject objToDelete = (InterMineObject) equivalentIter.next(); delete(objToDelete); } // keep track of skeletons that are stored and remove when replaced by real object if (type == SKELETON) { skeletons.add(newObj.getId()); } else { if (skeletons.contains(newObj.getId().intValue())) { skeletons.set(newObj.getId().intValue(), false); } } //LOG.debug("store() finished normally for object " + oText); return newObj; } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/3e261bd8646cae635f31f5a30ade73ee0a001816/IntegrationWriterDataTrackingImpl.java/clean/intermine/integrate/main/src/org/intermine/dataloader/IntegrationWriterDataTrackingImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5294,
49,
558,
921,
1707,
12,
2465,
49,
558,
921,
320,
16,
4998,
1084,
16,
4998,
4343,
292,
1830,
16,
4766,
565,
509,
618,
13,
1216,
1033,
21151,
288,
3639,
309,
261,
83,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
368,
780,
320,
1528,
273,
320,
18,
588,
797,
7675,
17994,
1435,
397,
6153,
397,
320,
18,
26321,
7675,
10492,
5621,
3639,
368,
474,
320,
1528,
1782,
273,
320,
1528,
18,
2469,
5621,
3639,
368,
83,
1528,
273,
320,
1528,
18,
28023,
12,
83,
1528,
1782,
405,
4752,
692,
4752,
294,
320,
1528,
1782,
1769,
3639,
368,
4842,
18,
4148,
2932,
2233,
1435,
2566,
603,
315,
397,
320,
1528,
1769,
3639,
1000,
7680,
4710,
273,
4774,
372,
6505,
4710,
12,
83,
16,
1084,
1769,
3639,
309,
14015,
14298,
6505,
4710,
18,
1467,
1435,
422,
404,
13,
597,
261,
723,
422,
348,
6859,
15146,
673,
3719,
288,
5411,
5294,
49,
558,
921,
1338,
22606,
273,
261,
2465,
49,
558,
921,
13,
7734,
7680,
4710,
18,
9838,
7675,
4285,
5621,
5411,
309,
261,
3700,
22606,
1276,
7659,
2404,
13,
288,
7734,
368,
4842,
18,
4148,
2932,
2233,
1435,
6708,
433,
427,
6261,
364,
733,
315,
397,
320,
1528,
1769,
7734,
327,
1338,
22606,
31,
5411,
289,
3639,
289,
3639,
2144,
27598,
273,
446,
31,
3639,
368,
309,
3229,
7680,
2184,
316,
2063,
2537,
999,
612,
434,
1122,
1245,
3639,
4498,
7680,
2360,
273,
7680,
4710,
18,
9838,
5621,
3639,
309,
261,
14298,
6505,
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,
5294,
49,
558,
921,
1707,
12,
2465,
49,
558,
921,
320,
16,
4998,
1084,
16,
4998,
4343,
292,
1830,
16,
4766,
565,
509,
618,
13,
1216,
1033,
21151,
288,
3639,
309,
261,
83,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
368,
780,
320,
1528,
273,
320,
18,
588,
797,
7675,
17994,
1435,
397,
6153,
397,
320,
18,
26321,
7675,
10492,
5621,
3639,
368,
474,
320,
1528,
1782,
273,
320,
1528,
18,
2469,
5621,
3639,
368,
83,
1528,
273,
320,
1528,
18,
28023,
12,
83,
1528,
1782,
405,
4752,
692,
4752,
294,
320,
1528,
1782,
1769,
3639,
368,
4842,
18,
4148,
2932,
2233,
1435,
2566,
603,
315,
397,
320,
1528,
1769,
3639,
1000,
7680,
2
] |
new CommonToken(DOT, "."), | new CommonToken(VARSYM, "."), | public void testQualifiedVarsym() throws TokenStreamException { setInput(new CommonToken(CONSTRUCTOR_ID, "MyModule"), new CommonToken(DOT, "."), new CommonToken(VARSYM, "$$")); assertToken(QVARSYM, "MyModule.$$", fFilter.nextToken()); } | 49351 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49351/16b335c4a54fee43b7b4a98c6026604a7fd503e6/QualifiedIdentifierFilterTest.java/clean/net.sf.eclipsefp.haskell.core.jparser.test/src/net/sf/eclipsefp/haskell/core/jparser/test/QualifiedIdentifierFilterTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8708,
5555,
2942,
1435,
1216,
3155,
1228,
503,
288,
202,
202,
542,
1210,
12,
2704,
5658,
1345,
12,
26935,
916,
67,
734,
16,
315,
12062,
3120,
6,
3631,
6862,
394,
5658,
1345,
12,
17591,
16,
4585,
3631,
6862,
394,
5658,
1345,
12,
7716,
7474,
49,
16,
4662,
8,
7923,
1769,
202,
202,
11231,
1345,
12,
53,
7716,
7474,
49,
16,
315,
12062,
3120,
10806,
8,
3113,
284,
1586,
18,
4285,
1345,
10663,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8708,
5555,
2942,
1435,
1216,
3155,
1228,
503,
288,
202,
202,
542,
1210,
12,
2704,
5658,
1345,
12,
26935,
916,
67,
734,
16,
315,
12062,
3120,
6,
3631,
6862,
394,
5658,
1345,
12,
17591,
16,
4585,
3631,
6862,
394,
5658,
1345,
12,
7716,
7474,
49,
16,
4662,
8,
7923,
1769,
202,
202,
11231,
1345,
12,
53,
7716,
7474,
49,
16,
315,
12062,
3120,
10806,
8,
3113,
284,
1586,
18,
4285,
1345,
10663,
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
] |
ObjectIdentity id1 = new ObjectIdentityImpl("sample.contact.Contact", new Long(1)); ObjectIdentity id2 = new ObjectIdentityImpl("sample.contact.Contact", new Long(2)); ObjectIdentity id3 = new ObjectIdentityImpl("sample.contact.Contact", new Long(3)); ObjectIdentity id4 = new ObjectIdentityImpl("sample.contact.Contact", new Long(4)); ObjectIdentity id5 = new ObjectIdentityImpl("sample.contact.Contact", new Long(5)); ObjectIdentity id6 = new ObjectIdentityImpl("sample.contact.Contact", new Long(6)); | ObjectIdentity id1 = new ObjectIdentityImpl("java.lang.Object", new Long(1)); ObjectIdentity id2 = new ObjectIdentityImpl("java.lang.Object", new Long(2)); ObjectIdentity id3 = new ObjectIdentityImpl("java.lang.Object", new Long(3)); ObjectIdentity id4 = new ObjectIdentityImpl("java.lang.Object", new Long(4)); ObjectIdentity id5 = new ObjectIdentityImpl("java.lang.Object", new Long(5)); ObjectIdentity id6 = new ObjectIdentityImpl("java.lang.Object", new Long(6)); | public void testStub() { ObjectIdentity id1 = new ObjectIdentityImpl("sample.contact.Contact", new Long(1)); ObjectIdentity id2 = new ObjectIdentityImpl("sample.contact.Contact", new Long(2)); ObjectIdentity id3 = new ObjectIdentityImpl("sample.contact.Contact", new Long(3)); ObjectIdentity id4 = new ObjectIdentityImpl("sample.contact.Contact", new Long(4)); ObjectIdentity id5 = new ObjectIdentityImpl("sample.contact.Contact", new Long(5)); ObjectIdentity id6 = new ObjectIdentityImpl("sample.contact.Contact", new Long(6)); Map map = jdbcAclService.readAclsById(new ObjectIdentity[] {id1, id2, id3, id4, id5, id6}); Iterator iterator = map.keySet().iterator(); while (iterator.hasNext()) { ObjectIdentity identity = (ObjectIdentity) iterator.next(); assertEquals(identity, ((Acl) map.get(identity)).getObjectIdentity()); System.out.println(map.get(identity)); } } | 14678 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14678/73cea493c681bf8826b0674932f81324d80d4412/JdbcAclServiceTests.java/buggy/sandbox/src/test/java/org/acegisecurity/acls/jdbc/JdbcAclServiceTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11974,
1435,
288,
3639,
1033,
4334,
612,
21,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
21,
10019,
3639,
1033,
4334,
612,
22,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
22,
10019,
3639,
1033,
4334,
612,
23,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
23,
10019,
3639,
1033,
4334,
612,
24,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
24,
10019,
3639,
1033,
4334,
612,
25,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
25,
10019,
3639,
1033,
4334,
612,
26,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
26,
10019,
3639,
1635,
852,
273,
16579,
13538,
1179,
18,
896,
37,
6429,
5132,
12,
2704,
1033,
4334,
8526,
288,
350,
21,
16,
612,
22,
16,
612,
23,
16,
612,
24,
16,
612,
25,
16,
612,
26,
22938,
3639,
4498,
2775,
273,
852,
18,
856,
694,
7675,
9838,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
5411,
1033,
4334,
4215,
273,
261,
921,
4334,
13,
2775,
18,
4285,
5621,
5411,
1815,
8867,
12,
10781,
16,
14015,
13538,
13,
852,
18,
588,
12,
10781,
13,
2934,
588,
921,
4334,
10663,
5411,
2332,
18,
659,
18,
8222,
12,
1458,
18,
588,
12,
10781,
10019,
3639,
289,
565,
289,
2,
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,
1,
1,
1,
1,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11974,
1435,
288,
3639,
1033,
4334,
612,
21,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
21,
10019,
3639,
1033,
4334,
612,
22,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
22,
10019,
3639,
1033,
4334,
612,
23,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
23,
10019,
3639,
1033,
4334,
612,
24,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
24,
10019,
3639,
1033,
4334,
612,
25,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
25,
10019,
3639,
1033,
2
] |
this.argNames = varNames; this.argCount = 0; this.version = version; | public final void initScriptObject(int version, String[] varNames) { if (varNames == null) { throw new IllegalArgumentException(); } if (!(this.argNames == null)) { // Initialization can only be done once throw new IllegalStateException(); } this.functionName = ""; this.argNames = varNames; this.argCount = 0; this.version = version; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/993454366a57fd32ee051c61ff3a0658292d84f2/NativeFunction.java/clean/js/rhino/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1208,
3651,
921,
12,
474,
1177,
16,
514,
8526,
569,
1557,
13,
565,
288,
3639,
309,
261,
1401,
1557,
422,
446,
13,
288,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
309,
16051,
12,
2211,
18,
3175,
1557,
422,
446,
3719,
288,
5411,
368,
26586,
848,
1338,
506,
2731,
3647,
5411,
604,
394,
5477,
5621,
3639,
289,
3639,
333,
18,
915,
461,
273,
1408,
31,
3639,
333,
18,
3175,
1557,
273,
569,
1557,
31,
3639,
333,
18,
3175,
1380,
273,
374,
31,
3639,
333,
18,
1589,
273,
1177,
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,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,
921,
12,
474,
1177,
16,
514,
8526,
569,
1557,
13,
565,
288,
3639,
309,
261,
1401,
1557,
422,
446,
13,
288,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
309,
16051,
12,
2211,
18,
3175,
1557,
422,
446,
3719,
288,
5411,
368,
26586,
848,
1338,
506,
2731,
3647,
5411,
604,
394,
5477,
5621,
3639,
289,
3639,
333,
18,
915,
461,
273,
1408,
31,
3639,
333,
18,
3175,
1557,
273,
569,
1557,
31,
3639,
333,
18,
3175,
1380,
273,
374,
31,
3639,
333,
18,
1589,
273,
1177,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
Object value = TypeUtil.getFieldValue(obj, fieldName); | Object value; try { value = TypeUtil.getFieldValue(obj, fieldName); } catch (IllegalAccessException e) { throw new RuntimeException("failed to get field value for field name: " + fieldName + " in " + obj, e); } | private static Set createPKQueriesForClass(Model model, InterMineObject obj, Source source, IntToIntMap idMap, boolean queryNulls, ClassDescriptor cld) throws Exception { Set primaryKeys; if (source == null) { primaryKeys = new HashSet(PrimaryKeyUtil.getPrimaryKeys(cld).values()); } else { primaryKeys = DataLoaderHelper.getPrimaryKeys(cld, source); } Set returnSet = new LinkedHashSet(); Iterator pkSetIter = primaryKeys.iterator(); while (pkSetIter.hasNext()) { PrimaryKey pk = (PrimaryKey) pkSetIter.next(); if (!queryNulls && !objectPrimaryKeyNotNull(model, obj, cld, pk, source)) { continue; } Query query = new Query(); query.setDistinct(false); QueryClass qc = new QueryClass(cld.getType()); query.addFrom(qc); query.addToSelect(qc); ConstraintSet cs = new ConstraintSet(ConstraintOp.AND); Iterator pkIter = pk.getFieldNames().iterator(); PK: while (pkIter.hasNext()) { String fieldName = (String) pkIter.next(); FieldDescriptor fd = cld.getFieldDescriptorByName(fieldName); if (fd instanceof AttributeDescriptor) { Object value = TypeUtil.getFieldValue(obj, fieldName); if (value == null) { cs.addConstraint(new SimpleConstraint(new QueryField(qc, fieldName), ConstraintOp.IS_NULL)); } else { cs.addConstraint(new SimpleConstraint(new QueryField(qc, fieldName), ConstraintOp.EQUALS, new QueryValue(value))); } } else if (fd instanceof CollectionDescriptor) { throw new MetaDataException("A collection cannot be part of" + " a primary key"); } else if (fd instanceof ReferenceDescriptor) { InterMineObject refObj = (InterMineObject) TypeUtil.getFieldProxy(obj, fieldName); if (refObj == null) { QueryObjectReference queryObjectReference = new QueryObjectReference(qc, fieldName); cs.addConstraint(new ContainsConstraint(queryObjectReference, ConstraintOp.IS_NULL)); continue PK; } Integer destId = null; if (refObj.getId() != null) { destId = idMap.get(refObj.getId()); } if (destId == null) { if (refObj instanceof ProxyReference) { refObj = ((ProxyReference) refObj).getObject(); } Query refSubQuery = createPKQuery(model, refObj, source, idMap, queryNulls); ClassDescriptor referencedClassDescriptor = ((ReferenceDescriptor) fd).getReferencedClassDescriptor(); QueryClass qc2 = new QueryClass(referencedClassDescriptor.getType()); query.addFrom(qc2); QueryObjectReference fieldQOF = new QueryObjectReference(qc, fieldName); cs.addConstraint(new ContainsConstraint(fieldQOF, ConstraintOp.CONTAINS, qc2)); cs.addConstraint(new SubqueryConstraint(qc2, ConstraintOp.IN, refSubQuery)); } else { InterMineObject destObj = (InterMineObject) DynamicUtil.createObject(Collections.singleton(InterMineObject.class)); destObj.setId(destId); cs.addConstraint(new ContainsConstraint(new QueryObjectReference(qc, fieldName), ConstraintOp.CONTAINS, destObj)); } } } query.setConstraint(cs); returnSet.add(query); } return returnSet; } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/330b34ed302a894022fab039dbf5f2c820e912bf/DataLoaderHelper.java/buggy/intermine/integrate/main/src/org/intermine/dataloader/DataLoaderHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1000,
752,
8784,
9592,
22581,
12,
1488,
938,
16,
5294,
49,
558,
921,
1081,
16,
4998,
1084,
16,
4766,
9079,
3094,
17864,
863,
612,
863,
16,
1250,
843,
31326,
16,
4766,
9079,
26641,
23451,
13,
3639,
1216,
1185,
288,
3639,
1000,
31629,
31,
3639,
309,
261,
3168,
422,
446,
13,
288,
5411,
31629,
273,
394,
6847,
12,
11575,
1304,
18,
588,
6793,
2396,
12,
830,
72,
2934,
2372,
10663,
3639,
289,
469,
288,
5411,
31629,
273,
1910,
2886,
2276,
18,
588,
6793,
2396,
12,
830,
72,
16,
1084,
1769,
3639,
289,
3639,
1000,
327,
694,
273,
394,
19523,
5621,
3639,
4498,
2365,
694,
2360,
273,
31629,
18,
9838,
5621,
3639,
1323,
261,
5465,
694,
2360,
18,
5332,
2134,
10756,
288,
5411,
15884,
653,
2365,
273,
261,
11575,
13,
2365,
694,
2360,
18,
4285,
5621,
5411,
309,
16051,
2271,
31326,
597,
401,
1612,
11575,
5962,
12,
2284,
16,
1081,
16,
23451,
16,
2365,
16,
1084,
3719,
288,
7734,
1324,
31,
5411,
289,
5411,
2770,
843,
273,
394,
2770,
5621,
5411,
843,
18,
542,
23402,
12,
5743,
1769,
5411,
2770,
797,
29032,
273,
394,
2770,
797,
12,
830,
72,
18,
588,
559,
10663,
5411,
843,
18,
1289,
1265,
12,
30675,
1769,
5411,
843,
18,
1289,
774,
3391,
12,
30675,
1769,
5411,
10770,
694,
2873,
273,
394,
10770,
694,
12,
5806,
3817,
18,
4307,
1769,
5411,
4498,
2365,
2360,
273,
2365,
18,
588,
20393,
7675,
9838,
5621,
1850,
11327,
30,
5411,
1323,
261,
5465,
2360,
18,
5332,
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,
1000,
752,
8784,
9592,
22581,
12,
1488,
938,
16,
5294,
49,
558,
921,
1081,
16,
4998,
1084,
16,
4766,
9079,
3094,
17864,
863,
612,
863,
16,
1250,
843,
31326,
16,
4766,
9079,
26641,
23451,
13,
3639,
1216,
1185,
288,
3639,
1000,
31629,
31,
3639,
309,
261,
3168,
422,
446,
13,
288,
5411,
31629,
273,
394,
6847,
12,
11575,
1304,
18,
588,
6793,
2396,
12,
830,
72,
2934,
2372,
10663,
3639,
289,
469,
288,
5411,
31629,
273,
1910,
2886,
2276,
18,
588,
6793,
2396,
12,
830,
72,
16,
1084,
1769,
3639,
289,
3639,
1000,
327,
694,
273,
394,
19523,
5621,
3639,
4498,
2365,
694,
2360,
273,
31629,
18,
9838,
5621,
3639,
1323,
261,
5465,
694,
2360,
18,
2
] |
jjmatchedKind = 52; | jjmatchedKind = 55; | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; return 33; } if ((active0 & 0x10000000L) != 0L) return 31; if ((active0 & 0xd000L) != 0L) return 7; return -1; case 1: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 33; } if ((active0 & 0x4000L) != 0L) return 5; return -1; case 2: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 33; } return -1; case 3: if ((active0 & 0x4000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 33; } if ((active0 & 0x2000000L) != 0L) return 33; return -1; default : return -1; }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
20,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
26,
9449,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
21483,
31,
5411,
327,
13159,
31,
540,
289,
540,
309,
14015,
3535,
20,
473,
374,
92,
21,
17877,
48,
13,
480,
374,
48,
13,
5411,
327,
8231,
31,
540,
309,
14015,
3535,
20,
473,
374,
7669,
3784,
48,
13,
480,
374,
48,
13,
5411,
327,
2371,
31,
540,
327,
300,
21,
31,
1377,
648,
404,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
26,
9449,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
21483,
31,
5411,
10684,
11073,
1616,
273,
404,
31,
5411,
327,
13159,
31,
540,
289,
540,
309,
14015,
3535,
20,
473,
374,
92,
24,
3784,
48,
13,
480,
374,
48,
13,
5411,
327,
1381,
31,
540,
327,
300,
21,
31,
1377,
648,
576,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
26,
9449,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
21483,
31,
5411,
10684,
11073,
1616,
273,
576,
31,
5411,
327,
13159,
31,
540,
289,
540,
327,
300,
21,
31,
1377,
648,
890,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
24,
9449,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
21483,
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,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
20,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
26,
9449,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
21483,
31,
5411,
327,
13159,
31,
540,
289,
540,
309,
14015,
3535,
20,
473,
374,
92,
21,
17877,
48,
13,
480,
374,
48,
13,
5411,
327,
8231,
31,
540,
309,
14015,
3535,
20,
473,
374,
7669,
3784,
48,
13,
480,
374,
48,
13,
5411,
327,
2371,
31,
540,
327,
300,
21,
31,
1377,
648,
404,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
26,
9449,
48,
2
] |
public BugzillaCustomQueryWizardPage(TaskRepository repository) { super(TITLE); | public BugzillaCustomQueryWizardPage(TaskRepository repository, BugzillaRepositoryQuery query) { super(TITLE, query.getSummary()); this.query = query; | public BugzillaCustomQueryWizardPage(TaskRepository repository) { super(TITLE); this.repository = repository; setTitle(LABEL_CUSTOM_QUERY);// setDescription(DESCRIPTION); setImageDescriptor(TaskListImages.BANNER_REPOSITORY); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8db6c4ac0db47f2ccb42048cf959072b118e99c1/BugzillaCustomQueryWizardPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaCustomQueryWizardPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
15990,
3802,
1138,
27130,
1964,
12,
2174,
3305,
3352,
13,
288,
202,
202,
9565,
12,
14123,
1769,
202,
202,
2211,
18,
9071,
273,
3352,
31,
202,
202,
542,
4247,
12,
13545,
67,
15136,
67,
10753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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
15990,
3802,
1138,
27130,
1964,
12,
2174,
3305,
3352,
13,
288,
202,
202,
9565,
12,
14123,
1769,
202,
202,
2211,
18,
9071,
273,
3352,
31,
202,
202,
542,
4247,
12,
13545,
67,
15136,
67,
10753,
1769,
759,
202,
202,
542,
3291,
12,
15911,
1769,
202,
202,
542,
2040,
3187,
12,
2174,
682,
8946,
18,
38,
11489,
654,
67,
862,
30986,
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
] |
long totalFilled=-1; | long total_filled=-1; | public long parseNext() throws IOException { long totalFilled=-1; if (_buffer==null) { _buffer=_buffers.getBuffer(Ajp13Packet.MAX_PACKET_SIZE); _ajpRequestPacket.setBuffer(_buffer); } if (_state==STATE_END) throw new IllegalStateException("STATE_END"); int length=_buffer.length(); if (length==0) { int filled=-1; if (_buffer.markIndex()==0&&_buffer.putIndex()==_buffer.capacity()) throw new IOException("FULL"); if (_endp!=null&&filled<=0) { if (_buffer.space()==0) throw new IOException("FULL"); try { if (totalFilled<0) totalFilled=0; filled=_endp.fill(_buffer); if (filled>0) totalFilled+=filled; } catch (IOException ioe) { Log.debug(ioe); reset(true); throw (ioe instanceof EofException)?ioe:new EofException(ioe); } } if (filled<0) { if (_state==STATE_EOF_CONTENT) { _state=STATE_END; return totalFilled; } else { reset(true); throw new EofException(); } } length=_buffer.length(); } // Parse Header while (_state<STATE_END&&length-->0) { _ajpRequestPacket.next(); switch (_state) { case STATE_START: if (_ajpRequestPacket.parsedInt()) { int _magic=_ajpRequestPacket.getInt(); if (_magic!=Ajp13RequestHeaders.MAGIC) { throw new IOException("Bad AJP13 rcv packet: "+"0x"+Integer.toHexString(_magic)+" expected "+"0x" +Integer.toHexString(Ajp13RequestHeaders.MAGIC)+" "+this); } _state=STATE_PACKET_LENGTH; } break; case STATE_PACKET_LENGTH: if (_ajpRequestPacket.parsedInt()) { int packetLength=_ajpRequestPacket.getInt(); if (packetLength>Ajp13Packet.MAX_PACKET_SIZE) throw new IOException("AJP13 packet ("+packetLength+"bytes) too large for buffer"); _state=STATE_PACKET_TYPE; } break; case STATE_PACKET_TYPE: byte packetType=_ajpRequestPacket.getByte(); switch (packetType) { case Ajp13Packet.FORWARD_REQUEST_ORDINAL: _handler.startForwardRequest(); _state=STATE_REQUEST_METHOD; break; case Ajp13Packet.SHUTDOWN_ORDINAL: // Log.warn("AJP13 SHUTDOWN not supported!"); // break; case Ajp13Packet.CPING_REQUEST_ORDINAL: // handler.cpingRequest(); // break; default: // XXX Throw an Exception here?? Close connection! Log.warn("AJP13 message type ({}) not supported/regonised as a "+"container request",Integer.toString(packetType)); } break; case STATE_REQUEST_METHOD: _handler.parsedMethod(_ajpRequestPacket.getMethod()); _state=STATE_REQUEST_PROTOCOL; break; case STATE_REQUEST_PROTOCOL: if (_ajpRequestPacket.parsedString()) { _handler.parsedProtocol(_ajpRequestPacket.getString()); _state=STATE_REQUEST_URI; } break; case STATE_REQUEST_URI: if (_ajpRequestPacket.parsedString()) { _handler.parsedUri(_ajpRequestPacket.getString()); _state=STATE_REQUEST_REMOTE_ADDR; } break; case STATE_REQUEST_REMOTE_ADDR: if (_ajpRequestPacket.parsedString()) { _handler.parsedRemoteAddr(_ajpRequestPacket.getString()); _state=STATE_REQUEST_REMOTE_HOST; } break; case STATE_REQUEST_REMOTE_HOST: if (_ajpRequestPacket.parsedString()) { _handler.parsedRemoteHost(_ajpRequestPacket.getString()); _state=STATE_REQUEST_SERVER_NAME; } break; case STATE_REQUEST_SERVER_NAME: if (_ajpRequestPacket.parsedString()) { _handler.parsedServerName(_ajpRequestPacket.getString()); _state=STATE_REQUEST_SERVER_PORT; } break; case STATE_REQUEST_SERVER_PORT: if (_ajpRequestPacket.parsedInt()) { _handler.parsedServerPort(_ajpRequestPacket.getInt()); _state=STATE_REQUEST_SSL_SECURE; } break; case STATE_REQUEST_SSL_SECURE: _handler.parsedSslSecure(_ajpRequestPacket.getBool()); _state=STATE_REQUEST_HEADERS; break; case STATE_REQUEST_HEADERS: if (_ajpRequestPacket.parsedHeaderCount()) { _state=_ajpRequestPacket.parsedHeaders()?STATE_REQUEST_ATTR:STATE_REQUEST_HEADER_NAME; } break; case STATE_REQUEST_HEADER_NAME: if (_ajpRequestPacket.parsedHeaderName()) { _state=STATE_REQUEST_HEADER_VALUE; } break; case STATE_REQUEST_HEADER_VALUE: if (_ajpRequestPacket.parsedString()) { _handler.parsedHeader(_ajpRequestPacket.getHeaderName(),_ajpRequestPacket.getString()); _state=_ajpRequestPacket.parsedHeaders()?STATE_REQUEST_ATTR:STATE_REQUEST_HEADER_NAME; } break; case STATE_REQUEST_ATTR: if ((0xFF&_ajpRequestPacket.parsedAttributeType())!=0xFF) { _state=STATE_REQUEST_ATTR_VALUE; } else { _state=STATE_END; } break; case STATE_REQUEST_ATTR_VALUE: if (_ajpRequestPacket.parsedString()) { _state=STATE_REQUEST_ATTR; switch (_ajpRequestPacket.getAttributeType()) { // XXX How does this plug into the web containers // authentication? case Ajp13RequestHeaders.REMOTE_USER_ATTR: case Ajp13RequestHeaders.AUTH_TYPE_ATTR: break; case Ajp13RequestHeaders.QUERY_STRING_ATTR: _handler.parsedQueryString(_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.JVM_ROUTE_ATTR: // XXX Using old Jetty 5 key, should change! // Note used in // org.mortbay.jetty.servlet.HashSessionIdManager _handler.parsedRequestAttribute("org.mortbay.http.ajp.JVMRoute",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.SSL_CERT_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.cipher_suite",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.SSL_CIPHER_ATTR: // XXX Implement! Investigate // SslSocketConnector.customize() break; case Ajp13RequestHeaders.SSL_SESSION_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.ssl_session",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.REQUEST_ATTR: _state=STATE_REQUEST_ATTR_VALUE2; break; // New Jk API? // Check if experimental or can they assumed to be // supported case Ajp13RequestHeaders.SSL_KEYSIZE_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.key_size",_ajpRequestPacket.getString()); break; // Used to lock down jk requests with a secreate // key. case Ajp13RequestHeaders.SECRET_ATTR: // XXX Investigate safest way to deal with // this... // should this tie into shutdown packet? break; case Ajp13RequestHeaders.STORED_METHOD_ATTR: // XXX Confirm this should really overide // previously parsed method? // _handler.parsedMethod(Ajp13PacketMethods.CACHE.get(_ajpRequestPacket.getString())); break; // Legacy codes, simply ignore case Ajp13RequestHeaders.CONTEXT_ATTR: case Ajp13RequestHeaders.SERVLET_PATH_ATTR: default: Log.warn("Unsupported Ajp13 Request Attribute {}:{}",new Byte(_ajpRequestPacket.getAttributeType()),_ajpRequestPacket .getString()); break; } _state=STATE_REQUEST_ATTR; } break; case STATE_REQUEST_ATTR_VALUE2: if (_ajpRequestPacket.parsedString()) { _handler.parsedRequestAttribute(_ajpRequestPacket.getAttributeKey(),_ajpRequestPacket.getString()); _state=STATE_REQUEST_ATTR; } break; default: throw new IllegalStateException("State not regonised {"+_state+"}"); } } // ajp header is complete handle the request here _handler.headerComplete(); return totalFilled; } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/ef0eae17f348a3019d9cbbfe54c2e634788026d3/Ajp13Parser.java/buggy/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
1109,
2134,
1435,
1216,
1860,
565,
288,
1850,
1525,
2078,
67,
13968,
29711,
21,
31,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
4106,
33,
67,
28101,
18,
588,
1892,
12,
37,
21797,
3437,
6667,
18,
6694,
67,
12231,
1584,
67,
4574,
1769,
5411,
389,
4365,
84,
691,
6667,
18,
542,
1892,
24899,
4106,
1769,
3639,
289,
3639,
309,
261,
67,
2019,
631,
7998,
67,
4415,
13,
5411,
604,
394,
5477,
2932,
7998,
67,
4415,
8863,
3639,
509,
769,
33,
67,
4106,
18,
2469,
5621,
3639,
309,
261,
2469,
631,
20,
13,
3639,
288,
5411,
509,
6300,
29711,
21,
31,
5411,
309,
261,
67,
4106,
18,
3355,
1016,
1435,
631,
20,
10,
10,
67,
4106,
18,
458,
1016,
1435,
631,
67,
4106,
18,
16017,
10756,
7734,
604,
394,
1860,
2932,
18111,
8863,
5411,
309,
261,
67,
409,
84,
5,
33,
2011,
10,
10,
13968,
32,
33,
20,
13,
5411,
288,
7734,
309,
261,
67,
4106,
18,
2981,
1435,
631,
20,
13,
10792,
604,
394,
1860,
2932,
18111,
8863,
7734,
775,
7734,
288,
10792,
309,
261,
4963,
29754,
32,
20,
13,
13491,
2078,
29754,
33,
20,
31,
10792,
6300,
33,
67,
409,
84,
18,
5935,
24899,
4106,
1769,
10792,
309,
261,
13968,
34,
20,
13,
13491,
2078,
29754,
15,
33,
13968,
31,
7734,
289,
7734,
1044,
261,
14106,
10847,
13,
7734,
288,
10792,
1827,
18,
4148,
12,
1594,
73,
1769,
10792,
2715,
12,
3767,
1769,
10792,
604,
261,
1594,
73,
1276,
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,
1525,
1109,
2134,
1435,
1216,
1860,
565,
288,
1850,
1525,
2078,
67,
13968,
29711,
21,
31,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
4106,
33,
67,
28101,
18,
588,
1892,
12,
37,
21797,
3437,
6667,
18,
6694,
67,
12231,
1584,
67,
4574,
1769,
5411,
389,
4365,
84,
691,
6667,
18,
542,
1892,
24899,
4106,
1769,
3639,
289,
3639,
309,
261,
67,
2019,
631,
7998,
67,
4415,
13,
5411,
604,
394,
5477,
2932,
7998,
67,
4415,
8863,
3639,
509,
769,
33,
67,
4106,
18,
2469,
5621,
3639,
309,
261,
2469,
631,
20,
13,
3639,
288,
5411,
509,
6300,
29711,
21,
31,
5411,
309,
261,
67,
4106,
18,
3355,
1016,
1435,
631,
20,
10,
2
] |
0, true, false, new HashMap(maxSize)); | 0, true, false, new HashMap(maxSize)); | public Cache(Activator activator, int maxSize) { this(activator, maxSize, 0, // No timeout. true, // Allow parallel activation. false, // Don't keep statistics. new HashMap(maxSize)); // Default map. } | 49595 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49595/744e6f1fd9163558f45e31fae36b84f4de2ef01b/Cache.java/buggy/yajul-main/src/java/org/yajul/util/Cache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4379,
12,
12241,
639,
5981,
639,
16,
509,
14777,
13,
565,
288,
3639,
333,
12,
11422,
639,
16,
14777,
16,
5411,
374,
16,
1850,
368,
2631,
2021,
18,
5411,
638,
16,
4202,
368,
7852,
7230,
10027,
18,
5411,
629,
16,
1377,
368,
7615,
1404,
3455,
7691,
18,
5411,
394,
4317,
12,
1896,
1225,
10019,
368,
2989,
852,
18,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4379,
12,
12241,
639,
5981,
639,
16,
509,
14777,
13,
565,
288,
3639,
333,
12,
11422,
639,
16,
14777,
16,
5411,
374,
16,
1850,
368,
2631,
2021,
18,
5411,
638,
16,
4202,
368,
7852,
7230,
10027,
18,
5411,
629,
16,
1377,
368,
7615,
1404,
3455,
7691,
18,
5411,
394,
4317,
12,
1896,
1225,
10019,
368,
2989,
852,
18,
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
] |
execute(globalJexlContext, jxpathContext, startEvent, null); | execute(consumer, globalJexlContext, jxpathContext, startEvent, null); | public void generate() throws IOException, SAXException, ProcessingException { StartDocument startEvent; synchronized (cache) { startEvent = (StartDocument)cache.get(inputSource.getURI()); } if (startEvent == null) { long compileTime = inputSource.getLastModified(); Parser parser = new Parser(); this.resolver.toSAX(this.inputSource, parser); startEvent = parser.getStartEvent(); startEvent.compileTime = compileTime; synchronized (cache) { cache.put(inputSource.getURI(), startEvent); } } execute(globalJexlContext, jxpathContext, startEvent, null); } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/f7ccf478916847f02d71f5dd8fd34b5b9a9995f8/JexlTemplate.java/buggy/src/scratchpad/src/org/apache/cocoon/generation/JexlTemplate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
1435,
540,
1216,
1860,
16,
14366,
16,
19652,
503,
288,
3639,
3603,
2519,
787,
1133,
31,
3639,
3852,
261,
2493,
13,
288,
5411,
787,
1133,
273,
261,
1685,
2519,
13,
2493,
18,
588,
12,
2630,
1830,
18,
588,
3098,
10663,
3639,
289,
3639,
309,
261,
1937,
1133,
422,
446,
13,
288,
5411,
1525,
4074,
950,
273,
810,
1830,
18,
588,
14747,
5621,
5411,
6783,
2082,
273,
394,
6783,
5621,
5411,
333,
18,
14122,
18,
869,
55,
2501,
12,
2211,
18,
2630,
1830,
16,
2082,
1769,
5411,
787,
1133,
273,
2082,
18,
588,
1685,
1133,
5621,
5411,
787,
1133,
18,
11100,
950,
273,
4074,
950,
31,
5411,
3852,
261,
2493,
13,
288,
7734,
1247,
18,
458,
12,
2630,
1830,
18,
588,
3098,
9334,
787,
1133,
1769,
5411,
289,
3639,
289,
3639,
1836,
12,
13230,
16,
2552,
46,
338,
80,
1042,
16,
525,
18644,
1042,
16,
787,
1133,
16,
446,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
1435,
540,
1216,
1860,
16,
14366,
16,
19652,
503,
288,
3639,
3603,
2519,
787,
1133,
31,
3639,
3852,
261,
2493,
13,
288,
5411,
787,
1133,
273,
261,
1685,
2519,
13,
2493,
18,
588,
12,
2630,
1830,
18,
588,
3098,
10663,
3639,
289,
3639,
309,
261,
1937,
1133,
422,
446,
13,
288,
5411,
1525,
4074,
950,
273,
810,
1830,
18,
588,
14747,
5621,
5411,
6783,
2082,
273,
394,
6783,
5621,
5411,
333,
18,
14122,
18,
869,
55,
2501,
12,
2211,
18,
2630,
1830,
16,
2082,
1769,
5411,
787,
1133,
273,
2082,
18,
588,
1685,
1133,
5621,
5411,
787,
1133,
18,
11100,
950,
273,
4074,
950,
31,
5411,
3852,
261,
2493,
13,
288,
7734,
1247,
18,
458,
2
] |
getFolderInfo().openFolder(Folder.READ_WRITE); loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); | if (getFolderInfo().shouldBeOpen()) { getFolderInfo().openFolder(Folder.READ_WRITE); loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); } else { throw fce; } | public String getHtmlAndTextInlines(String attachmentSeparator, boolean withHeaders, boolean showFullHeaders, int maxLength, String truncationMessage) throws MessagingException { try { if (!hasLoadedAttachments()) loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); } catch (FolderClosedException fce) { try { getFolderInfo().openFolder(Folder.READ_WRITE); loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); } catch (java.io.IOException ioe) { throw new MessagingException(ioe.getMessage()); } } catch (java.io.IOException ioe) { throw new MessagingException(ioe.getMessage()); } } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/5331a3dcfcd1ce0412ff5fe42ddbc6347174f46a/MessageInfo.java/clean/net/suberic/pooka/MessageInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
19633,
1876,
1528,
382,
3548,
12,
780,
6042,
6581,
16,
1250,
598,
3121,
16,
1250,
2405,
5080,
3121,
16,
509,
13642,
16,
514,
31507,
1079,
13,
1216,
23794,
503,
288,
202,
698,
288,
202,
565,
309,
16051,
5332,
8835,
12961,
10756,
3196,
202,
945,
6803,
966,
5621,
202,
565,
327,
10065,
18,
588,
4353,
1876,
1528,
382,
3548,
12,
11461,
6581,
16,
598,
3121,
16,
2405,
5080,
3121,
16,
13642,
16,
31507,
1079,
1769,
202,
97,
1044,
261,
3899,
7395,
503,
284,
311,
13,
288,
202,
565,
775,
288,
202,
202,
588,
3899,
966,
7675,
3190,
3899,
12,
3899,
18,
6949,
67,
11677,
1769,
202,
202,
945,
6803,
966,
5621,
202,
202,
2463,
10065,
18,
588,
4353,
1876,
1528,
382,
3548,
12,
11461,
6581,
16,
598,
3121,
16,
2405,
5080,
3121,
16,
13642,
16,
31507,
1079,
1769,
202,
565,
289,
1044,
261,
6290,
18,
1594,
18,
14106,
10847,
13,
288,
202,
202,
12849,
394,
23794,
503,
12,
1594,
73,
18,
24906,
10663,
3196,
565,
289,
202,
97,
1044,
261,
6290,
18,
1594,
18,
14106,
10847,
13,
288,
202,
565,
604,
394,
23794,
503,
12,
1594,
73,
18,
24906,
10663,
225,
202,
97,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
19633,
1876,
1528,
382,
3548,
12,
780,
6042,
6581,
16,
1250,
598,
3121,
16,
1250,
2405,
5080,
3121,
16,
509,
13642,
16,
514,
31507,
1079,
13,
1216,
23794,
503,
288,
202,
698,
288,
202,
565,
309,
16051,
5332,
8835,
12961,
10756,
3196,
202,
945,
6803,
966,
5621,
202,
565,
327,
10065,
18,
588,
4353,
1876,
1528,
382,
3548,
12,
11461,
6581,
16,
598,
3121,
16,
2405,
5080,
3121,
16,
13642,
16,
31507,
1079,
1769,
202,
97,
1044,
261,
3899,
7395,
503,
284,
311,
13,
288,
202,
565,
775,
288,
202,
202,
588,
3899,
966,
7675,
3190,
3899,
12,
3899,
18,
6949,
67,
11677,
1769,
202,
202,
945,
6803,
966,
5621,
202,
202,
2463,
10065,
18,
588,
2
] |
Attribute a = new Attribute(tag.getAttribute("name")); a.setParameterName(tag.getAttribute("name")); a.setValue(tag.getAttribute("value")); | Attribute a = new Attribute(tag.getAttribute(KEY_NAME)); a.setParameterName(tag.getAttribute(KEY_NAME)); a.setValue(tag.getAttribute(KEY_VALUE)); | public static BugReport parseBug(Reader in, int id, String serverUrl, boolean is218, String userName, String password, String contentType) throws IOException, ParseException, LoginException { // create a new bug report and set the parser state to the start state BugReport bug = new BugReport(id, serverUrl); boolean contentTypeResolved = false; if (contentType != null) { String charsetFromContentType = getCharsetFromString(contentType); if (charsetFromContentType != null) { bug.setCharset(charsetFromContentType); contentTypeResolved = true; } } ParserState state = ParserState.START; Comment comment = null; String attribute = null; HtmlStreamTokenizer tokenizer = new HtmlStreamTokenizer(in, null); boolean isTitle = false; boolean possibleBadLogin = false; boolean checkBody = false; String title = ""; StringBuffer body = new StringBuffer(); for (Token token = tokenizer.nextToken(); token.getType() != Token.EOF; token = tokenizer.nextToken()) { // get the charset from the HTML if not specified if (!contentTypeResolved) { if (token.getType() == Token.TAG && ((HtmlTag) (token.getValue())).getTagType() == HtmlTag.Type.META && !((HtmlTag) (token.getValue())).isEndTag()) { String charsetFromHtml = getCharsetFromString(token.toString()); if (charsetFromHtml != null) bug.setCharset(charsetFromHtml); } } // make sure that bugzilla doesn't want us to login if (token.getType() == Token.TAG && ((HtmlTag) (token.getValue())).getTagType() == HtmlTag.Type.TITLE && !((HtmlTag) (token.getValue())).isEndTag()) { isTitle = true; continue; } if (isTitle) { // get all of the data in the title tag if (token.getType() != Token.TAG) { title += ((StringBuffer) token.getValue()).toString().toLowerCase() + " "; continue; } else if (token.getType() == Token.TAG && ((HtmlTag) token.getValue()).getTagType() == HtmlTag.Type.TITLE && ((HtmlTag) token.getValue()).isEndTag()) { // check and see if the title seems as though we have wrong // login info if (title.indexOf("login") != -1 || (title.indexOf("invalid") != -1 && title.indexOf("password") != -1) || title.indexOf("check e-mail") != -1) possibleBadLogin = true; // we possibly have a bad // login // if the title starts with error, we may have a login // problem, or // there is a problem with the bug (doesn't exist), so we // must do // some more checks if (title.startsWith("error")) checkBody = true; isTitle = false; title = ""; } continue; } // if we have to add all of the text so that we can check it later // for problems with the username and password if (checkBody && token.getType() == Token.TEXT) { body.append((StringBuffer) token.getValue()); body.append(" "); } // we have found the start of an attribute name if ((state == ParserState.ATT_NAME || state == ParserState.START) && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.TD && "right".equalsIgnoreCase(tag.getAttribute("align"))) { // parse the attribute's name attribute = parseAttributeName(tokenizer); if (attribute.toLowerCase().startsWith("opened")) { // find the colon so we can get the date int index = attribute.toLowerCase().indexOf(":"); String date; if (index != -1) date = attribute.substring(index + 1).trim(); else date = attribute.substring(6).trim(); // set the bugs opened date to be the date we parsed bug.setCreated(df.parse(date)); state = ParserState.ATT_NAME; continue; } // in 2.18, the last modified looks like the opened so we // need to parse it differently if (attribute.toLowerCase().startsWith("last modified") && is218) { // find the colon so we can get the date int index = attribute.toLowerCase().indexOf(":"); String date; if (index != -1) date = attribute.substring(index + 1).trim(); else date = attribute.substring(6).trim(); // create a new attribute and set the date Attribute t = new Attribute("Last Modified"); t.setValue(date); // add the attribute to the bug report bug.addAttribute(t); state = ParserState.ATT_NAME; continue; } state = ParserState.ATT_VALUE; continue; } else if (tag.getTagType() == HtmlTag.Type.INPUT && "radio".equalsIgnoreCase(tag.getAttribute("type")) && "knob".equalsIgnoreCase(tag.getAttribute("name"))) { // we found a radio button parseOperations(bug, tokenizer, tag, is218); } } // we have found the start of attribute values if (state == ParserState.ATT_VALUE && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.TD) { // parse the attribute values parseAttributeValue(bug, attribute, tokenizer, serverUrl, userName, password); state = ParserState.ATT_NAME; attribute = null; continue; } } // we have found the start of a comment if (state == ParserState.DESC_START && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.I) { // parse the comment's start comment = parseCommentHead(bug, tokenizer); state = ParserState.DESC_VALUE; continue; } } // we have found the start of the comment text if (state == ParserState.DESC_VALUE && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.PRE) { // parse the text of the comment parseCommentText(bug, comment, tokenizer); comment = null; state = ParserState.DESC_START; continue; } } // we have found the description of the bug if ((state == ParserState.ATT_NAME || state == ParserState.START) && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.PRE) { // parse the description for the bug parseDescription(bug, tokenizer); state = ParserState.DESC_START; continue; } } // parse hidden fields if ((state == ParserState.ATT_NAME || state == ParserState.START) && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.INPUT && tag.getAttribute("type") != null && "hidden".equalsIgnoreCase(tag.getAttribute("type").trim())) { Attribute a = new Attribute(tag.getAttribute("name")); a.setParameterName(tag.getAttribute("name")); a.setValue(tag.getAttribute("value")); a.setHidden(true); bug.addAttribute(a); continue; } } } // if we are to check the body, make sure that there wasn't a bad login if (checkBody) { String b = body.toString(); if (b.indexOf("login") != -1 || ((b.indexOf("invalid") != -1 || b.indexOf("not valid") != -1) && b.indexOf("password") != -1) || b.indexOf("check e-mail") != -1) possibleBadLogin = true; // we possibly have a bad login } // if there is no summary or created date, we expect that // the bug doesn't exist, so set it to null // if the bug seems like it doesn't exist, and we suspect a login // problem, assume that there was a login problem if (bug.getCreated() == null && bug.getAttributes().isEmpty()) { if (possibleBadLogin) { throw new LoginException(IBugzillaConstants.MESSAGE_LOGIN_FAILURE); } else { return null; } } // we are done...return the bug return bug; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/9e7f17d71e31690594ddd776f01afc2f68b73bc9/BugParser.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/internal/BugParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
16907,
4820,
1109,
19865,
12,
2514,
316,
16,
509,
612,
16,
514,
1438,
1489,
16,
1250,
353,
22,
2643,
16,
514,
12065,
16,
1082,
202,
780,
2201,
16,
514,
5064,
13,
1216,
1860,
16,
10616,
16,
11744,
503,
288,
202,
202,
759,
752,
279,
394,
7934,
2605,
471,
444,
326,
2082,
919,
358,
326,
787,
919,
202,
202,
19865,
4820,
7934,
273,
394,
16907,
4820,
12,
350,
16,
1438,
1489,
1769,
202,
202,
6494,
5064,
12793,
273,
629,
31,
202,
202,
430,
261,
22194,
480,
446,
13,
288,
1082,
202,
780,
4856,
1265,
8046,
273,
30428,
9193,
12,
22194,
1769,
1082,
202,
430,
261,
9999,
1265,
8046,
480,
446,
13,
288,
9506,
202,
925,
18,
542,
9652,
12,
9999,
1265,
8046,
1769,
9506,
202,
22194,
12793,
273,
638,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2678,
1119,
919,
273,
6783,
1119,
18,
7570,
31,
202,
202,
4469,
2879,
273,
446,
31,
202,
202,
780,
1566,
273,
446,
31,
202,
202,
4353,
1228,
10524,
10123,
273,
394,
5430,
1228,
10524,
12,
267,
16,
446,
1769,
202,
202,
6494,
353,
4247,
273,
629,
31,
202,
202,
6494,
3323,
6434,
5358,
273,
629,
31,
202,
202,
6494,
866,
2250,
273,
629,
31,
202,
202,
780,
2077,
273,
1408,
31,
202,
202,
780,
1892,
1417,
273,
394,
6674,
5621,
202,
202,
1884,
261,
1345,
1147,
273,
10123,
18,
4285,
1345,
5621,
1147,
18,
588,
559,
1435,
480,
3155,
18,
12706,
31,
1147,
273,
10123,
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,
760,
16907,
4820,
1109,
19865,
12,
2514,
316,
16,
509,
612,
16,
514,
1438,
1489,
16,
1250,
353,
22,
2643,
16,
514,
12065,
16,
1082,
202,
780,
2201,
16,
514,
5064,
13,
1216,
1860,
16,
10616,
16,
11744,
503,
288,
202,
202,
759,
752,
279,
394,
7934,
2605,
471,
444,
326,
2082,
919,
358,
326,
787,
919,
202,
202,
19865,
4820,
7934,
273,
394,
16907,
4820,
12,
350,
16,
1438,
1489,
1769,
202,
202,
6494,
5064,
12793,
273,
629,
31,
202,
202,
430,
261,
22194,
480,
446,
13,
288,
1082,
202,
780,
4856,
1265,
8046,
273,
30428,
9193,
12,
22194,
1769,
1082,
202,
430,
261,
9999,
1265,
8046,
480,
446,
13,
288,
9506,
202,
925,
18,
2
] |
WorkbenchPlugin.getDefault().savePluginPreferences(); | finally { saving = false; } | protected void saveEnabledStates() { IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); IWorkbenchActivitySupport support = PlatformUI.getWorkbench() .getActivitySupport(); IActivityManager activityManager = support.getActivityManager(); Iterator values = activityManager.getDefinedActivityIds().iterator(); while (values.hasNext()) { IActivity activity = activityManager.getActivity((String) values .next()); store.setValue(createPreferenceKey(activity.getId()), activity .isEnabled()); } WorkbenchPlugin.getDefault().savePluginPreferences(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5a71b78fe812d8fe9b96f07d70a137fd3193cb89/ActivityPersistanceHelper.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActivityPersistanceHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1923,
1526,
7629,
1435,
288,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
9624,
2257,
5621,
3639,
467,
2421,
22144,
6193,
6289,
2865,
273,
11810,
5370,
18,
588,
2421,
22144,
1435,
7734,
263,
588,
6193,
6289,
5621,
3639,
467,
6193,
1318,
5728,
1318,
273,
2865,
18,
588,
6193,
1318,
5621,
3639,
4498,
924,
273,
5728,
1318,
18,
588,
8116,
6193,
2673,
7675,
9838,
5621,
3639,
1323,
261,
2372,
18,
5332,
2134,
10756,
288,
5411,
467,
6193,
5728,
273,
5728,
1318,
18,
588,
6193,
12443,
780,
13,
924,
10792,
263,
4285,
10663,
5411,
1707,
18,
542,
620,
12,
2640,
9624,
653,
12,
9653,
18,
26321,
1435,
3631,
5728,
10792,
263,
291,
1526,
10663,
3639,
289,
3639,
3095,
288,
12392,
273,
629,
31,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1923,
1526,
7629,
1435,
288,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
9624,
2257,
5621,
3639,
467,
2421,
22144,
6193,
6289,
2865,
273,
11810,
5370,
18,
588,
2421,
22144,
1435,
7734,
263,
588,
6193,
6289,
5621,
3639,
467,
6193,
1318,
5728,
1318,
273,
2865,
18,
588,
6193,
1318,
5621,
3639,
4498,
924,
273,
5728,
1318,
18,
588,
8116,
6193,
2673,
7675,
9838,
5621,
3639,
1323,
261,
2372,
18,
5332,
2134,
10756,
288,
5411,
467,
6193,
5728,
273,
5728,
1318,
18,
588,
6193,
12443,
780,
13,
924,
10792,
263,
4285,
10663,
5411,
1707,
18,
542,
620,
12,
2640,
9624,
653,
12,
9653,
18,
26321,
1435,
3631,
5728,
10792,
2
] |
return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.0" ), new String[] { fileName, expression, getConditionText() } ); | format = BreakpointMessages.getString( "CWatchpoint.0" ); | protected String getMarkerMessage() throws CoreException { String fileName = ensureMarker().getResource().getName(); if ( fileName != null && fileName.length() > 0 ) { fileName = ' ' + fileName + ' '; } String expression = getExpression(); if ( expression != null && expression.length() > 0 ) { expression = " '" + expression + "' "; //$NON-NLS-1$ //$NON-NLS-2$ } if ( isWriteType() && !isReadType() ) return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.0" ), new String[] { fileName, expression, getConditionText() } ); //$NON-NLS-1$ else if ( !isWriteType() && isReadType() ) return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.1" ), new String[] { fileName, expression, getConditionText() } ); //$NON-NLS-1$ else if ( isWriteType() && isReadType() ) return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.2" ), new String[] { fileName, expression, getConditionText() } ); //$NON-NLS-1$ return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.3" ), new String[] { fileName, expression, getConditionText() } ); //$NON-NLS-1$ } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d408c25da335bbff40f197e3f3297e27a3411003/CWatchpoint.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CWatchpoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
23232,
264,
1079,
1435,
1216,
30015,
288,
202,
202,
780,
3968,
273,
3387,
7078,
7675,
588,
1420,
7675,
17994,
5621,
202,
202,
430,
261,
3968,
480,
446,
597,
3968,
18,
2469,
1435,
405,
374,
262,
288,
1082,
202,
17812,
273,
296,
296,
397,
3968,
397,
296,
12386,
202,
202,
97,
202,
202,
780,
2652,
273,
16183,
5621,
202,
202,
430,
261,
2652,
480,
446,
597,
2652,
18,
2469,
1435,
405,
374,
262,
288,
1082,
202,
8692,
273,
315,
2119,
397,
2652,
397,
2491,
13636,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
202,
97,
202,
202,
430,
261,
353,
3067,
559,
1435,
597,
401,
291,
1994,
559,
1435,
262,
1082,
202,
2139,
273,
17030,
1153,
5058,
18,
588,
780,
12,
315,
39,
5234,
1153,
18,
20,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
12107,
309,
261,
401,
291,
3067,
559,
1435,
597,
353,
1994,
559,
1435,
262,
1082,
202,
2463,
17377,
18,
2139,
12,
17030,
1153,
5058,
18,
588,
780,
12,
315,
39,
5234,
1153,
18,
21,
6,
262,
16,
394,
514,
8526,
288,
3968,
16,
2652,
16,
26659,
1528,
1435,
289,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
12107,
309,
261,
353,
3067,
559,
1435,
597,
353,
1994,
559,
1435,
262,
1082,
202,
2463,
17377,
18,
2139,
12,
17030,
1153,
5058,
18,
588,
780,
12,
315,
39,
5234,
1153,
18,
22,
6,
262,
16,
394,
514,
8526,
288,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
23232,
264,
1079,
1435,
1216,
30015,
288,
202,
202,
780,
3968,
273,
3387,
7078,
7675,
588,
1420,
7675,
17994,
5621,
202,
202,
430,
261,
3968,
480,
446,
597,
3968,
18,
2469,
1435,
405,
374,
262,
288,
1082,
202,
17812,
273,
296,
296,
397,
3968,
397,
296,
12386,
202,
202,
97,
202,
202,
780,
2652,
273,
16183,
5621,
202,
202,
430,
261,
2652,
480,
446,
597,
2652,
18,
2469,
1435,
405,
374,
262,
288,
1082,
202,
8692,
273,
315,
2119,
397,
2652,
397,
2491,
13636,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
202,
97,
202,
202,
430,
261,
353,
3067,
559,
1435,
597,
401,
291,
1994,
559,
1435,
2
] |
Subsets and Splits