rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
BlockAllocator.setPrevBlock(head, tail);
|
BlockAllocator.setPrevBlock(head, tail);
|
private final Address addToFreeBlockList(int sizeClass, Address head, int bucket) throws InlinePragma { Address tail = blockBucketTail.get(bucket); if (!tail.isZero()) { if (head.isZero()) lastBlock.set(sizeClass, tail); else BlockAllocator.setPrevBlock(head, tail); BlockAllocator.setNextBlock(tail, head); head = blockBucketHead.get(bucket); } return head; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9232c996b259f69154b495f6df0a9c0d44e630e0/SegregatedFreeList.java/clean/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
5267,
9604,
9194,
1768,
682,
12,
474,
963,
797,
16,
5267,
910,
16,
9944,
282,
509,
2783,
13,
1216,
16355,
2050,
9454,
288,
565,
5267,
5798,
273,
1203,
4103,
12363,
18,
588,
12,
7242,
1769,
565,
309,
16051,
13101,
18,
291,
7170,
10756,
288,
1377,
309,
261,
1978,
18,
291,
7170,
10756,
225,
202,
2722,
1768,
18,
542,
12,
1467,
797,
16,
5798,
1769,
1377,
469,
202,
1768,
21156,
18,
542,
9958,
1768,
12,
1978,
16,
5798,
1769,
1377,
3914,
21156,
18,
542,
2134,
1768,
12,
13101,
16,
910,
1769,
1377,
910,
273,
1203,
4103,
1414,
18,
588,
12,
7242,
1769,
565,
289,
565,
327,
910,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
5267,
9604,
9194,
1768,
682,
12,
474,
963,
797,
16,
5267,
910,
16,
9944,
282,
509,
2783,
13,
1216,
16355,
2050,
9454,
288,
565,
5267,
5798,
273,
1203,
4103,
12363,
18,
588,
12,
7242,
1769,
565,
309,
16051,
13101,
18,
291,
7170,
10756,
288,
1377,
309,
261,
1978,
18,
291,
7170,
10756,
225,
202,
2722,
1768,
18,
542,
12,
1467,
797,
16,
5798,
1769,
1377,
469,
202,
1768,
21156,
18,
542,
9958,
1768,
12,
1978,
16,
5798,
1769,
1377,
3914,
21156,
18,
542,
2134,
1768,
12,
13101,
16,
910,
1769,
1377,
910,
273,
1203,
4103,
1414,
18,
588,
12,
7242,
1769,
565,
289,
565,
327,
910,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (x == null) { Serialize ser = new Serialize(this, type); objectTypes.put(type, ser); return ser.storeObject(o); }
|
if (x == null) { Serialize ser = new Serialize(this, type); objectTypes.put(type, ser); return ser.storeObject(o); }
|
public long storeObject(Object o) throws SQLException { try { String type = o.getClass().getName(); Object x = objectTypes.get(type); // If x is null, then the type is unknown, so check to see if type // is an actual table name. If it does, see if a Class is known that // can handle it if (x == null) { Serialize ser = new Serialize(this, type); objectTypes.put(type, ser); return ser.storeObject(o); } // If it's an object, it should be an instance of our Serialize class // If so, then call it's fetch method. if (x instanceof Serialize) return ((Serialize)x).storeObject(o); // Thow an exception because the type is unknown throw new PSQLException("postgresql.con.strobj"); } catch (SQLException sx) { // rethrow the exception. Done because we capture any others next sx.fillInStackTrace(); throw sx; } catch (Exception ex) { throw new PSQLException("postgresql.con.strobjex", ex); } }
|
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/e25c93c7eb4a9a1a50b771cc33448b9d3519f403/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
1707,
921,
12,
921,
320,
13,
1216,
6483,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
618,
273,
320,
18,
588,
797,
7675,
17994,
5621,
1082,
202,
921,
619,
273,
733,
2016,
18,
588,
12,
723,
1769,
1082,
202,
759,
971,
619,
353,
446,
16,
1508,
326,
618,
353,
5917,
16,
1427,
866,
358,
2621,
309,
618,
1082,
202,
759,
353,
392,
3214,
1014,
508,
18,
971,
518,
1552,
16,
2621,
309,
279,
1659,
353,
4846,
716,
1082,
202,
759,
848,
1640,
518,
1082,
202,
430,
261,
92,
422,
446,
13,
1082,
202,
95,
9506,
202,
10343,
703,
273,
394,
14293,
12,
2211,
16,
618,
1769,
9506,
202,
1612,
2016,
18,
458,
12,
723,
16,
703,
1769,
9506,
202,
2463,
703,
18,
2233,
921,
12,
83,
1769,
1082,
202,
97,
1082,
202,
759,
971,
518,
1807,
392,
733,
16,
518,
1410,
506,
392,
791,
434,
3134,
14293,
667,
1082,
202,
759,
971,
1427,
16,
1508,
745,
518,
1807,
2158,
707,
18,
1082,
202,
430,
261,
92,
1276,
14293,
13,
9506,
202,
2463,
14015,
10343,
13,
92,
2934,
2233,
921,
12,
83,
1769,
1082,
202,
759,
935,
543,
392,
1520,
2724,
326,
618,
353,
5917,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
334,
303,
441,
8863,
202,
202,
97,
202,
202,
14683,
261,
23116,
13280,
13,
202,
202,
95,
1082,
202,
759,
22225,
326,
1520,
18,
8677,
2724,
732,
7477,
1281,
10654,
1024,
1082,
202,
30319,
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,
1525,
1707,
921,
12,
921,
320,
13,
1216,
6483,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
618,
273,
320,
18,
588,
797,
7675,
17994,
5621,
1082,
202,
921,
619,
273,
733,
2016,
18,
588,
12,
723,
1769,
1082,
202,
759,
971,
619,
353,
446,
16,
1508,
326,
618,
353,
5917,
16,
1427,
866,
358,
2621,
309,
618,
1082,
202,
759,
353,
392,
3214,
1014,
508,
18,
971,
518,
1552,
16,
2621,
309,
279,
1659,
353,
4846,
716,
1082,
202,
759,
848,
1640,
518,
1082,
202,
430,
261,
92,
422,
446,
13,
1082,
202,
95,
9506,
202,
10343,
703,
273,
394,
14293,
12,
2211,
16,
618,
1769,
9506,
202,
1612,
2016,
18,
458,
2
] |
e.printStackTrace();
|
private static void ExceptionDescribe(int envJREF) { if (traceJNI) VM.sysWrite("JNI called: ExceptionDescribe \n"); VM_JNIEnvironment env = VM_Thread.getCurrentThread().getJNIEnv(); try { Throwable e = env.getException(); if (e != null) { e.printStackTrace(); env.recordException(null); } } catch (Throwable unexpected) { if (traceJNI) unexpected.printStackTrace(System.err); env.recordException(null); // clear old exception and register new one env.recordException(unexpected); } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/0b1dbfa3636f5884c9bd935a94234eed2e2659a4/VM_JNIFunctions.java/clean/rvm/src/vm/jni/VM_JNIFunctions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1185,
8782,
12,
474,
1550,
46,
10771,
13,
288,
565,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
1185,
8782,
225,
521,
82,
8863,
565,
8251,
67,
46,
50,
45,
5494,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
565,
775,
288,
1377,
4206,
425,
273,
1550,
18,
588,
503,
5621,
1377,
309,
261,
73,
480,
446,
13,
288,
9079,
1550,
18,
3366,
503,
12,
2011,
1769,
1377,
289,
565,
289,
1044,
261,
15155,
9733,
13,
288,
1377,
309,
261,
5129,
46,
50,
45,
13,
9733,
18,
1188,
6332,
12,
3163,
18,
370,
1769,
1377,
1550,
18,
3366,
503,
12,
2011,
1769,
5411,
368,
2424,
1592,
1520,
471,
1744,
394,
1245,
1377,
1550,
18,
3366,
503,
12,
21248,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1185,
8782,
12,
474,
1550,
46,
10771,
13,
288,
565,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
1185,
8782,
225,
521,
82,
8863,
565,
8251,
67,
46,
50,
45,
5494,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
565,
775,
288,
1377,
4206,
425,
273,
1550,
18,
588,
503,
5621,
1377,
309,
261,
73,
480,
446,
13,
288,
9079,
1550,
18,
3366,
503,
12,
2011,
1769,
1377,
289,
565,
289,
1044,
261,
15155,
9733,
13,
288,
1377,
309,
261,
5129,
46,
50,
45,
13,
9733,
18,
1188,
6332,
12,
3163,
18,
370,
1769,
1377,
1550,
18,
3366,
2
] |
|
}
|
}
|
public void putAll(Map m) { int msize = m.size(); Iterator itr = m.entrySet().iterator(); for (int i=0; i < msize; i++) { Map.Entry e = (Map.Entry) itr.next(); // Optimize in case the Entry is one of our own. if (e instanceof BasicMapEntry) { BasicMapEntry entry = (BasicMapEntry) e; put(entry.key, entry.value); } else { put(e.getKey(), e.getValue()); } } }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/456fb97639814d1602467619ffb9f412b5a8adc7/HashMap.java/clean/java/util/HashMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
13497,
12,
863,
312,
13,
225,
288,
565,
509,
312,
1467,
273,
312,
18,
1467,
5621,
565,
4498,
11176,
273,
312,
18,
4099,
694,
7675,
9838,
5621,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
312,
1467,
31,
277,
27245,
1377,
288,
3639,
1635,
18,
1622,
425,
273,
261,
863,
18,
1622,
13,
11176,
18,
4285,
5621,
202,
759,
12056,
10153,
316,
648,
326,
3841,
353,
1245,
434,
3134,
4953,
18,
202,
430,
261,
73,
1276,
7651,
863,
1622,
13,
202,
225,
288,
202,
565,
7651,
863,
1622,
1241,
273,
261,
8252,
863,
1622,
13,
425,
31,
202,
565,
1378,
12,
4099,
18,
856,
16,
1241,
18,
1132,
1769,
202,
225,
289,
202,
12107,
202,
225,
288,
5411,
1378,
12,
73,
18,
588,
653,
9334,
425,
18,
24805,
10663,
202,
225,
289,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
13497,
12,
863,
312,
13,
225,
288,
565,
509,
312,
1467,
273,
312,
18,
1467,
5621,
565,
4498,
11176,
273,
312,
18,
4099,
694,
7675,
9838,
5621,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
312,
1467,
31,
277,
27245,
1377,
288,
3639,
1635,
18,
1622,
425,
273,
261,
863,
18,
1622,
13,
11176,
18,
4285,
5621,
202,
759,
12056,
10153,
316,
648,
326,
3841,
353,
1245,
434,
3134,
4953,
18,
202,
430,
261,
73,
1276,
7651,
863,
1622,
13,
202,
225,
288,
202,
565,
7651,
863,
1622,
1241,
273,
261,
8252,
863,
1622,
13,
425,
31,
202,
565,
1378,
12,
4099,
18,
856,
16,
1241,
18,
1132,
1769,
202,
225,
289,
202,
12107,
2
] |
else { takeGuard_.wait(waitTime); waitTime = msecs - (System.currentTimeMillis() - start); } }
|
public Object poll(long msecs) throws InterruptedException { if (Thread.interrupted()) throw new InterruptedException(); Object x = extract(); if (x != null) return x; else { synchronized(takeGuard_) { try { long waitTime = msecs; long start = (msecs <= 0)? 0: System.currentTimeMillis(); for (;;) { x = extract(); if (x != null || waitTime <= 0) { return x; } else { takeGuard_.wait(waitTime); waitTime = msecs - (System.currentTimeMillis() - start); } } } catch(InterruptedException ex) { takeGuard_.notify(); throw ex; } } } }
|
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/BoundedLinkedQueue.java/buggy/src/java/org/logicalcobwebs/concurrent/BoundedLinkedQueue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
7672,
12,
5748,
18689,
2143,
13,
1216,
7558,
288,
565,
309,
261,
3830,
18,
474,
5954,
10756,
604,
394,
7558,
5621,
565,
1033,
619,
273,
2608,
5621,
565,
309,
261,
92,
480,
446,
13,
4202,
327,
619,
31,
565,
469,
288,
1377,
3852,
12,
22188,
16709,
67,
13,
288,
3639,
775,
288,
1850,
1525,
30452,
273,
18689,
2143,
31,
1850,
1525,
787,
273,
261,
81,
21317,
1648,
374,
9945,
374,
30,
2332,
18,
2972,
28512,
5621,
1850,
364,
261,
25708,
13,
288,
5411,
619,
273,
2608,
5621,
5411,
309,
261,
92,
480,
446,
747,
30452,
1648,
374,
13,
288,
2868,
327,
619,
31,
5411,
289,
5411,
469,
288,
2868,
4862,
16709,
27799,
7048,
12,
7048,
950,
1769,
9079,
30452,
273,
18689,
2143,
300,
261,
3163,
18,
2972,
28512,
1435,
300,
787,
1769,
5411,
289,
1850,
289,
3639,
289,
3639,
1044,
12,
24485,
503,
431,
13,
288,
1850,
4862,
16709,
27799,
12336,
5621,
1850,
604,
431,
31,
540,
289,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
1033,
7672,
12,
5748,
18689,
2143,
13,
1216,
7558,
288,
565,
309,
261,
3830,
18,
474,
5954,
10756,
604,
394,
7558,
5621,
565,
1033,
619,
273,
2608,
5621,
565,
309,
261,
92,
480,
446,
13,
4202,
327,
619,
31,
565,
469,
288,
1377,
3852,
12,
22188,
16709,
67,
13,
288,
3639,
775,
288,
1850,
1525,
30452,
273,
18689,
2143,
31,
1850,
1525,
787,
273,
261,
81,
21317,
1648,
374,
9945,
374,
30,
2332,
18,
2972,
28512,
5621,
1850,
364,
261,
25708,
13,
288,
5411,
619,
273,
2608,
5621,
5411,
309,
261,
92,
480,
446,
747,
30452,
1648,
374,
13,
288,
2868,
327,
619,
31,
5411,
289,
5411,
469,
288,
2868,
4862,
16709,
27799,
7048,
12,
7048,
950,
2
] |
|
this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove "+HTMLEncoder.encode(identifier)+" : "+HTMLEncoder.encode(e.getMessage()));
|
this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove " + identifier + ": " + e.getMessage());
|
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { HTTPRequest request = new HTTPRequest(uri, data, ctx); try { if ((data.size() > 1024 * 1024) && (request.getPartAsString("insert", 128).length() == 0)) { this.writeReply(ctx, 400, "text/plain", "Too big", "Data exceeds 1MB limit"); return; } String pass = request.getParam("formPassword"); if (pass.length() == 0) { pass = request.getPartAsString("formPassword", 128); } if ((pass.length() == 0) || !pass.equals(node.formPassword)) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/queue/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } if(request.isParameterSet("remove_request") && (request.getParam("remove_request").length() > 0)) { String identifier = HTMLDecoder.decode(request.getParam("identifier")); Logger.minor(this, "Removing "+identifier); try { fcp.removeGlobalRequest(identifier); } catch (MessageInvalidException e) { this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove "+HTMLEncoder.encode(identifier)+" : "+HTMLEncoder.encode(e.getMessage())); } writePermanentRedirect(ctx, "Done", "/queue/"); return; }else if(request.isParameterSet("remove_AllRequests") && (request.getParam("remove_AllRequests").length() > 0)) { ClientRequest[] reqs = fcp.getGlobalRequests(); Logger.minor(this, "Request count: "+reqs.length); for(int i=0; i<reqs.length ; i++){ String identifier = HTMLDecoder.decode(reqs[i].getIdentifier()); Logger.minor(this, "Removing "+identifier); try { fcp.removeGlobalRequest(identifier); } catch (MessageInvalidException e) { this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove "+HTMLEncoder.encode(identifier)+" : "+HTMLEncoder.encode(e.getMessage())); } } writePermanentRedirect(ctx, "Done", "/queue/"); return; }else if(request.isParameterSet("download")) { // Queue a download if(!request.isParameterSet("key")) { writeError("No key specified to download", "You did not specify a key to download.", ctx); return; } String expectedMIMEType = null; if(request.isParameterSet("type")) { expectedMIMEType = request.getParam("type"); } FreenetURI fetchURI; try { fetchURI = new FreenetURI(HTMLDecoder.decode(request.getParam("key"))); } catch (MalformedURLException e) { writeError("Invalid URI to download", "The URI is invalid and can not be downloaded.", ctx); return; } String persistence = request.getParam("persistence"); String returnType = request.getParam("return-type"); fcp.makePersistentGlobalRequest(fetchURI, expectedMIMEType, persistence, returnType); writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("change_priority")) { String identifier = HTMLDecoder.decode(request.getParam("identifier")); short newPriority = Short.parseShort(request.getParam("priority")); ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.getIdentifier().equals(identifier)) { clientRequest.setPriorityClass(newPriority); } } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.getPartAsString("insert", 128).length() > 0) { FreenetURI insertURI; String keyType = request.getPartAsString("keytype", 3); if ("chk".equals(keyType)) { insertURI = new FreenetURI("CHK@"); } else if ("ksk".equals(keyType)) { try { insertURI = new FreenetURI(HTMLDecoder.decode(request.getPartAsString("key", 128))); } catch (MalformedURLException mue1) { writeError("Invalid URI to insert", "You did not specify a valid URI to insert the file to.", ctx); return; } } else { writeError("Invalid URI to insert", "You fooled around with the POST request. Shame on you.", ctx); return; } HTTPRequest.File file = request.getUploadedFile("filename"); if (file.getFilename().trim().length() == 0) { writeError("No file selected", "You did not select a file to upload.", ctx); return; } boolean dontCompress = request.getPartAsString("dontCompress", 128).length() > 0; String identifier = file.getFilename() + "-fred-" + System.currentTimeMillis(); /* copy bucket data */ Bucket copiedBucket = node.persistentEncryptedTempBucketFactory.makeBucket(file.getData().size()); BucketTools.copy(file.getData(), copiedBucket); try { ClientPut clientPut = new ClientPut(fcp.getGlobalClient(), insertURI, identifier, Integer.MAX_VALUE, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, ClientRequest.PERSIST_FOREVER, null, false, dontCompress, -1, ClientPutMessage.UPLOAD_FROM_DIRECT, new File(file.getFilename()), file.getContentType(), copiedBucket, null); clientPut.start(); fcp.forceStorePersistentRequests(); } catch (IdentifierCollisionException e) { e.printStackTrace(); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("insert-local")) { String filename = request.getParam("filename"); try { filename = new String(filename.getBytes("ISO-8859-1"), "UTF-8"); } catch (Throwable t) { } File file = new File(filename); String identifier = file.getName() + "-fred-" + System.currentTimeMillis(); String contentType = DefaultMIMETypes.guessMIMEType(filename); try { ClientPut clientPut = new ClientPut(fcp.getGlobalClient(), new FreenetURI("CHK@"), identifier, Integer.MAX_VALUE, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, ClientRequest.PERSIST_FOREVER, null, false, false, -1, ClientPutMessage.UPLOAD_FROM_DISK, file, contentType, new FileBucket(file, true, false, false, false), null); clientPut.start(); fcp.forceStorePersistentRequests(); } catch (IdentifierCollisionException e) { e.printStackTrace(); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } } finally { request.freeParts(); } this.handleGet(uri, ctx); }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/144c6fa8b4af3023cb6f0c50203b29af750a73e7/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
501,
16,
1103,
1769,
202,
202,
698,
288,
1082,
202,
430,
14015,
892,
18,
1467,
1435,
405,
6250,
380,
6250,
13,
597,
261,
2293,
18,
588,
1988,
8092,
2932,
6387,
3113,
8038,
2934,
2469,
1435,
422,
374,
3719,
288,
9506,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
751,
14399,
404,
7969,
1800,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
9506,
202,
780,
1342,
273,
590,
18,
588,
786,
2932,
687,
3913,
8863,
1082,
202,
430,
261,
5466,
18,
2469,
1435,
422,
374,
13,
288,
9506,
202,
5466,
273,
590,
18,
588,
1988,
8092,
2932,
687,
3913,
3113,
8038,
1769,
1082,
202,
97,
1082,
202,
430,
14015,
5466,
18,
2469,
1435,
422,
374,
13,
747,
401,
5466,
18,
14963,
12,
2159,
18,
687,
3913,
3719,
288,
9506,
202,
5002,
620,
1388,
1607,
273,
394,
5991,
620,
1388,
5621,
9506,
202,
2485,
18,
458,
2932,
2735,
3113,
2206,
4000,
4898,
1769,
9506,
202,
5900,
18,
4661,
7817,
3121,
12,
23,
3103,
16,
315,
2043,
3113,
1607,
16,
446,
16,
374,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
12,
2293,
18,
291,
1662,
694,
2932,
4479,
67,
2293,
7923,
597,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
501,
16,
1103,
1769,
202,
202,
698,
288,
1082,
202,
430,
14015,
892,
18,
1467,
1435,
405,
6250,
380,
6250,
13,
597,
261,
2293,
18,
588,
1988,
8092,
2932,
6387,
3113,
8038,
2934,
2469,
1435,
422,
374,
3719,
288,
9506,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
751,
14399,
404,
7969,
1800,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
9506,
202,
780,
1342,
2
] |
System.out.println("File " + filename + " does not exist!");
|
if (new File(filename).canRead()) { new Viewer(filename, useJava3D, use3D); } else { System.out.println("File " + filename + " does not exist!"); }
|
public static void main(String[] args) { boolean useJava3D = true; boolean use3D = true; String filename = ""; if (args.length == 1) { filename = args[0]; } else if (args.length > 1) { // parse options for (int i=1; i<args.length; i++) { String opt = args[i-1]; if ("--nojava3d".equalsIgnoreCase(opt)) { useJava3D = false; } else if ("--no3d".equalsIgnoreCase(opt)) { use3D = false; } else { System.err.println("Unknown option: " + opt); System.exit(1); } } filename = args[args.length -1]; } else { System.out.println("Syntax : Viewer [options] <inputfile>"); System.out.println(); System.out.println("options: --nojava3D Disable Java3D support"); System.out.println("options: --no3D View only 2D info"); System.exit(0); } if (new File(filename).canRead()) { new Viewer(filename, useJava3D, use3D); } else { System.out.println("File " + filename + " does not exist!"); } }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/0a06919741801d4e191547f8003d99a1b2ce6242/Viewer.java/clean/src/org/openscience/cdk/applications/Viewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
1250,
999,
5852,
23,
40,
273,
638,
31,
3639,
1250,
999,
23,
40,
273,
638,
31,
3639,
514,
1544,
273,
1408,
31,
3639,
309,
261,
1968,
18,
2469,
422,
404,
13,
288,
5411,
1544,
273,
833,
63,
20,
15533,
3639,
289,
469,
309,
261,
1968,
18,
2469,
405,
404,
13,
288,
5411,
368,
1109,
702,
5411,
364,
261,
474,
277,
33,
21,
31,
277,
32,
1968,
18,
2469,
31,
277,
27245,
288,
7734,
514,
2153,
273,
833,
63,
77,
17,
21,
15533,
7734,
309,
7566,
413,
2135,
6290,
23,
72,
9654,
14963,
5556,
12,
3838,
3719,
288,
10792,
999,
5852,
23,
40,
273,
629,
31,
7734,
289,
469,
309,
7566,
413,
2135,
23,
72,
9654,
14963,
5556,
12,
3838,
3719,
288,
10792,
999,
23,
40,
273,
629,
31,
7734,
289,
469,
288,
10792,
2332,
18,
370,
18,
8222,
2932,
4874,
1456,
30,
315,
397,
2153,
1769,
10792,
2332,
18,
8593,
12,
21,
1769,
7734,
289,
5411,
289,
5411,
1544,
273,
833,
63,
1968,
18,
2469,
300,
21,
15533,
3639,
289,
469,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
8070,
294,
4441,
264,
306,
2116,
65,
411,
2630,
768,
2984,
1769,
5411,
2332,
18,
659,
18,
8222,
5621,
5411,
2332,
18,
659,
18,
8222,
2932,
2116,
30,
1493,
2135,
6290,
23,
40,
565,
10639,
5110,
23,
40,
2865,
8863,
5411,
2332,
18,
659,
18,
8222,
2932,
2116,
30,
1493,
2135,
23,
40,
3639,
4441,
1338,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
1250,
999,
5852,
23,
40,
273,
638,
31,
3639,
1250,
999,
23,
40,
273,
638,
31,
3639,
514,
1544,
273,
1408,
31,
3639,
309,
261,
1968,
18,
2469,
422,
404,
13,
288,
5411,
1544,
273,
833,
63,
20,
15533,
3639,
289,
469,
309,
261,
1968,
18,
2469,
405,
404,
13,
288,
5411,
368,
1109,
702,
5411,
364,
261,
474,
277,
33,
21,
31,
277,
32,
1968,
18,
2469,
31,
277,
27245,
288,
7734,
514,
2153,
273,
833,
63,
77,
17,
21,
15533,
7734,
309,
7566,
413,
2135,
6290,
23,
72,
9654,
14963,
5556,
12,
3838,
3719,
288,
10792,
999,
5852,
23,
40,
273,
629,
31,
7734,
289,
2
] |
if (registerMax > 0 && registerNumber > registerMax) {
|
if (registerMax >= 0 && registerNumber > registerMax) {
|
public String scanRegisterName(final Context context, final String primitive) throws InterpreterException { skipSpaces = true; Token token = getToken(context); if (token == null) { throw new MissingNumberException(); } if (registerMax < 0 && token.isa(Catcode.LEFTBRACE)) { push(token); return scanTokensAsString(context, primitive); } long registerNumber = scanNumber(context, token); if (registerMax > 0 && registerNumber > registerMax) { throw new IllegalRegisterException(Long.toString(registerNumber)); } return Long.toString(registerNumber); }
|
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/1d6269cb361373cdc5302a24dec98d7ff12007d2/Moritz.java/buggy/ExTeX/src/java/de/dante/extex/interpreter/max/Moritz.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4135,
3996,
461,
12,
6385,
1772,
819,
16,
727,
514,
8225,
13,
5411,
1216,
5294,
11599,
503,
288,
3639,
2488,
12077,
273,
638,
31,
3639,
3155,
1147,
273,
9162,
12,
2472,
1769,
3639,
309,
261,
2316,
422,
446,
13,
288,
5411,
604,
394,
10230,
1854,
503,
5621,
3639,
289,
3639,
309,
261,
4861,
2747,
411,
374,
597,
1147,
18,
291,
69,
12,
11554,
710,
18,
10066,
26980,
3719,
288,
5411,
1817,
12,
2316,
1769,
5411,
327,
4135,
5157,
8092,
12,
2472,
16,
8225,
1769,
3639,
289,
3639,
1525,
1744,
1854,
273,
4135,
1854,
12,
2472,
16,
1147,
1769,
3639,
309,
261,
4861,
2747,
1545,
374,
597,
1744,
1854,
405,
1744,
2747,
13,
288,
5411,
604,
394,
2141,
3996,
503,
12,
3708,
18,
10492,
12,
4861,
1854,
10019,
3639,
289,
3639,
327,
3407,
18,
10492,
12,
4861,
1854,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4135,
3996,
461,
12,
6385,
1772,
819,
16,
727,
514,
8225,
13,
5411,
1216,
5294,
11599,
503,
288,
3639,
2488,
12077,
273,
638,
31,
3639,
3155,
1147,
273,
9162,
12,
2472,
1769,
3639,
309,
261,
2316,
422,
446,
13,
288,
5411,
604,
394,
10230,
1854,
503,
5621,
3639,
289,
3639,
309,
261,
4861,
2747,
411,
374,
597,
1147,
18,
291,
69,
12,
11554,
710,
18,
10066,
26980,
3719,
288,
5411,
1817,
12,
2316,
1769,
5411,
327,
4135,
5157,
8092,
12,
2472,
16,
8225,
1769,
3639,
289,
3639,
1525,
1744,
1854,
273,
4135,
1854,
12,
2472,
16,
1147,
1769,
3639,
309,
261,
4861,
2747,
1545,
374,
597,
1744,
1854,
405,
1744,
2747,
13,
288,
5411,
604,
394,
2
] |
public void actionPerformed(ActionEvent e) { if (getMessageUI() != null) getMessageUI().setBusy(true); FolderDisplayUI fw = getFolderDisplayUI(); if (fw != null) fw.setBusy(true);; printMessage(e.getSource()); if (fw != null) fw.setBusy(false); if (getMessageUI() != null) getMessageUI().setBusy(false); }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/MessageProxy.java/buggy/src/net/suberic/pooka/gui/MessageProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1377,
309,
261,
24906,
5370,
1435,
480,
446,
13,
202,
24906,
5370,
7675,
542,
29289,
12,
3767,
1769,
1377,
12623,
4236,
5370,
7600,
273,
29001,
4236,
5370,
5621,
1377,
309,
261,
11966,
480,
446,
13,
202,
11966,
18,
542,
29289,
12,
3767,
1769,
31,
1377,
1172,
1079,
12,
73,
18,
588,
1830,
10663,
5411,
309,
261,
11966,
480,
446,
13,
202,
11966,
18,
542,
29289,
12,
5743,
1769,
1377,
309,
261,
24906,
5370,
1435,
480,
446,
13,
202,
24906,
5370,
7675,
542,
29289,
12,
5743,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1377,
309,
261,
24906,
5370,
1435,
480,
446,
13,
202,
24906,
5370,
7675,
542,
29289,
12,
3767,
1769,
1377,
12623,
4236,
5370,
7600,
273,
29001,
4236,
5370,
5621,
1377,
309,
261,
11966,
480,
446,
13,
202,
11966,
18,
542,
29289,
12,
3767,
1769,
31,
1377,
1172,
1079,
12,
73,
18,
588,
1830,
10663,
5411,
309,
261,
11966,
480,
446,
13,
202,
11966,
18,
542,
29289,
12,
5743,
1769,
1377,
309,
261,
24906,
5370,
1435,
480,
446,
13,
202,
24906,
5370,
7675,
542,
29289,
12,
5743,
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
] |
||
public MavenProject buildStandaloneSuperProject( ArtifactRepository localRepository ) throws ProjectBuildingException { Model superModel = getSuperModel(); superModel.setGroupId( STANDALONE_SUPERPOM_GROUPID ); superModel.setArtifactId( STANDALONE_SUPERPOM_ARTIFACTID ); superModel.setVersion( STANDALONE_SUPERPOM_VERSION ); ProfileManager profileManager = new DefaultProfileManager( container ); List activeProfiles; Properties profileProperties = new Properties(); profileManager.addProfiles( superModel.getProfiles() ); activeProfiles = injectActiveProfiles( profileManager, superModel, profileProperties ); MavenProject project = new MavenProject( superModel ); project.addProfileProperties( profileProperties ); project.setActiveProfiles( activeProfiles ); project.setOriginalModel( superModel ); try { project.setFile( new File( ".", "pom.xml" ) ); List remoteRepositories = ProjectUtils.buildArtifactRepositories( superModel.getRepositories(), artifactRepositoryFactory, container ); project = processProjectLogic( "<Super-POM>", project, remoteRepositories, null ); return project; } catch ( ModelInterpolationException e ) { throw new ProjectBuildingException( "Error building super-project", e ); } }
|
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/d466205274b1a04edc89551db56aa32049ee2b39/DefaultMavenProjectBuilder.java/clean/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17176,
4109,
1361,
20612,
12451,
8051,
4109,
12,
14022,
3305,
1191,
3305,
262,
3639,
1216,
5420,
16713,
503,
565,
288,
3639,
3164,
2240,
1488,
273,
15172,
1488,
5621,
3639,
2240,
1488,
18,
542,
8722,
12,
2347,
4307,
1013,
5998,
67,
13272,
654,
52,
1872,
67,
8468,
734,
11272,
3639,
2240,
1488,
18,
542,
7581,
548,
12,
2347,
4307,
1013,
5998,
67,
13272,
654,
52,
1872,
67,
4928,
45,
11625,
734,
11272,
3639,
2240,
1488,
18,
542,
1444,
12,
2347,
4307,
1013,
5998,
67,
13272,
654,
52,
1872,
67,
5757,
11272,
3639,
11357,
1318,
3042,
1318,
273,
394,
2989,
4029,
1318,
12,
1478,
11272,
7734,
987,
2695,
12450,
31,
7734,
6183,
3042,
2297,
273,
394,
6183,
5621,
3639,
3042,
1318,
18,
1289,
12450,
12,
2240,
1488,
18,
588,
12450,
1435,
11272,
7734,
2695,
12450,
273,
4590,
3896,
12450,
12,
3042,
1318,
16,
2240,
1488,
16,
3042,
2297,
11272,
3639,
17176,
4109,
1984,
273,
394,
17176,
4109,
12,
2240,
1488,
11272,
3639,
1984,
18,
1289,
4029,
2297,
12,
3042,
2297,
11272,
3639,
1984,
18,
542,
3896,
12450,
12,
2695,
12450,
11272,
7734,
1984,
18,
542,
8176,
1488,
12,
2240,
1488,
11272,
3639,
775,
3639,
288,
5411,
1984,
18,
542,
812,
12,
394,
1387,
12,
4585,
16,
315,
84,
362,
18,
2902,
6,
262,
11272,
5411,
987,
2632,
18429,
273,
5420,
1989,
18,
3510,
7581,
18429,
12,
2240,
1488,
18,
588,
18429,
9334,
28524,
2868,
6462,
3305,
1733,
16,
1478,
11272,
5411,
1984,
273,
1207,
4109,
20556,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17176,
4109,
1361,
20612,
12451,
8051,
4109,
12,
14022,
3305,
1191,
3305,
262,
3639,
1216,
5420,
16713,
503,
565,
288,
3639,
3164,
2240,
1488,
273,
15172,
1488,
5621,
3639,
2240,
1488,
18,
542,
8722,
12,
2347,
4307,
1013,
5998,
67,
13272,
654,
52,
1872,
67,
8468,
734,
11272,
3639,
2240,
1488,
18,
542,
7581,
548,
12,
2347,
4307,
1013,
5998,
67,
13272,
654,
52,
1872,
67,
4928,
45,
11625,
734,
11272,
3639,
2240,
1488,
18,
542,
1444,
12,
2347,
4307,
1013,
5998,
67,
13272,
654,
52,
1872,
67,
5757,
11272,
3639,
11357,
1318,
3042,
1318,
273,
394,
2989,
4029,
1318,
12,
1478,
11272,
7734,
987,
2695,
12450,
31,
7734,
6183,
3042,
2297,
273,
394,
6183,
5621,
3639,
2
] |
||
private static JStatement makePeekBackup(FilterInfo filterInfo, PhaseInfo phaseInfo) { // make a statement that will copy unpopped items into the // peek buffer, assuming the counter will count from 0 to // (peek-pop) [exclusive upper bound] // the lhs of the destination of the assignment JExpression destLhs = new JFieldAccessExpression(null, new JThisExpression(null), filterInfo.peekBuffer. getVariable().getIdent()); // the rhs of the destination of the assignment JExpression destRhs = new JLocalVariableExpression(null, phaseInfo.loopCounter); // the lhs of the source of the assignment JExpression sourceLhs = new JLocalVariableExpression(null, phaseInfo.popBuffer); // the rhs of the source of the assignment... (add one to the // push index because of our pre-inc convention.) JExpression sourceRhs1 = new JAddExpression(null, new JLocalVariableExpression(null, phaseInfo.loopCounter), new JAddExpression(null, new JIntLiteral(1), new JLocalVariableExpression(null, phaseInfo.pushCounter))); // need to subtract the difference in peek and pop counts to // see what we have to backup JExpression sourceRhs = new JMinusExpression(null, sourceRhs1, new JIntLiteral(filterInfo.filter.getPeekInt() -filterInfo.filter.getPopInt() )); // the expression that copies items from the pop buffer to the // peek buffer JExpression copyExp = new JAssignmentExpression(null, new JArrayAccessExpression(null, destLhs, destRhs), new JArrayAccessExpression(null, sourceLhs, sourceRhs)); // finally we have the body of the loop JStatement body = new JExpressionStatement(null, copyExp, null); // return a for loop that executes (peek-pop) times. return makeForLoop(body, phaseInfo.loopCounter, new JIntLiteral(filterInfo.filter.getPeekInt() - filterInfo.filter.getPopInt())); }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/93480af330229866357477c303c45aa718891ace/FusePipe.java/clean/streams/src/at/dms/kjc/sir/lowering/fusion/FusePipe.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
804,
3406,
1221,
30950,
6248,
12,
1586,
966,
1034,
966,
16,
25083,
282,
19459,
966,
6855,
966,
13,
288,
202,
759,
1221,
279,
3021,
716,
903,
1610,
640,
5120,
1845,
1516,
1368,
326,
202,
759,
8032,
1613,
16,
15144,
326,
3895,
903,
1056,
628,
374,
358,
202,
759,
261,
347,
3839,
17,
5120,
13,
306,
23792,
3854,
2489,
65,
202,
759,
326,
8499,
434,
326,
2929,
434,
326,
6661,
202,
46,
2300,
1570,
48,
4487,
273,
3196,
225,
394,
804,
974,
1862,
2300,
12,
2011,
16,
6862,
565,
394,
804,
2503,
2300,
12,
2011,
3631,
6862,
565,
1034,
966,
18,
347,
3839,
1892,
18,
6862,
565,
13522,
7675,
588,
6106,
10663,
202,
759,
326,
7711,
434,
326,
2929,
434,
326,
6661,
202,
46,
2300,
1570,
54,
4487,
273,
3196,
225,
394,
804,
2042,
3092,
2300,
12,
2011,
16,
9944,
6855,
966,
18,
6498,
4789,
1769,
202,
759,
326,
8499,
434,
326,
1084,
434,
326,
6661,
202,
46,
2300,
1084,
48,
4487,
273,
3196,
225,
394,
804,
2042,
3092,
2300,
12,
2011,
16,
25083,
6855,
966,
18,
5120,
1892,
1769,
202,
282,
202,
759,
326,
7711,
434,
326,
1084,
434,
326,
6661,
2777,
261,
1289,
1245,
358,
326,
202,
759,
1817,
770,
2724,
434,
3134,
675,
17,
9523,
15797,
12998,
202,
46,
2300,
1084,
54,
4487,
21,
273,
3196,
225,
394,
202,
225,
804,
986,
2300,
12,
2011,
16,
30306,
394,
804,
2042,
3092,
2300,
12,
2011,
16,
15106,
202,
13961,
966,
18,
6498,
4789,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
804,
3406,
1221,
30950,
6248,
12,
1586,
966,
1034,
966,
16,
25083,
282,
19459,
966,
6855,
966,
13,
288,
202,
759,
1221,
279,
3021,
716,
903,
1610,
640,
5120,
1845,
1516,
1368,
326,
202,
759,
8032,
1613,
16,
15144,
326,
3895,
903,
1056,
628,
374,
358,
202,
759,
261,
347,
3839,
17,
5120,
13,
306,
23792,
3854,
2489,
65,
202,
759,
326,
8499,
434,
326,
2929,
434,
326,
6661,
202,
46,
2300,
1570,
48,
4487,
273,
3196,
225,
394,
804,
974,
1862,
2300,
12,
2011,
16,
6862,
565,
394,
804,
2503,
2300,
12,
2011,
3631,
6862,
565,
1034,
966,
18,
347,
3839,
1892,
18,
6862,
565,
13522,
7675,
588,
6106,
10663,
202,
759,
326,
7711,
434,
2
] |
||
File tempFile = new File(DATA_DIR, name+suffix);
|
Path tempFile = new Path(DATA_DIR, name+suffix);
|
public void map(WritableComparable key, Writable value, OutputCollector collector, Reporter reporter) throws IOException { String name = ((UTF8)key).toString(); long size = ((LongWritable)value).get(); long seed = Long.parseLong(name); random.setSeed(seed); reporter.setStatus("creating " + name); // write to temp file initially to permit parallel execution File tempFile = new File(DATA_DIR, name+suffix); OutputStream out = fs.create(tempFile); long written = 0; try { while (written < size) { if (fastCheck) { Arrays.fill(buffer, (byte)random.nextInt(Byte.MAX_VALUE)); } else { random.nextBytes(buffer); } long remains = size - written; int length = (remains<=buffer.length) ? (int)remains : buffer.length; out.write(buffer, 0, length); written += length; reporter.setStatus("writing "+name+"@"+written+"/"+size); } } finally { out.close(); } // rename to final location fs.rename(tempFile, new File(DATA_DIR, name)); collector.collect(new UTF8("bytes"), new LongWritable(written)); reporter.setStatus("wrote " + name); }
|
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/ee01fef4b4fb82c7492a4a747793839a4d14cd39/TestFileSystem.java/buggy/src/test/org/apache/hadoop/fs/TestFileSystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
852,
12,
12061,
799,
10207,
498,
16,
14505,
460,
16,
10792,
3633,
7134,
8543,
16,
25585,
11528,
13,
1377,
1216,
1860,
288,
1377,
514,
508,
273,
14015,
5159,
28,
13,
856,
2934,
10492,
5621,
1377,
1525,
963,
273,
14015,
3708,
12061,
13,
1132,
2934,
588,
5621,
1377,
1525,
5009,
273,
3407,
18,
2670,
3708,
12,
529,
1769,
1377,
2744,
18,
542,
12702,
12,
12407,
1769,
1377,
11528,
18,
542,
1482,
2932,
23799,
315,
397,
508,
1769,
1377,
368,
1045,
358,
1906,
585,
22458,
358,
21447,
7230,
4588,
1377,
2666,
18286,
273,
394,
2666,
12,
4883,
67,
4537,
16,
508,
15,
8477,
1769,
1377,
8962,
596,
273,
2662,
18,
2640,
12,
5814,
812,
1769,
1377,
1525,
5941,
273,
374,
31,
1377,
775,
288,
3639,
1323,
261,
9748,
411,
963,
13,
288,
1850,
309,
261,
8076,
1564,
13,
288,
5411,
5647,
18,
5935,
12,
4106,
16,
261,
7229,
13,
9188,
18,
4285,
1702,
12,
3216,
18,
6694,
67,
4051,
10019,
1850,
289,
469,
288,
5411,
2744,
18,
4285,
2160,
12,
4106,
1769,
1850,
289,
1850,
1525,
22632,
273,
963,
300,
5941,
31,
1850,
509,
769,
273,
261,
2764,
4167,
32,
33,
4106,
18,
2469,
13,
692,
261,
474,
13,
2764,
4167,
294,
1613,
18,
2469,
31,
1850,
596,
18,
2626,
12,
4106,
16,
374,
16,
769,
1769,
1850,
5941,
1011,
769,
31,
1850,
11528,
18,
542,
1482,
2932,
14345,
13773,
529,
9078,
27614,
15,
9748,
9078,
4898,
15,
1467,
1769,
3639,
289,
1377,
289,
3095,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
852,
12,
12061,
799,
10207,
498,
16,
14505,
460,
16,
10792,
3633,
7134,
8543,
16,
25585,
11528,
13,
1377,
1216,
1860,
288,
1377,
514,
508,
273,
14015,
5159,
28,
13,
856,
2934,
10492,
5621,
1377,
1525,
963,
273,
14015,
3708,
12061,
13,
1132,
2934,
588,
5621,
1377,
1525,
5009,
273,
3407,
18,
2670,
3708,
12,
529,
1769,
1377,
2744,
18,
542,
12702,
12,
12407,
1769,
1377,
11528,
18,
542,
1482,
2932,
23799,
315,
397,
508,
1769,
1377,
368,
1045,
358,
1906,
585,
22458,
358,
21447,
7230,
4588,
1377,
2666,
18286,
273,
394,
2666,
12,
4883,
67,
4537,
16,
508,
15,
8477,
1769,
1377,
8962,
596,
273,
2662,
18,
2640,
12,
5814,
812,
1769,
1377,
1525,
5941,
2
] |
DefaultLoggerImpl.instance().log(ILogger.FATAL, Messages.getString( "error.stdenv.cannot.find.device", new Object[] { sName }, Locale.getDefault() ) );
|
DefaultLoggerImpl.instance().log(ILogger.FATAL, Messages.getString("error.stdenv.cannot.find.device", new Object[] { sName }, Locale.getDefault() ));
|
public final IDeviceRenderer getDevice(String sName) throws PluginException { if (inEclipseEnv()) { final Object oDeviceRenderer = getPluginXmlObject("devicerenderers", "deviceRenderer", "name", "device", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ sName); if (oDeviceRenderer != null) { DefaultLoggerImpl.instance().log(ILogger.INFORMATION, Messages.getString( "info.eclenv.creating.device", //$NON-NLS-1$ new Object[] { sName, oDeviceRenderer.getClass().getName() }, Locale.getDefault() // LOCALE? ) ); // i18n_CONCATENATIONS_REMOVED return (IDeviceRenderer) oDeviceRenderer; } DefaultLoggerImpl.instance().log(ILogger.FATAL, Messages.getString( "error.eclenv.cannot.find.device", //$NON-NLS-1$ new Object[] { sName }, Locale.getDefault() // LOCALE? ) ); // i18n_CONCATENATIONS_REMOVED } else { for (int i = 0; i < saDevices.length; i++) { if (saDevices[i][0].equalsIgnoreCase(sName)) { DefaultLoggerImpl.instance().log(ILogger.INFORMATION, Messages.getString( "info.stdenv.creating.device", //$NON-NLS-1$ new Object[] { sName, saDevices[i][1] }, Locale.getDefault() // LOCALE? ) ); // i18n_CONCATENATIONS_REMOVED return (IDeviceRenderer) newInstance(saDevices[i][1]); } } DefaultLoggerImpl.instance().log(ILogger.FATAL, Messages.getString( "error.stdenv.cannot.find.device", //$NON-NLS-1$ new Object[] { sName }, Locale.getDefault() // LOCALE? ) ); // i18n_CONCATENATIONS_REMOVED //$NON-NLS-1$ } return null; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4c3f1cb28dd9925df77890697e8cb172fe5ebfe8/PluginSettings.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/util/PluginSettings.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
467,
3654,
6747,
19512,
12,
780,
14933,
13,
1216,
6258,
503,
565,
288,
3639,
309,
261,
267,
23057,
10472,
3491,
10756,
3639,
288,
5411,
727,
1033,
320,
3654,
6747,
273,
16319,
4432,
921,
2932,
5206,
21349,
2345,
414,
3113,
315,
5964,
6747,
3113,
315,
529,
3113,
315,
5964,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
4329,
3993,
17,
5106,
17,
23,
8,
4329,
3993,
17,
5106,
17,
24,
8,
7734,
14933,
1769,
5411,
309,
261,
83,
3654,
6747,
480,
446,
13,
5411,
288,
7734,
2989,
3328,
2828,
18,
1336,
7675,
1330,
12,
45,
3328,
18,
706,
23805,
16,
10792,
4838,
18,
588,
780,
12,
13491,
315,
1376,
18,
557,
1897,
90,
18,
23799,
18,
5964,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
13491,
394,
1033,
8526,
288,
14933,
16,
320,
3654,
6747,
18,
588,
797,
7675,
17994,
1435,
19879,
13491,
6458,
18,
588,
1868,
1435,
368,
31005,
35,
10792,
262,
7734,
11272,
368,
277,
2643,
82,
67,
2248,
14130,
1157,
15297,
67,
11122,
12135,
7734,
327,
261,
734,
73,
633,
6747,
13,
320,
3654,
6747,
31,
5411,
289,
5411,
2989,
3328,
2828,
18,
1336,
7675,
1330,
12,
45,
3328,
18,
29891,
16,
7734,
4838,
18,
588,
780,
12,
10792,
315,
1636,
18,
557,
1897,
90,
18,
12892,
18,
4720,
18,
5964,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
10792,
394,
1033,
8526,
288,
14933,
19879,
10792,
6458,
18,
588,
1868,
1435,
368,
31005,
35,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
467,
3654,
6747,
19512,
12,
780,
14933,
13,
1216,
6258,
503,
565,
288,
3639,
309,
261,
267,
23057,
10472,
3491,
10756,
3639,
288,
5411,
727,
1033,
320,
3654,
6747,
273,
16319,
4432,
921,
2932,
5206,
21349,
2345,
414,
3113,
315,
5964,
6747,
3113,
315,
529,
3113,
315,
5964,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
4329,
3993,
17,
5106,
17,
23,
8,
4329,
3993,
17,
5106,
17,
24,
8,
7734,
14933,
1769,
5411,
309,
261,
83,
3654,
6747,
480,
446,
13,
5411,
288,
7734,
2989,
3328,
2828,
18,
1336,
7675,
1330,
12,
45,
3328,
18,
706,
23805,
16,
10792,
4838,
18,
588,
780,
12,
13491,
315,
1376,
18,
2
] |
setDirty(false);
|
protected void setValues() { IResourceConfiguration resConfig; String[] buildInputsPaths; String[] buildOutputsPaths; boolean foundRcbsTool = false; int idx; /* * Examine the tools defined for the resource configuration. * There should be at most one tool defined for a custom build step which was not an * extension element (not defined by a tool integrator in a manifest). * If the rcbs tool has been defined, set the field values from the defined tool. * If the rcbs tool has not been defined yet, clear the field values. * Finally, set the rcbsApplicability selector from the current value in the resource configuration. */ resConfig = resParent.getCurrentResourceConfig(); ITool [] tools = resConfig.getTools(); for (int i = 0; i < tools.length; i++) { ITool tool = tools[i]; if (tool.getCustomBuildStep() && !tool.isExtensionElement()) { buildInputsPaths = tool.getInputTypes()[0].getAdditionalInputs()[0].getPaths(); resBuildInputs = ""; //$NON-NLS-1$ for ( int j = 0; j < buildInputsPaths.length; j++ ){ resBuildInputs += buildInputsPaths[j] + ";"; //$NON-NLS-1$ } int len = resBuildInputs.length(); resBuildInputs = resBuildInputs.substring(0,len-1); buildInputs.setText(resBuildInputs); buildOutputsPaths = tool.getOutputTypes()[0].getOutputNames(); resBuildOutputs = ""; //$NON-NLS-1$ for ( int j = 0; j < buildOutputsPaths.length; j++ ){ resBuildOutputs += buildOutputsPaths[j] + ";"; //$NON-NLS-1$ } len = resBuildOutputs.length(); resBuildOutputs = resBuildOutputs.substring(0,len-1); buildOutputs.setText(resBuildOutputs); resBuildCommand = tool.getToolCommand(); buildCommand.setText(resBuildCommand); resBuildAnnouncement = tool.getAnnouncement(); buildDescription.setText(resBuildAnnouncement); foundRcbsTool = true; break; } } /* * If an rcbs tool has not been created yet, just blank the fields. */ if(!foundRcbsTool) { buildInputs.setText(""); //$NON-NLS-1$ buildOutputs.setText(""); //$NON-NLS-1$ buildCommand.setText(""); //$NON-NLS-1$ buildDescription.setText(""); //$NON-NLS-1$ } /* * Set the state of the rcbs applicability selector. */ switch(resConfig.getRcbsApplicability()){ case IResourceConfiguration.KIND_APPLY_RCBS_TOOL_AS_OVERRIDE: idx = rcbsApplicabilitySelector.indexOf(ManagedBuilderUIMessages.getResourceString(RCBS_OVERRIDE)); break; case IResourceConfiguration.KIND_APPLY_RCBS_TOOL_AFTER: idx = rcbsApplicabilitySelector.indexOf(ManagedBuilderUIMessages.getResourceString(RCBS_AFTER)); break; case IResourceConfiguration.KIND_APPLY_RCBS_TOOL_BEFORE: idx = rcbsApplicabilitySelector.indexOf(ManagedBuilderUIMessages.getResourceString(RCBS_BEFORE)); break; case IResourceConfiguration.KIND_DISABLE_RCBS_TOOL: idx = rcbsApplicabilitySelector.indexOf(ManagedBuilderUIMessages.getResourceString(RCBS_DISABLE)); break; default: /* * If we get an unexpected value, use the normal default of override. */ idx = rcbsApplicabilitySelector.indexOf(ManagedBuilderUIMessages.getResourceString(RCBS_OVERRIDE)); break; } rcbsApplicabilitySelector.select(idx); setDirty(false); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/ResourceCustomBuildStepBlock.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ResourceCustomBuildStepBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
27466,
1435,
288,
1082,
202,
45,
1420,
1750,
400,
809,
31,
1082,
202,
780,
8526,
1361,
10059,
4466,
31,
1082,
202,
780,
8526,
1361,
13856,
4466,
31,
1082,
202,
6494,
1392,
24599,
2038,
6364,
273,
629,
31,
1082,
202,
474,
2067,
31,
1082,
202,
20308,
9506,
380,
1312,
301,
558,
326,
8513,
2553,
364,
326,
1058,
1664,
18,
9506,
380,
6149,
1410,
506,
622,
4486,
1245,
5226,
2553,
364,
279,
1679,
1361,
2235,
1492,
1703,
486,
392,
9506,
380,
2710,
930,
261,
902,
2553,
635,
279,
5226,
11301,
639,
316,
279,
5643,
2934,
9506,
380,
971,
326,
4519,
2038,
5226,
711,
2118,
2553,
16,
444,
326,
652,
924,
628,
326,
2553,
5226,
18,
9506,
380,
971,
326,
4519,
2038,
5226,
711,
486,
2118,
2553,
4671,
16,
2424,
326,
652,
924,
18,
9506,
380,
15768,
16,
444,
326,
4519,
2038,
1294,
1780,
2967,
3451,
628,
326,
783,
460,
316,
326,
1058,
1664,
18,
9506,
1195,
1082,
202,
455,
809,
273,
400,
3054,
18,
588,
3935,
1420,
809,
5621,
1082,
202,
45,
6364,
5378,
8513,
273,
400,
809,
18,
588,
10348,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
8513,
18,
2469,
31,
277,
27245,
288,
9506,
202,
45,
6364,
5226,
273,
8513,
63,
77,
15533,
9506,
202,
430,
261,
6738,
18,
588,
3802,
3116,
4160,
1435,
597,
401,
6738,
18,
291,
3625,
1046,
10756,
288,
6862,
202,
3510,
10059,
4466,
273,
5226,
18,
588,
1210,
2016,
1435,
63,
20,
8009,
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,
1117,
918,
27466,
1435,
288,
1082,
202,
45,
1420,
1750,
400,
809,
31,
1082,
202,
780,
8526,
1361,
10059,
4466,
31,
1082,
202,
780,
8526,
1361,
13856,
4466,
31,
1082,
202,
6494,
1392,
24599,
2038,
6364,
273,
629,
31,
1082,
202,
474,
2067,
31,
1082,
202,
20308,
9506,
380,
1312,
301,
558,
326,
8513,
2553,
364,
326,
1058,
1664,
18,
9506,
380,
6149,
1410,
506,
622,
4486,
1245,
5226,
2553,
364,
279,
1679,
1361,
2235,
1492,
1703,
486,
392,
9506,
380,
2710,
930,
261,
902,
2553,
635,
279,
5226,
11301,
639,
316,
279,
5643,
2934,
9506,
380,
971,
326,
4519,
2038,
5226,
711,
2118,
2553,
16,
444,
326,
652,
924,
628,
326,
2553,
5226,
18,
9506,
380,
2
] |
|
int limit = 0; RubyRegexp pat = null; RubyString str = null; int argc = argCount(args, 0, 2); if (argc == 2) { limit = RubyNumeric.fix2int(args[1]); if (limit == 1) { return RubyArray.newArray(getRuntime(), dup()); } } RubyArray result = RubyArray.newArray(getRuntime(), 0); int pos = 0; int beg = 0; int hits = 0; int len = getValue().length(); if (argc > 0) { if (args[0] instanceof RubyRegexp) { pat = RubyRegexp.regexpValue(args[0]); } else { str = stringValue(args[0]); if (str.getValue().equals(" ")) { pat = RubyRegexp.newRegexp(getRuntime(), "\\s+", 0); } else if (str.getValue().length() != 1) { pat = RubyRegexp.newRegexp(str, 0); } } } else { pat = RubyRegexp.newRegexp(getRuntime(), "\\s+", 0); } if (pat != null) { while ((beg = pat.search(this, pos)) > -1) { hits++; int end = ((RubyMatchData) getRuntime().getBackref()).matchEndPosition(); result.append(substr(pos, (beg == pos && end == beg) ? 1 : beg - pos)); pos = (end == beg) ? beg + 1 : end; if (hits + 1 == limit) { break; } } } else { while ((beg = getValue().indexOf(str.getValue(), pos)) > -1) { hits++; result.append(substr(pos, beg - pos)); if (hits + 1 == limit) { break; } pos = beg + 1; } } if (hits == 0) { result.append(dup()); } else if (pos <= len) { result.append(substr(pos, len - pos)); } if (limit == 0) { while (((RubyString) result.entry(result.getLength() - 1)).empty().isTrue()) { result.pop(); } } return result;
|
return new Split(runtime, this, args).results();
|
public RubyArray split(IRubyObject[] args) { int limit = 0; RubyRegexp pat = null; RubyString str = null; int argc = argCount(args, 0, 2); if (argc == 2) { limit = RubyNumeric.fix2int(args[1]); if (limit == 1) { return RubyArray.newArray(getRuntime(), dup()); } } RubyArray result = RubyArray.newArray(getRuntime(), 0); int pos = 0; int beg = 0; int hits = 0; int len = getValue().length(); if (argc > 0) { if (args[0] instanceof RubyRegexp) { pat = RubyRegexp.regexpValue(args[0]); } else { str = stringValue(args[0]); if (str.getValue().equals(" ")) { pat = RubyRegexp.newRegexp(getRuntime(), "\\s+", 0); } else if (str.getValue().length() != 1) { pat = RubyRegexp.newRegexp(str, 0); } } } else { pat = RubyRegexp.newRegexp(getRuntime(), "\\s+", 0); } if (pat != null) { while ((beg = pat.search(this, pos)) > -1) { hits++; int end = ((RubyMatchData) getRuntime().getBackref()).matchEndPosition(); result.append(substr(pos, (beg == pos && end == beg) ? 1 : beg - pos)); pos = (end == beg) ? beg + 1 : end; if (hits + 1 == limit) { break; } } } else { while ((beg = getValue().indexOf(str.getValue(), pos)) > -1) { hits++; result.append(substr(pos, beg - pos)); if (hits + 1 == limit) { break; } pos = beg + 1; } } if (hits == 0) { result.append(dup()); } else if (pos <= len) { result.append(substr(pos, len - pos)); } if (limit == 0) { while (((RubyString) result.entry(result.getLength() - 1)).empty().isTrue()) { result.pop(); } } return result; }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/43d3b9f60acade22a82aa5f01a640c076e8bc30b/RubyString.java/clean/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
1076,
1416,
12,
7937,
10340,
921,
8526,
833,
13,
288,
202,
202,
474,
1800,
273,
374,
31,
202,
202,
54,
10340,
14621,
9670,
273,
446,
31,
202,
202,
54,
10340,
780,
609,
273,
446,
31,
202,
202,
474,
1501,
71,
273,
1501,
1380,
12,
1968,
16,
374,
16,
576,
1769,
202,
202,
430,
261,
3175,
71,
422,
576,
13,
288,
1082,
202,
3595,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
21,
19226,
1082,
202,
430,
261,
3595,
422,
404,
13,
288,
9506,
202,
2463,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
9334,
9417,
10663,
1082,
202,
97,
202,
202,
97,
202,
202,
54,
10340,
1076,
563,
273,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
9334,
374,
1769,
202,
202,
474,
949,
273,
374,
31,
202,
202,
474,
16847,
273,
374,
31,
202,
202,
474,
11076,
273,
374,
31,
202,
202,
474,
562,
273,
2366,
7675,
2469,
5621,
202,
202,
430,
261,
3175,
71,
405,
374,
13,
288,
1082,
202,
430,
261,
1968,
63,
20,
65,
1276,
19817,
14621,
13,
288,
9506,
202,
16330,
273,
19817,
14621,
18,
17745,
620,
12,
1968,
63,
20,
19226,
1082,
202,
97,
469,
288,
9506,
202,
701,
273,
19721,
12,
1968,
63,
20,
19226,
9506,
202,
430,
261,
701,
18,
24805,
7675,
14963,
2932,
315,
3719,
288,
6862,
202,
16330,
273,
19817,
14621,
18,
2704,
14621,
12,
588,
5576,
9334,
8422,
87,
15,
3113,
374,
1769,
9506,
202,
97,
469,
309,
261,
701,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
1076,
1416,
12,
7937,
10340,
921,
8526,
833,
13,
288,
202,
202,
474,
1800,
273,
374,
31,
202,
202,
54,
10340,
14621,
9670,
273,
446,
31,
202,
202,
54,
10340,
780,
609,
273,
446,
31,
202,
202,
474,
1501,
71,
273,
1501,
1380,
12,
1968,
16,
374,
16,
576,
1769,
202,
202,
430,
261,
3175,
71,
422,
576,
13,
288,
1082,
202,
3595,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
21,
19226,
1082,
202,
430,
261,
3595,
422,
404,
13,
288,
9506,
202,
2463,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
9334,
9417,
10663,
1082,
202,
97,
202,
202,
97,
202,
202,
54,
10340,
1076,
563,
273,
19817,
1076,
18,
2704,
2
] |
public void removeFromBothSidesOfPriority(er.bugtracker.Priority object) {
|
public void removeFromBothSidesOfPriority(Priority object) {
|
public void removeFromBothSidesOfPriority(er.bugtracker.Priority object) { removeObjectFromBothSidesOfRelationshipWithKey(object, "priority"); }
|
46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/e2f6d086a1ca4f9bae07e93767b99fcb6f6fa2ac/_Bug.java/clean/Common/Applications/BugTracker/Frameworks/BTBusinessLogic/Sources/er/bugtracker/_Bug.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
22386,
20240,
55,
4369,
951,
8183,
12,
8183,
733,
13,
288,
3639,
1206,
921,
1265,
20240,
55,
4369,
951,
8180,
1190,
653,
12,
1612,
16,
315,
8457,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22386,
20240,
55,
4369,
951,
8183,
12,
8183,
733,
13,
288,
3639,
1206,
921,
1265,
20240,
55,
4369,
951,
8180,
1190,
653,
12,
1612,
16,
315,
8457,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fValue = null;
|
fValue = CValueFactory.NULL_VALUE;
|
public void dispose() { if ( fCDIExpression != null ) { try { fCDIExpression.dispose(); fCDIExpression = null; } catch( CDIException e ) { } } if ( fValue instanceof AbstractCValue ) { ((AbstractCValue)fValue).dispose(); fValue = null; } internalDispose( true ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/22f8c9984c0ea0995bd9e83013954d12ff907b38/CExpression.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
202,
202,
430,
261,
284,
39,
2565,
2300,
480,
446,
262,
288,
1082,
202,
698,
288,
9506,
202,
74,
39,
2565,
2300,
18,
2251,
4150,
5621,
9506,
202,
74,
39,
2565,
2300,
273,
446,
31,
1082,
202,
97,
1082,
202,
14683,
12,
385,
2565,
503,
425,
262,
288,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
284,
620,
1276,
4115,
39,
620,
262,
288,
1082,
202,
12443,
7469,
39,
620,
13,
74,
620,
2934,
2251,
4150,
5621,
1082,
202,
74,
620,
273,
446,
31,
202,
202,
97,
202,
202,
7236,
1669,
4150,
12,
638,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
202,
202,
430,
261,
284,
39,
2565,
2300,
480,
446,
262,
288,
1082,
202,
698,
288,
9506,
202,
74,
39,
2565,
2300,
18,
2251,
4150,
5621,
9506,
202,
74,
39,
2565,
2300,
273,
446,
31,
1082,
202,
97,
1082,
202,
14683,
12,
385,
2565,
503,
425,
262,
288,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
284,
620,
1276,
4115,
39,
620,
262,
288,
1082,
202,
12443,
7469,
39,
620,
13,
74,
620,
2934,
2251,
4150,
5621,
1082,
202,
74,
620,
273,
446,
31,
202,
202,
97,
202,
202,
7236,
1669,
4150,
12,
638,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertFalse( bt.poundif( false ) ); assertFalse( bt.poundif( true ) ); assertFalse( bt.poundelif( true ) ); assertFalse( bt.poundelse() ); assertFalse( bt.poundendif() ); assertTrue( bt.poundelse() ); assertTrue( bt.poundendif() );
|
assertFalse( bt.poundIf( false ) ); assertFalse( bt.poundIf( true ) ); assertFalse( bt.poundElif( true ) ); assertFalse( bt.poundElse() ); assertFalse( bt.poundEndif() ); assertTrue( bt.poundElse() ); assertTrue( bt.poundEndif() );
|
public void testIgnore() { BranchTracker bt = new BranchTracker(); try { /* * #if 0 * # if 1 * # elif 1 * # else * # endif * #else * #endif */ assertFalse( bt.poundif( false ) ); assertFalse( bt.poundif( true ) ); assertFalse( bt.poundelif( true ) ); assertFalse( bt.poundelse() ); assertFalse( bt.poundendif() ); assertTrue( bt.poundelse() ); assertTrue( bt.poundendif() ); /* * #if 0 * # if 1 * # elif 1 * # else * # endif * #else * # if 0 * # elif 1 * # elif 0 * # elif 1 * # else * # endif * #endif */ bt = new BranchTracker(); assertFalse( bt.poundif( false ) ); assertFalse( bt.poundif( true )); assertFalse( bt.poundelif( true ) ); assertFalse( bt.poundelse() ); assertFalse( bt.poundendif() ); assertTrue( bt.poundelse() ); assertFalse( bt.poundif( false ) ); assertTrue( bt.poundelif( true ) ); assertFalse( bt.poundelif( false ) ); assertFalse( bt.poundelif( true ) ); assertFalse( bt.poundelse() ); assertTrue( bt.poundendif() ); assertTrue( bt.poundendif() ); assertEquals( 0, bt.getDepth() ); /* * #if 0 * # if 1 * # elif 0 * # elif 1 * # else * # endif * #elif 0 * # if 0 * # elif 0 * # elif 1 * # else * # endif * #elif 1 * # if 0 * # elif 0 * # elif 0 * # else * # endif * #else * # if 1 * # elif 0 * # elif 1 * # else * # endif * #endif */ assertFalse(bt.poundif(false)); assertFalse(bt.poundif(true)); assertFalse(bt.poundelif(false)); assertFalse(bt.poundelif(true)); assertFalse(bt.poundelse()); assertFalse( bt.poundendif() ); assertFalse(bt.poundelif(false)); assertFalse(bt.poundif(false)); assertFalse(bt.poundelif(false)); assertFalse(bt.poundelif(true)); assertFalse(bt.poundelse()); assertFalse( bt.poundendif()); assertTrue(bt.poundelif(true)); assertFalse(bt.poundif(false)); assertFalse(bt.poundelif(false)); assertFalse(bt.poundelif(false)); assertTrue(bt.poundelse()); assertTrue( bt.poundendif() ); assertFalse(bt.poundelse()); assertFalse(bt.poundif(true)); assertFalse(bt.poundelif(false)); assertFalse(bt.poundelif(true)); assertFalse(bt.poundelse()); assertFalse( bt.poundendif() ); assertTrue( bt.poundendif() ); assertEquals(0, bt.getDepth()); } catch (EmptyStackException se) { fail("Unexpected Scanner exception thrown"); } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/b5d5e34e25b54097ee253a657f02cf777d3fe103/BranchTrackerTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/BranchTrackerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3777,
1435,
202,
95,
1082,
1875,
15449,
8135,
10921,
273,
394,
15449,
8135,
5621,
1875,
775,
1082,
288,
1082,
202,
20308,
9506,
380,
468,
430,
374,
6862,
380,
468,
202,
430,
202,
21,
4697,
380,
468,
202,
292,
430,
404,
4697,
380,
468,
202,
12107,
4697,
380,
468,
202,
409,
430,
4697,
380,
468,
12107,
4697,
380,
468,
409,
430,
9506,
1195,
1082,
202,
11231,
8381,
12,
10921,
18,
84,
772,
430,
12,
629,
262,
11272,
26924,
202,
11231,
8381,
12,
10921,
18,
84,
772,
430,
12,
638,
262,
11272,
1875,
202,
11231,
8381,
12,
10921,
18,
84,
772,
292,
430,
12,
638,
262,
11272,
26924,
202,
11231,
8381,
12,
10921,
18,
84,
772,
12107,
1435,
11272,
1875,
202,
11231,
8381,
12,
10921,
18,
84,
772,
409,
430,
1435,
11272,
26924,
202,
11231,
5510,
12,
10921,
18,
84,
772,
12107,
1435,
11272,
1875,
202,
11231,
5510,
12,
10921,
18,
84,
772,
409,
430,
1435,
11272,
1875,
202,
20308,
9506,
380,
468,
430,
374,
6862,
380,
468,
202,
430,
202,
21,
4697,
380,
468,
202,
292,
430,
404,
4697,
380,
468,
202,
12107,
4697,
380,
468,
202,
409,
430,
4697,
380,
468,
12107,
9506,
380,
468,
202,
430,
374,
282,
9506,
380,
468,
202,
292,
430,
404,
9506,
380,
468,
202,
292,
430,
374,
9506,
380,
468,
202,
292,
430,
404,
9506,
380,
468,
202,
12107,
9506,
380,
468,
202,
409,
430,
9506,
380,
468,
409,
430,
9506,
1195,
9506,
1875,
202,
23602,
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,
3777,
1435,
202,
95,
1082,
1875,
15449,
8135,
10921,
273,
394,
15449,
8135,
5621,
1875,
775,
1082,
288,
1082,
202,
20308,
9506,
380,
468,
430,
374,
6862,
380,
468,
202,
430,
202,
21,
4697,
380,
468,
202,
292,
430,
404,
4697,
380,
468,
202,
12107,
4697,
380,
468,
202,
409,
430,
4697,
380,
468,
12107,
4697,
380,
468,
409,
430,
9506,
1195,
1082,
202,
11231,
8381,
12,
10921,
18,
84,
772,
430,
12,
629,
262,
11272,
26924,
202,
11231,
8381,
12,
10921,
18,
84,
772,
430,
12,
638,
262,
11272,
1875,
202,
11231,
8381,
12,
10921,
18,
84,
772,
292,
430,
12,
638,
262,
11272,
26924,
202,
11231,
8381,
12,
10921,
18,
84,
772,
2
] |
byte[] timeBytes = (new String(timeChars)).getBytes();
|
byte[] timeBytes = (new String(timeChars)).getBytes(Typdef.UTF8ENCODING);
|
public static final int timestampToTimeBytes(byte[] buffer, int offset, java.sql.Timestamp timestamp) { int hour = timestamp.getHours(); int minute = timestamp.getMinutes(); int second = timestamp.getSeconds(); char[] timeChars = new char[DateTime.timeRepresentationLength]; int zeroBase = (int) '0'; timeChars[0] = (char) (hour / 10 + zeroBase); timeChars[1] = (char) (hour % 10 + +zeroBase); timeChars[2] = ':'; timeChars[3] = (char) (minute / 10 + zeroBase); timeChars[4] = (char) (minute % 10 + zeroBase); timeChars[5] = ':'; timeChars[6] = (char) (second / 10 + zeroBase); timeChars[7] = (char) (second % 10 + zeroBase); byte[] timeBytes = (new String(timeChars)).getBytes(); System.arraycopy(timeBytes, 0, buffer, offset, DateTime.timeRepresentationLength); return DateTime.timeRepresentationLength; }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/6eb9730e99c6155b82acc5a6564733f4afd65f20/DateTime.java/clean/java/client/org/apache/derby/client/am/DateTime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
509,
2858,
774,
950,
2160,
12,
7229,
8526,
1613,
16,
4766,
1171,
509,
1384,
16,
4766,
1171,
2252,
18,
4669,
18,
4921,
2858,
13,
288,
3639,
509,
6126,
273,
2858,
18,
588,
14910,
5621,
3639,
509,
8044,
273,
2858,
18,
588,
13050,
5621,
3639,
509,
2205,
273,
2858,
18,
588,
6762,
5621,
3639,
1149,
8526,
813,
7803,
273,
394,
1149,
63,
5096,
18,
957,
13742,
1782,
15533,
3639,
509,
3634,
2171,
273,
261,
474,
13,
296,
20,
13506,
3639,
813,
7803,
63,
20,
65,
273,
261,
3001,
13,
261,
12091,
342,
1728,
397,
3634,
2171,
1769,
3639,
813,
7803,
63,
21,
65,
273,
261,
3001,
13,
261,
12091,
738,
1728,
397,
397,
7124,
2171,
1769,
3639,
813,
7803,
63,
22,
65,
273,
3921,
31,
3639,
813,
7803,
63,
23,
65,
273,
261,
3001,
13,
261,
17637,
342,
1728,
397,
3634,
2171,
1769,
3639,
813,
7803,
63,
24,
65,
273,
261,
3001,
13,
261,
17637,
738,
1728,
397,
3634,
2171,
1769,
3639,
813,
7803,
63,
25,
65,
273,
3921,
31,
3639,
813,
7803,
63,
26,
65,
273,
261,
3001,
13,
261,
8538,
342,
1728,
397,
3634,
2171,
1769,
3639,
813,
7803,
63,
27,
65,
273,
261,
3001,
13,
261,
8538,
738,
1728,
397,
3634,
2171,
1769,
5411,
1160,
8526,
813,
2160,
273,
261,
2704,
514,
12,
957,
7803,
13,
2934,
588,
2160,
12,
18488,
536,
18,
5159,
28,
14672,
1769,
3639,
2332,
18,
1126,
3530,
12,
957,
2160,
16,
374,
16,
1613,
16,
1384,
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,
727,
509,
2858,
774,
950,
2160,
12,
7229,
8526,
1613,
16,
4766,
1171,
509,
1384,
16,
4766,
1171,
2252,
18,
4669,
18,
4921,
2858,
13,
288,
3639,
509,
6126,
273,
2858,
18,
588,
14910,
5621,
3639,
509,
8044,
273,
2858,
18,
588,
13050,
5621,
3639,
509,
2205,
273,
2858,
18,
588,
6762,
5621,
3639,
1149,
8526,
813,
7803,
273,
394,
1149,
63,
5096,
18,
957,
13742,
1782,
15533,
3639,
509,
3634,
2171,
273,
261,
474,
13,
296,
20,
13506,
3639,
813,
7803,
63,
20,
65,
273,
261,
3001,
13,
261,
12091,
342,
1728,
397,
3634,
2171,
1769,
3639,
813,
7803,
63,
21,
65,
273,
261,
3001,
13,
261,
12091,
738,
1728,
397,
397,
7124,
2171,
1769,
2
] |
mainLayout.add(part);
|
LayoutPart relative = mainLayout.findBottomRight(); if(relative != null && !(relative instanceof EditorArea)) { stack(part,relative); } else { mainLayout.add(part); }
|
public void addPart(LayoutPart part) { // If part added / removed always zoom out. if (isZoomed()) zoomOut(); // Look for a placeholder. PartPlaceholder placeholder = null; LayoutPart testPart = findPart(part.getID()); if (testPart != null && testPart instanceof PartPlaceholder) placeholder = (PartPlaceholder)testPart; // If there is no placeholder do a simple add. Otherwise, replace the placeholder. if (placeholder == null) { /* * Detached window no longer supported - remove when confirmed * * part.reparent(mainLayout.getParent()); */ mainLayout.add(part); } else { ILayoutContainer container = placeholder.getContainer(); if (container != null) { /* * Detached window no longer supported - remove when confirmed * * if (container instanceof DetachedPlaceHolder) { * //Create a detached window add the part on it. * DetachedPlaceHolder holder = (DetachedPlaceHolder)container; * detachedPlaceHolderList.remove(holder); * container.remove(testPart); * DetachedWindow window = new DetachedWindow(page); * detachedWindowList.add(window); * window.create(); * part.createControl(window.getShell()); * // Open window. * window.getShell().setBounds(holder.getBounds()); * window.open(); * // add part to detached window. * ViewPane pane = (ViewPane) part; * window.getShell().setText(pane.getPart().getTitle()); * window.add(pane, partDropListener); * LayoutPart otherChildren[] = holder.getChildren(); * for (int i = 0; i < otherChildren.length; i++) * part.getContainer().add(otherChildren[i]); * } else { */ // reconsistute parent if necessary if (container instanceof ContainerPlaceholder) { ContainerPlaceholder containerPlaceholder = (ContainerPlaceholder)container; ILayoutContainer parentContainer = containerPlaceholder.getContainer(); container = (ILayoutContainer)containerPlaceholder.getRealContainer(); if (container instanceof LayoutPart) { parentContainer.replace(containerPlaceholder, (LayoutPart)container); } containerPlaceholder.setRealContainer(null); } // reparent part. if (container instanceof PartTabFolder) { PartTabFolder folder = (PartTabFolder)container; part.reparent(folder.getControl().getParent()); } else { part.reparent(mainLayout.getParent()); } // replace placeholder with real part container.replace(placeholder, part); /* * Detached window no longer supported - remove when confirmed * * } */ } } // enable direct manipulation if (part instanceof ViewPane) enableDrag((ViewPane)part); enableDrop(part);}
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/106fa76699263fef6358428b892e0ba387109831/PerspectivePresentation.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/PerspectivePresentation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
527,
1988,
12,
3744,
1988,
1087,
13,
288,
202,
759,
971,
1087,
3096,
342,
3723,
3712,
7182,
596,
18,
202,
430,
261,
291,
11497,
329,
10756,
202,
202,
14932,
1182,
5621,
1082,
202,
759,
10176,
364,
279,
6695,
18,
202,
1988,
14038,
6695,
273,
446,
31,
202,
3744,
1988,
1842,
1988,
273,
1104,
1988,
12,
2680,
18,
588,
734,
10663,
202,
430,
261,
3813,
1988,
480,
446,
597,
1842,
1988,
1276,
6393,
14038,
13,
202,
202,
12988,
273,
261,
1988,
14038,
13,
3813,
1988,
31,
202,
759,
971,
1915,
353,
1158,
6695,
741,
279,
4143,
527,
18,
5272,
16,
1453,
326,
6695,
18,
202,
430,
261,
12988,
422,
446,
13,
288,
202,
202,
20308,
1082,
380,
8083,
2004,
2742,
1158,
7144,
3260,
300,
1206,
1347,
19979,
1082,
380,
1875,
380,
1087,
18,
266,
2938,
12,
5254,
3744,
18,
588,
3054,
10663,
1082,
1195,
202,
202,
5254,
3744,
18,
1289,
12,
2680,
1769,
202,
97,
469,
288,
202,
202,
2627,
2012,
2170,
1478,
273,
6695,
18,
588,
2170,
5621,
202,
202,
430,
261,
3782,
480,
446,
13,
288,
1082,
202,
20308,
9506,
380,
8083,
2004,
2742,
1158,
7144,
3260,
300,
1206,
1347,
19979,
9506,
380,
4697,
380,
309,
261,
3782,
1276,
8083,
2004,
6029,
6064,
13,
288,
9506,
380,
225,
202,
759,
1684,
279,
22037,
2742,
527,
326,
1087,
603,
518,
18,
9506,
380,
225,
202,
4986,
2004,
6029,
6064,
10438,
273,
261,
4986,
2004,
6029,
6064,
13,
3782,
31,
9506,
380,
225,
202,
8238,
2004,
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,
918,
527,
1988,
12,
3744,
1988,
1087,
13,
288,
202,
759,
971,
1087,
3096,
342,
3723,
3712,
7182,
596,
18,
202,
430,
261,
291,
11497,
329,
10756,
202,
202,
14932,
1182,
5621,
1082,
202,
759,
10176,
364,
279,
6695,
18,
202,
1988,
14038,
6695,
273,
446,
31,
202,
3744,
1988,
1842,
1988,
273,
1104,
1988,
12,
2680,
18,
588,
734,
10663,
202,
430,
261,
3813,
1988,
480,
446,
597,
1842,
1988,
1276,
6393,
14038,
13,
202,
202,
12988,
273,
261,
1988,
14038,
13,
3813,
1988,
31,
202,
759,
971,
1915,
353,
1158,
6695,
741,
279,
4143,
527,
18,
5272,
16,
1453,
326,
6695,
18,
202,
430,
261,
12988,
422,
446,
13,
288,
202,
202,
20308,
1082,
380,
8083,
2
] |
vPhaseReport.addElement(r); vPhaseReport.addAll( damageCrew(entity, 1));
|
addReport(r); addReport( damageCrew(entity, 1));
|
private void doEntityFall(Entity entity, Coords fallPos, int height, int facing, PilotingRollData roll) { Report r; IHex fallHex = game.getBoard().getHex(fallPos); // we don't need to deal damage yet, if the entity is doing DFA if (entity.isMakingDfa()) { r = new Report(2305); r.subject = entity.getId(); vPhaseReport.addElement(r); entity.setProne(true); return; } // facing after fall String side; int table; switch(facing) { case 1: case 2: side = "right side"; table = ToHitData.SIDE_RIGHT; break; case 3: side = "rear"; table = ToHitData.SIDE_REAR; break; case 4: case 5: side = "left side"; table = ToHitData.SIDE_LEFT; break; case 0: default: side = "front"; table = ToHitData.SIDE_FRONT; } int waterDepth = fallHex.terrainLevel(Terrains.WATER); int damageHeight = height; // HACK: if the dest hex is water, assume that the fall height given is // to the floor of the hex, and modifiy it so that it's to the surface if (waterDepth > 0) { damageHeight = height - waterDepth; } else { waterDepth = 0; //because it will be used to set elevation } if(fallHex.containsTerrain(Terrains.ICE)) { waterDepth = 0; } //Falling into water instantly destroys most non-mechs if(waterDepth > 0 && !(entity instanceof Mech) && !(entity instanceof Protomech) && (entity.getRunMP() > 0 && entity.getMovementMode() != IEntityMovementMode.HOVER) && entity.getMovementMode() != IEntityMovementMode.HYDROFOIL && entity.getMovementMode() != IEntityMovementMode.NAVAL && entity.getMovementMode() != IEntityMovementMode.SUBMARINE) { vPhaseReport.addAll( destroyEntity(entity, "a watery grave", false)); return; } // calculate damage for hitting the surface int damage = (int)Math.round(entity.getWeight() / 10.0) * (damageHeight + 1); // calculate damage for hitting the ground, but only if we actually fell // into water // if we fell onto the water surface, that damage is halved. int waterDamage = 0; if (waterDepth > 0) { damage /= 2; waterDamage = (int)Math.round(entity.getWeight() / 10.0) * (waterDepth + 1) /2; } // If the waterDepth is larger than the fall height, // we fell underwater if (waterDepth > height) { damage = 0; waterDamage = (int)Math.round(entity.getWeight() / 10.0) * (height + 1) /2; } // adjust damage for gravity damage = Math.round(damage * game.getOptions().floatOption("gravity")); waterDamage = Math.round(waterDamage * game.getOptions().floatOption("gravity")); // report falling if (waterDamage == 0) { r = new Report(2310); r.subject = entity.getId(); r.indent(); r.newlines = 0; r.addDesc(entity); r.add(side); //international issue r.add(damage); } else if (damage > 0) { r = new Report(2315); r.subject = entity.getId(); r.indent(); r.newlines = 0; r.addDesc(entity); r.add(side); //international issue r.add(damage); r.add(waterDamage); } else { r = new Report(2310); r.subject = entity.getId(); r.indent(); r.newlines = 0; r.addDesc(entity); r.add(side); //international issue r.add(waterDamage); } vPhaseReport.addElement(r); damage += waterDamage; // Any swarming infantry will be dislodged, but we don't want to // interrupt the fall's report. We have to get the ID now because // the fall may kill the entity which will reset the attacker ID. final int swarmerId = entity.getSwarmAttackerId(); // Positioning must be prior to damage for proper handling of breaches // Only Mechs can fall prone. if ( entity instanceof Mech ) { entity.setProne(true); } entity.setPosition(fallPos); entity.setFacing((entity.getFacing() + (facing - 1)) % 6); entity.setSecondaryFacing(entity.getFacing()); entity.setElevation(-waterDepth); if (waterDepth > 0) { for (int loop=0; loop< entity.locations();loop++){ entity.setLocationStatus(loop, ILocationExposureStatus.WET); } } // standard damage loop while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_NORMAL, table); vPhaseReport.addAll( damageEntity(entity, hit, cluster)); damage -= cluster; } //check for location exposure doSetLocationsExposure(entity, fallHex, false, -waterDepth); // we want to be able to avoid pilot damage even when it was // an automatic fall, only unconsciousness should cause auto-damage roll.removeAutos(); if (height > 0) { roll.addModifier(height, "height of fall"); } entity.addPilotingModifierForTerrain(roll, fallPos); if (roll.getValue() == PilotingRollData.IMPOSSIBLE) { r = new Report(2320); r.subject = entity.getId(); r.addDesc(entity); r.add(entity.crew.getName()); r.indent(); vPhaseReport.addElement(r); vPhaseReport.addAll( damageCrew(entity, 1)); ((Report) vPhaseReport.elementAt(vPhaseReport.size() - 1)).newlines++; } else { int diceRoll = Compute.d6(2); r = new Report(2325); r.subject = entity.getId(); r.addDesc(entity); r.add(entity.crew.getName()); r.add(roll.getValueAsString()); r.add(diceRoll); if (diceRoll >= roll.getValue()) { r.choose(true); vPhaseReport.addElement(r); } else { r.choose(false); vPhaseReport.addElement(r); vPhaseReport.addAll( damageCrew(entity, 1)); ((Report) vPhaseReport.elementAt(vPhaseReport.size() - 1)).newlines++; } } // Now dislodge any swarming infantry. if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setSwarmTargetId( Entity.NONE ); // Did the infantry fall into water? if ( waterDepth > 0 ) { // Swarming infantry die. swarmer.setPosition( fallPos ); r = new Report(2330); r.newlines = 0; r.subject = swarmer.getId(); r.addDesc(swarmer); vPhaseReport.addElement(r); vPhaseReport.addAll( destroyEntity(swarmer, "a watery grave", false)); } else { // Swarming infantry take an 11 point hit. // ASSUMPTION : damage should not be doubled. r = new Report(2335); r.newlines = 0; r.subject = swarmer.getId(); r.addDesc(swarmer); vPhaseReport.addElement(r); vPhaseReport.addAll( damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11)); ((Report) vPhaseReport.elementAt(vPhaseReport.size() - 1)).newlines++; } swarmer.setPosition( fallPos ); entityUpdate( swarmerId ); } // End dislodge-infantry // clear all PSRs after a fall -- the Mek has already failed ONE and fallen, it'd be cruel to make it fail some more! game.resetPSRs(entity); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
1943,
42,
454,
12,
1943,
1522,
16,
10320,
87,
4159,
1616,
16,
509,
2072,
16,
509,
284,
5330,
16,
453,
330,
17128,
24194,
751,
5824,
13,
288,
3639,
8706,
436,
31,
3639,
467,
7037,
4159,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
25602,
1616,
1769,
3639,
368,
732,
2727,
1404,
1608,
358,
10490,
302,
301,
410,
4671,
16,
309,
326,
1522,
353,
9957,
463,
2046,
3639,
309,
261,
1096,
18,
291,
49,
6159,
40,
507,
10756,
288,
5411,
436,
273,
394,
8706,
12,
4366,
6260,
1769,
5411,
436,
18,
7857,
273,
1522,
18,
26321,
5621,
5411,
331,
11406,
4820,
18,
1289,
1046,
12,
86,
1769,
5411,
1522,
18,
542,
2050,
476,
12,
3767,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
284,
5330,
1839,
4159,
3639,
514,
4889,
31,
3639,
509,
1014,
31,
3639,
1620,
12,
507,
2822,
13,
288,
5411,
648,
404,
30,
5411,
648,
576,
30,
7734,
4889,
273,
315,
4083,
4889,
14432,
7734,
1014,
273,
2974,
13616,
751,
18,
26498,
67,
11847,
31,
7734,
898,
31,
5411,
648,
890,
30,
7734,
4889,
273,
315,
266,
297,
14432,
7734,
1014,
273,
2974,
13616,
751,
18,
26498,
67,
862,
985,
31,
7734,
898,
31,
5411,
648,
1059,
30,
5411,
648,
1381,
30,
7734,
4889,
273,
315,
4482,
4889,
14432,
7734,
1014,
273,
2974,
13616,
751,
18,
26498,
67,
10066,
31,
7734,
898,
31,
5411,
648,
374,
30,
5411,
805,
30,
7734,
4889,
273,
315,
10211,
14432,
7734,
1014,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
1943,
42,
454,
12,
1943,
1522,
16,
10320,
87,
4159,
1616,
16,
509,
2072,
16,
509,
284,
5330,
16,
453,
330,
17128,
24194,
751,
5824,
13,
288,
3639,
8706,
436,
31,
3639,
467,
7037,
4159,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
25602,
1616,
1769,
3639,
368,
732,
2727,
1404,
1608,
358,
10490,
302,
301,
410,
4671,
16,
309,
326,
1522,
353,
9957,
463,
2046,
3639,
309,
261,
1096,
18,
291,
49,
6159,
40,
507,
10756,
288,
5411,
436,
273,
394,
8706,
12,
4366,
6260,
1769,
5411,
436,
18,
7857,
273,
1522,
18,
26321,
5621,
5411,
331,
11406,
4820,
18,
1289,
1046,
12,
86,
1769,
5411,
1522,
18,
542,
2050,
476,
12,
2
] |
synchronized (inserter) { onFailure(e, inserter); }
|
onFailure(e, inserter);
|
private void startInserter() { Logger.minor(this, "starting inserter"); SimpleFieldSet fs = exportPublicFieldSet(); // Remove some unnecessary fields that only cause collisions. // Delete entire ark.* field for now. Changing this and automatically moving to the new may be supported in future. fs.remove("ark"); fs.remove("location"); //fs.remove("version"); - keep version because of its significance in reconnection String s = fs.toString(); byte[] buf; try { buf = s.getBytes("UTF-8"); } catch (UnsupportedEncodingException e) { throw new Error("UTF-8 not supported"); } Bucket b = new SimpleReadOnlyArrayBucket(buf); FreenetURI uri = myARK.getInsertURI().setKeyType("USK").setSuggestedEdition(Node.this.myARKNumber); Logger.minor(this, "Inserting ARK: "+uri); synchronized (inserter) { inserter = new ClientPutter(this, b, uri, new ClientMetadata("text/plain") /* it won't quite fit in an SSK anyway */, Node.this.makeClient((short)0).getInserterContext(), chkPutScheduler, sskPutScheduler, RequestStarter.INTERACTIVE_PRIORITY_CLASS, false, false, this); } try { synchronized (inserter) { inserter.start(); } synchronized (this) { if(fs.get("physical.udp") == null) lastInsertedPeers = null; else { try { String[] all = fs.getAll("physical.udp"); Peer[] peers = new Peer[all.length]; for(int i=0;i<all.length;i++) peers[i] = new Peer(all[i], false); lastInsertedPeers = peers; } catch (PeerParseException e1) { Logger.error(this, "Error parsing own ref: "+e1+" : "+fs.get("physical.udp"), e1); } catch (UnknownHostException e1) { Logger.error(this, "Error parsing own ref: "+e1+" : "+fs.get("physical.udp"), e1); } } } } catch (InserterException e) { synchronized (inserter) { onFailure(e, inserter); } } }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/cbc8d02e7f68958d17b1b62385b39f3b1675daf1/Node.java/clean/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
787,
382,
550,
387,
1435,
288,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
18526,
316,
550,
387,
8863,
25083,
202,
5784,
974,
694,
2662,
273,
3359,
4782,
974,
694,
5621,
25083,
202,
759,
3581,
2690,
19908,
1466,
716,
1338,
4620,
27953,
18,
25083,
202,
759,
2504,
7278,
419,
79,
4509,
652,
364,
2037,
18,
1680,
18183,
333,
471,
6635,
12499,
358,
326,
394,
2026,
506,
3260,
316,
3563,
18,
1082,
202,
2556,
18,
4479,
2932,
1313,
8863,
1082,
202,
2556,
18,
4479,
2932,
3562,
8863,
1082,
202,
759,
2556,
18,
4479,
2932,
1589,
8863,
300,
3455,
1177,
2724,
434,
2097,
1573,
1507,
1359,
316,
283,
4071,
25083,
202,
780,
272,
273,
2662,
18,
10492,
5621,
25083,
202,
7229,
8526,
1681,
31,
1082,
202,
698,
288,
9506,
202,
4385,
273,
272,
18,
588,
2160,
2932,
5159,
17,
28,
8863,
1082,
202,
97,
1044,
261,
8544,
13836,
425,
13,
288,
9506,
202,
12849,
394,
1068,
2932,
5159,
17,
28,
486,
3260,
8863,
1082,
202,
97,
25083,
202,
4103,
324,
273,
394,
4477,
12066,
1076,
4103,
12,
4385,
1769,
25083,
202,
42,
2842,
278,
3098,
2003,
273,
3399,
9584,
18,
588,
4600,
3098,
7675,
542,
22100,
2932,
3378,
47,
20387,
542,
55,
28892,
41,
1460,
12,
907,
18,
2211,
18,
4811,
9584,
1854,
1769,
25083,
202,
3328,
18,
17364,
12,
2211,
16,
315,
4600,
310,
6052,
47,
30,
13773,
1650,
1769,
25083,
202,
22043,
261,
267,
550,
387,
13,
288,
9506,
202,
267,
550,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
787,
382,
550,
387,
1435,
288,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
18526,
316,
550,
387,
8863,
25083,
202,
5784,
974,
694,
2662,
273,
3359,
4782,
974,
694,
5621,
25083,
202,
759,
3581,
2690,
19908,
1466,
716,
1338,
4620,
27953,
18,
25083,
202,
759,
2504,
7278,
419,
79,
4509,
652,
364,
2037,
18,
1680,
18183,
333,
471,
6635,
12499,
358,
326,
394,
2026,
506,
3260,
316,
3563,
18,
1082,
202,
2556,
18,
4479,
2932,
1313,
8863,
1082,
202,
2556,
18,
4479,
2932,
3562,
8863,
1082,
202,
759,
2556,
18,
4479,
2932,
1589,
8863,
300,
3455,
1177,
2724,
434,
2097,
1573,
1507,
1359,
316,
283,
4071,
25083,
202,
780,
272,
273,
2662,
18,
2
] |
public void close() throws IOException { super.close(); }
|
public synchronized void close() throws IOException { super.close(); }
|
public void close() throws IOException { super.close(); }
|
9279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9279/01d75cf2000ffbe9d8a22b16221afa14e5f24d86/SaslInputStream.java/clean/java/CyrusSasl/SaslInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1746,
1435,
1216,
1860,
225,
288,
1377,
2240,
18,
4412,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1746,
1435,
1216,
1860,
225,
288,
1377,
2240,
18,
4412,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (logStatic.isDebugEnabled()) { logStatic.debug("CA: Unknown directory service type: " + serverType);
|
if (log.isDebugEnabled()) { log.debug("CA: Unknown directory service type: " + serverType);
|
public static CertDirectoryServiceCA getCertDirectoryServiceCAInstance( int serverType, String serverUrl, ServiceBroker sb) { CertDirectoryServiceCA instance = null; LoggingService logStatic = (LoggingService) sb.getService(null, LoggingService.class, null); switch (serverType) { case TrustedCaPolicy.COUGAAR_OPENLDAP: instance = new OpenLdapCertDirectoryService(serverUrl, sb); break; default: // Net Tools does not support CA functions programmatically. if (logStatic.isDebugEnabled()) { logStatic.debug("CA: Unknown directory service type: " + serverType); } } return instance; }
|
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/d4e47362039c7c798bc93902ad05faecb8f7bed0/CertDirectoryServiceFactory.java/buggy/securityservices/src/org/cougaar/core/security/crypto/ldap/CertDirectoryServiceFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
11921,
2853,
1179,
3587,
1927,
1051,
2853,
1179,
3587,
1442,
12,
25083,
1377,
509,
1438,
559,
16,
514,
1438,
1489,
16,
25083,
1377,
1956,
11194,
2393,
13,
225,
288,
565,
11921,
2853,
1179,
3587,
791,
273,
446,
31,
565,
10253,
1179,
613,
5788,
273,
261,
7735,
1179,
13,
1377,
2393,
18,
588,
1179,
12,
2011,
16,
1082,
565,
10253,
1179,
18,
1106,
16,
446,
1769,
565,
1620,
261,
3567,
559,
13,
288,
565,
648,
30645,
23508,
2582,
18,
3865,
57,
25043,
985,
67,
11437,
15496,
30,
1377,
791,
273,
394,
3502,
18437,
5461,
2853,
1179,
12,
3567,
1489,
16,
2393,
1769,
1377,
898,
31,
565,
805,
30,
1377,
368,
8503,
19089,
1552,
486,
2865,
6425,
4186,
5402,
26500,
1230,
18,
1377,
309,
261,
1330,
5788,
18,
291,
2829,
1526,
10756,
288,
202,
1330,
5788,
18,
4148,
2932,
3587,
30,
9077,
1867,
1156,
618,
30,
315,
397,
1438,
559,
1769,
1377,
289,
565,
289,
565,
327,
791,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
11921,
2853,
1179,
3587,
1927,
1051,
2853,
1179,
3587,
1442,
12,
25083,
1377,
509,
1438,
559,
16,
514,
1438,
1489,
16,
25083,
1377,
1956,
11194,
2393,
13,
225,
288,
565,
11921,
2853,
1179,
3587,
791,
273,
446,
31,
565,
10253,
1179,
613,
5788,
273,
261,
7735,
1179,
13,
1377,
2393,
18,
588,
1179,
12,
2011,
16,
1082,
565,
10253,
1179,
18,
1106,
16,
446,
1769,
565,
1620,
261,
3567,
559,
13,
288,
565,
648,
30645,
23508,
2582,
18,
3865,
57,
25043,
985,
67,
11437,
15496,
30,
1377,
791,
273,
394,
3502,
18437,
5461,
2853,
1179,
12,
3567,
1489,
16,
2393,
1769,
1377,
898,
31,
565,
805,
30,
1377,
368,
8503,
19089,
1552,
486,
2865,
6425,
4186,
2
] |
remoteStatus.updateFromInfo(fetchInfo(client, remoteStatus));
|
remoteStatus.updateFromInfo(fetchInfo(client, remoteStatus, monitor));
|
private RemoteResourceStatus[] collectRemoteStatuses(ISVNStatus[] statuses, ISVNClientAdapter client) { RemoteResourceStatus[] result = new RemoteResourceStatus[statuses.length]; Arrays.sort(statuses, new Comparator() { public int compare(Object o1, Object o2) { return ((ISVNStatus) o1).getPath().compareTo(((ISVNStatus) o2).getPath()); } }); for (int i = 0; i < statuses.length; i++) { if ((SVNStatusKind.UNVERSIONED == statuses[i].getTextStatus() && (!SVNStatusKind.ADDED.equals(statuses[i].getTextStatus())))) { result[i] = RemoteResourceStatus.NONE; } else { RemoteResourceStatus remoteStatus = new RemoteResourceStatus(statuses[i]);// if ((remoteStatus.getNodeKind() == SVNNodeKind.UNKNOWN) ||// (remoteStatus.getLastChangedDate() == null) ||// (remoteStatus.getLastChangedRevision() == null) ||// (remoteStatus.getLastCommitAuthor() == null) ||// (remoteStatus.getRevision() == null) ||// (remoteStatus.getUrlString() == null))// { remoteStatus.updateFromInfo(fetchInfo(client, remoteStatus));// } result[i] = remoteStatus; } } return result; }
|
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/f19497b6cb60174f7e9992c588cab7207ecdd889/StatusAndInfoCommand.java/clean/subclipse/core/src/org/tigris/subversion/subclipse/core/client/StatusAndInfoCommand.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
6304,
1420,
1482,
8526,
3274,
5169,
15220,
12,
5127,
58,
50,
1482,
8526,
13516,
16,
4437,
58,
50,
1227,
4216,
1004,
13,
565,
288,
377,
202,
5169,
1420,
1482,
8526,
563,
273,
394,
6304,
1420,
1482,
63,
21655,
18,
2469,
15533,
3639,
5647,
18,
3804,
12,
21655,
16,
394,
13359,
1435,
288,
1082,
202,
482,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
9506,
202,
2463,
14015,
5127,
58,
50,
1482,
13,
320,
21,
2934,
588,
743,
7675,
9877,
774,
12443,
12,
5127,
58,
50,
1482,
13,
320,
22,
2934,
588,
743,
10663,
1082,
202,
97,
2398,
202,
3639,
15549,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
13516,
18,
2469,
31,
277,
27245,
288,
540,
202,
430,
14015,
23927,
50,
1482,
5677,
18,
2124,
5757,
2056,
422,
13516,
63,
77,
8009,
588,
1528,
1482,
1435,
597,
16051,
23927,
50,
1482,
5677,
18,
1880,
7660,
18,
14963,
12,
21655,
63,
77,
8009,
588,
1528,
1482,
1435,
3719,
3719,
540,
202,
95,
540,
202,
202,
2088,
63,
77,
65,
273,
6304,
1420,
1482,
18,
9826,
31,
540,
202,
97,
540,
202,
12107,
540,
202,
95,
540,
202,
202,
5169,
1420,
1482,
2632,
1482,
273,
394,
6304,
1420,
1482,
12,
21655,
63,
77,
19226,
759,
540,
202,
202,
430,
14015,
7222,
1482,
18,
588,
907,
5677,
1435,
422,
29537,
50,
907,
5677,
18,
14737,
13,
747,
759,
540,
9506,
202,
12,
7222,
1482,
18,
588,
3024,
5033,
1626,
1435,
422,
446,
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,
6304,
1420,
1482,
8526,
3274,
5169,
15220,
12,
5127,
58,
50,
1482,
8526,
13516,
16,
4437,
58,
50,
1227,
4216,
1004,
13,
565,
288,
377,
202,
5169,
1420,
1482,
8526,
563,
273,
394,
6304,
1420,
1482,
63,
21655,
18,
2469,
15533,
3639,
5647,
18,
3804,
12,
21655,
16,
394,
13359,
1435,
288,
1082,
202,
482,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
9506,
202,
2463,
14015,
5127,
58,
50,
1482,
13,
320,
21,
2934,
588,
743,
7675,
9877,
774,
12443,
12,
5127,
58,
50,
1482,
13,
320,
22,
2934,
588,
743,
10663,
1082,
202,
97,
2398,
202,
3639,
15549,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
13516,
18,
2469,
2
] |
("msg.incompat.call", names[0], scope);
|
("msg.incompat.call", functionName, scope);
|
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (parmsLength < 0) { // Ugly: allow variable-arg constructors that need access to the // scope to get it from the Context. Cleanest solution would be // to modify the varargs form, but that would require users with // the old form to change their code. cx.ctorScope = scope; Object result = callVarargs(cx, thisObj, args, false); cx.ctorScope = null; return result; } if (!isStatic) { // OPT: cache "clazz"? Class clazz = method != null ? method.getDeclaringClass() : ctor.getDeclaringClass(); while (!clazz.isInstance(thisObj)) { thisObj = thisObj.getPrototype(); if (thisObj == null || !useDynamicScope) { // Couldn't find an object to call this on. throw NativeGlobal.typeError1 ("msg.incompat.call", names[0], scope); } } } Object[] invokeArgs; int i; if (parmsLength == args.length) { invokeArgs = args; // avoid copy loop if no conversions needed i = (types == null) ? parmsLength : 0; } else { invokeArgs = new Object[parmsLength]; i = 0; } for (; i < parmsLength; i++) { Object arg = (i < args.length) ? args[i] : Undefined.instance; if (types != null) { arg = convertArg(this, arg, types[i]); } invokeArgs[i] = arg; } try { Object result = method == null ? ctor.newInstance(invokeArgs) : doInvoke(thisObj, invokeArgs); return hasVoidReturn ? Undefined.instance : result; } catch (InvocationTargetException e) { throw JavaScriptException.wrapException(scope, e); } catch (IllegalAccessException e) { throw WrappedException.wrapException(e); } catch (InstantiationException e) { throw WrappedException.wrapException(e); } }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/49ee5104a9201354fbd63b6b9e1e0ea314785d03/FunctionObject.java/clean/js/rhino/src/org/mozilla/javascript/FunctionObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
29927,
1782,
411,
374,
13,
288,
5411,
368,
587,
75,
715,
30,
1699,
2190,
17,
3175,
19874,
716,
1608,
2006,
358,
326,
2398,
368,
2146,
358,
336,
518,
628,
326,
1772,
18,
9645,
395,
6959,
4102,
506,
5411,
368,
358,
5612,
326,
19732,
646,
16,
1496,
716,
4102,
2583,
3677,
598,
2398,
368,
326,
1592,
646,
358,
2549,
3675,
981,
18,
5411,
9494,
18,
30206,
3876,
273,
2146,
31,
5411,
1033,
563,
273,
745,
27232,
12,
71,
92,
16,
15261,
16,
833,
16,
629,
1769,
5411,
9494,
18,
30206,
3876,
273,
446,
31,
5411,
327,
563,
31,
3639,
289,
3639,
309,
16051,
291,
5788,
13,
288,
5411,
368,
16456,
30,
1247,
315,
830,
3638,
6,
35,
5411,
1659,
4003,
273,
707,
480,
446,
692,
707,
18,
588,
3456,
14682,
1435,
29159,
294,
15120,
18,
588,
3456,
14682,
5621,
5411,
1323,
16051,
830,
3638,
18,
291,
1442,
12,
2211,
2675,
3719,
288,
7734,
15261,
273,
15261,
18,
588,
15846,
5621,
7734,
309,
261,
2211,
2675,
422,
446,
747,
401,
1202,
9791,
3876,
13,
288,
10792,
368,
14312,
82,
1404,
1104,
392,
733,
358,
745,
333,
603,
18,
10792,
604,
16717,
5160,
18,
723,
668,
21,
13491,
7566,
3576,
18,
267,
16239,
18,
1991,
3113,
14117,
16,
2146,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
1033,
8526,
4356,
2615,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
29927,
1782,
411,
374,
13,
288,
5411,
368,
587,
75,
715,
30,
1699,
2190,
17,
3175,
19874,
716,
1608,
2006,
358,
326,
2398,
368,
2146,
358,
336,
518,
628,
326,
1772,
18,
9645,
395,
6959,
4102,
506,
5411,
368,
358,
5612,
326,
19732,
646,
16,
1496,
716,
4102,
2583,
3677,
598,
2398,
368,
326,
1592,
646,
358,
2549,
3675,
981,
18,
5411,
9494,
18,
30206,
3876,
273,
2146,
31,
5411,
1033,
563,
273,
745,
27232,
12,
71,
92,
16,
15261,
16,
833,
16,
629,
1769,
5411,
9494,
18,
30206,
3876,
273,
2
] |
RetargetAction action = new RetargetAction(getId(), WorkbenchMessages.getString("Workbench.move")); action.setToolTipText(WorkbenchMessages.getString("Workbench.moveToolTip")); window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.edit.move");
|
IWorkbenchAction action = new NewWizardAction(window); action.setId(getId()); ((WorkbenchWindow) window).addSubmenu(WorkbenchWindow.NEW_WIZARD_SUBMENU);
|
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(), WorkbenchMessages.getString("Workbench.move")); //$NON-NLS-1$ //$NON-NLS-2$ action.setToolTipText(WorkbenchMessages.getString("Workbench.moveToolTip")); //$NON-NLS-1$ window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.edit.move"); //$NON-NLS-1$ return action; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/017e0fe431ea8766e86884278f647e2f5227f395/ActionFactory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ActionFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
1082,
202,
430,
261,
5668,
422,
446,
13,
288,
9506,
202,
12849,
394,
2754,
5621,
1082,
202,
97,
1082,
202,
7055,
826,
1803,
1301,
273,
394,
17100,
826,
1803,
12,
26321,
9334,
4147,
22144,
5058,
18,
588,
780,
2932,
2421,
22144,
18,
8501,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
225,
4329,
3993,
17,
5106,
17,
22,
8,
1082,
202,
1128,
18,
542,
29250,
1528,
12,
2421,
22144,
5058,
18,
588,
780,
2932,
2421,
22144,
18,
8501,
29250,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
5668,
18,
588,
1988,
1179,
7675,
1289,
1988,
2223,
12,
1128,
1769,
1082,
202,
1128,
18,
542,
1803,
21768,
2932,
3341,
18,
20416,
18,
4881,
18,
4619,
18,
8501,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2463,
1301,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
1082,
202,
430,
261,
5668,
422,
446,
13,
288,
9506,
202,
12849,
394,
2754,
5621,
1082,
202,
97,
1082,
202,
7055,
826,
1803,
1301,
273,
394,
17100,
826,
1803,
12,
26321,
9334,
4147,
22144,
5058,
18,
588,
780,
2932,
2421,
22144,
18,
8501,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
225,
4329,
3993,
17,
5106,
17,
22,
8,
1082,
202,
1128,
18,
542,
29250,
1528,
12,
2421,
22144,
5058,
18,
588,
780,
2932,
2421,
22144,
18,
8501,
29250,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
5668,
18,
588,
1988,
1179,
7675,
1289,
1988,
2223,
12,
1128,
1769,
2
] |
today++; } } while (today <= endIdx) { tempValue1 = inReal[today++]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1;
|
unstablePeriod = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_CMO.ordinal()]) ; if( (unstablePeriod == 0) && ( (this.compatibility) == TA_Compatibility. TA_COMPATIBILITY_METASTOCK)) { savePrevValue = prevValue; prevGain = 0.0; prevLoss = 0.0; for( i=optInTimePeriod; i > 0; i-- ) { tempValue1 = inReal[today++]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; if( tempValue2 < 0 ) prevLoss -= tempValue2; else prevGain += tempValue2; }
|
public TA_RetCode CMO(int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int outIdx; int today, lookbackTotal, unstablePeriod, i; double prevGain, prevLoss, prevValue, savePrevValue; double tempValue1, tempValue2, tempValue3, tempValue4; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 14; else if (((int) optInTimePeriod < 2) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; outBegIdx.value = 0; outNbElement.value = 0; lookbackTotal = CMO_Lookback(optInTimePeriod); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) return TA_RetCode.TA_SUCCESS; outIdx = 0; if (optInTimePeriod == 1) { outBegIdx.value = startIdx; i = (endIdx - startIdx) + 1; outNbElement.value = i; System.arraycopy(inReal, 0, outReal, 0, i); return TA_RetCode.TA_SUCCESS; } today = startIdx - lookbackTotal; prevValue = inReal[today]; unstablePeriod = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_CMO .ordinal()]); if ((unstablePeriod == 0) && ((this.compatibility) == TA_Compatibility.TA_COMPATIBILITY_METASTOCK)) { savePrevValue = prevValue; prevGain = 0.0; prevLoss = 0.0; for (i = optInTimePeriod; i > 0; i--) { tempValue1 = inReal[today++]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; if (tempValue2 < 0) prevLoss -= tempValue2; else prevGain += tempValue2; } tempValue1 = prevLoss / optInTimePeriod; tempValue2 = prevGain / optInTimePeriod; tempValue3 = tempValue2 - tempValue1; tempValue4 = tempValue1 + tempValue2; if (!(((-0.00000001) < tempValue4) && (tempValue4 < 0.00000001))) outReal[outIdx++] = 100 * (tempValue3 / tempValue4); else outReal[outIdx++] = 0.0; if (today > endIdx) { outBegIdx.value = startIdx; outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } today -= optInTimePeriod; prevValue = savePrevValue; } prevGain = 0.0; prevLoss = 0.0; today++; for (i = optInTimePeriod; i > 0; i--) { tempValue1 = inReal[today++]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; if (tempValue2 < 0) prevLoss -= tempValue2; else prevGain += tempValue2; } prevLoss /= optInTimePeriod; prevGain /= optInTimePeriod; if (today > startIdx) { tempValue1 = prevGain + prevLoss; if (!(((-0.00000001) < tempValue1) && (tempValue1 < 0.00000001))) outReal[outIdx++] = 100.0 * ((prevGain - prevLoss) / tempValue1); else outReal[outIdx++] = 0.0; } else { while (today < startIdx) { tempValue1 = inReal[today]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; prevLoss *= (optInTimePeriod - 1); prevGain *= (optInTimePeriod - 1); if (tempValue2 < 0) prevLoss -= tempValue2; else prevGain += tempValue2; prevLoss /= optInTimePeriod; prevGain /= optInTimePeriod; today++; } } while (today <= endIdx) { tempValue1 = inReal[today++]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; prevLoss *= (optInTimePeriod - 1); prevGain *= (optInTimePeriod - 1); if (tempValue2 < 0) prevLoss -= tempValue2; else prevGain += tempValue2; prevLoss /= optInTimePeriod; prevGain /= optInTimePeriod; if (!(((-0.00000001) < tempValue1) && (tempValue1 < 0.00000001))) outReal[outIdx++] = 100.0 * ((prevGain - prevLoss) / (prevGain + prevLoss)); else outReal[outIdx++] = 0.0; } outBegIdx.value = startIdx; outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; }
|
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
385,
5980,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1082,
202,
9056,
29205,
63,
5717,
288,
202,
202,
474,
596,
4223,
31,
202,
202,
474,
10074,
16,
2324,
823,
5269,
16,
640,
15021,
5027,
16,
277,
31,
202,
202,
9056,
2807,
43,
530,
16,
2807,
20527,
16,
2807,
620,
16,
1923,
9958,
620,
31,
202,
202,
9056,
1906,
620,
21,
16,
1906,
620,
22,
16,
1906,
620,
23,
16,
1906,
620,
24,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
202,
202,
430,
14015,
474,
13,
2153,
382,
26540,
422,
261,
4522,
18,
6236,
67,
4051,
8623,
1082,
202,
3838,
382,
26540,
273,
5045,
31,
202,
202,
12107,
309,
261,
12443,
474,
13,
2153,
382,
26540,
411,
576,
13,
9506,
202,
20081,
14015,
474,
13,
2153,
382,
26540,
405,
25259,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
16234,
67,
8388,
31,
202,
202,
659,
24059,
4223,
18,
1132,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
385,
5980,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1082,
202,
9056,
29205,
63,
5717,
288,
202,
202,
474,
596,
4223,
31,
202,
202,
474,
10074,
16,
2324,
823,
5269,
16,
640,
15021,
5027,
16,
277,
31,
202,
202,
9056,
2807,
43,
530,
16,
2807,
20527,
16,
2807,
620,
16,
1923,
9958,
620,
31,
202,
202,
9056,
1906,
620,
21,
16,
1906,
620,
22,
16,
1906,
620,
23,
16,
1906,
620,
24,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
2
] |
backedOffPercent.report((double)(routingBackedOffUntil-lastSampleTime)/(double)(now-lastSampleTime));
|
backedOffPercent.report((double)(localRoutingBackedOffUntil - lastSampleTime)/(double)(now - lastSampleTime));
|
private void reportBackoffStatus(long now) { if(now > lastSampleTime) { if (now > routingBackedOffUntil) { if (lastSampleTime > routingBackedOffUntil) { backedOffPercent.report(0.0); } else { backedOffPercent.report((double)(routingBackedOffUntil-lastSampleTime)/(double)(now-lastSampleTime)); } } else { backedOffPercent.report(1.0); } } lastSampleTime = now; }
|
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/7575bc3fb32360236cef62f655076b5de182f7d4/PeerNode.java/buggy/src/freenet/node/PeerNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2605,
16757,
1482,
12,
5748,
2037,
13,
288,
202,
202,
430,
12,
3338,
405,
1142,
8504,
950,
13,
288,
1082,
202,
430,
261,
3338,
405,
7502,
2711,
329,
7210,
9716,
13,
288,
9506,
202,
430,
261,
2722,
8504,
950,
405,
7502,
2711,
329,
7210,
9716,
13,
288,
6862,
202,
823,
329,
7210,
8410,
18,
6006,
12,
20,
18,
20,
1769,
9506,
202,
97,
469,
288,
6862,
202,
823,
329,
7210,
8410,
18,
6006,
12443,
9056,
21433,
16529,
2711,
329,
7210,
9716,
17,
2722,
8504,
950,
13176,
12,
9056,
21433,
3338,
17,
2722,
8504,
950,
10019,
9506,
202,
97,
1082,
202,
97,
469,
288,
9506,
202,
823,
329,
7210,
8410,
18,
6006,
12,
21,
18,
20,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2722,
8504,
950,
273,
2037,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2605,
16757,
1482,
12,
5748,
2037,
13,
288,
202,
202,
430,
12,
3338,
405,
1142,
8504,
950,
13,
288,
1082,
202,
430,
261,
3338,
405,
7502,
2711,
329,
7210,
9716,
13,
288,
9506,
202,
430,
261,
2722,
8504,
950,
405,
7502,
2711,
329,
7210,
9716,
13,
288,
6862,
202,
823,
329,
7210,
8410,
18,
6006,
12,
20,
18,
20,
1769,
9506,
202,
97,
469,
288,
6862,
202,
823,
329,
7210,
8410,
18,
6006,
12443,
9056,
21433,
16529,
2711,
329,
7210,
9716,
17,
2722,
8504,
950,
13176,
12,
9056,
21433,
3338,
17,
2722,
8504,
950,
10019,
9506,
202,
97,
1082,
202,
97,
469,
288,
9506,
202,
823,
329,
7210,
8410,
18,
6006,
12,
21,
18,
20,
2
] |
System.out.println( "" ); String zipStr = baos.toString(); for ( loop = 0; loop < zipStr.length(); loop++ ) { System.out.print( zipStr.charAt(loop) ); } System.out.println( "" ); zipStr = base64.toString(); for ( loop = 0; loop < zipStr.length(); loop++ ) { System.out.print( zipStr.charAt(loop) ); } System.out.println( "" ); ** end debug code */ out.write( "<packetData count=\"" ); out.write( Integer.toString(data.length) ); out.write( "\" isGzipped=\"true\" >" ); out.write( base64.toString() ); out.write( "</packetData>" );
|
public static void encode( Packet packet, Writer out ) throws IOException { // First, validate our input. if ( null == packet ) { throw new IllegalArgumentException( "The packet is null." ); } if ( null == out ) { throw new IllegalArgumentException( "The writer is null." ); } // Encode the packet object to the stream. out.write( "<packet type=\"" ); out.write( Integer.toString(packet.getCommand()) ); out.write( "\" >" ); // Do we have any data in this packet? // N.B. this action will unzip the packet. Object[] data = packet.getData(); if ( null != data ) { // XML encode the data and GZIP it. ByteArrayOutputStream baos = new ByteArrayOutputStream(); Writer zipOut = new BufferedWriter ( new OutputStreamWriter ( new GZIPOutputStream(baos) ) ); PacketEncoder.encodeData( packet, zipOut ); zipOut.close(); // Base64 encode the commpressed data. // Please note, I couldn't get anything other than a // straight stream-to-stream encoding to work. byte[] zipData = baos.toByteArray(); ByteArrayOutputStream base64 = new ByteArrayOutputStream ( (4*zipData.length+2)/3 ); Base64.encode( new ByteArrayInputStream(zipData), base64, false ); /* begin debug code ** int loop; for ( loop = 0; loop < zipData.length; loop++ ) { System.out.print( (char) zipData[loop] ); } System.out.println( "" ); String zipStr = baos.toString(); for ( loop = 0; loop < zipStr.length(); loop++ ) { System.out.print( zipStr.charAt(loop) ); } System.out.println( "" ); zipStr = base64.toString(); for ( loop = 0; loop < zipStr.length(); loop++ ) { System.out.print( zipStr.charAt(loop) ); } System.out.println( "" ); ** end debug code */ // Save the compressed data as the packetData CDATA. out.write( "<packetData count=\"" ); out.write( Integer.toString(data.length) ); out.write( "\" isGzipped=\"true\" >" ); out.write( base64.toString() ); out.write( "</packetData>" ); } // End have-data // Finish off the packet. out.write( "</packet>" ); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/5f077104f6d702810b2c4490ff78502719c53f73/PacketEncoder.java/buggy/megamek/src/megamek/common/xml/PacketEncoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2017,
12,
11114,
4414,
16,
5497,
596,
262,
3639,
1216,
1860,
565,
288,
3639,
368,
5783,
16,
1954,
3134,
810,
18,
3639,
309,
261,
446,
422,
4414,
262,
288,
5411,
604,
394,
2754,
12,
315,
1986,
4414,
353,
446,
1199,
11272,
3639,
289,
3639,
309,
261,
446,
422,
596,
262,
288,
5411,
604,
394,
2754,
12,
315,
1986,
2633,
353,
446,
1199,
11272,
3639,
289,
3639,
368,
6240,
326,
4414,
733,
358,
326,
1407,
18,
3639,
596,
18,
2626,
12,
3532,
11482,
618,
13186,
11272,
3639,
596,
18,
2626,
12,
2144,
18,
10492,
12,
11482,
18,
588,
2189,
10756,
11272,
3639,
596,
18,
2626,
12,
7023,
405,
6,
11272,
3639,
368,
2256,
732,
1240,
1281,
501,
316,
333,
4414,
35,
3639,
368,
423,
18,
38,
18,
333,
1301,
903,
20259,
326,
4414,
18,
3639,
1033,
8526,
501,
273,
4414,
18,
588,
751,
5621,
3639,
309,
261,
446,
480,
501,
262,
288,
5411,
368,
3167,
2017,
326,
501,
471,
24013,
518,
18,
5411,
11559,
17548,
273,
394,
11559,
5621,
5411,
5497,
3144,
1182,
273,
394,
22490,
7734,
261,
394,
24248,
10792,
261,
394,
24013,
4632,
12,
12124,
538,
13,
262,
10792,
11272,
5411,
11114,
7204,
18,
3015,
751,
12,
4414,
16,
3144,
1182,
11272,
5411,
3144,
1182,
18,
4412,
5621,
5411,
368,
3360,
1105,
2017,
326,
532,
1291,
4638,
501,
18,
5411,
368,
7801,
4721,
16,
467,
17991,
1404,
336,
6967,
1308,
2353,
279,
5411,
368,
21251,
1407,
17,
869,
17,
3256,
2688,
358,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2017,
12,
11114,
4414,
16,
5497,
596,
262,
3639,
1216,
1860,
565,
288,
3639,
368,
5783,
16,
1954,
3134,
810,
18,
3639,
309,
261,
446,
422,
4414,
262,
288,
5411,
604,
394,
2754,
12,
315,
1986,
4414,
353,
446,
1199,
11272,
3639,
289,
3639,
309,
261,
446,
422,
596,
262,
288,
5411,
604,
394,
2754,
12,
315,
1986,
2633,
353,
446,
1199,
11272,
3639,
289,
3639,
368,
6240,
326,
4414,
733,
358,
326,
1407,
18,
3639,
596,
18,
2626,
12,
3532,
11482,
618,
13186,
11272,
3639,
596,
18,
2626,
12,
2144,
18,
10492,
12,
11482,
18,
588,
2189,
10756,
11272,
3639,
596,
18,
2626,
12,
7023,
405,
6,
11272,
3639,
368,
2256,
732,
1240,
1281,
2
] |
|
pc = finallyStack[tryStackTop];
|
pc = finallyStack[tryStackTop - 1];
|
public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = Undefined.instance; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = Undefined.instance; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* 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.instance; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.instanceOf(lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(rhs, lhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); 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--]; lhs = stack[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--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (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--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theData.itsThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs); pc += 2; break; case TokenStream.NEW : count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 2; break; case TokenStream.TYPEOF : lhs = stack[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 : stack[++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 : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theData.itsThisObj; 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 : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[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--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[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 NativeClosure(cx, scope, theData.itsNestedFunctions[i]); 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.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw jsx; stack[0] = jsx; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } /* debug only, will be going soon catch (ArrayIndexOutOfBoundsException oob) { System.out.println("OOB @ " + pc + " " + oob + " in " + theData.itsName + " " + oob.getMessage()); throw oob; } */ catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) throw jx; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/32feff141e5ccc7b1b5e5423d181b6baf24616a0/Interpreter.java/clean/js/rhino/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
1333,
1031,
15533,
18701,
1033,
8526,
4153,
273,
446,
31,
7734,
509,
277,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
309,
261,
77,
405,
374,
13,
288,
5411,
4153,
273,
394,
1033,
63,
77,
15533,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
326,
751,
18,
1282,
3092,
1388,
18,
588,
1662,
1380,
5621,
277,
27245,
288,
7734,
309,
261,
77,
1545,
326,
751,
18,
1282,
382,
2615,
18,
2469,
13,
10792,
4153,
63,
77,
65,
273,
22243,
18,
1336,
31,
7734,
469,
4766,
565,
4153,
63,
77,
65,
273,
326,
751,
18,
1282,
382,
2615,
63,
77,
15533,
7734,
289,
5411,
364,
261,
274,
277,
411,
4153,
18,
2469,
31,
277,
27245,
7734,
4153,
63,
77,
65,
273,
22243,
18,
1336,
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,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2
] |
img[i] = ImageTools.padImage(img[i], myReader.getSizeX(id), myReader.getSizeY(id));
|
public void open(String id) { wait(true); try { File f = new File(id); id = f.getAbsolutePath(); int num = myReader.getImageCount(id); ProgressMonitor progress = new ProgressMonitor(this, "Reading " + id, null, 0, num + 1); sizeZ = myReader.getSizeZ(id); sizeT = myReader.getSizeT(id); sizeC = myReader.getSizeC(id); if (myReader.isRGB(id)) sizeC = (sizeC + 2) / 3; // adjust for RGB progress.setProgress(1); BufferedImage[] img = new BufferedImage[num]; for (int i=0; i<num; i++) { if (progress.isCanceled()) break; img[i] = myReader.openImage(id, i); img[i] = ImageTools.padImage(img[i], myReader.getSizeX(id), myReader.getSizeY(id)); if (i == 0) setImages(id, myReader, img); progress.setProgress(i + 2); } myReader.close(); } catch (Exception exc) { exc.printStackTrace(); wait(false); return; } wait(false); }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/1dad97109502ab50b64961f815c92dd7b4bd7854/ImageViewer.java/clean/loci/formats/ImageViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1696,
12,
780,
612,
13,
288,
565,
2529,
12,
3767,
1769,
565,
775,
288,
1377,
1387,
284,
273,
394,
1387,
12,
350,
1769,
1377,
612,
273,
284,
18,
588,
10368,
743,
5621,
1377,
509,
818,
273,
3399,
2514,
18,
588,
2040,
1380,
12,
350,
1769,
1377,
10980,
7187,
4007,
273,
394,
10980,
7187,
12,
2211,
16,
3639,
315,
15714,
315,
397,
612,
16,
446,
16,
374,
16,
818,
397,
404,
1769,
1377,
963,
62,
273,
3399,
2514,
18,
588,
1225,
62,
12,
350,
1769,
1377,
963,
56,
273,
3399,
2514,
18,
588,
1225,
56,
12,
350,
1769,
1377,
963,
39,
273,
3399,
2514,
18,
588,
1225,
39,
12,
350,
1769,
1377,
309,
261,
4811,
2514,
18,
291,
11343,
12,
350,
3719,
963,
39,
273,
261,
1467,
39,
397,
576,
13,
342,
890,
31,
368,
5765,
364,
11510,
1377,
4007,
18,
542,
5491,
12,
21,
1769,
1377,
12362,
8526,
3774,
273,
394,
12362,
63,
2107,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2107,
31,
277,
27245,
288,
3639,
309,
261,
8298,
18,
291,
23163,
10756,
898,
31,
3639,
3774,
63,
77,
65,
273,
3399,
2514,
18,
3190,
2040,
12,
350,
16,
277,
1769,
3639,
3774,
63,
77,
65,
273,
3421,
10348,
18,
6982,
2040,
12,
6081,
63,
77,
6487,
3399,
2514,
18,
588,
1225,
60,
12,
350,
3631,
1850,
3399,
2514,
18,
588,
1225,
61,
12,
350,
10019,
3639,
309,
261,
77,
422,
374,
13,
444,
8946,
12,
350,
16,
3399,
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,
1696,
12,
780,
612,
13,
288,
565,
2529,
12,
3767,
1769,
565,
775,
288,
1377,
1387,
284,
273,
394,
1387,
12,
350,
1769,
1377,
612,
273,
284,
18,
588,
10368,
743,
5621,
1377,
509,
818,
273,
3399,
2514,
18,
588,
2040,
1380,
12,
350,
1769,
1377,
10980,
7187,
4007,
273,
394,
10980,
7187,
12,
2211,
16,
3639,
315,
15714,
315,
397,
612,
16,
446,
16,
374,
16,
818,
397,
404,
1769,
1377,
963,
62,
273,
3399,
2514,
18,
588,
1225,
62,
12,
350,
1769,
1377,
963,
56,
273,
3399,
2514,
18,
588,
1225,
56,
12,
350,
1769,
1377,
963,
39,
273,
3399,
2514,
18,
588,
1225,
39,
12,
350,
1769,
1377,
309,
261,
4811,
2514,
18,
2
] |
|
public void parse(Reader input)
|
public void parse(String file)
|
public void parse(Reader input) throws IOException { int ldrLength = 24; if (! input.ready()) reportFatalError("Unable to read input"); if (mh != null) mh.startCollection(); while(true) { Leader leader = null; char[] ldr = new char[24]; if (input.read(ldr) == -1) break; try { leader = new Leader(new String(ldr)); } catch (MarcException e) { if (eh != null) reportFatalError("Unable to parse leader"); return; } int baseAddress = leader.getBaseAddressOfData(); recordCounter += 24; if (mh != null) mh.startRecord(leader); int dirLength = leader.getBaseAddressOfData() - (24 + 1); int dirEntries = dirLength / 12; String[] tag = new String[dirEntries]; int[] length = new int[dirEntries]; if ((dirLength % 12) != 0 && eh != null) reportError("Invalid directory length"); for (int i = 0; i < dirEntries; i++) { char[] d = new char[3]; char[] e = new char[4]; char[] f = new char[5]; input.read(d); input.read(e); input.read(f); recordCounter += 12; tag[i] = new String(d); try { length[i] = Integer.parseInt(new String(e)); } catch (NumberFormatException nfe) { if (eh != null) reportError("Invalid directory entry"); } } if (input.read() != FT && eh != null) reportError("Directory not terminated"); recordCounter++; for (int i = 0; i < dirEntries; i++) { char field[] = new char[length[i]]; input.read(field); if (field[field.length -1] != FT && eh != null) reportError("Field not terminated"); recordCounter += length[i]; if (Tag.isControlField(tag[i])) { parseControlField(tag[i], field); } else { parseDataField(tag[i], field); } } if (input.read() != RT && eh != null) reportError("Record not terminated"); recordCounter++; if (recordCounter != leader.getRecordLength() && eh != null) reportError("Record length not equal to characters read"); fileCounter += recordCounter; recordCounter = 0; if (mh != null) mh.endRecord(); } input.close(); if (mh != null) mh.endCollection(); }
|
5019 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5019/7659624d52811e7f9b3996de3c5f53b8bdb2730b/MarcReader.java/clean/src/org/marc4j/MarcReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
780,
585,
13,
225,
202,
15069,
1860,
288,
202,
474,
328,
3069,
1782,
273,
4248,
31,
202,
430,
16051,
810,
18,
1672,
10756,
202,
565,
2605,
19593,
668,
2932,
3370,
358,
855,
810,
8863,
202,
430,
261,
81,
76,
480,
446,
13,
3196,
565,
17819,
18,
1937,
2532,
5621,
202,
17523,
12,
3767,
13,
288,
202,
565,
26048,
10302,
273,
446,
31,
202,
565,
1149,
8526,
328,
3069,
273,
394,
1149,
63,
3247,
15533,
202,
565,
309,
261,
2630,
18,
896,
12,
14796,
13,
422,
300,
21,
13,
898,
31,
202,
565,
775,
288,
202,
3639,
10302,
273,
394,
26048,
12,
2704,
514,
12,
14796,
10019,
202,
565,
289,
1044,
261,
49,
11828,
503,
425,
13,
288,
3196,
202,
430,
261,
73,
76,
480,
446,
13,
1875,
565,
2605,
19593,
668,
2932,
3370,
358,
1109,
10302,
8863,
202,
202,
2463,
31,
202,
565,
289,
3196,
565,
509,
1026,
1887,
273,
10302,
18,
588,
2171,
1887,
951,
751,
5621,
202,
565,
1409,
4789,
1011,
4248,
31,
202,
565,
309,
261,
81,
76,
480,
446,
13,
3196,
202,
81,
76,
18,
1937,
2115,
12,
27863,
1769,
202,
565,
509,
1577,
1782,
273,
10302,
18,
588,
2171,
1887,
951,
751,
1435,
300,
261,
3247,
397,
404,
1769,
202,
565,
509,
1577,
5400,
273,
1577,
1782,
342,
2593,
31,
202,
565,
514,
8526,
1047,
273,
394,
514,
63,
1214,
5400,
15533,
202,
565,
509,
8526,
769,
273,
394,
509,
63,
1214,
5400,
15533,
3196,
565,
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,
1109,
12,
780,
585,
13,
225,
202,
15069,
1860,
288,
202,
474,
328,
3069,
1782,
273,
4248,
31,
202,
430,
16051,
810,
18,
1672,
10756,
202,
565,
2605,
19593,
668,
2932,
3370,
358,
855,
810,
8863,
202,
430,
261,
81,
76,
480,
446,
13,
3196,
565,
17819,
18,
1937,
2532,
5621,
202,
17523,
12,
3767,
13,
288,
202,
565,
26048,
10302,
273,
446,
31,
202,
565,
1149,
8526,
328,
3069,
273,
394,
1149,
63,
3247,
15533,
202,
565,
309,
261,
2630,
18,
896,
12,
14796,
13,
422,
300,
21,
13,
898,
31,
202,
565,
775,
288,
202,
3639,
10302,
273,
394,
26048,
12,
2704,
514,
12,
14796,
10019,
202,
565,
289,
1044,
261,
49,
11828,
503,
2
] |
{ inventory.clear();
|
protected void processResults() { super.processResults(); // Fetch updated equipment if ( requestType == CLOSET ) { parseCloset(); // If the person has meat paste, or is able to create // meat paste, then do so and then parse the combines // page. Otherwise, go to the equipment pages. boolean hasMeatPaste = KoLCharacter.inMuscleSign() || KoLCharacter.hasItem( PASTE, false ); if ( !hasMeatPaste ) { hasMeatPaste = !StaticEntity.getBooleanProperty( "lazyLoadInventory" ) && KoLCharacter.hasItem( PASTE, true ); } if ( hasMeatPaste ) { AdventureDatabase.retrieveItem( PASTE ); KoLRequest combines = new KoLRequest( KoLCharacter.inMuscleSign() ? "knoll.php?place=paster" : "combine.php" ); combines.run(); Matcher selectMatcher = SELECT_PATTERN.matcher( combines.responseText ); if ( selectMatcher.find() ) { inventory.clear(); parseCloset( selectMatcher.group(), inventory ); } } else { (new EquipmentRequest( EquipmentRequest.CONSUMABLES )).run(); (new EquipmentRequest( EquipmentRequest.MISCELLANEOUS )).run(); } (new EquipmentRequest( EquipmentRequest.EQUIPMENT )).run(); return; } if ( requestType == MISCELLANEOUS || requestType == CONSUMABLES ) { parseQuestItems( responseText ); return; } // In valhalla, you can't make outfits and have no inventory. if ( responseText.indexOf( "Save as Custom Outfit" ) == -1 ) return; // Detect possible failure if ( requestType == CHANGE_ITEM || requestType == CHANGE_OUTFIT ) { Matcher resultMatcher = CELL_PATTERN.matcher( responseText ); if ( resultMatcher.find() ) { String result = resultMatcher.group(1).replaceAll( "</?b>", "" ); if ( result.indexOf( "You put" ) == -1 && result.indexOf( "You equip" ) == -1 && result.indexOf( "Item equipped" ) == -1 ) { KoLmafia.updateDisplay( ERROR_STATE, result ); return; } } } parseEquipment( this.responseText ); }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/cca8ef1fa74c245b1d81bb139782c2c2dfb0a9a1/EquipmentRequest.java/clean/src/net/sourceforge/kolmafia/EquipmentRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
3447,
1435,
202,
95,
202,
202,
9565,
18,
2567,
3447,
5621,
202,
202,
759,
8065,
3526,
1298,
11568,
202,
202,
430,
261,
27179,
422,
27775,
4043,
262,
202,
202,
95,
1082,
202,
2670,
4082,
542,
5621,
1082,
202,
759,
971,
326,
6175,
711,
1791,
270,
19401,
16,
578,
353,
7752,
358,
752,
1082,
202,
759,
1791,
270,
19401,
16,
1508,
741,
1427,
471,
1508,
1109,
326,
30933,
1082,
202,
759,
1363,
18,
225,
5272,
16,
1960,
358,
326,
1298,
11568,
4689,
18,
1082,
202,
6494,
711,
4667,
270,
52,
14725,
273,
1475,
83,
48,
7069,
18,
267,
49,
407,
2131,
2766,
1435,
747,
1475,
83,
48,
7069,
18,
5332,
1180,
12,
453,
9053,
41,
16,
629,
11272,
1082,
202,
430,
261,
401,
5332,
4667,
270,
52,
14725,
262,
1082,
202,
95,
9506,
202,
5332,
4667,
270,
52,
14725,
273,
401,
5788,
1943,
18,
588,
5507,
1396,
12,
315,
15998,
2563,
15059,
6,
262,
597,
6862,
202,
47,
83,
48,
7069,
18,
5332,
1180,
12,
453,
9053,
41,
16,
638,
11272,
1082,
202,
97,
1082,
202,
430,
261,
711,
4667,
270,
52,
14725,
262,
1082,
202,
95,
9506,
202,
1871,
616,
594,
4254,
18,
17466,
1180,
12,
453,
9053,
41,
11272,
9506,
202,
47,
83,
48,
691,
30933,
273,
394,
1475,
83,
48,
691,
12,
1475,
83,
48,
7069,
18,
267,
49,
407,
2131,
2766,
1435,
692,
315,
21112,
22382,
18,
2684,
35,
964,
33,
84,
2440,
6,
294,
315,
14082,
18,
2684,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
3447,
1435,
202,
95,
202,
202,
9565,
18,
2567,
3447,
5621,
202,
202,
759,
8065,
3526,
1298,
11568,
202,
202,
430,
261,
27179,
422,
27775,
4043,
262,
202,
202,
95,
1082,
202,
2670,
4082,
542,
5621,
1082,
202,
759,
971,
326,
6175,
711,
1791,
270,
19401,
16,
578,
353,
7752,
358,
752,
1082,
202,
759,
1791,
270,
19401,
16,
1508,
741,
1427,
471,
1508,
1109,
326,
30933,
1082,
202,
759,
1363,
18,
225,
5272,
16,
1960,
358,
326,
1298,
11568,
4689,
18,
1082,
202,
6494,
711,
4667,
270,
52,
14725,
273,
1475,
83,
48,
7069,
18,
267,
49,
407,
2131,
2766,
1435,
747,
1475,
83,
48,
7069,
18,
5332,
1180,
12,
453,
9053,
41,
2
] |
|
final ReteTuple child = new ReteTuple( leftTuple ); leftTuple.addLinkedTuple( child ); ((TupleSink) getTupleSinks().get( getTupleSinks().size() - 1 )).assertTuple( child, context, workingMemory );
|
this.sink.propagateNewTupleSink( (ReteTuple) leftTuple.getChildEntries().getFirst(), context, workingMemory );
|
public void updateNewNode(InternalWorkingMemory workingMemory, PropagationContext context) { this.attachingNewNode = true; final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this ); for ( final Iterator it = memory.getLeftTupleMemory().iterator(); it.hasNext(); ) { final ReteTuple leftTuple = (ReteTuple) it.next(); final ReteTuple child = new ReteTuple( leftTuple ); leftTuple.addLinkedTuple( child ); ((TupleSink) getTupleSinks().get( getTupleSinks().size() - 1 )).assertTuple( child, context, workingMemory ); } this.attachingNewNode = false; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/2bb6195a5ef32d74cc0c1c27fcd14cc3db2a27b6/AccumulateNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/AccumulateNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
1908,
907,
12,
3061,
14836,
6031,
5960,
6031,
16,
17311,
1186,
9095,
367,
1042,
819,
13,
288,
3639,
333,
18,
7331,
310,
1908,
907,
273,
638,
31,
3639,
727,
16393,
6031,
3778,
273,
261,
38,
1066,
6031,
13,
5960,
6031,
18,
588,
907,
6031,
12,
333,
11272,
3639,
364,
261,
727,
4498,
518,
273,
3778,
18,
588,
3910,
9038,
6031,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
5411,
727,
534,
12865,
9038,
2002,
9038,
273,
261,
7055,
73,
9038,
13,
518,
18,
4285,
5621,
5411,
727,
534,
12865,
9038,
1151,
273,
394,
534,
12865,
9038,
12,
2002,
9038,
11272,
5411,
2002,
9038,
18,
1289,
13174,
9038,
12,
1151,
11272,
5411,
14015,
9038,
11326,
13,
3181,
2268,
11326,
87,
7675,
588,
12,
3181,
2268,
11326,
87,
7675,
1467,
1435,
300,
404,
262,
2934,
11231,
9038,
12,
1151,
16,
28524,
7682,
819,
16,
28524,
7682,
5960,
6031,
11272,
3639,
289,
3639,
333,
18,
7331,
310,
1908,
907,
273,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
1089,
1908,
907,
12,
3061,
14836,
6031,
5960,
6031,
16,
17311,
1186,
9095,
367,
1042,
819,
13,
288,
3639,
333,
18,
7331,
310,
1908,
907,
273,
638,
31,
3639,
727,
16393,
6031,
3778,
273,
261,
38,
1066,
6031,
13,
5960,
6031,
18,
588,
907,
6031,
12,
333,
11272,
3639,
364,
261,
727,
4498,
518,
273,
3778,
18,
588,
3910,
9038,
6031,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
5411,
727,
534,
12865,
9038,
2002,
9038,
273,
261,
7055,
73,
9038,
13,
518,
18,
4285,
5621,
5411,
727,
534,
12865,
9038,
1151,
273,
394,
534,
12865,
9038,
12,
2002,
9038,
11272,
5411,
2002,
9038,
18,
1289,
13174,
9038,
12,
1151,
11272,
5411,
14015,
9038,
2
] |
result = EditorManager.saveAll(dirtyEditorList, true, window);
|
result = EditorManager.saveAll(dirtyEditorList, true, true, window);
|
public void run() { TableItem[] items = editorsTable.getSelection(); Adapter[] editorRef = new Adapter[items.length]; List dirtyEditorList = new ArrayList(); // store the editor references as editorsTable will // be disposed when focus is lost. for (int i = 0; i < items.length; i++) { editorRef[i] = (Adapter) items[i].getData(editorListData); Object element = editorRef[i].editorRef.getPart(false); if (editorRef[i].isDirty()) { dirtyEditorList.add(element); } } boolean result = true; if (dirtyEditorList.size() != 0) { result = EditorManager.saveAll(dirtyEditorList, true, window); } // now close the editors if (result) { for (int i = 0; i < editorRef.length; i++) { editorRef[i].close(); } } notifyEditorListViews(); destroyControl(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/11d256633aba9ab0e433113f97b9916e67ec0742/EditorList.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
3555,
1180,
8526,
1516,
273,
29431,
1388,
18,
588,
6233,
5621,
5411,
14238,
8526,
4858,
1957,
273,
394,
14238,
63,
3319,
18,
2469,
15533,
5411,
987,
9603,
6946,
682,
273,
394,
2407,
5621,
5411,
368,
1707,
326,
4858,
5351,
487,
29431,
1388,
903,
5411,
368,
506,
1015,
7423,
1347,
7155,
353,
13557,
18,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
7734,
4858,
1957,
63,
77,
65,
273,
261,
4216,
13,
1516,
63,
77,
8009,
588,
751,
12,
9177,
682,
751,
1769,
7734,
1033,
930,
273,
4858,
1957,
63,
77,
8009,
9177,
1957,
18,
588,
1988,
12,
5743,
1769,
7734,
309,
261,
9177,
1957,
63,
77,
8009,
291,
10785,
10756,
288,
10792,
9603,
6946,
682,
18,
1289,
12,
2956,
1769,
7734,
289,
5411,
289,
5411,
1250,
563,
273,
638,
31,
5411,
309,
261,
18013,
6946,
682,
18,
1467,
1435,
480,
374,
13,
288,
7734,
563,
273,
18451,
1318,
18,
5688,
1595,
12,
18013,
6946,
682,
16,
638,
16,
638,
16,
2742,
1769,
5411,
289,
5411,
368,
2037,
1746,
326,
29431,
5411,
309,
261,
2088,
13,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4858,
1957,
18,
2469,
31,
277,
27245,
288,
10792,
4858,
1957,
63,
77,
8009,
4412,
5621,
7734,
289,
5411,
289,
5411,
5066,
6946,
682,
9959,
5621,
5411,
5546,
3367,
5621,
3639,
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,
540,
1071,
918,
1086,
1435,
288,
5411,
3555,
1180,
8526,
1516,
273,
29431,
1388,
18,
588,
6233,
5621,
5411,
14238,
8526,
4858,
1957,
273,
394,
14238,
63,
3319,
18,
2469,
15533,
5411,
987,
9603,
6946,
682,
273,
394,
2407,
5621,
5411,
368,
1707,
326,
4858,
5351,
487,
29431,
1388,
903,
5411,
368,
506,
1015,
7423,
1347,
7155,
353,
13557,
18,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
7734,
4858,
1957,
63,
77,
65,
273,
261,
4216,
13,
1516,
63,
77,
8009,
588,
751,
12,
9177,
682,
751,
1769,
7734,
1033,
930,
273,
4858,
1957,
63,
77,
8009,
9177,
1957,
18,
588,
1988,
12,
5743,
1769,
7734,
309,
261,
9177,
2
] |
public Connection connect(String url, java.util.Properties info) throws SQLException { if (url == null || !url.startsWith(FIREBIRD_PROTOCOL)) { return null; } // end of if () try { FBConnectionRequestInfo conCri = FBConnectionHelper.getCri(info, null); // extract the user String user = info.getProperty(USER); if (user == null) user = conCri.getStringProperty(GDS.isc_dpb_user_name); if (user == null) throw new SQLException( "User for database connection not specified."); // extract the password String password = info.getProperty(PASSWORD); if (password == null) password = conCri.getStringProperty(GDS.isc_dpb_password); if (password == null) throw new SQLException( "Password for database connection not specified."); // extract the database URL String databaseURL = url.substring(FIREBIRD_PROTOCOL.length()); FBDataSource dataSource = (FBDataSource)urlToDataSourceMap.get(databaseURL); if (dataSource == null) { FBManagedConnectionFactory factory = new FBManagedConnectionFactory(); factory.setDatabase(databaseURL); // set connection request info factory.setConnectionRequestInfo(FBConnectionHelper.getCri( info, factory.getDefaultConnectionRequestInfo())); dataSource = (FBDataSource)factory.createConnectionFactory(); // urlToDataSourceMap.put(databaseURL, dataSource); } // end of if () return dataSource.getConnection(user, password); } catch(javax.resource.ResourceException resex) { throw new SQLException(resex.getMessage()); } }
|
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/9cf27406d17b25f7d34d0bda4d11841de282d260/FBDriver.java/buggy/src/org/firebirdsql/jdbc/FBDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
3077,
12,
780,
880,
16,
2252,
18,
1367,
18,
2297,
1123,
13,
3639,
1216,
6483,
565,
288,
3639,
309,
261,
718,
422,
446,
747,
401,
718,
18,
17514,
1190,
12,
1653,
862,
38,
7937,
40,
67,
16850,
3719,
540,
288,
5411,
327,
446,
31,
3639,
289,
368,
679,
434,
309,
1832,
7734,
775,
288,
5411,
478,
38,
1952,
23113,
356,
39,
566,
273,
1171,
478,
38,
1952,
2276,
18,
588,
39,
566,
12,
1376,
16,
446,
1769,
13491,
368,
2608,
326,
729,
5411,
514,
729,
273,
1123,
18,
588,
1396,
12,
4714,
1769,
13491,
309,
261,
1355,
422,
446,
13,
7734,
729,
273,
356,
39,
566,
18,
588,
780,
1396,
12,
43,
3948,
18,
291,
71,
67,
72,
5733,
67,
1355,
67,
529,
1769,
13491,
309,
261,
1355,
422,
446,
13,
7734,
604,
394,
6483,
12,
10792,
315,
1299,
364,
2063,
1459,
486,
1269,
1199,
1769,
5411,
368,
2608,
326,
2201,
5411,
514,
2201,
273,
1123,
18,
588,
1396,
12,
13784,
1769,
13491,
309,
261,
3664,
422,
446,
13,
7734,
2201,
273,
356,
39,
566,
18,
588,
780,
1396,
12,
43,
3948,
18,
291,
71,
67,
72,
5733,
67,
3664,
1769,
13491,
309,
261,
3664,
422,
446,
13,
7734,
604,
394,
6483,
12,
10792,
315,
3913,
364,
2063,
1459,
486,
1269,
1199,
1769,
5411,
368,
2608,
326,
2063,
1976,
5411,
514,
2063,
1785,
273,
880,
18,
28023,
12,
1653,
862,
38,
7937,
40,
67,
16850,
18,
2469,
10663,
13491,
478,
38,
8597,
10233,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
3077,
12,
780,
880,
16,
2252,
18,
1367,
18,
2297,
1123,
13,
3639,
1216,
6483,
565,
288,
3639,
309,
261,
718,
422,
446,
747,
401,
718,
18,
17514,
1190,
12,
1653,
862,
38,
7937,
40,
67,
16850,
3719,
540,
288,
5411,
327,
446,
31,
3639,
289,
368,
679,
434,
309,
1832,
7734,
775,
288,
5411,
478,
38,
1952,
23113,
356,
39,
566,
273,
1171,
478,
38,
1952,
2276,
18,
588,
39,
566,
12,
1376,
16,
446,
1769,
13491,
368,
2608,
326,
729,
5411,
514,
729,
273,
1123,
18,
588,
1396,
12,
4714,
1769,
13491,
309,
261,
1355,
422,
446,
13,
7734,
729,
273,
356,
39,
566,
18,
588,
780,
1396,
12,
43,
3948,
18,
291,
71,
2
] |
||
public synchronized void returnObject(Object obj) throws Exception {
|
public void returnObject(Object obj) throws Exception {
|
public synchronized void returnObject(Object obj) throws Exception { if (config != null && config.getRemoveAbandoned()) { trace.remove(obj); } super.returnObject(obj); }
|
50976 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50976/2c6f62fcb0d6e42f78c02e7f9adc52f727c3912a/AbandonedObjectPool.java/clean/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
327,
921,
12,
921,
1081,
13,
1216,
1185,
288,
3639,
309,
261,
1425,
480,
446,
597,
642,
18,
588,
3288,
5895,
29807,
10756,
288,
5411,
2606,
18,
4479,
12,
2603,
1769,
3639,
289,
3639,
2240,
18,
2463,
921,
12,
2603,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
327,
921,
12,
921,
1081,
13,
1216,
1185,
288,
3639,
309,
261,
1425,
480,
446,
597,
642,
18,
588,
3288,
5895,
29807,
10756,
288,
5411,
2606,
18,
4479,
12,
2603,
1769,
3639,
289,
3639,
2240,
18,
2463,
921,
12,
2603,
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,
-100
] |
MylarStatusHandler.log(t, "interest filter failed on viewer: " + viewer.getClass());
|
MylarStatusHandler.fail(t, "interest filter failed on viewer: " + viewer.getClass(), false);
|
public boolean select(Viewer viewer, Object parent, Object element) { try { if (!(viewer instanceof StructuredViewer)) return true; if (!containsMylarInterestFilter((StructuredViewer) viewer)) return true; if (temporarilyUnfiltered != null && temporarilyUnfiltered.equals(parent)) return true; IMylarElement node = null; if (element instanceof IMylarElement) { node = (IMylarElement) element; } else { IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element); if (!bridge.canFilter(element)) { return true; } if (isImplicitlyInteresting(element, bridge)) { return true; } if (!element.getClass().getName().equals("java.lang.Object")) { String handle = bridge.getHandleIdentifier(element); node = MylarPlugin.getContextManager().getElement(handle); } else { return true; } } if (node != null) { if (node.getInterest().isPredicted()) { return false; } else { return node.getInterest().getValue() > MylarContextManager.getScalingFactors().getInteresting(); } } } catch (Throwable t) { MylarStatusHandler.log(t, "interest filter failed on viewer: " + viewer.getClass()); } return false; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/493d4943b68ff82183673436879f7d594418fd76/InterestFilter.java/buggy/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/provisional/ui/InterestFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2027,
12,
18415,
14157,
16,
1033,
982,
16,
1033,
930,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
16051,
12,
25256,
1276,
7362,
2862,
18415,
3719,
9506,
202,
2463,
638,
31,
1082,
202,
430,
16051,
12298,
12062,
7901,
29281,
1586,
12443,
30733,
18415,
13,
14157,
3719,
9506,
202,
2463,
638,
31,
1082,
202,
430,
261,
874,
3831,
10243,
984,
12071,
480,
446,
597,
18917,
984,
12071,
18,
14963,
12,
2938,
3719,
9506,
202,
2463,
638,
31,
1082,
202,
3445,
93,
7901,
1046,
756,
273,
446,
31,
1082,
202,
430,
261,
2956,
1276,
6246,
93,
7901,
1046,
13,
288,
9506,
202,
2159,
273,
261,
3445,
93,
7901,
1046,
13,
930,
31,
1082,
202,
97,
469,
288,
9506,
202,
3445,
93,
7901,
6999,
13691,
10105,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
6999,
13691,
12,
2956,
1769,
9506,
202,
430,
16051,
18337,
18,
4169,
1586,
12,
2956,
3719,
288,
6862,
202,
2463,
638,
31,
9506,
202,
97,
9506,
202,
430,
261,
291,
15787,
715,
2465,
10100,
12,
2956,
16,
10105,
3719,
288,
6862,
202,
2463,
638,
31,
9506,
202,
97,
6862,
4697,
202,
430,
16051,
2956,
18,
588,
797,
7675,
17994,
7675,
14963,
2932,
6290,
18,
4936,
18,
921,
6,
3719,
288,
6862,
202,
780,
1640,
273,
10105,
18,
588,
3259,
3004,
12,
2956,
1769,
6862,
202,
2159,
273,
8005,
7901,
3773,
18,
29120,
1318,
7675,
21336,
12,
4110,
1769,
9506,
202,
97,
469,
288,
6862,
202,
2463,
638,
31,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2027,
12,
18415,
14157,
16,
1033,
982,
16,
1033,
930,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
16051,
12,
25256,
1276,
7362,
2862,
18415,
3719,
9506,
202,
2463,
638,
31,
1082,
202,
430,
16051,
12298,
12062,
7901,
29281,
1586,
12443,
30733,
18415,
13,
14157,
3719,
9506,
202,
2463,
638,
31,
1082,
202,
430,
261,
874,
3831,
10243,
984,
12071,
480,
446,
597,
18917,
984,
12071,
18,
14963,
12,
2938,
3719,
9506,
202,
2463,
638,
31,
1082,
202,
3445,
93,
7901,
1046,
756,
273,
446,
31,
1082,
202,
430,
261,
2956,
1276,
6246,
93,
7901,
1046,
13,
288,
9506,
202,
2159,
273,
261,
3445,
93,
7901,
1046,
13,
930,
31,
1082,
202,
97,
469,
2
] |
Bundle bundle = Platform.getBundle(JFACE_TEXT_PLUG_IN); if (bundle == null || bundle.getState() == Bundle.UNINSTALLED) { textSelectionPossible = false; return null; }
|
Bundle bundle = Platform.getBundle(JFACE_TEXT_PLUG_IN); if (bundle == null || bundle.getState() == Bundle.UNINSTALLED) { textSelectionPossible = false; return null; }
|
private static Class getTextSelectionClass() { if (iTextSelectionClass != null) { // tried before and succeeded return iTextSelectionClass; } if (!textSelectionPossible) { // tried before and failed return null; } // JFace text plug-in is not on prereq chain of generic wb plug-in // hence: ITextSelection.class won't compile // and Class.forName("org.eclipse.jface.text.ITextSelection") won't find // it need to be trickier... Bundle bundle = Platform.getBundle(JFACE_TEXT_PLUG_IN); if (bundle == null || bundle.getState() == Bundle.UNINSTALLED) { // JFace text plug-in is not around, or has already // been removed, assume that it will never be around textSelectionPossible = false; return null; } // plug-in is around // it's not our job to activate the plug-in if (bundle.getState() == Bundle.INSTALLED) { // assume it might come alive later textSelectionPossible = true; return null; } try { Class c = bundle.loadClass(TEXT_SELECTION_CLASS); // remember for next time iTextSelectionClass = c; return iTextSelectionClass; } catch (ClassNotFoundException e) { // unable to load ITextSelection - sounds pretty serious // treat as if JFace text plug-in were unavailable textSelectionPossible = false; return null; } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5cfb5f88a049bbc9efcf0fade7d5687d0ec50ed3/SelectionEnabler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SelectionEnabler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1659,
6701,
6233,
797,
1435,
288,
3639,
309,
261,
77,
1528,
6233,
797,
480,
446,
13,
288,
5411,
368,
12928,
1865,
471,
15784,
5411,
327,
277,
1528,
6233,
797,
31,
3639,
289,
3639,
309,
16051,
955,
6233,
13576,
13,
288,
5411,
368,
12928,
1865,
471,
2535,
5411,
327,
446,
31,
3639,
289,
3639,
368,
804,
11824,
977,
15852,
17,
267,
353,
486,
603,
30328,
85,
2687,
434,
5210,
17298,
15852,
17,
267,
3639,
368,
20356,
30,
467,
1528,
6233,
18,
1106,
8462,
1404,
4074,
3639,
368,
471,
1659,
18,
1884,
461,
2932,
3341,
18,
20416,
18,
78,
865,
18,
955,
18,
1285,
408,
6233,
7923,
8462,
1404,
1104,
3639,
368,
518,
1608,
358,
506,
28837,
2453,
2777,
3639,
8539,
3440,
273,
11810,
18,
588,
3405,
12,
46,
11300,
67,
5151,
67,
18567,
43,
67,
706,
1769,
3639,
309,
261,
9991,
422,
446,
747,
3440,
18,
588,
1119,
1435,
422,
8539,
18,
2124,
19784,
27751,
13,
288,
5411,
368,
804,
11824,
977,
15852,
17,
267,
353,
486,
6740,
16,
578,
711,
1818,
5411,
368,
2118,
3723,
16,
6750,
716,
518,
903,
5903,
506,
6740,
5411,
977,
6233,
13576,
273,
629,
31,
5411,
327,
446,
31,
3639,
289,
3639,
368,
15852,
17,
267,
353,
6740,
3639,
368,
518,
1807,
486,
3134,
1719,
358,
10235,
326,
15852,
17,
267,
3639,
309,
261,
9991,
18,
588,
1119,
1435,
422,
8539,
18,
19784,
27751,
13,
288,
5411,
368,
6750,
518,
4825,
12404,
13714,
5137,
5411,
977,
6233,
13576,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1659,
6701,
6233,
797,
1435,
288,
3639,
309,
261,
77,
1528,
6233,
797,
480,
446,
13,
288,
5411,
368,
12928,
1865,
471,
15784,
5411,
327,
277,
1528,
6233,
797,
31,
3639,
289,
3639,
309,
16051,
955,
6233,
13576,
13,
288,
5411,
368,
12928,
1865,
471,
2535,
5411,
327,
446,
31,
3639,
289,
3639,
368,
804,
11824,
977,
15852,
17,
267,
353,
486,
603,
30328,
85,
2687,
434,
5210,
17298,
15852,
17,
267,
3639,
368,
20356,
30,
467,
1528,
6233,
18,
1106,
8462,
1404,
4074,
3639,
368,
471,
1659,
18,
1884,
461,
2932,
3341,
18,
20416,
18,
78,
865,
18,
955,
18,
1285,
408,
6233,
7923,
8462,
1404,
1104,
3639,
368,
518,
1608,
358,
506,
28837,
2453,
2
] |
return value_; }
|
return value_; }
|
public synchronized Object peek() { return value_; }
|
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/FutureResult.java/clean/src/java/org/logicalcobwebs/concurrent/FutureResult.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1033,
8032,
1435,
288,
565,
327,
460,
67,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1033,
8032,
1435,
288,
565,
327,
460,
67,
31,
282,
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
] |
StreamConsumer(InputStream in, OutputStream out) { this.bin = new LineNumberReader( new BufferedReader(new InputStreamReader(in))); if(out != null) {
|
StreamConsumer(InputStream in, OutputStream out) { this.bin = new LineNumberReader(new BufferedReader(new InputStreamReader(in))); if (out != null) {
|
StreamConsumer(InputStream in, OutputStream out) { this.bin = new LineNumberReader( new BufferedReader(new InputStreamReader(in))); if(out != null) { this.bout = new DataOutputStream(out); } }
|
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/e10b40e8014547113799b2653164e8c990d41209/StreamUtil.java/buggy/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3961,
5869,
12,
4348,
316,
16,
8962,
596,
13,
565,
288,
1377,
333,
18,
4757,
273,
394,
5377,
1854,
2514,
12,
3639,
394,
10633,
12,
2704,
15322,
12,
267,
3719,
1769,
1377,
309,
12,
659,
480,
446,
13,
288,
3639,
333,
18,
70,
659,
273,
394,
28680,
12,
659,
1769,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3961,
5869,
12,
4348,
316,
16,
8962,
596,
13,
565,
288,
1377,
333,
18,
4757,
273,
394,
5377,
1854,
2514,
12,
3639,
394,
10633,
12,
2704,
15322,
12,
267,
3719,
1769,
1377,
309,
12,
659,
480,
446,
13,
288,
3639,
333,
18,
70,
659,
273,
394,
28680,
12,
659,
1769,
1377,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tableViewerImpl.setColumnProperties(columnProperties); }
|
tableEditorImpl.setColumnProperties(columnProperties); }
|
public void setColumnProperties(String[] columnProperties) { tableViewerImpl.setColumnProperties(columnProperties); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/98f48f47b2fd4c2b264a8e2e689bcbe9c594c5d2/TableTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
25918,
2297,
12,
780,
8526,
1057,
2297,
13,
288,
3639,
1014,
18415,
2828,
18,
542,
1494,
2297,
12,
2827,
2297,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
25918,
2297,
12,
780,
8526,
1057,
2297,
13,
288,
3639,
1014,
18415,
2828,
18,
542,
1494,
2297,
12,
2827,
2297,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final int MIN_NO_EXP = -6; final int MAX_NO_EXP = 20; String s = Double.toString(d); char[] chars = s.toCharArray(); int decimal = -1; int e = -1; boolean negative = false; boolean negativeExponent = false; for (int i=0; i < chars.length; i++) { switch (chars[i]) { case '-': if (e == -1) negative = true; else negativeExponent = true; break; case '.': decimal = i; break; case 'E': e = i; break; }
|
if ((base < 2) || (base > 36)) { Object[] args = { Integer.toString(base) }; throw Context.reportRuntimeError(getMessage ("msg.bad.radix", args));
|
public static String numberToString(double d) { if (d != d) return "NaN"; if (d == Double.POSITIVE_INFINITY) return "Infinity"; if (d == Double.NEGATIVE_INFINITY) return "-Infinity"; if (d == 0.0) return "0"; // Okay, this is gross. But Java doesn't seem to have any number // formatting routines exposed. // So we let Java format it and then selectively reformat it using // string operations to get the appropriate bounds on exponential // representation as well as little things like case of 'e' and // always including the sign of the exponent. // OPT: format from the floating point number directly. final int MIN_NO_EXP = -6; final int MAX_NO_EXP = 20; String s = Double.toString(d); char[] chars = s.toCharArray(); int decimal = -1; int e = -1; boolean negative = false; boolean negativeExponent = false; for (int i=0; i < chars.length; i++) { switch (chars[i]) { case '-': if (e == -1) negative = true; else negativeExponent = true; break; case '.': decimal = i; break; case 'E': e = i; break; } } if (e == -1) { if (decimal == chars.length - 2 && chars[chars.length-1] == '0') { // Format 1.0 as "1", not "1.0" return new String(chars, 0, chars.length - 2); } return s; } int exponent = Integer.parseInt(new String(chars, e+1, chars.length - e - 1)); StringBuffer sb = new StringBuffer(); boolean singleDigit = decimal + 2 == e && chars[decimal+1] == '0'; if (exponent < MIN_NO_EXP || exponent > MAX_NO_EXP) { int len = singleDigit ? 1 : e; if (negative) { sb.append('-'); sb.append(chars, 1, len); } else { sb.append(chars, 0, len); } sb.append('e'); sb.append(exponent < 0 ? '-' : '+'); int expStart = e + (exponent < 0 ? 2 : 1); sb.append(chars, expStart, chars.length - expStart); return sb.toString(); } if (negative) sb.append('-'); if (exponent < 0) { sb.append("0."); for (int i=exponent+1; i < 0; i++) sb.append('0'); } sb.append(chars[decimal - 1]); int fractionalLength = 0; if (!singleDigit) { fractionalLength = e - decimal - 1; if (exponent > 0 && exponent < fractionalLength) { sb.append(chars, decimal + 1, exponent); sb.append('.'); sb.append(chars, decimal + exponent + 1, fractionalLength - exponent); } else { sb.append(chars, decimal + 1, fractionalLength); } } if (exponent > 0) { for (int i = fractionalLength; i < exponent; i++) sb.append('0'); } return sb.toString(); }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/4bf675b98aeb91f7b1aa93aa6af7bc7944745bed/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1300,
5808,
12,
9056,
302,
13,
288,
3639,
309,
261,
72,
480,
302,
13,
5411,
327,
315,
21172,
14432,
3639,
309,
261,
72,
422,
3698,
18,
7057,
16325,
67,
17716,
13,
5411,
327,
315,
382,
7850,
14432,
3639,
309,
261,
72,
422,
3698,
18,
5407,
22421,
67,
17716,
13,
5411,
327,
3701,
382,
7850,
14432,
3639,
309,
261,
72,
422,
374,
18,
20,
13,
5411,
327,
315,
20,
14432,
3639,
368,
16154,
528,
16,
333,
353,
314,
3984,
18,
12484,
5110,
3302,
1404,
19264,
358,
1240,
1281,
1300,
3639,
368,
10407,
28580,
16265,
18,
3639,
368,
6155,
732,
2231,
5110,
740,
518,
471,
1508,
2027,
4492,
283,
2139,
518,
1450,
3639,
368,
533,
5295,
358,
336,
326,
5505,
4972,
603,
21774,
3639,
368,
4335,
487,
5492,
487,
12720,
9198,
3007,
648,
434,
296,
73,
11,
471,
3639,
368,
3712,
6508,
326,
1573,
434,
326,
9100,
18,
3639,
368,
16456,
30,
740,
628,
326,
13861,
1634,
1300,
5122,
18,
3639,
727,
509,
6989,
67,
3417,
67,
16109,
273,
300,
26,
31,
3639,
727,
509,
4552,
67,
3417,
67,
16109,
273,
4200,
31,
3639,
514,
272,
273,
3698,
18,
10492,
12,
72,
1769,
3639,
1149,
8526,
5230,
273,
272,
18,
869,
15936,
5621,
3639,
509,
6970,
273,
300,
21,
31,
3639,
509,
425,
273,
300,
21,
31,
3639,
1250,
6092,
273,
629,
31,
3639,
1250,
6092,
17972,
273,
629,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
5230,
18,
2469,
31,
277,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1300,
5808,
12,
9056,
302,
13,
288,
3639,
309,
261,
72,
480,
302,
13,
5411,
327,
315,
21172,
14432,
3639,
309,
261,
72,
422,
3698,
18,
7057,
16325,
67,
17716,
13,
5411,
327,
315,
382,
7850,
14432,
3639,
309,
261,
72,
422,
3698,
18,
5407,
22421,
67,
17716,
13,
5411,
327,
3701,
382,
7850,
14432,
3639,
309,
261,
72,
422,
374,
18,
20,
13,
5411,
327,
315,
20,
14432,
3639,
368,
16154,
528,
16,
333,
353,
314,
3984,
18,
12484,
5110,
3302,
1404,
19264,
358,
1240,
1281,
1300,
3639,
368,
10407,
28580,
16265,
18,
3639,
368,
6155,
732,
2231,
5110,
740,
518,
471,
1508,
2027,
4492,
283,
2139,
518,
1450,
3639,
368,
533,
5295,
358,
2
] |
newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createGuideStyle()));
|
newChildDescriptors.add (createChildParameter (NotationPackage.Literals.VIEW__STYLES, NotationFactory.eINSTANCE.createGuideStyle()));
|
protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_PersistedChildren(), NotationFactory.eINSTANCE.createNode())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createFillStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createLineStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createFontStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createTitleStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createSortingStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createDescriptionStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createRoutingStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createCanonicalStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createShapeStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createConnectorStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createPageStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createDrawerStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createGuideStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createFilteringStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createDiagramStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createImageStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_Styles(), NotationFactory.eINSTANCE.createImageBufferStyle())); newChildDescriptors.add (createChildParameter (NotationPackage.eINSTANCE.getView_TransientChildren(), NotationFactory.eINSTANCE.createNode())); }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/ViewItemProvider.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation.edit/src/org/eclipse/gmf/runtime/notation/provider/ViewItemProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3274,
1908,
1763,
12705,
12,
2532,
19783,
12705,
16,
1033,
733,
13,
288,
202,
202,
9565,
18,
14676,
1908,
1763,
12705,
12,
2704,
1763,
12705,
16,
733,
1769,
202,
202,
2704,
1763,
12705,
18,
1289,
1082,
202,
12,
2640,
1763,
1662,
9506,
202,
12,
14818,
2261,
18,
73,
13341,
18,
588,
1767,
67,
12771,
329,
4212,
9334,
6862,
2288,
367,
1733,
18,
73,
13341,
18,
2640,
907,
1435,
10019,
202,
202,
2704,
1763,
12705,
18,
1289,
1082,
202,
12,
2640,
1763,
1662,
9506,
202,
12,
14818,
2261,
18,
73,
13341,
18,
588,
1767,
67,
9725,
9334,
6862,
2288,
367,
1733,
18,
73,
13341,
18,
2640,
8026,
2885,
1435,
10019,
202,
202,
2704,
1763,
12705,
18,
1289,
1082,
202,
12,
2640,
1763,
1662,
9506,
202,
12,
14818,
2261,
18,
73,
13341,
18,
588,
1767,
67,
9725,
9334,
6862,
2288,
367,
1733,
18,
73,
13341,
18,
2640,
1670,
2885,
1435,
10019,
202,
202,
2704,
1763,
12705,
18,
1289,
1082,
202,
12,
2640,
1763,
1662,
9506,
202,
12,
14818,
2261,
18,
73,
13341,
18,
588,
1767,
67,
9725,
9334,
6862,
2288,
367,
1733,
18,
73,
13341,
18,
2640,
5711,
2885,
1435,
10019,
202,
202,
2704,
1763,
12705,
18,
1289,
1082,
202,
12,
2640,
1763,
1662,
9506,
202,
12,
14818,
2261,
18,
73,
13341,
18,
588,
1767,
67,
9725,
9334,
6862,
2288,
367,
1733,
18,
73,
13341,
18,
2640,
4247,
2885,
1435,
10019,
202,
202,
2704,
1763,
12705,
18,
1289,
1082,
202,
12,
2640,
1763,
1662,
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,
1117,
918,
3274,
1908,
1763,
12705,
12,
2532,
19783,
12705,
16,
1033,
733,
13,
288,
202,
202,
9565,
18,
14676,
1908,
1763,
12705,
12,
2704,
1763,
12705,
16,
733,
1769,
202,
202,
2704,
1763,
12705,
18,
1289,
1082,
202,
12,
2640,
1763,
1662,
9506,
202,
12,
14818,
2261,
18,
73,
13341,
18,
588,
1767,
67,
12771,
329,
4212,
9334,
6862,
2288,
367,
1733,
18,
73,
13341,
18,
2640,
907,
1435,
10019,
202,
202,
2704,
1763,
12705,
18,
1289,
1082,
202,
12,
2640,
1763,
1662,
9506,
202,
12,
14818,
2261,
18,
73,
13341,
18,
588,
1767,
67,
9725,
9334,
6862,
2288,
367,
1733,
18,
73,
13341,
18,
2640,
8026,
2885,
1435,
10019,
202,
202,
2704,
1763,
12705,
18,
2
] |
return ((Number)getValue()).intValue(); }
|
return ((Number)getValue()).intValue(); }
|
public int getIntValue() { return ((Number)getValue()).intValue(); }
|
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ReturnValue.java/clean/jmock/core/src/org/jmock/expectation/ReturnValue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8145,
620,
1435,
288,
202,
202,
2463,
14015,
1854,
13,
24805,
1435,
2934,
474,
620,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8145,
620,
1435,
288,
202,
202,
2463,
14015,
1854,
13,
24805,
1435,
2934,
474,
620,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
synchronized (_successfulPeers) { return (Set)_successfulPeers.clone(); } }
|
synchronized (_successfulPeers) { return (Set)_successfulPeers.clone(); } }
|
public Set getSuccessful() { synchronized (_successfulPeers) { return (Set)_successfulPeers.clone(); } }
|
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/86759d2f9c63d203488c7e8b34e64be162a16ce9/StoreJob.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/StoreJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
1322,
2825,
2706,
1435,
288,
3196,
565,
3852,
261,
67,
18418,
14858,
13,
288,
202,
202,
2463,
261,
694,
13,
67,
18418,
14858,
18,
14056,
5621,
3196,
565,
289,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
1322,
2825,
2706,
1435,
288,
3196,
565,
3852,
261,
67,
18418,
14858,
13,
288,
202,
202,
2463,
261,
694,
13,
67,
18418,
14858,
18,
14056,
5621,
3196,
565,
289,
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
] |
case Id_setUTCDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCDate(args));
|
case Id_setUTCDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCDate(args));
|
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case ConstructorId_UTC: return wrap_double (jsStaticFunction_UTC(args)); case ConstructorId_parse: return wrap_double (jsStaticFunction_parse(ScriptRuntime.toString(args, 0))); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f, true). jsFunction_toString(); case Id_toTimeString: return realThis(thisObj, f, true). jsFunction_toTimeString(); case Id_toDateString: return realThis(thisObj, f, true). jsFunction_toDateString(); case Id_toLocaleString: return realThis(thisObj, f, true). jsFunction_toLocaleString(); case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString(); case Id_toLocaleDateString: return realThis(thisObj, f, true). jsFunction_toLocaleDateString(); case Id_toGMTString: case Id_toUTCString: return realThis(thisObj, f, true). jsFunction_toUTCString(); case Id_valueOf: return wrap_double(realThis(thisObj, f, true). jsFunction_valueOf()); case Id_getTime: return wrap_double(realThis(thisObj, f, true). jsFunction_getTime()); case Id_getYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getYear(cx)); case Id_getFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getFullYear()); case Id_getUTCFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCFullYear()); case Id_getMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getMonth()); case Id_getUTCMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMonth()); case Id_getDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getDate()); case Id_getUTCDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDate()); case Id_getDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getDay()); case Id_getUTCDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDay()); case Id_getHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getHours()); case Id_getUTCHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCHours()); case Id_getMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getMinutes()); case Id_getUTCMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMinutes()); case Id_getSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getSeconds()); case Id_getUTCSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCSeconds()); case Id_getMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getMilliseconds()); case Id_getUTCMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset()); case Id_setTime: return wrap_double(realThis(thisObj, f, true). jsFunction_setTime(ScriptRuntime.toNumber(args, 0))); case Id_setMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setMilliseconds(args)); case Id_setUTCMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMilliseconds(args)); case Id_setSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setSeconds(args)); case Id_setUTCSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCSeconds(args)); case Id_setMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setMinutes(args)); case Id_setUTCMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMinutes(args)); case Id_setHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setHours(args)); case Id_setUTCHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCHours(args)); case Id_setDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setDate(args)); case Id_setUTCDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCDate(args)); case Id_setMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setMonth(args)); case Id_setUTCMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMonth(args)); case Id_setFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setFullYear(args)); case Id_setUTCFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCFullYear(args)); case Id_setYear: return wrap_double(realThis(thisObj, f, true). jsFunction_setYear(ScriptRuntime.toNumber(args, 0))); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/35caf7c2bb93872680ae16e34746d94fe1e533e3/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1620,
261,
2039,
548,
13,
288,
3639,
648,
11417,
548,
67,
11471,
30,
327,
2193,
67,
9056,
5411,
261,
2924,
5788,
2083,
67,
11471,
12,
1968,
10019,
3639,
648,
11417,
548,
67,
2670,
30,
327,
2193,
67,
9056,
5411,
261,
2924,
5788,
2083,
67,
2670,
12,
3651,
5576,
18,
10492,
12,
1968,
16,
374,
3719,
1769,
3639,
648,
3124,
67,
12316,
30,
5411,
327,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
3639,
648,
3124,
67,
10492,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
5411,
3828,
2083,
67,
10492,
5621,
3639,
648,
3124,
67,
869,
950,
780,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
5411,
3828,
2083,
67,
869,
950,
780,
5621,
3639,
648,
3124,
67,
869,
1626,
780,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
5411,
3828,
2083,
67,
869,
1626,
780,
5621,
3639,
648,
3124,
67,
869,
3916,
780,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
5411,
3828,
2083,
67,
869,
3916,
780,
5621,
3639,
648,
3124,
67,
869,
3916,
950,
780,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
5411,
3828,
2083,
67,
869,
3916,
950,
780,
5621,
3639,
648,
3124,
67,
869,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1620,
261,
2039,
548,
13,
288,
3639,
648,
11417,
548,
67,
11471,
30,
327,
2193,
67,
9056,
5411,
261,
2924,
5788,
2083,
67,
11471,
12,
1968,
10019,
3639,
648,
11417,
548,
67,
2670,
30,
327,
2193,
67,
9056,
5411,
261,
2924,
5788,
2083,
67,
2670,
12,
3651,
5576,
18,
10492,
12,
1968,
16,
374,
3719,
1769,
3639,
648,
3124,
67,
12316,
30,
5411,
327,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
3639,
648,
3124,
67,
10492,
30,
327,
2863,
2503,
12,
2
] |
body = fbody.getBodyNode();
|
body = fbody.getHeadNode();
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getBodyNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getBodyNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/c7f13fd014f31b83985a27d44855459fd7abe0c5/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
968,
1305,
2250,
1253,
6272,
2250,
12,
54,
10340,
548,
612,
16,
509,
1158,
338,
13,
288,
202,
202,
967,
1305,
2250,
1253,
563,
273,
394,
968,
1305,
2250,
1253,
12,
2211,
16,
612,
16,
1158,
338,
1769,
202,
202,
1305,
907,
707,
907,
273,
1623,
1305,
12,
350,
1769,
202,
202,
430,
261,
2039,
907,
422,
446,
747,
707,
907,
18,
588,
2250,
907,
1435,
422,
446,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
39,
970,
1104,
707,
11843,
397,
612,
18,
869,
461,
1435,
397,
7023,
316,
667,
315,
397,
358,
461,
10663,
1082,
202,
54,
10340,
1305,
27630,
18,
5688,
1921,
1622,
12,
588,
54,
10340,
9334,
333,
16,
612,
1769,
1082,
202,
2463,
563,
31,
202,
202,
97,
202,
202,
54,
10340,
1305,
27630,
3281,
273,
394,
19817,
1305,
27630,
12,
2211,
16,
707,
907,
18,
588,
2279,
338,
10663,
202,
202,
907,
1417,
273,
707,
907,
18,
588,
2250,
907,
5621,
202,
202,
430,
261,
3432,
1276,
478,
2250,
907,
13,
288,
1082,
202,
42,
2250,
907,
284,
3432,
273,
261,
42,
2250,
907,
13,
1417,
31,
1082,
202,
319,
18,
542,
20711,
12,
350,
1769,
1082,
202,
319,
18,
542,
7571,
12443,
54,
10340,
3120,
13,
284,
3432,
18,
588,
7571,
10663,
1082,
202,
319,
18,
542,
20711,
20,
12,
74,
3432,
18,
588,
49,
548,
10663,
1082,
202,
319,
18,
542,
1305,
12,
74,
3432,
18,
588,
2250,
907,
10663,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
968,
1305,
2250,
1253,
6272,
2250,
12,
54,
10340,
548,
612,
16,
509,
1158,
338,
13,
288,
202,
202,
967,
1305,
2250,
1253,
563,
273,
394,
968,
1305,
2250,
1253,
12,
2211,
16,
612,
16,
1158,
338,
1769,
202,
202,
1305,
907,
707,
907,
273,
1623,
1305,
12,
350,
1769,
202,
202,
430,
261,
2039,
907,
422,
446,
747,
707,
907,
18,
588,
2250,
907,
1435,
422,
446,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
39,
970,
1104,
707,
11843,
397,
612,
18,
869,
461,
1435,
397,
7023,
316,
667,
315,
397,
358,
461,
10663,
1082,
202,
54,
10340,
1305,
27630,
18,
5688,
1921,
1622,
12,
588,
54,
10340,
9334,
2
] |
public void setMethodVisibility(IRubyObject[] methods, int noex) {
|
public void setMethodVisibility(IRubyObject[] methods, Visibility noex) {
|
public void setMethodVisibility(IRubyObject[] methods, int noex) { if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuntime(), "Insecure: can't change method visibility"); } for (int i = 0; i < methods.length; i++) { exportMethod(methods[i].toId(), noex); } }
|
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19539,
10135,
12,
7937,
10340,
921,
8526,
2590,
16,
27791,
1158,
338,
13,
288,
3639,
309,
261,
588,
5576,
7675,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
5411,
604,
394,
19817,
24918,
12,
588,
5576,
9334,
315,
382,
8869,
30,
848,
1404,
2549,
707,
9478,
8863,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
277,
27245,
288,
5411,
3359,
1305,
12,
5163,
63,
77,
8009,
869,
548,
9334,
1158,
338,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19539,
10135,
12,
7937,
10340,
921,
8526,
2590,
16,
27791,
1158,
338,
13,
288,
3639,
309,
261,
588,
5576,
7675,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
5411,
604,
394,
19817,
24918,
12,
588,
5576,
9334,
315,
382,
8869,
30,
848,
1404,
2549,
707,
9478,
8863,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
277,
27245,
288,
5411,
3359,
1305,
12,
5163,
63,
77,
8009,
869,
548,
9334,
1158,
338,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void down(Event evt) { Message msg; //System.out.println("DOWN: " + evt); switch( evt.getType() ) { case Event.VIEW_CHANGE: // this will probably never happen log.error( "NOTE: VIEW_CHANGE Event going down through " + PROTOCOL_NAME ); Vector new_members=((View)evt.getArg()).getMembers(); synchronized(members) { members.removeAllElements(); if(new_members != null && new_members.size() > 0) for(int i=0; i < new_members.size(); i++) members.addElement(new_members.elementAt(i)); } break; case Event.MSG: Object temp_obj = evt.getArg(); if ( temp_obj instanceof Message ) { msg = (Message) temp_obj; // note: a TotalHeader is added to every message (Event.MSG) // that is sent // check if this is a broadcast message if ( msg.getDest() == null ) { // yes, this is a broadcast message // send out a request for a message to be broadcast // (the sequencer will handle this) Address sequencer = getSequencer(); if ( sequencer != null ) { // we only need to send the request to the sequencer (who will broadcast it) msg.setDest( sequencer ); } else { // couldn't find sequencer of the group // for now, just send it to the original destination // (don't need to do anything here) } //msg.putHeader(getName(), TotalHeader.getRequestHeader() ); msg.putHeader(getName(), new TotalHeader(TotalHeader.TOTAL_REQUEST, -1)); } else { // this is a point to point unicast message so just send it to its original destination msg.putHeader(getName(), new TotalHeader( TotalHeader.TOTAL_UNICAST, -1 ) ); // sequence id in header is irrelevant } } else { log.error( "Error: TOTAL_OLD.down() - could not cast argument of Event to a Message (case Event.MSG)" ); } // if ( temp_obj instanceof Message ) break; default: break; } // switch( evt.getType() ) passDown(evt); // Pass on to the layer below us }
|
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/13de68466e3cf7fde6ee0bde0cee09a33e837e89/TOTAL_OLD.java/clean/src/org/jgroups/protocols/TOTAL_OLD.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2588,
12,
1133,
6324,
13,
288,
3639,
2350,
1234,
31,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
12711,
30,
315,
397,
6324,
1769,
3639,
1620,
12,
6324,
18,
588,
559,
1435,
262,
288,
3639,
648,
2587,
18,
12145,
67,
14473,
30,
202,
565,
368,
333,
903,
8656,
5903,
5865,
202,
565,
613,
18,
1636,
12,
315,
17857,
30,
21794,
67,
14473,
2587,
8554,
2588,
3059,
315,
397,
24245,
67,
1985,
11272,
5411,
5589,
394,
67,
7640,
33,
12443,
1767,
13,
73,
11734,
18,
588,
4117,
1435,
2934,
588,
6918,
5621,
5411,
3852,
12,
7640,
13,
288,
7734,
4833,
18,
4479,
1595,
3471,
5621,
7734,
309,
12,
2704,
67,
7640,
480,
446,
597,
394,
67,
7640,
18,
1467,
1435,
405,
374,
13,
10792,
364,
12,
474,
277,
33,
20,
31,
277,
411,
394,
67,
7640,
18,
1467,
5621,
277,
27245,
13491,
4833,
18,
1289,
1046,
12,
2704,
67,
7640,
18,
2956,
861,
12,
77,
10019,
5411,
289,
5411,
898,
31,
3639,
648,
2587,
18,
11210,
30,
202,
565,
1033,
1906,
67,
2603,
273,
6324,
18,
588,
4117,
5621,
202,
565,
309,
261,
1906,
67,
2603,
1276,
2350,
262,
288,
202,
202,
3576,
273,
261,
1079,
13,
1906,
67,
2603,
31,
202,
202,
759,
4721,
30,
279,
10710,
1864,
353,
3096,
358,
3614,
883,
261,
1133,
18,
11210,
13,
202,
202,
759,
282,
716,
353,
3271,
202,
202,
759,
866,
309,
333,
353,
279,
8959,
883,
202,
202,
430,
261,
1234,
18,
588,
9378,
1435,
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,
2588,
12,
1133,
6324,
13,
288,
3639,
2350,
1234,
31,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
12711,
30,
315,
397,
6324,
1769,
3639,
1620,
12,
6324,
18,
588,
559,
1435,
262,
288,
3639,
648,
2587,
18,
12145,
67,
14473,
30,
202,
565,
368,
333,
903,
8656,
5903,
5865,
202,
565,
613,
18,
1636,
12,
315,
17857,
30,
21794,
67,
14473,
2587,
8554,
2588,
3059,
315,
397,
24245,
67,
1985,
11272,
5411,
5589,
394,
67,
7640,
33,
12443,
1767,
13,
73,
11734,
18,
588,
4117,
1435,
2934,
588,
6918,
5621,
5411,
3852,
12,
7640,
13,
288,
7734,
4833,
18,
4479,
1595,
3471,
5621,
7734,
309,
12,
2704,
67,
7640,
480,
446,
597,
394,
67,
7640,
2
] |
||
PsiTreeUtil.isAncestor(pair.getSecond().getChangeScope(), transaction.getChangeScope(), false)
|
PsiTreeUtil.isAncestor(pair.getSecond().getChangeScope(), transaction.getChangeScope(), false) && getContainingFileByTree(pair.getSecond().getChangeScope()) != null
|
private Pair<PomModelAspect,PomTransaction> getBlockingTransaction(final PomModelAspect aspect, PomTransaction transaction) { final List<PomModelAspect> allDependants = getAllDependants(aspect); final Iterator<PomModelAspect> iterator = allDependants.iterator(); while (iterator.hasNext()) { final PomModelAspect pomModelAspect = iterator.next(); final ListIterator<Pair<PomModelAspect, PomTransaction>> blocksIterator = myBlockedAspects.listIterator(myBlockedAspects.size()); while(blocksIterator.hasPrevious()){ final Pair<PomModelAspect, PomTransaction> pair = blocksIterator.previous(); if (pomModelAspect == pair.getFirst() && // aspect dependance PsiTreeUtil.isAncestor(pair.getSecond().getChangeScope(), transaction.getChangeScope(), false) // target scope contain current ) { return pair; } } } return null; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/b47a37d963f4e542a65ce977fd3e4bc153f91b85/PomModelImpl.java/buggy/source/com/intellij/pom/core/impl/PomModelImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
8599,
32,
52,
362,
1488,
17468,
16,
52,
362,
3342,
34,
336,
8728,
3342,
12,
6385,
453,
362,
1488,
17468,
9648,
16,
453,
362,
3342,
2492,
13,
288,
565,
727,
987,
32,
52,
362,
1488,
17468,
34,
777,
4584,
4388,
273,
5514,
4584,
4388,
12,
23579,
1769,
565,
727,
4498,
32,
52,
362,
1488,
17468,
34,
2775,
273,
777,
4584,
4388,
18,
9838,
5621,
565,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
1377,
727,
453,
362,
1488,
17468,
21400,
1488,
17468,
273,
2775,
18,
4285,
5621,
1377,
727,
987,
3198,
32,
4154,
32,
52,
362,
1488,
17468,
16,
453,
362,
3342,
9778,
4398,
3198,
273,
3399,
23722,
17468,
87,
18,
1098,
3198,
12,
4811,
23722,
17468,
87,
18,
1467,
10663,
1377,
1323,
12,
7996,
3198,
18,
5332,
8351,
10756,
95,
3639,
727,
8599,
32,
52,
362,
1488,
17468,
16,
453,
362,
3342,
34,
3082,
273,
4398,
3198,
18,
11515,
5621,
3639,
309,
261,
84,
362,
1488,
17468,
422,
3082,
18,
588,
3759,
1435,
597,
368,
9648,
2447,
1359,
5411,
453,
7722,
2471,
1304,
18,
291,
15637,
12,
6017,
18,
588,
8211,
7675,
588,
3043,
3876,
9334,
2492,
18,
588,
3043,
3876,
9334,
629,
13,
597,
336,
24344,
812,
858,
2471,
12,
6017,
18,
588,
8211,
7675,
588,
3043,
3876,
10756,
480,
446,
368,
1018,
2146,
912,
783,
3639,
262,
288,
1850,
327,
3082,
31,
3639,
289,
1377,
289,
565,
289,
565,
327,
446,
31,
225,
289,
2,
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,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
8599,
32,
52,
362,
1488,
17468,
16,
52,
362,
3342,
34,
336,
8728,
3342,
12,
6385,
453,
362,
1488,
17468,
9648,
16,
453,
362,
3342,
2492,
13,
288,
565,
727,
987,
32,
52,
362,
1488,
17468,
34,
777,
4584,
4388,
273,
5514,
4584,
4388,
12,
23579,
1769,
565,
727,
4498,
32,
52,
362,
1488,
17468,
34,
2775,
273,
777,
4584,
4388,
18,
9838,
5621,
565,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
1377,
727,
453,
362,
1488,
17468,
21400,
1488,
17468,
273,
2775,
18,
4285,
5621,
1377,
727,
987,
3198,
32,
4154,
32,
52,
362,
1488,
17468,
16,
453,
362,
3342,
9778,
4398,
3198,
273,
3399,
23722,
17468,
87,
18,
1098,
3198,
12,
4811,
23722,
17468,
2
] |
}catch(CharacterCodingException e) { LOG.info( e );
|
public void testCoding() throws Exception { for (int i = 0; i < NUM_ITERATIONS; i++) { try { // generate a random string String before; if(i == 0 ) before = getLongString(); else before = getTestString(); // test string to utf8 ByteBuffer bb = Text.encode(before); byte[] utf8Text = bb.array(); byte[] utf8Java = before.getBytes("UTF-8"); assertEquals(0, WritableComparator.compareBytes( utf8Text, 0, bb.limit(), utf8Java, 0, utf8Java.length)); // test utf8 to string String after = Text.decode(utf8Java); assertTrue(before.equals(after)); }catch(CharacterCodingException e) { LOG.info( e ); } } }
|
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/ade1478723edce95f407a038027d26b7e05459d5/TestText.java/buggy/src/test/org/apache/hadoop/io/TestText.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
30315,
1435,
1216,
1185,
288,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9443,
67,
11844,
15297,
31,
277,
27245,
288,
1377,
775,
288,
1850,
368,
2103,
279,
2744,
533,
1850,
514,
1865,
31,
1850,
309,
12,
77,
422,
374,
262,
2868,
1865,
273,
11105,
780,
5621,
1850,
469,
2868,
1865,
273,
29384,
780,
5621,
2868,
368,
1842,
533,
358,
7718,
28,
1850,
7400,
7129,
273,
3867,
18,
3015,
12,
5771,
1769,
10792,
1160,
8526,
7718,
28,
1528,
273,
7129,
18,
1126,
5621,
1850,
1160,
8526,
7718,
28,
5852,
273,
1865,
18,
588,
2160,
2932,
5159,
17,
28,
8863,
1850,
1815,
8867,
12,
20,
16,
14505,
5559,
18,
9877,
2160,
12,
8227,
7718,
28,
1528,
16,
374,
16,
7129,
18,
3595,
9334,
8227,
7718,
28,
5852,
16,
374,
16,
7718,
28,
5852,
18,
2469,
10019,
13491,
368,
1842,
7718,
28,
358,
533,
1850,
514,
1839,
273,
3867,
18,
3922,
12,
3158,
28,
5852,
1769,
1850,
1815,
5510,
12,
5771,
18,
14963,
12,
5205,
10019,
1377,
289,
14683,
12,
7069,
30315,
503,
425,
13,
288,
1850,
2018,
18,
1376,
12,
425,
11272,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
1842,
30315,
1435,
1216,
1185,
288,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9443,
67,
11844,
15297,
31,
277,
27245,
288,
1377,
775,
288,
1850,
368,
2103,
279,
2744,
533,
1850,
514,
1865,
31,
1850,
309,
12,
77,
422,
374,
262,
2868,
1865,
273,
11105,
780,
5621,
1850,
469,
2868,
1865,
273,
29384,
780,
5621,
2868,
368,
1842,
533,
358,
7718,
28,
1850,
7400,
7129,
273,
3867,
18,
3015,
12,
5771,
1769,
10792,
1160,
8526,
7718,
28,
1528,
273,
7129,
18,
1126,
5621,
1850,
1160,
8526,
7718,
28,
5852,
273,
1865,
18,
588,
2160,
2932,
5159,
17,
28,
8863,
1850,
1815,
8867,
12,
20,
16,
14505,
5559,
18,
9877,
2160,
12,
8227,
7718,
2
] |
|
} else {
|
} else{
|
public String buildErrorString(PsiElement location) { final PsiVariable variable = (PsiVariable) location.getParent(); final PsiElement context; if (variable instanceof PsiField) { context = ((PsiMember) variable).getContainingClass(); } else { context = PsiTreeUtil.getParentOfType(variable, PsiCodeBlock.class); } final boolean written = arrayContentsAreWritten(variable, context); if (written) { return "Contents of array #ref are written to, but never read #loc"; }else { return "Contents of array #ref are read, but never written to #loc"; } }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/90cc9c6d223234a5bc900d3332b6ba90fc334cc2/MismatchedArrayReadWriteInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/MismatchedArrayReadWriteInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1361,
668,
780,
12,
52,
7722,
1046,
2117,
13,
288,
3639,
727,
453,
7722,
3092,
2190,
273,
261,
52,
7722,
3092,
13,
2117,
18,
588,
3054,
5621,
3639,
727,
453,
7722,
1046,
819,
31,
3639,
309,
261,
6105,
1276,
453,
7722,
974,
13,
288,
5411,
819,
273,
14015,
52,
7722,
4419,
13,
2190,
2934,
588,
24344,
797,
5621,
3639,
289,
469,
95,
5411,
819,
273,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6105,
16,
453,
7722,
1085,
1768,
18,
1106,
1769,
3639,
289,
3639,
727,
1250,
5941,
273,
526,
6323,
4704,
12643,
12,
6105,
16,
819,
1769,
3639,
309,
261,
9748,
13,
288,
5411,
327,
315,
6323,
434,
526,
468,
1734,
854,
5941,
358,
16,
1496,
5903,
855,
468,
1829,
14432,
3639,
289,
12107,
288,
5411,
327,
315,
6323,
434,
526,
468,
1734,
854,
855,
16,
1496,
5903,
5941,
358,
468,
1829,
14432,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1361,
668,
780,
12,
52,
7722,
1046,
2117,
13,
288,
3639,
727,
453,
7722,
3092,
2190,
273,
261,
52,
7722,
3092,
13,
2117,
18,
588,
3054,
5621,
3639,
727,
453,
7722,
1046,
819,
31,
3639,
309,
261,
6105,
1276,
453,
7722,
974,
13,
288,
5411,
819,
273,
14015,
52,
7722,
4419,
13,
2190,
2934,
588,
24344,
797,
5621,
3639,
289,
469,
95,
5411,
819,
273,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6105,
16,
453,
7722,
1085,
1768,
18,
1106,
1769,
3639,
289,
3639,
727,
1250,
5941,
273,
526,
6323,
4704,
12643,
12,
6105,
16,
819,
1769,
3639,
309,
261,
9748,
13,
288,
5411,
327,
315,
6323,
434,
526,
468,
1734,
854,
5941,
358,
2
] |
case LnConstants.DEC_MODE_128A: return "128 step advanced"; case LnConstants.DEC_MODE_28A: return "28 step advanced"; case LnConstants.DEC_MODE_128: return "128 step"; case LnConstants.DEC_MODE_14: return "14 step";
|
case LnConstants.DEC_MODE_128A: return "128 step advanced"; case LnConstants.DEC_MODE_28A: return "28 step advanced"; case LnConstants.DEC_MODE_128: return "128 step"; case LnConstants.DEC_MODE_14: return "14 step";
|
public Object getValueAt(int row, int col) { int slotNum; if (_allSlots) { // will show the entire set slotNum = row; } else { slotNum = ithActiveSlot(row); } LocoNetSlot s = SlotManager.instance().slot(slotNum); if (s == null) log.error("slot pointer was null for slot row: "+row+" col: "+col); switch (col) { case 0: // slot number return new Integer(slotNum); case 1: // return new Integer(s.locoAddr()); case 2: // return new Integer(s.speed()); case 3: // switch (s.decoderType()) { case LnConstants.DEC_MODE_128A: return "128 step advanced"; case LnConstants.DEC_MODE_28A: return "28 step advanced"; case LnConstants.DEC_MODE_128: return "128 step"; case LnConstants.DEC_MODE_14: return "14 step"; case LnConstants.DEC_MODE_28TRI: return "28 step trinary"; case LnConstants.DEC_MODE_28: return "28 step"; default: return "<unknown>"; } case 4: // switch (s.slotStatus()) { case LnConstants.LOCO_IN_USE: return "In Use"; case LnConstants.LOCO_IDLE: return "Idle"; case LnConstants.LOCO_COMMON: return "Common"; case LnConstants.LOCO_FREE: return "Free"; default: return "<error>"; } case 5: // switch (s.consistStatus()) { case LnConstants.CONSIST_MID: return "mid"; case LnConstants.CONSIST_TOP: return "top"; case LnConstants.CONSIST_SUB: return "sub"; case LnConstants.CONSIST_NO: return "none"; default: return "<error>"; } case 6: // return (s.isForward() ? "F" : "R"); case 7: // return (s.isF0() ? "On" : "Off"); case 8: // return (s.isF1() ? "On" : "Off"); case 9: // return (s.isF2() ? "On" : "Off"); case 10: // return (s.isF3() ? "On" : "Off"); case 11: // return (s.isF4() ? "On" : "Off"); case 12: // return (s.isF5() ? "On" : "Off"); case 13: // return (s.isF6() ? "On" : "Off"); case 14: // return (s.isF7() ? "On" : "Off"); case 15: // return (s.isF8() ? "On" : "Off"); case 16: return new Integer(s.id()); default: log.error("internal state inconsistent with table requst for "+row+" "+col); return null; } };
|
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/483c65800b670b9b9b5a9eb7a97cc8f30608cc62/SlotMonDataModel.java/buggy/jmri/jmrix/loconet/slotmon/SlotMonDataModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
861,
12,
474,
1027,
16,
509,
645,
13,
288,
3639,
509,
4694,
2578,
31,
3639,
309,
261,
67,
454,
16266,
13,
288,
5411,
368,
903,
2405,
326,
7278,
444,
5411,
4694,
2578,
273,
1027,
31,
3639,
289,
469,
288,
5411,
4694,
2578,
273,
277,
451,
3896,
8764,
12,
492,
1769,
3639,
289,
3639,
2851,
83,
7308,
8764,
272,
273,
23195,
1318,
18,
1336,
7675,
14194,
12,
14194,
2578,
1769,
3639,
309,
261,
87,
422,
446,
13,
613,
18,
1636,
2932,
14194,
4407,
1703,
446,
364,
4694,
1027,
30,
13773,
492,
9078,
645,
30,
13773,
1293,
1769,
3639,
1620,
261,
1293,
13,
288,
3639,
648,
374,
30,
225,
368,
4694,
1300,
5411,
327,
394,
2144,
12,
14194,
2578,
1769,
3639,
648,
404,
30,
225,
368,
5411,
327,
394,
2144,
12,
87,
18,
1829,
83,
3178,
10663,
3639,
648,
576,
30,
225,
368,
5411,
327,
394,
2144,
12,
87,
18,
13871,
10663,
3639,
648,
890,
30,
225,
368,
5411,
1620,
261,
87,
18,
21070,
559,
10756,
288,
5411,
648,
511,
82,
2918,
18,
1639,
39,
67,
7038,
67,
10392,
37,
30,
202,
202,
2463,
315,
10392,
2235,
16111,
14432,
5411,
648,
511,
82,
2918,
18,
1639,
39,
67,
7038,
67,
6030,
37,
30,
202,
202,
2463,
315,
6030,
2235,
16111,
14432,
5411,
648,
511,
82,
2918,
18,
1639,
39,
67,
7038,
67,
10392,
30,
202,
202,
2463,
315,
10392,
2235,
14432,
5411,
648,
511,
82,
2918,
18,
1639,
39,
67,
7038,
67,
3461,
30,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
861,
12,
474,
1027,
16,
509,
645,
13,
288,
3639,
509,
4694,
2578,
31,
3639,
309,
261,
67,
454,
16266,
13,
288,
5411,
368,
903,
2405,
326,
7278,
444,
5411,
4694,
2578,
273,
1027,
31,
3639,
289,
469,
288,
5411,
4694,
2578,
273,
277,
451,
3896,
8764,
12,
492,
1769,
3639,
289,
3639,
2851,
83,
7308,
8764,
272,
273,
23195,
1318,
18,
1336,
7675,
14194,
12,
14194,
2578,
1769,
3639,
309,
261,
87,
422,
446,
13,
613,
18,
1636,
2932,
14194,
4407,
1703,
446,
364,
4694,
1027,
30,
13773,
492,
9078,
645,
30,
13773,
1293,
1769,
3639,
1620,
261,
1293,
13,
288,
3639,
648,
374,
30,
225,
368,
4694,
1300,
5411,
327,
394,
2144,
12,
2
] |
String res; if( mIsCommandRunning ) { startSubCommand(mCommandEvaluateCode, fText, false); } else { startCommand(mCommandEvaluateCode, fText, false, fThread); } res = mDebugOutput; int index_n = res.lastIndexOf("\n"); int index_r = res.lastIndexOf("\r"); if ( res == null || ( (index_n <= 0) && (index_r<=0)) ) { return null; } int index; if( index_n > 0 && !(index_r>0 && index_r<index_n)) index = index_n; else index = index_r; String result = res.substring(0,index); return (result);
|
return evaluateStatement(fThread, fText,true);
|
public String evaluateStatement(Object fThread, String fText) { String res; if( mIsCommandRunning ) { startSubCommand(mCommandEvaluateCode, fText, false); } else { startCommand(mCommandEvaluateCode, fText, false, fThread); } res = mDebugOutput; int index_n = res.lastIndexOf("\n"); int index_r = res.lastIndexOf("\r"); if ( res == null || ( (index_n <= 0) && (index_r<=0)) ) { return null; } int index; if( index_n > 0 && !(index_r>0 && index_r<index_n)) index = index_n; else index = index_r; String result = res.substring(0,index); return (result); }
|
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/6ddba15fc8496d0818a1a3e2f6a771c7d36dd1f8/PerlDB.java/clean/org.epic.debug/src/org/epic/debug/PerlDB.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
5956,
3406,
12,
921,
284,
3830,
16,
514,
284,
1528,
13,
202,
95,
9506,
202,
780,
400,
31,
9506,
202,
430,
12,
312,
2520,
2189,
7051,
262,
202,
202,
95,
1082,
202,
1937,
1676,
2189,
12,
81,
2189,
15369,
1085,
16,
284,
1528,
16,
629,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1937,
2189,
12,
81,
2189,
15369,
1085,
16,
284,
1528,
16,
629,
16,
284,
3830,
1769,
202,
202,
97,
9506,
202,
455,
273,
312,
2829,
1447,
31,
202,
202,
474,
770,
67,
82,
273,
400,
18,
2722,
31985,
31458,
82,
8863,
202,
202,
474,
770,
67,
86,
273,
400,
18,
2722,
31985,
31458,
86,
8863,
9506,
202,
430,
261,
400,
422,
446,
747,
261,
261,
1615,
67,
82,
1648,
374,
13,
597,
261,
1615,
67,
86,
32,
33,
20,
3719,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
25083,
202,
474,
770,
31,
9506,
202,
430,
12,
770,
67,
82,
405,
374,
597,
401,
12,
1615,
67,
86,
34,
20,
597,
770,
67,
86,
32,
1615,
67,
82,
3719,
1082,
202,
1615,
273,
770,
67,
82,
31,
202,
202,
12107,
1875,
202,
1615,
273,
770,
67,
86,
31,
25083,
202,
780,
563,
273,
1082,
202,
455,
18,
28023,
12,
20,
16,
1615,
1769,
202,
202,
2463,
261,
2088,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
5956,
3406,
12,
921,
284,
3830,
16,
514,
284,
1528,
13,
202,
95,
9506,
202,
780,
400,
31,
9506,
202,
430,
12,
312,
2520,
2189,
7051,
262,
202,
202,
95,
1082,
202,
1937,
1676,
2189,
12,
81,
2189,
15369,
1085,
16,
284,
1528,
16,
629,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1937,
2189,
12,
81,
2189,
15369,
1085,
16,
284,
1528,
16,
629,
16,
284,
3830,
1769,
202,
202,
97,
9506,
202,
455,
273,
312,
2829,
1447,
31,
202,
202,
474,
770,
67,
82,
273,
400,
18,
2722,
31985,
31458,
82,
8863,
202,
202,
474,
770,
67,
86,
273,
400,
18,
2722,
31985,
31458,
86,
8863,
9506,
202,
430,
2
] |
} catch (BundleException ex) { bundle.framework.publishFrameworkEvent(FrameworkEvent.ERROR, bundle, ex);
|
protected String[] matchClassPath(ManifestElement[] classpath, Properties props) { if (classpath == null) { if (Debug.DEBUG && Debug.DEBUG_LOADER) Debug.println(" no classpath"); /* create default BundleClassPath */ return new String[] {"."}; } ArrayList result = new ArrayList(classpath.length); for (int i = 0; i < classpath.length; i++) { FilterImpl filter; try { filter = createFilter(classpath[i].getAttribute(Constants.SELECTION_FILTER_ATTRIBUTE)); if (filter == null || filter.match(props)) { if (Debug.DEBUG && Debug.DEBUG_LOADER) Debug.println(" found match for classpath entry " + classpath[i].getValueComponents()); String[] matchPaths = classpath[i].getValueComponents(); for (int j = 0; j < matchPaths.length; j++) { result.add(matchPaths[j]); } } } catch (InvalidSyntaxException e) { bundle.framework.publishFrameworkEvent(FrameworkEvent.ERROR, bundle, e); } catch (BundleException ex) { bundle.framework.publishFrameworkEvent(FrameworkEvent.ERROR, bundle, ex); } } return (String[]) result.toArray(new String[result.size()]); }
|
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/e4c5d10f8c326988cb38fc4445946f037be3828e/BundleLoader.java/clean/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
8526,
845,
22158,
12,
9121,
1046,
8526,
10006,
16,
6183,
3458,
13,
288,
202,
202,
430,
261,
26302,
422,
446,
13,
288,
1082,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
1502,
5483,
13,
9506,
202,
2829,
18,
8222,
2932,
225,
1158,
10006,
8863,
1082,
202,
20308,
752,
805,
8539,
22158,
1195,
1082,
202,
2463,
394,
514,
8526,
12528,
1199,
20451,
202,
202,
97,
202,
202,
19558,
563,
273,
394,
2407,
12,
26302,
18,
2469,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
10006,
18,
2469,
31,
277,
27245,
288,
1082,
202,
1586,
2828,
1034,
31,
1082,
202,
698,
288,
9506,
202,
2188,
273,
752,
1586,
12,
26302,
63,
77,
8009,
588,
1499,
12,
2918,
18,
1090,
15445,
67,
11126,
67,
11616,
10019,
9506,
202,
430,
261,
2188,
422,
446,
747,
1034,
18,
1916,
12,
9693,
3719,
288,
6862,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
1502,
5483,
13,
25083,
202,
2829,
18,
8222,
2932,
225,
1392,
845,
364,
10006,
1241,
315,
397,
10006,
63,
77,
8009,
24805,
7171,
10663,
6862,
202,
780,
8526,
845,
4466,
273,
10006,
63,
77,
8009,
24805,
7171,
5621,
6862,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
845,
4466,
18,
2469,
31,
525,
27245,
288,
25083,
202,
2088,
18,
1289,
12,
1916,
4466,
63,
78,
19226,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1044,
261,
1941,
14714,
425,
13,
288,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
8526,
845,
22158,
12,
9121,
1046,
8526,
10006,
16,
6183,
3458,
13,
288,
202,
202,
430,
261,
26302,
422,
446,
13,
288,
1082,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
1502,
5483,
13,
9506,
202,
2829,
18,
8222,
2932,
225,
1158,
10006,
8863,
1082,
202,
20308,
752,
805,
8539,
22158,
1195,
1082,
202,
2463,
394,
514,
8526,
12528,
1199,
20451,
202,
202,
97,
202,
202,
19558,
563,
273,
394,
2407,
12,
26302,
18,
2469,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
10006,
18,
2469,
31,
277,
27245,
288,
1082,
202,
1586,
2828,
1034,
31,
1082,
202,
698,
288,
9506,
202,
2188,
273,
752,
1586,
12,
26302,
2
] |
|
} else if (key.equals("op_sys")) {
|
} else if (key.equals("op_sys")) {
|
protected void createAttributeLayout() { String title = getTitleString(); String keywords = ""; String url = ""; Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_ATTRIBUTES); section.setExpanded(true); section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); // Attributes Composite- this holds all the combo fiels and text fields Composite attributesComposite = toolkit.createComposite(section); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData);// attributesComposite.setBackground(background); // End Attributes Composite section.setClient(attributesComposite); // Attributes Title Area// Composite attributesTitleComposite = new Composite(attributesComposite, SWT.NONE);// GridLayout attributesTitleLayout = new GridLayout();// attributesTitleLayout.horizontalSpacing = 0;// attributesTitleLayout.marginWidth = 0;// attributesTitleComposite.setLayout(attributesTitleLayout);// attributesTitleComposite.setBackground(background);// GridData attributesTitleData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);// attributesTitleData.horizontalSpan = 4;// attributesTitleData.grabExcessVerticalSpace = false;// attributesTitleComposite.setLayoutData(attributesTitleData); // End Attributes Title // Set the Attributes Title // newAttributesLayout(attributesTitleComposite); // titleLabel.setText(title); bugzillaInput.setToolTipText(title); int currentCol = 1; String ccValue = null; // Populate Attributes for (Iterator<Attribute> it = getBug().getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // make sure we don't try to display a hidden field if (attribute.isHidden() || (key != null && key.equals("status_whiteboard"))) continue; if (values == null) values = new HashMap<String, String>(); if (key == null) key = ""; GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; if (key.equals("short_desc") || key.equals("keywords")) { keywords = value; } else if (key.equals("newcc")) { ccValue = value; if (value == null) ccValue = ""; } else if (key.equals("bug_file_loc")) { url = value; } else if (key.equals("op_sys")) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name);// oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY);//SWT.NONE oSCombo = new Combo(attributesComposite, SWT.NONE | SWT.READ_ONLY); oSCombo.setFont(TEXT_FONT); oSCombo.setLayoutData(data);// oSCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } if (oSCombo.indexOf(value) != -1) { oSCombo.select(oSCombo.indexOf(value)); } else { oSCombo.select(oSCombo.indexOf("All")); } oSCombo.addListener(SWT.Modify, this); comboListenerMap.put(oSCombo, name); oSCombo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; toolkit.paintBordersFor(oSCombo); } else if (key.equals("version")) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); versionCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); versionCombo.setFont(TEXT_FONT); versionCombo.setLayoutData(data);// versionCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } versionCombo.select(versionCombo.indexOf(value)); versionCombo.addListener(SWT.Modify, this); versionCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(versionCombo, name); currentCol += 2; } else if (key.equals("priority")) {// newLayout(attributesComposite, 1, "Priority", PROPERTY); toolkit.createLabel(attributesComposite, name); priorityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); priorityCombo.setFont(TEXT_FONT); priorityCombo.setLayoutData(data);// priorityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } priorityCombo.select(priorityCombo.indexOf(value)); priorityCombo.addListener(SWT.Modify, this); priorityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(priorityCombo, name); currentCol += 2; } else if (key.equals("bug_severity")) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); severityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); severityCombo.setFont(TEXT_FONT); severityCombo.setLayoutData(data);// severityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } severityCombo.select(severityCombo.indexOf(value)); severityCombo.addListener(SWT.Modify, this); severityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(severityCombo, name); currentCol += 2; } else if (key.equals("target_milestone")) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); milestoneCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); milestoneCombo.setFont(TEXT_FONT); milestoneCombo.setLayoutData(data);// milestoneCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { milestoneCombo.add(a[i]); } milestoneCombo.select(milestoneCombo.indexOf(value)); milestoneCombo.addListener(SWT.Modify, this); milestoneCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(milestoneCombo, name); currentCol += 2; } else if (key.equals("rep_platform")) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); platformCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); platformCombo.setFont(TEXT_FONT); platformCombo.setLayoutData(data);// platformCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } platformCombo.select(platformCombo.indexOf(value)); platformCombo.addListener(SWT.Modify, this); platformCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(platformCombo, name); currentCol += 2; } else if (key.equals("product")) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); toolkit.createLabel(attributesComposite, value);// newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("assigned_to")) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); assignedTo = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); assignedTo.setFont(TEXT_FONT); assignedTo.setText(value); data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); data.horizontalSpan = 1; assignedTo.setLayoutData(data); assignedTo.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = assignedTo.getText(); Attribute a = getBug().getAttribute("Assign To"); if (!(a.getNewValue().equals(sel))) { a.setNewValue(sel); changeDirtyStatus(true); } } }); assignedTo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("component")) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); componentCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); componentCombo.setFont(TEXT_FONT); componentCombo.setLayoutData(data);// componentCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } componentCombo.select(componentCombo.indexOf(value)); componentCombo.addListener(SWT.Modify, this); componentCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(componentCombo, name); currentCol += 2; } else if (name.equals("Summary")) { // Don't show the summary here. continue; } else if (values.isEmpty()) {// newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); toolkit.createLabel(attributesComposite, value);// newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } if (currentCol > attributesLayout.numColumns) { currentCol -= attributesLayout.numColumns; } } // End Populate Attributes // make sure that we are in the first column if (currentCol > 1) { while (currentCol <= attributesLayout.numColumns) { newLayout(attributesComposite, 1, "", PROPERTY); currentCol++; } } // URL, Keywords, Summary Text Fields addUrlText(url, attributesComposite); // keywords text field (not editable) addKeywordsList(toolkit, keywords, attributesComposite); if (ccValue != null) { addCCList(toolkit, ccValue, attributesComposite); } addSummaryText(attributesComposite); // End URL, Keywords, Summary Text Fields toolkit.paintBordersFor(attributesComposite); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/b6fdf4c39d4d5c70a709abf29c786ecdd72915f1/AbstractBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
1499,
3744,
1435,
288,
202,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
25083,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
2250,
9334,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
13545,
67,
19082,
67,
22308,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
25083,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
1082,
202,
482,
918,
17965,
1119,
5033,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
202,
202,
22938,
9506,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
7314,
10558,
471,
977,
1466,
202,
202,
9400,
1677,
9400,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
1499,
3744,
1435,
288,
202,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
25083,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
2250,
9334,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
13545,
67,
19082,
67,
22308,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
25083,
202,
3464,
18,
1289,
2
] |
if (job.getStatus().getRunState() != JobStatus.RUNNING && (job.getFinishTime() + RETIRE_JOB_INTERVAL < System.currentTimeMillis())) { it.remove(); jobsByArrival.remove(job);
|
if (job.getStatus().getRunState() != JobStatus.RUNNING && job.getStatus().getRunState() != JobStatus.PREP && (job.getFinishTime() + RETIRE_JOB_INTERVAL < System.currentTimeMillis())) { it.remove(); jobInitQueue.remove(job); jobsByArrival.remove(job); } }
|
public void run() { while (shouldRun) { try { Thread.sleep(RETIRE_JOB_CHECK_INTERVAL); } catch (InterruptedException ie) { } synchronized (jobs) { for (Iterator it = jobs.keySet().iterator(); it.hasNext(); ) { String jobid = (String) it.next(); JobInProgress job = (JobInProgress) jobs.get(jobid); if (job.getStatus().getRunState() != JobStatus.RUNNING && (job.getFinishTime() + RETIRE_JOB_INTERVAL < System.currentTimeMillis())) { it.remove(); jobsByArrival.remove(job); } } } } }
|
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/b6fb13699445bb8fc24b8351b5603c045fb2c6d4/JobTracker.java/clean/src/java/org/apache/hadoop/mapred/JobTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1323,
261,
13139,
1997,
13,
288,
7734,
775,
288,
10792,
4884,
18,
19607,
12,
10238,
45,
862,
67,
18321,
67,
10687,
67,
16435,
1769,
7734,
289,
1044,
261,
24485,
503,
9228,
13,
288,
7734,
289,
27573,
3852,
261,
10088,
13,
288,
10792,
364,
261,
3198,
518,
273,
6550,
18,
856,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
13491,
514,
1719,
350,
273,
261,
780,
13,
518,
18,
4285,
5621,
13491,
3956,
13434,
1719,
273,
261,
2278,
13434,
13,
6550,
18,
588,
12,
4688,
350,
1769,
13491,
309,
261,
4688,
18,
588,
1482,
7675,
588,
1997,
1119,
1435,
480,
25852,
18,
29358,
597,
18701,
261,
4688,
18,
588,
11641,
950,
1435,
397,
10366,
45,
862,
67,
18321,
67,
16435,
411,
2332,
18,
2972,
28512,
1435,
3719,
288,
18701,
518,
18,
4479,
5621,
18701,
6550,
858,
5715,
5162,
18,
4479,
12,
4688,
1769,
13491,
289,
10792,
289,
7734,
289,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1323,
261,
13139,
1997,
13,
288,
7734,
775,
288,
10792,
4884,
18,
19607,
12,
10238,
45,
862,
67,
18321,
67,
10687,
67,
16435,
1769,
7734,
289,
1044,
261,
24485,
503,
9228,
13,
288,
7734,
289,
27573,
3852,
261,
10088,
13,
288,
10792,
364,
261,
3198,
518,
273,
6550,
18,
856,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
13491,
514,
1719,
350,
273,
261,
780,
13,
518,
18,
4285,
5621,
13491,
3956,
13434,
1719,
273,
261,
2278,
13434,
13,
6550,
18,
588,
12,
4688,
350,
1769,
13491,
309,
261,
4688,
18,
588,
1482,
7675,
588,
1997,
1119,
1435,
480,
25852,
18,
29358,
597,
18701,
261,
4688,
18,
588,
11641,
2
] |
insets.top = top; insets.left = left; insets.bottom = bottom; insets.right = right;
|
else { int frame_x = x - insets.left; int frame_y = y - insets.top; int frame_width = width + insets.left + insets.right; int frame_height = height + insets.top + insets.bottom;
|
protected void postConfigureEvent (int x, int y, int width, int height, int top, int left, int bottom, int right) { /* If our borders change (which often happens when we opaque resize), we need to make sure that a new layout will happen, since Sun forgets to handle this case. */ if (insets.top != top || insets.left != left || insets.bottom != bottom || insets.right != right) { awtComponent.invalidate (); } insets.top = top; insets.left = left; insets.bottom = bottom; insets.right = right; awtComponent.setBounds (x, y, width, height); awtComponent.validate (); }
|
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/0f843d89c21e86f6950f46b3c08173b3d30b9f3e/GtkWindowPeer.java/buggy/libjava/gnu/java/awt/peer/gtk/GtkWindowPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1603,
11207,
1133,
261,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
16,
6862,
377,
509,
1760,
16,
509,
2002,
16,
509,
5469,
16,
509,
2145,
13,
225,
288,
565,
1748,
3639,
971,
3134,
24028,
2549,
261,
12784,
16337,
10555,
1347,
732,
22519,
7041,
3631,
4202,
732,
1608,
358,
1221,
3071,
716,
279,
394,
3511,
903,
5865,
16,
3241,
31608,
4202,
13776,
87,
358,
1640,
333,
648,
18,
565,
1195,
565,
309,
261,
267,
4424,
18,
3669,
480,
1760,
202,
20081,
23576,
18,
4482,
480,
2002,
202,
20081,
23576,
18,
9176,
480,
5469,
202,
20081,
23576,
18,
4083,
480,
2145,
13,
1377,
288,
202,
2219,
88,
1841,
18,
5387,
340,
261,
1769,
1377,
289,
3639,
23576,
18,
3669,
273,
1760,
31,
565,
23576,
18,
4482,
273,
2002,
31,
565,
23576,
18,
9176,
273,
5469,
31,
565,
23576,
18,
4083,
273,
2145,
31,
565,
8237,
1841,
18,
542,
5694,
261,
92,
16,
677,
16,
1835,
16,
2072,
1769,
565,
8237,
1841,
18,
5662,
261,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1603,
11207,
1133,
261,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
16,
6862,
377,
509,
1760,
16,
509,
2002,
16,
509,
5469,
16,
509,
2145,
13,
225,
288,
565,
1748,
3639,
971,
3134,
24028,
2549,
261,
12784,
16337,
10555,
1347,
732,
22519,
7041,
3631,
4202,
732,
1608,
358,
1221,
3071,
716,
279,
394,
3511,
903,
5865,
16,
3241,
31608,
4202,
13776,
87,
358,
1640,
333,
648,
18,
565,
1195,
565,
309,
261,
267,
4424,
18,
3669,
480,
1760,
202,
20081,
23576,
18,
4482,
480,
2002,
202,
20081,
23576,
18,
9176,
480,
5469,
202,
20081,
23576,
18,
4083,
480,
2145,
13,
1377,
288,
202,
2219,
88,
1841,
18,
5387,
340,
261,
1769,
1377,
2
] |
private static void positionRowsOnPage(LayoutContext c, TableBox table) { int lastMoved = -1; for (int i = 0; i < table.getChildCount(); i++) { RowBox row = (RowBox)table.getChild(i); if (row.crossesPageBreak(c) && i != lastMoved) { int runStart = findStartOfRun(c, table, i); RowBox start = (RowBox)table.getChild(runStart); int delta = start.moveToNextPage(c); table.height += delta; for (int j = runStart + 1; j < table.getChildCount(); j++) { RowBox followingSibling = (RowBox)table.getChild(j); followingSibling.y += delta; followingSibling.setAbsY(followingSibling.getAbsY() + delta); } i = runStart; lastMoved = runStart; } } }
|
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/c503dd5c043db2513f5773aa55dcb4b694e3fe84/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1754,
4300,
1398,
1964,
12,
3744,
1042,
276,
16,
3555,
3514,
1014,
13,
288,
3639,
509,
1142,
25317,
273,
300,
21,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
18,
588,
1763,
1380,
5621,
277,
27245,
288,
5411,
6556,
3514,
1027,
273,
261,
1999,
3514,
13,
2121,
18,
588,
1763,
12,
77,
1769,
13491,
309,
261,
492,
18,
14653,
281,
1964,
7634,
12,
71,
13,
597,
277,
480,
1142,
25317,
13,
288,
7734,
509,
1086,
1685,
273,
1104,
1685,
951,
1997,
12,
71,
16,
1014,
16,
277,
1769,
7734,
6556,
3514,
787,
273,
261,
1999,
3514,
13,
2121,
18,
588,
1763,
12,
2681,
1685,
1769,
7734,
509,
3622,
273,
787,
18,
8501,
774,
21563,
12,
71,
1769,
7734,
1014,
18,
4210,
1011,
3622,
31,
27573,
364,
261,
474,
525,
273,
1086,
1685,
397,
404,
31,
525,
411,
1014,
18,
588,
1763,
1380,
5621,
525,
27245,
288,
10792,
6556,
3514,
3751,
10291,
273,
261,
1999,
3514,
13,
2121,
18,
588,
1763,
12,
78,
1769,
10792,
3751,
10291,
18,
93,
1011,
3622,
31,
10792,
3751,
10291,
18,
542,
9382,
61,
12,
14641,
310,
10291,
18,
588,
9382,
61,
1435,
397,
3622,
1769,
7734,
289,
27573,
277,
273,
1086,
1685,
31,
7734,
1142,
25317,
273,
1086,
1685,
31,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
760,
918,
1754,
4300,
1398,
1964,
12,
3744,
1042,
276,
16,
3555,
3514,
1014,
13,
288,
3639,
509,
1142,
25317,
273,
300,
21,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
18,
588,
1763,
1380,
5621,
277,
27245,
288,
5411,
6556,
3514,
1027,
273,
261,
1999,
3514,
13,
2121,
18,
588,
1763,
12,
77,
1769,
13491,
309,
261,
492,
18,
14653,
281,
1964,
7634,
12,
71,
13,
597,
277,
480,
1142,
25317,
13,
288,
7734,
509,
1086,
1685,
273,
1104,
1685,
951,
1997,
12,
71,
16,
1014,
16,
277,
1769,
7734,
6556,
3514,
787,
273,
261,
1999,
3514,
13,
2121,
18,
588,
1763,
12,
2681,
1685,
1769,
7734,
509,
3622,
273,
787,
18,
2
] |
||
} else { label.setText(player.get_name()); } SeatType seat_type = player.get_seat_type(); switch (seat_num) { case 0: label.setVerticalAlignment(SwingConstants.TOP); break; case 1: label.setIcon(getPlayerIcon(seat_type)); label.setVerticalTextPosition(SwingConstants.BOTTOM); label.setHorizontalTextPosition(SwingConstants.CENTER); label.setHorizontalAlignment(SwingConstants.LEFT); initPopupMenu(seat_num, seat_type); break; case 2: label.setIcon(getPlayerIcon(seat_type)); label.setVerticalAlignment(SwingConstants.TOP); initPopupMenu(seat_num, seat_type); break; case 3: label.setIcon(getPlayerIcon(seat_type)); label.setVerticalTextPosition(SwingConstants.BOTTOM); label.setHorizontalTextPosition(SwingConstants.CENTER); label.setHorizontalAlignment(SwingConstants.RIGHT); initPopupMenu(seat_num, seat_type); break; default: throw new UnsupportedOperationException( "More than 4 players not supported yet."); }
|
});
|
public void alert_player(int seat_num, SeatType old_type, String old_name) { JLabel label = player_labels[seat_num]; CardSeat player = card_client.get_nth_player(seat_num); if (label == null) { label = new JLabel(player.get_name()); label.setForeground(Color.WHITE); table.add(label, new TableConstraints( TableConstraints.PLAYER_LABEL, seat_num)); player_labels[seat_num] = label; if (seat_num != 0) { // Listen for click events so as to pop up a menu that allows // users to do things to this seat. label.addMouseListener(new PopupListener()); } } else { label.setText(player.get_name()); } // Position the labels. SeatType seat_type = player.get_seat_type(); switch (seat_num) { case 0: // Me - south label.setVerticalAlignment(SwingConstants.TOP); break; case 1: // West label.setIcon(getPlayerIcon(seat_type)); label.setVerticalTextPosition(SwingConstants.BOTTOM); label.setHorizontalTextPosition(SwingConstants.CENTER); label.setHorizontalAlignment(SwingConstants.LEFT); initPopupMenu(seat_num, seat_type); break; case 2: // North label.setIcon(getPlayerIcon(seat_type)); label.setVerticalAlignment(SwingConstants.TOP); initPopupMenu(seat_num, seat_type); break; case 3: // East label.setIcon(getPlayerIcon(seat_type)); label.setVerticalTextPosition(SwingConstants.BOTTOM); label.setHorizontalTextPosition(SwingConstants.CENTER); label.setHorizontalAlignment(SwingConstants.RIGHT); initPopupMenu(seat_num, seat_type); break; default: throw new UnsupportedOperationException( "More than 4 players not supported yet."); } }
|
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/212d52f63e654cbed92d45f72438f2c39373b1f5/GamePanel.java/clean/playground/ggz-java5/src/ggz/cards/GamePanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6881,
67,
14872,
12,
474,
695,
270,
67,
2107,
16,
3265,
270,
559,
1592,
67,
723,
16,
514,
1592,
67,
529,
13,
288,
3639,
21403,
1433,
273,
7291,
67,
5336,
63,
307,
270,
67,
2107,
15533,
3639,
14338,
1761,
270,
7291,
273,
5270,
67,
2625,
18,
588,
67,
82,
451,
67,
14872,
12,
307,
270,
67,
2107,
1769,
3639,
309,
261,
1925,
422,
446,
13,
288,
5411,
1433,
273,
394,
21403,
12,
14872,
18,
588,
67,
529,
10663,
5411,
1433,
18,
542,
23206,
12,
2957,
18,
16861,
1769,
5411,
1014,
18,
1289,
12,
1925,
16,
394,
3555,
4878,
12,
10792,
3555,
4878,
18,
52,
22166,
67,
13545,
16,
695,
270,
67,
2107,
10019,
5411,
7291,
67,
5336,
63,
307,
270,
67,
2107,
65,
273,
1433,
31,
5411,
309,
261,
307,
270,
67,
2107,
480,
374,
13,
288,
7734,
368,
13426,
364,
4682,
2641,
1427,
487,
358,
1843,
731,
279,
3824,
716,
5360,
7734,
368,
3677,
358,
741,
9198,
358,
333,
695,
270,
18,
7734,
1433,
18,
1289,
9186,
2223,
12,
2704,
10264,
416,
2223,
10663,
5411,
289,
3639,
289,
469,
288,
5411,
1433,
18,
542,
1528,
12,
14872,
18,
588,
67,
529,
10663,
3639,
289,
3639,
368,
11010,
326,
3249,
18,
3639,
3265,
270,
559,
695,
270,
67,
723,
273,
7291,
18,
588,
67,
307,
270,
67,
723,
5621,
3639,
1620,
261,
307,
270,
67,
2107,
13,
288,
3639,
648,
374,
30,
368,
7499,
300,
24516,
5411,
1433,
18,
542,
15704,
11535,
12,
6050,
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,
6881,
67,
14872,
12,
474,
695,
270,
67,
2107,
16,
3265,
270,
559,
1592,
67,
723,
16,
514,
1592,
67,
529,
13,
288,
3639,
21403,
1433,
273,
7291,
67,
5336,
63,
307,
270,
67,
2107,
15533,
3639,
14338,
1761,
270,
7291,
273,
5270,
67,
2625,
18,
588,
67,
82,
451,
67,
14872,
12,
307,
270,
67,
2107,
1769,
3639,
309,
261,
1925,
422,
446,
13,
288,
5411,
1433,
273,
394,
21403,
12,
14872,
18,
588,
67,
529,
10663,
5411,
1433,
18,
542,
23206,
12,
2957,
18,
16861,
1769,
5411,
1014,
18,
1289,
12,
1925,
16,
394,
3555,
4878,
12,
10792,
3555,
4878,
18,
52,
22166,
67,
13545,
16,
695,
270,
67,
2107,
10019,
5411,
7291,
67,
2
] |
Vault.releaseDbConnection(dbConn);
|
if(m_dbConnection!=dbConn && dbConn!=null) Vault.releaseDbConnection(dbConn);
|
public static Element[] getElementsOfMap(int mapid) throws SQLException, MapsException { final String sqlQuery = "SELECT * FROM element WHERE mapid = ?"; Connection dbConn = Vault.getDbConnection(); PreparedStatement statement = dbConn.prepareStatement(sqlQuery); statement.setInt(1, mapid); ResultSet rs = statement.executeQuery(); Vector elements = rs2ElementVector(rs); Element[] el =null; if(elements!=null){ el = new Element[elements.size()]; el=(Element[])elements.toArray(el); } rs.close(); statement.close(); Vault.releaseDbConnection(dbConn); return el; }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/069d0e7b3a96289b7c94aecc6c8a14fee3498895/Factory.java/buggy/opennms-webapp/src/main/java/org/opennms/web/map/db/Factory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3010,
8526,
8886,
951,
863,
12,
474,
852,
350,
13,
1216,
6483,
16,
19837,
503,
288,
1377,
727,
514,
24451,
273,
315,
4803,
380,
4571,
930,
4852,
852,
350,
273,
692,
14432,
1377,
4050,
30795,
273,
17329,
18,
588,
4331,
1952,
5621,
1377,
16913,
3021,
273,
30795,
18,
9366,
3406,
12,
4669,
1138,
1769,
1377,
3021,
18,
542,
1702,
12,
21,
16,
852,
350,
1769,
1377,
10842,
3597,
273,
3021,
18,
8837,
1138,
5621,
1377,
5589,
2186,
273,
3597,
22,
1046,
5018,
12,
5453,
1769,
1377,
3010,
8526,
415,
273,
2011,
31,
1377,
309,
12,
6274,
5,
33,
2011,
15329,
202,
3639,
415,
273,
394,
3010,
63,
6274,
18,
1467,
1435,
15533,
202,
3639,
415,
28657,
1046,
63,
5717,
6274,
18,
31447,
12,
292,
1769,
1377,
289,
1377,
3597,
18,
4412,
5621,
1377,
3021,
18,
4412,
5621,
1377,
309,
12,
81,
67,
1966,
1952,
5,
33,
1966,
3543,
597,
30795,
5,
33,
2011,
13,
17329,
18,
9340,
4331,
1952,
12,
1966,
3543,
1769,
1377,
327,
415,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3010,
8526,
8886,
951,
863,
12,
474,
852,
350,
13,
1216,
6483,
16,
19837,
503,
288,
1377,
727,
514,
24451,
273,
315,
4803,
380,
4571,
930,
4852,
852,
350,
273,
692,
14432,
1377,
4050,
30795,
273,
17329,
18,
588,
4331,
1952,
5621,
1377,
16913,
3021,
273,
30795,
18,
9366,
3406,
12,
4669,
1138,
1769,
1377,
3021,
18,
542,
1702,
12,
21,
16,
852,
350,
1769,
1377,
10842,
3597,
273,
3021,
18,
8837,
1138,
5621,
1377,
5589,
2186,
273,
3597,
22,
1046,
5018,
12,
5453,
1769,
1377,
3010,
8526,
415,
273,
2011,
31,
1377,
309,
12,
6274,
5,
33,
2011,
15329,
202,
3639,
415,
273,
394,
3010,
63,
6274,
18,
1467,
1435,
15533,
202,
3639,
415,
28657,
2
] |
return DateTime.parse(StringValue.stringValue(value), DateTime.DATE_MASK|DateTime.TIME_MASK);
|
return XTimeType.parseDateTime(StringValue.stringValue(value), DateTime.DATE_MASK|DateTime.TIME_MASK);
|
static DateTime coerceToDateTime (String fun, Object value) { if (XTimeType.dateTimeType.isInstance(value)) return (DateTime) value; if (value instanceof KNode || value instanceof UntypedAtomic) return DateTime.parse(StringValue.stringValue(value), DateTime.DATE_MASK|DateTime.TIME_MASK); throw new WrongType(fun, 1, value, "xs:dateTime"); }
|
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/17d1e907057b7ea9cf7fd39cddb89988d433bca5/TimeUtils.java/buggy/gnu/xquery/util/TimeUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3716,
12270,
774,
5096,
261,
780,
9831,
16,
1033,
460,
13,
225,
288,
565,
309,
261,
60,
950,
559,
18,
712,
950,
559,
18,
291,
1442,
12,
1132,
3719,
1377,
327,
261,
5096,
13,
460,
31,
565,
309,
261,
1132,
1276,
1475,
907,
747,
460,
1276,
23931,
6140,
23102,
13,
1377,
327,
3716,
18,
2670,
12,
19733,
18,
1080,
620,
12,
1132,
3631,
18701,
3716,
18,
4594,
67,
11704,
96,
5096,
18,
4684,
67,
11704,
1769,
565,
604,
394,
24668,
559,
12,
12125,
16,
404,
16,
460,
16,
315,
13713,
30,
712,
950,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3716,
12270,
774,
5096,
261,
780,
9831,
16,
1033,
460,
13,
225,
288,
565,
309,
261,
60,
950,
559,
18,
712,
950,
559,
18,
291,
1442,
12,
1132,
3719,
1377,
327,
261,
5096,
13,
460,
31,
565,
309,
261,
1132,
1276,
1475,
907,
747,
460,
1276,
23931,
6140,
23102,
13,
1377,
327,
3716,
18,
2670,
12,
19733,
18,
1080,
620,
12,
1132,
3631,
18701,
3716,
18,
4594,
67,
11704,
96,
5096,
18,
4684,
67,
11704,
1769,
565,
604,
394,
24668,
559,
12,
12125,
16,
404,
16,
460,
16,
315,
13713,
30,
712,
950,
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
] |
ResultSet rs = conn.ExecSQL("select typname from pg_type,pg_class where typname=relname and typname='"+type+"'");
|
ResultSet rs = conn.ExecSQL(null, "select typname from pg_type,pg_class where typname=relname and typname='"+type+"'");
|
public Serialize(org.postgresql.Connection c,String type) throws SQLException { try { conn = c; tableName = type.toLowerCase(); className = toClassName(type); ourClass = Class.forName(className); } catch(ClassNotFoundException cnfe) { throw new PSQLException("postgresql.serial.noclass",type); } // Second check, the type must be a table boolean status = false; ResultSet rs = conn.ExecSQL("select typname from pg_type,pg_class where typname=relname and typname='"+type+"'"); if(rs!=null) { if(rs.next()) status=true; rs.close(); } // This should never occur, as org.postgresql has it's own internal checks if(!status) throw new PSQLException("postgresql.serial.table",type); // Finally cache the fields within the table }
|
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Serialize.java/clean/src/interfaces/jdbc/org/postgresql/util/Serialize.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14293,
12,
3341,
18,
2767,
24330,
18,
1952,
276,
16,
780,
618,
13,
1216,
6483,
225,
288,
565,
775,
288,
1377,
1487,
273,
276,
31,
1377,
4775,
273,
618,
18,
869,
5630,
5621,
1377,
2658,
273,
358,
3834,
12,
723,
1769,
1377,
3134,
797,
273,
1659,
18,
1884,
461,
12,
12434,
1769,
565,
289,
1044,
12,
797,
3990,
6227,
3030,
13,
288,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
8818,
18,
31470,
459,
3113,
723,
1769,
565,
289,
3639,
368,
7631,
866,
16,
326,
618,
1297,
506,
279,
1014,
565,
1250,
1267,
273,
629,
31,
565,
10842,
3597,
273,
1487,
18,
1905,
3997,
12,
2011,
16,
315,
4025,
3815,
529,
628,
7184,
67,
723,
16,
8365,
67,
1106,
1625,
3815,
529,
33,
2878,
529,
471,
3815,
529,
13396,
15,
723,
9078,
4970,
1769,
565,
309,
12,
5453,
5,
33,
2011,
13,
288,
1377,
309,
12,
5453,
18,
4285,
10756,
202,
2327,
33,
3767,
31,
1377,
3597,
18,
4412,
5621,
565,
289,
565,
368,
1220,
1410,
5903,
3334,
16,
487,
2358,
18,
2767,
24330,
711,
518,
1807,
4953,
2713,
4271,
565,
309,
12,
5,
2327,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
8818,
18,
2121,
3113,
723,
1769,
3639,
368,
15768,
1247,
326,
1466,
3470,
326,
1014,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14293,
12,
3341,
18,
2767,
24330,
18,
1952,
276,
16,
780,
618,
13,
1216,
6483,
225,
288,
565,
775,
288,
1377,
1487,
273,
276,
31,
1377,
4775,
273,
618,
18,
869,
5630,
5621,
1377,
2658,
273,
358,
3834,
12,
723,
1769,
1377,
3134,
797,
273,
1659,
18,
1884,
461,
12,
12434,
1769,
565,
289,
1044,
12,
797,
3990,
6227,
3030,
13,
288,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
8818,
18,
31470,
459,
3113,
723,
1769,
565,
289,
3639,
368,
7631,
866,
16,
326,
618,
1297,
506,
279,
1014,
565,
1250,
1267,
273,
629,
31,
565,
10842,
3597,
273,
1487,
18,
1905,
3997,
12,
2011,
16,
315,
4025,
3815,
529,
628,
7184,
67,
723,
16,
2
] |
public PersistencePreference(PersistenceManagerRdbms pm) {
|
public PersistencePreference() {
|
public PersistencePreference(PersistenceManagerRdbms pm) { super(); this.pm = pm; }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/6a19cc994dd65303b3b6209e9064f56a3fc80ef9/PersistencePreference.java/buggy/src/org/gridlab/gridsphere/portlet/jsrimpl/PersistencePreference.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13381,
9624,
1435,
288,
3639,
2240,
5621,
3639,
333,
18,
7755,
273,
7430,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13381,
9624,
1435,
288,
3639,
2240,
5621,
3639,
333,
18,
7755,
273,
7430,
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
] |
protected void visit(Node iVisited) { visit(iVisited, true); }
|
protected void visit(Node iVisited) { visit(iVisited, true); }
|
protected void visit(Node iVisited) { visit(iVisited, true); }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3757,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
16,
638,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3757,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
16,
638,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (log.isDebugEnabled()) { log.debug("pass " + pass + " on service " + name + " will invoke method \"" + todo[k].getMethod() + "\"");
|
if (invokerLog.isDebugEnabled()) { invokerLog.debug("pass " + pass + " on service " + name + " will invoke method \"" + todo[k].getMethod() + "\"");
|
private static List invokeMethods(MBeanServer server, InvokerService[] invokerServices, InvokeAtType at, boolean reverse, boolean failFast) { Category log = ThreadCategory.getInstance(Manager.class); Integer[] serviceIndexes = new Integer[invokerServices.length]; for (int i = 0; i < invokerServices.length; i++) { if (!reverse) { serviceIndexes[i] = new Integer(i); } else { serviceIndexes[i] = new Integer(invokerServices.length - 1 - i); } } List resultInfo = new ArrayList(invokerServices.length); for (int pass = 0, end = getEndPass(invokerServices); pass <= end; pass++) { if (log.isDebugEnabled()) { log.debug("starting pass " + pass); } for (int i = 0; i < serviceIndexes.length; i++) { int j = serviceIndexes[i].intValue(); String name = invokerServices[j].getService().getName(); if (invokerServices[j].isBadService()) { if (log.isDebugEnabled()) { log.debug("pass " + pass + " on service " + name + " is bad: not invoking any more methods"); } break; } Invoke[] todo = invokerServices[j].getService().getInvoke(); for (int k = 0; todo != null && k < todo.length; k++) { if (todo[k].getPass() != pass || !at.equals(todo[k].getAt())) { continue; } Service service = invokerServices[j].getService(); ObjectInstance mbean = invokerServices[j].getMbean(); if (log.isDebugEnabled()) { log.debug("pass " + pass + " on service " + name + " will invoke method \"" + todo[k].getMethod() + "\""); } try { Object result = invoke(server, todo[k], mbean); resultInfo.add(new InvokerResult(service, mbean, result, null)); } catch (Throwable t) { resultInfo.add(new InvokerResult(service, mbean, null, t)); if (failFast) { return resultInfo; } } } } if (log.isDebugEnabled()) { log.debug("completed pass " + pass); } } return resultInfo; }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/ecd62ed236d13ba5e40cad90759a671d988ac804/Manager.java/clean/src/services/org/opennms/netmgt/vmmgr/Manager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
987,
4356,
4712,
12,
18089,
2081,
1438,
16,
4766,
1377,
17602,
264,
1179,
8526,
24920,
5676,
16,
4766,
1377,
14373,
861,
559,
622,
16,
1250,
4219,
16,
4766,
1377,
1250,
2321,
12305,
13,
288,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
1318,
18,
1106,
1769,
3639,
2144,
8526,
1156,
8639,
273,
394,
2144,
63,
5768,
601,
264,
5676,
18,
2469,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
24920,
5676,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
9845,
13,
288,
7734,
1156,
8639,
63,
77,
65,
273,
394,
2144,
12,
77,
1769,
5411,
289,
469,
288,
7734,
1156,
8639,
63,
77,
65,
273,
394,
2144,
12,
5768,
601,
264,
5676,
18,
2469,
300,
404,
300,
277,
1769,
5411,
289,
3639,
289,
3639,
987,
563,
966,
273,
394,
2407,
12,
5768,
601,
264,
5676,
18,
2469,
1769,
3639,
364,
261,
474,
1342,
273,
374,
16,
679,
273,
9968,
6433,
12,
5768,
601,
264,
5676,
1769,
1342,
1648,
679,
31,
2398,
1342,
27245,
288,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
7734,
613,
18,
4148,
2932,
18526,
1342,
315,
397,
1342,
1769,
5411,
289,
13491,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1156,
8639,
18,
2469,
31,
277,
27245,
288,
7734,
509,
525,
273,
1156,
8639,
63,
77,
8009,
474,
620,
5621,
7734,
514,
508,
273,
24920,
5676,
63,
78,
8009,
588,
1179,
7675,
17994,
5621,
7734,
309,
261,
5768,
601,
264,
5676,
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,
987,
4356,
4712,
12,
18089,
2081,
1438,
16,
4766,
1377,
17602,
264,
1179,
8526,
24920,
5676,
16,
4766,
1377,
14373,
861,
559,
622,
16,
1250,
4219,
16,
4766,
1377,
1250,
2321,
12305,
13,
288,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
1318,
18,
1106,
1769,
3639,
2144,
8526,
1156,
8639,
273,
394,
2144,
63,
5768,
601,
264,
5676,
18,
2469,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
24920,
5676,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
9845,
13,
288,
7734,
1156,
8639,
63,
77,
65,
273,
394,
2144,
12,
77,
1769,
5411,
289,
469,
288,
7734,
1156,
8639,
63,
77,
65,
273,
394,
2144,
12,
5768,
601,
2
] |
boolean routingBackedOffNow = (now < routingBackedOffUntil);
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } StringBuffer buf = new StringBuffer(1024); //HTTPRequest request = new HTTPRequest(uri); ctx.getPageMaker().makeHead(buf, "Darknet Peers"); // FIXME! We need some nice images PeerNode[] peerNodes = node.getDarknetConnections(); long now = System.currentTimeMillis(); boolean advancedEnabled = node.getToadletContainer().isAdvancedDarknetEnabled(); node.alerts.toSummaryHtml(buf); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = (int) node.getNetworkSizeEstimate( 0 ); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); /* gather connection statistics */ int numberOfConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_NEVER_CONNECTED); buf.append("<table class=\"column\"><tr><td class=\"first\">"); /* node status overview box */ if(advancedEnabled) { buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Node status overview</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); buf.append("<li>bwlimitDelayTime: ").append(bwlimitDelayTime).append("ms</li>"); buf.append("<li>nodeAveragePingTime: ").append(nodeAveragePingTime).append("ms</li>"); buf.append("<li>networkSizeEstimate: ").append(networkSizeEstimate).append(" nodes</li>"); buf.append("<li>nodeUptime: ").append(nodeUptimeString).append("</li>"); buf.append("</ul></div>"); buf.append("</div>\n"); buf.append("</td><td>"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); buf.append("<div class=\"infobox\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Current Activity\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { buf.append("Your node is not processing any requests right now."); } else { buf.append("<ul id=\"activity\">\n"); if (numInserts > 0) { buf.append("<li>Inserts: ").append(numInserts).append("</li>"); } if (numRequests > 0) { buf.append("<li>Requests: ").append(numRequests).append("</li>"); } if (numTransferringRequests > 0) { buf.append("<li>Transferring Requests: ").append(numTransferringRequests).append("</li>"); } if(advancedEnabled) { if (numARKFetchers > 0) { buf.append("<li>ARK Fetch Requests: ").append(numARKFetchers).append("</li>"); } } buf.append("</ul>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); buf.append("</td><td>"); // Peer statistics box buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer statistics</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); if (numberOfConnected > 0) { buf.append("<li><span class=\"peer_connected\">Connected: ").append(numberOfConnected).append("</span></li>"); } if (numberOfRoutingBackedOff > 0) { buf.append("<li><span class=\"peer_backedoff\">Backed off: ").append(numberOfRoutingBackedOff).append("</span></li>"); } if (numberOfTooNew > 0) { buf.append("<li><span class=\"peer_too_new\">Too new: ").append(numberOfTooNew).append("</span></li>"); } if (numberOfTooOld > 0) { buf.append("<li><span class=\"peer_too_old\">Too old: ").append(numberOfTooOld).append("</span></li>"); } if (numberOfDisconnected > 0) { buf.append("<li><span class=\"peer_disconnected\">Disconnected: ").append(numberOfDisconnected).append("</span></li>"); } if (numberOfNeverConnected > 0) { buf.append("<li><span class=\"peer_never_connected\">Never Connected: ").append(numberOfNeverConnected).append("</span></li>"); } buf.append("</ul>"); buf.append("</div>"); buf.append("</div>\n"); // Peer routing backoff reason box if(advancedEnabled) { buf.append("</td><td class=\"last\">"); buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer backoff reasons</div>"); buf.append("<div class=\"infobox-content\">"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { buf.append("Good, your node is not backed off from any peers!<br/>\n"); } else { buf.append("<ul>\n"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { buf.append("<li>").append(routingBackoffReasons[i]).append(": ").append(reasonCount).append("</li>\n"); } } buf.append("</ul>\n"); } buf.append("</div>"); buf.append("</div>\n"); } buf.append("</td></tr></table>\n"); buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("My Peers"); if(advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { buf.append(" <a href=\"displaymessagetypes.html\">(more detailed)</a>"); } } buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); StringBuffer buf2 = new StringBuffer(1024); buf2.append("<table class=\"darknet_connections\">\n"); buf2.append(" <tr>\n"); buf2.append(" <th></th>\n"); buf2.append(" <th>Status</th>\n"); buf2.append(" <th><span title=\"Click on the nodename link to send a N2NTM\" style=\"border-bottom:1px dotted;cursor:help;\">Name</span></th>\n"); if(advancedEnabled) { buf2.append(" <th><span title=\"Address:Port\" style=\"border-bottom:1px dotted;cursor:help;\">Address</span></th>\n"); } buf2.append(" <th>Version</th>\n"); if(advancedEnabled) { buf2.append(" <th>Location</th>\n"); buf2.append(" <th><span title=\"Temporarily disconnected. Other node busy? Wait time(s) remaining/total\" style=\"border-bottom:1px dotted;cursor:help;\">Backoff</span></th>\n"); } buf2.append(" <th><span title=\"How long since the node was last seen\" style=\"border-bottom:1px dotted;cursor:help;\">Idle</span></th>\n"); buf2.append(" </tr>\n"); if (peerNodes.length == 0) { buf2.append("<tr><td colspan=\"8\">Freenet can't work - you have not added any peers so far. <a href=\"/\">Go here</a> and read the top infobox to see how it's done.</td></tr>\n"); buf2.append("</table>\n"); // buf.append(buf2); } else { // Create array Object[][] rows = new Object[peerNodes.length][]; for(int i=0;i<peerNodes.length;i++) { PeerNode pn = peerNodes[i]; long routingBackedOffUntil = pn.getRoutingBackedOffUntil(); boolean routingBackedOffNow = (now < routingBackedOffUntil); int backoff = (int)(Math.max(routingBackedOffUntil - now, 0)); // Don't list the backoff as zero before it's actually zero if(backoff > 0 && backoff < 1000 ) backoff = 1000; // Elements must be HTML encoded. Object[] row = new Object[10]; // where [0] is the pn object and 9 is the node name only for sorting! rows[i] = row; Object status = new Integer(pn.getPeerNodeStatus()); long idle = pn.lastReceivedPacketTime(); if(((Integer) status).intValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) idle = pn.getPeerAddedTime(); String lastBackoffReasonOutputString = ""; if(advancedEnabled) { String backoffReason = pn.getLastBackoffReason(); if( backoffReason != null ) { lastBackoffReasonOutputString = "/"+backoffReason; } else { lastBackoffReasonOutputString = "/"; } } String avgPingTimeString = ""; if(advancedEnabled) { if(pn.isConnected()) { avgPingTimeString = " ("+(int) pn.averagePingTime()+"ms)"; } } String VersionPrefixString = ""; String VersionString = ""; String VersionSuffixString = ""; if(pn.publicInvalidVersion() || pn.publicReverseInvalidVersion()) { VersionPrefixString = "<span class=\"peer_version_problem\">"; VersionSuffixString = "</span>"; } String NamePrefixString = ""; String NameSuffixString = ""; if(pn.isConnected()) { NamePrefixString = "<a href=\"/send_n2ntm/?peernode_hashcode="+pn.hashCode()+"\">"; NameSuffixString = "</a>"; } if(advancedEnabled) { VersionString = HTMLEncoder.encode(pn.getVersion()); } else { VersionString = HTMLEncoder.encode(pn.getSimpleVersion()); } row[0] = pn; row[1] = "<input type=\"checkbox\" name=\"delete_node_"+pn.hashCode()+"\" />"; row[2] = status; row[3] = NamePrefixString+HTMLEncoder.encode(pn.getName())+NameSuffixString; row[4] = ( pn.getDetectedPeer() != null ? HTMLEncoder.encode(pn.getDetectedPeer().toString()) : "(address unknown)" ) + avgPingTimeString; row[5] = VersionPrefixString+VersionString+VersionSuffixString; row[6] = new Double(pn.getLocation().getValue()); row[7] = backoff/1000 + "/" + pn.getRoutingBackoffLength()/1000+lastBackoffReasonOutputString; row[8] = idleToString(now, idle, ((Integer) status).intValue()); row[9] = HTMLEncoder.encode(pn.getName()); } // Sort array Arrays.sort(rows, new MyComparator()); // Convert status codes into status strings for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; int x = ((Integer) row[2]).intValue(); String arkAsterisk = ""; if(advancedEnabled) { if(((PeerNode) row[0]).isFetchingARK()) { arkAsterisk = "*"; } } row[2] = "<span class=\""+((PeerNode) row[0]).getPeerNodeStatusCSSClassName()+"\">"+((PeerNode) row[0]).getPeerNodeStatusString()+arkAsterisk+"</span>"; } // Turn array into HTML for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; buf2.append("<tr>"); for(int j=1;j<row.length;j++) { // skip index 0 as it's the PeerNode object if(j == 9) { // skip index 9 as it's used for sorting purposes only continue; } if(!advancedEnabled) { // if not in advanced Darknet page output mode if( j == 4 || j == 6 || j == 7 ) { // skip IP address/name, location and backoff times continue; } } buf2.append("<td>"+row[j]+"</td>"); } buf2.append("</tr>\n"); if (path.endsWith("displaymessagetypes.html")) { buf2.append("<tr class=\"messagetypes\"><td colspan=\"8\">\n"); buf2.append("<table class=\"sentmessagetypes\">\n"); buf2.append("<tr><th>Sent Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("<table class=\"receivedmessagetypes\">\n"); buf2.append("<tr><th>Received Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("</td></tr>\n"); } } buf2.append("</table>\n"); // buf.append(buf2); // buf.append("<input type=\"submit\" name=\"remove\" value=\"Remove selected peers\" />"); if(advancedEnabled) { buf.append(" <span class=\"darknet_connections\">* Requesting ARK</span>\n"); } buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />"); buf.append("</form>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); // new peer addition box buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Add another peer\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); buf.append("Reference:<br />\n"); buf.append("<textarea id=\"reftext\" name=\"ref\" rows=\"8\" cols=\"74\"></textarea>\n"); buf.append("<br />\n"); buf.append("or URL:\n"); buf.append("<input id=\"refurl\" type=\"text\" name=\"url\" />\n"); buf.append("<br />\n"); buf.append("or file:\n"); buf.append("<input id=\"reffile\" type=\"file\" name=\"reffile\" />\n"); buf.append("<br />\n"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />"); buf.append("<input type=\"submit\" name=\"add\" value=\"Add\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // our reference buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("<a href=\"myref.txt\">My Reference</a>\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<pre id=\"reference\">\n"); buf.append(HTMLEncoder.encode(this.node.exportPublicFieldSet().toString())); buf.append("</pre>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/a742c7e613e032e408b0845c7f2ddc5edbddba64/DarknetConnectionsToadlet.java/buggy/src/freenet/clients/http/DarknetConnectionsToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
5830,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
18,
10492,
10663,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
780,
1892,
1681,
273,
394,
6674,
12,
2163,
3247,
1769,
9506,
202,
759,
23891,
590,
273,
394,
25238,
12,
1650,
1769,
202,
202,
5900,
18,
588,
1964,
12373,
7675,
6540,
1414,
12,
4385,
16,
315,
40,
1313,
2758,
19622,
414,
8863,
9506,
202,
759,
9852,
5,
1660,
1608,
2690,
13752,
4602,
202,
202,
6813,
907,
8526,
4261,
3205,
273,
756,
18,
588,
40,
1313,
2758,
9314,
5621,
9506,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
6494,
16111,
1526,
273,
756,
18,
588,
774,
361,
1810,
2170,
7675,
291,
23618,
40,
1313,
2758,
1526,
5621,
9506,
202,
2159,
18,
11798,
87,
18,
869,
4733,
4353,
12,
4385,
1769,
9506,
202,
20308,
756,
1267,
924,
1195,
202,
202,
474,
12986,
3595,
6763,
950,
273,
261,
474,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
5830,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
18,
10492,
10663,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2
] |
|
GridLayout gridLayout = new GridLayout( 4, false );
|
GridLayout gridLayout = new GridLayout( 3, false );
|
private void createDataSetArea( Composite parent ) { Composite cmpDataSet = new Composite( parent, SWT.NONE ); { GridLayout gridLayout = new GridLayout( 4, false ); gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; cmpDataSet.setLayout( gridLayout ); cmpDataSet.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); } Label label = new Label( cmpDataSet, SWT.NONE ); { label.setText( Messages.getString( "TaskSelectData.Label.SelectDataSet" ) ); //$NON-NLS-1$ label.setFont( JFaceResources.getBannerFont( ) ); label.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_BEGINNING ) ); } Composite comp = createCompositeWrapper( cmpDataSet ); btnUseReportData = new Button( comp, SWT.RADIO ); btnUseReportData.setText( Messages.getString( "TaskSelectData.Label.UseReportData" ) ); //$NON-NLS-1$ btnUseReportData.addSelectionListener( this ); btnUseDataSet = new Button( comp, SWT.RADIO ); btnUseDataSet.setText( Messages.getString( "TaskSelectData.Label.UseDataSet" ) ); //$NON-NLS-1$ btnUseDataSet.addSelectionListener( this ); cmbDataSet = new Combo( cmpDataSet, SWT.DROP_DOWN | SWT.READ_ONLY ); cmbDataSet.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_END | GridData.FILL_HORIZONTAL ) ); cmbDataSet.addSelectionListener( this ); btnNewData = new Button( cmpDataSet, SWT.NONE ); { btnNewData.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_END ) ); btnNewData.setText( Messages.getString( "TaskSelectData.Label.CreateNew" ) ); //$NON-NLS-1$ btnNewData.setToolTipText( Messages.getString( "TaskSelectData.Tooltip.CreateNewDataset" ) ); //$NON-NLS-1$ btnNewData.addSelectionListener( this ); } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ac26365eb54b9a10e69498a213cb6f605f15760b/TaskSelectData.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
13676,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9411,
13676,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
6313,
3744,
3068,
3744,
273,
394,
7145,
3744,
12,
1059,
16,
629,
11272,
1082,
202,
5222,
3744,
18,
10107,
2384,
273,
374,
31,
1082,
202,
5222,
3744,
18,
10107,
2686,
273,
374,
31,
1082,
202,
9625,
13676,
18,
542,
3744,
12,
3068,
3744,
11272,
1082,
202,
9625,
13676,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
97,
202,
202,
2224,
1433,
273,
394,
5287,
12,
9411,
13676,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
1925,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
2174,
3391,
751,
18,
2224,
18,
3391,
13676,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
1925,
18,
542,
5711,
12,
804,
11824,
3805,
18,
588,
27398,
5711,
12,
262,
11272,
1082,
202,
1925,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
262,
11272,
202,
202,
97,
202,
202,
9400,
1161,
273,
752,
9400,
3611,
12,
9411,
13676,
11272,
202,
202,
11898,
3727,
4820,
751,
273,
394,
12569,
12,
1161,
16,
348,
8588,
18,
28829,
4294,
11272,
202,
202,
11898,
3727,
4820,
751,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
2174,
3391,
751,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
13676,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9411,
13676,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
6313,
3744,
3068,
3744,
273,
394,
7145,
3744,
12,
1059,
16,
629,
11272,
1082,
202,
5222,
3744,
18,
10107,
2384,
273,
374,
31,
1082,
202,
5222,
3744,
18,
10107,
2686,
273,
374,
31,
1082,
202,
9625,
13676,
18,
542,
3744,
12,
3068,
3744,
11272,
1082,
202,
9625,
13676,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
97,
202,
202,
2224,
1433,
273,
394,
5287,
12,
9411,
13676,
16,
348,
8588,
18,
9826,
11272,
2
] |
public void onApplicationEvent(ApplicationEvent orderEvent) { super.onApplicationEvent(orderEvent); //Get the order Order order = (Order) orderEvent.getSource(); String result = processOrder(order); //Cast the event to a Mule event, we'll use this to get the AppContext MuleApplicationEvent muleEvent = (MuleApplicationEvent) orderEvent; //Create a new MuleEvent. This will be sent to the replyTo //address MuleApplicationEvent returnEvent = null; try { returnEvent = new MuleApplicationEvent(result, "jms://processed.queue"); } catch (MalformedEndpointException e) { //ignore } //Call publish on the application context, Mule will do the rest muleEvent.getApplicationContext().publishEvent(returnEvent); }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/8cc09178adb8b0a3803c08f7b3cf0b6cf566d2b0/OrderManagerBean.java/buggy/tests/integration/src/test/java/org/mule/test/integration/spring/events/OrderManagerBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
603,
3208,
1133,
12,
3208,
1133,
1353,
1133,
13,
565,
288,
3639,
2240,
18,
265,
3208,
1133,
12,
1019,
1133,
1769,
3639,
368,
967,
326,
1353,
3639,
4347,
1353,
273,
261,
2448,
13,
1353,
1133,
18,
588,
1830,
5621,
3639,
514,
563,
273,
1207,
2448,
12,
1019,
1769,
3639,
368,
9735,
326,
871,
358,
279,
490,
725,
871,
16,
732,
5614,
999,
333,
358,
336,
326,
4677,
1042,
3639,
490,
725,
3208,
1133,
312,
725,
1133,
273,
261,
49,
725,
3208,
1133,
13,
1353,
1133,
31,
3639,
368,
1684,
279,
394,
490,
725,
1133,
18,
1220,
903,
506,
3271,
358,
326,
30934,
3639,
368,
2867,
3639,
490,
725,
3208,
1133,
327,
1133,
273,
446,
31,
3639,
775,
3639,
288,
5411,
327,
1133,
273,
394,
490,
725,
3208,
1133,
12,
2088,
16,
315,
78,
959,
2207,
11005,
18,
4000,
8863,
3639,
289,
1044,
261,
18695,
3293,
503,
425,
13,
3639,
288,
5411,
368,
6185,
3639,
289,
3639,
368,
1477,
3808,
603,
326,
2521,
819,
16,
490,
725,
903,
741,
326,
3127,
3639,
312,
725,
1133,
18,
588,
28278,
7675,
6543,
1133,
12,
2463,
1133,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
603,
3208,
1133,
12,
3208,
1133,
1353,
1133,
13,
565,
288,
3639,
2240,
18,
265,
3208,
1133,
12,
1019,
1133,
1769,
3639,
368,
967,
326,
1353,
3639,
4347,
1353,
273,
261,
2448,
13,
1353,
1133,
18,
588,
1830,
5621,
3639,
514,
563,
273,
1207,
2448,
12,
1019,
1769,
3639,
368,
9735,
326,
871,
358,
279,
490,
725,
871,
16,
732,
5614,
999,
333,
358,
336,
326,
4677,
1042,
3639,
490,
725,
3208,
1133,
312,
725,
1133,
273,
261,
49,
725,
3208,
1133,
13,
1353,
1133,
31,
3639,
368,
1684,
279,
394,
490,
725,
1133,
18,
1220,
903,
506,
3271,
358,
326,
30934,
3639,
368,
2867,
3639,
490,
725,
3208,
1133,
327,
1133,
273,
446,
31,
3639,
2
] |
||
"edu.cmu.sphinx.search.StaticLinguist")).newInstance();
|
"edu.cmu.sphinx.decoder.linguist.StaticLinguist")).newInstance();
|
private Linguist getLinguist(LanguageModel languageModel, Grammar grammar, AcousticModel[] models) { try { Linguist newLinguist = (Linguist) Class.forName(props.getString(PROP_LINGUIST, "edu.cmu.sphinx.search.StaticLinguist")).newInstance(); newLinguist.initialize(props.getContext(), languageModel, grammar, models); runLinguistProcessors(newLinguist); if (dumpSentenceHMM) { SentenceHMMState.exportBinaryRepresentation( props.getContext() + "-SentenceHMM.bin", newLinguist.getInitialState()); } return newLinguist; } catch (ClassNotFoundException fe) { throw new Error("Can't create linguist", fe); } catch (InstantiationException ie) { throw new Error("Can't create linguist", ie); } catch (IllegalAccessException iea) { throw new Error("Can't create linguist", iea); } }
|
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/c3908026face527b93cadc822bf806925add985d/Recognizer.java/buggy/sphinx4/edu/cmu/sphinx/decoder/Recognizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
511,
14344,
376,
9014,
14344,
376,
12,
3779,
1488,
2653,
1488,
16,
6862,
27809,
6473,
16,
6862,
432,
2894,
641,
335,
1488,
8526,
3679,
13,
288,
3639,
775,
288,
5411,
511,
14344,
376,
394,
48,
14344,
376,
273,
261,
48,
14344,
376,
13,
7734,
1659,
18,
1884,
461,
12,
9693,
18,
588,
780,
12,
15811,
67,
26789,
5370,
882,
16,
7734,
315,
28049,
18,
7670,
89,
18,
87,
15922,
18,
21070,
18,
2456,
89,
376,
18,
5788,
48,
14344,
376,
7923,
2934,
2704,
1442,
5621,
5411,
394,
48,
14344,
376,
18,
11160,
12,
9693,
18,
29120,
9334,
4405,
282,
2653,
1488,
16,
6473,
16,
3679,
1769,
202,
565,
1086,
48,
14344,
376,
18155,
12,
2704,
48,
14344,
376,
1769,
202,
565,
309,
261,
8481,
17923,
44,
8206,
13,
288,
202,
202,
17923,
44,
8206,
1119,
18,
6530,
5905,
13742,
12,
1082,
565,
3458,
18,
29120,
1435,
397,
3701,
17923,
44,
8206,
18,
4757,
3113,
1082,
565,
394,
48,
14344,
376,
18,
588,
4435,
1119,
10663,
202,
565,
289,
5411,
327,
394,
48,
14344,
376,
31,
3639,
289,
1044,
261,
797,
3990,
1656,
13,
288,
5411,
604,
394,
1068,
2932,
2568,
1404,
752,
328,
14344,
376,
3113,
1656,
1769,
3639,
289,
1044,
261,
10675,
7072,
503,
9228,
13,
288,
5411,
604,
394,
1068,
2932,
2568,
1404,
752,
328,
14344,
376,
3113,
9228,
1769,
3639,
289,
1044,
261,
12195,
9773,
9228,
69,
13,
288,
5411,
604,
394,
1068,
2932,
2568,
1404,
752,
328,
14344,
376,
3113,
9228,
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,
511,
14344,
376,
9014,
14344,
376,
12,
3779,
1488,
2653,
1488,
16,
6862,
27809,
6473,
16,
6862,
432,
2894,
641,
335,
1488,
8526,
3679,
13,
288,
3639,
775,
288,
5411,
511,
14344,
376,
394,
48,
14344,
376,
273,
261,
48,
14344,
376,
13,
7734,
1659,
18,
1884,
461,
12,
9693,
18,
588,
780,
12,
15811,
67,
26789,
5370,
882,
16,
7734,
315,
28049,
18,
7670,
89,
18,
87,
15922,
18,
21070,
18,
2456,
89,
376,
18,
5788,
48,
14344,
376,
7923,
2934,
2704,
1442,
5621,
5411,
394,
48,
14344,
376,
18,
11160,
12,
9693,
18,
29120,
9334,
4405,
282,
2653,
1488,
16,
6473,
16,
3679,
1769,
202,
565,
1086,
48,
14344,
376,
18155,
12,
2704,
48,
14344,
2
] |
anticipateAndSend(false,
|
anticipateAndSend(false, true,
|
public void testV2EnterpriseIdAndGenericAndSpecificMatchWithZero() throws Exception { anticipateAndSend(false, "uei.opennms.org/IETF/BGP/traps/bgpEstablished", "v2c", ".1.3.6.1.2.1.15.7.0", 6, 1); }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/babd69f99b2c34d418f92b79c80dc38b03680037/TrapHandlerTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/trapd/TrapHandlerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
58,
22,
30699,
548,
1876,
7014,
1876,
9969,
2060,
1190,
7170,
1435,
3639,
1216,
1185,
288,
3639,
17841,
24629,
340,
1876,
3826,
12,
5743,
16,
638,
16,
12900,
315,
344,
77,
18,
3190,
82,
959,
18,
3341,
19,
45,
1584,
42,
19,
38,
9681,
19,
313,
6679,
19,
23139,
9122,
9237,
5992,
3113,
12900,
315,
90,
22,
71,
3113,
3552,
21,
18,
23,
18,
26,
18,
21,
18,
22,
18,
21,
18,
3600,
18,
27,
18,
20,
3113,
1666,
16,
404,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
58,
22,
30699,
548,
1876,
7014,
1876,
9969,
2060,
1190,
7170,
1435,
3639,
1216,
1185,
288,
3639,
17841,
24629,
340,
1876,
3826,
12,
5743,
16,
638,
16,
12900,
315,
344,
77,
18,
3190,
82,
959,
18,
3341,
19,
45,
1584,
42,
19,
38,
9681,
19,
313,
6679,
19,
23139,
9122,
9237,
5992,
3113,
12900,
315,
90,
22,
71,
3113,
3552,
21,
18,
23,
18,
26,
18,
21,
18,
22,
18,
21,
18,
3600,
18,
27,
18,
20,
3113,
1666,
16,
404,
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
] |
return selectedService != null; }
|
return selectedService != null; }
|
public boolean isShowingAnalysisService() { return selectedService != null; }
|
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/1e320783a6357fb0477446de87b88ff8654fcd41/AnalysisServiceDisplay.java/buggy/clients/JavaGE/src/org/genepattern/gpge/ui/tasks/AnalysisServiceDisplay.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
5706,
310,
9418,
1179,
1435,
288,
202,
202,
2463,
3170,
1179,
480,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
1250,
353,
5706,
310,
9418,
1179,
1435,
288,
202,
202,
2463,
3170,
1179,
480,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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_la1[21] = jj_gen;
|
jj_la1[17] = jj_gen;
|
static final public void ArgParameter() throws ParseException { /*@bgen(jjtree) ArgParameter */ ASTArgParameter jjtn000 = new ASTArgParameter(JJTARGPARAMETER); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ARG_PATTERN: t = jj_consume_token(ARG_PATTERN); break; case ARG_ARRAY_PATTERN: t = jj_consume_token(ARG_ARRAY_PATTERN); break; case EAGER_WILDCARD: t = jj_consume_token(EAGER_WILDCARD); break; default: jj_la1[21] = jj_gen; jj_consume_token(-1); throw new ParseException(); } jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setTypePattern(t.image); } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/726c24ef410f918a103c7ce911931e76cc280894/ExpressionParser.java/clean/aspectwerkz4/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
1071,
918,
14448,
1662,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
14448,
1662,
1195,
565,
9183,
4117,
1662,
10684,
5088,
3784,
273,
394,
9183,
4117,
1662,
12,
46,
46,
56,
10973,
9819,
1769,
565,
1250,
10684,
5111,
3784,
273,
638,
31,
565,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
1345,
268,
31,
565,
775,
288,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1377,
648,
13984,
67,
10831,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
10973,
67,
10831,
1769,
3639,
898,
31,
1377,
648,
13984,
67,
8552,
67,
10831,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
10973,
67,
8552,
67,
10831,
1769,
3639,
898,
31,
1377,
648,
512,
16302,
67,
59,
29067,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
41,
16302,
67,
59,
29067,
1769,
3639,
898,
31,
1377,
805,
30,
3639,
10684,
67,
11821,
21,
63,
4033,
65,
273,
10684,
67,
4507,
31,
3639,
10684,
67,
21224,
67,
2316,
19236,
21,
1769,
3639,
604,
394,
10616,
5621,
1377,
289,
1377,
10684,
3413,
18,
4412,
907,
3876,
12,
78,
78,
5088,
3784,
16,
638,
1769,
1377,
10684,
5111,
3784,
273,
629,
31,
3639,
10684,
5088,
3784,
18,
542,
559,
3234,
12,
88,
18,
2730,
1769,
565,
289,
3095,
288,
1377,
309,
261,
78,
78,
5111,
3784,
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,
282,
760,
727,
1071,
918,
14448,
1662,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
14448,
1662,
1195,
565,
9183,
4117,
1662,
10684,
5088,
3784,
273,
394,
9183,
4117,
1662,
12,
46,
46,
56,
10973,
9819,
1769,
565,
1250,
10684,
5111,
3784,
273,
638,
31,
565,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
1345,
268,
31,
565,
775,
288,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1377,
648,
13984,
67,
10831,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
10973,
67,
10831,
1769,
3639,
898,
31,
1377,
648,
13984,
2
] |
IdeaReader reader = factory.read(new File(absPath));
|
Idea idea = factory.read(new File(absPath));
|
public void openDocument() throws IOException, ReaderException { FileDialog chooser = new FileDialog(mainframe, "Open OPML file", FileDialog.LOAD); chooser.setVisible(true); String filename = chooser.getFile(); if (filename != null) { String absPath = chooser.getDirectory() + chooser.getFile(); ReaderFactory factory = ReaderFactory.getInstance(); IdeaReader reader = factory.read(new File(absPath)); IdeaMap ideaMap = mainframe.getIdeaMap(); ideaMap.setIdea(reader.getIdea()); mainframe.setCurrentFile(absPath); } }
|
51106 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51106/5167c6f6aefa5bb89706715710383b52c4963baa/MainframeController.java/clean/src/dg/hipster/controller/MainframeController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
2519,
1435,
1216,
1860,
16,
5393,
503,
288,
3639,
1387,
6353,
5011,
13164,
273,
394,
1387,
6353,
12,
5254,
3789,
16,
315,
3678,
7247,
1495,
585,
3113,
7734,
1387,
6353,
18,
7783,
1769,
7734,
5011,
13164,
18,
542,
6207,
12,
3767,
1769,
7734,
514,
1544,
273,
5011,
13164,
18,
29925,
5621,
7734,
309,
261,
3459,
480,
446,
13,
288,
5411,
514,
24939,
273,
5011,
13164,
18,
588,
2853,
1435,
397,
5011,
13164,
18,
29925,
5621,
5411,
5393,
1733,
3272,
273,
5393,
1733,
18,
588,
1442,
5621,
5411,
23062,
69,
21463,
273,
3272,
18,
896,
12,
2704,
1387,
12,
5113,
743,
10019,
5411,
23062,
69,
863,
21463,
863,
273,
2774,
3789,
18,
588,
45,
323,
69,
863,
5621,
5411,
21463,
863,
18,
542,
45,
323,
69,
12,
10530,
18,
588,
45,
323,
69,
10663,
5411,
2774,
3789,
18,
542,
3935,
812,
12,
5113,
743,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
2519,
1435,
1216,
1860,
16,
5393,
503,
288,
3639,
1387,
6353,
5011,
13164,
273,
394,
1387,
6353,
12,
5254,
3789,
16,
315,
3678,
7247,
1495,
585,
3113,
7734,
1387,
6353,
18,
7783,
1769,
7734,
5011,
13164,
18,
542,
6207,
12,
3767,
1769,
7734,
514,
1544,
273,
5011,
13164,
18,
29925,
5621,
7734,
309,
261,
3459,
480,
446,
13,
288,
5411,
514,
24939,
273,
5011,
13164,
18,
588,
2853,
1435,
397,
5011,
13164,
18,
29925,
5621,
5411,
5393,
1733,
3272,
273,
5393,
1733,
18,
588,
1442,
5621,
5411,
23062,
69,
21463,
273,
3272,
18,
896,
12,
2704,
1387,
12,
5113,
743,
10019,
5411,
23062,
69,
863,
21463,
863,
273,
2774,
3789,
18,
588,
45,
323,
69,
2
] |
|| IStyledElementModel.STYLE_PROP.equalsIgnoreCase( propDefn .getName( ) ) )
|
|| IStyledElementModel.STYLE_PROP .equalsIgnoreCase( propDefn.getName( ) ) )
|
private void adjustReferredClients( DesignElement element ) { List propDefns = element.getPropertyDefns( ); for ( Iterator iter = propDefns.iterator( ); iter.hasNext( ); ) { PropertyDefn propDefn = (PropertyDefn) iter.next( ); // DO NOT consider extends and style property since this has been // handled in remove method. if ( IDesignElementModel.EXTENDS_PROP.equalsIgnoreCase( propDefn .getName( ) ) || IStyledElementModel.STYLE_PROP.equalsIgnoreCase( propDefn .getName( ) ) ) continue; if ( propDefn.getTypeCode( ) == IPropertyType.ELEMENT_REF_TYPE || propDefn.getTypeCode( ) == IPropertyType.STRUCT_REF_TYPE ) { Object value = element.getLocalProperty( module, (ElementPropertyDefn) propDefn ); if ( value != null ) { if ( ( value instanceof StructRefValue ) || ( (ElementRefValue) value ).isResolved( ) ) { try { // Clear all element reference property for dropped // element PropertyCommand cmd = new PropertyCommand( module, element ); cmd.setProperty( propDefn.getName( ), null ); } catch ( SemanticException e ) { assert false; } } } } else if ( propDefn.getTypeCode( ) == IPropertyType.LIST_TYPE && propDefn.getSubTypeCode( ) == IPropertyType.ELEMENT_REF_TYPE ) { List valueList = (List) element.getLocalProperty( module, (ElementPropertyDefn) propDefn ); if ( valueList != null ) { for ( int i = valueList.size( ) - 1; i >= 0; i-- ) { ElementRefValue item = (ElementRefValue) valueList .get( i ); if ( item.isResolved( ) ) { try { // Clear all element reference property for // dropped element PropertyCommand cmd = new PropertyCommand( module, element ); cmd.removeItem( (ElementPropertyDefn) propDefn, item.getElement( ) ); } catch ( SemanticException e ) { assert false; } } } } } } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ea8579767860fdbd7a7a0a2620da046a1b8f1a3c/ContentCommand.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5765,
426,
4193,
12300,
12,
29703,
1046,
930,
262,
202,
95,
202,
202,
682,
2270,
3262,
2387,
273,
930,
18,
588,
1396,
3262,
2387,
12,
11272,
202,
202,
1884,
261,
4498,
1400,
273,
2270,
3262,
2387,
18,
9838,
12,
11272,
1400,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
1396,
3262,
82,
2270,
3262,
82,
273,
261,
1396,
3262,
82,
13,
1400,
18,
4285,
12,
11272,
1082,
202,
759,
5467,
4269,
5260,
3231,
471,
2154,
1272,
3241,
333,
711,
2118,
1082,
202,
759,
7681,
316,
1206,
707,
18,
1082,
202,
430,
261,
1599,
281,
724,
1046,
1488,
18,
4142,
1157,
3948,
67,
15811,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
202,
18,
17994,
12,
262,
262,
6862,
202,
20081,
467,
24273,
1259,
1046,
1488,
18,
15066,
67,
15811,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
1082,
202,
18,
17994,
12,
262,
262,
262,
9506,
202,
17143,
31,
1082,
202,
430,
261,
2270,
3262,
82,
18,
588,
15460,
12,
262,
422,
467,
22802,
18,
10976,
67,
10771,
67,
2399,
6862,
202,
20081,
2270,
3262,
82,
18,
588,
15460,
12,
262,
422,
467,
22802,
18,
13915,
67,
10771,
67,
2399,
262,
1082,
202,
95,
9506,
202,
921,
460,
273,
930,
18,
588,
2042,
1396,
12,
1605,
16,
25083,
202,
12,
1046,
1396,
3262,
82,
13,
2270,
3262,
82,
11272,
9506,
202,
430,
261,
460,
480,
446,
262,
9506,
202,
95,
6862,
202,
430,
261,
261,
460,
1276,
7362,
30556,
262,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5765,
426,
4193,
12300,
12,
29703,
1046,
930,
262,
202,
95,
202,
202,
682,
2270,
3262,
2387,
273,
930,
18,
588,
1396,
3262,
2387,
12,
11272,
202,
202,
1884,
261,
4498,
1400,
273,
2270,
3262,
2387,
18,
9838,
12,
11272,
1400,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
1396,
3262,
82,
2270,
3262,
82,
273,
261,
1396,
3262,
82,
13,
1400,
18,
4285,
12,
11272,
1082,
202,
759,
5467,
4269,
5260,
3231,
471,
2154,
1272,
3241,
333,
711,
2118,
1082,
202,
759,
7681,
316,
1206,
707,
18,
1082,
202,
430,
261,
1599,
281,
724,
1046,
1488,
18,
4142,
1157,
3948,
67,
15811,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
202,
2
] |
private StringBuffer readSearchClause(StringBuffer search, TreeMap insertions, String charset, boolean single)
|
private StringBuffer readSearchClause(StringBuffer search, TreeMap<Integer, Object> insertions, String charset, boolean single)
|
private StringBuffer readSearchClause(StringBuffer search, TreeMap insertions, String charset, boolean single) throws IOException, ImapException { boolean first = true; int nots = 0; do { if (!first) { skipSpace(); } int c = peekChar(); // key will be "" iff we're opening a new subclause... String key = (c == '(' ? SUBCLAUSE : readContent(SEARCH_CHARS).toUpperCase()); if (key.equals("NOT")) { nots++; first = false; continue; } else if ((nots % 2) != 0) { if (NEGATED_SEARCH.containsKey(key)) key = (String) NEGATED_SEARCH.get(key); else search.append('-'); } nots = 0; if (key.equals("ALL")) search.append("item:all"); else if (key.equals("ANSWERED")) search.append("is:replied"); else if (key.equals("DELETED")) search.append("tag:\\Deleted"); else if (key.equals("DRAFT")) search.append("is:draft"); else if (key.equals("FLAGGED")) search.append("is:flagged"); else if (key.equals("RECENT")) insertFlag("\\RECENT", search, insertions); else if (key.equals("NEW")) { search.append("(is:read "); insertFlag("\\RECENT", search, insertions); search.append(')'); } else if (key.equals("OLD")) { search.append('-'); insertFlag("\\RECENT", search, insertions); } else if (key.equals("SEEN")) search.append("is:read"); else if (key.equals("UNANSWERED")) search.append("is:unreplied"); else if (key.equals("UNDELETED")) search.append("-tag:\\Deleted"); else if (key.equals("UNDRAFT")) search.append("-is:draft"); else if (key.equals("UNFLAGGED")) search.append("is:unflagged"); else if (key.equals("UNSEEN")) search.append("is:unread"); // XXX: BCC always returns no results because we don't separately index that field else if (key.equals("BCC")) { skipSpace(); search.append("item:none"); readAstring(charset); } else if (key.equals("BEFORE")) { skipSpace(); search.append("before:").append(readAndReformatDate()); } else if (key.equals("BODY")) { skipSpace(); readAndQuoteString(search, charset); } else if (key.equals("CC")) { skipSpace(); search.append("cc:"); readAndQuoteString(search, charset); } else if (key.equals("FROM")) { skipSpace(); search.append("from:"); readAndQuoteString(search, charset); } else if (key.equals("HEADER")) { skipSpace(); String hdr = readAstring().toUpperCase(), prefix = (String) INDEXED_HEADER.get(hdr); if (prefix == null) throw new ImapParseException(mTag, "unindexed header: " + hdr); skipSpace(); search.append(prefix); readAndQuoteString(search, charset); } else if (key.equals("KEYWORD")) { skipSpace(); ImapFlag i4flag = getFlag(readAtom()); if (i4flag != null && !i4flag.mPositive) search.append('-'); if (i4flag != null && !i4flag.mPermanent) insertFlag(i4flag, search, insertions); else search.append(i4flag == null ? "item:none" : "tag:" + i4flag.mName); } else if (key.equals("LARGER")) { skipSpace(); search.append("larger:").append(readNumber()); } else if (key.equals("ON")) { skipSpace(); search.append("date:").append(readAndReformatDate()); } // FIXME: SENTBEFORE, SENTON, and SENTSINCE reference INTERNALDATE, not the Date header else if (key.equals("SENTBEFORE")) { skipSpace(); search.append("before:").append(readAndReformatDate()); } else if (key.equals("SENTON")) { skipSpace(); search.append("date:").append(readAndReformatDate()); } else if (key.equals("SENTSINCE")) { skipSpace(); search.append("after:").append(readAndReformatDate()); } else if (key.equals("SINCE")) { skipSpace(); search.append("after:").append(readAndReformatDate()); } else if (key.equals("SMALLER")) { skipSpace(); search.append("smaller:").append(readNumber()); } else if (key.equals("SUBJECT")) { skipSpace(); search.append("subject:"); readAndQuoteString(search, charset); } else if (key.equals("TEXT")) { skipSpace(); readAndQuoteString(search, charset); } else if (key.equals("TO")) { skipSpace(); search.append("to:"); readAndQuoteString(search, charset); } else if (key.equals("UID")) { skipSpace(); insertions.put(new Integer(search.length()), '-' + readSequence()); } else if (key.equals("UNKEYWORD")) { skipSpace(); ImapFlag i4flag = getFlag(readAtom()); if (i4flag != null && i4flag.mPositive) search.append('-'); if (i4flag != null && !i4flag.mPermanent) insertFlag(i4flag, search, insertions); else search.append(i4flag == null ? "item:all" : "tag:" + i4flag.mName); } else if (key.equals(SUBCLAUSE)) { skipChar('('); readSearchClause(search, insertions, charset, MULTIPLE_CLAUSES); skipChar(')'); } else if (Character.isDigit(key.charAt(0)) || key.charAt(0) == '*') insertions.put(new Integer(search.length()), validateSequence(key)); else if (key.equals("OR")) { search.append("(("); skipSpace(); readSearchClause(search, insertions, charset, SINGLE_CLAUSE); search.append(") or ("); skipSpace(); readSearchClause(search, insertions, charset, SINGLE_CLAUSE); search.append("))"); } else throw new ImapParseException(mTag, "unknown search tag: " + key); search.append(' '); first = false; } while (peekChar() != -1 && peekChar() != ')' && (nots > 0 || !single)); if (nots > 0) throw new ImapParseException(mTag, "missing search-key after NOT"); return search; }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/19a2f8be25ea9c084f79aec00d4af6eb392ee181/OzImapRequest.java/clean/ZimbraServer/src/java/com/zimbra/cs/imap/OzImapRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
6674,
855,
2979,
7044,
12,
780,
1892,
1623,
16,
16381,
32,
4522,
16,
1033,
34,
2243,
1115,
16,
514,
4856,
16,
1250,
2202,
13,
565,
1216,
1860,
16,
467,
1458,
503,
288,
3639,
1250,
1122,
273,
638,
31,
3639,
509,
486,
87,
273,
374,
31,
3639,
741,
288,
5411,
309,
16051,
3645,
13,
225,
288,
2488,
3819,
5621,
289,
5411,
509,
276,
273,
8032,
2156,
5621,
5411,
368,
498,
903,
506,
1408,
21437,
732,
4565,
10890,
279,
394,
720,
18128,
2777,
5411,
514,
498,
273,
261,
71,
422,
7321,
692,
10025,
15961,
8001,
294,
855,
1350,
12,
17251,
67,
21666,
2934,
869,
8915,
10663,
5411,
309,
261,
856,
18,
14963,
2932,
4400,
6,
3719,
225,
288,
486,
87,
9904,
31,
1122,
273,
629,
31,
1324,
31,
289,
5411,
469,
309,
14015,
902,
87,
738,
576,
13,
480,
374,
13,
288,
7734,
309,
261,
5407,
43,
6344,
67,
17251,
18,
12298,
653,
12,
856,
3719,
225,
498,
273,
261,
780,
13,
12901,
43,
6344,
67,
17251,
18,
588,
12,
856,
1769,
7734,
469,
21394,
1623,
18,
6923,
2668,
6627,
1769,
5411,
289,
5411,
486,
87,
273,
374,
31,
5411,
309,
261,
856,
18,
14963,
2932,
4685,
6,
3719,
2868,
1623,
18,
6923,
2932,
1726,
30,
454,
8863,
5411,
469,
309,
261,
856,
18,
14963,
2932,
11607,
18839,
2056,
6,
3719,
565,
1623,
18,
6923,
2932,
291,
30,
266,
3110,
8863,
5411,
469,
309,
261,
856,
18,
14963,
2932,
27392,
6,
3719,
377,
1623,
18,
6923,
2932,
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,
6674,
855,
2979,
7044,
12,
780,
1892,
1623,
16,
16381,
32,
4522,
16,
1033,
34,
2243,
1115,
16,
514,
4856,
16,
1250,
2202,
13,
565,
1216,
1860,
16,
467,
1458,
503,
288,
3639,
1250,
1122,
273,
638,
31,
3639,
509,
486,
87,
273,
374,
31,
3639,
741,
288,
5411,
309,
16051,
3645,
13,
225,
288,
2488,
3819,
5621,
289,
5411,
509,
276,
273,
8032,
2156,
5621,
5411,
368,
498,
903,
506,
1408,
21437,
732,
4565,
10890,
279,
394,
720,
18128,
2777,
5411,
514,
498,
273,
261,
71,
422,
7321,
692,
10025,
15961,
8001,
294,
855,
1350,
12,
17251,
67,
21666,
2934,
869,
8915,
10663,
5411,
309,
261,
856,
18,
14963,
2932,
4400,
6,
3719,
225,
288,
486,
2
] |
browser.setDirectory(FileRootsVFS.PROTOCOL + ":");
|
browser.rootDirectory();
|
public void actionPerformed(ActionEvent evt) { View view = browser.getView(); String actionCommand = evt.getActionCommand(); if(actionCommand.startsWith("open@")) { // a bit of a hack to support 'Open With Encoding' menu Hashtable props = new Hashtable(); props.put(Buffer.ENCODING,actionCommand.substring(5)); jEdit.openFile(view,null,file.path,false,props); } else if(actionCommand.equals("other-encoding")) { String encoding = GUIUtilities.input(browser, "encoding-prompt",null, jEdit.getProperty("buffer.encoding", System.getProperty("file.encoding"))); if(encoding == null) return; Hashtable props = new Hashtable(); props.put(Buffer.ENCODING,encoding); jEdit.openFile(view,null,file.path,false,props); } else if(actionCommand.equals("open")) jEdit.openFile(view,file.path); else if(actionCommand.equals("insert")) view.getBuffer().insertFile(view,file.path); else if(actionCommand.equals("choose")) browser.filesActivated(false); else if(actionCommand.equals("close")) { Buffer buffer = jEdit.getBuffer(file.path); if(buffer != null) jEdit.closeBuffer(view,buffer); } else if(actionCommand.equals("browse")) browser.setDirectory(file.path); else if(actionCommand.equals("rename")) browser.rename(file.path); else if(actionCommand.equals("delete")) browser.delete(file.deletePath); else if(actionCommand.equals("up")) { String path = browser.getDirectory(); VFS vfs = VFSManager.getVFSForPath(path); browser.setDirectory(vfs.getParentOfPath(path)); } else if(actionCommand.equals("reload")) browser.reloadDirectory(); else if(actionCommand.equals("roots")) browser.setDirectory(FileRootsVFS.PROTOCOL + ":"); else if(actionCommand.equals("home")) browser.setDirectory(System.getProperty("user.home")); else if(actionCommand.equals("synchronize")) { Buffer buffer = browser.getView().getBuffer(); browser.setDirectory(buffer.getVFS().getParentOfPath( buffer.getPath())); } else if(actionCommand.equals("new-file")) browser.newFile(); else if(actionCommand.equals("new-directory")) browser.mkdir(); else if(actionCommand.equals("search-in-directory")) browser.searchInDirectory(); else if(actionCommand.equals("show-hidden-files")) { browser.setShowHiddenFiles(!browser.getShowHiddenFiles()); browser.reloadDirectory(); } }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/4f1d14bf0fe9bfa61afed62492faeffaece2b8f8/BrowserCommandsMenu.java/clean/org/gjt/sp/jedit/browser/BrowserCommandsMenu.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
1767,
1476,
273,
4748,
18,
588,
1767,
5621,
1082,
202,
780,
1301,
2189,
273,
6324,
18,
588,
1803,
2189,
5621,
1082,
202,
430,
12,
1128,
2189,
18,
17514,
1190,
2932,
3190,
27614,
3719,
1082,
202,
95,
9506,
202,
759,
279,
2831,
434,
279,
11769,
358,
2865,
296,
3678,
3423,
13400,
11,
3824,
9506,
202,
5582,
14544,
3458,
273,
394,
18559,
5621,
9506,
202,
9693,
18,
458,
12,
1892,
18,
14672,
16,
1128,
2189,
18,
28023,
12,
25,
10019,
9506,
202,
78,
4666,
18,
3190,
812,
12,
1945,
16,
2011,
16,
768,
18,
803,
16,
5743,
16,
9693,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
12,
1128,
2189,
18,
14963,
2932,
3011,
17,
5999,
6,
3719,
1082,
202,
95,
9506,
202,
780,
2688,
273,
10978,
11864,
18,
2630,
12,
11213,
16,
6862,
202,
6,
5999,
17,
13325,
3113,
2011,
16,
6862,
202,
78,
4666,
18,
588,
1396,
2932,
4106,
18,
5999,
3113,
6862,
202,
3163,
18,
588,
1396,
2932,
768,
18,
5999,
6,
3719,
1769,
9506,
202,
430,
12,
5999,
422,
446,
13,
6862,
202,
2463,
31,
9506,
202,
5582,
14544,
3458,
273,
394,
18559,
5621,
9506,
202,
9693,
18,
458,
12,
1892,
18,
14672,
16,
5999,
1769,
9506,
202,
78,
4666,
18,
3190,
812,
12,
1945,
16,
2011,
16,
768,
18,
803,
16,
5743,
16,
9693,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
12,
1128,
2189,
18,
14963,
2932,
3190,
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,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
1767,
1476,
273,
4748,
18,
588,
1767,
5621,
1082,
202,
780,
1301,
2189,
273,
6324,
18,
588,
1803,
2189,
5621,
1082,
202,
430,
12,
1128,
2189,
18,
17514,
1190,
2932,
3190,
27614,
3719,
1082,
202,
95,
9506,
202,
759,
279,
2831,
434,
279,
11769,
358,
2865,
296,
3678,
3423,
13400,
11,
3824,
9506,
202,
5582,
14544,
3458,
273,
394,
18559,
5621,
9506,
202,
9693,
18,
458,
12,
1892,
18,
14672,
16,
1128,
2189,
18,
28023,
12,
25,
10019,
9506,
202,
78,
4666,
18,
3190,
812,
12,
1945,
16,
2011,
16,
768,
18,
803,
16,
5743,
16,
9693,
1769,
1082,
202,
97,
1082,
202,
12107,
2
] |
for (int i = 0; i < visibleActionSets.size(); i++) { IActionSetDescriptor desc = (IActionSetDescriptor) visibleActionSets
|
for (int i = 0; i < alwaysOnActionSets.size(); i++) { IActionSetDescriptor desc = (IActionSetDescriptor) alwaysOnActionSets
|
/* package */void addActionSet(IActionSetDescriptor newDesc) { for (int i = 0; i < visibleActionSets.size(); i++) { IActionSetDescriptor desc = (IActionSetDescriptor) visibleActionSets .get(i); if (desc.getId().equals(newDesc.getId())) { visibleActionSets.remove(desc); alwaysOnActionSets.remove(desc); alwaysOffActionSets.remove(desc); break; } } visibleActionSets.add(newDesc); alwaysOnActionSets.add(newDesc); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/56f8e6c4b867931001b9607e02b459fe3346470b/Perspective.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Perspective.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1748,
2181,
1195,
6459,
14745,
694,
12,
45,
1803,
694,
3187,
394,
4217,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6021,
1803,
2785,
18,
1467,
5621,
277,
27245,
288,
5411,
467,
1803,
694,
3187,
3044,
273,
261,
45,
1803,
694,
3187,
13,
6021,
1803,
2785,
10792,
263,
588,
12,
77,
1769,
5411,
309,
261,
5569,
18,
26321,
7675,
14963,
12,
2704,
4217,
18,
26321,
1435,
3719,
288,
7734,
6021,
1803,
2785,
18,
4479,
12,
5569,
1769,
7734,
3712,
1398,
1803,
2785,
18,
4479,
12,
5569,
1769,
7734,
3712,
7210,
1803,
2785,
18,
4479,
12,
5569,
1769,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
6021,
1803,
2785,
18,
1289,
12,
2704,
4217,
1769,
3639,
3712,
1398,
1803,
2785,
18,
1289,
12,
2704,
4217,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1748,
2181,
1195,
6459,
14745,
694,
12,
45,
1803,
694,
3187,
394,
4217,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6021,
1803,
2785,
18,
1467,
5621,
277,
27245,
288,
5411,
467,
1803,
694,
3187,
3044,
273,
261,
45,
1803,
694,
3187,
13,
6021,
1803,
2785,
10792,
263,
588,
12,
77,
1769,
5411,
309,
261,
5569,
18,
26321,
7675,
14963,
12,
2704,
4217,
18,
26321,
1435,
3719,
288,
7734,
6021,
1803,
2785,
18,
4479,
12,
5569,
1769,
7734,
3712,
1398,
1803,
2785,
18,
4479,
12,
5569,
1769,
7734,
3712,
7210,
1803,
2785,
18,
4479,
12,
5569,
1769,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
6021,
1803,
2785,
18,
1289,
12,
2704,
4217,
1769,
2
] |
setRolloverIcon(im.getIcon(IconManager.PIN_SMALL_OVER));
|
PinButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false); //B/c button=icon. setFocusPainted(false); //Don't paint focus box on top of icon. setRolloverEnabled(true); IconManager im = IconManager.getInstance(); setIcon(im.getIcon(IconManager.PIN_SMALL)); setRolloverIcon(im.getIcon(IconManager.PIN_SMALL_OVER)); setToolTipText(DESCRIPTION); addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { parentNode.pinThumbnail(); } }); }
|
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/58be91fb535c971d0bef1fde12344382b140273b/PinButton.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/PinButton.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
14999,
3616,
12,
2040,
907,
756,
13,
565,
288,
377,
202,
430,
261,
2159,
422,
446,
13,
604,
394,
2754,
2932,
2279,
756,
8863,
3639,
7234,
273,
756,
31,
3639,
25715,
12,
8107,
1733,
18,
2640,
1921,
8107,
10663,
225,
368,
2279,
5795,
6740,
4126,
18,
3639,
444,
9524,
12,
2704,
22300,
12,
20,
16,
374,
16,
374,
16,
374,
10019,
759,
19642,
358,
1221,
3071,
3568,
11262,
33,
3950,
11262,
18,
3639,
444,
3817,
14886,
12,
5743,
1769,
225,
368,
38,
19,
71,
3568,
33,
3950,
18,
3639,
31480,
12699,
329,
12,
5743,
1769,
225,
368,
22293,
1404,
12574,
7155,
3919,
603,
1760,
434,
4126,
18,
3639,
444,
4984,
21896,
1526,
12,
3767,
1769,
3639,
16011,
1318,
709,
273,
16011,
1318,
18,
588,
1442,
5621,
3639,
21481,
12,
381,
18,
588,
5554,
12,
5554,
1318,
18,
52,
706,
67,
23882,
10019,
7734,
444,
29250,
1528,
12,
15911,
1769,
3639,
24771,
12,
2704,
25962,
1435,
288,
5411,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
7234,
18,
13097,
16270,
5621,
5411,
289,
3639,
15549,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
14999,
3616,
12,
2040,
907,
756,
13,
565,
288,
377,
202,
430,
261,
2159,
422,
446,
13,
604,
394,
2754,
2932,
2279,
756,
8863,
3639,
7234,
273,
756,
31,
3639,
25715,
12,
8107,
1733,
18,
2640,
1921,
8107,
10663,
225,
368,
2279,
5795,
6740,
4126,
18,
3639,
444,
9524,
12,
2704,
22300,
12,
20,
16,
374,
16,
374,
16,
374,
10019,
759,
19642,
358,
1221,
3071,
3568,
11262,
33,
3950,
11262,
18,
3639,
444,
3817,
14886,
12,
5743,
1769,
225,
368,
38,
19,
71,
3568,
33,
3950,
18,
3639,
31480,
12699,
329,
12,
5743,
1769,
225,
368,
22293,
1404,
12574,
7155,
3919,
603,
1760,
434,
4126,
18,
3639,
444,
4984,
21896,
1526,
12,
3767,
1769,
3639,
16011,
1318,
2
] |
|
MessageDialog.openError( getShell( ), Messages .getString( "NewReportWizard.title.Error" ),
|
MessageDialog.openError( getShell( ), Messages.getString( "NewReportWizard.title.Error" ),
|
public void init( IWorkbench workbench, IStructuredSelection selection ) { // check existing open project IWorkspaceRoot root = ResourcesPlugin.getWorkspace( ).getRoot( ); IProject projects[] = root.getProjects( ); boolean foundOpenProject = false; for ( int i = 0; i < projects.length; i++ ) { if ( projects[i].isOpen( ) ) { foundOpenProject = true; break; } } if ( !foundOpenProject ) { MessageDialog.openError( getShell( ), Messages .getString( "NewReportWizard.title.Error" ), //$NON-NLS-1$ Messages.getString( "NewReportWizard.error.NoProject" ) ); //$NON-NLS-1$ // abort wizard. There is no clean way to do it. /** * Remove the exception here 'cause It's safe since the wizard won't * create any file without an open project. */ // throw new RuntimeException( ); } // OK this.selection = selection; setWindowTitle( NEW ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/9508ad902ce38297514198adde76c0cc21ff3b29/NewReportWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewReportWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
467,
2421,
22144,
1440,
22144,
16,
467,
30733,
6233,
4421,
262,
202,
95,
202,
202,
759,
866,
2062,
1696,
1984,
202,
202,
45,
8241,
2375,
1365,
273,
8128,
3773,
18,
588,
8241,
12,
262,
18,
588,
2375,
12,
11272,
202,
202,
45,
4109,
10137,
8526,
273,
1365,
18,
588,
15298,
12,
11272,
202,
202,
6494,
1392,
3678,
4109,
273,
629,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
10137,
18,
2469,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
430,
261,
10137,
63,
77,
8009,
291,
3678,
12,
262,
262,
1082,
202,
95,
9506,
202,
7015,
3678,
4109,
273,
638,
31,
9506,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
401,
7015,
3678,
4109,
262,
202,
202,
95,
1082,
202,
1079,
6353,
18,
3190,
668,
12,
7932,
1165,
12,
262,
16,
4838,
6862,
202,
18,
588,
780,
12,
315,
1908,
4820,
27130,
18,
2649,
18,
668,
6,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
780,
12,
315,
1908,
4820,
27130,
18,
1636,
18,
2279,
4109,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
759,
6263,
24204,
18,
6149,
353,
1158,
2721,
4031,
358,
741,
518,
18,
1082,
202,
26873,
9506,
380,
3581,
326,
1520,
2674,
296,
2700,
2597,
1807,
4183,
3241,
326,
24204,
8462,
1404,
9506,
380,
752,
1281,
585,
2887,
392,
1696,
1984,
18,
9506,
1195,
1082,
202,
759,
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,
1208,
12,
467,
2421,
22144,
1440,
22144,
16,
467,
30733,
6233,
4421,
262,
202,
95,
202,
202,
759,
866,
2062,
1696,
1984,
202,
202,
45,
8241,
2375,
1365,
273,
8128,
3773,
18,
588,
8241,
12,
262,
18,
588,
2375,
12,
11272,
202,
202,
45,
4109,
10137,
8526,
273,
1365,
18,
588,
15298,
12,
11272,
202,
202,
6494,
1392,
3678,
4109,
273,
629,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
10137,
18,
2469,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
430,
261,
10137,
63,
77,
8009,
291,
3678,
12,
262,
262,
1082,
202,
95,
9506,
202,
7015,
3678,
4109,
273,
638,
31,
9506,
202,
8820,
31,
1082,
202,
97,
2
] |
origBlock.getNumber()));
|
_origBlock.getNumber()));
|
OPT_BasicBlock upto(OPT_Instruction earlyPos, OPT_BasicBlock lateBlock, OPT_Instruction inst) { OPT_BasicBlock origBlock = getOrigBlock(inst); OPT_BasicBlock actBlock = lateBlock; OPT_BasicBlock bestBlock = lateBlock; OPT_BasicBlock earlyBlock = getBlock(earlyPos); if (VM.VerifyAssertions) { if (!dominator.dominates (earlyBlock.getNumber(), origBlock.getNumber()) || !dominator.dominates (earlyBlock.getNumber(), lateBlock.getNumber())) { OPT_SSA.printInstructions (ir); VM.sysWrite ("> "+earlyBlock.getNumber()+", "+origBlock.getNumber() + ", "+lateBlock.getNumber()+"\n"); VM.sysWrite (""+inst+"\n"); } VM._assert (dominator.dominates (earlyBlock.getNumber(), origBlock.getNumber())); VM._assert (dominator.dominates (earlyBlock.getNumber(), lateBlock.getNumber())); } for (;;) { /* is the actual block better (less frequent) than the so far best block? */ if (frequency (actBlock) < frequency (bestBlock)) { if (DEBUG) VM.sysWrite ("going from "+frequency (origBlock)+" to " +frequency (actBlock)+"\n"); bestBlock = actBlock; } /* all candidates checked? */ if (actBlock == earlyBlock) break; /* walk up the dominator tree for next candidate*/ actBlock = dominator.getParent(actBlock); } if (bestBlock == origBlock) return null; if (DEBUG) VM.sysWrite ("best Block: "+bestBlock+"\n"); return bestBlock; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/cb4d5807180265c43e09e55a868066d05d56274a/OPT_LICM.java/clean/rvm/src/vm/compilers/optimizing/optimizations/global/ssa/codePlacement/OPT_LICM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
16456,
67,
8252,
1768,
582,
21910,
12,
15620,
67,
11983,
11646,
1616,
16,
16456,
67,
8252,
1768,
26374,
1768,
16,
8227,
16456,
67,
11983,
1804,
13,
288,
3639,
16456,
67,
8252,
1768,
1647,
1768,
273,
336,
4741,
1768,
12,
8591,
1769,
565,
16456,
67,
8252,
1768,
1328,
1768,
273,
26374,
1768,
31,
565,
16456,
67,
8252,
1768,
3796,
1768,
273,
26374,
1768,
31,
565,
16456,
67,
8252,
1768,
11646,
1768,
273,
11902,
12,
2091,
715,
1616,
1769,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
288,
1377,
309,
16051,
9859,
4240,
18,
9859,
4174,
261,
2091,
715,
1768,
18,
588,
1854,
9334,
4766,
1647,
1768,
18,
588,
1854,
10756,
1850,
747,
401,
9859,
4240,
18,
9859,
4174,
261,
2091,
715,
1768,
18,
588,
1854,
9334,
4766,
565,
26374,
1768,
18,
588,
1854,
1435,
3719,
288,
3639,
16456,
67,
1260,
37,
18,
1188,
26712,
261,
481,
1769,
3639,
8251,
18,
9499,
3067,
261,
6441,
13773,
2091,
715,
1768,
18,
588,
1854,
1435,
15,
3113,
13773,
4949,
1768,
18,
588,
1854,
1435,
5397,
397,
3104,
13773,
20293,
1768,
18,
588,
1854,
1435,
9078,
64,
82,
8863,
3639,
8251,
18,
9499,
3067,
261,
3660,
15,
8591,
9078,
64,
82,
8863,
1377,
289,
1377,
8251,
6315,
11231,
261,
9859,
4240,
18,
9859,
4174,
261,
2091,
715,
1768,
18,
588,
1854,
9334,
4766,
4202,
389,
4949,
1768,
18,
588,
1854,
1435,
10019,
1377,
8251,
6315,
11231,
261,
9859,
4240,
18,
9859,
4174,
261,
2091,
715,
1768,
18,
588,
1854,
9334,
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,
16456,
67,
8252,
1768,
582,
21910,
12,
15620,
67,
11983,
11646,
1616,
16,
16456,
67,
8252,
1768,
26374,
1768,
16,
8227,
16456,
67,
11983,
1804,
13,
288,
3639,
16456,
67,
8252,
1768,
1647,
1768,
273,
336,
4741,
1768,
12,
8591,
1769,
565,
16456,
67,
8252,
1768,
1328,
1768,
273,
26374,
1768,
31,
565,
16456,
67,
8252,
1768,
3796,
1768,
273,
26374,
1768,
31,
565,
16456,
67,
8252,
1768,
11646,
1768,
273,
11902,
12,
2091,
715,
1616,
1769,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
288,
1377,
309,
16051,
9859,
4240,
18,
9859,
4174,
261,
2091,
715,
1768,
18,
588,
1854,
9334,
4766,
1647,
1768,
18,
588,
1854,
10756,
1850,
747,
401,
9859,
4240,
18,
9859,
4174,
2
] |
if(log.isInfoEnabled()) log.info("I (" + leader + ") will be the leader. Starting the merge task");
|
if(log.isDebugEnabled()) log.debug("I (" + leader + ") will be the leader. Starting the merge task");
|
public void merge(Vector other_coords) { Membership tmp; Address leader=null; if(merging) { if(log.isWarnEnabled()) log.warn("merge already in progress, discarded MERGE event"); return; } if(other_coords == null) { if(log.isWarnEnabled()) log.warn("list of other coordinators is null. Will not start merge."); return; } if(other_coords.size() <= 1) { if(log.isErrorEnabled()) log.error("number of coordinators found is " + other_coords.size() + "; will not perform merge"); return; } /* Establish deterministic order, so that coords can elect leader */ tmp=new Membership(other_coords); tmp.sort(); leader=(Address)tmp.elementAt(0); if(log.isInfoEnabled()) log.info("coordinators in merge protocol are: " + tmp); if(leader.equals(gms.local_addr)) { if(log.isInfoEnabled()) log.info("I (" + leader + ") will be the leader. Starting the merge task"); startMergeTask(other_coords); } }
|
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/CoordGmsImpl.java/buggy/src/org/jgroups/protocols/pbcast/CoordGmsImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2691,
12,
5018,
1308,
67,
9076,
13,
288,
3639,
28100,
1853,
31,
3639,
5267,
10302,
33,
2011,
31,
3639,
309,
12,
6592,
1998,
13,
288,
7734,
309,
12,
1330,
18,
291,
3160,
1526,
10756,
613,
18,
8935,
2932,
2702,
1818,
316,
4007,
16,
20076,
490,
654,
7113,
871,
8863,
5411,
327,
31,
3639,
289,
3639,
309,
12,
3011,
67,
9076,
422,
446,
13,
288,
5411,
309,
12,
1330,
18,
291,
3160,
1526,
10756,
613,
18,
8935,
2932,
1098,
434,
1308,
2745,
30425,
353,
446,
18,
9980,
486,
787,
2691,
1199,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
3011,
67,
9076,
18,
1467,
1435,
1648,
404,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
2696,
434,
2745,
30425,
1392,
353,
315,
13491,
397,
1308,
67,
9076,
18,
1467,
1435,
397,
13636,
903,
486,
3073,
2691,
8863,
5411,
327,
31,
3639,
289,
3639,
1748,
17787,
23385,
25112,
1353,
16,
1427,
716,
6074,
848,
17375,
10302,
1195,
3639,
1853,
33,
2704,
28100,
12,
3011,
67,
9076,
1769,
3639,
1853,
18,
3804,
5621,
3639,
10302,
28657,
1887,
13,
5645,
18,
2956,
861,
12,
20,
1769,
3639,
309,
12,
1330,
18,
291,
966,
1526,
10756,
613,
18,
1376,
2932,
5732,
30425,
316,
2691,
1771,
854,
30,
315,
397,
1853,
1769,
3639,
309,
12,
27863,
18,
14963,
12,
75,
959,
18,
3729,
67,
4793,
3719,
288,
5411,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
45,
7566,
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,
2691,
12,
5018,
1308,
67,
9076,
13,
288,
3639,
28100,
1853,
31,
3639,
5267,
10302,
33,
2011,
31,
3639,
309,
12,
6592,
1998,
13,
288,
7734,
309,
12,
1330,
18,
291,
3160,
1526,
10756,
613,
18,
8935,
2932,
2702,
1818,
316,
4007,
16,
20076,
490,
654,
7113,
871,
8863,
5411,
327,
31,
3639,
289,
3639,
309,
12,
3011,
67,
9076,
422,
446,
13,
288,
5411,
309,
12,
1330,
18,
291,
3160,
1526,
10756,
613,
18,
8935,
2932,
1098,
434,
1308,
2745,
30425,
353,
446,
18,
9980,
486,
787,
2691,
1199,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
3011,
67,
9076,
18,
1467,
1435,
1648,
404,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
2
] |
if (currentResource.isAccessible()) selections.add(currentResource);
|
if (currentResource.isAccessible()) { selections.add(currentResource); }
|
protected void setupBasedOnInitialSelections() { if (initialExportFieldValue != null) { // a source resource has been programatically specified, which overrides // the current workbench resource selection IResource specifiedSourceResource = getSourceResource(); if (specifiedSourceResource == null) currentResourceSelection = new StructuredSelection(); else currentResourceSelection = new StructuredSelection( specifiedSourceResource); } if (currentResourceSelection.isEmpty()) return; // no setup needed List selections = new ArrayList(); Iterator it = currentResourceSelection.iterator(); while (it.hasNext()) { IResource currentResource = (IResource) it.next(); // do not add inaccessible elements if (currentResource.isAccessible()) selections.add(currentResource); } if (selections.isEmpty()) return; // setup not needed anymore int selectedResourceCount = selections.size(); if (selectedResourceCount == 1) { IResource resource = (IResource) selections.get(0); setResourceToDisplay(resource); } else { selectedResources = selections; exportAllTypesRadio.setSelection(true); exportSpecifiedTypesRadio.setSelection(false); resourceNameField.setText(CURRENT_SELECTION); exportCurrentSelection = true; displayResourcesSelectedCount(selectedResourceCount); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardExportPage.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3875,
9802,
1398,
4435,
29913,
1435,
288,
3639,
309,
261,
6769,
6144,
13559,
480,
446,
13,
288,
5411,
368,
279,
1084,
1058,
711,
2118,
5402,
2126,
1230,
1269,
16,
1492,
9515,
5411,
368,
326,
783,
1440,
22144,
1058,
4421,
5411,
467,
1420,
1269,
1830,
1420,
273,
7889,
1420,
5621,
5411,
309,
261,
13827,
1830,
1420,
422,
446,
13,
7734,
783,
1420,
6233,
273,
394,
7362,
2862,
6233,
5621,
5411,
469,
7734,
783,
1420,
6233,
273,
394,
7362,
2862,
6233,
12,
13491,
1269,
1830,
1420,
1769,
3639,
289,
3639,
309,
261,
2972,
1420,
6233,
18,
291,
1921,
10756,
5411,
327,
31,
368,
1158,
3875,
3577,
3639,
987,
21738,
273,
394,
2407,
5621,
3639,
4498,
518,
273,
783,
1420,
6233,
18,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
467,
1420,
783,
1420,
273,
261,
45,
1420,
13,
518,
18,
4285,
5621,
5411,
368,
741,
486,
527,
316,
26037,
2186,
5411,
309,
261,
2972,
1420,
18,
291,
10451,
10756,
7734,
21738,
18,
1289,
12,
2972,
1420,
1769,
3639,
289,
3639,
309,
261,
10705,
87,
18,
291,
1921,
10756,
5411,
327,
31,
368,
3875,
486,
3577,
16828,
3639,
509,
3170,
1420,
1380,
273,
21738,
18,
1467,
5621,
3639,
309,
261,
8109,
1420,
1380,
422,
404,
13,
288,
5411,
467,
1420,
1058,
273,
261,
45,
1420,
13,
21738,
18,
588,
12,
20,
1769,
5411,
21041,
774,
4236,
12,
3146,
1769,
3639,
289,
469,
288,
5411,
3170,
3805,
273,
21738,
31,
5411,
3359,
1595,
2016,
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,
3875,
9802,
1398,
4435,
29913,
1435,
288,
3639,
309,
261,
6769,
6144,
13559,
480,
446,
13,
288,
5411,
368,
279,
1084,
1058,
711,
2118,
5402,
2126,
1230,
1269,
16,
1492,
9515,
5411,
368,
326,
783,
1440,
22144,
1058,
4421,
5411,
467,
1420,
1269,
1830,
1420,
273,
7889,
1420,
5621,
5411,
309,
261,
13827,
1830,
1420,
422,
446,
13,
7734,
783,
1420,
6233,
273,
394,
7362,
2862,
6233,
5621,
5411,
469,
7734,
783,
1420,
6233,
273,
394,
7362,
2862,
6233,
12,
13491,
1269,
1830,
1420,
1769,
3639,
289,
3639,
309,
261,
2972,
1420,
6233,
18,
291,
1921,
10756,
5411,
327,
31,
368,
1158,
3875,
3577,
3639,
987,
21738,
273,
394,
2407,
5621,
3639,
4498,
518,
273,
783,
2
] |
case Id_anchor: return realThis(thisObj, f). jsFunction_anchor(ScriptRuntime.toString(args, 0));
|
case Id_equals: return wrap_boolean(jsFunction_equals (ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0)));
|
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case ConstructorId_fromCharCode: return jsStaticFunction_fromCharCode(args); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f). jsFunction_toString(); case Id_valueOf: return realThis(thisObj, f). jsFunction_valueOf(); case Id_charAt: return jsFunction_charAt(ScriptRuntime.toString(thisObj), args); case Id_charCodeAt: return wrap_double( jsFunction_charCodeAt(ScriptRuntime.toString(thisObj), args)); case Id_indexOf: return wrap_int( jsFunction_indexOf(ScriptRuntime.toString(thisObj), args)); case Id_lastIndexOf: return wrap_int( jsFunction_lastIndexOf(ScriptRuntime.toString(thisObj), args)); case Id_split: return jsFunction_split(cx, ScriptRuntime.toString(thisObj), args, f); case Id_substring: return jsFunction_substring(cx, ScriptRuntime.toString(thisObj), args); case Id_toLowerCase: return jsFunction_toLowerCase(ScriptRuntime.toString(thisObj)); case Id_toUpperCase: return jsFunction_toUpperCase(ScriptRuntime.toString(thisObj)); case Id_substr: return jsFunction_substr(ScriptRuntime.toString(thisObj), args); case Id_concat: return jsFunction_concat(ScriptRuntime.toString(thisObj), args); case Id_slice: return jsFunction_slice(ScriptRuntime.toString(thisObj), args); case Id_bold: return realThis(thisObj, f). jsFunction_bold(); case Id_italics: return realThis(thisObj, f). jsFunction_italics(); case Id_fixed: return realThis(thisObj, f). jsFunction_fixed(); case Id_strike: return realThis(thisObj, f). jsFunction_strike(); case Id_small: return realThis(thisObj, f). jsFunction_small(); case Id_big: return realThis(thisObj, f). jsFunction_big(); case Id_blink: return realThis(thisObj, f). jsFunction_blink(); case Id_sup: return realThis(thisObj, f). jsFunction_sup(); case Id_sub: return realThis(thisObj, f). jsFunction_sub(); case Id_fontsize: return realThis(thisObj, f). jsFunction_fontsize(ScriptRuntime.toString(args, 0)); case Id_fontcolor: return realThis(thisObj, f). jsFunction_fontcolor(ScriptRuntime.toString(args, 0)); case Id_link: return realThis(thisObj, f). jsFunction_link(ScriptRuntime.toString(args, 0)); case Id_anchor: return realThis(thisObj, f). jsFunction_anchor(ScriptRuntime.toString(args, 0)); case Id_equals: return wrap_boolean( jsFunction_equals(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_equalsIgnoreCase: return wrap_boolean( jsFunction_equalsIgnoreCase(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_match: return jsFunction_match(cx, thisObj, args, f); case Id_search: return jsFunction_search(cx, thisObj, args, f); case Id_replace: return jsFunction_replace(cx, thisObj, args, f); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/3db7f50283cb2dd0859494c7e36c278004f2f6a8/NativeString.java/buggy/src/org/mozilla/javascript/NativeString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1620,
261,
2039,
548,
13,
288,
3639,
648,
11417,
548,
67,
2080,
20535,
30,
327,
5411,
3828,
5788,
2083,
67,
2080,
20535,
12,
1968,
1769,
3639,
648,
3124,
67,
12316,
30,
327,
5411,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
3639,
648,
3124,
67,
10492,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
5411,
3828,
2083,
67,
10492,
5621,
3639,
648,
3124,
67,
1132,
951,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
5411,
3828,
2083,
67,
1132,
951,
5621,
3639,
648,
3124,
67,
3001,
861,
30,
327,
5411,
3828,
2083,
67,
3001,
861,
12,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
1769,
3639,
648,
3124,
67,
3001,
1085,
861,
30,
327,
2193,
67,
9056,
12,
5411,
3828,
2083,
67,
3001,
1085,
861,
12,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
3639,
648,
3124,
67,
31806,
30,
327,
2193,
67,
474,
12,
5411,
3828,
2083,
67,
31806,
12,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
3639,
648,
3124,
67,
2722,
31985,
30,
327,
2193,
67,
474,
12,
5411,
3828,
2083,
67,
2722,
31985,
12,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
3639,
648,
3124,
67,
4939,
30,
327,
5411,
3828,
2083,
67,
4939,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1620,
261,
2039,
548,
13,
288,
3639,
648,
11417,
548,
67,
2080,
20535,
30,
327,
5411,
3828,
5788,
2083,
67,
2080,
20535,
12,
1968,
1769,
3639,
648,
3124,
67,
12316,
30,
327,
5411,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
3639,
648,
3124,
67,
10492,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
5411,
3828,
2083,
67,
10492,
5621,
3639,
648,
3124,
67,
1132,
951,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
5411,
3828,
2083,
67,
2
] |
int matchSingleStep(XPathContext context, int pc, int stop) { int axis = AXIS_CHILD; //Node node = context.getCurrentNode(); for (;;) { if (pc == stop) { return pc; } short opcode = code[pc]; pc++; /* if (opcode >= OP_AXIS_FIRST && opcode < OP_AXIS_FIRST + COUNT_OP_AXIS) { axis = opcode - OP_AXIS_FIRST; if (axis == AXIS_ATTRIBUTE && node.getNodeType() != Node.ATTRIBUTE_NODE) return pc - 1; continue; } */ int j; switch (opcode) { /* case OP_SIMPLE_NAMETEST: { Object name = values[code[pc]]; if (! ( node.getNodeName() == name)) return -1; pc++; } continue; case OP_NODE: case OP_ANY_NAMETEST: continue; case OP_ROOT: if (node.getNodeType() != Node.DOCUMENT_NODE) return -1; continue; case OP_TEXT: if (node.getNodeType() != Node.TEXT_NODE) return -1; continue; case OP_COMMENT: if (node.getNodeType() != Node.COMMENT_NODE) return -1; continue; case OP_PROCESSING_INSTRUCTION: if (node.getNodeType() != Node.PROCESSING_INSTRUCTION_NODE) return -1; j = code[pc++]; if (j >= 0) { Object name = values[j]; if (! node.getNodeName().equals(name)) return -1; } continue; */ case OP_PREDICATE: // See explanation of this code in evalPath. int predPc = pc - 1; int counter = code[pc++]; if (context.predPc < predPc) context.setCounter(counter, 0); context.predPc = predPc; context.incrementCounter(counter); j = code[pc++]; pc += j; boolean doContinue; int savePosition = context.currentPosition; try { context.currentPosition = context.counters[counter]; doContinue = evalToPredicate(context, pc - 1); } finally { context.currentPosition = savePosition; } if (doContinue) continue; else return -1; } } }
|
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/a605f3abd7d7884e2a5005090d962a0e78e1543a/XPath.java/clean/gnu/xml/XPath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
509,
1916,
5281,
4160,
12,
14124,
1042,
2472,
16,
474,
2436,
16,
474,
5681,
15329,
474,
4890,
33,
25614,
67,
27043,
31,
759,
50,
369,
20680,
33,
2472,
18,
588,
3935,
907,
5621,
1884,
12,
25708,
15329,
202,
430,
12,
2436,
631,
5681,
13,
202,
95,
202,
2463,
2436,
31,
202,
97,
202,
6620,
556,
710,
33,
710,
63,
2436,
15533,
202,
2436,
9904,
31,
202,
20308,
202,
430,
12,
556,
710,
34,
33,
3665,
67,
25614,
67,
15354,
202,
10,
10,
556,
710,
32,
3665,
67,
25614,
67,
15354,
15,
7240,
67,
3665,
67,
25614,
15329,
202,
4890,
33,
556,
710,
17,
3665,
67,
25614,
67,
15354,
31,
202,
430,
12,
4890,
631,
25614,
67,
11616,
202,
10,
10,
2159,
18,
588,
15101,
1435,
5,
33,
907,
18,
11616,
67,
8744,
13,
202,
2463,
2436,
17,
21,
31,
202,
17143,
31,
202,
97,
202,
5549,
202,
474,
78,
31,
202,
9610,
12,
556,
710,
15329,
9506,
202,
20308,
9506,
202,
3593,
3665,
67,
31669,
900,
67,
1985,
16961,
30,
9506,
202,
95,
9506,
202,
921,
529,
33,
2372,
63,
710,
63,
2436,
13563,
31,
9506,
202,
430,
12,
5,
12,
2159,
18,
588,
18948,
1435,
631,
529,
3719,
9506,
202,
2463,
17,
21,
31,
9506,
202,
2436,
9904,
31,
9506,
202,
97,
9506,
202,
17143,
31,
9506,
202,
3593,
3665,
67,
8744,
30,
9506,
202,
3593,
3665,
67,
15409,
67,
1985,
16961,
30,
9506,
202,
17143,
31,
9506,
202,
3593,
3665,
67,
9185,
30,
9506,
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,
509,
1916,
5281,
4160,
12,
14124,
1042,
2472,
16,
474,
2436,
16,
474,
5681,
15329,
474,
4890,
33,
25614,
67,
27043,
31,
759,
50,
369,
20680,
33,
2472,
18,
588,
3935,
907,
5621,
1884,
12,
25708,
15329,
202,
430,
12,
2436,
631,
5681,
13,
202,
95,
202,
2463,
2436,
31,
202,
97,
202,
6620,
556,
710,
33,
710,
63,
2436,
15533,
202,
2436,
9904,
31,
202,
20308,
202,
430,
12,
556,
710,
34,
33,
3665,
67,
25614,
67,
15354,
202,
10,
10,
556,
710,
32,
3665,
67,
25614,
67,
15354,
15,
7240,
67,
3665,
67,
25614,
15329,
202,
4890,
33,
556,
710,
17,
3665,
67,
25614,
67,
15354,
31,
202,
430,
12,
4890,
631,
25614,
67,
11616,
202,
10,
2
] |
||
+ propName.substring(1);
|
+ propName.substring(1);
|
private static String calcPropertyName(String queryParameter, String clause) { String propName; if(clause != null && !clause.equals( EQUAL )) { int i = queryParameter.indexOf(clause); propName = queryParameter.substring(0,i); } else { propName = queryParameter; } if(propName.endsWith(NOT)) { int i = propName.lastIndexOf(NOT); propName = propName.substring(0, i); } return propName.substring(0,1).toLowerCase(Locale.ENGLISH) + propName.substring(1); }
|
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/85846d755f8d115c415513d372c187f2bc2973ec/AbstractClausedStaticPersistentMethod.java/buggy/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
760,
514,
7029,
13073,
12,
780,
843,
1662,
16,
514,
6591,
13,
288,
1082,
202,
780,
9994,
31,
1082,
202,
430,
12,
18128,
480,
446,
597,
401,
18128,
18,
14963,
12,
18231,
8623,
288,
9506,
202,
474,
277,
273,
843,
1662,
18,
31806,
12,
18128,
1769,
9506,
202,
5986,
461,
273,
843,
1662,
18,
28023,
12,
20,
16,
77,
1769,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
5986,
461,
273,
843,
1662,
31,
1082,
202,
97,
1082,
202,
430,
12,
5986,
461,
18,
5839,
1190,
12,
4400,
3719,
288,
9506,
202,
474,
277,
273,
9994,
18,
2722,
31985,
12,
4400,
1769,
9506,
202,
5986,
461,
273,
9994,
18,
28023,
12,
20,
16,
277,
1769,
1082,
202,
97,
1082,
202,
2463,
9994,
18,
28023,
12,
20,
16,
21,
2934,
869,
5630,
12,
3916,
18,
16324,
13462,
13,
9506,
202,
15,
9994,
18,
28023,
12,
21,
1769,
6862,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
760,
514,
7029,
13073,
12,
780,
843,
1662,
16,
514,
6591,
13,
288,
1082,
202,
780,
9994,
31,
1082,
202,
430,
12,
18128,
480,
446,
597,
401,
18128,
18,
14963,
12,
18231,
8623,
288,
9506,
202,
474,
277,
273,
843,
1662,
18,
31806,
12,
18128,
1769,
9506,
202,
5986,
461,
273,
843,
1662,
18,
28023,
12,
20,
16,
77,
1769,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
5986,
461,
273,
843,
1662,
31,
1082,
202,
97,
1082,
202,
430,
12,
5986,
461,
18,
5839,
1190,
12,
4400,
3719,
288,
9506,
202,
474,
277,
273,
9994,
18,
2722,
31985,
12,
4400,
1769,
9506,
202,
5986,
461,
273,
9994,
18,
28023,
12,
20,
16,
277,
1769,
2
] |
if (top >=0 && left >=0) { deselectAll(); for (int row = 0; row<lines.length; row++) for (int column = 0; column < lines[row]; column++){ selectCell(column + left, row + top); }
|
if (lines.length == numRowsTotal + 1){ for (int column = 0; column < lines[0]; column++) selectColumn(column + left); if (lines[0] == numColumnsTotal + 1) for (int row = 0; row < lines.length; row++) selectRow(row + top);
|
public void setSelectionToShape(int[] lines, CommandRecord commandRec){ if (lines == null) return; if (anyColumnSelected() || anyRowSelected() || anyCellSelected()){ int firstRow = firstRowSelected(); int firstColumn = firstColumnSelected(); int top = -1; int left = -1; boolean found = false; for (int row = 0; row< numRowsTotal && !found; row++){ //row dominant choice of upper left for (int column = 0; column < numColumnsTotal && !found; column++){ if (isCellSelected(column, row)){ top = row; left = column; found = true; } } } if (firstRow >=0 && (firstRow<top || top<0)) top = firstRow; if (firstColumn >=0 && (firstColumn<left || left <0)) left = firstColumn; if (top<0 && left>=0) top = 0; if (left<0 && top>=0) left = 0; if (top >=0 && left >=0) { deselectAll(); for (int row = 0; row<lines.length; row++) for (int column = 0; column < lines[row]; column++){ selectCell(column + left, row + top); } } if (columnAssociable!=null && firstColumn>=0) columnAssociable.notifyListeners(this, new Notification(MesquiteListener.SELECTION_CHANGED), commandRec); if (rowAssociable!=null && firstRow>=0) rowAssociable.notifyListeners(this, new Notification(MesquiteListener.SELECTION_CHANGED), commandRec); } else if (anyRowNameSelected()){ int first = rowNamesSelected[0].firstBitOn(); for (int row = first; row < lines.length +first; row++){ selectRowName(row); } } else if (anyColumnNameSelected()){ if (lines.length==1){ int first = columnNamesSelected[0].firstBitOn(); for (int column = first; column < lines[0] +first; column++){ selectColumnName(column); } } } repaintAll(); }
|
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/ac644248c5238a5035bef8db2b1667e34db27ff9/MesquiteTable.java/clean/trunk/Mesquite Project/Source/mesquite/lib/table/MesquiteTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
6233,
774,
8500,
12,
474,
8526,
2362,
16,
3498,
2115,
1296,
5650,
15329,
202,
202,
430,
261,
3548,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
430,
261,
2273,
1494,
7416,
1435,
747,
1281,
1999,
7416,
1435,
747,
1281,
4020,
7416,
10756,
95,
1082,
202,
474,
1122,
1999,
273,
1122,
1999,
7416,
5621,
1082,
202,
474,
1122,
1494,
273,
1122,
1494,
7416,
5621,
1082,
202,
474,
1760,
273,
300,
21,
31,
1082,
202,
474,
2002,
273,
300,
21,
31,
1082,
202,
6494,
1392,
273,
629,
31,
1082,
202,
1884,
261,
474,
1027,
273,
374,
31,
1027,
32,
12934,
5269,
597,
401,
7015,
31,
1027,
27245,
95,
368,
492,
4092,
20030,
6023,
434,
3854,
2002,
9506,
202,
1884,
261,
474,
1057,
273,
374,
31,
1057,
411,
30109,
5269,
597,
401,
7015,
31,
1057,
27245,
95,
6862,
202,
430,
261,
291,
4020,
7416,
12,
2827,
16,
1027,
3719,
95,
25083,
202,
3669,
273,
1027,
31,
25083,
202,
4482,
273,
1057,
31,
25083,
202,
7015,
273,
638,
31,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1082,
202,
430,
261,
3645,
1999,
1545,
20,
597,
261,
3645,
1999,
32,
3669,
747,
1760,
32,
20,
3719,
9506,
202,
3669,
273,
1122,
1999,
31,
1082,
202,
430,
261,
3645,
1494,
1545,
20,
597,
261,
3645,
1494,
32,
4482,
747,
2002,
411,
20,
3719,
9506,
202,
4482,
273,
1122,
1494,
31,
1082,
202,
430,
261,
3669,
32,
20,
597,
2002,
34,
33,
20,
13,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
6233,
774,
8500,
12,
474,
8526,
2362,
16,
3498,
2115,
1296,
5650,
15329,
202,
202,
430,
261,
3548,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
430,
261,
2273,
1494,
7416,
1435,
747,
1281,
1999,
7416,
1435,
747,
1281,
4020,
7416,
10756,
95,
1082,
202,
474,
1122,
1999,
273,
1122,
1999,
7416,
5621,
1082,
202,
474,
1122,
1494,
273,
1122,
1494,
7416,
5621,
1082,
202,
474,
1760,
273,
300,
21,
31,
1082,
202,
474,
2002,
273,
300,
21,
31,
1082,
202,
6494,
1392,
273,
629,
31,
1082,
202,
1884,
261,
474,
1027,
273,
374,
31,
1027,
32,
12934,
5269,
597,
401,
7015,
31,
1027,
27245,
95,
368,
492,
4092,
20030,
6023,
434,
3854,
2
] |
vPhaseReport.addElement(new Report(7020, Report.PUBLIC));
|
addReport(new Report(7020, Report.PUBLIC));
|
private void prepareVictoryReport() { Report r; vPhaseReport.addElement(new Report(7000, Report.PUBLIC)); //Declare the victor r = new Report(1210); r.type = Report.PUBLIC; if (game.getVictoryTeam() == Player.TEAM_NONE) { Player player = getPlayer( game.getVictoryPlayerId() ); if ( null == player ) { r.messageId = 7005; } else { r.messageId = 7010; r.add(player.getName()); } } else { //Team victory r.messageId = 7015; r.add(game.getVictoryTeam()); } vPhaseReport.addElement(r); //List the survivors Enumeration survivors = game.getEntities(); if ( survivors.hasMoreElements() ) { vPhaseReport.addElement(new Report(7020, Report.PUBLIC)); while ( survivors.hasMoreElements() ) { Entity entity = (Entity) survivors.nextElement(); if ( !entity.isDeployed() ) continue; vPhaseReport.addAll( entity.victoryReport()); } } //List units that never deployed Enumeration undeployed = game.getEntities(); if ( undeployed.hasMoreElements() ) { boolean wroteHeader = false; while ( undeployed.hasMoreElements() ) { Entity entity = (Entity) undeployed.nextElement(); if ( entity.isDeployed() ) continue; if ( !wroteHeader ) { vPhaseReport.addElement(new Report(7075, Report.PUBLIC)); wroteHeader = true; } vPhaseReport.addAll( entity.victoryReport()); } } //List units that retreated Enumeration retreat = game.getRetreatedEntities(); if ( retreat.hasMoreElements() ) { vPhaseReport.addElement(new Report(7080, Report.PUBLIC)); while ( retreat.hasMoreElements() ) { Entity entity = (Entity) retreat.nextElement(); vPhaseReport.addAll( entity.victoryReport()); } } //List destroyed units Enumeration graveyard = game.getGraveyardEntities(); if ( graveyard.hasMoreElements() ) { vPhaseReport.addElement(new Report(7085, Report.PUBLIC)); while ( graveyard.hasMoreElements() ) { Entity entity = (Entity) graveyard.nextElement(); vPhaseReport.addAll( entity.victoryReport()); } } //List devastated units (not salvagable) Enumeration devastated = game.getDevastatedEntities(); if ( devastated.hasMoreElements() ) { vPhaseReport.addElement(new Report(7090, Report.PUBLIC)); while ( devastated.hasMoreElements() ) { Entity entity = (Entity) devastated.nextElement(); vPhaseReport.addAll( entity.victoryReport()); } } //Let player know about entitystatus.txt file vPhaseReport.addElement(new Report(7095, Report.PUBLIC)); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2911,
58,
933,
630,
4820,
1435,
288,
3639,
8706,
436,
31,
3639,
331,
11406,
4820,
18,
1289,
1046,
12,
2704,
8706,
12,
27,
3784,
16,
8706,
18,
14939,
10019,
3639,
368,
3456,
834,
326,
28873,
280,
3639,
436,
273,
394,
8706,
12,
2138,
2163,
1769,
3639,
436,
18,
723,
273,
8706,
18,
14939,
31,
3639,
309,
261,
13957,
18,
588,
58,
933,
630,
8689,
1435,
422,
19185,
18,
1448,
2192,
67,
9826,
13,
288,
5411,
19185,
7291,
273,
1689,
6363,
12,
7920,
18,
588,
58,
933,
630,
12148,
548,
1435,
11272,
5411,
309,
261,
446,
422,
7291,
262,
288,
7734,
436,
18,
2150,
548,
273,
2371,
28564,
31,
5411,
289,
469,
288,
7734,
436,
18,
2150,
548,
273,
2371,
23254,
31,
7734,
436,
18,
1289,
12,
14872,
18,
17994,
10663,
5411,
289,
3639,
289,
469,
288,
5411,
368,
8689,
28873,
630,
5411,
436,
18,
2150,
548,
273,
2371,
1611,
25,
31,
5411,
436,
18,
1289,
12,
13957,
18,
588,
58,
933,
630,
8689,
10663,
3639,
289,
3639,
331,
11406,
4820,
18,
1289,
1046,
12,
86,
1769,
3639,
368,
682,
326,
25397,
427,
1383,
3639,
13864,
25397,
427,
1383,
273,
7920,
18,
588,
8108,
5621,
3639,
309,
261,
25397,
427,
1383,
18,
5332,
7417,
3471,
1435,
262,
288,
5411,
527,
4820,
12,
2704,
8706,
12,
27,
3103,
20,
16,
8706,
18,
14939,
10019,
5411,
1323,
261,
25397,
427,
1383,
18,
5332,
7417,
3471,
1435,
262,
288,
7734,
3887,
1522,
273,
261,
1943,
13,
25397,
427,
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,
2911,
58,
933,
630,
4820,
1435,
288,
3639,
8706,
436,
31,
3639,
331,
11406,
4820,
18,
1289,
1046,
12,
2704,
8706,
12,
27,
3784,
16,
8706,
18,
14939,
10019,
3639,
368,
3456,
834,
326,
28873,
280,
3639,
436,
273,
394,
8706,
12,
2138,
2163,
1769,
3639,
436,
18,
723,
273,
8706,
18,
14939,
31,
3639,
309,
261,
13957,
18,
588,
58,
933,
630,
8689,
1435,
422,
19185,
18,
1448,
2192,
67,
9826,
13,
288,
5411,
19185,
7291,
273,
1689,
6363,
12,
7920,
18,
588,
58,
933,
630,
12148,
548,
1435,
11272,
5411,
309,
261,
446,
422,
7291,
262,
288,
7734,
436,
18,
2150,
548,
273,
2371,
28564,
31,
5411,
289,
469,
288,
7734,
436,
18,
2150,
2
] |
try {
|
try {
|
public IWizardPage getNextPage() { // save the product information to the model saveDataToModel(); NewBugWizard wizard = (NewBugWizard) getWizard(); NewBugModel model = wizard.model; // try to get the attributes from the bugzilla server try { if (!model.hasParsedAttributes() || !prevProduct.equals(model.getProduct())) { String serverUrl = bugWizard.getRepository().getServerUrl().toExternalForm(); if (model.isConnected()) { BugzillaRepositoryUtil.getnewBugAttributes(serverUrl, model, false); } else { BugzillaRepositoryUtil.getProdConfigAttributes(serverUrl, model); } model.setParsedAttributesStatus(true); if (prevProduct == null) { bugWizard.attributePage = new WizardAttributesPage(workbench); bugWizard.addPage(bugWizard.attributePage); } else { // selected product has changed bugWizard.attributePage.setControl(null); // will createControl again with new attributes in model } } } catch (Exception e) { BugzillaPlugin.getDefault().logAndShowExceptionDetailsDialog(e, "occurred.", "Bugzilla Error"); } return super.getNextPage(); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f1213ea5e2cf811886d1cddc204b0d844e76584d/WizardProductPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/WizardProductPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
27130,
1964,
6927,
1964,
1435,
288,
202,
202,
759,
1923,
326,
3017,
1779,
358,
326,
938,
202,
202,
5688,
751,
774,
1488,
5621,
202,
202,
1908,
19865,
27130,
24204,
273,
261,
1908,
19865,
27130,
13,
13876,
13412,
5621,
202,
202,
1908,
19865,
1488,
938,
273,
24204,
18,
2284,
31,
202,
202,
759,
775,
358,
336,
326,
1677,
628,
326,
7934,
15990,
1438,
202,
202,
698,
202,
95,
1082,
202,
430,
16051,
2284,
18,
5332,
11257,
2498,
1435,
747,
401,
10001,
4133,
18,
14963,
12,
2284,
18,
588,
4133,
1435,
3719,
288,
9506,
202,
780,
1438,
1489,
273,
7934,
27130,
18,
588,
3305,
7675,
588,
2081,
1489,
7675,
869,
6841,
1204,
5621,
9506,
202,
430,
261,
2284,
18,
291,
8932,
10756,
288,
4405,
202,
19865,
15990,
3305,
1304,
18,
588,
2704,
19865,
2498,
12,
3567,
1489,
16,
938,
16,
629,
1769,
9506,
202,
97,
202,
1875,
202,
12107,
288,
202,
4697,
202,
19865,
15990,
3305,
1304,
18,
588,
30683,
809,
2498,
12,
3567,
1489,
16,
938,
1769,
202,
1875,
202,
97,
9506,
202,
2284,
18,
542,
11257,
2498,
1482,
12,
3767,
1769,
9506,
202,
430,
261,
10001,
4133,
422,
446,
13,
288,
6862,
202,
925,
27130,
18,
4589,
1964,
273,
394,
678,
13412,
2498,
1964,
12,
1252,
22144,
1769,
6862,
202,
925,
27130,
18,
1289,
1964,
12,
925,
27130,
18,
4589,
1964,
1769,
9506,
202,
97,
9506,
202,
12107,
288,
6862,
202,
759,
3170,
3017,
711,
3550,
6862,
202,
925,
27130,
18,
4589,
1964,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
27130,
1964,
6927,
1964,
1435,
288,
202,
202,
759,
1923,
326,
3017,
1779,
358,
326,
938,
202,
202,
5688,
751,
774,
1488,
5621,
202,
202,
1908,
19865,
27130,
24204,
273,
261,
1908,
19865,
27130,
13,
13876,
13412,
5621,
202,
202,
1908,
19865,
1488,
938,
273,
24204,
18,
2284,
31,
202,
202,
759,
775,
358,
336,
326,
1677,
628,
326,
7934,
15990,
1438,
202,
202,
698,
202,
95,
1082,
202,
430,
16051,
2284,
18,
5332,
11257,
2498,
1435,
747,
401,
10001,
4133,
18,
14963,
12,
2284,
18,
588,
4133,
1435,
3719,
288,
9506,
202,
780,
1438,
1489,
273,
7934,
27130,
18,
588,
3305,
7675,
588,
2081,
1489,
7675,
869,
6841,
1204,
5621,
9506,
202,
430,
261,
2
] |
prop = "element(*, " + JcrConstants.NT_CALDAV_EVENT_RESOURCE + ")";
|
prop = "element(*, " + JcrConstants.NT_CALDAV_EVENT_RESOURCE + ")";
|
public String toXPath() { // iCalendar properties are represented in JCR as nodes so // we need an XPath that tests the node in the // appropriate fashion for the type of comparison being done // TODO Not sure about X-props right now String statement = null; // Map the iCalendar component name to a JCR node name or type. If // no // mapping is found then return empty string for XPath // element. String prop = null; if (name.equals("VCALENDAR")) prop = "element(*, " + JcrConstants.NT_CALDAV_EVENT_RESOURCE + ")"; else if (Component.VEVENT.equals(name)) prop = JcrConstants.NN_ICAL_REVENT; else if (Component.VTIMEZONE.equals(name)) prop = JcrConstants.NN_ICAL_TIMEZONE; if (prop == null) return ""; if (isDefined) { statement = prop; } else if (useTimeRange) { // TODO - Need to figure out how to do time range tests in // JCR. For now just ignore. statement = ""; } // Add any component or property filters int compSize = (compFilters != null) ? compFilters.size() : 0; int propSize = (propFilters != null) ? propFilters.size() : 0; if (compSize + propSize > 0) { // Shortcut simple cases if ((compSize == 1) && (propSize == 0)) { statement += "/" + ((compfilter) compFilters.get(0)).toXPath(); } else if ((compSize == 0) && (propSize == 1)) { statement += "/" + ((propfilter) propFilters.get(0)).toXPath(); } else { // Add each test as a compound statement statement += "/("; boolean first = true; if (compSize != 0) { for (Iterator iter = compFilters.iterator(); iter .hasNext();) { // Multiple items must all occur together (and) if (!first) statement += " and "; else first = false; statement += ((compfilter) iter.next()).toXPath(); } } if (propSize != 0) { for (Iterator iter = propFilters.iterator(); iter .hasNext();) { // Multiple items must all occur together (and) if (!first) statement += " and "; else first = false; statement += ((propfilter) iter.next()).toXPath(); } } statement += ")"; } } return statement; }
|
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/145f0ab5de3ac56e09fd5f3c725e84fb703cf8eb/QueryFilter.java/buggy/src/main/java/org/osaf/cosmo/dav/report/caldav/QueryFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
358,
14124,
1435,
288,
5411,
368,
277,
7335,
1790,
854,
10584,
316,
17573,
487,
2199,
1427,
5411,
368,
732,
1608,
392,
10172,
716,
7434,
326,
756,
316,
326,
5411,
368,
5505,
30957,
364,
326,
618,
434,
5826,
3832,
2731,
5411,
368,
2660,
2288,
3071,
2973,
1139,
17,
9693,
2145,
2037,
5411,
514,
3021,
273,
446,
31,
5411,
368,
1635,
326,
277,
7335,
1794,
508,
358,
279,
17573,
756,
508,
578,
618,
18,
971,
5411,
368,
1158,
5411,
368,
2874,
353,
1392,
1508,
327,
1008,
533,
364,
10172,
5411,
368,
930,
18,
5411,
514,
2270,
273,
446,
31,
5411,
309,
261,
529,
18,
14963,
2932,
58,
12983,
29154,
6,
3719,
7734,
2270,
273,
315,
2956,
30857,
16,
315,
13491,
397,
22481,
2918,
18,
1784,
67,
7913,
17735,
67,
10454,
67,
11395,
397,
7310,
31,
5411,
469,
309,
261,
1841,
18,
3412,
6465,
18,
14963,
12,
529,
3719,
7734,
2270,
273,
22481,
2918,
18,
12225,
67,
10109,
67,
862,
6465,
31,
5411,
469,
309,
261,
1841,
18,
58,
4684,
20725,
18,
14963,
12,
529,
3719,
7734,
2270,
273,
22481,
2918,
18,
12225,
67,
10109,
67,
4684,
20725,
31,
5411,
309,
261,
5986,
422,
446,
13,
7734,
327,
1408,
31,
5411,
309,
261,
291,
8116,
13,
288,
7734,
3021,
273,
2270,
31,
5411,
289,
469,
309,
261,
1202,
950,
2655,
13,
288,
7734,
368,
2660,
300,
12324,
358,
7837,
596,
3661,
358,
741,
813,
1048,
7434,
316,
7734,
368,
17573,
18,
2457,
2037,
2537,
2305,
18,
7734,
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,
514,
358,
14124,
1435,
288,
5411,
368,
277,
7335,
1790,
854,
10584,
316,
17573,
487,
2199,
1427,
5411,
368,
732,
1608,
392,
10172,
716,
7434,
326,
756,
316,
326,
5411,
368,
5505,
30957,
364,
326,
618,
434,
5826,
3832,
2731,
5411,
368,
2660,
2288,
3071,
2973,
1139,
17,
9693,
2145,
2037,
5411,
514,
3021,
273,
446,
31,
5411,
368,
1635,
326,
277,
7335,
1794,
508,
358,
279,
17573,
756,
508,
578,
618,
18,
971,
5411,
368,
1158,
5411,
368,
2874,
353,
1392,
1508,
327,
1008,
533,
364,
10172,
5411,
368,
930,
18,
5411,
514,
2270,
273,
446,
31,
5411,
309,
261,
529,
18,
14963,
2932,
58,
12983,
29154,
6,
3719,
7734,
2270,
273,
315,
2956,
30857,
16,
2
] |
return man; }
|
return man; }
|
public IUserLayoutManager getOriginalLayoutManager() throws PortalException { return man; }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/948a50c00c52659556ab3183d5ea2e316077d789/TransientUserLayoutManagerWrapper.java/buggy/source/org/jasig/portal/layout/TransientUserLayoutManagerWrapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1299,
3744,
1318,
18354,
3744,
1318,
1435,
1216,
25478,
503,
288,
1082,
282,
327,
3161,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1299,
3744,
1318,
18354,
3744,
1318,
1435,
1216,
25478,
503,
288,
1082,
282,
327,
3161,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int repetition = 0; if(!inHandler) { Integer count = (Integer)((MessageContext)msgContext).getProperty(WSSHandlerConstants.CURRENT_REPETITON); if(count != null) { repetition = count.intValue(); } } return repetition; }
|
int repetition = 0; if (!inHandler) { Integer count = (Integer) ((MessageContext) msgContext).getProperty(WSSHandlerConstants.CURRENT_REPETITON); if (count != null) { repetition = count.intValue(); } } return repetition; }
|
protected int getCurrentRepetition(Object msgContext) { //get the repetition from the message context int repetition = 0; if(!inHandler) {//We only need to repete the out handler Integer count = (Integer)((MessageContext)msgContext).getProperty(WSSHandlerConstants.CURRENT_REPETITON); if(count != null) { //When we are repeting the handler repetition = count.intValue(); } } return repetition; }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/bf48280bb2cc17e59a92ab2d54f54ddd09c486e7/WSDoAllHandler.java/clean/modules/security/src/org/apache/rampart/handler/WSDoAllHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
5175,
426,
6951,
608,
12,
921,
1234,
1042,
13,
288,
202,
202,
759,
588,
326,
31239,
628,
326,
883,
819,
377,
202,
474,
31239,
273,
374,
31,
377,
202,
430,
12,
5,
267,
1503,
13,
288,
759,
3218,
1338,
1608,
358,
2071,
12865,
326,
596,
1838,
377,
202,
202,
4522,
1056,
273,
261,
4522,
13,
12443,
1079,
1042,
13,
3576,
1042,
2934,
588,
1396,
12,
59,
1260,
1503,
2918,
18,
15487,
67,
862,
1423,
56,
1285,
673,
1769,
377,
202,
202,
430,
12,
1883,
480,
446,
13,
288,
368,
9434,
732,
854,
2071,
21747,
326,
1838,
377,
1082,
202,
266,
6951,
608,
273,
1056,
18,
474,
620,
5621,
377,
202,
202,
97,
377,
202,
97,
202,
202,
2463,
31239,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
5175,
426,
6951,
608,
12,
921,
1234,
1042,
13,
288,
202,
202,
759,
588,
326,
31239,
628,
326,
883,
819,
377,
202,
474,
31239,
273,
374,
31,
377,
202,
430,
12,
5,
267,
1503,
13,
288,
759,
3218,
1338,
1608,
358,
2071,
12865,
326,
596,
1838,
377,
202,
202,
4522,
1056,
273,
261,
4522,
13,
12443,
1079,
1042,
13,
3576,
1042,
2934,
588,
1396,
12,
59,
1260,
1503,
2918,
18,
15487,
67,
862,
1423,
56,
1285,
673,
1769,
377,
202,
202,
430,
12,
1883,
480,
446,
13,
288,
368,
9434,
732,
854,
2071,
21747,
326,
1838,
377,
1082,
202,
266,
6951,
608,
273,
1056,
18,
474,
620,
5621,
377,
202,
202,
97,
377,
202,
97,
2
] |
public void saveSize(Window window, String name, int boardSize)
|
public void saveSize(Window window, String name, int boardSize)
|
public void saveSize(Window window, String name, int boardSize) { if (isFrameSpecialMode(window)) return; Preferences prefs = getNode(name, boardSize); if (prefs == null) return; Point location = window.getLocation(); prefs.putInt("x", location.x); prefs.putInt("y", location.y); Dimension size = window.getSize(); prefs.putInt("width", size.width); prefs.putInt("height", size.height); }
|
48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/c5013cb06e2c39f3e4b1660ca9cbdfa9fca285d4/Session.java/clean/src/net/sf/gogui/gui/Session.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1225,
12,
3829,
2742,
16,
514,
508,
16,
27573,
509,
11094,
1225,
13,
565,
288,
3639,
309,
261,
291,
3219,
12193,
2309,
12,
5668,
3719,
5411,
327,
31,
3639,
28310,
15503,
273,
5973,
12,
529,
16,
11094,
1225,
1769,
3639,
309,
261,
1484,
2556,
422,
446,
13,
5411,
327,
31,
3639,
4686,
2117,
273,
2742,
18,
588,
2735,
5621,
3639,
15503,
18,
458,
1702,
2932,
92,
3113,
2117,
18,
92,
1769,
3639,
15503,
18,
458,
1702,
2932,
93,
3113,
2117,
18,
93,
1769,
3639,
13037,
963,
273,
2742,
18,
588,
1225,
5621,
3639,
15503,
18,
458,
1702,
2932,
2819,
3113,
963,
18,
2819,
1769,
3639,
15503,
18,
458,
1702,
2932,
4210,
3113,
963,
18,
4210,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1225,
12,
3829,
2742,
16,
514,
508,
16,
27573,
509,
11094,
1225,
13,
565,
288,
3639,
309,
261,
291,
3219,
12193,
2309,
12,
5668,
3719,
5411,
327,
31,
3639,
28310,
15503,
273,
5973,
12,
529,
16,
11094,
1225,
1769,
3639,
309,
261,
1484,
2556,
422,
446,
13,
5411,
327,
31,
3639,
4686,
2117,
273,
2742,
18,
588,
2735,
5621,
3639,
15503,
18,
458,
1702,
2932,
92,
3113,
2117,
18,
92,
1769,
3639,
15503,
18,
458,
1702,
2932,
93,
3113,
2117,
18,
93,
1769,
3639,
13037,
963,
273,
2742,
18,
588,
1225,
5621,
3639,
15503,
18,
458,
1702,
2932,
2819,
3113,
963,
18,
2819,
1769,
3639,
15503,
18,
458,
1702,
2932,
4210,
3113,
963,
18,
4210,
2
] |
localSourceToNotify().supply((T)objectSmokeSignal.newValue());
|
T newValue = (T)objectSmokeSignal.newValue(); if (sameValue(newValue)) return; localSourceToNotify().supply(newValue);
|
public void receive(SmokeSignal smokeSignal) { ObjectSmokeSignal objectSmokeSignal = (ObjectSmokeSignal) smokeSignal; localSourceToNotify().supply((T)objectSmokeSignal.newValue()); }
|
28035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28035/cda94336e79353d68b425f4cad5ff0e99dd94bb2/IndianForObject.java/buggy/sneer/src/main/sneer/remote/IndianForObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6798,
12,
9552,
3056,
11208,
3029,
3056,
11208,
13,
288,
202,
202,
921,
9552,
3056,
11208,
733,
9552,
3056,
11208,
273,
261,
921,
9552,
3056,
11208,
13,
3029,
3056,
11208,
31,
202,
202,
3729,
1830,
774,
9168,
7675,
2859,
1283,
12443,
56,
13,
1612,
9552,
3056,
11208,
18,
2704,
620,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6798,
12,
9552,
3056,
11208,
3029,
3056,
11208,
13,
288,
202,
202,
921,
9552,
3056,
11208,
733,
9552,
3056,
11208,
273,
261,
921,
9552,
3056,
11208,
13,
3029,
3056,
11208,
31,
202,
202,
3729,
1830,
774,
9168,
7675,
2859,
1283,
12443,
56,
13,
1612,
9552,
3056,
11208,
18,
2704,
620,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Dataflow<ValueNumberFrame> vnaDataflow = new Dataflow<ValueNumberFrame>(cfg, new ValueNumberAnalysis(methodGen));
|
ValueNumberDataflow vnaDataflow = new ValueNumberDataflow(cfg, new ValueNumberAnalysis(methodGen));
|
public AbstractDataflowAnalysis<LockCount> createAnalysis(MethodGen methodGen, CFG cfg) throws DataflowAnalysisException { Dataflow<ValueNumberFrame> vnaDataflow = new Dataflow<ValueNumberFrame>(cfg, new ValueNumberAnalysis(methodGen)); vnaDataflow.execute(); return new OtherLockCountAnalysis(methodGen, vnaDataflow); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/662ec59edd6613ff361a507edeae8d9c358b5286/OtherLockCountAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/OtherLockCountAnalysis.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
4115,
751,
2426,
9418,
32,
2531,
1380,
34,
752,
9418,
12,
1305,
7642,
707,
7642,
16,
7577,
2776,
13,
1216,
1910,
2426,
9418,
503,
288,
6862,
202,
751,
2426,
32,
620,
1854,
3219,
34,
331,
6582,
751,
2426,
273,
394,
1910,
2426,
32,
620,
1854,
3219,
34,
12,
7066,
16,
394,
1445,
1854,
9418,
12,
2039,
7642,
10019,
6862,
202,
90,
6582,
751,
2426,
18,
8837,
5621,
6862,
202,
2463,
394,
4673,
2531,
1380,
9418,
12,
2039,
7642,
16,
331,
6582,
751,
2426,
1769,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
4115,
751,
2426,
9418,
32,
2531,
1380,
34,
752,
9418,
12,
1305,
7642,
707,
7642,
16,
7577,
2776,
13,
1216,
1910,
2426,
9418,
503,
288,
6862,
202,
751,
2426,
32,
620,
1854,
3219,
34,
331,
6582,
751,
2426,
273,
394,
1910,
2426,
32,
620,
1854,
3219,
34,
12,
7066,
16,
394,
1445,
1854,
9418,
12,
2039,
7642,
10019,
6862,
202,
90,
6582,
751,
2426,
18,
8837,
5621,
6862,
202,
2463,
394,
4673,
2531,
1380,
9418,
12,
2039,
7642,
16,
331,
6582,
751,
2426,
1769,
9506,
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
] |
return map;
|
private HashMap unwrap(Object obj) { HashMap map = new HashMap(); if (obj instanceof IdentityListBean) { // JAVA5: Use foreach Iterator beanIter = ((IdentityListBean)obj).getIdBeans().iterator(); while (beanIter.hasNext()) { IdentityBean bean = (IdentityBean)beanIter.next(); String idKey = bean.getKey(); try { PeerIdentity pid = findPeerIdentity(idKey); LcapIdentity lid = new LcapIdentity(pid, idKey, bean.getReputation()); map.put(pid, lid); } catch (MalformedIdentityKeyException ex) { log.warning("Error reloading identity - Unknown host: " + idKey); } } } else { Iterator iter = ((HashMap)obj).entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); PeerIdentity origPid = (PeerIdentity)entry.getKey(); LcapIdentity origLid = (LcapIdentity)entry.getValue(); String idKey = origPid.getIdString(); try { PeerIdentity newPid = findPeerIdentity(idKey); LcapIdentity newLid = new LcapIdentity(newPid, idKey, origLid.getReputation()); map.put(newPid, newLid); } catch (MalformedIdentityKeyException exc) { log.warning("Error reloading identity - Unknown host: " + idKey); } } } return map; }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/322ef92ed296394c2702ea09f9138469fd1c85c1/IdentityManagerImpl.java/buggy/src/org/lockss/protocol/IdentityManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
4317,
11014,
12,
921,
1081,
13,
288,
565,
4317,
852,
273,
394,
4317,
5621,
565,
309,
261,
2603,
1276,
7808,
682,
3381,
13,
288,
1377,
368,
21227,
25,
30,
2672,
936,
1377,
4498,
3931,
2360,
273,
14015,
4334,
682,
3381,
13,
2603,
2934,
26321,
14495,
7675,
9838,
5621,
1377,
1323,
261,
14496,
2360,
18,
5332,
2134,
10756,
288,
3639,
7808,
3381,
3931,
273,
261,
4334,
3381,
13,
14496,
2360,
18,
4285,
5621,
3639,
514,
612,
653,
273,
3931,
18,
588,
653,
5621,
3639,
775,
288,
1850,
10669,
4334,
4231,
273,
1104,
6813,
4334,
12,
350,
653,
1769,
1850,
511,
5909,
4334,
328,
350,
273,
394,
511,
5909,
4334,
12,
6610,
16,
612,
653,
16,
3931,
18,
588,
426,
458,
367,
10663,
1850,
852,
18,
458,
12,
6610,
16,
328,
350,
1769,
3639,
289,
3639,
1044,
261,
18695,
4334,
21914,
431,
13,
288,
1850,
613,
18,
8551,
2932,
668,
7749,
310,
4215,
300,
9077,
1479,
30,
315,
397,
612,
653,
1769,
3639,
289,
1377,
289,
565,
289,
565,
469,
288,
1377,
4498,
1400,
273,
14015,
8658,
13,
2603,
2934,
4099,
694,
7675,
9838,
5621,
1377,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
3639,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
2165,
18,
4285,
5621,
3639,
10669,
4334,
1647,
12478,
273,
261,
6813,
4334,
13,
4099,
18,
588,
653,
5621,
3639,
511,
5909,
4334,
1647,
48,
350,
273,
261,
48,
5909,
4334,
13,
4099,
18,
24805,
5621,
3639,
514,
612,
653,
273,
1647,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
4317,
11014,
12,
921,
1081,
13,
288,
565,
4317,
852,
273,
394,
4317,
5621,
565,
309,
261,
2603,
1276,
7808,
682,
3381,
13,
288,
1377,
368,
21227,
25,
30,
2672,
936,
1377,
4498,
3931,
2360,
273,
14015,
4334,
682,
3381,
13,
2603,
2934,
26321,
14495,
7675,
9838,
5621,
1377,
1323,
261,
14496,
2360,
18,
5332,
2134,
10756,
288,
3639,
7808,
3381,
3931,
273,
261,
4334,
3381,
13,
14496,
2360,
18,
4285,
5621,
3639,
514,
612,
653,
273,
3931,
18,
588,
653,
5621,
3639,
775,
288,
1850,
10669,
4334,
4231,
273,
1104,
6813,
4334,
12,
350,
653,
1769,
1850,
511,
5909,
4334,
328,
350,
273,
394,
511,
5909,
4334,
12,
6610,
16,
612,
653,
16,
3931,
18,
588,
2
] |
|
StringField bodyLength = extractField(dd);
|
StringField bodyLength = extractField(dd, header);
|
private void parseHeader(DataDictionary dd) throws InvalidMessage { boolean invalidHeaderFieldOrder = false; StringField beginString = extractField(dd); if (beginString == null || beginString.getField() != BeginString.FIELD) { invalidHeaderFieldOrder = true; } if (beginString != null) { header.setField(beginString); } StringField bodyLength = extractField(dd); if (bodyLength == null || bodyLength.getField() != BodyLength.FIELD) { invalidHeaderFieldOrder = true; } if (bodyLength != null) { header.setField(bodyLength); } StringField msgType = extractField(dd); if (msgType == null || msgType.getField() != MsgType.FIELD) { invalidHeaderFieldOrder = true; } if (msgType != null) { header.setField(msgType); } if (doValidation && invalidHeaderFieldOrder) { throw new InvalidMessage("Header fields out of order"); } StringField field = extractField(dd); while (field != null && isHeaderField(field, dd)) { header.setField(field); header.setField(field); field = extractField(dd); } pushBack(field); }
|
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/f32abf94bf719c43213b4e48229208c2a5e6a5af/Message.java/clean/core/src/main/java/quickfix/Message.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1864,
12,
751,
10905,
6957,
13,
1216,
1962,
1079,
288,
3639,
1250,
2057,
1864,
974,
2448,
273,
629,
31,
3639,
30916,
2376,
780,
273,
2608,
974,
12,
449,
1769,
3639,
309,
261,
10086,
780,
422,
446,
747,
2376,
780,
18,
588,
974,
1435,
480,
14323,
780,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2448,
273,
638,
31,
3639,
289,
3639,
309,
261,
10086,
780,
480,
446,
13,
288,
5411,
1446,
18,
542,
974,
12,
10086,
780,
1769,
3639,
289,
3639,
30916,
1417,
1782,
273,
2608,
974,
12,
449,
16,
1446,
1769,
3639,
309,
261,
3432,
1782,
422,
446,
747,
1417,
1782,
18,
588,
974,
1435,
480,
5652,
1782,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2448,
273,
638,
31,
3639,
289,
540,
309,
261,
3432,
1782,
480,
446,
13,
288,
5411,
1446,
18,
542,
974,
12,
3432,
1782,
1769,
3639,
289,
3639,
30916,
1234,
559,
273,
2608,
974,
12,
449,
1769,
3639,
309,
261,
3576,
559,
422,
446,
747,
1234,
559,
18,
588,
974,
1435,
480,
8671,
559,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2448,
273,
638,
31,
3639,
289,
3639,
309,
261,
3576,
559,
480,
446,
13,
288,
5411,
1446,
18,
542,
974,
12,
3576,
559,
1769,
3639,
289,
3639,
309,
261,
2896,
4354,
597,
2057,
1864,
974,
2448,
13,
288,
5411,
604,
394,
1962,
1079,
2932,
1864,
1466,
596,
434,
1353,
8863,
3639,
289,
3639,
30916,
652,
273,
2608,
974,
12,
449,
1769,
3639,
1323,
261,
1518,
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,
1109,
1864,
12,
751,
10905,
6957,
13,
1216,
1962,
1079,
288,
3639,
1250,
2057,
1864,
974,
2448,
273,
629,
31,
3639,
30916,
2376,
780,
273,
2608,
974,
12,
449,
1769,
3639,
309,
261,
10086,
780,
422,
446,
747,
2376,
780,
18,
588,
974,
1435,
480,
14323,
780,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2448,
273,
638,
31,
3639,
289,
3639,
309,
261,
10086,
780,
480,
446,
13,
288,
5411,
1446,
18,
542,
974,
12,
10086,
780,
1769,
3639,
289,
3639,
30916,
1417,
1782,
273,
2608,
974,
12,
449,
16,
1446,
1769,
3639,
309,
261,
3432,
1782,
422,
446,
747,
1417,
1782,
18,
588,
974,
1435,
480,
5652,
1782,
18,
6776,
13,
288,
5411,
2057,
2
] |
parentModule.setConstant(name, newModule);
|
((RubyModule)parentCRef.getValue()).setConstant(name, newModule);
|
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { RubyModule newModule = RubyModule.newModule(this, name, parentModule); parentModule.setConstant(name, newModule); return newModule; }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Ruby.java/clean/src/org/jruby/Ruby.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4426,
3120,
14655,
12,
780,
508,
16,
19817,
3120,
982,
3120,
13,
288,
3639,
19817,
3120,
394,
3120,
273,
19817,
3120,
18,
2704,
3120,
12,
2211,
16,
508,
16,
982,
3120,
1769,
3639,
14015,
54,
10340,
3120,
13,
2938,
39,
1957,
18,
24805,
1435,
2934,
542,
6902,
12,
529,
16,
394,
3120,
1769,
7734,
327,
394,
3120,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4426,
3120,
14655,
12,
780,
508,
16,
19817,
3120,
982,
3120,
13,
288,
3639,
19817,
3120,
394,
3120,
273,
19817,
3120,
18,
2704,
3120,
12,
2211,
16,
508,
16,
982,
3120,
1769,
3639,
14015,
54,
10340,
3120,
13,
2938,
39,
1957,
18,
24805,
1435,
2934,
542,
6902,
12,
529,
16,
394,
3120,
1769,
7734,
327,
394,
3120,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.