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 |
|---|---|---|---|---|---|---|
ruby.getInterpreter().setDynamicVars(assignInternal( ruby.getInterpreter().getDynamicVars(), id, value, true));
|
ruby.setDynamicVars(assignInternal(ruby.getDynamicVars(), id, value, true));
|
public static void assignCurrent(Ruby ruby, RubyId id, RubyObject value) { ruby.getInterpreter().setDynamicVars(assignInternal( ruby.getInterpreter().getDynamicVars(), id, value, true)); }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyVarmap.java/clean/org/jruby/interpreter/RubyVarmap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2683,
3935,
12,
54,
10340,
22155,
16,
19817,
548,
612,
16,
19817,
921,
460,
13,
288,
3639,
22155,
18,
588,
30010,
7675,
542,
9791,
5555,
12,
6145,
3061,
12,
7734,
22155,
18,
588,
30010,
7675,
588,
9791,
5555,
9334,
612,
16,
460,
16,
638,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2683,
3935,
12,
54,
10340,
22155,
16,
19817,
548,
612,
16,
19817,
921,
460,
13,
288,
3639,
22155,
18,
588,
30010,
7675,
542,
9791,
5555,
12,
6145,
3061,
12,
7734,
22155,
18,
588,
30010,
7675,
588,
9791,
5555,
9334,
612,
16,
460,
16,
638,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.PartySubID getPartySubID() throws FieldNotFound { org.quickfix.field.PartySubID value = new org.quickfix.field.PartySubID();
|
public quickfix.field.PartySubID getPartySubID() throws FieldNotFound { quickfix.field.PartySubID value = new quickfix.field.PartySubID();
|
public org.quickfix.field.PartySubID getPartySubID() throws FieldNotFound { org.quickfix.field.PartySubID value = new org.quickfix.field.PartySubID(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/buggy/src/java/src/quickfix/fix43/NewOrderSingle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
1689,
7325,
1676,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
1689,
7325,
1676,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return runEventLoop; }
|
return runEventLoop; }
|
public boolean isRunning() { return runEventLoop; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9337b828e86179850647141c34d497be28275ed2/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
19858,
1435,
288,
3639,
327,
1086,
1133,
6452,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
19858,
1435,
288,
3639,
327,
1086,
1133,
6452,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_3R_157()) return true;
|
if (jj_3R_52()) return true;
|
final private boolean jj_3R_286() { if (jj_3R_157()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
5292,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9401,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
5292,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9401,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case opc_aconst_null: case opc_iconst_m1: case opc_iconst_0: case opc_iconst_1: case opc_iconst_2: case opc_iconst_3: case opc_iconst_4: case opc_iconst_5: case opc_lconst_0: case opc_lconst_1: case opc_fconst_0: case opc_fconst_1: case opc_fconst_2: case opc_dconst_0: case opc_dconst_1: case opc_bipush: case opc_sipush:
|
public static StructuredBlock readOpcode(Instruction instr, CodeAnalyzer ca) throws ClassFormatError { int opcode = instr.opcode; switch (opcode) { case opc_nop: return createBlock(ca, instr, new EmptyBlock (new Jump(FlowBlock.NEXT_BY_ADDR))); case opc_aconst_null: case opc_iconst_m1: case opc_iconst_0: case opc_iconst_1: case opc_iconst_2: case opc_iconst_3: case opc_iconst_4: case opc_iconst_5: case opc_lconst_0: case opc_lconst_1: case opc_fconst_0: case opc_fconst_1: case opc_fconst_2: case opc_dconst_0: case opc_dconst_1: case opc_bipush: case opc_sipush: case opc_ldc: case opc_ldc_w: case opc_ldc2_w: return createNormal (ca, instr, new ConstOperator(instr.objData)); case opc_iload: case opc_lload: case opc_fload: case opc_dload: case opc_aload: return createNormal (ca, instr, new LocalLoadOperator (types[0][opcode-opc_iload], ca.getLocalInfo(instr.addr, instr.localSlot))); case opc_iaload: case opc_laload: case opc_faload: case opc_daload: case opc_aaload: case opc_baload: case opc_caload: case opc_saload: return createNormal (ca, instr, new ArrayLoadOperator (types[1][opcode - opc_iaload])); case opc_istore: case opc_lstore: case opc_fstore: case opc_dstore: case opc_astore: return createNormal (ca, instr, new LocalStoreOperator (types[0][opcode-opc_istore], ca.getLocalInfo(instr.addr+2, instr.localSlot), Operator.ASSIGN_OP)); case opc_iastore: case opc_lastore: case opc_fastore: case opc_dastore: case opc_aastore: case opc_bastore: case opc_castore: case opc_sastore: return createNormal (ca, instr, new ArrayStoreOperator (types[1][opcode - opc_iastore])); case opc_pop: case opc_pop2: return createSpecial (ca, instr, SpecialBlock.POP, opcode - opc_pop + 1, 0); case opc_dup: case opc_dup_x1: case opc_dup_x2: case opc_dup2: case opc_dup2_x1: case opc_dup2_x2: return createSpecial (ca, instr, SpecialBlock.DUP, (opcode - opc_dup)/3+1, (opcode - opc_dup)%3); case opc_swap: return createSpecial(ca, instr, SpecialBlock.SWAP, 1, 0); case opc_iadd: case opc_ladd: case opc_fadd: case opc_dadd: case opc_isub: case opc_lsub: case opc_fsub: case opc_dsub: case opc_imul: case opc_lmul: case opc_fmul: case opc_dmul: case opc_idiv: case opc_ldiv: case opc_fdiv: case opc_ddiv: case opc_irem: case opc_lrem: case opc_frem: case opc_drem: return createNormal (ca, instr, new BinaryOperator (types[3][(opcode - opc_iadd)%4], (opcode - opc_iadd)/4+Operator.ADD_OP)); case opc_ineg: case opc_lneg: case opc_fneg: case opc_dneg: return createNormal (ca, instr, new UnaryOperator (types[3][opcode - opc_ineg], Operator.NEG_OP)); case opc_ishl: case opc_lshl: case opc_ishr: case opc_lshr: case opc_iushr: case opc_lushr: return createNormal (ca, instr, new ShiftOperator (types[3][(opcode - opc_ishl)%2], (opcode - opc_ishl)/2 + Operator.SHIFT_OP)); case opc_iand: case opc_land: case opc_ior : case opc_lor : case opc_ixor: case opc_lxor: return createNormal (ca, instr, new BinaryOperator (types[4][(opcode - opc_iand)%2], (opcode - opc_iand)/2 + Operator.AND_OP)); case opc_iinc: { int value = instr.intData; int operation = Operator.ADD_OP; if (value < 0) { value = -value; operation = Operator.NEG_OP; } LocalInfo li = ca.getLocalInfo(instr.addr, instr.localSlot); li.setType(Type.tUInt); return createNormal (ca, instr, new IIncOperator (li, Integer.toString(value), operation + Operator.OPASSIGN_OP)); } case opc_i2l: case opc_i2f: case opc_i2d: case opc_l2i: case opc_l2f: case opc_l2d: case opc_f2i: case opc_f2l: case opc_f2d: case opc_d2i: case opc_d2l: case opc_d2f: { int from = (opcode-opc_i2l)/3; int to = (opcode-opc_i2l)%3; if (to >= from) to++; return createNormal (ca, instr, new ConvertOperator(types[3][from], types[3][to])); } case opc_i2b: case opc_i2c: case opc_i2s: return createNormal (ca, instr, new ConvertOperator (types[3][0], types[2][opcode-opc_i2b])); case opc_lcmp: case opc_fcmpl: case opc_fcmpg: case opc_dcmpl: case opc_dcmpg: return createNormal (ca, instr, new CompareToIntOperator (types[3][(opcode-(opc_lcmp-3))/2], (opcode-(opc_lcmp-3))%2)); case opc_ifeq: case opc_ifne: return createIfGoto (ca, instr, new CompareUnaryOperator (Type.tBoolUInt, opcode - (opc_ifeq-Operator.COMPARE_OP))); case opc_iflt: case opc_ifge: case opc_ifgt: case opc_ifle: return createIfGoto (ca, instr, new CompareUnaryOperator (Type.tUInt, opcode - (opc_ifeq-Operator.COMPARE_OP))); case opc_if_icmpeq: case opc_if_icmpne: return createIfGoto (ca, instr, new CompareBinaryOperator (Type.tBoolInt, opcode - (opc_if_icmpeq-Operator.COMPARE_OP))); case opc_if_icmplt: case opc_if_icmpge: case opc_if_icmpgt: case opc_if_icmple: return createIfGoto (ca, instr, new CompareBinaryOperator (Type.tUInt, opcode - (opc_if_icmpeq-Operator.COMPARE_OP))); case opc_if_acmpeq: case opc_if_acmpne: return createIfGoto (ca, instr, new CompareBinaryOperator (Type.tUObject, opcode - (opc_if_acmpeq-Operator.COMPARE_OP))); case opc_goto: return createGoto(ca, instr); case opc_jsr: return createJsr(ca, instr); case opc_ret: return createRet (ca, instr, ca.getLocalInfo(instr.addr, instr.localSlot)); case opc_tableswitch: { int low = instr.intData; int[] cases = new int[instr.succs.length-1]; FlowBlock[] dests = new FlowBlock[instr.succs.length]; for (int i=0; i < cases.length; i++) { cases[i] = i+low; dests[i] = (FlowBlock) instr.succs[i+1].tmpInfo; } dests[cases.length] = (FlowBlock) instr.succs[0].tmpInfo; return createSwitch(ca, instr, cases, dests); } case opc_lookupswitch: { int[] cases = (int[]) instr.objData; FlowBlock[] dests = new FlowBlock[instr.succs.length]; for (int i=0; i < dests.length; i++) dests[i] = (FlowBlock) instr.succs[i].tmpInfo; dests[cases.length] = (FlowBlock) instr.succs[0].tmpInfo; return createSwitch(ca, instr, cases, dests); } case opc_ireturn: case opc_lreturn: case opc_freturn: case opc_dreturn: case opc_areturn: { Type retType = Type.tSubType(ca.getMethod().getReturnType()); return createBlock (ca, instr, new ReturnBlock(new NopOperator(retType))); } case opc_return: return createBlock (ca, instr, new EmptyBlock(new Jump(FlowBlock.END_OF_METHOD))); case opc_getstatic: case opc_getfield: { String[] ref = (String[]) instr.objData; return createNormal (ca, instr, new GetFieldOperator (ca, opcode == opc_getstatic, Type.tClass(ref[0]), Type.tType(ref[2]), ref[1])); } case opc_putstatic: case opc_putfield: { String[] ref = (String[]) instr.objData; return createNormal (ca, instr, new PutFieldOperator (ca, opcode == opc_putstatic, Type.tClass(ref[0]), Type.tType(ref[2]), ref[1])); } case opc_invokevirtual: case opc_invokespecial: case opc_invokestatic : case opc_invokeinterface: { String[] ref = (String[]) instr.objData; StructuredBlock block = createNormal (ca, instr, new InvokeOperator (ca, opcode == opc_invokespecial, Type.tClass(ref[0]), new MethodType(opcode == opc_invokestatic, ref[2]), ref[1])); return block; } case opc_new: { Type type = Type.tClassOrArray((String) instr.objData); type.useType(); return createNormal(ca, instr, new NewOperator(type)); } case opc_newarray: { Type type; switch (instr.intData) { case 4: type = Type.tBoolean; break; case 5: type = Type.tChar ; break; case 6: type = Type.tFloat ; break; case 7: type = Type.tDouble ; break; case 8: type = Type.tByte ; break; case 9: type = Type.tShort ; break; case 10: type = Type.tInt ; break; case 11: type = Type.tLong ; break; default: throw new ClassFormatError("Invalid newarray operand"); } type.useType(); return createNormal (ca, instr, new NewArrayOperator(Type.tArray(type), 1)); } case opc_anewarray: { Type type = Type.tClassOrArray((String) instr.objData); type.useType(); return createNormal (ca, instr, new NewArrayOperator(Type.tArray(type), 1)); } case opc_arraylength: return createNormal (ca, instr, new ArrayLengthOperator()); case opc_athrow: return createBlock (ca, instr, new ThrowBlock(new NopOperator(Type.tUObject))); case opc_checkcast: { Type type = Type.tClassOrArray((String) instr.objData); type.useType(); return createNormal (ca, instr, new CheckCastOperator(type)); } case opc_instanceof: { Type type = Type.tClassOrArray((String) instr.objData); type.useType(); return createNormal (ca, instr, new InstanceOfOperator(type)); } case opc_monitorenter: return createNormal(ca, instr, new MonitorEnterOperator()); case opc_monitorexit: return createNormal(ca, instr, new MonitorExitOperator()); case opc_multianewarray: { Type type = Type.tClassOrArray((String) instr.objData); type.useType(); int dimension = instr.intData; return createNormal(ca, instr, new NewArrayOperator(type, dimension)); } case opc_ifnull: case opc_ifnonnull: return createIfGoto (ca, instr, new CompareUnaryOperator (Type.tUObject, opcode - (opc_ifnull-Operator.COMPARE_OP))); default: throw new jode.AssertError("Invalid opcode "+opcode); } }
|
5628 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5628/b3ffc0e9ea94ba414808dd9f1cb81f4a34a989fe/Opcodes.java/buggy/jode/jode/decompiler/Opcodes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7362,
2862,
1768,
855,
22808,
12,
11983,
16170,
16,
9944,
377,
3356,
12803,
3474,
13,
540,
1216,
1659,
29874,
565,
288,
3639,
509,
11396,
273,
16170,
18,
556,
710,
31,
3639,
1620,
261,
556,
710,
13,
288,
3639,
648,
29277,
67,
82,
556,
30,
5411,
327,
752,
1768,
12,
5353,
16,
16170,
16,
394,
8953,
1768,
9506,
4202,
261,
2704,
804,
2801,
12,
5249,
1768,
18,
25539,
67,
6486,
67,
14142,
3719,
1769,
3639,
648,
29277,
67,
69,
10248,
67,
2011,
30,
3639,
648,
29277,
67,
3950,
334,
67,
81,
21,
30,
540,
648,
29277,
67,
3950,
334,
67,
20,
30,
648,
29277,
67,
3950,
334,
67,
21,
30,
648,
29277,
67,
3950,
334,
67,
22,
30,
3639,
648,
29277,
67,
3950,
334,
67,
23,
30,
648,
29277,
67,
3950,
334,
67,
24,
30,
648,
29277,
67,
3950,
334,
67,
25,
30,
3639,
648,
29277,
67,
80,
10248,
67,
20,
30,
648,
29277,
67,
80,
10248,
67,
21,
30,
3639,
648,
29277,
67,
74,
10248,
67,
20,
30,
648,
29277,
67,
74,
10248,
67,
21,
30,
648,
29277,
67,
74,
10248,
67,
22,
30,
3639,
648,
29277,
67,
72,
10248,
67,
20,
30,
648,
29277,
67,
72,
10248,
67,
21,
30,
3639,
648,
29277,
67,
70,
625,
1218,
30,
3639,
648,
29277,
67,
28477,
1218,
30,
3639,
648,
29277,
67,
1236,
71,
30,
3639,
648,
29277,
67,
1236,
71,
67,
91,
30,
3639,
648,
29277,
67,
1236,
71,
22,
67,
91,
30,
5411,
327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7362,
2862,
1768,
855,
22808,
12,
11983,
16170,
16,
9944,
377,
3356,
12803,
3474,
13,
540,
1216,
1659,
29874,
565,
288,
3639,
509,
11396,
273,
16170,
18,
556,
710,
31,
3639,
1620,
261,
556,
710,
13,
288,
3639,
648,
29277,
67,
82,
556,
30,
5411,
327,
752,
1768,
12,
5353,
16,
16170,
16,
394,
8953,
1768,
9506,
4202,
261,
2704,
804,
2801,
12,
5249,
1768,
18,
25539,
67,
6486,
67,
14142,
3719,
1769,
3639,
648,
29277,
67,
69,
10248,
67,
2011,
30,
3639,
648,
29277,
67,
3950,
334,
67,
81,
21,
30,
540,
648,
29277,
67,
3950,
334,
67,
20,
30,
648,
29277,
67,
3950,
334,
67,
21,
30,
648,
29277,
67,
3950,
334,
67,
22,
2
] |
|
Search search = null; boolean requiresUpdate = false; String key = request.getQueryString();
|
public void nutchPerform(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, IOException { Search search = null; boolean requiresUpdate = false; // key used for caching String key = request.getQueryString(); ServiceLocator locator = getServiceLocator(request); if (key != null) { try { search = CacheManager.getInstance(locator.getConfiguration()) .getSearch(key); request.setAttribute(Search.REQ_ATTR_SEARCH, search); LOG.info("Using cached"); } catch (NeedsRefreshException e) { requiresUpdate = true; LOG.info("Cache update required"); } } if (key!=null && (search == null || requiresUpdate)) { LOG.info("Cache miss"); super.nutchPerform(tileContext, request, response, servletContext); search = (Search) locator.getSearch(); CacheManager.getInstance(locator.getConfiguration()).putSearch(key, search); } }
|
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/53d32f722db195b06d82a6398c48bbc15bcff2d5/CachingSearchController.java/clean/contrib/web2/plugins/web-caching-oscache/src/java/org/apache/nutch/webapp/controller/CachingSearchController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
290,
322,
343,
4990,
12,
1841,
1042,
4769,
1042,
16,
1377,
9984,
590,
16,
12446,
766,
16,
1377,
22717,
20474,
13,
1216,
16517,
16,
1860,
288,
565,
5167,
1623,
273,
446,
31,
565,
1250,
4991,
1891,
273,
629,
31,
565,
368,
498,
1399,
364,
11393,
565,
514,
498,
273,
590,
18,
588,
15276,
5621,
565,
21443,
8871,
273,
17457,
12,
2293,
1769,
565,
309,
261,
856,
480,
446,
13,
288,
1377,
775,
288,
3639,
1623,
273,
4379,
1318,
18,
588,
1442,
12,
20048,
18,
588,
1750,
10756,
5411,
263,
588,
2979,
12,
856,
1769,
3639,
590,
18,
542,
1499,
12,
2979,
18,
20373,
67,
12043,
67,
17251,
16,
1623,
1769,
3639,
2018,
18,
1376,
2932,
7736,
3472,
8863,
1377,
289,
1044,
261,
26419,
8323,
503,
425,
13,
288,
3639,
4991,
1891,
273,
638,
31,
3639,
2018,
18,
1376,
2932,
1649,
1089,
1931,
8863,
1377,
289,
565,
289,
565,
309,
261,
856,
5,
33,
2011,
597,
261,
3072,
422,
446,
747,
4991,
1891,
3719,
288,
1377,
2018,
18,
1376,
2932,
1649,
12543,
8863,
1377,
2240,
18,
82,
322,
343,
4990,
12,
15368,
1042,
16,
590,
16,
766,
16,
20474,
1769,
1377,
1623,
273,
261,
2979,
13,
8871,
18,
588,
2979,
5621,
1377,
4379,
1318,
18,
588,
1442,
12,
20048,
18,
588,
1750,
1435,
2934,
458,
2979,
12,
856,
16,
1850,
1623,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
290,
322,
343,
4990,
12,
1841,
1042,
4769,
1042,
16,
1377,
9984,
590,
16,
12446,
766,
16,
1377,
22717,
20474,
13,
1216,
16517,
16,
1860,
288,
565,
5167,
1623,
273,
446,
31,
565,
1250,
4991,
1891,
273,
629,
31,
565,
368,
498,
1399,
364,
11393,
565,
514,
498,
273,
590,
18,
588,
15276,
5621,
565,
21443,
8871,
273,
17457,
12,
2293,
1769,
565,
309,
261,
856,
480,
446,
13,
288,
1377,
775,
288,
3639,
1623,
273,
4379,
1318,
18,
588,
1442,
12,
20048,
18,
588,
1750,
10756,
5411,
263,
588,
2979,
12,
856,
1769,
3639,
590,
18,
542,
1499,
12,
2979,
18,
20373,
67,
12043,
67,
17251,
16,
1623,
1769,
3639,
2018,
18,
1376,
2932,
7736,
2
] |
|
dme.get_dbt().set_size(buf_size);
|
dme.getDbt().setSize(buf_size);
|
public void run() throws DbException, FileNotFoundException { // Remove the previous database. new File(FileName).delete(); // Create the database object. // There is no environment for this simple example. Db table = new Db(null, 0); table.set_error_stream(System.err); table.set_errpfx("TestDbtFlags"); table.open(null, FileName, null, Db.DB_BTREE, Db.DB_CREATE, 0644); // // Insert records into the database, where the key is the user // input and the data is the user input in reverse order. // for (;;) { //System.err.println("input line " + cur_input_line); String line = get_input_line(); if (line == null) break; String reversed = (new StringBuffer(line)).reverse().toString(); // See definition of StringDbt below // StringDbt key = new StringDbt(line, flag_value); StringDbt data = new StringDbt(reversed, flag_value); try { int err; if ((err = table.put(null, key, data, Db.DB_NOOVERWRITE)) == Db.DB_KEYEXIST) { System.out.println("Key " + line + " already exists."); } key.check_flags(); data.check_flags(); } catch (DbException dbe) { System.out.println(dbe.toString()); } } // Acquire an iterator for the table. Dbc iterator; iterator = table.cursor(null, 0); // Walk through the table, printing the key/data pairs. // See class StringDbt defined below. // StringDbt key = new StringDbt(flag_value, buf_size); StringDbt data = new StringDbt(flag_value, buf_size); int iteration_count = 0; int dbreturn = 0; while (dbreturn == 0) { //System.err.println("iteration " + iteration_count); try { if ((dbreturn = iterator.get(key, data, Db.DB_NEXT)) == 0) { System.out.println(key.get_string() + " : " + data.get_string()); } } catch (DbMemoryException dme) { /* In a real application, we'd normally increase * the size of the buffer. Since we've created * this error condition for testing, we'll just report it. * We still need to skip over this record, and we don't * want to mess with our original Dbt's, since we want * to see more errors. So create some temporary * mallocing Dbts to get this record. */ System.err.println("exception, iteration " + iteration_count + ": " + dme); System.err.println(" key size: " + key.get_size() + " ulen: " + key.get_ulen()); System.err.println(" data size: " + key.get_size() + " ulen: " + key.get_ulen()); dme.get_dbt().set_size(buf_size); StringDbt tempkey = new StringDbt(Db.DB_DBT_MALLOC, -1); StringDbt tempdata = new StringDbt(Db.DB_DBT_MALLOC, -1); if ((dbreturn = iterator.get(tempkey, tempdata, Db.DB_NEXT)) != 0) { System.err.println("cannot get expected next record"); return; } System.out.println(tempkey.get_string() + " : " + tempdata.get_string()); } iteration_count++; } key.check_flags(); data.check_flags(); iterator.close(); table.close(0); }
|
2921 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2921/8960e3895f7af91126465368dff8fbb36ab4e853/TestDbtFlags.java/clean/db/test/scr016/TestDbtFlags.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
540,
1216,
8408,
503,
16,
13707,
565,
288,
3639,
368,
3581,
326,
2416,
2063,
18,
3639,
394,
1387,
12,
4771,
2934,
3733,
5621,
3639,
368,
1788,
326,
2063,
733,
18,
3639,
368,
6149,
353,
1158,
3330,
364,
333,
4143,
3454,
18,
3639,
8408,
1014,
273,
394,
8408,
12,
2011,
16,
374,
1769,
3639,
1014,
18,
542,
67,
1636,
67,
3256,
12,
3163,
18,
370,
1769,
3639,
1014,
18,
542,
67,
370,
14241,
92,
2932,
4709,
4331,
88,
5094,
8863,
3639,
1014,
18,
3190,
12,
2011,
16,
25075,
16,
446,
16,
8408,
18,
2290,
67,
38,
26557,
16,
8408,
18,
2290,
67,
9344,
16,
29611,
1769,
3639,
368,
3639,
368,
8040,
3853,
1368,
326,
2063,
16,
1625,
326,
498,
353,
326,
729,
3639,
368,
810,
471,
326,
501,
353,
326,
729,
810,
316,
4219,
1353,
18,
3639,
368,
3639,
364,
261,
25708,
13,
288,
5411,
368,
3163,
18,
370,
18,
8222,
2932,
2630,
980,
315,
397,
662,
67,
2630,
67,
1369,
1769,
5411,
514,
980,
273,
336,
67,
2630,
67,
1369,
5621,
5411,
309,
261,
1369,
422,
446,
13,
7734,
898,
31,
5411,
514,
9553,
273,
261,
2704,
6674,
12,
1369,
13,
2934,
9845,
7675,
10492,
5621,
5411,
368,
2164,
2379,
434,
514,
4331,
88,
5712,
5411,
368,
5411,
514,
4331,
88,
498,
273,
394,
514,
4331,
88,
12,
1369,
16,
2982,
67,
1132,
1769,
5411,
514,
4331,
88,
501,
273,
394,
514,
4331,
88,
12,
266,
7548,
16,
2982,
67,
1132,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
540,
1216,
8408,
503,
16,
13707,
565,
288,
3639,
368,
3581,
326,
2416,
2063,
18,
3639,
394,
1387,
12,
4771,
2934,
3733,
5621,
3639,
368,
1788,
326,
2063,
733,
18,
3639,
368,
6149,
353,
1158,
3330,
364,
333,
4143,
3454,
18,
3639,
8408,
1014,
273,
394,
8408,
12,
2011,
16,
374,
1769,
3639,
1014,
18,
542,
67,
1636,
67,
3256,
12,
3163,
18,
370,
1769,
3639,
1014,
18,
542,
67,
370,
14241,
92,
2932,
4709,
4331,
88,
5094,
8863,
3639,
1014,
18,
3190,
12,
2011,
16,
25075,
16,
446,
16,
8408,
18,
2290,
67,
38,
26557,
16,
8408,
18,
2290,
67,
9344,
16,
29611,
1769,
3639,
368,
3639,
368,
8040,
3853,
1368,
326,
2063,
2
] |
log.warn("Security Exception for file "
|
log.warn("Security Exception for file "
|
private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emulator.settingsDirectory", System.getProperty("emulator.settingsDirectory") + File.separator); checkDirs(); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); try { in = new FileInputStream(settingsFile); settings.load(in); } catch (FileNotFoundException fnfe) { try { again = new FileInputStream(settingsDirectory() + settingsFile); settings.load(again); } catch (FileNotFoundException fnfea) { log.info(" Information Message: " + fnfea.getMessage() + ". The file " + settingsFile + " will be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioea) { log.warn("IO Exception accessing File " + settingsFile + " for the following reason : " + ioea.getMessage()); } catch (SecurityException sea) { log.warn("Security Exception for file " + settingsFile + " This file can not be " + "accessed because : " + sea.getMessage()); } } catch (IOException ioe) { log.warn("IO Exception accessing File " + settingsFile + " for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { log.warn("Security Exception for file " + settingsFile + " This file can not be " + "accessed because : " + se.getMessage()); } } }
|
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/c3860402bf10d183fabd639892579fd2fe59a88e/GlobalConfigure.java/buggy/src/org/tn5250j/GlobalConfigure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1262,
2628,
1435,
288,
4202,
11907,
316,
273,
446,
31,
4202,
11907,
3382,
273,
446,
31,
4202,
1947,
273,
394,
6183,
5621,
4202,
368,
2674,
732,
903,
866,
364,
279,
2619,
1272,
353,
2112,
1122,
18,
4202,
309,
261,
3163,
18,
588,
2297,
7675,
12298,
653,
2932,
351,
11775,
18,
4272,
2853,
6,
3719,
288,
6647,
1947,
18,
542,
1396,
2932,
351,
11775,
18,
4272,
2853,
3113,
6647,
2332,
18,
588,
1396,
2932,
351,
11775,
18,
4272,
2853,
7923,
397,
6647,
1387,
18,
11287,
1769,
6647,
866,
9872,
5621,
4202,
289,
4202,
469,
288,
6647,
1947,
18,
542,
1396,
2932,
351,
11775,
18,
4272,
2853,
3113,
6647,
2332,
18,
588,
1396,
2932,
1355,
18,
8712,
7923,
397,
1387,
18,
11287,
397,
6647,
3552,
5088,
25,
26520,
78,
6,
397,
1387,
18,
11287,
1769,
6647,
775,
288,
9079,
316,
273,
394,
11907,
12,
4272,
812,
1769,
9079,
1947,
18,
945,
12,
267,
1769,
6647,
289,
6647,
1044,
261,
812,
3990,
2295,
3030,
13,
288,
9079,
775,
288,
10402,
3382,
273,
394,
11907,
12,
4272,
2853,
1435,
397,
1947,
812,
1769,
10792,
1947,
18,
945,
12,
23095,
1769,
7734,
289,
9079,
1044,
261,
812,
3990,
2295,
3030,
69,
13,
288,
10402,
613,
18,
1376,
2932,
15353,
2350,
30,
315,
10792,
397,
2295,
3030,
69,
18,
24906,
1435,
397,
3552,
225,
1021,
585,
315,
397,
1947,
812,
10792,
397,
315,
903,
506,
2522,
364,
1122,
813,
999,
1199,
1769,
10402,
866,
12235,
5621,
10402,
1923,
2628,
5621,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1262,
2628,
1435,
288,
4202,
11907,
316,
273,
446,
31,
4202,
11907,
3382,
273,
446,
31,
4202,
1947,
273,
394,
6183,
5621,
4202,
368,
2674,
732,
903,
866,
364,
279,
2619,
1272,
353,
2112,
1122,
18,
4202,
309,
261,
3163,
18,
588,
2297,
7675,
12298,
653,
2932,
351,
11775,
18,
4272,
2853,
6,
3719,
288,
6647,
1947,
18,
542,
1396,
2932,
351,
11775,
18,
4272,
2853,
3113,
6647,
2332,
18,
588,
1396,
2932,
351,
11775,
18,
4272,
2853,
7923,
397,
6647,
1387,
18,
11287,
1769,
6647,
866,
9872,
5621,
4202,
289,
4202,
469,
288,
6647,
1947,
18,
542,
1396,
2932,
351,
11775,
18,
4272,
2853,
3113,
6647,
2332,
18,
588,
1396,
2932,
1355,
18,
8712,
7923,
2
] |
| SWT.BORDER);
|
| SWT.BORDER) { /* (non-Javadoc) * @see org.eclipse.ui.internal.progress.ProgressTreeViewer#updateColors(org.eclipse.swt.widgets.TreeItem, org.eclipse.ui.internal.progress.JobTreeElement) */ protected void updateColors(TreeItem treeItem, JobTreeElement element) { super.updateColors(treeItem, element); if (element == blockedElement) setNotRunningColor(treeItem); } };
|
void showJobDetails(Composite parent) { viewer = new ProgressTreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); viewer.setUseHashlookup(true); viewer.setSorter(new ViewerSorter() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) */ public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } }); IContentProvider provider = new ProgressTreeContentProvider(viewer); viewer.setContentProvider(provider); viewer.setInput(provider); viewer.setLabelProvider(new ProgressLabelProvider()); GridData data = new GridData(); data.horizontalSpan = 2; int heightHint = convertHeightInCharsToPixels(10); data.heightHint = heightHint; data.horizontalAlignment = GridData.FILL; viewer.getControl().setLayoutData(data); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e6af75d1024403d1ef1e4ec4c9024c6f7fac26a7/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2405,
2278,
3790,
12,
9400,
982,
13,
288,
202,
202,
25256,
273,
394,
10980,
2471,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
38,
7954,
1769,
202,
202,
25256,
18,
542,
3727,
2310,
8664,
12,
3767,
1769,
202,
202,
25256,
18,
542,
24952,
12,
2704,
4441,
264,
24952,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
24952,
7,
9877,
12,
3341,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
16,
2252,
18,
4936,
18,
921,
16,
2252,
18,
4936,
18,
921,
13,
9506,
1195,
1082,
202,
482,
509,
3400,
12,
18415,
1842,
18415,
16,
1033,
425,
21,
16,
1033,
425,
22,
13,
288,
9506,
202,
2463,
14015,
799,
10207,
13,
425,
21,
2934,
9877,
774,
12,
73,
22,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
45,
1350,
2249,
2893,
273,
394,
10980,
2471,
1350,
2249,
12,
25256,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
6778,
1769,
202,
202,
25256,
18,
542,
1210,
12,
6778,
1769,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
10980,
2224,
2249,
10663,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
5621,
202,
202,
892,
18,
18396,
6952,
273,
576,
31,
202,
202,
474,
2072,
7002,
273,
1765,
2686,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2405,
2278,
3790,
12,
9400,
982,
13,
288,
202,
202,
25256,
273,
394,
10980,
2471,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
38,
7954,
1769,
202,
202,
25256,
18,
542,
3727,
2310,
8664,
12,
3767,
1769,
202,
202,
25256,
18,
542,
24952,
12,
2704,
4441,
264,
24952,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
24952,
7,
9877,
12,
3341,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
16,
2252,
2
] |
System.out.println( "Search attempt using filter '" + filter + "' "
|
if (log.isDebugEnabled()) { log.debug( "Search attempt using filter '" + filter + "' "
|
public boolean doRun( String filter, String scope, String base, String limit ) throws Exception { System.out.println( "Search attempt using filter '" + filter + "' " + "with scope '" + scope + "' and a return limit of '" + limit + "'" ); FilterParser parser = new FilterParserImpl(); ExprNode root = null; try { root = parser.parse( filter ); } catch ( Exception e ) { e.printStackTrace(); JTextArea text = new JTextArea(); String msg = e.getMessage(); if ( msg.length() > 1024 ) { msg = msg.substring( 0, 1024 ) + "\n. . . truncated . . ."; } text.setText( msg ); text.setEnabled( false ); JOptionPane.showMessageDialog( null, text, "Syntax Error", JOptionPane.ERROR_MESSAGE ); return false; } SearchControls ctls = new SearchControls(); if ( scope == FilterDialog.BASE_SCOPE ) { ctls.setSearchScope( SearchControls.OBJECT_SCOPE ); } else if ( scope == FilterDialog.SINGLE_SCOPE ) { ctls.setSearchScope( SearchControls.ONELEVEL_SCOPE ); } else if ( scope == FilterDialog.SUBTREE_SCOPE ) { ctls.setSearchScope( SearchControls.SUBTREE_SCOPE ); } else { throw new RuntimeException( "Unexpected scope parameter: " + scope ); } int limitMax = Integer.MAX_VALUE; if ( ! limit.equals( FilterDialog.UNLIMITED ) ) { limitMax = Integer.parseInt( limit ); } Hashtable env = new Hashtable(); env.put( DerefAliasesEnum.JNDI_PROP, DerefAliasesEnum.DEREFALWAYS_NAME ); NamingEnumeration cursor = eng.search( new LdapName( base ), env, root, ctls ); String [] cols = new String [2]; cols[0] = "id"; cols[1] = "dn"; DefaultTableModel tableModel = new DefaultTableModel( cols, 0 ); Object [] row = new Object[2]; int count = 0; while ( cursor.hasMore() && count < limitMax ) { IndexRecord rec = ( IndexRecord ) cursor.next(); row[0] = rec.getEntryId(); row[1] = partition.getEntryDn( ( BigInteger ) row[0] ); tableModel.addRow( row ); count++; } SearchResultDialog results = new SearchResultDialog( this, false ); StringBuffer buf = new StringBuffer(); buf.append( "base: " ); buf.append( base ); buf.append( "\n" ); buf.append( "scope: " ); buf.append( scope ); buf.append( "\n" ); buf.append( "limit: " ); buf.append( limit ); buf.append( "\n" ); buf.append( "total: " ); buf.append( count ); buf.append( "\n" ); buf.append( "filter:\n" ); buf.append( filter ); buf.append( "\n" ); results.setFilter( buf.toString() ); TreeNode astRoot = new ASTNode( null, root ); TreeModel treeModel = new DefaultTreeModel( astRoot, true ); results.setTreeModel( treeModel ); results.setTableModel( tableModel ); centerOnScreen( results ); results.setVisible( true ); return true; }
|
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/826c73c9482eb435ca4a3fa0dc997f4d9b6ab88f/MainFrame.java/clean/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
741,
1997,
12,
514,
1034,
16,
514,
2146,
16,
514,
1026,
16,
3639,
514,
1800,
262,
3639,
1216,
1185,
565,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
613,
18,
4148,
12,
315,
2979,
4395,
1450,
1034,
2119,
397,
1034,
397,
2491,
315,
5411,
397,
315,
1918,
2146,
2119,
397,
2146,
397,
2491,
471,
279,
327,
1800,
434,
2119,
397,
1800,
5411,
397,
5862,
11272,
3639,
4008,
2678,
2082,
273,
394,
4008,
2678,
2828,
5621,
3639,
8074,
907,
1365,
273,
446,
31,
3639,
775,
540,
288,
5411,
1365,
273,
2082,
18,
2670,
12,
1034,
11272,
3639,
289,
540,
1044,
261,
1185,
425,
262,
540,
288,
5411,
425,
18,
1188,
6332,
5621,
5411,
804,
1528,
5484,
977,
273,
394,
804,
1528,
5484,
5621,
5411,
514,
1234,
273,
425,
18,
24906,
5621,
5411,
309,
261,
1234,
18,
2469,
1435,
405,
6250,
262,
5411,
288,
7734,
1234,
273,
1234,
18,
28023,
12,
374,
16,
6250,
262,
397,
1548,
82,
18,
263,
263,
15282,
263,
263,
263,
14432,
5411,
289,
5411,
977,
18,
542,
1528,
12,
1234,
11272,
5411,
977,
18,
542,
1526,
12,
629,
11272,
5411,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
446,
16,
977,
16,
315,
8070,
1068,
3113,
7734,
804,
1895,
8485,
18,
3589,
67,
8723,
11272,
5411,
327,
629,
31,
3639,
289,
3639,
5167,
16795,
5691,
3251,
273,
394,
5167,
16795,
5621,
3639,
309,
261,
2146,
422,
4008,
6353,
18,
8369,
67,
19444,
262,
3639,
288,
202,
3639,
5691,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
741,
1997,
12,
514,
1034,
16,
514,
2146,
16,
514,
1026,
16,
3639,
514,
1800,
262,
3639,
1216,
1185,
565,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
613,
18,
4148,
12,
315,
2979,
4395,
1450,
1034,
2119,
397,
1034,
397,
2491,
315,
5411,
397,
315,
1918,
2146,
2119,
397,
2146,
397,
2491,
471,
279,
327,
1800,
434,
2119,
397,
1800,
5411,
397,
5862,
11272,
3639,
4008,
2678,
2082,
273,
394,
4008,
2678,
2828,
5621,
3639,
8074,
907,
1365,
273,
446,
31,
3639,
775,
540,
288,
5411,
1365,
273,
2082,
18,
2670,
12,
1034,
11272,
3639,
289,
540,
1044,
261,
1185,
425,
262,
540,
288,
5411,
425,
18,
1188,
6332,
5621,
5411,
804,
2
] |
public static int jsFunction_lastIndexOf(Context cx, Scriptable thisObj, Object[] args, Function funObj) { if (args.length < 2) args = ScriptRuntime.padArguments(args, 2); String target = ScriptRuntime.toString(thisObj); String search = ScriptRuntime.toString(args[0]); double end = ScriptRuntime.toNumber(args[1]);
|
private static int jsFunction_lastIndexOf(String target, Object[] args) { String search = ScriptRuntime.toString(args, 0); double end = ScriptRuntime.toNumber(args, 1);
|
public static int jsFunction_lastIndexOf(Context cx, Scriptable thisObj, Object[] args, Function funObj) { if (args.length < 2) args = ScriptRuntime.padArguments(args, 2); String target = ScriptRuntime.toString(thisObj); String search = ScriptRuntime.toString(args[0]); double end = ScriptRuntime.toNumber(args[1]); if (end != end || end > target.length()) end = target.length(); else if (end < 0) end = 0; return target.lastIndexOf(search, (int)end); }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/b631b3e8574543a4d24a0048cc710f305deb8ff5/NativeString.java/buggy/org/mozilla/javascript/NativeString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
3828,
2083,
67,
2722,
31985,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2398,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
309,
261,
1968,
18,
2469,
411,
576,
13,
5411,
833,
273,
7739,
5576,
18,
6982,
4628,
12,
1968,
16,
576,
1769,
3639,
514,
1018,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
514,
1623,
273,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
3639,
1645,
679,
273,
7739,
5576,
18,
869,
1854,
12,
1968,
63,
21,
19226,
3639,
309,
261,
409,
480,
679,
747,
679,
405,
1018,
18,
2469,
10756,
5411,
679,
273,
1018,
18,
2469,
5621,
3639,
469,
309,
261,
409,
411,
374,
13,
5411,
679,
273,
374,
31,
3639,
327,
1018,
18,
2722,
31985,
12,
3072,
16,
261,
474,
13,
409,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
3828,
2083,
67,
2722,
31985,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2398,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
309,
261,
1968,
18,
2469,
411,
576,
13,
5411,
833,
273,
7739,
5576,
18,
6982,
4628,
12,
1968,
16,
576,
1769,
3639,
514,
1018,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
514,
1623,
273,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
3639,
1645,
679,
273,
7739,
5576,
18,
869,
1854,
12,
1968,
63,
21,
19226,
3639,
309,
261,
409,
480,
679,
747,
679,
405,
1018,
18,
2469,
10756,
5411,
679,
273,
1018,
18,
2469,
5621,
3639,
469,
309,
261,
409,
411,
374,
13,
5411,
679,
2
] |
public void resumeAll() throws SchedulerException;
|
void resumeAll() throws SchedulerException;
|
public void resumeAll() throws SchedulerException;
|
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/Scheduler.java/buggy/src/java/org/quartz/Scheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10774,
1595,
1435,
1216,
12620,
503,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10774,
1595,
1435,
1216,
12620,
503,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Object message, String title, int messageType)
|
Object message)
|
public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); }
|
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/a0a040160e6587688c585243fc9558a7195ab5d7/JOptionPane.java/buggy/libjava/javax/swing/JOptionPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2405,
1079,
6353,
12,
1841,
982,
1841,
16,
4766,
4202,
1033,
883,
16,
514,
2077,
16,
4766,
4202,
509,
22402,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
804,
1895,
8485,
12,
2150,
16,
22402,
1769,
565,
804,
6353,
6176,
273,
13618,
18,
2640,
6353,
12,
2938,
1841,
16,
2077,
1769,
565,
6176,
18,
2920,
5621,
565,
6176,
18,
4500,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2405,
1079,
6353,
12,
1841,
982,
1841,
16,
4766,
4202,
1033,
883,
16,
514,
2077,
16,
4766,
4202,
509,
22402,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
804,
1895,
8485,
12,
2150,
16,
22402,
1769,
565,
804,
6353,
6176,
273,
13618,
18,
2640,
6353,
12,
2938,
1841,
16,
2077,
1769,
565,
6176,
18,
2920,
5621,
565,
6176,
18,
4500,
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
] |
bc2ir.appendInstruction(Attempt.create(ATTEMPT, test, base, offset, oldVal,
|
bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal,
|
static boolean generateMagic(OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_MethodReference meth) throws OPT_MagicNotImplementedException { if (gc.method.hasNoInlinePragma()) gc.allocFrame = true; // HACK: Don't schedule any bbs containing unsafe magics. // TODO: move this to individual magics that are unsafe. // -- igor 08/13/1999 bc2ir.markBBUnsafeForScheduling(); VM_Atom methodName = meth.getName(); if (methodName == VM_MagicNames.getProcessorRegister) { OPT_RegisterOperand rop = gc.temps.makePROp(); bc2ir.markGuardlessNonNull(rop); bc2ir.push(rop); } else if (methodName == VM_MagicNames.setProcessorRegister) { OPT_Operand val = bc2ir.popRef(); if (val instanceof OPT_RegisterOperand) { bc2ir.appendInstruction(Move.create(REF_MOVE, gc.temps.makePROp(), val)); } else { String msg = " Unexpected operand VM_Magic.setProcessorRegister"; throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } else if (methodName == VM_MagicNames.addressArrayCreate) { OPT_Instruction s = bc2ir.generateAnewarray(meth.getType().getArrayElementType()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayLength) { OPT_Operand op1 = bc2ir.pop(); bc2ir.clearCurrentGuard(); if (bc2ir.do_NullCheck(op1)) return true; OPT_RegisterOperand t = gc.temps.makeTempInt(); OPT_Instruction s = GuardedUnary.create(ARRAYLENGTH, t, op1, bc2ir.getCurrentGuard()); bc2ir.push(t.copyD2U()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayGet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); OPT_RegisterOperand result; if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { result = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, result, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { result = gc.temps.makeTemp(VM_TypeReference.Int); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Load.create(INT_LOAD, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { result = gc.temps.makeTemp(elementType); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); OPT_Operator op = VM.BuildFor32Addr ? INT_LOAD : (VM.BuildFor64Addr ? LONG_LOAD : null); bc2ir.appendInstruction(Load.create(op, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } bc2ir.push(result.copyD2U()); } else if (methodName == VM_MagicNames.addressArraySet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand val = bc2ir.pop(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { bc2ir.appendInstruction(Store.create(BYTE_STORE, val, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Store.create(INT_STORE, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); OPT_Operator op = VM.BuildFor32Addr ? INT_STORE : (VM.BuildFor64Addr ? LONG_STORE : null); bc2ir.appendInstruction(Store.create(op, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else if (methodName == VM_MagicNames.getIntAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setIntAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(INT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getWordAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setWordAtOffset) { OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getLongAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempLong(); bc2ir.appendInstruction(Load.create(LONG_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setLongAtOffset) { OPT_Operand val = bc2ir.popLong(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(LONG_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getDoubleAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Load.create(DOUBLE_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setDoubleAtOffset) { OPT_Operand val = bc2ir.popDouble(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(DOUBLE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getObjectAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getObjectArrayAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setObjectAtOffset) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 4) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, loc)); } else if (methodName == VM_MagicNames.getByteAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setByteAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(BYTE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getCharAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Char); bc2ir.appendInstruction(Load.create(USHORT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCharAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(SHORT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getMemoryInt) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryWord) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryAddress) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setMemoryInt) { OPT_Operand val = bc2ir.popInt(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(INT_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryWord) { OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryAddress) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 3) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), loc)); } else if (meth.getType() == VM_TypeReference.SysCall) { // All methods of VM_SysCall have the following signature: // callNAME(VM_Address code, <var args to pass via native calling convention>) VM_TypeReference[] args = meth.getParameterTypes(); int numArgs = args.length; VM_Field ip = VM_Entrypoints.getSysCallField(meth.getName().toString()); OPT_MethodOperand mo = OPT_MethodOperand.STATIC(ip); OPT_Instruction call = Call.create(SYSCALL, null, null, mo, null, args.length); for (int i = args.length-1; i >= 0; i--) { Call.setParam(call, i, bc2ir.pop(args[i])); } VM_TypeReference rtype = meth.getReturnType(); if (!rtype.isVoidType()) { OPT_RegisterOperand op0 = gc.temps.makeTemp(rtype); Call.setResult(call, op0); bc2ir.push(op0.copyD2U(), rtype); } bc2ir.appendInstruction(call); } else if (methodName == VM_MagicNames.threadAsCollectorThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_CollectorThread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsProcessor) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Processor); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsAddress) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Move.create(INT_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObject) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObjectArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsRegisters) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Registers;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsShortArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ShortArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsStack) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.floatAsIntBits) { OPT_Operand val = bc2ir.popFloat(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(Unary.create(FLOAT_AS_INT_BITS, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.intBitsAsFloat) { OPT_Operand val = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempFloat(); bc2ir.appendInstruction(Unary.create(INT_BITS_AS_FLOAT, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.doubleAsLongBits) { OPT_Operand val = bc2ir.popDouble(); OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Unary.create(DOUBLE_AS_LONG_BITS, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.longBitsAsDouble) { OPT_Operand val = bc2ir.popLong(); OPT_RegisterOperand op0 = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Unary.create(LONG_BITS_AS_DOUBLE, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.getObjectType) { OPT_Operand val = bc2ir.popRef(); OPT_Operand guard = bc2ir.getGuard(val); if (guard == null) { // it's magic, so assume that it's OK.... guard = new OPT_TrueGuardOperand(); } OPT_RegisterOperand tibPtr = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(GuardedUnary.create(GET_OBJ_TIB, tibPtr, val, guard)); OPT_RegisterOperand op0; VM_TypeReference argType = val.getType(); if (argType.isArrayType()) { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Array); } else { if (argType == VM_TypeReference.JavaLangObject || argType == VM_TypeReference.JavaLangCloneable || argType == VM_TypeReference.JavaIoSerializable) { // could be an array or a class, so make op0 be a VM_Type op0 = gc.temps.makeTemp(VM_TypeReference.VM_Type); } else { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Class); } } bc2ir.markGuardlessNonNull(op0); bc2ir.appendInstruction(Unary.create(GET_TYPE_FROM_TIB, op0, tibPtr.copyD2U())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.getArrayLength) { OPT_Operand val = bc2ir.popRef(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(GuardedUnary.create(ARRAYLENGTH, op0, val, new OPT_TrueGuardOperand())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.invokeClassInitializer) { OPT_Instruction s = Call.create0(CALL, null, bc2ir.popRef(), null); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.invokeMain) { OPT_Operand code = bc2ir.popRef(); OPT_Operand args = bc2ir.popRef(); bc2ir.appendInstruction(Call.create1(CALL, null, code, null, args)); } else if ((methodName == VM_MagicNames.invokeMethodReturningObject) || (methodName == VM_MagicNames.invokeMethodReturningVoid) || (methodName == VM_MagicNames.invokeMethodReturningLong) || (methodName == VM_MagicNames.invokeMethodReturningDouble) || (methodName == VM_MagicNames.invokeMethodReturningFloat) || (methodName == VM_MagicNames.invokeMethodReturningInt)) { OPT_Operand spills = bc2ir.popRef(); OPT_Operand fprs = bc2ir.popRef(); OPT_Operand gprs = bc2ir.popRef(); OPT_Operand code = bc2ir.popRef(); OPT_RegisterOperand res = null; if (methodName == VM_MagicNames.invokeMethodReturningObject) { res = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.push(res.copyD2U()); } else if (methodName == VM_MagicNames.invokeMethodReturningLong) { res = gc.temps.makeTemp(VM_TypeReference.Long); bc2ir.push(res.copyD2U(), VM_TypeReference.Long); } else if (methodName == VM_MagicNames.invokeMethodReturningDouble) { res = gc.temps.makeTempDouble(); bc2ir.push(res.copyD2U(), VM_TypeReference.Double); } else if (methodName == VM_MagicNames.invokeMethodReturningFloat) { res = gc.temps.makeTempFloat(); bc2ir.push(res.copyD2U(), VM_TypeReference.Float); } else if (methodName == VM_MagicNames.invokeMethodReturningInt) { res = gc.temps.makeTempInt(); bc2ir.push(res.copyD2U()); } VM_Field target = VM_Entrypoints.reflectiveMethodInvokerInstructionsField; OPT_MethodOperand met = OPT_MethodOperand.STATIC(target); OPT_Instruction s = Call.create4(CALL, res, new OPT_IntConstantOperand(target.getOffset()), met, code, gprs, fprs, spills); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.saveThreadState) { OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.saveThreadStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1)); } else if (methodName == VM_MagicNames.threadSwitch) { OPT_Operand p2 = bc2ir.popRef(); OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.threadSwitchInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create2(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1, p2)); } else if (methodName == VM_MagicNames.restoreHardwareExceptionState) { VM_Field target = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, bc2ir.popRef())); } else if (methodName == VM_MagicNames.prepareInt) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Prepare.create(PREPARE, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareObject) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Prepare.create(PREPARE, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareAddress) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Prepare.create(PREPARE, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareWord) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Prepare.create(PREPARE, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.attemptInt) { OPT_Operand newVal = bc2ir.popInt(); OPT_Operand oldVal = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptObject) { OPT_Operand newVal = bc2ir.popRef(); OPT_Operand oldVal = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptAddress) { OPT_Operand newVal = bc2ir.popAddress(); OPT_Operand oldVal = bc2ir.popAddress(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptWord) { OPT_Operand newVal = bc2ir.pop(); OPT_Operand oldVal = bc2ir.pop(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (generatePolymorphicMagic(bc2ir, gc, meth, methodName)) { return true; } else if (methodName == VM_MagicNames.getTimeBase) { OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Nullary.create(GET_TIME_BASE, op0)); bc2ir.pushDual(op0.copyD2U()); } else { // Wasn't machine-independent, so try the machine-dependent magics next. return OPT_GenerateMachineSpecificMagic.generateMagic(bc2ir, gc, meth); } return true; } // generateMagic
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/4d22dd13124900e868c296fd635d282c7c218508/OPT_GenerateMagic.java/buggy/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_GenerateMagic.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
27573,
16456,
67,
13842,
1042,
8859,
16,
27573,
8251,
67,
1305,
2404,
7917,
13,
1216,
16456,
67,
19289,
1248,
8644,
503,
288,
565,
309,
261,
13241,
18,
2039,
18,
5332,
2279,
10870,
2050,
9454,
10756,
8859,
18,
9853,
3219,
273,
638,
31,
3639,
368,
670,
3649,
30,
7615,
1404,
4788,
1281,
324,
2038,
4191,
7127,
4447,
2102,
18,
565,
368,
2660,
30,
3635,
333,
358,
7327,
4447,
2102,
716,
854,
7127,
18,
565,
368,
1493,
277,
3022,
16314,
19,
3437,
19,
21,
11984,
565,
6533,
22,
481,
18,
3355,
9676,
23912,
1290,
25401,
5621,
565,
8251,
67,
3641,
4918,
273,
7917,
18,
17994,
5621,
565,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
588,
5164,
3996,
13,
288,
1377,
16456,
67,
3996,
10265,
721,
84,
273,
8859,
18,
874,
1121,
18,
6540,
3373,
84,
5621,
1377,
6533,
22,
481,
18,
3355,
16709,
2656,
8921,
12,
1764,
1769,
1377,
6533,
22,
481,
18,
6206,
12,
1764,
1769,
565,
289,
469,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
542,
5164,
3996,
13,
288,
1377,
16456,
67,
10265,
1244,
273,
6533,
22,
481,
18,
5120,
1957,
5621,
1377,
309,
261,
1125,
1276,
16456,
67,
3996,
10265,
13,
288,
3639,
6533,
22,
481,
18,
6923,
11983,
12,
7607,
18,
2640,
12,
10771,
67,
16537,
16,
4766,
2398,
8859,
18,
874,
1121,
18,
6540,
3373,
84,
9334,
4766,
2398,
1244,
10019,
1377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
27573,
16456,
67,
13842,
1042,
8859,
16,
27573,
8251,
67,
1305,
2404,
7917,
13,
1216,
16456,
67,
19289,
1248,
8644,
503,
288,
565,
309,
261,
13241,
18,
2039,
18,
5332,
2279,
10870,
2050,
9454,
10756,
8859,
18,
9853,
3219,
273,
638,
31,
3639,
368,
670,
3649,
30,
7615,
1404,
4788,
1281,
324,
2038,
4191,
7127,
4447,
2102,
18,
565,
368,
2660,
30,
3635,
333,
358,
7327,
4447,
2102,
716,
854,
7127,
18,
565,
368,
1493,
277,
3022,
16314,
19,
3437,
19,
21,
11984,
565,
6533,
22,
481,
18,
3355,
9676,
23912,
1290,
25401,
5621,
565,
8251,
67,
3641,
4918,
273,
7917,
18,
17994,
5621,
2
] |
stub = (RemoteStub)getHelperClass(cls, "_Stub");
|
Class expCls; try { expCls = findStubSkelClass(cls); } catch (Exception ex) { throw new RemoteException("can not find stubs for class: " + cls, ex); } stub = (RemoteStub)getHelperClass(expCls, "_Stub");
|
public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); stub = (RemoteStub)getHelperClass(cls, "_Stub"); if (stub == null) { throw new RemoteException("failed to export: " + cls); } // Find and install the skeleton (if there is one) skel = (Skeleton)getHelperClass(cls, "_Skel"); // Build hash of methods which may be called. buildMethodHash(obj.getClass(), true); // Export it. UnicastServer.exportObject(this); } return (stub);}
|
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/e835c12a0e664d4b68ae8f0b19ddc7c28e3acf17/UnicastServerRef.java/buggy/libjava/gnu/java/rmi/server/UnicastServerRef.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6304,
11974,
3359,
921,
12,
5169,
1081,
13,
1216,
18361,
288,
202,
430,
261,
4811,
2890,
422,
446,
13,
288,
202,
202,
4811,
2890,
273,
1081,
31,
202,
202,
759,
7074,
518,
358,
1438,
3301,
16,
358,
2231,
1004,
4097,
316,
326,
1967,
8251,
358,
5672,
202,
202,
759,
225,
1191,
745,
202,
202,
4181,
18,
3567,
2603,
273,
1081,
31,
202,
202,
759,
4163,
471,
3799,
326,
7168,
202,
202,
797,
2028,
273,
1081,
18,
588,
797,
5621,
202,
202,
12847,
273,
261,
5169,
11974,
13,
588,
2276,
797,
12,
6429,
16,
4192,
11974,
8863,
202,
202,
430,
261,
12847,
422,
446,
13,
288,
1082,
202,
12849,
394,
18361,
2932,
7307,
358,
3359,
30,
315,
397,
2028,
1769,
202,
202,
97,
202,
202,
759,
4163,
471,
3799,
326,
17761,
261,
430,
1915,
353,
1245,
13,
202,
202,
7771,
292,
273,
261,
28070,
13,
588,
2276,
797,
12,
6429,
16,
4192,
5925,
292,
8863,
202,
202,
759,
3998,
1651,
434,
2590,
1492,
2026,
506,
2566,
18,
202,
202,
3510,
1305,
2310,
12,
2603,
18,
588,
797,
9334,
638,
1769,
202,
202,
759,
11054,
518,
18,
202,
202,
984,
12544,
2081,
18,
6530,
921,
12,
2211,
1769,
202,
97,
202,
2463,
261,
12847,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6304,
11974,
3359,
921,
12,
5169,
1081,
13,
1216,
18361,
288,
202,
430,
261,
4811,
2890,
422,
446,
13,
288,
202,
202,
4811,
2890,
273,
1081,
31,
202,
202,
759,
7074,
518,
358,
1438,
3301,
16,
358,
2231,
1004,
4097,
316,
326,
1967,
8251,
358,
5672,
202,
202,
759,
225,
1191,
745,
202,
202,
4181,
18,
3567,
2603,
273,
1081,
31,
202,
202,
759,
4163,
471,
3799,
326,
7168,
202,
202,
797,
2028,
273,
1081,
18,
588,
797,
5621,
202,
202,
12847,
273,
261,
5169,
11974,
13,
588,
2276,
797,
12,
6429,
16,
4192,
11974,
8863,
202,
202,
430,
261,
12847,
422,
446,
13,
288,
1082,
202,
12849,
394,
18361,
2932,
7307,
358,
3359,
30,
315,
397,
2028,
2
] |
throw new UnavailableException("ActionContextClass " + className + " not found.");
|
throw new UnavailableException("ActionContextClass " + className + " not found.");
|
private void setActionContextClassName(String className) throws ServletException { if (className != null && className.trim().length() > 0) { log.debug("setActionContextClassName: requested context class: " + className); try { Class actionContextClass = RequestUtils.applicationClass(className); if (!ActionContext.class.isAssignableFrom(actionContextClass)) { throw new UnavailableException("ActionContextClass [" + className + "] must implement ActionContext interface."); } this.setActionContextClass(actionContextClass); } catch (ClassNotFoundException e) { throw new UnavailableException("ActionContextClass " + className + " not found."); } } else { log.debug("setActionContextClassName: no actionContextClass specified"); this.setActionContextClass(null); } }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/287e02319b42f2eed8323175c6cfc36577aa9588/ComposableRequestProcessor.java/buggy/src/java/org/apache/struts/chain/ComposableRequestProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
22517,
1042,
3834,
12,
780,
2658,
13,
1216,
16517,
288,
3639,
309,
261,
12434,
480,
446,
597,
2658,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
288,
5411,
613,
18,
4148,
2932,
542,
1803,
1042,
3834,
30,
3764,
819,
667,
30,
315,
397,
2658,
1769,
5411,
775,
288,
7734,
1659,
1301,
1042,
797,
273,
1567,
1989,
18,
3685,
797,
12,
12434,
1769,
7734,
309,
16051,
1803,
1042,
18,
1106,
18,
291,
7961,
1265,
12,
1128,
1042,
797,
3719,
288,
10792,
604,
394,
1351,
5699,
503,
2932,
1803,
1042,
797,
8247,
397,
2658,
397,
9850,
1297,
2348,
4382,
1042,
1560,
1199,
1769,
7734,
289,
7734,
333,
18,
542,
1803,
1042,
797,
12,
1128,
1042,
797,
1769,
5411,
289,
1044,
261,
797,
3990,
425,
13,
288,
7734,
604,
394,
1351,
5699,
503,
2932,
1803,
1042,
797,
315,
397,
2658,
397,
315,
486,
1392,
1199,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
613,
18,
4148,
2932,
542,
1803,
1042,
3834,
30,
1158,
1301,
1042,
797,
1269,
8863,
5411,
333,
18,
542,
1803,
1042,
797,
12,
2011,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
22517,
1042,
3834,
12,
780,
2658,
13,
1216,
16517,
288,
3639,
309,
261,
12434,
480,
446,
597,
2658,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
288,
5411,
613,
18,
4148,
2932,
542,
1803,
1042,
3834,
30,
3764,
819,
667,
30,
315,
397,
2658,
1769,
5411,
775,
288,
7734,
1659,
1301,
1042,
797,
273,
1567,
1989,
18,
3685,
797,
12,
12434,
1769,
7734,
309,
16051,
1803,
1042,
18,
1106,
18,
291,
7961,
1265,
12,
1128,
1042,
797,
3719,
288,
10792,
604,
394,
1351,
5699,
503,
2932,
1803,
1042,
797,
8247,
397,
2658,
397,
9850,
1297,
2348,
4382,
1042,
1560,
1199,
1769,
7734,
289,
7734,
333,
18,
542,
1803,
1042,
797,
12,
1128,
1042,
797,
1769,
5411,
2
] |
voidSignature[0] = "void".toCharArray();
|
voidSignature[0] = "void".toCharArray();
|
private char[][] getFunctionSignature() { String signature = (String) tagExtensionField.get(CTagsConsoleParser.SIGNATURE); if (signature.equals("()")){ char[][] voidSignature = new char[1][]; voidSignature[0] = "void".toCharArray(); return voidSignature; } return CSearchPattern.scanForParameters(signature); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/597791a3c72540c72b12eff105c4c8e9f156dd20/CTagEntry.java/buggy/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1149,
63,
6362,
65,
18697,
5374,
1435,
288,
202,
202,
780,
3372,
273,
225,
261,
780,
13,
1047,
3625,
974,
18,
588,
12,
1268,
1341,
10215,
2678,
18,
26587,
1769,
9506,
202,
430,
261,
8195,
18,
14963,
2932,
10031,
3719,
95,
1082,
202,
3001,
63,
6362,
65,
918,
5374,
273,
394,
1149,
63,
21,
6362,
15533,
1082,
202,
6459,
5374,
63,
20,
65,
273,
315,
6459,
9654,
869,
15936,
5621,
1082,
202,
2463,
918,
5374,
31,
202,
202,
97,
202,
202,
2463,
385,
2979,
3234,
18,
9871,
1290,
2402,
12,
8195,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1149,
63,
6362,
65,
18697,
5374,
1435,
288,
202,
202,
780,
3372,
273,
225,
261,
780,
13,
1047,
3625,
974,
18,
588,
12,
1268,
1341,
10215,
2678,
18,
26587,
1769,
9506,
202,
430,
261,
8195,
18,
14963,
2932,
10031,
3719,
95,
1082,
202,
3001,
63,
6362,
65,
918,
5374,
273,
394,
1149,
63,
21,
6362,
15533,
1082,
202,
6459,
5374,
63,
20,
65,
273,
315,
6459,
9654,
869,
15936,
5621,
1082,
202,
2463,
918,
5374,
31,
202,
202,
97,
202,
202,
2463,
385,
2979,
3234,
18,
9871,
1290,
2402,
12,
8195,
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
] |
_t = __t600;
|
_t = __t604;
|
public final void comboboxphrase(AST _t) throws RecognitionException { AST comboboxphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t591 = _t; AST tmp2069_AST_in = (AST)_t; match(_t,COMBOBOX); _t = _t.getFirstChild(); { _loop603: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LISTITEMS: { AST __t593 = _t; AST tmp2070_AST_in = (AST)_t; match(_t,LISTITEMS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop595: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2071_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop595; } } while (true); } _t = __t593; _t = _t.getNextSibling(); break; } case LISTITEMPAIRS: { AST __t596 = _t; AST tmp2072_AST_in = (AST)_t; match(_t,LISTITEMPAIRS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop598: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2073_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop598; } } while (true); } _t = __t596; _t = _t.getNextSibling(); break; } case INNERLINES: { AST __t599 = _t; AST tmp2074_AST_in = (AST)_t; match(_t,INNERLINES); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t599; _t = _t.getNextSibling(); break; } case SORT: { AST tmp2075_AST_in = (AST)_t; match(_t,SORT); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case SIMPLE: { AST tmp2076_AST_in = (AST)_t; match(_t,SIMPLE); _t = _t.getNextSibling(); break; } case DROPDOWN: { AST tmp2077_AST_in = (AST)_t; match(_t,DROPDOWN); _t = _t.getNextSibling(); break; } case DROPDOWNLIST: { AST tmp2078_AST_in = (AST)_t; match(_t,DROPDOWNLIST); _t = _t.getNextSibling(); break; } case MAXCHARS: { AST __t600 = _t; AST tmp2079_AST_in = (AST)_t; match(_t,MAXCHARS); _t = _t.getFirstChild(); AST tmp2080_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t600; _t = _t.getNextSibling(); break; } case AUTOCOMPLETION: { AST __t601 = _t; AST tmp2081_AST_in = (AST)_t; match(_t,AUTOCOMPLETION); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUEMATCH: { AST tmp2082_AST_in = (AST)_t; match(_t,UNIQUEMATCH); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t601; _t = _t.getNextSibling(); break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } default: { break _loop603; } } } while (true); } _t = __t591; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3894,
27570,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3894,
27570,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
6162,
21,
273,
389,
88,
31,
202,
202,
9053,
1853,
3462,
8148,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4208,
5315,
16876,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
67,
6498,
26,
4630,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
15130,
29887,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
6162,
23,
273,
389,
88,
31,
9506,
202,
9053,
1853,
3462,
7301,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
7085,
29887,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
9506,
202,
14384,
24899,
88,
1769,
9506,
202,
67,
88,
273,
389,
1349,
2471,
31,
9506,
202,
95,
9506,
202,
67,
6498,
6162,
25,
30,
9506,
202,
2896,
288,
6862,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
6862,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
4208,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3894,
27570,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3894,
27570,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
6162,
21,
273,
389,
88,
31,
202,
202,
9053,
1853,
3462,
8148,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4208,
5315,
16876,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
67,
6498,
26,
4630,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
2
] |
Set<Entry<Algorithm, AlgorithmTask>> entrySet = this._algMap .entrySet(); for (Entry<Algorithm, AlgorithmTask> entry : entrySet) {
|
Collection<AlgorithmTask> tasks = this._algMap.values(); for (AlgorithmTask task : tasks) {
|
public void run() { purgeFinished(); synchronized (_algMap) { // If we are runing the max allowable, wait until next turn. if (_limitReached()) return; // Iterate through algorithms. Set<Entry<Algorithm, AlgorithmTask>> entrySet = this._algMap .entrySet(); for (Entry<Algorithm, AlgorithmTask> entry : entrySet) { // Check this at every point. if (_limitReached()) break; AlgorithmTask task = entry.getValue(); Date now = Calendar.getInstance().getTime(); // Only schedule algorithms that are fit to be scheduled. if ((task.getState() == STATE.NEW) && now.compareTo(task.getScheduledTime().getTime()) <= 0) { // Run immediately _timer.schedule(task, 0L); } } } }
|
45843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45843/4516fb3d57ca627bd9b2911f1ff6cd8c10de2117/JavaTimerBasedScheduler.java/clean/plugins/core/edu.iu.iv.core/java/src/edu/iu/iv/internal/JavaTimerBasedScheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
26422,
10577,
5621,
202,
202,
22043,
261,
67,
18413,
863,
13,
288,
1082,
202,
759,
971,
732,
854,
1086,
310,
326,
943,
30727,
16,
2529,
3180,
1024,
7005,
18,
1082,
202,
430,
261,
67,
3595,
23646,
10756,
9506,
202,
2463,
31,
1082,
202,
759,
11436,
3059,
20032,
18,
1082,
202,
694,
32,
1622,
32,
6801,
16,
15067,
2174,
9778,
6296,
273,
333,
6315,
18413,
863,
6862,
202,
18,
4099,
694,
5621,
1082,
202,
1884,
261,
1622,
32,
6801,
16,
15067,
2174,
34,
1241,
294,
6296,
13,
288,
9506,
202,
759,
2073,
333,
622,
3614,
1634,
18,
9506,
202,
430,
261,
67,
3595,
23646,
10756,
6862,
202,
8820,
31,
9506,
202,
6801,
2174,
1562,
273,
1241,
18,
24805,
5621,
9506,
202,
1626,
2037,
273,
5542,
18,
588,
1442,
7675,
588,
950,
5621,
9506,
202,
759,
5098,
4788,
20032,
716,
854,
4845,
358,
506,
9755,
18,
9506,
202,
430,
14015,
4146,
18,
588,
1119,
1435,
422,
7442,
18,
12917,
13,
25083,
202,
10,
10,
2037,
18,
9877,
774,
12,
4146,
18,
588,
10660,
950,
7675,
588,
950,
10756,
1648,
374,
13,
288,
6862,
202,
759,
1939,
7636,
6862,
202,
67,
12542,
18,
10676,
12,
4146,
16,
374,
48,
1769,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
26422,
10577,
5621,
202,
202,
22043,
261,
67,
18413,
863,
13,
288,
1082,
202,
759,
971,
732,
854,
1086,
310,
326,
943,
30727,
16,
2529,
3180,
1024,
7005,
18,
1082,
202,
430,
261,
67,
3595,
23646,
10756,
9506,
202,
2463,
31,
1082,
202,
759,
11436,
3059,
20032,
18,
1082,
202,
694,
32,
1622,
32,
6801,
16,
15067,
2174,
9778,
6296,
273,
333,
6315,
18413,
863,
6862,
202,
18,
4099,
694,
5621,
1082,
202,
1884,
261,
1622,
32,
6801,
16,
15067,
2174,
34,
1241,
294,
6296,
13,
288,
9506,
202,
759,
2073,
333,
622,
3614,
1634,
18,
9506,
202,
430,
261,
67,
3595,
23646,
10756,
6862,
202,
8820,
31,
9506,
202,
2
] |
dir = new File(path.getValue()).getAbsoluteFile();
|
dir = new File(newPath.getValue()).getAbsoluteFile();
|
public IRubyObject initialize(RubyString path) { path.checkSafeString();// TODO: Consolidate this absolute file nonsense dir = new File(path.getValue()).getAbsoluteFile(); if (!dir.isDirectory()) { dir = null; throw ErrnoError.getErrnoError(getRuntime(), "ENOENT", path.getValue() + " is not a directory"); } List snapshotList = new ArrayList(); snapshotList.add("."); snapshotList.add(".."); snapshotList.addAll(getContents(dir)); snapshot = (String[]) snapshotList.toArray(new String[snapshotList.size()]); pos = 0; return this; }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyDir.java/clean/src/org/jruby/RubyDir.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
4046,
12,
54,
10340,
780,
589,
13,
288,
3639,
589,
18,
1893,
9890,
780,
5621,
759,
2660,
30,
11020,
7953,
340,
333,
4967,
585,
1661,
87,
3558,
3639,
1577,
273,
394,
1387,
12,
2704,
743,
18,
24805,
1435,
2934,
588,
10368,
812,
5621,
3639,
309,
16051,
1214,
18,
291,
2853,
10756,
288,
5411,
1577,
273,
446,
31,
5411,
604,
23768,
668,
18,
588,
2524,
2135,
668,
12,
588,
5576,
9334,
315,
1157,
51,
2222,
3113,
589,
18,
24805,
1435,
397,
315,
353,
486,
279,
1867,
8863,
3639,
289,
202,
202,
682,
4439,
682,
273,
394,
2407,
5621,
202,
202,
11171,
682,
18,
1289,
2932,
1199,
1769,
202,
202,
11171,
682,
18,
1289,
2932,
838,
8863,
202,
202,
11171,
682,
18,
1289,
1595,
12,
588,
6323,
12,
1214,
10019,
202,
202,
11171,
273,
261,
780,
63,
5717,
4439,
682,
18,
31447,
12,
2704,
514,
63,
11171,
682,
18,
1467,
1435,
19226,
202,
202,
917,
273,
374,
31,
3639,
327,
333,
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,
15908,
10340,
921,
4046,
12,
54,
10340,
780,
589,
13,
288,
3639,
589,
18,
1893,
9890,
780,
5621,
759,
2660,
30,
11020,
7953,
340,
333,
4967,
585,
1661,
87,
3558,
3639,
1577,
273,
394,
1387,
12,
2704,
743,
18,
24805,
1435,
2934,
588,
10368,
812,
5621,
3639,
309,
16051,
1214,
18,
291,
2853,
10756,
288,
5411,
1577,
273,
446,
31,
5411,
604,
23768,
668,
18,
588,
2524,
2135,
668,
12,
588,
5576,
9334,
315,
1157,
51,
2222,
3113,
589,
18,
24805,
1435,
397,
315,
353,
486,
279,
1867,
8863,
3639,
289,
202,
202,
682,
4439,
682,
273,
394,
2407,
5621,
202,
202,
11171,
682,
18,
1289,
2932,
1199,
1769,
202,
202,
11171,
682,
18,
1289,
2932,
838,
2
] |
return RubyFixnum.newFixnum(getRuntime(), -1);
|
return getRuntime().newFixnum(-1);
|
public RubyFixnum op_cmp(IRubyObject other) { if (! (other instanceof JavaClass)) { throw new TypeError(getRuntime(), "<=> requires JavaClass (" + other.getType() + " given)"); } JavaClass otherClass = (JavaClass) other; if (this.javaClass == otherClass.javaClass) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (otherClass.javaClass.isAssignableFrom(this.javaClass)) { return RubyFixnum.newFixnum(getRuntime(), -1); } return RubyFixnum.newFixnum(getRuntime(), 1); }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaClass.java/clean/src/org/jruby/javasupport/JavaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
16051,
261,
3011,
1276,
29491,
3719,
288,
5411,
604,
394,
3580,
12,
588,
5576,
9334,
3532,
9207,
4991,
29491,
7566,
397,
1308,
18,
588,
559,
1435,
397,
315,
864,
2225,
1769,
3639,
289,
3639,
29491,
1308,
797,
273,
261,
5852,
797,
13,
1308,
31,
3639,
309,
261,
2211,
18,
6290,
797,
422,
1308,
797,
18,
6290,
797,
13,
288,
5411,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
5576,
9334,
374,
1769,
3639,
289,
3639,
309,
261,
3011,
797,
18,
6290,
797,
18,
291,
7961,
1265,
12,
2211,
18,
6290,
797,
3719,
288,
5411,
327,
18814,
7675,
2704,
8585,
2107,
19236,
21,
1769,
3639,
289,
3639,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
5576,
9334,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
19817,
8585,
2107,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
16051,
261,
3011,
1276,
29491,
3719,
288,
5411,
604,
394,
3580,
12,
588,
5576,
9334,
3532,
9207,
4991,
29491,
7566,
397,
1308,
18,
588,
559,
1435,
397,
315,
864,
2225,
1769,
3639,
289,
3639,
29491,
1308,
797,
273,
261,
5852,
797,
13,
1308,
31,
3639,
309,
261,
2211,
18,
6290,
797,
422,
1308,
797,
18,
6290,
797,
13,
288,
5411,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
5576,
9334,
374,
1769,
3639,
289,
3639,
309,
261,
3011,
797,
18,
6290,
797,
18,
291,
7961,
1265,
12,
2211,
18,
6290,
797,
3719,
288,
5411,
327,
18814,
7675,
2704,
8585,
2107,
2
] |
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Identify the request parameter containing the method name String parameter = mapping.getParameter(); if (parameter == null) { String message = messages.getMessage("dispatch.handler", mapping.getPath()); log.error(message); response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, message); return (null); } // Identify the method name to be dispatched to String name = request.getParameter(parameter); if (name == null) { name = "unspecified"; } // Invoke the named method, and return the result return dispatchMethod(mapping,form,request,response,name); }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/f5b6de2d5781880458bb1984d36356c4180b1473/DispatchAction.java/clean/src/share/org/apache/struts/actions/DispatchAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
4382,
8514,
225,
1836,
12,
1803,
3233,
225,
2874,
16,
4766,
21394,
4382,
1204,
225,
646,
16,
4766,
21394,
9984,
225,
590,
16,
4766,
21394,
12446,
225,
766,
13,
7734,
1216,
225,
1185,
225,
288,
7734,
368,
225,
25622,
225,
326,
225,
590,
225,
1569,
225,
4191,
225,
326,
225,
707,
225,
508,
7734,
514,
225,
1569,
225,
273,
225,
2874,
18,
588,
1662,
5621,
7734,
309,
225,
261,
6775,
225,
422,
225,
446,
13,
225,
288,
13491,
514,
225,
883,
225,
273,
27573,
2743,
18,
24906,
2932,
10739,
18,
4176,
3113,
225,
2874,
18,
588,
743,
10663,
13491,
613,
18,
1636,
12,
2150,
1769,
13491,
766,
18,
4661,
668,
12,
2940,
29910,
18,
2312,
67,
14005,
67,
4370,
67,
3589,
16,
4766,
17311,
883,
1769,
13491,
327,
225,
261,
2011,
1769,
7734,
289,
7734,
368,
225,
25622,
225,
326,
225,
707,
225,
508,
225,
358,
225,
506,
225,
25513,
225,
358,
7734,
514,
225,
508,
225,
273,
225,
590,
18,
588,
1662,
12,
6775,
1769,
7734,
309,
225,
261,
529,
225,
422,
225,
446,
13,
225,
288,
13491,
508,
225,
273,
225,
315,
318,
13827,
14432,
7734,
289,
7734,
368,
225,
14373,
225,
326,
225,
4141,
225,
707,
16,
225,
471,
225,
327,
225,
326,
225,
563,
7734,
327,
225,
3435,
1305,
12,
6770,
16,
687,
16,
2293,
16,
2740,
16,
529,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
4382,
8514,
225,
1836,
12,
1803,
3233,
225,
2874,
16,
4766,
21394,
4382,
1204,
225,
646,
16,
4766,
21394,
9984,
225,
590,
16,
4766,
21394,
12446,
225,
766,
13,
7734,
1216,
225,
1185,
225,
288,
7734,
368,
225,
25622,
225,
326,
225,
590,
225,
1569,
225,
4191,
225,
326,
225,
707,
225,
508,
7734,
514,
225,
1569,
225,
273,
225,
2874,
18,
588,
1662,
5621,
7734,
309,
225,
261,
6775,
225,
422,
225,
446,
13,
225,
288,
13491,
514,
225,
883,
225,
273,
27573,
2743,
18,
24906,
2932,
10739,
18,
4176,
3113,
225,
2874,
18,
588,
743,
10663,
13491,
613,
18,
1636,
12,
2150,
1769,
13491,
766,
18,
4661,
668,
12,
2940,
29910,
18,
2312,
67,
2
] |
||
DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), ruby.getNamespace());
|
DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), ruby.getNamespace(), Visibility.PUBLIC);
|
public void visitDefsNode(DefsNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); if (ruby.getSafeLevel() >= 4 && !receiver.isTaint()) { throw new RubySecurityException(ruby, "Insecure; can't define singleton method."); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (receiver.isFrozen()) { throw new RubyFrozenException(ruby, "object"); } RubyClass rubyClass = receiver.getSingletonClass(); ICallable method = (ICallable) rubyClass.getMethods().get(iVisited.getName()); if (method != null) { if (ruby.getSafeLevel() >= 4) { throw new RubySecurityException(ruby, "Redefining method prohibited."); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } // FIXME see above in visitDefnNode DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), ruby.getNamespace()); rubyClass.addMethod(iVisited.getName(), newMethod, Constants.NOEX_PUBLIC | (method != null ? method.getNoex() & Constants.NOEX_UNDEF : 0)); receiver.callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); result = ruby.getNil(); }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/f05423516c2d1bfe54c4363eedb9654f7cfb6898/EvaluateVisitor.java/buggy/org/jruby/evaluator/EvaluateVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
14554,
907,
12,
14554,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
5971,
273,
5302,
12,
77,
30019,
18,
588,
12952,
907,
10663,
3639,
309,
261,
27768,
18,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
24454,
18,
291,
29048,
10756,
288,
5411,
604,
394,
19817,
24918,
12,
27768,
16,
315,
382,
8869,
31,
848,
1404,
4426,
6396,
707,
1199,
1769,
3639,
289,
3639,
1748,
430,
261,
4563,
6069,
67,
52,
12,
18334,
13,
747,
26059,
67,
52,
12,
18334,
3719,
288,
1850,
7138,
67,
11628,
12,
6731,
67,
73,
19030,
16,
315,
4169,
1404,
4426,
6396,
707,
22049,
87,
2412,
364,
738,
87,
3113,
1850,
7138,
67,
350,
22,
529,
12,
2159,
18,
4880,
67,
13138,
1435,
3631,
7138,
67,
1106,
22,
529,
12,
5237,
67,
3932,
12,
18334,
3719,
1769,
1850,
289,
5549,
368,
486,
3577,
316,
525,
27768,
3639,
309,
261,
24454,
18,
291,
42,
9808,
10756,
288,
5411,
604,
394,
19817,
42,
9808,
503,
12,
27768,
16,
315,
1612,
8863,
3639,
289,
3639,
19817,
797,
22155,
797,
273,
5971,
18,
588,
19571,
797,
5621,
3639,
467,
11452,
707,
273,
261,
45,
11452,
13,
22155,
797,
18,
588,
4712,
7675,
588,
12,
77,
30019,
18,
17994,
10663,
3639,
309,
261,
2039,
480,
446,
13,
288,
5411,
309,
261,
27768,
18,
588,
9890,
2355,
1435,
1545,
1059,
13,
288,
7734,
604,
394,
19817,
24918,
12,
27768,
16,
315,
426,
5649,
310,
707,
450,
29993,
1199,
1769,
5411,
289,
5411,
1748,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
14554,
907,
12,
14554,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
5971,
273,
5302,
12,
77,
30019,
18,
588,
12952,
907,
10663,
3639,
309,
261,
27768,
18,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
24454,
18,
291,
29048,
10756,
288,
5411,
604,
394,
19817,
24918,
12,
27768,
16,
315,
382,
8869,
31,
848,
1404,
4426,
6396,
707,
1199,
1769,
3639,
289,
3639,
1748,
430,
261,
4563,
6069,
67,
52,
12,
18334,
13,
747,
26059,
67,
52,
12,
18334,
3719,
288,
1850,
7138,
67,
11628,
12,
6731,
67,
73,
19030,
16,
315,
4169,
1404,
4426,
6396,
707,
22049,
87,
2412,
364,
738,
87,
3113,
1850,
7138,
67,
350,
22,
529,
12,
2159,
18,
2
] |
lastFastView = view;
|
lastFastView = (IViewPart)ref.getPart(true);
|
private void showView() { Object itemData = currentDropTarget.getData(ShowFastViewContribution.FAST_VIEW); if (itemData != null) { IViewPart view = (IViewPart) itemData; WorkbenchPage page = (WorkbenchPage) getWorkbenchWindow().getActivePage(); if (deactivatedPart == null) { deactivatedPart = page.getActivePart(); } lastFastView = view; page.activate(lastFastView); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/234570228ea456ece089ff59b2b055ff81273d9b/ShortcutBarPart.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShortcutBarPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
2405,
1767,
1435,
288,
1082,
202,
921,
30107,
273,
783,
7544,
2326,
18,
588,
751,
12,
5706,
12305,
1767,
442,
4027,
18,
2046,
882,
67,
12145,
1769,
1082,
202,
430,
261,
1726,
751,
480,
446,
13,
288,
9506,
202,
45,
1767,
1988,
1476,
273,
261,
45,
1767,
1988,
13,
30107,
31,
9506,
202,
2421,
22144,
1964,
1363,
273,
261,
2421,
22144,
1964,
13,
29026,
22144,
3829,
7675,
588,
3896,
1964,
5621,
9506,
202,
430,
261,
323,
18836,
1988,
422,
446,
13,
288,
6862,
202,
323,
18836,
1988,
273,
1363,
18,
588,
3896,
1988,
5621,
9506,
202,
97,
9506,
202,
2722,
12305,
1767,
273,
1476,
31,
9506,
202,
2433,
18,
10014,
12,
2722,
12305,
1767,
1769,
1082,
202,
97,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
2405,
1767,
1435,
288,
1082,
202,
921,
30107,
273,
783,
7544,
2326,
18,
588,
751,
12,
5706,
12305,
1767,
442,
4027,
18,
2046,
882,
67,
12145,
1769,
1082,
202,
430,
261,
1726,
751,
480,
446,
13,
288,
9506,
202,
45,
1767,
1988,
1476,
273,
261,
45,
1767,
1988,
13,
30107,
31,
9506,
202,
2421,
22144,
1964,
1363,
273,
261,
2421,
22144,
1964,
13,
29026,
22144,
3829,
7675,
588,
3896,
1964,
5621,
9506,
202,
430,
261,
323,
18836,
1988,
422,
446,
13,
288,
6862,
202,
323,
18836,
1988,
273,
1363,
18,
588,
3896,
1988,
5621,
9506,
202,
97,
9506,
202,
2722,
12305,
1767,
273,
1476,
31,
9506,
202,
2433,
18,
10014,
12,
2722,
12305,
1767,
1769,
2
] |
return printType0(type, user);
|
return printType0(type);
|
public SymbolTablePrinter printCommonPart(Type type, Symbol user) { switch (type) { case ErrorType: print("<error>"); return this; case AnyType: print("<any type>"); return this; case NoType: print("<notype>"); return this; case ThisType(Symbol sym): if (sym == Symbol.NONE) print("<local>.this"); if ((sym.isAnonymousClass() || sym.isCompoundSym()) && !global.debug) print("this"); printUsedSymbolName(sym, user); print(".this"); // vincent return this; case TypeRef(Type pre, Symbol sym, Type[] args): if (!global.debug) { if (type.isFunctionType()) { printFunctionType(args); return this; } if (sym.isAnonymousClass() || sym.isCompoundSym()) printTemplateType(pre.memberInfo(sym).parents()); } printPrefix(pre, sym); printUsedSymbolName(sym, user); if (args.length != 0) { print('['); printTypes(args, ",", user); print(']'); } return this; case SingleType(Type pre, Symbol sym): printPrefix(pre, sym); printUsedSymbolName(sym, user); return this; case ConstantType(Type base, Object value): printType(base, user); print("("); print(value.toString()); print(")"); return this; case CompoundType(Type[] parts, Scope members): printTypes(parts," with ", user); space(); return printScope(members, true); // vincent case MethodType(_, _): return printType0(type, user); case PolyType(_, _): return printType0(type, user); case OverloadedType(Symbol[] alts, Type[] alttypes): return printTypes(alttypes, " <and> ", user); case TypeVar(Type origin, Constraint constr): printType(origin, user); print("?"); return this; case UnboxedType(int kind): print(type.unboxedName(kind).toString()); return this; case UnboxedArrayType(Type elemtp): printType(elemtp, user); print("[]"); return this; case LazyType(): if (!global.debug) print("?"); String classname = type.getClass().getName(); print("<lazy type ").print(classname).print(">"); return this; default: String classname = type.getClass().getName(); print("<unknown type ").print(classname).print(">"); return this; } }
|
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/ce3042f16f76a68cc0e6a6ef34786b8035441805/SymbolTablePrinter.java/clean/sources/scala/tools/scaladoc/SymbolTablePrinter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8565,
1388,
12149,
1172,
6517,
1988,
12,
559,
618,
16,
8565,
729,
13,
288,
3639,
1620,
261,
723,
13,
288,
202,
3593,
1068,
559,
30,
202,
565,
1172,
2932,
32,
1636,
2984,
1769,
5411,
327,
333,
31,
202,
3593,
5502,
559,
30,
202,
565,
1172,
2932,
32,
2273,
618,
2984,
1769,
5411,
327,
333,
31,
202,
3593,
2631,
559,
30,
202,
565,
1172,
2932,
32,
902,
388,
2984,
1769,
5411,
327,
333,
31,
202,
3593,
1220,
559,
12,
5335,
5382,
4672,
5411,
309,
261,
8117,
422,
8565,
18,
9826,
13,
1172,
2932,
32,
3729,
18652,
2211,
8863,
5411,
309,
14015,
8117,
18,
291,
18792,
797,
1435,
747,
5382,
18,
291,
16835,
11901,
10756,
597,
401,
6347,
18,
4148,
13,
3196,
202,
1188,
2932,
2211,
8863,
5411,
1172,
6668,
5335,
461,
12,
8117,
16,
729,
1769,
5411,
1172,
2932,
18,
2211,
8863,
368,
331,
267,
2998,
5411,
327,
333,
31,
202,
3593,
1412,
1957,
12,
559,
675,
16,
8565,
5382,
16,
1412,
8526,
833,
4672,
202,
565,
309,
16051,
6347,
18,
4148,
13,
288,
7734,
309,
261,
723,
18,
291,
2083,
559,
10756,
288,
10792,
1172,
2083,
559,
12,
1968,
1769,
1082,
565,
327,
333,
31,
202,
202,
97,
202,
202,
430,
261,
8117,
18,
291,
18792,
797,
1435,
747,
5382,
18,
291,
16835,
11901,
10756,
10792,
1172,
2283,
559,
12,
1484,
18,
5990,
966,
12,
8117,
2934,
12606,
10663,
5411,
289,
5411,
1172,
2244,
12,
1484,
16,
5382,
1769,
5411,
1172,
6668,
5335,
461,
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,
8565,
1388,
12149,
1172,
6517,
1988,
12,
559,
618,
16,
8565,
729,
13,
288,
3639,
1620,
261,
723,
13,
288,
202,
3593,
1068,
559,
30,
202,
565,
1172,
2932,
32,
1636,
2984,
1769,
5411,
327,
333,
31,
202,
3593,
5502,
559,
30,
202,
565,
1172,
2932,
32,
2273,
618,
2984,
1769,
5411,
327,
333,
31,
202,
3593,
2631,
559,
30,
202,
565,
1172,
2932,
32,
902,
388,
2984,
1769,
5411,
327,
333,
31,
202,
3593,
1220,
559,
12,
5335,
5382,
4672,
5411,
309,
261,
8117,
422,
8565,
18,
9826,
13,
1172,
2932,
32,
3729,
18652,
2211,
8863,
5411,
309,
14015,
8117,
18,
291,
18792,
797,
1435,
747,
5382,
18,
291,
16835,
11901,
10756,
597,
401,
6347,
18,
2
] |
notifyAll();
|
synchronized(this) { notifyAll(); }
|
private void advance() { assert pending_.size() == 0; assert nowSet_.size() == 0; this.phase_++; // first notify everyone if (this.listener1_ != null) { this.listener1_.notifyAdvance(); if (this.listeners_ != null) { int size = listeners_.size(); for (int i=0;i<size;i++) ((AdvanceListener)listeners_.elementAt(i)).notifyAdvance(); } } Iterator it = activities_.iterator(); while (it.hasNext()) { Activity a = (Activity) it.next(); pending_.add(a); } notifyAll(); }
|
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/23421c8154b0bec602127816d8e365647c305ecf/Clock_c.java/clean/x10.runtime/src/x10/runtime/Clock_c.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
8312,
1435,
288,
3639,
1815,
4634,
27799,
1467,
1435,
422,
374,
31,
3639,
1815,
2037,
694,
27799,
1467,
1435,
422,
374,
31,
3639,
333,
18,
13961,
67,
9904,
31,
3639,
368,
1122,
5066,
3614,
476,
3639,
309,
261,
2211,
18,
12757,
21,
67,
480,
446,
13,
288,
5411,
333,
18,
12757,
21,
27799,
12336,
1871,
5882,
5621,
5411,
309,
261,
2211,
18,
16072,
67,
480,
446,
13,
288,
7734,
509,
963,
273,
4679,
27799,
1467,
5621,
7734,
364,
261,
474,
277,
33,
20,
31,
77,
32,
1467,
31,
77,
27245,
10792,
14015,
1871,
5882,
2223,
13,
16072,
27799,
2956,
861,
12,
77,
13,
2934,
12336,
1871,
5882,
5621,
5411,
289,
3639,
289,
7734,
4498,
518,
273,
17259,
27799,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
9621,
279,
273,
261,
6193,
13,
518,
18,
4285,
5621,
5411,
4634,
27799,
1289,
12,
69,
1769,
3639,
289,
3639,
3852,
12,
2211,
13,
288,
5066,
1595,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
8312,
1435,
288,
3639,
1815,
4634,
27799,
1467,
1435,
422,
374,
31,
3639,
1815,
2037,
694,
27799,
1467,
1435,
422,
374,
31,
3639,
333,
18,
13961,
67,
9904,
31,
3639,
368,
1122,
5066,
3614,
476,
3639,
309,
261,
2211,
18,
12757,
21,
67,
480,
446,
13,
288,
5411,
333,
18,
12757,
21,
27799,
12336,
1871,
5882,
5621,
5411,
309,
261,
2211,
18,
16072,
67,
480,
446,
13,
288,
7734,
509,
963,
273,
4679,
27799,
1467,
5621,
7734,
364,
261,
474,
277,
33,
20,
31,
77,
32,
1467,
31,
77,
27245,
10792,
14015,
1871,
5882,
2223,
13,
16072,
27799,
2956,
861,
12,
77,
13,
2934,
12336,
1871,
5882,
5621,
5411,
289,
3639,
289,
7734,
4498,
518,
273,
2
] |
return varMap.containsKey(sym); }
|
return varMap.containsKey(sym); }
|
public boolean definesVar(Symbol sym) { return varMap.containsKey(sym); }
|
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/ac4fb5c64af5080d7b583dcf3ebe7a069b1fe47c/TypesAsValuesPhase.java/buggy/sources/scalac/transformer/TypesAsValuesPhase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
1250,
11164,
1537,
12,
5335,
5382,
13,
288,
13491,
327,
569,
863,
18,
12298,
653,
12,
8117,
1769,
10792,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
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,
5397,
1071,
1250,
11164,
1537,
12,
5335,
5382,
13,
288,
13491,
327,
569,
863,
18,
12298,
653,
12,
8117,
1769,
10792,
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
] |
failParse();
|
throw backtrack; } catch (Exception e) {
|
protected IASTExpression primaryExpression( IASTScope scope ) throws Backtrack { IToken t = null; switch (LT(1)) { // TO DO: we need more literals... case IToken.tINTEGER : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_INTEGER_LITERAL, null, null, null, null, null, t.getImage(), null); } catch (ASTSemanticException e1) { failParse(); throw backtrack; } case IToken.tFLOATINGPT : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_FLOAT_LITERAL, null, null, null, null, null, t.getImage(), null); } catch (ASTSemanticException e2) { failParse(); throw backtrack; } case IToken.tSTRING : case IToken.tLSTRING : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_STRING_LITERAL, null, null, null, null, null, t.getImage(), null ); } catch (ASTSemanticException e5) { failParse(); throw backtrack; } case IToken.t_false : case IToken.t_true : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_BOOLEAN_LITERAL, null, null, null, null, null, t.getImage(), null); } catch (ASTSemanticException e3) { failParse(); throw backtrack; } case IToken.tCHAR : case IToken.tLCHAR : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_CHAR_LITERAL, null, null, null, null, null, t.getImage(), null); } catch (ASTSemanticException e4) { failParse(); throw backtrack; } case IToken.t_this : consume(IToken.t_this); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_THIS, null, null, null, null, null, "", null); } catch (ASTSemanticException e7) { failParse(); throw backtrack; } case IToken.tLPAREN : consume(); IASTExpression lhs = expression(scope); consume(IToken.tRPAREN); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_BRACKETED_EXPRESSION, lhs, null, null, null, null, "", null); } catch (ASTSemanticException e6) { failParse(); throw backtrack; } case IToken.tIDENTIFIER : case IToken.tCOLONCOLON : ITokenDuple duple = name(); //TODO should be an ID Expression really try { return astFactory.createExpression( scope, IASTExpression.Kind.ID_EXPRESSION, null, null, null, null, duple, "", null); } catch (ASTSemanticException e8) { failParse(); throw backtrack; } default : try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_EMPTY, null, null, null, null, null, "", null); } catch (ASTSemanticException e) { failParse(); throw backtrack; } } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/007714a3941370ecdf5c0dd873f4e0bcc64a50e8/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
2300,
3354,
2300,
12,
467,
9053,
3876,
2146,
262,
3639,
1216,
4297,
4101,
565,
288,
3639,
467,
1345,
268,
273,
446,
31,
3639,
1620,
261,
12050,
12,
21,
3719,
3639,
288,
5411,
368,
8493,
5467,
30,
732,
1608,
1898,
18228,
2777,
5411,
648,
467,
1345,
18,
88,
14217,
294,
7734,
268,
273,
7865,
5621,
7734,
775,
7734,
288,
10792,
327,
3364,
1733,
18,
2640,
2300,
12,
13491,
2146,
16,
13491,
467,
9053,
2300,
18,
5677,
18,
18864,
67,
14217,
67,
23225,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
268,
18,
588,
2040,
9334,
446,
1769,
7734,
289,
7734,
1044,
261,
9053,
13185,
9941,
503,
425,
21,
13,
7734,
288,
10792,
604,
1473,
4101,
31,
289,
1044,
261,
503,
425,
13,
288,
10792,
604,
1473,
4101,
31,
7734,
289,
5411,
648,
467,
1345,
18,
88,
15640,
1360,
1856,
294,
7734,
268,
273,
7865,
5621,
7734,
775,
7734,
288,
10792,
327,
3364,
1733,
18,
2640,
2300,
12,
13491,
2146,
16,
13491,
467,
9053,
2300,
18,
5677,
18,
18864,
67,
15640,
67,
23225,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
268,
18,
588,
2040,
9334,
446,
1769,
7734,
289,
7734,
1044,
261,
9053,
13185,
9941,
503,
425,
22,
13,
7734,
288,
10792,
604,
1473,
4101,
31,
289,
1044,
261,
503,
425,
13,
288,
10792,
604,
1473,
4101,
31,
7734,
289,
5411,
648,
467,
1345,
18,
88,
5804,
294,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
9053,
2300,
3354,
2300,
12,
467,
9053,
3876,
2146,
262,
3639,
1216,
4297,
4101,
565,
288,
3639,
467,
1345,
268,
273,
446,
31,
3639,
1620,
261,
12050,
12,
21,
3719,
3639,
288,
5411,
368,
8493,
5467,
30,
732,
1608,
1898,
18228,
2777,
5411,
648,
467,
1345,
18,
88,
14217,
294,
7734,
268,
273,
7865,
5621,
7734,
775,
7734,
288,
10792,
327,
3364,
1733,
18,
2640,
2300,
12,
13491,
2146,
16,
13491,
467,
9053,
2300,
18,
5677,
18,
18864,
67,
14217,
67,
23225,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
268,
18,
588,
2040,
9334,
446,
1769,
7734,
289,
7734,
1044,
261,
9053,
13185,
9941,
503,
425,
21,
2
] |
peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=status&inversed=true" : "?sortBy=status")).addChild("#", "Status"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=name&inversed=true" : "?sortBy=name")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's name. Click on the name link to send the node a N2NTM (Node To Node Text Message)", "border-bottom: 1px dotted; cursor: help;" }, "Name");
|
peerTableHeaderRow.addChild("th").addChild("a", "href", (isReversed ? "?sortBy=status&reversed" : "?sortBy=status")).addChild("#", "Status"); peerTableHeaderRow.addChild("th").addChild("a", "href", (isReversed ? "?sortBy=name&reversed" : "?sortBy=name")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's name. Click on the name link to send the node a N2NTM (Node To Node Text Message)", "border-bottom: 1px dotted; cursor: help;" }, "Name");
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { final HTTPRequest request = new HTTPRequest(uri); String path = uri.getPath(); if(path.endsWith("myref.fref")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.isAdvancedDarknetEnabled(); final boolean fProxyJavascriptEnabled = node.isFProxyJavascriptEnabled(); /* gather connection statistics */ PeerNodeStatus[] peerNodeStatuses = node.getPeerNodeStatuses(); Arrays.sort(peerNodeStatuses, new Comparator() { public int compare(Object first, Object second) { int result = 0; boolean isSet = true; PeerNodeStatus firstNode = (PeerNodeStatus) first; PeerNodeStatus secondNode = (PeerNodeStatus) second; if(request.isParameterSet("sortBy")){ final String sortBy = request.getParam("sortBy"); if(sortBy.equals("name")){ result = firstNode.getName().compareToIgnoreCase(secondNode.getName()); }else if(sortBy.equals("address")){ result = firstNode.getPeerAddress().compareToIgnoreCase(secondNode.getPeerAddress()); }else if(sortBy.equals("location")){ double diff = firstNode.getLocation() - secondNode.getLocation(); result = diff > 0 ? -1 : 1; // It shouldn't ever be equal anyway }else if(sortBy.equals("version")){ result = firstNode.getVersion().compareTo(secondNode.getVersion()); }else if(sortBy.equals("privnote")){ result = firstNode.getPrivateDarknetCommentNote().compareTo(secondNode.getPrivateDarknetCommentNote()); }else isSet=false; } if(!isSet){ int statusDifference = firstNode.getStatusValue() - secondNode.getStatusValue(); if (statusDifference == 0) result = statusDifference; else result = firstNode.getName().compareToIgnoreCase(secondNode.getName()); } if(request.isParameterSet("inverse")){ isInversed = true; return (result == 0 ? 0 : (result == 1 ? -1 : 1)); }else{ isInversed = false; return result; } } }); int numberOfConnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + '/' + numberOfRoutingBackedOff + '/' + numberOfTooNew + '/' + numberOfTooOld + '/' + numberOfNotConnected + ')'; } else { titleCountString = (numberOfNotConnected + numberOfSimpleConnected)>0 ? String.valueOf(numberOfSimpleConnected) : ""; } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(core.alerts.createSummary()); if(peerNodeStatuses.length>0){ /* node status values */ long nodeUptimeSeconds = (now - node.startupTime) / 1000; int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimateSession = node.getNetworkSizeEstimate(-1); int networkSizeEstimateRecent = 0; if(nodeUptimeSeconds > (48*60*60)) { // 48 hours networkSizeEstimateRecent = node.getNetworkSizeEstimate(now - (48*60*60*1000)); // 48 hours } DecimalFormat fix4 = new DecimalFormat("0.0000"); double routingMissDistance = node.routingMissDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedOffPercent = node.backedOffPercent.currentValue(); String nodeUptimeString = TimeUtil.formatTime(nodeUptimeSeconds * 1000); // *1000 to convert to milliseconds // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimateSession:\u00a0" + networkSizeEstimateSession + "\u00a0nodes"); if(nodeUptimeSeconds > (48*60*60)) { // 48 hours overviewList.addChild("li", "networkSizeEstimateRecent:\u00a0" + networkSizeEstimateRecent + "\u00a0nodes"); } overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "routingMissDistance:\u00a0" + fix4.format(routingMissDistance)); overviewList.addChild("li", "backedOffPercent:\u00a0" + fix1.format(backedOffPercent)); overviewList.addChild("li", "pInstantReject:\u00a0" + fix1.format(node.pRejectIncomingInstantly())); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } long[] total = IOStatisticCollector.getTotalIO(); long total_output_rate = (total[0]) / nodeUptimeSeconds; long total_input_rate = (total[1]) / nodeUptimeSeconds; long totalPayload = node.getTotalPayloadSent(); long total_payload_rate = totalPayload / nodeUptimeSeconds; int percent = (int) (100 * totalPayload / total[0]); activityList.addChild("li", "Total Output:\u00a0" + SizeUtil.formatSize(total[0], true) + "\u00a0(" + SizeUtil.formatSize(total_output_rate, true) + "ps)"); activityList.addChild("li", "Payload Output:\u00a0" + SizeUtil.formatSize(totalPayload, true) + "\u00a0(" + SizeUtil.formatSize(total_payload_rate, true) + "ps) ("+percent+"%)"); activityList.addChild("li", "Total Input:\u00a0" + SizeUtil.formatSize(total[1], true) + "\u00a0(" + SizeUtil.formatSize(total_input_rate, true) + "ps)"); long[] rate = node.getNodeIOStats(); long delta = (rate[5] - rate[2]) / 1000; long output_rate = (rate[3] - rate[0]) / delta; long input_rate = (rate[4] - rate[1]) / delta; SubConfig nodeConfig = node.config.get("node"); int outputBandwidthLimit = nodeConfig.getInt("outputBandwidthLimit"); int inputBandwidthLimit = nodeConfig.getInt("inputBandwidthLimit"); if(inputBandwidthLimit == -1) { inputBandwidthLimit = outputBandwidthLimit * 4; } activityList.addChild("li", "Output Rate:\u00a0" + SizeUtil.formatSize(output_rate, true) + "ps (of\u00a0"+SizeUtil.formatSize(outputBandwidthLimit, true)+"ps)"); activityList.addChild("li", "Input Rate:\u00a0" + SizeUtil.formatSize(input_rate, true) + "ps (of\u00a0"+SizeUtil.formatSize(inputBandwidthLimit, true)+"ps)"); } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { HTMLNode peerStatsConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_connected", "Connected: We're successfully connected to these nodes", "border-bottom: 1px dotted; cursor: help;" }, "Connected"); peerStatsConnectedListItem.addChild("span", ":\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { HTMLNode peerStatsRoutingBackedOffListItem = peerStatsList.addChild("li").addChild("span"); peerStatsRoutingBackedOffListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_backed_off", (advancedEnabled ? "Connected but backed off: These peers are connected but we're backed off of them" : "Busy: These peers are connected but they're busy") + ", so the node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, advancedEnabled ? "Backed off" : "Busy"); peerStatsRoutingBackedOffListItem.addChild("span", ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { HTMLNode peerStatsTooNewListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooNewListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_new", "Connected but too new: These peers' minimum mandatory build is higher than this node's build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too New"); peerStatsTooNewListItem.addChild("span", ":\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { HTMLNode peerStatsTooOldListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooOldListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_old", "Connected but too old: This node's minimum mandatory build is higher than these peers' build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too Old"); peerStatsTooOldListItem.addChild("span", ":\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { HTMLNode peerStatsDisconnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisconnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disconnected", "Not connected: No connection so far but this node is continuously trying to connect", "border-bottom: 1px dotted; cursor: help;" }, "Disconnected"); peerStatsDisconnectedListItem.addChild("span", ":\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { HTMLNode peerStatsNeverConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsNeverConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_never_connected", "Never Connected: The node has never connected with these peers", "border-bottom: 1px dotted; cursor: help;" }, "Never Connected"); peerStatsNeverConnectedListItem.addChild("span", ":\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { HTMLNode peerStatsDisabledListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisabledListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disabled", "Not connected and disabled: because the user has instructed to not connect to peers ", "border-bottom: 1px dotted; cursor: help;" }, "Disabled"); peerStatsDisabledListItem.addChild("span", ":\u00a0" + numberOfDisabled); } if (numberOfBursting > 0) { HTMLNode peerStatsBurstingListItem = peerStatsList.addChild("li").addChild("span"); peerStatsBurstingListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_bursting", "Not connected and bursting: this node is, for a short period, trying to connect to these peers because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Bursting"); peerStatsBurstingListItem.addChild("span", ":\u00a0" + numberOfBursting); } if (numberOfListening > 0) { HTMLNode peerStatsListeningListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListeningListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listening", "Not connected but listening: this node won't try to connect to these peers very often because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listening"); peerStatsListeningListItem.addChild("span", ":\u00a0" + numberOfListening); } if (numberOfListenOnly > 0) { HTMLNode peerStatsListenOnlyListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListenOnlyListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listen_only", "Not connected and listen only: this node won't try to connect to these peers at all because the user has set ListenOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listen Only"); peerStatsListenOnlyListItem.addChild("span", ":\u00a0" + numberOfListenOnly); } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE if(fProxyJavascriptEnabled) { StringBuffer jsBuf = new StringBuffer(); // FIXME: There's probably some icky Javascript in here (this is the first thing that worked for me); feel free to fix up to Javascript guru standards jsBuf.append( " function peerNoteChange() {\n" ); jsBuf.append( " var theobj = document.getElementById( \"action\" );\n" ); jsBuf.append( " var length = theobj.options.length;\n" ); jsBuf.append( " for (var i = 0; i < length; i++) {\n" ); jsBuf.append( " if(theobj.options[i] == \"update_notes\") {\n" ); jsBuf.append( " theobj.options[i].select = true;\n" ); jsBuf.append( " } else {\n" ); jsBuf.append( " theobj.options[i].select = false;\n" ); jsBuf.append( " }\n" ); jsBuf.append( " }\n" ); jsBuf.append( " theobj.value=\"update_notes\";\n" ); //jsBuf.append( " document.getElementById( \"peersForm\" ).submit();\n" ); jsBuf.append( " document.getElementById( \"peersForm\" ).doAction.click();\n" ); jsBuf.append( " }\n" ); jsBuf.append( " function peerNoteBlur() {\n" ); jsBuf.append( " var theobj = document.getElementById( \"action\" );\n" ); jsBuf.append( " var length = theobj.options.length;\n" ); jsBuf.append( " for (var i = 0; i < length; i++) {\n" ); jsBuf.append( " if(theobj.options[i] == \"update_notes\") {\n" ); jsBuf.append( " theobj.options[i].select = true;\n" ); jsBuf.append( " } else {\n" ); jsBuf.append( " theobj.options[i].select = false;\n" ); jsBuf.append( " }\n" ); jsBuf.append( " }\n" ); jsBuf.append( " theobj.value=\"update_notes\";\n" ); jsBuf.append( " }\n" ); contentNode.addChild("script", "type", "text/javascript").addChild("%", jsBuf.toString()); } HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodeStatuses.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = ctx.addFormChild(peerTableInfoboxContent, ".", "peersForm"); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=status&inversed=true" : "?sortBy=status")).addChild("#", "Status"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=name&inversed=true" : "?sortBy=name")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's name. Click on the name link to send the node a N2NTM (Node To Node Text Message)", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=address&inversed=true" : "?sortBy=address")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's network address as IP:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=version&inversed=true" : "?sortBy=version")).addChild("#", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=location&inversed=true" : "?sortBy=location")).addChild("#", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Other node busy? Display: Percentage of time the node is overloaded, Current wait time remaining (0=not overloaded)/total/last overload reason", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Probability of the node rejecting a request due to overload or causing a timeout.", "border-bottom: 1px dotted; cursor: help;" }, "Overload Probability"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node was connected or last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=privnote&inversed=true" : "?sortBy=privnote")).addChild("span", new String[] { "title", "style" }, new String[] { "A private note concerning this peer", "border-bottom: 1px dotted; cursor: help;" }, "Private Note"); if(advancedEnabled) { peerTableHeaderRow.addChild("th", "%\u00a0Time Routable"); peerTableHeaderRow.addChild("th", "Total\u00a0Traffic\u00a0(in/out)"); } for (int peerIndex = 0, peerCount = peerNodeStatuses.length; peerIndex < peerCount; peerIndex++) { PeerNodeStatus peerNodeStatus = peerNodeStatuses[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNodeStatus.hashCode() }); // status column String statusString = peerNodeStatus.getStatusName(); if (!advancedEnabled && (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNodeStatus.getStatusCSSName(), statusString + (peerNodeStatus.isFetchingARK() ? "*" : "")); // name column peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNodeStatus.hashCode(), peerNodeStatus.getName()); // address column if (advancedEnabled) { String pingTime = ""; if (peerNodeStatus.isConnected()) { pingTime = " (" + (int) peerNodeStatus.getAveragePingTime() + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNodeStatus.getPeerAddress() != null) ? (peerNodeStatus.getPeerAddress() + ':' + peerNodeStatus.getPeerPort()) : ("(unknown address)")) + pingTime); } // version column if (peerNodeStatus.getStatusValue() != Node.PEER_NODE_STATUS_NEVER_CONNECTED && (peerNodeStatus.isPublicInvalidVersion() || peerNodeStatus.isPublicReverseInvalidVersion())) { // Don't draw attention to a version problem if NEVER CONNECTED peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_version_problem", peerNodeStatus.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", peerNodeStatus.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNodeStatus.getLocation())); } if (advancedEnabled) { // backoff column HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNodeStatus.getBackedOffPercent())); int backoff = (int) (Math.max(peerNodeStatus.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", ' ' + String.valueOf(backoff / 1000) + '/' + String.valueOf(peerNodeStatus.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNodeStatus.getLastBackoffReason() == null) ? "" : ('/' + (peerNodeStatus.getLastBackoffReason()))); // overload probability column HTMLNode pRejectCell = peerRow.addChild("td", "class", "peer-backoff"); // FIXME pRejectCell.addChild("#", fix1.format(peerNodeStatus.getPReject())); } // idle column long idle = peerNodeStatus.getTimeLastRoutable(); if (peerNodeStatus.isRoutable()) { idle = peerNodeStatus.getTimeLastConnectionCompleted(); } else if (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNodeStatus.getPeerAddedTime(); } if(!peerNodeStatus.isConnected() && (now - idle) > (2 * 7 * 24 * 60 * 60 * (long) 1000)) { // 2 weeks peerRow.addChild("td", "class", "peer-idle").addChild("span", "class", "peer_idle_old", idleToString(now, idle)); } else { peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); } // private darknet node comment note column if(fProxyJavascriptEnabled) { peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "onBlur", "onChange", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", "peerNoteBlur();", "peerNoteChange();", peerNodeStatus.getPrivateDarknetCommentNote() }); } else { peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", peerNodeStatus.getPrivateDarknetCommentNote() }); } if(advancedEnabled) { // percent of time connected column peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", fix1.format(peerNodeStatus.getPercentTimeRoutableConnection())); // total traffic column peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", SizeUtil.formatSize(peerNodeStatus.getTotalInputBytes())+" / "+SizeUtil.formatSize(peerNodeStatus.getTotalOutputBytes())); } if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 9 : 5)); // = total table row width - 2 from above colspan HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNodeStatus.getLocalMessagesReceived().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNodeStatus.getLocalMessagesReceived().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNodeStatus.getLocalMessagesSent().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNodeStatus.getLocalMessagesSent().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } HTMLNode actionSelect = peerForm.addChild("select", new String[] { "id", "name" }, new String[] { "action", "action" }); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "send_n2ntm", "Send N2NTM to selected peers"); actionSelect.addChild("option", "value", "update_notes", "Update changed private notes"); if(advancedEnabled) { actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly (only set this if you have a static IP and are not NATed and neither is the peer)"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly (not recommended)"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "set_allow_local", "On selected peers, set allowLocalAddresses (useful if you are connecting to another node on the same LAN)"); actionSelect.addChild("option", "value", "clear_allow_local", "On selected peers, clear allowLocalAddresses"); actionSelect.addChild("option", "value", "set_ignore_source_port", "On selected peers, set ignoreSourcePort (try this if behind an evil corporate firewall; otherwise not recommended)"); actionSelect.addChild("option", "value", "clear_ignore_source_port", "On selected peers, clear ignoreSourcePort"); } actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "doAction", "Go" }); } // END PEER TABLE } // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = ctx.addFormChild(peerAdditionContent, ".", "addPeerForm"); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter a node description: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name", "size", "maxlength", "value" }, new String[] { "peerPrivateNote", "text", "peerPrivateNote", "16", "250", "" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.fref", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); // our ports HTMLNode portInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); portInfobox.addChild("div", "class", "infobox-header", "Node's Ports"); HTMLNode portInfoboxContent = portInfobox.addChild("div", "class", "infobox-content"); HTMLNode portInfoList = portInfoboxContent.addChild("ul"); SimpleFieldSet fproxyConfig = node.config.get("fproxy").exportFieldSet(true); SimpleFieldSet fcpConfig = node.config.get("fcp").exportFieldSet(true); SimpleFieldSet tmciConfig = node.config.get("console").exportFieldSet(true); portInfoList.addChild("li", "FNP:\u00a0" + node.getFNPPort() + "/udp\u00a0\u00a0\u00a0(between nodes; this is usually the only port that you might want to port forward)"); try { if(fproxyConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "FProxy:\u00a0" + fproxyConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(this web interface)"); } else { portInfoList.addChild("li", "FProxy:\u00a0disabled/tcp\u00a0\u00a0\u00a0(this web interface)"); } if(fcpConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "FCP:\u00a0" + fcpConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(for Freenet clients such as Frost and Thaw)"); } else { portInfoList.addChild("li", "FCP:\u00a0disabled/tcp\u00a0\u00a0\u00a0(for Freenet clients such as Frost and Thaw)"); } if(tmciConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "TMCI:\u00a0" + tmciConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(simple telnet-based command-line interface)"); } else { portInfoList.addChild("li", "TMCI:\u00a0disabled/tcp\u00a0\u00a0\u00a0(simple telnet-based command-line interface)"); } } catch (FSParseException e) { // ignore } StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/c0ace656fce78eb9788046a23b7c72f8de626007/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
6385,
25238,
590,
273,
394,
25238,
12,
1650,
1769,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
74,
1734,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
18,
10492,
10663,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6385,
1250,
16111,
1526,
273,
756,
18,
291,
23618,
40,
1313,
2758,
1526,
5621,
202,
202,
6385,
1250,
284,
3886,
27129,
1526,
273,
756,
18,
291,
42,
3886,
27129,
1526,
5621,
9506,
202,
20308,
11090,
1459,
7691,
1195,
202,
202,
6813,
907,
1482,
8526,
4261,
907,
15220,
273,
756,
18,
588,
6813,
907,
15220,
5621,
202,
202,
12726,
18,
3804,
12,
12210,
907,
15220,
16,
394,
13359,
1435,
288,
1082,
202,
482,
509,
3400,
12,
921,
1122,
16,
1033,
2205,
13,
288,
9506,
202,
474,
563,
273,
374,
31,
9506,
202,
6494,
13532,
273,
638,
31,
9506,
202,
6813,
907,
1482,
1122,
907,
273,
261,
6813,
907,
1482,
13,
1122,
31,
9506,
202,
6813,
907,
1482,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
202,
6385,
25238,
590,
273,
394,
25238,
12,
1650,
1769,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
74,
1734,
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,
2
] |
parseCandCPP(buffer.toString(), true, true);
|
parseCandCPP(buffer.toString(), true, 0);
|
public void test6_10_3_5s8() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("#define OBJ_LIKE1 (1-1)\n"); //$NON-NLS-1$ buffer.append("#define OBJ_LIKE2 \\n"); //$NON-NLS-1$ buffer.append(" (1-1) \\n"); //$NON-NLS-1$ buffer.append("#define FUNC_LIKE1(a) ( a )\n"); //$NON-NLS-1$ buffer.append("#define FUNC_LIKE2( a )( \\n"); //$NON-NLS-1$ buffer.append(" a \\n"); //$NON-NLS-1$ buffer.append(" )\n"); //$NON-NLS-1$ parseCandCPP(buffer.toString(), true, true); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CSpecTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CSpecTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
26,
67,
2163,
67,
23,
67,
25,
87,
28,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
7,
11255,
9730,
46,
67,
21538,
21,
261,
21,
17,
21,
5153,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
7,
11255,
9730,
46,
67,
21538,
22,
565,
1736,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
565,
1613,
18,
6923,
2932,
540,
261,
21,
17,
21,
13,
4202,
1736,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
7,
11255,
478,
21163,
67,
21538,
21,
12,
69,
13,
261,
279,
262,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
7,
11255,
478,
21163,
67,
21538,
22,
12,
279,
262,
12,
2868,
1736,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
565,
1613,
18,
6923,
2932,
1171,
279,
10792,
1736,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
4766,
1377,
262,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2670,
39,
464,
4258,
52,
12,
4106,
18,
10492,
9334,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
26,
67,
2163,
67,
23,
67,
25,
87,
28,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
7,
11255,
9730,
46,
67,
21538,
21,
261,
21,
17,
21,
5153,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
7,
11255,
9730,
46,
67,
21538,
22,
565,
1736,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
565,
1613,
18,
6923,
2932,
540,
261,
21,
17,
21,
13,
4202,
1736,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
7,
11255,
478,
21163,
67,
21538,
21,
12,
69,
13,
261,
279,
2
] |
DPConfig config = new DPConfig(self);
|
DPConfig config = createConfig(self);
|
private DPConfig makeConfig(SIRStream self) { DPConfig config = new DPConfig(self); configMap.put(self, config); return config; }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/41137c12a032fc425dea0660074adcbccad4be18/DynamicProgPartitioner.java/buggy/streams/src/at/dms/kjc/sir/lowering/partition/DynamicProgPartitioner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
463,
52,
809,
1221,
809,
12,
2320,
54,
1228,
365,
13,
288,
1082,
565,
463,
52,
809,
642,
273,
394,
463,
52,
809,
12,
2890,
1769,
1082,
565,
28607,
18,
458,
12,
2890,
16,
642,
1769,
1082,
565,
327,
642,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
463,
52,
809,
1221,
809,
12,
2320,
54,
1228,
365,
13,
288,
1082,
565,
463,
52,
809,
642,
273,
394,
463,
52,
809,
12,
2890,
1769,
1082,
565,
28607,
18,
458,
12,
2890,
16,
642,
1769,
1082,
565,
327,
642,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static final String[] getEnvironmentVariablesForRuntimeExec() { KettleVariables vars = KettleVariables.getInstance(); Properties sysprops = new Properties(); sysprops.putAll( getEnv() ); sysprops.putAll( System.getProperties() ); sysprops.putAll( vars.getProperties() ); String[] envp = new String[sysprops.size()]; ArrayList list = new ArrayList(sysprops.keySet()); for (int i=0;i<list.size();i++) { String var = (String)list.get(i); String val = sysprops.getProperty(var); envp[i] = var+"="+val; } return envp; }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/dc33d0d4722469c99569357875e2af19589915e1/EnvUtil.java/clean/kettle/src/be/ibridge/kettle/core/util/EnvUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6385,
780,
8526,
588,
5494,
6158,
1290,
5576,
1905,
1435,
95,
47,
278,
5929,
6158,
4699,
33,
47,
278,
5929,
6158,
18,
588,
1442,
5621,
626,
672,
77,
403,
1900,
9693,
33,
2704,
2297,
5621,
9499,
9693,
18,
458,
1595,
12,
588,
3491,
10663,
9499,
9693,
18,
458,
1595,
12,
3163,
18,
588,
2297,
10663,
9499,
9693,
18,
458,
1595,
12,
4699,
18,
588,
2297,
10663,
780,
8526,
3074,
84,
33,
2704,
780,
63,
9499,
9693,
18,
1467,
1435,
15533,
19558,
1098,
33,
2704,
19558,
12,
9499,
9693,
18,
856,
694,
10663,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
1098,
18,
1467,
5621,
77,
27245,
95,
780,
1401,
28657,
780,
13,
1098,
18,
588,
12,
77,
1769,
780,
1125,
33,
9499,
9693,
18,
588,
1396,
12,
1401,
1769,
3074,
84,
63,
77,
65,
33,
1401,
9078,
1546,
15,
1125,
31,
97,
2463,
3074,
84,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6385,
780,
8526,
588,
5494,
6158,
1290,
5576,
1905,
1435,
95,
47,
278,
5929,
6158,
4699,
33,
47,
278,
5929,
6158,
18,
588,
1442,
5621,
626,
672,
77,
403,
1900,
9693,
33,
2704,
2297,
5621,
9499,
9693,
18,
458,
1595,
12,
588,
3491,
10663,
9499,
9693,
18,
458,
1595,
12,
3163,
18,
588,
2297,
10663,
9499,
9693,
18,
458,
1595,
12,
4699,
18,
588,
2297,
10663,
780,
8526,
3074,
84,
33,
2704,
780,
63,
9499,
9693,
18,
1467,
1435,
15533,
19558,
1098,
33,
2704,
19558,
12,
9499,
9693,
18,
856,
694,
10663,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
1098,
18,
1467,
5621,
77,
27245,
95,
780,
1401,
28657,
780,
13,
1098,
18,
588,
12,
2
] |
||
return BugzillaPlugin.REPOSITORY_KIND;
|
return BugzillaCorePlugin.REPOSITORY_KIND;
|
public String getRepositoryKind() { return BugzillaPlugin.REPOSITORY_KIND; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1f907f8182ce6e680d7fe41b80359fd3876c1dd2/BugzillaTask.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8261,
5677,
1435,
288,
202,
202,
2463,
16907,
15990,
3773,
18,
862,
30986,
67,
47,
2356,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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,
482,
514,
8261,
5677,
1435,
288,
202,
202,
2463,
16907,
15990,
3773,
18,
862,
30986,
67,
47,
2356,
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
] |
Point size = viewer.getControl().computeSize(viewerComposite.getBounds().width,heightHint);
|
Point size = viewer.getControl().computeSize( viewerComposite.getBounds().width, heightHint);
|
void handleDetailsButtonSelect() { Shell shell = getShell(); Point shellSize = shell.getSize(); Composite composite = (Composite) getDialogArea(); if (viewer != null) { viewer.getControl().dispose(); viewer = null; composite.layout(); shell.setSize(shellSize.x, shellSize.y - viewerHeight); detailsButton.setText(ProgressMessages.getString("ProgressMonitorJobsDialog.DetailsTitle")); //$NON-NLS-1$ } else { viewer = new ProgressTreeViewer(viewerComposite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); viewer.setUseHashlookup(true); viewer.setSorter(new ViewerSorter() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } }); IContentProvider provider = new ProgressTreeContentProvider(viewer); viewer.setContentProvider(provider); viewer.setInput(provider); viewer.setLabelProvider(new ProgressLabelProvider()); GridData viewerData = new GridData( GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.FILL_BOTH); int heightHint = convertHeightInCharsToPixels(10); viewerData.heightHint = heightHint; viewer.getControl().setLayoutData(viewerData); Point size = viewer.getControl().computeSize(viewerComposite.getBounds().width,heightHint); viewer.getControl().setSize(size); viewerComposite.layout(); viewer.getControl().setVisible(true); viewerHeight = viewer.getControl().getBounds().height; detailsButton.setText(ProgressMessages.getString("ProgressMonitorJobsDialog.HideTitle")); //$NON-NLS-1$ shell.setSize(shellSize.x, shellSize.y + viewerHeight); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b6cb8c70f8c0889683835318ae1789705d8ba812/ProgressMonitorJobsDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorJobsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1640,
3790,
3616,
3391,
1435,
288,
202,
202,
13220,
5972,
273,
7932,
1165,
5621,
202,
202,
2148,
5972,
1225,
273,
5972,
18,
588,
1225,
5621,
202,
202,
9400,
9635,
273,
261,
9400,
13,
31774,
5484,
5621,
202,
202,
430,
261,
25256,
480,
446,
13,
288,
1082,
202,
25256,
18,
588,
3367,
7675,
2251,
4150,
5621,
1082,
202,
25256,
273,
446,
31,
1082,
202,
27676,
18,
6741,
5621,
1082,
202,
10304,
18,
542,
1225,
12,
10304,
1225,
18,
92,
16,
5972,
1225,
18,
93,
300,
14157,
2686,
1769,
1082,
202,
6395,
3616,
18,
542,
1528,
12,
5491,
5058,
18,
588,
780,
2932,
5491,
7187,
7276,
6353,
18,
3790,
4247,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
469,
288,
1082,
202,
25256,
273,
394,
10980,
2471,
18415,
12,
25256,
9400,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
38,
7954,
1769,
1082,
202,
25256,
18,
542,
3727,
2310,
8664,
12,
3767,
1769,
1082,
202,
25256,
18,
542,
24952,
12,
2704,
4441,
264,
24952,
1435,
288,
9506,
202,
20308,
6862,
380,
261,
5836,
17,
24060,
13,
6862,
380,
4405,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
24952,
7,
9877,
12,
3341,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
16,
6862,
380,
1377,
2252,
18,
4936,
18,
921,
16,
2252,
18,
4936,
18,
921,
13,
6862,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1640,
3790,
3616,
3391,
1435,
288,
202,
202,
13220,
5972,
273,
7932,
1165,
5621,
202,
202,
2148,
5972,
1225,
273,
5972,
18,
588,
1225,
5621,
202,
202,
9400,
9635,
273,
261,
9400,
13,
31774,
5484,
5621,
202,
202,
430,
261,
25256,
480,
446,
13,
288,
1082,
202,
25256,
18,
588,
3367,
7675,
2251,
4150,
5621,
1082,
202,
25256,
273,
446,
31,
1082,
202,
27676,
18,
6741,
5621,
1082,
202,
10304,
18,
542,
1225,
12,
10304,
1225,
18,
92,
16,
5972,
1225,
18,
93,
300,
14157,
2686,
1769,
1082,
202,
6395,
3616,
18,
542,
1528,
12,
5491,
5058,
18,
588,
780,
2932,
5491,
7187,
7276,
6353,
18,
3790,
4247,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
2
] |
JPanel subpanel = new JPanel ();
|
JPanel subpanel = new JPanel();
|
public ProcessPanel(InstallerFrame parent, InstallData idata) throws IOException { super(parent, idata); this.worker = new ProcessPanelWorker (idata, this); JLabel heading = new JLabel(); Font font = heading.getFont (); font = font.deriveFont (Font.BOLD, font.getSize()*2.0f); heading.setFont(font); heading.setHorizontalAlignment(SwingConstants.CENTER); heading.setText(parent.langpack.getString ("ProcessPanel.heading")); heading.setVerticalAlignment(SwingConstants.TOP); setLayout (new BorderLayout ()); add (heading, BorderLayout.NORTH); // put everything but the heading into it's own panel // (to center it vertically) JPanel subpanel = new JPanel (); subpanel.setAlignmentX(0.5f); subpanel.setLayout(new BoxLayout (subpanel, BoxLayout.Y_AXIS)); this.processLabel = new JLabel (); this.processLabel.setAlignmentX(0.5f); this.processLabel.setText (" "); subpanel.add (this.processLabel); this.overallProgressBar = new JProgressBar (); this.overallProgressBar.setAlignmentX(0.5f); this.overallProgressBar.setStringPainted(true); subpanel.add (this.overallProgressBar); this.outputPane = new JTextArea (); this.outputPane.setEditable(false); this.outputScrollPane = new JScrollPane (this.outputPane); subpanel.add (this.outputScrollPane); add (subpanel, BorderLayout.CENTER); }
|
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/ProcessPanel.java/clean/src/lib/com/izforge/izpack/panels/ProcessPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4389,
5537,
12,
18678,
3219,
982,
16,
10284,
751,
612,
396,
13,
377,
1216,
1860,
225,
288,
565,
2240,
12,
2938,
16,
612,
396,
1769,
565,
333,
18,
10124,
273,
394,
4389,
5537,
6671,
261,
350,
396,
16,
333,
1769,
565,
21403,
11053,
273,
394,
21403,
5621,
565,
10063,
3512,
273,
11053,
18,
588,
5711,
261,
1769,
565,
3512,
273,
3512,
18,
765,
688,
5711,
261,
5711,
18,
38,
11846,
16,
3512,
18,
588,
1225,
1435,
14,
22,
18,
20,
74,
1769,
565,
11053,
18,
542,
5711,
12,
5776,
1769,
565,
11053,
18,
542,
14457,
11535,
12,
6050,
310,
2918,
18,
19835,
1769,
565,
11053,
18,
542,
1528,
12,
2938,
18,
4936,
2920,
18,
588,
780,
7566,
2227,
5537,
18,
19948,
7923,
1769,
565,
11053,
18,
542,
15704,
11535,
12,
6050,
310,
2918,
18,
10462,
1769,
3639,
18479,
261,
2704,
30814,
1832,
1769,
565,
527,
261,
19948,
16,
30814,
18,
50,
28212,
1769,
3639,
368,
1378,
7756,
1496,
326,
11053,
1368,
518,
1807,
4953,
6594,
565,
368,
261,
869,
4617,
518,
3173,
6478,
13,
565,
24048,
720,
13916,
273,
394,
24048,
5621,
3639,
720,
13916,
18,
542,
11535,
60,
12,
20,
18,
25,
74,
1769,
565,
720,
13916,
18,
542,
3744,
12,
2704,
8549,
3744,
261,
1717,
13916,
16,
8549,
3744,
18,
61,
67,
25614,
10019,
3639,
333,
18,
2567,
2224,
273,
394,
21403,
261,
1769,
565,
333,
18,
2567,
2224,
18,
542,
11535,
60,
12,
20,
18,
25,
74,
1769,
565,
333,
18,
2567,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4389,
5537,
12,
18678,
3219,
982,
16,
10284,
751,
612,
396,
13,
377,
1216,
1860,
225,
288,
565,
2240,
12,
2938,
16,
612,
396,
1769,
565,
333,
18,
10124,
273,
394,
4389,
5537,
6671,
261,
350,
396,
16,
333,
1769,
565,
21403,
11053,
273,
394,
21403,
5621,
565,
10063,
3512,
273,
11053,
18,
588,
5711,
261,
1769,
565,
3512,
273,
3512,
18,
765,
688,
5711,
261,
5711,
18,
38,
11846,
16,
3512,
18,
588,
1225,
1435,
14,
22,
18,
20,
74,
1769,
565,
11053,
18,
542,
5711,
12,
5776,
1769,
565,
11053,
18,
542,
14457,
11535,
12,
6050,
310,
2918,
18,
19835,
1769,
565,
11053,
18,
542,
1528,
12,
2938,
18,
4936,
2920,
18,
588,
780,
7566,
2
] |
propName = getAnnotation(props[i],TAG_AT_NAME,null);
|
propName = getAnnotation(props[i], TAG_AT_NAME, null);
|
private void bindProperties(JProperty[] props, Map props2issetters, SchemaPropertyFacade facade) { for(int i=0; i<props.length; i++) { if (getAnnotation(props[i],TAG_EL_EXCLUDE,false)) { logVerbose("Marked excluded, skipping",props[i]); continue; } if (props[i].getGetter() == null || props[i].getSetter() == null) { logVerbose("Does not have both getter and setter, skipping",props[i]); continue; // REVIEW this might have to change someday } String propName; { // determine the property name to use and set it propName = getAnnotation(props[i],TAG_AT_NAME,null); if (propName != null) { facade.newAttributeProperty(props[i]); facade.setSchemaName(propName); } else { facade.newElementProperty(props[i]); facade.setSchemaName(getAnnotation (props[i],TAG_EL_NAME,props[i].getSimpleName())); } } { // determine the property type to use and set it JClass propType = null; String annotatedType = getAnnotation(props[i],TAG_EL_ASTYPE,null); if (annotatedType == null) { facade.setType(propType = props[i].getType()); } else { if (props[i].getType().isArrayType()) { //THIS IS A QUICK GROSS HACK THAT SHOULD BE REMOVED. //IF SOMEONE WANTS TO AS TYPE AN ARRAY PROPERTY, THEY NEED //TO ASTYPE IT TO THE ARRAY TYPE THEMSELVES annotatedType = "[L"+annotatedType+";"; } propType = props[i].getType().forName(annotatedType); if (propType.isUnresolvedType()) { logError("Could not find class named '"+ propType.getQualifiedName()+"'",props[i]); } else { facade.setType(propType); } } } { // set the getters and setters facade.setGetter(props[i].getGetter()); facade.setSetter(props[i].getSetter()); } { JMethod issetter = (JMethod)props2issetters.get(propName); if (issetter != null) facade.setIssetter(issetter); } { // determine if the property is nillable JAnnotation a = props[i].getAnnotation(TAG_EL_NILLABLE); if (a != null) { // if the tag is there but empty, set it to true. is that weird? JAnnotationValue val = a.getValue(JAnnotation.SINGLE_VALUE_NAME); if (val == null || val.asString().trim().length() == 0) { facade.setNillable(true); } else { facade.setNillable(val.asBoolean()); } } } } }
|
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/45897e743d95d73fc28f6c51e236ad400a4abdb0/Java2Schema.java/clean/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2Schema.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1993,
2297,
12,
46,
1396,
8526,
3458,
16,
17311,
1635,
3458,
22,
21648,
5432,
16,
17311,
4611,
1396,
12467,
11270,
13,
288,
565,
364,
12,
474,
277,
33,
20,
31,
277,
32,
9693,
18,
2469,
31,
277,
27245,
288,
1377,
309,
261,
588,
3257,
12,
9693,
63,
77,
6487,
7927,
67,
2247,
67,
2294,
14829,
16,
5743,
3719,
288,
3639,
613,
14489,
2932,
21486,
8845,
16,
14195,
3113,
9693,
63,
77,
19226,
3639,
1324,
31,
1377,
289,
1377,
309,
261,
9693,
63,
77,
8009,
588,
8461,
1435,
422,
446,
747,
3458,
63,
77,
8009,
588,
8465,
1435,
422,
446,
13,
288,
3639,
613,
14489,
2932,
10154,
486,
1240,
3937,
7060,
471,
7794,
16,
14195,
3113,
9693,
63,
77,
19226,
3639,
1324,
31,
368,
2438,
12145,
333,
4825,
1240,
358,
2549,
4737,
329,
528,
1377,
289,
1377,
514,
9994,
31,
1377,
288,
368,
4199,
326,
1272,
508,
358,
999,
471,
444,
518,
3639,
9994,
273,
9887,
12,
9693,
63,
77,
6487,
8358,
67,
789,
67,
1985,
16,
446,
1769,
3639,
309,
261,
5986,
461,
480,
446,
13,
288,
1850,
11270,
18,
2704,
1499,
1396,
12,
9693,
63,
77,
19226,
1850,
11270,
18,
542,
3078,
461,
12,
5986,
461,
1769,
3639,
289,
469,
288,
1850,
11270,
18,
2704,
1046,
1396,
12,
9693,
63,
77,
19226,
1850,
11270,
18,
542,
3078,
461,
12,
588,
3257,
7682,
261,
9693,
63,
77,
6487,
7927,
67,
2247,
67,
1985,
16,
9693,
63,
77,
8009,
588,
5784,
461,
1435,
10019,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1993,
2297,
12,
46,
1396,
8526,
3458,
16,
17311,
1635,
3458,
22,
21648,
5432,
16,
17311,
4611,
1396,
12467,
11270,
13,
288,
565,
364,
12,
474,
277,
33,
20,
31,
277,
32,
9693,
18,
2469,
31,
277,
27245,
288,
1377,
309,
261,
588,
3257,
12,
9693,
63,
77,
6487,
7927,
67,
2247,
67,
2294,
14829,
16,
5743,
3719,
288,
3639,
613,
14489,
2932,
21486,
8845,
16,
14195,
3113,
9693,
63,
77,
19226,
3639,
1324,
31,
1377,
289,
1377,
309,
261,
9693,
63,
77,
8009,
588,
8461,
1435,
422,
446,
747,
3458,
63,
77,
8009,
588,
8465,
1435,
422,
446,
13,
288,
3639,
613,
14489,
2932,
10154,
486,
1240,
3937,
7060,
471,
7794,
16,
14195,
3113,
9693,
2
] |
if (a == null) return null; Parameter[] a2 = new Parameter[a.length]; for (int i = 0; i < a.length; i++) a2[i] = (Parameter) a[i].clone(); return a2; }
|
if (a == null) return null; Parameter[] a2 = new Parameter[a.length]; for (int i = 0; i < a.length; i++) a2[i] = (Parameter) a[i].clone(); return a2; }
|
static Parameter[] cloneArray(Parameter[] a) { if (a == null) return null; Parameter[] a2 = new Parameter[a.length]; for (int i = 0; i < a.length; i++) a2[i] = (Parameter) a[i].clone(); return a2; }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/Parameter.java/buggy/src/main/mondrian/olap/Parameter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
5498,
8526,
3236,
1076,
12,
1662,
8526,
279,
13,
288,
202,
202,
430,
261,
69,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
1662,
8526,
279,
22,
273,
394,
5498,
63,
69,
18,
2469,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
279,
18,
2469,
31,
277,
27245,
1082,
202,
69,
22,
63,
77,
65,
273,
261,
1662,
13,
279,
63,
77,
8009,
14056,
5621,
202,
202,
2463,
279,
22,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
5498,
8526,
3236,
1076,
12,
1662,
8526,
279,
13,
288,
202,
202,
430,
261,
69,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
1662,
8526,
279,
22,
273,
394,
5498,
63,
69,
18,
2469,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
279,
18,
2469,
31,
277,
27245,
1082,
202,
69,
22,
63,
77,
65,
273,
261,
1662,
13,
279,
63,
77,
8009,
14056,
5621,
202,
202,
2463,
279,
22,
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
] |
updateRadioButtons(e);
|
updateState(e);
|
public void widgetSelected(SelectionEvent e) { updateRadioButtons(e); updateDescription(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17fa4a2150ef2872ac6b2428a48c48c0b32c45af/WizardPreferencesPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
2725,
19984,
14388,
12,
73,
1769,
9506,
202,
2725,
3291,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
2725,
19984,
14388,
12,
73,
1769,
9506,
202,
2725,
3291,
5621,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
retValue.add( new NotificationRecordTask( content, event, container .getRoot( ) ) );
|
retValue.add( new NotificationRecordTask( content, event, container .getRoot( ) ) ); }
|
protected List getPostTasks( ) { List retValue = new ArrayList( ); retValue.addAll( super.getPostTasks( ) ); if ( container instanceof TableItem || container instanceof TableGroup || container instanceof TableRow ) { TableItem table = LayoutUtil.getTableContainer( container ); if ( table != null ) retValue.add( new LayoutActivityTask( module, table ) ); } // Send the content changed event to the container. NotificationEvent event = null; if ( add && state != UNDONE_STATE || !add && state == UNDONE_STATE ) event = new ContentEvent( container, content, slotID, ContentEvent.ADD ); else event = new ContentEvent( container, content, slotID, ContentEvent.REMOVE ); if ( state == DONE_STATE ) event.setSender( sender ); retValue.add( new NotificationRecordTask( container, event ) ); // If the content was added, then send an element added // event to the content. if ( add && state != UNDONE_STATE || !add && state == UNDONE_STATE ) { if ( isSelector( content ) ) // content.broadcast( event, container.getRoot( ) ); retValue.add( new NotificationRecordTask( content, event, container.getRoot( ) ) ); return retValue; } // Broadcast to the content element of the deleted event. event = new ElementDeletedEvent( container, content ); if ( state == DONE_STATE ) event.setSender( sender ); retValue.add( new NotificationRecordTask( content, event, container .getRoot( ) ) ); return retValue; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/2a3a5caa97fe37864a930071999de2be0eaf19ba/ContentRecord.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentRecord.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
14150,
6685,
12,
262,
202,
95,
202,
202,
682,
21236,
273,
394,
2407,
12,
11272,
202,
202,
1349,
620,
18,
1289,
1595,
12,
2240,
18,
588,
3349,
6685,
12,
262,
11272,
202,
202,
430,
261,
1478,
1276,
3555,
1180,
747,
1478,
1276,
3555,
1114,
9506,
202,
20081,
1478,
1276,
3555,
1999,
262,
202,
202,
95,
1082,
202,
1388,
1180,
1014,
273,
9995,
1304,
18,
588,
1388,
2170,
12,
1478,
11272,
1082,
202,
430,
261,
1014,
480,
446,
262,
9506,
202,
1349,
620,
18,
1289,
12,
394,
9995,
6193,
2174,
12,
1605,
16,
1014,
262,
11272,
202,
202,
97,
202,
202,
759,
2479,
326,
913,
3550,
871,
358,
326,
1478,
18,
202,
202,
4386,
1133,
871,
273,
446,
31,
202,
202,
430,
261,
527,
597,
919,
480,
587,
2908,
5998,
67,
7998,
747,
401,
1289,
597,
919,
422,
587,
2908,
5998,
67,
7998,
262,
1082,
202,
2575,
273,
394,
3697,
1133,
12,
1478,
16,
913,
16,
4694,
734,
16,
6862,
202,
1350,
1133,
18,
8355,
11272,
202,
202,
12107,
1082,
202,
2575,
273,
394,
3697,
1133,
12,
1478,
16,
913,
16,
4694,
734,
16,
6862,
202,
1350,
1133,
18,
22122,
11272,
202,
202,
430,
261,
919,
422,
26346,
67,
7998,
262,
1082,
202,
2575,
18,
542,
12021,
12,
5793,
11272,
202,
202,
1349,
620,
18,
1289,
12,
394,
8050,
2115,
2174,
12,
1478,
16,
871,
262,
11272,
202,
202,
759,
971,
326,
913,
1703,
3096,
16,
1508,
1366,
392,
930,
3096,
202,
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,
1117,
987,
14150,
6685,
12,
262,
202,
95,
202,
202,
682,
21236,
273,
394,
2407,
12,
11272,
202,
202,
1349,
620,
18,
1289,
1595,
12,
2240,
18,
588,
3349,
6685,
12,
262,
11272,
202,
202,
430,
261,
1478,
1276,
3555,
1180,
747,
1478,
1276,
3555,
1114,
9506,
202,
20081,
1478,
1276,
3555,
1999,
262,
202,
202,
95,
1082,
202,
1388,
1180,
1014,
273,
9995,
1304,
18,
588,
1388,
2170,
12,
1478,
11272,
1082,
202,
430,
261,
1014,
480,
446,
262,
9506,
202,
1349,
620,
18,
1289,
12,
394,
9995,
6193,
2174,
12,
1605,
16,
1014,
262,
11272,
202,
202,
97,
202,
202,
759,
2479,
326,
913,
3550,
871,
358,
326,
1478,
18,
202,
202,
4386,
1133,
871,
2
] |
return Character.isLetterOrDigit((char) ch);
|
return Character.isJavaIdentifierStart(ch);
|
public boolean contains(int ch) { return Character.isLetterOrDigit((char) ch); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4c58a60009678e2d97111b84c8692e6317ed3112/AbstractCharClass.java/buggy/modules/regex/src/main/java/java/util/regex/AbstractCharClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
1250,
1914,
12,
474,
462,
13,
288,
10792,
327,
6577,
18,
291,
5852,
3004,
1685,
12,
343,
1769,
7734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
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,
1171,
1071,
1250,
1914,
12,
474,
462,
13,
288,
10792,
327,
6577,
18,
291,
5852,
3004,
1685,
12,
343,
1769,
7734,
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
] |
public ServletPrinter(HttpServletResponse toWebServer, String callingServletName)
|
public ServletPrinter( HttpServletResponse toWebServer, String callingServletName)
|
public ServletPrinter(HttpServletResponse toWebServer, String callingServletName) { startDate = new GregorianCalendar(); toWebServer.setContentType("text/html"); try { out = toWebServer.getWriter(); } catch (IOException ioe) { ioe.printStackTrace(); } servletName = callingServletName; }
|
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/ServletPrinter.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/ServletPrinter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
7971,
12149,
12,
12446,
358,
4079,
2081,
16,
514,
4440,
4745,
461,
13,
225,
288,
565,
12572,
273,
394,
28033,
5621,
565,
358,
4079,
2081,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
565,
775,
565,
288,
1377,
596,
273,
358,
4079,
2081,
18,
588,
2289,
5621,
565,
289,
565,
1044,
261,
14106,
10847,
13,
565,
288,
1377,
10847,
18,
1188,
6332,
5621,
565,
289,
565,
8100,
461,
273,
4440,
4745,
461,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
7971,
12149,
12,
12446,
358,
4079,
2081,
16,
514,
4440,
4745,
461,
13,
225,
288,
565,
12572,
273,
394,
28033,
5621,
565,
358,
4079,
2081,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
565,
775,
565,
288,
1377,
596,
273,
358,
4079,
2081,
18,
588,
2289,
5621,
565,
289,
565,
1044,
261,
14106,
10847,
13,
565,
288,
1377,
10847,
18,
1188,
6332,
5621,
565,
289,
565,
8100,
461,
273,
4440,
4745,
461,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
environment.getURI() + "'.");
|
environment.getURI() + "'.");
|
protected void validatePipeline(Environment environment) throws ProcessingException { this.completeResponseIsCached = this.cacheCompleteResponse; this.fromCacheKey = this.toCacheKey.copy(); this.firstProcessedTransformerIndex = this.firstNotCacheableTransformerIndex; boolean finished = false; while (this.fromCacheKey != null && !finished) { finished = true; final CachedResponse response = this.cache.get(this.fromCacheKey); // now test validity if (response != null) { if (getLogger().isDebugEnabled()) { getLogger().debug("Found cached response for '" + environment.getURI() + "' using key: " + this.fromCacheKey); } boolean responseIsValid = true; boolean responseIsUsable = true; // See if we have an explicit "expires" setting. If so, // and if it's still fresh, we're done. Long responseExpires = response.getExpires(); if (responseExpires != null) { if (getLogger().isDebugEnabled()) { getLogger().debug("Expires time found for " + environment.getURI()); } if (responseExpires.longValue() > System.currentTimeMillis()) { if (getLogger().isDebugEnabled()) { getLogger().debug("Expires time still fresh for " + environment.getURI() + ", ignoring all other cache settings. This entry expires on "+ new Date(responseExpires.longValue())); } this.cachedResponse = response; return; } else { if (getLogger().isDebugEnabled()) { getLogger().debug("Expires time has expired for " + environment.getURI() + ", regenerating content."); } // If an expires parameter was provided, use it. If this parameter is not available // it means that the sitemap was modified, and the old expires value is not valid // anymore. if (expires != 0) { if (this.getLogger().isDebugEnabled()) this.getLogger().debug("Refreshing expires informations"); response.setExpires(new Long(expires + System.currentTimeMillis())); } else { if (this.getLogger().isDebugEnabled()) this.getLogger().debug("No expires defined anymore for this object, setting it to no expires"); response.setExpires(null); } } } else { // The response had no expires informations. See if it needs to be set (i.e. because the configuration has changed) if (expires != 0) { if (this.getLogger().isDebugEnabled()) this.getLogger().debug("Setting a new expires object for this resource"); response.setExpires(new Long(expires + System.currentTimeMillis())); } } SourceValidity[] fromCacheValidityObjects = response.getValidityObjects(); int i = 0; while (responseIsValid && i < fromCacheValidityObjects.length) { boolean isValid = false; // BH Check if validities[i] is null, may happen // if exception was thrown due to malformed content SourceValidity validity = fromCacheValidityObjects[i]; int valid = validity == null ? SourceValidity.INVALID : validity.isValid(); if (valid == SourceValidity.UNKNOWN) { // Don't know if valid, make second test validity = getValidityForInternalPipeline(i); if (validity != null) { valid = fromCacheValidityObjects[i].isValid(validity); if (valid == SourceValidity.UNKNOWN) { validity = null; } else { isValid = (valid == SourceValidity.VALID); } } } else { isValid = (valid == SourceValidity.VALID); } if (!isValid) { responseIsValid = false; // update validity if (validity == null) { responseIsUsable = false; if (getLogger().isDebugEnabled()) { getLogger().debug("validatePipeline: responseIsUsable is false, valid=" + valid + " at index " + i); } } else { if (getLogger().isDebugEnabled()) { getLogger().debug("validatePipeline: responseIsValid is false due to " + validity); } } } else { i++; } } if (responseIsValid) { if (getLogger().isDebugEnabled()) { getLogger().debug("validatePipeline: using valid cached content for '" + environment.getURI() + "'."); } // we are valid, ok that's it this.cachedResponse = response; this.toCacheSourceValidities = fromCacheValidityObjects; } else { if (getLogger().isDebugEnabled()) { getLogger().debug("validatePipeline: cached content is invalid for '" + environment.getURI() + "'."); } // we are not valid! if (!responseIsUsable) { // we could not compare, because we got no // validity object, so shorten pipeline key if (i > 0) { int deleteCount = fromCacheValidityObjects.length - i; if (i > 0 && i <= firstNotCacheableTransformerIndex + 1) { this.firstNotCacheableTransformerIndex = i-1; } for(int x=0; x < deleteCount; x++) { this.toCacheKey.removeLastKey(); } finished = false; } else { this.toCacheKey = null; } this.cacheCompleteResponse = false; } else { // the entry is invalid, remove it this.cache.remove(this.fromCacheKey); } // try a shorter key if (i > 0) { this.fromCacheKey.removeLastKey(); if (!this.completeResponseIsCached) { this.firstProcessedTransformerIndex--; } } else { this.fromCacheKey = null; } finished = false; this.completeResponseIsCached = false; } } else { // no cached response found if (this.getLogger().isDebugEnabled()) { this.getLogger().debug( "Cached response not found for '" + environment.getURI() + "' using key: " + this.fromCacheKey ); } if (!this.doSmartCaching) { // try a shorter key if (this.fromCacheKey.size() > 1) { this.fromCacheKey.removeLastKey(); if (!this.completeResponseIsCached) { this.firstProcessedTransformerIndex--; } finished = false; } else { this.fromCacheKey = null; } } else { // stop on longest key for smart caching this.fromCacheKey = null; } this.completeResponseIsCached = false; } } }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/bab6ee7257dd8d1ec9f3e9533cb499bde155b67b/AbstractCachingProcessingPipeline.java/buggy/core/cocoon-core/src/main/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1954,
8798,
12,
5494,
3330,
13,
565,
1216,
19652,
503,
288,
3639,
333,
18,
6226,
1064,
2520,
9839,
273,
333,
18,
2493,
6322,
1064,
31,
3639,
333,
18,
2080,
15554,
273,
333,
18,
869,
15554,
18,
3530,
5621,
3639,
333,
18,
3645,
13533,
8319,
1016,
273,
333,
18,
3645,
1248,
1649,
429,
8319,
1016,
31,
3639,
1250,
6708,
273,
629,
31,
3639,
1323,
261,
2211,
18,
2080,
15554,
480,
446,
597,
401,
13527,
13,
288,
5411,
6708,
273,
638,
31,
5411,
727,
15771,
1064,
766,
273,
333,
18,
2493,
18,
588,
12,
2211,
18,
2080,
15554,
1769,
5411,
368,
2037,
1842,
13800,
5411,
309,
261,
2740,
480,
446,
13,
288,
7734,
309,
261,
588,
3328,
7675,
291,
2829,
1526,
10756,
288,
10792,
7156,
7675,
4148,
2932,
2043,
3472,
766,
364,
2119,
397,
3330,
18,
588,
3098,
1435,
397,
4766,
1377,
2491,
1450,
498,
30,
315,
397,
333,
18,
2080,
15554,
1769,
7734,
289,
7734,
1250,
766,
20536,
273,
638,
31,
7734,
1250,
766,
2520,
27682,
273,
638,
31,
7734,
368,
2164,
309,
732,
1240,
392,
5515,
315,
12431,
6,
3637,
18,
971,
1427,
16,
7734,
368,
471,
309,
518,
1807,
4859,
12186,
16,
732,
4565,
2731,
18,
7734,
3407,
766,
14449,
273,
766,
18,
588,
14449,
5621,
7734,
309,
261,
2740,
14449,
480,
446,
13,
288,
10792,
309,
261,
588,
3328,
7675,
291,
2829,
1526,
10756,
288,
15604,
7156,
7675,
4148,
2932,
14449,
813,
1392,
364,
315,
397,
3330,
18,
588,
3098,
10663,
10792,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
8798,
12,
5494,
3330,
13,
565,
1216,
19652,
503,
288,
3639,
333,
18,
6226,
1064,
2520,
9839,
273,
333,
18,
2493,
6322,
1064,
31,
3639,
333,
18,
2080,
15554,
273,
333,
18,
869,
15554,
18,
3530,
5621,
3639,
333,
18,
3645,
13533,
8319,
1016,
273,
333,
18,
3645,
1248,
1649,
429,
8319,
1016,
31,
3639,
1250,
6708,
273,
629,
31,
3639,
1323,
261,
2211,
18,
2080,
15554,
480,
446,
597,
401,
13527,
13,
288,
5411,
6708,
273,
638,
31,
5411,
727,
15771,
1064,
766,
273,
333,
18,
2493,
18,
588,
12,
2211,
18,
2080,
15554,
1769,
5411,
368,
2037,
1842,
13800,
5411,
309,
261,
2740,
480,
446,
13,
288,
7734,
309,
261,
588,
3328,
7675,
2
] |
case Token.ARRAYLIT: return 1 + 4 + 4; case Token.OBJECTLIT: return 1 + 4;
|
private static int icodeTokenLength(int icodeToken) { switch (icodeToken) { case Icode_SCOPE : case Icode_GETPROTO : case Icode_PUSH_PARENT : case Icode_GETSCOPEPARENT : case Icode_SETPROTO : case Icode_SETPARENT : case Token.DELPROP : case Token.TYPEOF : case Token.ENTERWITH : case Token.LEAVEWITH : case Token.RETURN : case Token.RETURN_POPV : case Token.SETELEM : case Token.GETELEM : case Token.SETPROP : case Token.GETPROP : case Icode_PROPINC : case Icode_PROPDEC : case Icode_ELEMINC : case Icode_ELEMDEC : case Token.BITNOT : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.NOT : case Token.POS : case Token.NEG : case Token.SUB : case Token.MUL : case Token.DIV : case Token.MOD : case Token.ADD : case Token.POPV : case Token.POP : case Icode_DUP : case Icode_DUPSECOND : case Icode_SWAP : case Token.LT : case Token.GT : case Token.LE : case Token.GE : case Token.IN : case Token.INSTANCEOF : case Token.EQ : case Token.NE : case Token.SHEQ : case Token.SHNE : case Token.ZERO : case Token.ONE : case Token.NULL : case Token.THIS : case Token.THISFN : case Token.FALSE : case Token.TRUE : case Token.UNDEFINED : case Icode_CATCH: case Icode_RETUNDEF: case Icode_LITERAL_SET: case Token.STRING : case Token.NAME : case Token.SETNAME : case Icode_TYPEOFNAME : case Token.BINDNAME : case Icode_NAMEINC : case Icode_NAMEDEC : case Token.CATCH_SCOPE : case Token.REGEXP : case Icode_CLOSURE : case Token.NEW : case Token.CALL : case Icode_LITERAL_NEW: case Token.NUMBER : return 1; case Token.THROW : // source line return 1 + 2; case Icode_GOSUB : case Token.GOTO : case Token.IFEQ : case Token.IFNE : case Icode_IFEQ_POP : // target pc offset return 1 + 2; case Icode_RETSUB : case Token.ENUM_INIT : case Token.ENUM_NEXT : case Token.ENUM_ID : case Icode_VARINC : case Icode_VARDEC : case Token.GETVAR : case Token.SETVAR : case Token.LOCAL_SAVE : case Token.LOCAL_LOAD : // slot index return 1 + 1; case Icode_CALLSPECIAL : // call type // is new // line number return 1 + 1 + 1 + 2; case Icode_SHORTNUMBER : // short number return 1 + 2; case Icode_INTNUMBER : // int number return 1 + 4; case Icode_LOAD_STR1: // ubyte string index return 1 + 1; case Icode_LOAD_STR2: // ushort string index return 1 + 2; case Icode_LOAD_STR4: // int string index return 1 + 4; case Icode_LOAD_IND1: // ubyte index return 1 + 1; case Icode_LOAD_IND2: // ushort index return 1 + 2; case Icode_LOAD_IND4: // int index return 1 + 4; case Icode_NAME_AND_THIS : // skipGetThis flag return 1 + 1; case Icode_LINE : // line number return 1 + 2; case Token.ARRAYLIT: // number of indexes and offset of skip array return 1 + 4 + 4; case Token.OBJECTLIT: // offset of property ids array return 1 + 4; default: Kit.codeBug(); // Bad icodeToken return 0; } }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/0681989924af7dc43232e494dea00786e1c9cb99/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
277,
710,
1345,
1782,
12,
474,
277,
710,
1345,
13,
565,
288,
3639,
1620,
261,
3487,
1345,
13,
288,
5411,
648,
467,
710,
67,
19444,
294,
5411,
648,
467,
710,
67,
3264,
25455,
294,
5411,
648,
467,
710,
67,
30348,
67,
14943,
294,
5411,
648,
467,
710,
67,
3264,
19444,
14943,
294,
5411,
648,
467,
710,
67,
4043,
25455,
294,
5411,
648,
467,
710,
67,
4043,
14943,
294,
5411,
648,
3155,
18,
24733,
15811,
294,
5411,
648,
3155,
18,
2399,
3932,
294,
5411,
648,
3155,
18,
12278,
9147,
294,
5411,
648,
3155,
18,
900,
26714,
9147,
294,
5411,
648,
3155,
18,
14033,
294,
5411,
648,
3155,
18,
14033,
67,
2419,
30201,
294,
5411,
648,
3155,
18,
1090,
1448,
26817,
294,
5411,
648,
3155,
18,
7113,
1448,
26817,
294,
5411,
648,
3155,
18,
4043,
15811,
294,
5411,
648,
3155,
18,
3264,
15811,
294,
5411,
648,
467,
710,
67,
15811,
23213,
294,
5411,
648,
467,
710,
67,
15811,
1639,
39,
294,
5411,
648,
467,
710,
67,
41,
900,
6236,
39,
294,
5411,
648,
467,
710,
67,
41,
26817,
1639,
39,
294,
5411,
648,
3155,
18,
15650,
4400,
294,
5411,
648,
3155,
18,
15650,
4307,
294,
5411,
648,
3155,
18,
15650,
916,
294,
5411,
648,
3155,
18,
15650,
60,
916,
294,
5411,
648,
3155,
18,
48,
2664,
294,
5411,
648,
3155,
18,
54,
2664,
294,
5411,
648,
3155,
18,
1099,
2664,
294,
5411,
648,
3155,
18,
4400,
294,
5411,
648,
3155,
18,
7057,
294,
5411,
648,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
277,
710,
1345,
1782,
12,
474,
277,
710,
1345,
13,
565,
288,
3639,
1620,
261,
3487,
1345,
13,
288,
5411,
648,
467,
710,
67,
19444,
294,
5411,
648,
467,
710,
67,
3264,
25455,
294,
5411,
648,
467,
710,
67,
30348,
67,
14943,
294,
5411,
648,
467,
710,
67,
3264,
19444,
14943,
294,
5411,
648,
467,
710,
67,
4043,
25455,
294,
5411,
648,
467,
710,
67,
4043,
14943,
294,
5411,
648,
3155,
18,
24733,
15811,
294,
5411,
648,
3155,
18,
2399,
3932,
294,
5411,
648,
3155,
18,
12278,
9147,
294,
5411,
648,
3155,
18,
900,
26714,
9147,
294,
5411,
648,
3155,
18,
14033,
294,
5411,
648,
3155,
18,
14033,
67,
2419,
30201,
294,
5411,
648,
3155,
2
] |
|
Debug.show(clasz, " -- ", this.context.clasz);
|
Debug.show(clasz, this.context.clasz);
|
private Tree genOuterRef(int pos, Symbol clasz) { if (context.clasz == clasz) return gen.This(pos, clasz); TypeContext tcontext = null; for (int i = 0; i < context.context.outers.length; i++) if (context.context.outers[i].clasz == clasz) tcontext = context.context.outers[i]; assert tcontext != null: Debug.show(clasz, " -- ", context.clasz); if (tcontext.isStable) { throw Debug.abort(Debug.show(clasz, " - ", context.clasz)); /* if (!clasz.owner().isPackageClass()) { Tree qualifier = genOuterRef(pos,tcontext.outers[0].clasz); return gen.Select(pos, qualifier, clasz.module()); } else { assert clasz.owner().isPackageClass(): Debug.show(clasz); return gen.Ident(pos, clasz.module()); } */ } else { assert context.context.vlink != null: Debug.show(clasz, " -- ", context.clasz); Tree tree = context.method == null || context.method.isConstructor() ? gen.Ident(pos, context.context.vlink) : gen.Select(gen.This(pos, context.clasz), context.context.context.vfield); Context context = this.context; while (true) { context = context.outer; assert context != null: Debug.show(clasz, " -- ", this.context.clasz); while (context.context.isStable) { context = context.outer; assert context != null: Debug.show(clasz, " -- ", this.context.clasz); } if (context.clasz == clasz) return tree; Symbol access = getAccessSymbol(context.context.context.vfield, null); assert access != context.context.context.vfield: Debug.show(access) + " - " + Debug.show(this.context.clasz); tree = gen.Apply(gen.Select(tree, access)); } } }
|
55146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55146/3b72eb55441fad6ff3f9c209315702371ff87fbb/ExplicitOuterClassesPhase.java/buggy/sources/scalac/transformer/ExplicitOuterClassesPhase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
4902,
3157,
15040,
1957,
12,
474,
949,
16,
8565,
23268,
94,
13,
288,
5411,
309,
261,
2472,
18,
830,
345,
94,
422,
23268,
94,
13,
327,
3157,
18,
2503,
12,
917,
16,
23268,
94,
1769,
5411,
1412,
1042,
268,
2472,
273,
446,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
819,
18,
2472,
18,
659,
414,
18,
2469,
31,
277,
27245,
7734,
309,
261,
2472,
18,
2472,
18,
659,
414,
63,
77,
8009,
830,
345,
94,
422,
23268,
94,
13,
10792,
268,
2472,
273,
819,
18,
2472,
18,
659,
414,
63,
77,
15533,
5411,
1815,
268,
2472,
480,
446,
30,
4015,
18,
4500,
12,
830,
345,
94,
16,
315,
1493,
3104,
819,
18,
830,
345,
94,
1769,
5411,
309,
261,
88,
2472,
18,
291,
30915,
13,
288,
7734,
604,
4015,
18,
18623,
12,
2829,
18,
4500,
12,
830,
345,
94,
16,
315,
300,
3104,
819,
18,
830,
345,
94,
10019,
7734,
1748,
7734,
309,
16051,
830,
345,
94,
18,
8443,
7675,
291,
2261,
797,
10756,
288,
10792,
4902,
12327,
273,
3157,
15040,
1957,
12,
917,
16,
88,
2472,
18,
659,
414,
63,
20,
8009,
830,
345,
94,
1769,
10792,
327,
3157,
18,
3391,
12,
917,
16,
12327,
16,
23268,
94,
18,
2978,
10663,
7734,
289,
469,
288,
10792,
1815,
23268,
94,
18,
8443,
7675,
291,
2261,
797,
13332,
4015,
18,
4500,
12,
830,
345,
94,
1769,
10792,
327,
3157,
18,
6106,
12,
917,
16,
23268,
94,
18,
2978,
10663,
7734,
289,
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,
3238,
4902,
3157,
15040,
1957,
12,
474,
949,
16,
8565,
23268,
94,
13,
288,
5411,
309,
261,
2472,
18,
830,
345,
94,
422,
23268,
94,
13,
327,
3157,
18,
2503,
12,
917,
16,
23268,
94,
1769,
5411,
1412,
1042,
268,
2472,
273,
446,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
819,
18,
2472,
18,
659,
414,
18,
2469,
31,
277,
27245,
7734,
309,
261,
2472,
18,
2472,
18,
659,
414,
63,
77,
8009,
830,
345,
94,
422,
23268,
94,
13,
10792,
268,
2472,
273,
819,
18,
2472,
18,
659,
414,
63,
77,
15533,
5411,
1815,
268,
2472,
480,
446,
30,
4015,
18,
4500,
12,
830,
345,
94,
16,
315,
1493,
3104,
819,
18,
830,
2
] |
for (Iterator i = alternateAddresses.iterator(); i.hasNext();) { IIOPAddress addr = (IIOPAddress)i.next(); IIOPProfile additionalProfile = (IIOPProfile) cloneOfPrimary.clone(); additionalProfile.patchPrimaryAddress(addr); infoExt.add_profile(additionalProfile);
|
IIOPProfile additionalProfile = (IIOPProfile) primaryProf.clone(); additionalProfile.patchPrimaryAddress(addr); infoExt.add_profile(additionalProfile);
|
public void establish_components(IORInfo info) { IORInfoExt infoExt = (IORInfoExt) info; // ORB should have added already 1 profile with IOP tag int nrOfProf = infoExt.get_number_of_profiles(TAG_INTERNET_IOP.value); if( nrOfProf != 1 ) { throw new RuntimeException ("unexpected number of IOP Profiles: " + nrOfProf); } IIOPProfile primaryProf = (IIOPProfile) infoExt.get_profile(TAG_INTERNET_IOP.value, 0); try { IIOPProfile cloneOfPrimary = (IIOPProfile) primaryProf.clone(); // now add alternate addresses to primary profile for (Iterator i = alternateAddresses.iterator(); i.hasNext();) { IIOPAddress addr = (IIOPAddress)i.next(); primaryProf.addComponent( TAG_ALTERNATE_IIOP_ADDRESS.value, addr.toCDR() ); System.out.println("adding alternate to primary"); } // now add a secondary and third profile like used e.g. by Visibroker 4.5 for (Iterator i = alternateAddresses.iterator(); i.hasNext();) { IIOPAddress addr = (IIOPAddress)i.next(); IIOPProfile additionalProfile = (IIOPProfile) cloneOfPrimary.clone(); additionalProfile.patchPrimaryAddress(addr); infoExt.add_profile(additionalProfile); } } catch ( CloneNotSupportedException ex ) { throw new RuntimeException ("Exception during cloning of profile: " + ex); } nrOfProf = infoExt.get_number_of_profiles(TAG_INTERNET_IOP.value); if( nrOfProf != 1 + alternateAddresses.size()) { throw new RuntimeException ("unexpected number of IOP Profiles after addition: " + nrOfProf + ", where number of alternates was: " + alternateAddresses.size()); } // check access functions primaryProf = (IIOPProfile) infoExt.get_profile(TAG_INTERNET_IOP.value, 0); IIOPProfile primaryProf2 = (IIOPProfile) infoExt.get_profile(TAG_INTERNET_IOP.value); // they should be equal to primary if ( ! primaryProf.equals(primaryProf2) ) { throw new RuntimeException ("difference between " + "get_profile(tag, idx) and " + "get_profile(tag): "); } }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/119fe8c4b39d535dd133519c272a8e292b9f307a/IIOPProfileInterceptor.java/clean/test/regression/src/org/jacorb/test/orb/IIOPProfileInterceptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18312,
67,
8119,
12,
45,
916,
966,
1123,
13,
565,
288,
4202,
467,
916,
966,
2482,
1123,
2482,
273,
261,
45,
916,
966,
2482,
13,
1123,
31,
4202,
368,
4869,
38,
1410,
1240,
3096,
1818,
404,
3042,
598,
1665,
52,
1047,
4202,
509,
9884,
951,
27012,
273,
1123,
2482,
18,
588,
67,
2696,
67,
792,
67,
18314,
12,
7927,
67,
706,
6519,
1584,
67,
45,
3665,
18,
1132,
1769,
4202,
309,
12,
9884,
951,
27012,
480,
404,
262,
4202,
288,
1850,
604,
394,
3235,
7566,
21248,
1300,
434,
1665,
52,
1186,
2354,
30,
315,
397,
9884,
951,
27012,
1769,
4202,
289,
4202,
23076,
3665,
4029,
3354,
27012,
273,
261,
6954,
3665,
4029,
13,
1123,
2482,
18,
588,
67,
5040,
12,
7927,
67,
706,
6519,
1584,
67,
45,
3665,
18,
1132,
16,
374,
1769,
4202,
775,
4202,
288,
1850,
23076,
3665,
4029,
3236,
951,
6793,
273,
261,
6954,
3665,
4029,
13,
3354,
27012,
18,
14056,
5621,
1850,
368,
2037,
527,
12184,
6138,
358,
3354,
3042,
1850,
364,
261,
3198,
277,
273,
12184,
7148,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
1850,
288,
2398,
23076,
3665,
1887,
3091,
273,
261,
6954,
3665,
1887,
13,
77,
18,
4285,
5621,
2398,
3354,
27012,
18,
1289,
1841,
12,
8358,
67,
1013,
6519,
1777,
67,
6954,
3665,
67,
15140,
18,
1132,
16,
3091,
18,
869,
39,
6331,
1435,
11272,
2398,
2332,
18,
659,
18,
8222,
2932,
3439,
12184,
358,
3354,
8863,
1850,
289,
1850,
368,
2037,
527,
279,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18312,
67,
8119,
12,
45,
916,
966,
1123,
13,
565,
288,
4202,
467,
916,
966,
2482,
1123,
2482,
273,
261,
45,
916,
966,
2482,
13,
1123,
31,
4202,
368,
4869,
38,
1410,
1240,
3096,
1818,
404,
3042,
598,
1665,
52,
1047,
4202,
509,
9884,
951,
27012,
273,
1123,
2482,
18,
588,
67,
2696,
67,
792,
67,
18314,
12,
7927,
67,
706,
6519,
1584,
67,
45,
3665,
18,
1132,
1769,
4202,
309,
12,
9884,
951,
27012,
480,
404,
262,
4202,
288,
1850,
604,
394,
3235,
7566,
21248,
1300,
434,
1665,
52,
1186,
2354,
30,
315,
397,
9884,
951,
27012,
1769,
4202,
289,
4202,
23076,
3665,
4029,
3354,
27012,
273,
261,
6954,
3665,
4029,
13,
1123,
2482,
18,
2
] |
this,
|
this,
|
protected SimpleServletSupport createSimpleServletSupport() { // the agentId is known from "setBindingSite(..)" // get the blackboard service (for "query") blackboard = (BlackboardService) serviceBroker.getService( this, BlackboardService.class, null); if (blackboard == null) { throw new RuntimeException( "Unable to obtain blackboard service"); } // get the naming service (for "listAgentNames") ns = (NamingService) serviceBroker.getService( this, NamingService.class, null); if (ns == null) { throw new RuntimeException( "Unable to obtain naming service"); } // create a new "SimpleServletSupport" instance return new SimpleServletSupportImpl( path, agentId, blackboard, ns); }
|
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/f19de576712a328c9a12a79e3bb89fab902fb020/SimpleServletComponent.java/clean/core/src/org/cougaar/core/servlet/SimpleServletComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4477,
4745,
6289,
752,
5784,
4745,
6289,
1435,
288,
565,
368,
326,
4040,
548,
353,
4846,
628,
315,
542,
5250,
4956,
12,
838,
2225,
565,
368,
336,
326,
7721,
3752,
1156,
261,
1884,
315,
2271,
7923,
565,
7721,
3752,
273,
261,
13155,
3752,
1179,
13,
1377,
1156,
11194,
18,
588,
1179,
12,
1850,
333,
16,
6647,
22467,
3752,
1179,
18,
1106,
16,
1850,
446,
1769,
565,
309,
261,
11223,
3752,
422,
446,
13,
288,
1377,
604,
394,
3235,
12,
1850,
315,
3370,
358,
7161,
7721,
3752,
1156,
8863,
565,
289,
565,
368,
336,
326,
14634,
1156,
261,
1884,
315,
1098,
3630,
1557,
7923,
565,
3153,
273,
261,
24102,
1179,
13,
1377,
1156,
11194,
18,
588,
1179,
12,
1850,
333,
16,
6647,
18884,
1179,
18,
1106,
16,
1850,
446,
1769,
565,
309,
261,
2387,
422,
446,
13,
288,
1377,
604,
394,
3235,
12,
1850,
315,
3370,
358,
7161,
14634,
1156,
8863,
565,
289,
565,
368,
752,
279,
394,
315,
5784,
4745,
6289,
6,
791,
565,
327,
4202,
394,
4477,
4745,
6289,
2828,
12,
3639,
589,
16,
3639,
4040,
548,
16,
3639,
7721,
3752,
16,
3639,
3153,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4477,
4745,
6289,
752,
5784,
4745,
6289,
1435,
288,
565,
368,
326,
4040,
548,
353,
4846,
628,
315,
542,
5250,
4956,
12,
838,
2225,
565,
368,
336,
326,
7721,
3752,
1156,
261,
1884,
315,
2271,
7923,
565,
7721,
3752,
273,
261,
13155,
3752,
1179,
13,
1377,
1156,
11194,
18,
588,
1179,
12,
1850,
333,
16,
6647,
22467,
3752,
1179,
18,
1106,
16,
1850,
446,
1769,
565,
309,
261,
11223,
3752,
422,
446,
13,
288,
1377,
604,
394,
3235,
12,
1850,
315,
3370,
358,
7161,
7721,
3752,
1156,
8863,
565,
289,
565,
368,
336,
326,
14634,
1156,
261,
1884,
315,
1098,
3630,
1557,
7923,
565,
3153,
273,
261,
24102,
1179,
13,
1377,
1156,
11194,
18,
588,
1179,
12,
2
] |
bufferOut.append("<span class=\"lineNumberStyle\">");
|
bufferOut.append("<span class=\"" + lineNumberStyle + "\">");
|
public String makeHTML(StringBuffer bufferIn, String sourceFileName) { int codeLineNumber = 0; boolean isNewLine = true; boolean isNewBlock = true; int identifierLength = 0; int qualifiedIdentifierLength = 0; int presentIndex = -1; int spaceLength = 0; int saveIndex = 0; char presentChar = 0; State presentState = State.TEXT; StringBuffer bufferOut = new StringBuffer(8192); if (!isCodeSnippet) { bufferOut.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"); if (isXHTML_1_1) { bufferOut.append("<!DOCTYPE html PUBLIC " + "\"-//W3C//DTD XHTML 1.1//EN\"\r\n"); bufferOut.append(" \"http://www.w3.org/TR/xhtml11/DTD/" + "xhtml11.dtd\">\r\n"); bufferOut.append("<html xmlns=\"http://www.w3.org/1999/xhtml\""+ " xml:lang=\"en\">\r\n"); } else { bufferOut.append("<!DOCTYPE html PUBLIC " + "\"-//W3C//DTD XHTML 1.0 Strict//EN\"\r\n"); bufferOut.append(" \"http://www.w3.org/TR/xhtml1/DTD/" + "xhtml1-strict.dtd\">\r\n"); bufferOut.append("<html xmlns=\"http://www.w3.org/1999/xhtml\""+ " xml:lang=\"en\" lang=\"en\">\r\n"); } bufferOut.append(" <head>\r\n"); bufferOut.append(" <title>\r\n"); bufferOut.append(" " + sourceFileName + "\r\n"); bufferOut.append(" </title>\r\n"); bufferOut.append(" <meta name=\"generator\"\r\n"); bufferOut.append(" content=\"Java2xhtml 0.9\" />\r\n"); if (hasInternalStyleSheet) { bufferOut.append(" <style type=\"text/css\">\r\n"); bufferOut.append(" <!-- /* <![CDATA[ */\r\n"); bufferOut.append(" .sourceCodeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: #FFFFFF;\r\n"); if (hasAllBoldSourceCode) { bufferOut.append(" font-weight: bold;\r\n"); } bufferOut.append(" }\r\n"); bufferOut.append(" .lineNumberStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-weight: normal;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); if (lineModulus > 0) { bufferOut.append(" .modulusLineNumberStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-weight: bold;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("transparent;\r\n"); bufferOut.append(" }\r\n"); if (hasLineModulusDrawnLines) { bufferOut.append(" .modulusLineStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-decoration: "); bufferOut.append("line-through;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("transparent;\r\n"); bufferOut.append(" }\r\n"); } if (hasLineModulusCodeBlocks) { bufferOut.append(" .modulusBlockPREStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" margin: 0em\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .modulusBlockStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("#CCCCCC;\r\n"); bufferOut.append(" }\r\n"); } } bufferOut.append(" .keywordStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #9900FF;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .methodStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #0000FF;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .variableStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC9933;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .singleLineCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC3333;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .traditionalCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #FF0000;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .javadocCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC0033;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .javadocTagStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #0099CC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .importNameStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #33CCCC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .packageNameStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #339999;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .primitiveTypeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #009900;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .nonPrimitiveTypeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #009966;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .constructorStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #3300CC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .constantStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #666666;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .doubleQuoteStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #996633;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" font-style: italic;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .singleQuoteStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #663333;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" font-style: oblique;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .numericalLiteralStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #333300;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .primitiveLiteralStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #006600;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); if (hasFooterIcons) { bufferOut.append(" .iconStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" border-style: none;\r\n"); bufferOut.append(" }\r\n"); } if (hasTitle) { bufferOut.append(" #title\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-align: center;\r\n"); bufferOut.append(" font-size: xx-large;\r\n"); bufferOut.append(" }\r\n"); } if (hasLegend) { bufferOut.append(" #legendTitle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-align: center;\r\n"); bufferOut.append(" font-size: x-large;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" #legend\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-family: monospace;\r\n"); bufferOut.append(" font-size: large;\r\n"); bufferOut.append(" }\r\n"); } if (hasFooter) { bufferOut.append(" #footer\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-size: xx-small;\r\n"); bufferOut.append(" }\r\n"); } bufferOut.append(" /* ]]> */ -->\r\n"); bufferOut.append(" </style>\r\n"); } if (hasExternalStyleSheet) { bufferOut.append(" <link rel=\"stylesheet\" " + "type=\"text/css\" href=\"" + externalStyleSheetName + "\" />\r\n"); } bufferOut.append(" </head>\r\n"); bufferOut.append(" <body>\r\n"); } if (hasTitle) { bufferOut.append(" <div id=\"title\">\r\n"); bufferOut.append(" " + sourceFileName + "\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <hr />\r\n"); } if (hasLegend) { bufferOut.append(" <div id=\"legendTitle\">\r\n"); bufferOut.append(" Legend\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <div class=\"sourceCodeStyle\">\r\n"); bufferOut.append(" <div id=\"legend\">\r\n"); bufferOut.append(" <span class=\"keywordStyle\">"); bufferOut.append("keyword</span>\r\n"); bufferOut.append(" <span class=\"methodStyle\">"); bufferOut.append("method</span>\r\n"); bufferOut.append(" <span class=\"variableStyle\">variable" + "</span>\r\n"); bufferOut.append(" <span class=\"singleLineCommentStyle\">" + "singleLineComment</span>\r\n"); bufferOut.append(" <span class=\"traditionalCommentStyle\">" + "traditionalComment</span>\r\n"); bufferOut.append(" <span class=\"javadocCommentStyle\">" + "javadocComment</span>\r\n"); bufferOut.append(" <span class=\"javadocTagStyle\">javadocTag" + "</span>\r\n"); bufferOut.append(" <span class=\"importNameStyle\">" + "importName</span>\r\n"); bufferOut.append(" <span class=\"packageNameStyle\">" + "packageName</span>\r\n"); bufferOut.append(" <span class=\"primitiveTypeStyle\">" + "primitiveType</span>\r\n"); bufferOut.append(" <span class=\"nonPrimitiveTypeStyle\">" + "nonPrimitiveType</span>\r\n"); bufferOut.append(" <span class=\"constructorStyle\">" + "constructor</span>\r\n"); bufferOut.append(" <span class=\"constantStyle\">" + "constant</span>\r\n"); bufferOut.append(" <span class=\"doubleQuoteStyle\">" + "doubleQuote</span>\r\n"); bufferOut.append(" <span class=\"singleQuoteStyle\">" + "singleQuote</span>\r\n"); bufferOut.append(" <span class=\"numericalLiteralStyle\">" + "numericalLiteral</span>\r\n"); bufferOut.append(" <span class=\"primitiveLiteralStyle\">" + "primitiveLiteral</span>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <hr />\r\n"); } bufferOut.append(" <div class=\"sourceCodeStyle\">\r\n"); if (hasLineModulusCodeBlocks) { bufferOut.append("<pre class=\"modulusBlockPREStyle\">\r\n"); } else { bufferOut.append("<pre>\r\n"); } // process the input Java code Stringbuffer // subtract 2 from the bufferIn.length() to get EOF marker while (presentIndex++ < (bufferIn.length() - 2)) { for (int i = 0; i < extraIndentation; i++) { bufferOut.append(" "); } if ((hasLineNumbers || hasLineModulusCodeBlocks) && isNewLine) { // add line numbers if desired // line numbers are 1 - 9999 then rotate line numbers codeLineNumber = (++codeLineNumber)%10000; if ((lineModulus > 0) && hasLineModulusCodeBlocks && (codeLineNumber%lineModulus == 1)) { if (isNewBlock) { if ((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) { bufferOut.insert((bufferOut.length() - ("\r\n").length()), "</span>"); } bufferOut.append("</pre>\r\n"); bufferOut.append(" <div class="); bufferOut.append("\"modulusBlockStyle\">"); bufferOut.append("\r\n<pre class=\""); bufferOut.append("modulusBlockPREStyle\">\r\n"); if (State.TRADITIONAL_COMMENT == presentState) { bufferOut.append("<span class=" + "\"traditionalCommentStyle\">"); } if (State.JAVADOC == presentState) { bufferOut.append("<span class=" + "\"javadocCommentStyle\">"); } } isNewBlock = !isNewBlock; } // make straight columns of line numbers if (codeLineNumber < 1000) { bufferOut.append(" "); } if (codeLineNumber < 100) { bufferOut.append(" "); } if (codeLineNumber < 10) { bufferOut.append(" "); } bufferOut.append("<a name=\"line."); bufferOut.append(codeLineNumber); bufferOut.append("\"/>"); if (hasLineNumbers) { if ((lineModulus > 0) && (codeLineNumber%lineModulus == 0)) { bufferOut.append("<span class=" + "\"modulusLineNumberStyle\">"); bufferOut.append(codeLineNumber); bufferOut.append(": </span>"); if (hasLineModulusDrawnLines) { // compute spaceLength so a line can be drawn while ((presentIndex != (bufferIn.length() - 1)) && ((Character.isSpaceChar( bufferIn.charAt(presentIndex))) || (bufferIn.charAt(presentIndex) == '\t'))) { // for each tab, insert tabSize spaces if (bufferIn.charAt(presentIndex) == '\t') { for (int i = 0; i < tabSize; i++) { bufferIn.insert(presentIndex + 1, " "); } presentIndex++; continue; } if (' ' == bufferIn.charAt(presentIndex)) { // read a space so place a space bufferOut.append(" "); spaceLength += (" ").length(); } else { // a white space character was read bufferOut.append(bufferIn.charAt( presentIndex)); ++spaceLength; } presentIndex++; } // check if line is empty // (no printable characters on line) if ((presentIndex == (bufferIn.length() - 1)) || (Character.isWhitespace(bufferIn.charAt( presentIndex)))) { spaceLength = 0; } // draw the line if (spaceLength > 1) { bufferOut.insert((bufferOut.length() - spaceLength), "<span class=" + "\"modulusLineStyle\">"); bufferOut.insert((bufferOut.length() - (" ").length()), "</span>"); } spaceLength = 0; } } else { // line numbers are in lineNumberColor bufferOut.append("<span class=\"lineNumberStyle\">"); bufferOut.append(codeLineNumber); bufferOut.append(":</span> "); } } isNewLine = false; } // a state machine presentChar = bufferIn.charAt(presentIndex); if ((Character.isJavaIdentifierPart(presentChar)) || ((State.IMPORT_NAME == presentState) && (presentChar == '*'))) { // this is an identifier bufferOut.append(presentChar); identifierLength++; continue; // keep adding characters until identifier is done } if (identifierLength > 0) { // identifier qualifiedIdentifierLength = qualifiedIdentifierLength + identifierLength; if (bufferIn.charAt(presentIndex) == '.') { // qualified identifier bufferOut.append(presentChar); qualifiedIdentifierLength++; identifierLength = 0; continue; // keep adding characters to qualified identifier } String identifier = bufferOut.substring(bufferOut.length() - identifierLength); if ((State.PARAM_VARIABLE == presentState)) { // any identifier after a param in a javadoc is assumed to // be a variable bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); presentState = State.JAVADOC; } else if (State.JAVADOC == presentState) { // in javadoc state if ((javadocTagCollection.contains(identifier)) && (bufferIn.charAt(presentIndex - (identifierLength + 1)) == '@')) { // identifier is a javadocTag bufferOut.insert(bufferOut.length() - identifierLength, "<span class=\"javadocTagStyle\">"); bufferOut.append("</span>"); if (("param").equals(identifier)) { // any identifier after a param is assumed to // be a variable, get into a state to do this presentState = State.PARAM_VARIABLE; } } } else if (State.IMPORT_NAME == presentState) { // import identifier bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"importNameStyle\">"); bufferOut.append("</span>"); presentState = State.TEXT; } else if (State.PACKAGE_NAME == presentState) { // package identifier bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"packageNameStyle\">"); bufferOut.append("</span>"); presentState = State.TEXT; } else if (State.TEXT == presentState) { if (keywordCollection.contains(identifier)) { // identifier is a keyword bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"keywordStyle\">"); bufferOut.append("</span>"); if (("import").equals(identifier)) { // anything after an import in text mode must be // an import name, so enter state to process this presentState = State.IMPORT_NAME; } else if (("package").equals(identifier)) { // anything after an package in text mode must be // an package name, so enter state to process this presentState = State.PACKAGE_NAME; } } else if (primitiveTypeCollection.contains(identifier)) { // identifier is a primitive type bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"primitiveTypeStyle\">"); bufferOut.append("</span>"); } else if ((identifier.equals(identifier.toUpperCase())) && (!(Character.isDigit(identifier.charAt(0))))) { // identifier is a constant bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"constantStyle\">"); bufferOut.append("</span>"); } else if (Character.isUpperCase(identifier.charAt(0))) { // identifier is a constructor or non-primitive type // eat white space saveIndex = presentIndex; while (Character.isWhitespace( bufferIn.charAt(saveIndex++))) { //empty body } if (bufferIn.charAt(--saveIndex) == '(') { // identifier is a constructor bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"constructorStyle\">"); bufferOut.append("</span>"); } else { // identifier is a non-primitive type bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"nonPrimitiveTypeStyle\">"); bufferOut.append("</span>"); } } else if (!(Character.isDigit(identifier.charAt(0)) || primitiveLiteralCollection.contains(identifier))) { // identifier is a method or a variable // eat white space saveIndex = presentIndex; while (Character.isWhitespace( bufferIn.charAt(saveIndex++))) { // empty body } --saveIndex; // identifier is a method if (bufferIn.charAt(saveIndex) == '(') { bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"methodStyle\">"); bufferOut.append("</span>"); } else if (bufferIn.charAt(saveIndex) == ',') { // comma seperated variables bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); } else { // a variable // take care of cases such as array[index].variable if (bufferIn.charAt(presentIndex - (qualifiedIdentifierLength + 1)) == '.') { qualifiedIdentifierLength++; } bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); } } else { if (primitiveLiteralCollection.contains(identifier)) { // primitiveLiteral (boolean or null) bufferOut.insert(bufferOut.length() - identifierLength, "<span class=" + "\"primitiveLiteralStyle\">"); bufferOut.append("</span>"); } // a numerical literal else { if (((presentIndex - (qualifiedIdentifierLength + 1)) > 0) && (bufferIn.charAt(presentIndex - (qualifiedIdentifierLength + 1)) == '.')) { qualifiedIdentifierLength++; } bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"numericalLiteralStyle\">"); bufferOut.append("</span>"); } } } qualifiedIdentifierLength = 0; identifierLength = 0; } // process characters NOT in identifiers switch (presentChar) { case '&': //ampersand bufferOut.append("&"); // HTMLify character break; case '<': // less than sign bufferOut.append("<"); // HTMLify character break; case '>': // greater than sign bufferOut.append(">"); // HTMLify character break; case '\"': // double quote bufferOut.append("""); // HTMLify character if (State.TEXT == presentState) { presentState = State.DOUBLE_QUOTE; bufferOut.insert(bufferOut.length()-(""").length(), "<span class=\"doubleQuoteStyle\">"); } else if (State.DOUBLE_QUOTE == presentState) { presentState = State.TEXT; bufferOut.append("</span>"); } break; case '\'': // single quote bufferOut.append("\'"); if (State.TEXT == presentState) { presentState = State.SINGLE_QUOTE; bufferOut.insert(bufferOut.length() - ("\'").length(), "<span class=\"singleQuoteStyle\">"); } else if (State.SINGLE_QUOTE == presentState) { presentState = State.TEXT; bufferOut.append("</span>"); } break; case '\\': // backslash bufferOut.append("\\"); if ((State.DOUBLE_QUOTE == presentState) || (State.SINGLE_QUOTE == presentState)) { // treat as a character escape sequence bufferOut.append(bufferIn.charAt(++presentIndex)); } break; case '\t': // tab // replace tabs with tabsize number of spaces for (int i = 0; i < tabSize; i++) { bufferOut.append(' '); } break; case '*': // star bufferOut.append("*"); if ((State.TEXT == presentState) && (bufferIn.charAt(presentIndex - 1) == '/')) { if (((bufferIn.length() - 1) > presentIndex) && (bufferIn.charAt(presentIndex + 1) == '*')) { presentState = State.JAVADOC; bufferOut.insert(bufferOut.length() - ("/*").length(), "<span class=" + "\"javadocCommentStyle\">"); } else { presentState = State.TRADITIONAL_COMMENT; bufferOut.insert(bufferOut.length() - ("/*").length(), "<span class=" + "\"traditionalCommentStyle\">"); } } break; case '/': // foward slash bufferOut.append("/"); if (((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) && (bufferIn.charAt(presentIndex - 1) == '*')) { bufferOut.append("</span>"); presentState = State.TEXT; } if ((State.TEXT == presentState) && (presentIndex > 0) && (bufferIn.charAt(presentIndex - 1) == '/')) { bufferOut.insert(bufferOut.length() - ("//").length(), "<span class=" + "\"singleLineCommentStyle\">"); presentState = State.LINE_COMMENT; } break; case '\r': // carriage return // fall through case '\n': // line feed // all HTML lines end in \r\n if ((bufferIn.charAt(presentIndex) == '\r') && ((bufferIn.length() - 1) > presentIndex) && (bufferIn.charAt(presentIndex + 1) == '\n')) { ++presentIndex; } // end single line comments if (State.LINE_COMMENT == presentState) { bufferOut.append("</span>"); presentState = State.TEXT; } // end of block if ((lineModulus > 0) && hasLineModulusCodeBlocks && ((codeLineNumber%lineModulus == 0) && !isNewBlock)) { // end multi-line spanning states if ((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) { bufferOut.append("</span>"); } bufferOut.append("\r\n"); bufferOut.append("</pre>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append("<pre class=\""); bufferOut.append("modulusBlockPREStyle\">\r\n"); // restart multi-line spanning states if (State.TRADITIONAL_COMMENT == presentState) { bufferOut.append("<span class=" + "\"traditionalCommentStyle\">"); } if (State.JAVADOC == presentState) { bufferOut.append("<span class=" + "\"javadocCommentStyle\">"); } } else { // div automatically starts new line bufferOut.append("\r\n"); } isNewLine = true; break; case 0: // nul character if ((State.LINE_COMMENT == presentState) && (presentIndex == (bufferIn.length() - 1))) { bufferOut.append("</span>"); } break; default: // everything else bufferOut.append(presentChar); } qualifiedIdentifierLength = 0; } if (presentState == State.LINE_COMMENT) { bufferOut.append("</span>\r\n"); } bufferOut.append("</pre>\r\n"); // end block early if no more source code if ((lineModulus > 0) && hasLineModulusCodeBlocks && !isNewBlock && (codeLineNumber%lineModulus != 0)) { bufferOut.append(" </div>\r\n"); } bufferOut.append(" </div>\r\n"); // end div of sourceCodeStyle // if code snippet then don't add ending tags of xhtml page if (!isCodeSnippet) { // if footer mode then add a footer if (hasFooter) { bufferOut.append(" <hr />\r\n"); bufferOut.append(" <div id=\"footer\">\r\n"); if (hasFooterIcons) { if (hasFooterDate) { bufferOut.append(" <script type=\"text/javaScript\""); bufferOut.append(">\r\n"); bufferOut.append(" <!-- // <![CDATA[\r\n"); bufferOut.append(" document.write(\"Document last"); bufferOut.append(" modified on \""); bufferOut.append(" + document.lastModified + "); bufferOut.append("\"<br />\");\r\n"); bufferOut.append(" // ]]> -->\r\n"); bufferOut.append(" </script>\r\n"); } bufferOut.append(" <a href=\""); bufferOut.append("http://validator.w3.org/check/referer"); bufferOut.append("\">\r\n"); bufferOut.append(" <img class=\"iconStyle\" src=\""); bufferOut.append("http://www.w3.org/Icons/"); if (isXHTML_1_1) { bufferOut.append("valid-xhtml11\"\r\n"); bufferOut.append(" alt=\"Valid XHTML 1.1!\""); } else { bufferOut.append("valid-xhtml10\"\r\n"); bufferOut.append(" alt=\"Valid XHTML 1.0!\""); } bufferOut.append(" height=\"31\" "); bufferOut.append("width=\"88\" />\r\n"); bufferOut.append(" </a>\r\n"); bufferOut.append("  \r\n"); bufferOut.append(" <a href=\""); bufferOut.append("http://jigsaw.w3.org"); bufferOut.append("/css-validator/check/referer"); bufferOut.append("\">\r\n"); bufferOut.append(" <img class=\"iconStyle\" src=\""); bufferOut.append("http://jigsaw.w3.org/"); bufferOut.append("css-validator/images/vcss"); bufferOut.append("\"\r\n"); bufferOut.append(" alt=\"Valid CSS!\""); bufferOut.append(" height=\"31\" width=\"88\" />\r\n"); bufferOut.append(" </a>\r\n"); } else { bufferOut.append(" This is a valid\r\n"); bufferOut.append(" <a href=\"http://"); bufferOut.append("validator.w3.org/check/referer"); if (isXHTML_1_1) { bufferOut.append("\">XHTML 1.1</a>\r\n"); } else { bufferOut.append("\">XHTML 1.0</a>\r\n"); } bufferOut.append(" with\r\n"); bufferOut.append(" <a href=\"http://"); bufferOut.append("jigsaw.w3.org"); bufferOut.append("/css-validator/check/referer"); bufferOut.append("\">CSS</a>\r\n"); bufferOut.append(" document \r\n"); if (hasFooterDate) { bufferOut.append(" <script type=\"text/javaScript\""); bufferOut.append(">\r\n"); bufferOut.append(" <!-- // <![CDATA[\r\n"); bufferOut.append(" document.write(\"last modified"); bufferOut.append(" on \" + document.lastModified);"); bufferOut.append("\r\n"); bufferOut.append(" // ]]> -->\r\n"); bufferOut.append(" </script>\r\n"); } } bufferOut.append(" </div>\r\n"); } bufferOut.append(" </body>\r\n"); bufferOut.append("</html>\r\n"); } return bufferOut.toString(); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/8ba362c9ba53284a2fd251ad596b8e586a877afc/Java2xhtml.java/clean/tools/gjdoc/javalib/gnu/classpath/tools/java2xhtml/Java2xhtml.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1221,
4870,
12,
780,
1892,
1613,
382,
16,
514,
1084,
4771,
13,
565,
288,
3639,
509,
981,
31063,
273,
374,
31,
3639,
1250,
10783,
1670,
273,
638,
31,
3639,
1250,
10783,
1768,
273,
638,
31,
3639,
509,
2756,
1782,
273,
374,
31,
3639,
509,
9348,
3004,
1782,
273,
374,
31,
3639,
509,
3430,
1016,
273,
300,
21,
31,
3639,
509,
3476,
1782,
273,
374,
31,
3639,
509,
1923,
1016,
273,
374,
31,
3639,
1149,
3430,
2156,
273,
374,
31,
3639,
3287,
3430,
1119,
273,
3287,
18,
5151,
31,
3639,
6674,
1613,
1182,
273,
394,
6674,
12,
28,
15561,
1769,
3639,
309,
16051,
291,
1085,
19614,
13,
3639,
288,
5411,
1613,
1182,
18,
6923,
2932,
12880,
2902,
1177,
5189,
21,
18,
20,
2412,
2688,
5189,
5159,
17,
28,
2412,
35,
5333,
86,
64,
82,
8863,
2398,
309,
261,
291,
60,
4870,
67,
21,
67,
21,
13,
5411,
288,
7734,
1613,
1182,
18,
6923,
2932,
5586,
29824,
1729,
17187,
315,
397,
4766,
7023,
17,
759,
59,
23,
39,
759,
25728,
30551,
404,
18,
21,
759,
1157,
31670,
86,
64,
82,
8863,
7734,
1613,
1182,
18,
6923,
2932,
565,
1239,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
26341,
2499,
19,
25728,
4898,
397,
4766,
315,
26341,
2499,
18,
31834,
28219,
86,
64,
82,
8863,
7734,
1613,
1182,
18,
6923,
2932,
32,
2620,
12302,
5189,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
8530,
15,
4766,
315,
2025,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1221,
4870,
12,
780,
1892,
1613,
382,
16,
514,
1084,
4771,
13,
565,
288,
3639,
509,
981,
31063,
273,
374,
31,
3639,
1250,
10783,
1670,
273,
638,
31,
3639,
1250,
10783,
1768,
273,
638,
31,
3639,
509,
2756,
1782,
273,
374,
31,
3639,
509,
9348,
3004,
1782,
273,
374,
31,
3639,
509,
3430,
1016,
273,
300,
21,
31,
3639,
509,
3476,
1782,
273,
374,
31,
3639,
509,
1923,
1016,
273,
374,
31,
3639,
1149,
3430,
2156,
273,
374,
31,
3639,
3287,
3430,
1119,
273,
3287,
18,
5151,
31,
3639,
6674,
1613,
1182,
273,
394,
6674,
12,
28,
15561,
1769,
3639,
309,
16051,
291,
1085,
19614,
13,
3639,
288,
5411,
1613,
1182,
18,
6923,
2932,
12880,
2902,
2
] |
{ if (!(obj instanceof JavaAdapterSignature)) return false; JavaAdapterSignature sig = (JavaAdapterSignature) obj; if (superClass != sig.superClass) return false; if (interfaces != sig.interfaces) { if (interfaces.length != sig.interfaces.length)
|
{ if (!(obj instanceof JavaAdapterSignature))
|
public boolean equals(Object obj) { if (!(obj instanceof JavaAdapterSignature)) return false; JavaAdapterSignature sig = (JavaAdapterSignature) obj; if (superClass != sig.superClass) return false; if (interfaces != sig.interfaces) { if (interfaces.length != sig.interfaces.length) return false; for (int i=0; i < interfaces.length; i++) if (interfaces[i] != sig.interfaces[i]) return false; } if (names.size() != sig.names.size()) return false; ObjToIntMap.Iterator iter = new ObjToIntMap.Iterator(names); for (iter.start(); !iter.done(); iter.next()) { String name = (String)iter.getKey(); int arity = iter.getValue(); if (arity != names.get(name, arity + 1)) return false; } return true; }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/a80d67208db8029f3323f99ef005d09358bde48f/JavaAdapter.java/clean/js/rhino/src/org/mozilla/javascript/JavaAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
1081,
13,
565,
288,
3639,
309,
16051,
12,
2603,
1276,
5110,
4216,
5374,
3719,
5411,
327,
629,
31,
3639,
5110,
4216,
5374,
3553,
273,
261,
5852,
4216,
5374,
13,
1081,
31,
3639,
309,
261,
9565,
797,
480,
3553,
18,
9565,
797,
13,
5411,
327,
629,
31,
3639,
309,
261,
15898,
480,
3553,
18,
15898,
13,
288,
5411,
309,
261,
15898,
18,
2469,
480,
3553,
18,
15898,
18,
2469,
13,
7734,
327,
629,
31,
5411,
364,
261,
474,
277,
33,
20,
31,
277,
411,
7349,
18,
2469,
31,
277,
27245,
7734,
309,
261,
15898,
63,
77,
65,
480,
3553,
18,
15898,
63,
77,
5717,
10792,
327,
629,
31,
3639,
289,
3639,
309,
261,
1973,
18,
1467,
1435,
480,
3553,
18,
1973,
18,
1467,
10756,
5411,
327,
629,
31,
3639,
18760,
17864,
863,
18,
3198,
1400,
273,
394,
18760,
17864,
863,
18,
3198,
12,
1973,
1769,
3639,
364,
261,
2165,
18,
1937,
5621,
401,
2165,
18,
8734,
5621,
1400,
18,
4285,
10756,
288,
5411,
514,
508,
273,
261,
780,
13,
2165,
18,
588,
653,
5621,
5411,
509,
19353,
273,
1400,
18,
24805,
5621,
5411,
309,
261,
20498,
480,
1257,
18,
588,
12,
529,
16,
19353,
397,
404,
3719,
7734,
327,
629,
31,
3639,
289,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
1081,
13,
565,
288,
3639,
309,
16051,
12,
2603,
1276,
5110,
4216,
5374,
3719,
5411,
327,
629,
31,
3639,
5110,
4216,
5374,
3553,
273,
261,
5852,
4216,
5374,
13,
1081,
31,
3639,
309,
261,
9565,
797,
480,
3553,
18,
9565,
797,
13,
5411,
327,
629,
31,
3639,
309,
261,
15898,
480,
3553,
18,
15898,
13,
288,
5411,
309,
261,
15898,
18,
2469,
480,
3553,
18,
15898,
18,
2469,
13,
7734,
327,
629,
31,
5411,
364,
261,
474,
277,
33,
20,
31,
277,
411,
7349,
18,
2469,
31,
277,
27245,
7734,
309,
261,
15898,
63,
77,
65,
480,
3553,
18,
15898,
63,
77,
5717,
10792,
327,
629,
31,
3639,
289,
3639,
309,
261,
1973,
2
] |
private void setEnclosingScrollPane( JScrollPane scrollPane ) {
|
private void setEnclosingScrollPane(JScrollPane scrollPane) {
|
private void setEnclosingScrollPane( JScrollPane scrollPane ) { // if a scrollpane is already installed we remove it. if ( enclosingScrollPane != null ) { enclosingScrollPane.removeComponentListener( this ); } enclosingScrollPane = scrollPane; if ( enclosingScrollPane != null ) { enclosingScrollPane.addComponentListener( this ); } }
|
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/b8e7e882552e228be1abb30206bccdead75ecbac/BasicPanel.java/buggy/src/java/org/xhtmlrenderer/swing/BasicPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
444,
21594,
26360,
12,
46,
26360,
5532,
8485,
13,
288,
3639,
368,
309,
279,
5532,
29009,
353,
1818,
5876,
732,
1206,
518,
18,
3639,
309,
261,
16307,
26360,
480,
446,
262,
288,
5411,
16307,
26360,
18,
4479,
1841,
2223,
12,
333,
11272,
3639,
289,
7734,
16307,
26360,
273,
5532,
8485,
31,
7734,
309,
261,
16307,
26360,
480,
446,
262,
288,
5411,
16307,
26360,
18,
1289,
1841,
2223,
12,
333,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
444,
21594,
26360,
12,
46,
26360,
5532,
8485,
13,
288,
3639,
368,
309,
279,
5532,
29009,
353,
1818,
5876,
732,
1206,
518,
18,
3639,
309,
261,
16307,
26360,
480,
446,
262,
288,
5411,
16307,
26360,
18,
4479,
1841,
2223,
12,
333,
11272,
3639,
289,
7734,
16307,
26360,
273,
5532,
8485,
31,
7734,
309,
261,
16307,
26360,
480,
446,
262,
288,
5411,
16307,
26360,
18,
1289,
1841,
2223,
12,
333,
11272,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Vector<String> cp = new Vector<String>(); cp.addElement(tempPath + "a");
|
Vector<File> cp = new Vector<File>(); cp.addElement(new File(tempPath + "a"));
|
public void testInteractionsLiveUpdateClasspath() throws BadLocationException, IOException { if (CodeStatus.DEVELOPMENT) { OpenDefinitionsDocument doc = setupDocument(FOO_TEXT); File f = tempFile(); _doCompile(doc, f); // Rename the directory so it's not on the classpath anymore String tempPath = f.getParent(); File tempDir = new File(tempPath); tempDir.renameTo(new File(tempPath+"a")); String result = interpret("new DrJavaTestFoo().getClass().getName()"); // Should cause a NoClassDefFound, but we shouldn't check exact syntax. // Instead, make sure it isn't "DrJavaTestFoo", as if the class was found. assertTrue("interactions should have an error, not the correct answer", !"DrJavaTestFoo".equals(result)); // Add new directory to classpath through CONFIG Vector<String> cp = new Vector<String>(); cp.addElement(tempPath + "a"); DrJava.CONFIG.setSetting(EXTRA_CLASSPATH, cp); result = interpret("new DrJavaTestFoo().getClass().getName()"); // Now it should be on the classpath assertEquals("interactions result", "DrJavaTestFoo", result); // Rename directory back to clean up tempDir = new File(tempPath + "a"); tempDir.renameTo( new File(tempPath)); } else return; }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/395b2a102021edacb1427340196ea5475967dc87/GlobalModelOtherTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/GlobalModelOtherTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
2465,
4905,
12328,
1891,
17461,
1435,
565,
1216,
6107,
2735,
503,
16,
1860,
225,
288,
565,
309,
261,
1085,
1482,
18,
31771,
52,
3212,
13,
288,
1850,
3502,
7130,
2519,
997,
273,
3875,
2519,
12,
3313,
51,
67,
5151,
1769,
565,
1387,
284,
273,
18286,
5621,
3639,
389,
2896,
9937,
12,
2434,
16,
284,
1769,
565,
368,
19996,
326,
1867,
1427,
518,
1807,
486,
603,
326,
10006,
16828,
565,
514,
1906,
743,
273,
284,
18,
588,
3054,
5621,
565,
1387,
20719,
273,
394,
1387,
12,
5814,
743,
1769,
565,
20719,
18,
18539,
774,
12,
2704,
1387,
12,
5814,
743,
9078,
69,
7923,
1769,
12900,
514,
563,
273,
10634,
2932,
2704,
11473,
5852,
4709,
42,
5161,
7675,
588,
797,
7675,
17994,
1435,
8863,
3639,
368,
9363,
4620,
279,
2631,
797,
3262,
2043,
16,
1496,
732,
12044,
1404,
866,
5565,
6279,
18,
565,
368,
225,
17561,
16,
1221,
3071,
518,
5177,
1404,
315,
8956,
5852,
4709,
42,
5161,
3113,
487,
309,
326,
667,
1703,
1392,
18,
565,
1815,
5510,
2932,
2761,
4905,
1410,
1240,
392,
555,
16,
486,
326,
3434,
5803,
3113,
9079,
29054,
8956,
5852,
4709,
42,
5161,
9654,
14963,
12,
2088,
10019,
565,
368,
1436,
394,
1867,
358,
10006,
3059,
9128,
565,
5589,
32,
780,
34,
3283,
273,
394,
5589,
32,
780,
34,
5621,
565,
3283,
18,
1289,
1046,
12,
5814,
743,
397,
315,
69,
8863,
565,
11473,
5852,
18,
7203,
18,
542,
5568,
12,
22639,
67,
5237,
4211,
16,
3283,
1769,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
2465,
4905,
12328,
1891,
17461,
1435,
565,
1216,
6107,
2735,
503,
16,
1860,
225,
288,
565,
309,
261,
1085,
1482,
18,
31771,
52,
3212,
13,
288,
1850,
3502,
7130,
2519,
997,
273,
3875,
2519,
12,
3313,
51,
67,
5151,
1769,
565,
1387,
284,
273,
18286,
5621,
3639,
389,
2896,
9937,
12,
2434,
16,
284,
1769,
565,
368,
19996,
326,
1867,
1427,
518,
1807,
486,
603,
326,
10006,
16828,
565,
514,
1906,
743,
273,
284,
18,
588,
3054,
5621,
565,
1387,
20719,
273,
394,
1387,
12,
5814,
743,
1769,
565,
20719,
18,
18539,
774,
12,
2704,
1387,
12,
5814,
743,
9078,
69,
7923,
1769,
12900,
514,
563,
273,
10634,
2932,
2704,
11473,
5852,
4709,
42,
5161,
2
] |
UnmarshallerHandler activeHandler) throws org.xml.sax.SAXException {
|
UnmarshallerHandler activeHandler) throws org.xml.sax.SAXException {
|
protected void notifyEndActiveHandler(String name, UnmarshallerHandler activeHandler) throws org.xml.sax.SAXException { // we know that it is a prun process since we are // in prun option!!! PrunSubProcess prunSubProcess = (PrunSubProcess) targetProcess; // System.out.println("+++++ notifyEndActiveHandler " + name); if (name.equals(HOST_LIST_TAG)) { prunSubProcess.setHostList((String) activeHandler.getResultObject()); } else if (name.equals(HOSTS_NUMBER_TAG)) { prunSubProcess.setHostsNumber((String) activeHandler.getResultObject()); } else if (name.equals(PROCESSOR_PER_NODE_TAG)) { prunSubProcess.setProcessorPerNodeNumber((String) activeHandler.getResultObject()); // } else if (name.equals(SCRIPT_PATH_TAG)) { // prunSubProcess.setScriptLocation((String) // activeHandler.getResultObject()); // } } else if (name.equals(BOOKING_DURATION_TAG)) { prunSubProcess.setBookingDuration((String) activeHandler.getResultObject()); } else if (name.equals(OUTPUT_FILE)) { prunSubProcess.setOutputFile((String) activeHandler.getResultObject()); } else { super.notifyEndActiveHandler(name, activeHandler); } }
|
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/02b74933ab36f3053e665e84b8287cd5fd62e098/ProcessDefinitionHandler.java/clean/src/org/objectweb/proactive/core/descriptor/xml/ProcessDefinitionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
4750,
918,
5066,
1638,
3896,
1503,
12,
780,
508,
16,
7734,
1351,
27296,
1503,
2695,
1503,
13,
7734,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
7734,
368,
732,
5055,
716,
518,
353,
279,
846,
318,
1207,
3241,
732,
854,
7734,
368,
316,
846,
318,
1456,
25885,
7734,
2301,
318,
1676,
2227,
846,
318,
1676,
2227,
273,
261,
2050,
318,
1676,
2227,
13,
1018,
2227,
31,
7734,
368,
565,
2332,
18,
659,
18,
8222,
2932,
20934,
15,
5066,
1638,
3896,
1503,
315,
397,
508,
1769,
7734,
309,
261,
529,
18,
14963,
12,
8908,
67,
7085,
67,
7927,
3719,
288,
10792,
846,
318,
1676,
2227,
18,
542,
2594,
682,
12443,
780,
13,
2695,
1503,
18,
588,
1253,
921,
10663,
7734,
289,
469,
309,
261,
529,
18,
14963,
12,
8908,
55,
67,
9931,
67,
7927,
3719,
288,
10792,
846,
318,
1676,
2227,
18,
542,
12172,
1854,
12443,
780,
13,
2695,
1503,
18,
588,
1253,
921,
10663,
7734,
289,
469,
309,
261,
529,
18,
14963,
12,
16560,
916,
67,
3194,
67,
8744,
67,
7927,
3719,
288,
10792,
846,
318,
1676,
2227,
18,
542,
5164,
2173,
907,
1854,
12443,
780,
13,
2695,
1503,
18,
588,
1253,
921,
10663,
10792,
368,
7734,
289,
469,
309,
261,
529,
18,
14963,
12,
10885,
67,
4211,
67,
7927,
3719,
288,
10792,
368,
10792,
846,
318,
1676,
2227,
18,
542,
3651,
2735,
12443,
780,
13,
10792,
368,
2695,
1503,
18,
588,
1253,
921,
10663,
10792,
368,
7734,
289,
7734,
289,
469,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
4750,
918,
5066,
1638,
3896,
1503,
12,
780,
508,
16,
7734,
1351,
27296,
1503,
2695,
1503,
13,
7734,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
7734,
368,
732,
5055,
716,
518,
353,
279,
846,
318,
1207,
3241,
732,
854,
7734,
368,
316,
846,
318,
1456,
25885,
7734,
2301,
318,
1676,
2227,
846,
318,
1676,
2227,
273,
261,
2050,
318,
1676,
2227,
13,
1018,
2227,
31,
7734,
368,
565,
2332,
18,
659,
18,
8222,
2932,
20934,
15,
5066,
1638,
3896,
1503,
315,
397,
508,
1769,
7734,
309,
261,
529,
18,
14963,
12,
8908,
67,
7085,
67,
7927,
3719,
288,
10792,
846,
318,
1676,
2227,
18,
542,
2594,
682,
12443,
780,
13,
2695,
1503,
18,
2
] |
for (int i=size-1; i>0 ; i--) {
|
for (int i = size - 1; i >= 0; --i) {
|
public int getColumnNumber() { // search for the first external entity on the stack int size = fEntityStack.size(); for (int i=size-1; i>0 ; i--) { ScannedEntity firstExternalEntity = (ScannedEntity)fEntityStack.elementAt(i); if (firstExternalEntity.isExternal()) { return firstExternalEntity.columnNumber; } } return -1; }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/09e6e3365d43770ce5e351358cb4fcee4b1ecd5c/XMLEntityManager.java/clean/src/org/apache/xerces/impl/XMLEntityManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
6716,
1854,
1435,
288,
5411,
368,
1623,
364,
326,
1122,
3903,
1522,
603,
326,
2110,
5411,
509,
963,
273,
284,
1943,
2624,
18,
1467,
5621,
5411,
364,
261,
474,
277,
273,
963,
300,
404,
31,
277,
1545,
374,
31,
1493,
77,
13,
288,
7734,
2850,
10041,
1943,
1122,
6841,
1943,
273,
261,
1541,
10041,
1943,
13,
74,
1943,
2624,
18,
2956,
861,
12,
77,
1769,
7734,
309,
261,
3645,
6841,
1943,
18,
291,
6841,
10756,
288,
10792,
327,
1122,
6841,
1943,
18,
2827,
1854,
31,
7734,
289,
5411,
289,
5411,
327,
300,
21,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
6716,
1854,
1435,
288,
5411,
368,
1623,
364,
326,
1122,
3903,
1522,
603,
326,
2110,
5411,
509,
963,
273,
284,
1943,
2624,
18,
1467,
5621,
5411,
364,
261,
474,
277,
273,
963,
300,
404,
31,
277,
1545,
374,
31,
1493,
77,
13,
288,
7734,
2850,
10041,
1943,
1122,
6841,
1943,
273,
261,
1541,
10041,
1943,
13,
74,
1943,
2624,
18,
2956,
861,
12,
77,
1769,
7734,
309,
261,
3645,
6841,
1943,
18,
291,
6841,
10756,
288,
10792,
327,
1122,
6841,
1943,
18,
2827,
1854,
31,
7734,
289,
5411,
289,
5411,
327,
300,
21,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
action.setChecked( ( ((ICVariable)element).getFormat() == fFormat ) ); setVariable( (ICVariable)element ); return;
|
ICVariable var = (ICVariable)o; boolean enabled = var.isEditable(); action.setEnabled( enabled ); if ( enabled ) { action.setChecked( var.getFormat() == fFormat ); list.add(o); }
|
public void selectionChanged( IAction action, ISelection selection ) { if ( selection instanceof IStructuredSelection ) { Object element = ((IStructuredSelection)selection).getFirstElement(); if ( element instanceof ICVariable ) { boolean enabled = enablesFor( (ICVariable)element ); action.setEnabled( enabled ); if ( enabled ) { action.setChecked( ( ((ICVariable)element).getFormat() == fFormat ) ); setVariable( (ICVariable)element ); return; } } } action.setChecked( false ); action.setEnabled( false ); setVariable( null ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c6f2a35f9c3b95851027ef1f79bf454fc90cd08c/VariableFormatActionDelegate.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4421,
5033,
12,
467,
1803,
1301,
16,
467,
6233,
4421,
262,
202,
95,
202,
202,
430,
261,
4421,
1276,
467,
30733,
6233,
262,
202,
202,
95,
1082,
202,
921,
930,
273,
14015,
45,
30733,
6233,
13,
10705,
2934,
588,
3759,
1046,
5621,
1082,
202,
430,
261,
930,
1276,
26899,
3092,
262,
1082,
202,
95,
9506,
202,
6494,
3696,
273,
19808,
1290,
12,
261,
2871,
3092,
13,
2956,
11272,
9506,
202,
1128,
18,
542,
1526,
12,
3696,
11272,
9506,
202,
430,
261,
3696,
262,
9506,
202,
95,
6862,
202,
1128,
18,
542,
11454,
12,
261,
14015,
2871,
3092,
13,
2956,
2934,
588,
1630,
1435,
422,
284,
1630,
262,
11272,
6862,
202,
542,
3092,
12,
261,
2871,
3092,
13,
2956,
11272,
6862,
202,
2463,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
1128,
18,
542,
11454,
12,
629,
11272,
202,
202,
1128,
18,
542,
1526,
12,
629,
11272,
202,
202,
542,
3092,
12,
446,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4421,
5033,
12,
467,
1803,
1301,
16,
467,
6233,
4421,
262,
202,
95,
202,
202,
430,
261,
4421,
1276,
467,
30733,
6233,
262,
202,
202,
95,
1082,
202,
921,
930,
273,
14015,
45,
30733,
6233,
13,
10705,
2934,
588,
3759,
1046,
5621,
1082,
202,
430,
261,
930,
1276,
26899,
3092,
262,
1082,
202,
95,
9506,
202,
6494,
3696,
273,
19808,
1290,
12,
261,
2871,
3092,
13,
2956,
11272,
9506,
202,
1128,
18,
542,
1526,
12,
3696,
11272,
9506,
202,
430,
261,
3696,
262,
9506,
202,
95,
6862,
202,
1128,
18,
542,
11454,
12,
261,
14015,
2871,
3092,
13,
2956,
2934,
588,
1630,
1435,
422,
284,
1630,
262,
11272,
6862,
202,
542,
3092,
12,
261,
2871,
2
] |
if(log.isInfoEnabled()) log.info("exception=" + e.toString() + ", retrying");
|
if(log.isDebugEnabled()) log.debug("exception=" + e.toString() + ", retrying");
|
public void join(Address mbr) { Address coord=null; JoinRsp rsp=null; Digest tmp_digest=null; join_promise.reset(); while(true) { findInitialMembers(); if(log.isDebugEnabled()) log.debug("initial_mbrs are " + initial_mbrs); if(initial_mbrs.size() == 0) { if(gms.disable_initial_coord) { if(log.isInfoEnabled()) log.info("received an initial membership of 0, but cannot become coordinator (disable_initial_coord=" + gms.disable_initial_coord + "), will retry fetching the initial membership"); continue; } if(log.isInfoEnabled()) log.info("no initial members discovered: creating group as first member"); becomeSingletonMember(mbr); return; } coord=determineCoord(initial_mbrs); if(coord == null) { if(log.isErrorEnabled()) log.error("could not determine coordinator from responses " + initial_mbrs); continue; } try { if(log.isInfoEnabled()) log.info("sending handleJoin(" + mbr + ") to " + coord); sendJoinMessage(coord, mbr); rsp=(JoinRsp)join_promise.getResult(gms.join_timeout); if(rsp == null) { if(log.isWarnEnabled()) log.warn("handleJoin(" + mbr + ") failed, retrying"); } else { // 1. Install digest tmp_digest=rsp.getDigest(); if(tmp_digest != null) { tmp_digest.incrementHighSeqno(coord); // see DESIGN for an explanantion if(log.isInfoEnabled()) log.info("digest is " + tmp_digest); gms.setDigest(tmp_digest); } else if(log.isErrorEnabled()) log.error("digest of JOIN response is null"); // 2. Install view if(log.isDebugEnabled()) log.debug("[" + gms.local_addr + "]: JoinRsp=" + rsp.getView() + " [size=" + rsp.getView().size() + "]\n\n"); if(rsp.getView() != null) { if(!installView(rsp.getView())) { if(log.isErrorEnabled()) log.error("view installation failed, " + "retrying to join group"); continue; } gms.passUp(new Event(Event.BECOME_SERVER)); gms.passDown(new Event(Event.BECOME_SERVER)); return; } else if(log.isErrorEnabled()) log.error("view of JOIN response is null"); } } catch(Exception e) { if(log.isInfoEnabled()) log.info("exception=" + e.toString() + ", retrying"); } Util.sleep(gms.join_retry_timeout); } }
|
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/ClientGmsImpl.java/clean/src/org/jgroups/protocols/pbcast/ClientGmsImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1233,
12,
1887,
312,
2848,
13,
288,
3639,
5267,
2745,
33,
2011,
31,
3639,
4214,
54,
1752,
12049,
33,
2011,
31,
3639,
15864,
1853,
67,
10171,
33,
2011,
31,
3639,
1233,
67,
20837,
18,
6208,
5621,
3639,
1323,
12,
3767,
13,
288,
5411,
1104,
4435,
6918,
5621,
5411,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
6769,
67,
1627,
5453,
854,
315,
397,
2172,
67,
1627,
5453,
1769,
5411,
309,
12,
6769,
67,
1627,
5453,
18,
1467,
1435,
422,
374,
13,
288,
7734,
309,
12,
75,
959,
18,
8394,
67,
6769,
67,
5732,
13,
288,
10792,
309,
12,
1330,
18,
291,
966,
1526,
10756,
13491,
613,
18,
1376,
2932,
15213,
392,
2172,
12459,
434,
374,
16,
1496,
2780,
12561,
24794,
261,
8394,
67,
6769,
67,
5732,
1546,
397,
27573,
314,
959,
18,
8394,
67,
6769,
67,
5732,
397,
315,
3631,
903,
3300,
16191,
326,
2172,
12459,
8863,
10792,
1324,
31,
7734,
289,
7734,
309,
12,
1330,
18,
291,
966,
1526,
10756,
10792,
613,
18,
1376,
2932,
2135,
2172,
4833,
18238,
30,
4979,
1041,
487,
1122,
3140,
8863,
7734,
12561,
19571,
4419,
12,
1627,
86,
1769,
7734,
327,
31,
5411,
289,
5411,
2745,
33,
24661,
5401,
12,
6769,
67,
1627,
5453,
1769,
5411,
309,
12,
5732,
422,
446,
13,
288,
7734,
309,
12,
1330,
18,
291,
668,
1526,
10756,
10792,
613,
18,
1636,
2932,
15195,
486,
4199,
24794,
628,
7220,
315,
397,
2172,
67,
1627,
5453,
1769,
7734,
1324,
31,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1233,
12,
1887,
312,
2848,
13,
288,
3639,
5267,
2745,
33,
2011,
31,
3639,
4214,
54,
1752,
12049,
33,
2011,
31,
3639,
15864,
1853,
67,
10171,
33,
2011,
31,
3639,
1233,
67,
20837,
18,
6208,
5621,
3639,
1323,
12,
3767,
13,
288,
5411,
1104,
4435,
6918,
5621,
5411,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
6769,
67,
1627,
5453,
854,
315,
397,
2172,
67,
1627,
5453,
1769,
5411,
309,
12,
6769,
67,
1627,
5453,
18,
1467,
1435,
422,
374,
13,
288,
7734,
309,
12,
75,
959,
18,
8394,
67,
6769,
67,
5732,
13,
288,
10792,
309,
12,
1330,
18,
291,
966,
1526,
10756,
13491,
613,
18,
1376,
2932,
15213,
392,
2172,
2
] |
if ( classpath != null ) {
|
if ( classpath != null && classpath.trim().length() > 0 ) {
|
private static void processJar( File jfile, int level ) throws IOException { /* Check we have a file not directory entry. */ if ( jfile.isDirectory() ) { throw new IllegalArgumentException( jfile + " is a directory, " + "only jarfiles allowed" ); } /* Skip this one if we've already seen it. */ String name = jfile.toString(); String cname = jfile.getCanonicalPath(); if ( doneJars.contains( cname ) ) { logStrm.println( " Duplicate: " + name ); return; } doneJars.add( cname ); logStrm.println( levelPrefix( level ) + name ); /* Open a stream from the jar file. */ InputStream istrm = new BufferedInputStream( new FileInputStream( jfile ) ); JarInputStream jstrm = new JarInputStream( istrm, false ); Manifest manifest = jstrm.getManifest(); /* Copy all the entries to the output jar. */ byte[] buffer = new byte[ 4096 ]; for ( JarEntry jent; ( jent = jstrm.getNextJarEntry() ) != null; ) { if ( ! jent.isDirectory() && jent.getName().indexOf( "META-INF" ) < 0 ) { jarOut.putNextEntry( jent ); for ( int nbyte; ( nbyte = jstrm.read( buffer ) ) >= 0; ) { jarOut.write( buffer, 0, nbyte ); } } jstrm.closeEntry(); } jstrm.close(); /* Recurse. */ Attributes atts = manifest.getMainAttributes(); String classpath = atts.getValue( Attributes.Name.CLASS_PATH ); if ( classpath != null ) { File dir = jfile.getParentFile(); String[] cpents = classpath.trim().split( " +" ); for ( int i = 0; i < cpents.length; i++ ) { File jf = new File( dir, cpents[ i ] ); if ( excludes.contains( jf.getName() ) ) { logStrm.println( levelPrefix( level ) + " Excluding: " + jf ); } else { processJar( jf, level + 1 ); } } } }
|
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/71cd5ac12f1d238dae80bf4f05c99e50bd09e522/SuperJar.java/clean/util/src/main/uk/ac/starlink/util/SuperJar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1207,
10813,
12,
1387,
525,
768,
16,
509,
1801,
262,
5411,
1216,
1860,
288,
3639,
1748,
2073,
732,
1240,
279,
585,
486,
1867,
1241,
18,
1195,
3639,
309,
261,
525,
768,
18,
291,
2853,
1435,
262,
288,
5411,
604,
394,
2754,
12,
525,
768,
397,
315,
353,
279,
1867,
16,
315,
397,
4766,
7734,
315,
3700,
7334,
2354,
2935,
6,
11272,
3639,
289,
3639,
1748,
6611,
333,
1245,
309,
732,
8081,
1818,
5881,
518,
18,
1195,
3639,
514,
508,
273,
525,
768,
18,
10492,
5621,
3639,
514,
18290,
273,
525,
768,
18,
588,
15512,
743,
5621,
3639,
309,
261,
2731,
46,
5913,
18,
12298,
12,
18290,
262,
262,
288,
5411,
613,
1585,
81,
18,
8222,
12,
315,
3639,
19072,
30,
315,
397,
508,
11272,
5411,
327,
31,
3639,
289,
3639,
2731,
46,
5913,
18,
1289,
12,
18290,
11272,
3639,
613,
1585,
81,
18,
8222,
12,
1801,
2244,
12,
1801,
262,
397,
508,
11272,
3639,
1748,
3502,
279,
1407,
628,
326,
7334,
585,
18,
1195,
3639,
5037,
353,
313,
81,
273,
2398,
394,
24742,
12,
394,
11907,
12,
525,
768,
262,
11272,
3639,
15644,
4348,
525,
701,
81,
273,
394,
15644,
4348,
12,
353,
313,
81,
16,
629,
11272,
3639,
15443,
5643,
273,
525,
701,
81,
18,
588,
9121,
5621,
3639,
1748,
5631,
777,
326,
3222,
358,
326,
876,
7334,
18,
1195,
3639,
1160,
8526,
1613,
273,
394,
1160,
63,
16797,
308,
31,
3639,
364,
261,
15644,
1622,
525,
319,
31,
261,
525,
319,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1207,
10813,
12,
1387,
525,
768,
16,
509,
1801,
262,
5411,
1216,
1860,
288,
3639,
1748,
2073,
732,
1240,
279,
585,
486,
1867,
1241,
18,
1195,
3639,
309,
261,
525,
768,
18,
291,
2853,
1435,
262,
288,
5411,
604,
394,
2754,
12,
525,
768,
397,
315,
353,
279,
1867,
16,
315,
397,
4766,
7734,
315,
3700,
7334,
2354,
2935,
6,
11272,
3639,
289,
3639,
1748,
6611,
333,
1245,
309,
732,
8081,
1818,
5881,
518,
18,
1195,
3639,
514,
508,
273,
525,
768,
18,
10492,
5621,
3639,
514,
18290,
273,
525,
768,
18,
588,
15512,
743,
5621,
3639,
309,
261,
2731,
46,
5913,
18,
12298,
12,
18290,
262,
262,
288,
5411,
613,
1585,
81,
18,
8222,
2
] |
String prefix = namespace.getPrefix(); if ( ! prefixes.contains( prefix ) ) { prefixes.add( prefix ); nsList.add( namespace.asXPathResult( element ) );
|
if (namespace != Namespace.NO_NAMESPACE) { String prefix = namespace.getPrefix(); if ( ! prefixes.contains( prefix ) ) { prefixes.add( prefix ); nsList.add( namespace.asXPathResult( element ) ); }
|
public Iterator getNamespaceAxisIterator(Object contextNode) { if ( ! ( contextNode instanceof Element ) ) { return JaxenConstants.EMPTY_ITERATOR; } Element element = (Element) contextNode; List nsList = new ArrayList(); HashSet prefixes = new HashSet(); for ( Element context = element; context != null; context = context.getParent() ) { List declaredNS = context.declaredNamespaces(); for ( Iterator iter = declaredNS.iterator(); iter.hasNext(); ) { Namespace namespace = (Namespace) iter.next(); String prefix = namespace.getPrefix(); if ( ! prefixes.contains( prefix ) ) { prefixes.add( prefix ); nsList.add( namespace.asXPathResult( element ) ); } } } nsList.add( Namespace.XML_NAMESPACE.asXPathResult( element ) ); return nsList.iterator(); }
|
12974 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12974/599fb5d1990c51539ae2b024561ac80fc0c849f2/DocumentNavigator.java/buggy/src/java/main/org/jaxen/dom4j/DocumentNavigator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
11153,
6558,
3198,
12,
921,
819,
907,
13,
565,
288,
3639,
309,
261,
401,
261,
819,
907,
1276,
3010,
262,
262,
3639,
288,
5411,
327,
25824,
275,
2918,
18,
13625,
67,
11844,
3575,
31,
3639,
289,
3639,
3010,
930,
273,
261,
1046,
13,
819,
907,
31,
3639,
987,
3153,
682,
273,
394,
2407,
5621,
3639,
6847,
9419,
273,
394,
6847,
5621,
3639,
364,
261,
3010,
819,
273,
930,
31,
819,
480,
446,
31,
819,
273,
819,
18,
588,
3054,
1435,
262,
288,
5411,
987,
7886,
3156,
273,
819,
18,
16571,
13180,
5621,
5411,
364,
261,
4498,
1400,
273,
7886,
3156,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
6005,
1981,
273,
261,
3402,
13,
1400,
18,
4285,
5621,
7734,
514,
1633,
273,
1981,
18,
588,
2244,
5621,
7734,
309,
261,
401,
9419,
18,
12298,
12,
1633,
262,
262,
288,
10792,
9419,
18,
1289,
12,
1633,
11272,
10792,
3153,
682,
18,
1289,
12,
1981,
18,
345,
14124,
1253,
12,
930,
262,
11272,
7734,
289,
5411,
289,
3639,
289,
3639,
3153,
682,
18,
1289,
12,
6005,
18,
4201,
67,
11368,
18,
345,
14124,
1253,
12,
930,
262,
11272,
3639,
327,
3153,
682,
18,
9838,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
11153,
6558,
3198,
12,
921,
819,
907,
13,
565,
288,
3639,
309,
261,
401,
261,
819,
907,
1276,
3010,
262,
262,
3639,
288,
5411,
327,
25824,
275,
2918,
18,
13625,
67,
11844,
3575,
31,
3639,
289,
3639,
3010,
930,
273,
261,
1046,
13,
819,
907,
31,
3639,
987,
3153,
682,
273,
394,
2407,
5621,
3639,
6847,
9419,
273,
394,
6847,
5621,
3639,
364,
261,
3010,
819,
273,
930,
31,
819,
480,
446,
31,
819,
273,
819,
18,
588,
3054,
1435,
262,
288,
5411,
987,
7886,
3156,
273,
819,
18,
16571,
13180,
5621,
5411,
364,
261,
4498,
1400,
273,
7886,
3156,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
6005,
1981,
273,
261,
2
] |
view = PerspectiveManager.loadPerspective(restoreFiles); if(getBufferCount() == 0) buffer = newFile(null);
|
view = PerspectiveManager .loadPerspective( restoreFiles);
|
private static void finishStartup(final boolean gui, final boolean restore, final String userDir, final String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { Buffer buffer = openFiles(null,userDir,args); View view = null; boolean restoreFiles = restore && jEdit.getBooleanProperty("restore") && (getBufferCount() == 0 || jEdit.getBooleanProperty("restore.cli")); if(gui || getBufferCount() != 0) { view = PerspectiveManager.loadPerspective(restoreFiles); if(getBufferCount() == 0) buffer = newFile(null); if(view == null) view = newView(null,buffer); else if(buffer != null) view.setBuffer(buffer); } // Start I/O threads EditBus.send(new EditorStarted(null)); VFSManager.start(); // Start edit server if(server != null) server.start(); GUIUtilities.hideSplashScreen(); Log.log(Log.MESSAGE,jEdit.class,"Startup " + "complete"); //{{{ Report any plugin errors if(pluginErrors != null) { showPluginErrorDialog(); } //}}} startupDone = true; // in one case not a single AWT class will // have been touched (splash screen off + // -nogui -nobackground switches on command // line) Toolkit.getDefaultToolkit(); } }); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/6028db306a1e52b22690da6fb3892ee9f8dee3ea/jEdit.java/buggy/org/gjt/sp/jedit/jEdit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
4076,
22178,
12,
6385,
1250,
13238,
16,
727,
1250,
5217,
16,
202,
202,
6385,
514,
729,
1621,
16,
727,
514,
8526,
833,
13,
202,
95,
202,
202,
6050,
310,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
1082,
202,
95,
9506,
202,
1892,
1613,
273,
1696,
2697,
12,
2011,
16,
1355,
1621,
16,
1968,
1769,
9506,
202,
1767,
1476,
273,
446,
31,
9506,
202,
6494,
5217,
2697,
273,
5217,
6862,
202,
10,
10,
525,
4666,
18,
588,
5507,
1396,
2932,
13991,
7923,
6862,
202,
10,
10,
261,
588,
1892,
1380,
1435,
422,
374,
6862,
202,
20081,
525,
4666,
18,
588,
5507,
1396,
2932,
13991,
18,
4857,
7923,
1769,
9506,
202,
430,
12,
20292,
747,
22238,
1380,
1435,
480,
374,
13,
9506,
202,
95,
6862,
202,
1945,
273,
453,
414,
16772,
1318,
18,
945,
14781,
16772,
12,
13991,
2697,
1769,
6862,
202,
430,
12,
588,
1892,
1380,
1435,
422,
374,
13,
25083,
202,
4106,
273,
20592,
12,
2011,
1769,
6862,
202,
430,
12,
1945,
422,
446,
13,
25083,
202,
1945,
273,
394,
1767,
12,
2011,
16,
4106,
1769,
6862,
202,
12107,
309,
12,
4106,
480,
446,
13,
25083,
202,
1945,
18,
542,
1892,
12,
4106,
1769,
9506,
202,
97,
9506,
202,
759,
3603,
467,
19,
51,
7403,
9506,
202,
4666,
7086,
18,
4661,
12,
2704,
18451,
9217,
12,
2011,
10019,
9506,
202,
58,
4931,
1318,
18,
1937,
5621,
9506,
202,
759,
3603,
3874,
1438,
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,
1152,
760,
918,
4076,
22178,
12,
6385,
1250,
13238,
16,
727,
1250,
5217,
16,
202,
202,
6385,
514,
729,
1621,
16,
727,
514,
8526,
833,
13,
202,
95,
202,
202,
6050,
310,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
1082,
202,
95,
9506,
202,
1892,
1613,
273,
1696,
2697,
12,
2011,
16,
1355,
1621,
16,
1968,
1769,
9506,
202,
1767,
1476,
273,
446,
31,
9506,
202,
6494,
5217,
2697,
273,
5217,
6862,
202,
10,
10,
525,
4666,
18,
588,
5507,
1396,
2932,
13991,
7923,
6862,
202,
10,
10,
261,
588,
1892,
1380,
1435,
422,
374,
6862,
202,
20081,
525,
4666,
18,
588,
5507,
1396,
2932,
13991,
18,
4857,
7923,
2
] |
def = testF2(file, offset);
|
def = testCtrl_F3(file, offset);
|
public void testCPPSpecDeclsDefs() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("int a; // defines a\n"); //$NON-NLS-1$ buffer.append("extern const int c = 1; // defines c\n"); //$NON-NLS-1$ buffer.append("int f(int x) { return x+a; } // defines f and defines x\n"); //$NON-NLS-1$ buffer.append("struct S { int a; int b; }; // defines S, S::a, and S::b\n"); //$NON-NLS-1$ buffer.append("struct X { // defines X\n"); //$NON-NLS-1$ buffer.append("int x; // defines nonstatic data member x\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("enum { up, down }; // defines up and down\n"); //$NON-NLS-1$ buffer.append("struct X anX; // defines anX\n"); //$NON-NLS-1$ buffer.append("extern int a; // declares a\n"); //$NON-NLS-1$ buffer.append("extern const int c; // declares c\n"); //$NON-NLS-1$ buffer.append("int f(int); // declares f\n"); //$NON-NLS-1$ buffer.append("struct S; // declares S\n"); //$NON-NLS-1$ buffer.append("typedef int Int; // declares Int\n"); //$NON-NLS-1$ buffer.append("extern struct X anotherX; // declares anotherX\n"); //$NON-NLS-1$ String code = buffer.toString(); IFile file = importFile("testCPPSpecDeclsDefs.c", code); //$NON-NLS-1$ int offset = code.indexOf("a; // defines a"); //$NON-NLS-1$ IASTNode def = testF2(file, offset); IASTNode decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("c = 1; // defines c"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 37); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 37); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("f(int x) { return x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 61); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 61); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x) { return x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("S { int a; int b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 120); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 120); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("a; int b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 128); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 128); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "b"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 135); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "b"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 135); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("X { // defines X"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x; // defines nonstatic data member x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 198); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 198); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("up, down }; // defines up and down"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "up"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 246); assertEquals(((ASTNode)decl).getLength(), 2); assertEquals(((IASTName)def).toString(), "up"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 246); assertEquals(((ASTNode)def).getLength(), 2); offset = code.indexOf("down }; // defines up and down"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "down"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 250); assertEquals(((ASTNode)decl).getLength(), 4); assertEquals(((IASTName)def).toString(), "down"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 250); assertEquals(((ASTNode)def).getLength(), 4); offset = code.indexOf("X anX; // defines anX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("anX; // defines anX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "anX"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 290); assertEquals(((ASTNode)decl).getLength(), 3); assertEquals(((IASTName)def).toString(), "anX"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 290); assertEquals(((ASTNode)def).getLength(), 3); offset = code.indexOf("a; // declares a"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("c; // declares c"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 37); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 37); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("f(int); // declares f"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 61); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 61); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("S; // declares S"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 120); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 120); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("Int; // declares Int"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 434); assertEquals(((ASTNode)decl).getLength(), 3); assertEquals(((IASTName)def).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 434); assertEquals(((ASTNode)def).getLength(), 3); offset = code.indexOf("X anotherX; // declares anotherX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("anotherX; // declares anotherX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertNull(def); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "anotherX"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 471); assertEquals(((ASTNode)decl).getLength(), 8); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a80f774ac034fed44b578ede9c708e773e1fabcf/CSelectionTestsDOMIndexer.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsDOMIndexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4258,
52,
1990,
1799,
3251,
14554,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
3639,
1613,
18,
6923,
2932,
474,
279,
31,
368,
11164,
279,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
338,
798,
1866,
509,
276,
273,
404,
31,
368,
11164,
276,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
474,
284,
12,
474,
619,
13,
288,
327,
619,
15,
69,
31,
289,
368,
11164,
284,
471,
11164,
619,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
1697,
348,
288,
509,
279,
31,
509,
324,
31,
289,
31,
368,
11164,
348,
16,
348,
2866,
69,
16,
471,
348,
2866,
70,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
1697,
1139,
288,
368,
11164,
1139,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
474,
619,
31,
368,
11164,
1661,
3845,
501,
3140,
619,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
97,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
7924,
288,
731,
16,
2588,
289,
31,
368,
11164,
731,
471,
2588,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
1697,
1139,
392,
60,
31,
368,
11164,
392,
60,
64,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4258,
52,
1990,
1799,
3251,
14554,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
3639,
1613,
18,
6923,
2932,
474,
279,
31,
368,
11164,
279,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
338,
798,
1866,
509,
276,
273,
404,
31,
368,
11164,
276,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
474,
284,
12,
474,
619,
13,
288,
327,
619,
15,
69,
31,
289,
368,
11164,
284,
471,
11164,
619,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
1697,
348,
288,
509,
279,
31,
509,
324,
31,
2
] |
addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); dload((short)(lVar1.getJRegister() + 1)); dload((short)(lVar2.getJRegister() + 1));
|
cfw.add(ByteCode.IF_ACMPNE, notNumbersLabel); cfw.addDLoad(lVar1.getJRegister() + 1); cfw.addDLoad(lVar2.getJRegister() + 1);
|
private void visitIfJumpRelOp(Node node, Node child, int trueGOTO, int falseGOTO) { int type = node.getType(); if (type == Token.INSTANCEOF || type == Token.IN) { generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); aload(variableObjectLocal); addScriptRuntimeInvoke( (type == Token.INSTANCEOF) ? "instanceOf" : "in", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Z"); addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); return; } int childNumberFlag = node.getIntProp(Node.ISNUMBER_PROP, -1); if (childNumberFlag == Node.BOTH) { generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); genSimpleCompare(type, trueGOTO, falseGOTO); } else { Node rChild = child.getNext(); boolean leftIsDCP = nodeIsDirectCallParameter(child); boolean rightIsDCP = nodeIsDirectCallParameter(rChild); if (leftIsDCP || rightIsDCP) { if (leftIsDCP) { if (rightIsDCP) { OptLocalVariable lVar1, lVar2; lVar1 = (OptLocalVariable)child.getProp( Node.VARIABLE_PROP); aload(lVar1.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); lVar2 = (OptLocalVariable)rChild.getProp( Node.VARIABLE_PROP); aload(lVar2.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); dload((short)(lVar1.getJRegister() + 1)); dload((short)(lVar2.getJRegister() + 1)); genSimpleCompare(type, trueGOTO, falseGOTO); markLabel(notNumbersLabel); // fall thru to generic handling } else { // just the left child is a DCP, if the right child // is a number it's worth testing the left if (childNumberFlag == Node.RIGHT) { OptLocalVariable lVar1; lVar1 = (OptLocalVariable)child.getProp( Node.VARIABLE_PROP); aload(lVar1.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); dload((short)(lVar1.getJRegister() + 1)); generateCodeFromNode(rChild, node); genSimpleCompare(type, trueGOTO, falseGOTO); markLabel(notNumbersLabel); // fall thru to generic handling } } } else { // just the right child is a DCP, if the left child // is a number it's worth testing the right if (childNumberFlag == Node.LEFT) { OptLocalVariable lVar2; lVar2 = (OptLocalVariable)rChild.getProp( Node.VARIABLE_PROP); aload(lVar2.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); generateCodeFromNode(child, node); dload((short)(lVar2.getJRegister() + 1)); genSimpleCompare(type, trueGOTO, falseGOTO); markLabel(notNumbersLabel); // fall thru to generic handling } } } generateCodeFromNode(child, node); generateCodeFromNode(rChild, node); if (childNumberFlag == -1) { if (type == Token.GE || type == Token.GT) { addByteCode(ByteCode.SWAP); } String routine = ((type == Token.LT) || (type == Token.GT)) ? "cmp_LT" : "cmp_LE"; addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")I"); } else { boolean doubleThenObject = (childNumberFlag == Node.LEFT); if (type == Token.GE || type == Token.GT) { if (doubleThenObject) { addByteCode(ByteCode.DUP_X2); addByteCode(ByteCode.POP); doubleThenObject = false; } else { addByteCode(ByteCode.DUP2_X1); addByteCode(ByteCode.POP2); doubleThenObject = true; } } String routine = ((type == Token.LT) || (type == Token.GT)) ? "cmp_LT" : "cmp_LE"; if (doubleThenObject) addOptRuntimeInvoke(routine, "(DLjava/lang/Object;)I"); else addOptRuntimeInvoke(routine, "(Ljava/lang/Object;D)I"); } addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); } }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/f4ef5c00b7c63e8fce3655104f541db47ac22d49/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
2047,
26743,
1971,
3817,
12,
907,
756,
16,
2029,
1151,
16,
21394,
509,
638,
43,
27019,
16,
509,
629,
43,
27019,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
309,
261,
723,
422,
3155,
18,
13341,
3932,
747,
618,
422,
3155,
18,
706,
13,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
5411,
2103,
1085,
28570,
12,
3624,
18,
588,
2134,
9334,
756,
1769,
5411,
279,
945,
12,
6105,
921,
2042,
1769,
5411,
527,
3651,
5576,
10969,
12,
7734,
261,
723,
422,
3155,
18,
13341,
3932,
13,
692,
315,
1336,
951,
6,
294,
315,
267,
3113,
7734,
7751,
21159,
19,
4936,
19,
921,
4868,
7734,
397,
6,
21159,
19,
4936,
19,
921,
4868,
7734,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
7734,
397,
7923,
62,
8863,
5411,
527,
3216,
1085,
12,
3216,
1085,
18,
5501,
5407,
16,
638,
43,
27019,
1769,
5411,
527,
3216,
1085,
12,
3216,
1085,
18,
43,
27019,
16,
629,
43,
27019,
1769,
5411,
327,
31,
3639,
289,
3639,
509,
1151,
1854,
4678,
273,
756,
18,
588,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
300,
21,
1769,
3639,
309,
261,
3624,
1854,
4678,
422,
2029,
18,
38,
18307,
13,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
5411,
2103,
1085,
28570,
12,
3624,
18,
588,
2134,
9334,
756,
1769,
5411,
3157,
5784,
8583,
12,
723,
16,
638,
43,
27019,
16,
629,
43,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
2047,
26743,
1971,
3817,
12,
907,
756,
16,
2029,
1151,
16,
21394,
509,
638,
43,
27019,
16,
509,
629,
43,
27019,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
309,
261,
723,
422,
3155,
18,
13341,
3932,
747,
618,
422,
3155,
18,
706,
13,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
5411,
2103,
1085,
28570,
12,
3624,
18,
588,
2134,
9334,
756,
1769,
5411,
279,
945,
12,
6105,
921,
2042,
1769,
5411,
527,
3651,
5576,
10969,
12,
7734,
261,
723,
422,
3155,
18,
13341,
3932,
13,
692,
315,
1336,
951,
6,
294,
315,
267,
3113,
7734,
7751,
21159,
19,
4936,
19,
921,
4868,
7734,
397,
6,
21159,
2
] |
private void resolveKickAttack(KickAttackAction kaa, int lastEntityId) { final Entity ae = game.getEntity(kaa.getEntityId()); final Targetable target = game.getTarget(kaa.getTargetType(), kaa.getTargetId()); Entity te = null; if (target.getTargetType() == Targetable.TYPE_ENTITY) { te = (Entity)target; } final String legName = kaa.getLeg() == KickAttackAction.LEFT ? "Left Leg" : "Right Leg"; final boolean targetInBuilding = Compute.isInBuilding( game, te ); // Which building takes the damage? Building bldg = game.board.getBuildingAt( target.getPosition() ); if (lastEntityId != ae.getId()) { phaseReport.append("\nPhysical attacks for " ).append( ae.getDisplayName() ).append( "\n"); } phaseReport.append(" Kick (" ).append( legName ).append( ") at " ).append( target.getDisplayName()); // // should we even bother?// if (te.isDestroyed() || te.isDoomed() || te.crew.isDead()) {// phaseReport.append(" but the target is already destroyed!\n");// return;// } // compute to-hit ToHitData toHit = Compute.toHitKick(game, kaa); int roll = 0; if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append(", but the kick is impossible (" ).append( toHit.getDesc() ).append( ")\n"); game.addPSR(new PilotingRollData(ae.getId(), 0, "missed a kick")); return; } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { phaseReport.append(", the kick is an automatic hit (" ).append( toHit.getDesc() ).append( "), "); roll = Integer.MAX_VALUE; } else { // roll roll = Compute.d6(2); phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); phaseReport.append("rolls " ).append( roll ).append( " : "); } int damage = Compute.getKickDamageFor(ae, kaa.getLeg()); // do we hit? if (roll < toHit.getValue()) { // miss phaseReport.append("misses.\n"); game.addPSR(new PilotingRollData(ae.getId(), 0, "missed a kick")); // If the target is in a building, the building absorbs the damage. if ( targetInBuilding && bldg != null ) { // Only report if damage was done to the building. if ( damage > 0 ) { phaseReport.append( " " ) .append( damageBuilding( bldg, damage ) ) .append( "\n" ); } } return; } // Targeting a building. if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. phaseReport.append( "hits.\n " ) .append( damageBuilding( bldg, damage ) ) .append( "\n" ); // Damage any infantry in the hex. this.damageInfantryIn( bldg, damage ); // And we're done! return; } HitData hit = te.rollHitLocation(toHit.getHitTable(), toHit.getSideTable()); phaseReport.append("hits" ).append( toHit.getTableDesc() ).append( " " ).append( te.getLocationAbbr(hit)); // The building shields all units from a certain amount of damage. // The amount is based upon the building's CF at the phase's start. if ( targetInBuilding && bldg != null ) { int bldgAbsorbs = (int) Math.ceil( bldg.getPhaseCF() / 10.0 ); int toBldg = Math.min( bldgAbsorbs, damage ); damage -= toBldg; phaseReport.append( "\n " ) .append( damageBuilding( bldg, toBldg ) ); } // A building may absorb the entire shot. if ( damage == 0 ) { phaseReport.append( "\n " ) .append( te.getDisplayName() ) .append( " suffers no damage." ); } else { phaseReport.append( damageEntity(te, hit, damage) ); } if (te.getMovementType() == Entity.MovementType.BIPED || te.getMovementType() == Entity.MovementType.QUAD) { game.addPSR(new PilotingRollData(te.getId(), getKickPushPSRMod(ae, te, 0), "was kicked")); } phaseReport.append("\n"); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/359f7976ea7b886c35ce9187dadb639fb01ebfca/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
47,
1200,
3075,
484,
12,
47,
1200,
3075,
484,
1803,
417,
7598,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
7282,
69,
18,
588,
18029,
10663,
3639,
727,
5916,
429,
1018,
273,
7920,
18,
588,
2326,
12,
7282,
69,
18,
588,
2326,
559,
9334,
417,
7598,
18,
588,
2326,
548,
10663,
3639,
3887,
6489,
273,
446,
31,
3639,
309,
261,
3299,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
11101,
13,
288,
5411,
6489,
273,
261,
1943,
13,
3299,
31,
3639,
289,
3639,
727,
514,
4553,
461,
273,
417,
7598,
18,
588,
8329,
1435,
422,
1475,
1200,
3075,
484,
1803,
18,
10066,
3639,
692,
315,
3910,
17167,
6,
3639,
294,
315,
4726,
17167,
14432,
3639,
727,
1250,
1018,
382,
16713,
273,
8155,
18,
291,
382,
16713,
12,
7920,
16,
6489,
11272,
3639,
368,
21918,
10504,
5530,
326,
302,
301,
410,
35,
3639,
3998,
310,
324,
1236,
75,
273,
7920,
18,
3752,
18,
588,
16713,
861,
12,
1018,
18,
588,
2555,
1435,
11272,
7734,
309,
261,
2722,
18029,
480,
14221,
18,
26321,
10756,
288,
5411,
6855,
4820,
18,
6923,
31458,
82,
18136,
28444,
364,
315,
262,
18,
6923,
12,
14221,
18,
588,
20524,
1435,
262,
18,
6923,
12,
1548,
82,
8863,
3639,
289,
7734,
6855,
4820,
18,
6923,
2932,
565,
1475,
1200,
7566,
262,
18,
6923,
12,
4553,
461,
262,
18,
6923,
12,
9369,
622,
315,
262,
18,
6923,
12,
1018,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
47,
1200,
3075,
484,
12,
47,
1200,
3075,
484,
1803,
417,
7598,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
7282,
69,
18,
588,
18029,
10663,
3639,
727,
5916,
429,
1018,
273,
7920,
18,
588,
2326,
12,
7282,
69,
18,
588,
2326,
559,
9334,
417,
7598,
18,
588,
2326,
548,
10663,
3639,
3887,
6489,
273,
446,
31,
3639,
309,
261,
3299,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
11101,
13,
288,
5411,
6489,
273,
261,
1943,
13,
3299,
31,
3639,
289,
3639,
727,
514,
4553,
461,
273,
417,
7598,
18,
588,
8329,
1435,
422,
1475,
1200,
3075,
484,
1803,
18,
10066,
3639,
692,
2
] |
||
public org.quickfix.field.LegDatedDate getLegDatedDate() throws FieldNotFound { org.quickfix.field.LegDatedDate value = new org.quickfix.field.LegDatedDate();
|
public quickfix.field.LegDatedDate getLegDatedDate() throws FieldNotFound { quickfix.field.LegDatedDate value = new quickfix.field.LegDatedDate();
|
public org.quickfix.field.LegDatedDate getLegDatedDate() throws FieldNotFound { org.quickfix.field.LegDatedDate value = new org.quickfix.field.LegDatedDate(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityList.java/buggy/src/java/src/quickfix/fix44/SecurityList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
40,
690,
1626,
336,
8329,
40,
690,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
40,
690,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
40,
690,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
40,
690,
1626,
336,
8329,
40,
690,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
40,
690,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
40,
690,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (getExecutionYear() != null) { return getDegreeCurricularPlan().getCompetenceCourses(getExecutionYear()); } else { return new ArrayList<CompetenceCourse>(); }
|
return getDegreeCurricularPlan().getCompetenceCourses(getExecutionYear());
|
public List<CompetenceCourse> getDegreeCurricularPlanCompetenceCourses() { if (getExecutionYear() != null) { return getDegreeCurricularPlan().getCompetenceCourses(getExecutionYear()); } else { return new ArrayList<CompetenceCourse>(); } }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/4d5f80f5ed058c8b852ee460b2c0451b2637a3e8/CurricularCourseManagementBackingBean.java/buggy/src/net/sourceforge/fenixedu/presentationTier/backBeans/bolonhaManager/curricularPlans/CurricularCourseManagementBackingBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
2945,
278,
802,
39,
3117,
34,
336,
22885,
2408,
1512,
2490,
5365,
2945,
278,
802,
39,
10692,
1435,
288,
3639,
309,
261,
588,
3210,
5593,
1435,
480,
446,
13,
288,
5411,
327,
336,
22885,
2408,
1512,
2490,
5365,
7675,
588,
2945,
278,
802,
39,
10692,
12,
588,
3210,
5593,
10663,
3639,
289,
469,
288,
5411,
327,
394,
2407,
32,
2945,
278,
802,
39,
3117,
34,
5621,
5411,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
2945,
278,
802,
39,
3117,
34,
336,
22885,
2408,
1512,
2490,
5365,
2945,
278,
802,
39,
10692,
1435,
288,
3639,
309,
261,
588,
3210,
5593,
1435,
480,
446,
13,
288,
5411,
327,
336,
22885,
2408,
1512,
2490,
5365,
7675,
588,
2945,
278,
802,
39,
10692,
12,
588,
3210,
5593,
10663,
3639,
289,
469,
288,
5411,
327,
394,
2407,
32,
2945,
278,
802,
39,
3117,
34,
5621,
5411,
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
] |
if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8) - VARHDRSZ; tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); } else { tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); } tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); tuple[11] = r.getBytes(11); tuple[12] = r.getBytes(9);
|
tuple[10] = Integer.toString(rs.getBoolean("attnotnull") ? java.sql.DatabaseMetaData.columnNoNulls : java.sql.DatabaseMetaData.columnNullable).getBytes(); tuple[11] = rs.getBytes("description"); tuple[12] = rs.getBytes("adsrc");
|
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, NAME_SIZE); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, NAME_SIZE); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern.toLowerCase() + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/format_type.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8) - VARHDRSZ; tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); } else { tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal } tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return connection.getResultSet(null, f, v, "OK", 1); }
|
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
4574,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
2
] |
public org.quickfix.field.UnderlyingIssuer getUnderlyingIssuer() throws FieldNotFound { org.quickfix.field.UnderlyingIssuer value = new org.quickfix.field.UnderlyingIssuer();
|
public quickfix.field.UnderlyingIssuer getUnderlyingIssuer() throws FieldNotFound { quickfix.field.UnderlyingIssuer value = new quickfix.field.UnderlyingIssuer();
|
public org.quickfix.field.UnderlyingIssuer getUnderlyingIssuer() throws FieldNotFound { org.quickfix.field.UnderlyingIssuer value = new org.quickfix.field.UnderlyingIssuer(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataIncrementalRefresh.java/clean/src/java/src/quickfix/fix44/MarketDataIncrementalRefresh.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16667,
10833,
765,
6291,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16667,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16667,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16667,
10833,
765,
6291,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16667,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16667,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
highest_seen=seqno;
|
if(highest_seen+2 == tail) { highest_seen++; } else { updateHighestSeen(); }
|
public void add(long seqno, Message msg) { long old_tail; try { lock.writeLock().acquire(); try { old_tail=tail; if(seqno < head) { if(log.isTraceEnabled()) { StringBuffer sb=new StringBuffer("seqno "); sb.append(seqno).append(" is smaller than ").append(head).append("); discarding message"); log.trace(sb.toString()); } return; } // add at end (regular expected msg) if(seqno == tail) { received_msgs.put(new Long(seqno), msg); tail++; highest_seen=seqno; } // gap detected // i. add placeholders, creating gaps // ii. add real msg // iii. tell retransmitter to retrieve missing msgs else if(seqno > tail) { for(long i=tail; i < seqno; i++) { received_msgs.put(new Long(i), null); // XmitEntry xmit_entry=new XmitEntry(); //xmits.put(new Long(i), xmit_entry); tail++; } received_msgs.put(new Long(seqno), msg); tail=seqno + 1; if(retransmitter != null) { retransmitter.add(old_tail, seqno - 1); } } else if(seqno < tail) { // finally received missing message if(log.isTraceEnabled()) { StringBuffer sb=new StringBuffer("added missing msg "); sb.append(msg.getSrc()).append('#').append(seqno); log.trace(sb.toString()); } if(listener != null) { try {listener.missingMessageReceived(seqno, msg);} catch(Throwable t) {} } Object val=received_msgs.get(new Long(seqno)); if(val == null) { // only set message if not yet received (bela July 23 2003) received_msgs.put(new Long(seqno), msg); if(highest_seen +1 == seqno || seqno == head) updateHighestSeen(); //XmitEntry xmit_entry=(XmitEntry)xmits.get(new Long(seqno)); //if(xmit_entry != null) // xmit_entry.received=System.currentTimeMillis(); //long xmit_diff=xmit_entry == null? -1 : xmit_entry.received - xmit_entry.created; //NAKACK.addXmitResponse(msg.getSrc(), seqno); if(retransmitter != null) retransmitter.remove(seqno); } } updateLowestSeen(); } finally { lock.writeLock().release(); } } catch(InterruptedException e) { log.error("failed acquiring write lock", e); } }
|
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/0da5f6770dd0574a7e24c001d7f4164fec7a122b/NakReceiverWindow.java/buggy/src/org/jgroups/stack/NakReceiverWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
12,
5748,
30734,
16,
2350,
1234,
13,
288,
3639,
1525,
1592,
67,
13101,
31,
3639,
775,
288,
5411,
2176,
18,
2626,
2531,
7675,
1077,
1039,
5621,
5411,
775,
288,
7734,
1592,
67,
13101,
33,
13101,
31,
7734,
309,
12,
5436,
2135,
411,
910,
13,
288,
10792,
309,
12,
1330,
18,
291,
3448,
1526,
10756,
288,
13491,
6674,
2393,
33,
2704,
6674,
2932,
5436,
2135,
315,
1769,
13491,
2393,
18,
6923,
12,
5436,
2135,
2934,
6923,
2932,
353,
10648,
2353,
315,
2934,
6923,
12,
1978,
2934,
6923,
2932,
1769,
10388,
310,
883,
8863,
13491,
613,
18,
5129,
12,
18366,
18,
10492,
10663,
10792,
289,
10792,
327,
31,
7734,
289,
7734,
368,
527,
622,
679,
261,
16819,
2665,
1234,
13,
7734,
309,
12,
5436,
2135,
422,
5798,
13,
288,
10792,
5079,
67,
27439,
18,
458,
12,
2704,
3407,
12,
5436,
2135,
3631,
1234,
1769,
10792,
5798,
9904,
31,
10792,
309,
12,
8766,
395,
67,
15156,
15,
22,
422,
5798,
13,
288,
9742,
67,
15156,
9904,
31,
289,
469,
288,
1089,
8573,
395,
15160,
5621,
289,
5375,
289,
7734,
368,
9300,
8316,
7734,
368,
277,
18,
527,
12150,
16,
4979,
21085,
7734,
368,
6072,
18,
527,
2863,
1234,
7734,
368,
277,
2835,
18,
9276,
283,
2338,
1938,
387,
358,
4614,
3315,
8733,
7734,
469,
309,
12,
5436,
2135,
405,
5798,
13,
288,
10792,
364,
12,
5748,
277,
33,
13101,
31,
277,
411,
30734,
31,
277,
27245,
288,
13491,
5079,
67,
27439,
18,
458,
12,
2704,
3407,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
12,
5748,
30734,
16,
2350,
1234,
13,
288,
3639,
1525,
1592,
67,
13101,
31,
3639,
775,
288,
5411,
2176,
18,
2626,
2531,
7675,
1077,
1039,
5621,
5411,
775,
288,
7734,
1592,
67,
13101,
33,
13101,
31,
7734,
309,
12,
5436,
2135,
411,
910,
13,
288,
10792,
309,
12,
1330,
18,
291,
3448,
1526,
10756,
288,
13491,
6674,
2393,
33,
2704,
6674,
2932,
5436,
2135,
315,
1769,
13491,
2393,
18,
6923,
12,
5436,
2135,
2934,
6923,
2932,
353,
10648,
2353,
315,
2934,
6923,
12,
1978,
2934,
6923,
2932,
1769,
10388,
310,
883,
8863,
13491,
613,
18,
5129,
12,
18366,
18,
10492,
10663,
10792,
289,
10792,
327,
31,
7734,
289,
7734,
368,
527,
622,
679,
261,
16819,
2
] |
if (name1 == null) name1 = ""; if (name2 == null) name2 = "";
|
if (name1 == null) { name1 = ""; } if (name2 == null) { name2 = ""; }
|
public FeatureSelectionDialog(Shell shell, AboutInfo[] features, String primaryFeatureId, String shellTitle, String shellMessage, String helpContextId) { super(shell); if (features == null || features.length == 0) { throw new IllegalArgumentException(); } this.features = features; this.helpContextId = helpContextId; setTitle(shellTitle); setMessage(shellMessage); // Sort ascending Arrays.sort(features, new Comparator() { Collator coll = Collator.getInstance(Locale.getDefault()); public int compare(Object a, Object b) { AboutInfo i1, i2; String name1, name2; i1 = (AboutInfo) a; name1 = i1.getFeatureLabel(); i2 = (AboutInfo) b; name2 = i2.getFeatureLabel(); if (name1 == null) name1 = ""; //$NON-NLS-1$ if (name2 == null) name2 = ""; //$NON-NLS-1$ return coll.compare(name1, name2); } }); // Find primary feature for (int i = 0; i < features.length; i++) { if (features[i].getFeatureId().equals(primaryFeatureId)) { setInitialSelections(new Object[] { features[i] }); return; } } // set a safe default setInitialSelections(new Object[0]); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/FeatureSelectionDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/FeatureSelectionDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7881,
6233,
6353,
12,
13220,
5972,
16,
9771,
659,
966,
8526,
4467,
16,
5411,
514,
3354,
4595,
548,
16,
514,
5972,
4247,
16,
514,
5972,
1079,
16,
5411,
514,
2809,
1042,
548,
13,
288,
3639,
2240,
12,
10304,
1769,
3639,
309,
261,
7139,
422,
446,
747,
4467,
18,
2469,
422,
374,
13,
288,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
333,
18,
7139,
273,
4467,
31,
3639,
333,
18,
5201,
1042,
548,
273,
2809,
1042,
548,
31,
3639,
14109,
12,
10304,
4247,
1769,
3639,
15227,
12,
10304,
1079,
1769,
3639,
368,
5928,
13976,
3639,
5647,
18,
3804,
12,
7139,
16,
394,
13359,
1435,
288,
5411,
17596,
639,
4508,
273,
17596,
639,
18,
588,
1442,
12,
3916,
18,
588,
1868,
10663,
5411,
1071,
509,
3400,
12,
921,
279,
16,
1033,
324,
13,
288,
7734,
9771,
659,
966,
277,
21,
16,
277,
22,
31,
7734,
514,
508,
21,
16,
508,
22,
31,
7734,
277,
21,
273,
261,
24813,
966,
13,
279,
31,
7734,
508,
21,
273,
277,
21,
18,
588,
4595,
2224,
5621,
7734,
277,
22,
273,
261,
24813,
966,
13,
324,
31,
7734,
508,
22,
273,
277,
22,
18,
588,
4595,
2224,
5621,
7734,
309,
261,
529,
21,
422,
446,
13,
10792,
508,
21,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
309,
261,
529,
22,
422,
446,
13,
10792,
508,
22,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
327,
4508,
18,
9877,
12,
529,
21,
16,
508,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7881,
6233,
6353,
12,
13220,
5972,
16,
9771,
659,
966,
8526,
4467,
16,
5411,
514,
3354,
4595,
548,
16,
514,
5972,
4247,
16,
514,
5972,
1079,
16,
5411,
514,
2809,
1042,
548,
13,
288,
3639,
2240,
12,
10304,
1769,
3639,
309,
261,
7139,
422,
446,
747,
4467,
18,
2469,
422,
374,
13,
288,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
333,
18,
7139,
273,
4467,
31,
3639,
333,
18,
5201,
1042,
548,
273,
2809,
1042,
548,
31,
3639,
14109,
12,
10304,
4247,
1769,
3639,
15227,
12,
10304,
1079,
1769,
3639,
368,
5928,
13976,
3639,
5647,
18,
3804,
12,
7139,
16,
394,
13359,
1435,
288,
5411,
17596,
639,
4508,
273,
17596,
639,
18,
588,
1442,
12,
3916,
2
] |
initInetNetworks(nets);
|
public NetMatcher(final Collection nets) { initInetNetworks(nets); }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/2721b76220e39ac91443830984220c69b7f1d668/NetMatcher.java/buggy/branches/branch_2_1_fcs/src/java/org/apache/james/util/NetMatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8503,
6286,
12,
6385,
2200,
21954,
13,
565,
288,
6647,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8503,
6286,
12,
6385,
2200,
21954,
13,
565,
288,
6647,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
PatchEdit.waitDialog.hide();
|
PatchEdit.hideWaitDialog();
|
protected void buildEditor(Patch patch) { PatchEdit.waitDialog.show(); // Because it needs some time to build up the editor frame JPanel cmnPane = new JPanel(); cmnPane.setLayout(new GridBagLayout());gbc.weightx=1;gbc.anchor=GridBagConstraints.EAST; gbc.gridx=0;gbc.gridy=0;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); addWidget(cmnPane,new PatchNameWidget("Name (20 Char.)", patch), 0, 1,6, 1, 0); gbc.gridx=0;gbc.gridy=2;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); addWidget(cmnPane,new ComboBoxWidget("Voice Number - A" ,patch,new ParamModel(patch,16+ 1),new PerformanceSender( 1),VoiceName) ,0, 3,4,1, 2); addWidget(cmnPane,new ComboBoxWidget("Voice Number - B" ,patch,new ParamModel(patch,16+ 2),new PerformanceSender( 2),VoiceName) ,4, 3,4,1, 3); gbc.gridx=0;gbc.gridy=4;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); addWidget(cmnPane,new ComboBoxWidget("Total Volume" ,patch,new ParamModel(patch,16+16),new PerformanceSender(16),VolumeName) ,0, 5,4,1, 4); addWidget(cmnPane,new ComboBoxWidget("Balance" ,patch,new ParamModel(patch,16+15),new PerformanceSender(15),BalanceName) ,4, 5,4,1, 5); addWidget(cmnPane,new ComboBoxWidget("Dual Detune Depth" ,patch,new ParamModel(patch,16+ 6),new PerformanceSender( 6),DetuneName) ,8, 5,4,1, 6); gbc.gridx=0;gbc.gridy=6;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); addWidget(cmnPane,new ComboBoxWidget("Voice Mode" ,patch,new ParamModel(patch,16+ 0),new PerformanceSender( 0),VoiceModeName) ,0, 7,4,1, 7); addWidget(cmnPane,new ComboBoxWidget("Split Point" ,patch,new ParamModel(patch,16+ 7),new PerformanceSender( 7),NoteKeyName) ,4, 7,4,1, 8); addWidget(cmnPane,new ComboBoxWidget("EG Forced Damp" ,patch,new ParamModel(patch,16+ 8),new PerformanceSender( 8),OnOffName) ,8, 7,4,1, 9); gbc.gridx=0;gbc.gridy=8;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); gbc.gridx=0;gbc.gridy=9;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel("Note Shift Range for:"),gbc); addWidget(cmnPane,new ComboBoxWidget("Channel A (SemiTones)",patch,new ParamModel(patch,16+13),new PerformanceSender(13),NoteShiftName) ,0,10,4,1,10); addWidget(cmnPane,new ComboBoxWidget("Channel B (SemiTones)",patch,new ParamModel(patch,16+14),new PerformanceSender(14),NoteShiftName) ,4,10,4,1,11); gbc.gridx=0;gbc.gridy=11;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); gbc.gridx=0;gbc.gridy=12;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel("Footswitch Controllers:"),gbc); addWidget(cmnPane,new ComboBoxWidget("Sustain / FS 1 (A - B)",patch,new ParamModel(patch,16+ 9),new PerformanceSender( 9),FSOnOffName) ,0,13,4,1,12); addWidget(cmnPane,new ComboBoxWidget("FS 2 (A - B)" ,patch,new ParamModel(patch,16+11),new PerformanceSender(11),FSOnOffName) ,0,14,4,1,13); addWidget(cmnPane,new ComboBoxWidget("FS 2 Assign" ,patch,new ParamModel(patch,16+10),new PerformanceSender(10),FSAssignName) ,4,14,4,1,14); addWidget(cmnPane,new ComboBoxWidget("Soft Pedal Range" ,patch,new ParamModel(patch,16+12),new PerformanceSender(12),DetuneName) ,8,14,4,1,15); gbc.gridx=0;gbc.gridy=15;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); gbc.gridx=0;gbc.gridy=16;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel("Continuous Slider:"),gbc); addWidget(cmnPane,new ComboBoxWidget("CS Assign (A - B)" ,patch,new ParamModel(patch,16+19),new PerformanceSender(19),CSAssignName) ,0,17,4,1,16); addWidget(cmnPane,new ComboBoxWidget("CS 1" ,patch,new ParamModel(patch,16+17),new PerformanceSender(17),CSParaName) ,0,18,4,1,17); addWidget(cmnPane,new ComboBoxWidget("CS 2" ,patch,new ParamModel(patch,16+18),new PerformanceSender(18),CSParaName) ,4,18,4,1,18); gbc.gridx=0;gbc.gridy=19;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); gbc.gridx=0;gbc.gridy=20;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel("Micro Tuning:"),gbc); addWidget(cmnPane,new ComboBoxWidget("Switch \"A - B\"" ,patch,new ParamModel(patch,16+ 5),new PerformanceSender( 5),FSOnOffName) ,0,21,4,1,19); addWidget(cmnPane,new ComboBoxWidget("Table Select" ,patch,new ParamModel(patch,16+ 3),new PerformanceSender( 3),MicroTableName),4,21,4,1,20); addWidget(cmnPane,new ComboBoxWidget("Key Select" ,patch,new ParamModel(patch,16+ 4),new PerformanceSender( 4),MicroKeyName) ,8,21,4,1,21); gbc.gridx=0;gbc.gridy=22;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); gbc.gridx=0;gbc.gridy=23;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel("Pan(orama) Function:"),gbc); addWidget(cmnPane,new ComboBoxWidget("Mode \"A - B\"" ,patch,new ParamModel(patch,16+20),new PerformanceSender(20),PanModeName) ,0,24,4,1,22); addWidget(cmnPane,new ComboBoxWidget("Control Range" ,patch,new ParamModel(patch,16+21),new PerformanceSender(21),VolumeName) ,4,24,4,1,23); addWidget(cmnPane,new ComboBoxWidget("Control Assign" ,patch,new ParamModel(patch,16+22),new PerformanceSender(22),PanAssignName) ,8,24,4,1,24); gbc.gridx=0;gbc.gridy=24;gbc.gridwidth=1;gbc.gridheight=1; cmnPane.add(new JLabel(" "),gbc); addWidget(cmnPane,new EnvelopeWidget("Pan Envelope Generator",patch,new EnvelopeNode [] { new EnvelopeNode(0,0,null,0,0,null,0,false,null,null,null,null), new EnvelopeNode(0,99,new ParamModel(patch,16+23),0,99,new ParamModel(patch,16+27),0,true,new PerformanceSender(23),new PerformanceSender(27),"R1","L1"), new EnvelopeNode(0,99,new ParamModel(patch,16+24),0,99,new ParamModel(patch,16+28),0,true,new PerformanceSender(24),new PerformanceSender(28),"R2","L2"), new EnvelopeNode(0,99,new ParamModel(patch,16+25),0,99,new ParamModel(patch,16+29),0,true,new PerformanceSender(25),new PerformanceSender(29),"R3","L3"), new EnvelopeNode(0,99,new ParamModel(patch,16+26),0,99,new ParamModel(patch,16+30),0,true,new PerformanceSender(26),new PerformanceSender(30),"R4","L4"), }),0,26,10,9,25); scrollPane.add(cmnPane,gbc); pack(); show(); PatchEdit.waitDialog.hide(); // Okay, the editor frame is ready }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/288c37754f078b63d3b942b6a1730a5ffefaca7f/DX7FamilyPerformanceIIEditor.java/buggy/JSynthLib/synthdrivers/YamahaDX7/common/DX7FamilyPerformanceIIEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1361,
6946,
12,
7332,
4729,
13,
202,
95,
202,
202,
7332,
4666,
18,
7048,
6353,
18,
4500,
5621,
202,
759,
15191,
518,
4260,
2690,
813,
358,
1361,
731,
326,
4858,
2623,
202,
202,
46,
5537,
5003,
82,
8485,
273,
394,
24048,
5621,
202,
202,
7670,
82,
8485,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
4490,
71,
18,
4865,
92,
33,
21,
31,
4490,
71,
18,
16215,
33,
6313,
6852,
18,
41,
9053,
31,
202,
202,
4490,
71,
18,
5222,
92,
33,
20,
31,
4490,
71,
18,
5222,
93,
33,
20,
31,
4490,
71,
18,
5222,
2819,
33,
21,
31,
4490,
71,
18,
5222,
4210,
33,
21,
31,
5003,
82,
8485,
18,
1289,
12,
2704,
21403,
2932,
315,
3631,
4490,
71,
1769,
202,
202,
1289,
4609,
12,
7670,
82,
8485,
16,
2704,
12042,
461,
4609,
2932,
461,
261,
3462,
3703,
18,
2225,
16,
4729,
3631,
374,
16,
404,
16,
26,
16,
404,
16,
374,
1769,
202,
202,
4490,
71,
18,
5222,
92,
33,
20,
31,
4490,
71,
18,
5222,
93,
33,
22,
31,
4490,
71,
18,
5222,
2819,
33,
21,
31,
4490,
71,
18,
5222,
4210,
33,
21,
31,
5003,
82,
8485,
18,
1289,
12,
2704,
21403,
2932,
315,
3631,
4490,
71,
1769,
202,
202,
1289,
4609,
12,
7670,
82,
8485,
16,
2704,
1286,
1075,
3514,
4609,
2932,
14572,
3588,
300,
432,
6,
202,
282,
269,
2272,
16,
2704,
3014,
1488,
12,
2272,
16,
2313,
15,
404,
3631,
2704,
11217,
1359,
12021,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
6946,
12,
7332,
4729,
13,
202,
95,
202,
202,
7332,
4666,
18,
7048,
6353,
18,
4500,
5621,
202,
759,
15191,
518,
4260,
2690,
813,
358,
1361,
731,
326,
4858,
2623,
202,
202,
46,
5537,
5003,
82,
8485,
273,
394,
24048,
5621,
202,
202,
7670,
82,
8485,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
4490,
71,
18,
4865,
92,
33,
21,
31,
4490,
71,
18,
16215,
33,
6313,
6852,
18,
41,
9053,
31,
202,
202,
4490,
71,
18,
5222,
92,
33,
20,
31,
4490,
71,
18,
5222,
93,
33,
20,
31,
4490,
71,
18,
5222,
2819,
33,
21,
31,
4490,
71,
18,
5222,
4210,
33,
21,
31,
5003,
82,
8485,
18,
1289,
12,
2
] |
String spec, int startingOffset) ;
|
String spec, int startingOffset, int startingLine) ;
|
public IASTLinkageSpecification createLinkageSpecification( IASTScope scope, String spec, int startingOffset) ;
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a38f5c4f0dd1208b4df07f8a318b103677fbf77a/IASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
2098,
410,
8615,
752,
2098,
410,
8615,
12,
3639,
467,
9053,
3876,
2146,
16,
3639,
514,
857,
16,
509,
5023,
2335,
13,
274,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
2098,
410,
8615,
752,
2098,
410,
8615,
12,
3639,
467,
9053,
3876,
2146,
16,
3639,
514,
857,
16,
509,
5023,
2335,
13,
274,
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
] |
pixelType = FormatReader.UINT8;
|
pixelType[0] = FormatReader.UINT8;
|
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); byte[] fourBytes = new byte[4]; in.read(fourBytes); littleEndian = new String(fourBytes).equals("iiii"); in.order(littleEndian); // populate standard metadata hashtable and OME root node in.skipBytes(12); dataSize = in.readInt() - 28; width = in.readInt(); height = in.readInt(); c = in.readInt(); int zDepth = in.readInt(); int tDepth = in.readInt(); int filePixelType = in.readInt(); numImages = zDepth * tDepth; metadata.put("Width", new Long(width)); metadata.put("Height", new Long(height)); metadata.put("Channels", new Long(c)); metadata.put("ZDepth", new Long(zDepth)); metadata.put("TDepth", new Long(tDepth)); String ptype; bps = 1; switch ((int) filePixelType) { case 0: ptype = "8 bit unsigned"; pixelType = FormatReader.UINT8; bps = 1; break; case 1: ptype = "16 bit signed short"; pixelType = FormatReader.INT16; bps = 2; break; case 2: ptype = "16 bit unsigned short"; pixelType = FormatReader.UINT16; bps = 2; break; case 3: ptype = "32 bit signed long"; pixelType = FormatReader.INT32; bps = 4; break; case 4: ptype = "32 bit single-precision float"; pixelType = FormatReader.FLOAT; bps = 4; break; case 5: ptype = "Color24"; pixelType = FormatReader.INT32; bps = 1; break; case 6: ptype = "Color48"; pixelType = FormatReader.INT32; bps = 2; break; case 10: ptype = "64 bit double-precision float"; bps = 8; break; default: ptype = "reserved"; // for values 7-9 } metadata.put("PixelType", ptype); in.skipBytes(dataSize); order = "XY"; if (c > 1) order += "CZT"; else order += "ZTC"; // The metadata store we're working with. MetadataStore store = getMetadataStore(id); store.setPixels( new Integer((int) width), // SizeX new Integer((int) height), // SizeY new Integer((int) zDepth), // SizeZ new Integer((int) c), // SizeC new Integer((int) tDepth), // SizeT new Integer(pixelType), // PixelType new Boolean(!littleEndian), // BigEndian order, // DimensionOrder null); // Use index 0 in.read(fourBytes); String tag = new String(fourBytes); while (!tag.equals("fini")) { if (tag.equals("clut")) { // read in Color Lookup Table int size = in.readInt(); if (size == 8) { // indexed lookup table in.readInt(); int type = in.readInt(); String clutType = "unknown"; switch ((int) type) { case 0: clutType = "monochrome"; break; case 1: clutType = "reverse monochrome"; break; case 2: clutType = "BGR"; break; case 3: clutType = "classify"; break; case 4: clutType = "rainbow"; break; case 5: clutType = "red"; break; case 6: clutType = "green"; break; case 7: clutType = "blue"; break; case 8: clutType = "cyan"; break; case 9: clutType = "magenta"; break; case 10: clutType = "yellow"; break; case 11: clutType = "saturated pixels"; break; } metadata.put("LUT type", clutType); } else { // explicitly defined lookup table // length is 772 in.readInt(); byte[] colorTable = new byte[256*3]; in.read(colorTable); } } else if (tag.equals("norm")) { // read in normalization information int size = in.readInt(); // error checking if (size != (44 * c)) { throw new FormatException("Bad normalization settings"); } for (int i=0; i<c; i++) { long source = in.readInt(); String sourceType; switch ((int) source) { case 0: sourceType = "user"; break; case 1: sourceType = "plane"; break; case 2: sourceType = "sequence"; break; case 3: sourceType = "saturated plane"; break; case 4: sourceType = "saturated sequence"; break; case 5: sourceType = "ROI"; break; default: sourceType = "user"; } metadata.put("NormalizationSource" + i, sourceType); double min = in.readDouble(); double max = in.readDouble(); double gamma = in.readDouble(); double black = in.readDouble(); double white = in.readDouble(); metadata.put("NormalizationMin" + i, new Double(min)); metadata.put("NormalizationMax" + i, new Double(max)); metadata.put("NormalizationGamma" + i, new Double(gamma)); metadata.put("NormalizationBlack" + i, new Double(black)); metadata.put("NormalizationWhite" + i, new Double(white)); } } else if (tag.equals("head")) { // read in header labels in.readInt(); // size is defined to 2200 for (int i=0; i<100; i++) { int num = in.readShort(); in.read(fourBytes); String name = new String(fourBytes); metadata.put("Header" + num, name); } } else if (tag.equals("roi ")) { // read in ROI information in.skipBytes(8); int roiLeft = in.readInt(); int roiTop = in.readInt(); int roiRight = in.readInt(); int roiBottom = in.readInt(); int numRoiPts = in.readInt(); Integer x0 = new Integer((int) roiLeft); Integer x1 = new Integer((int) roiRight); Integer y0 = new Integer((int) roiBottom); Integer y1 = new Integer((int) roiTop); store.setDisplayROI( x0, y0, null, x1, y1, null, null, null, null, null); in.skipBytes(8 * numRoiPts); } else if (tag.equals("mask")) { // read in Segmentation Mask } else if (tag.equals("unit")) { // read in units in.readInt(); // size is 48 for (int i=0; i<4; i++) { int xResStyle = in.readInt(); int unitsPerPixel = in.readInt(); int xUnitName = in.readInt(); metadata.put("ResolutionStyle" + i, new Long(xResStyle)); metadata.put("UnitsPerPixel" + i, new Long(unitsPerPixel)); if (i == 0) { Float pixelSize = new Float(unitsPerPixel); store.setDimensions(pixelSize, pixelSize, null, null, null, null); } metadata.put("UnitName" + i, new Long(xUnitName)); } } else if (tag.equals("view")) { // read in view in.readInt(); } else if (tag.equals("plot")) { // read in plot // skipping this field for the moment in.skipBytes(2512); } else if (tag.equals("notes")) { // read in notes (image info) in.readInt(); // size is 576 byte[] temp = new byte[64]; in.read(temp); String descriptor = new String(temp); temp = new byte[512]; in.read(temp); String notes = new String(temp); metadata.put("Descriptor", descriptor); metadata.put("Notes", notes); store.setImage(id, null, notes, null); } try { in.read(fourBytes); tag = new String(fourBytes); } catch (Exception e) { tag = "fini"; } } sizeX[0] = width; sizeY[0] = height; sizeZ[0] = (int) ((Long) metadata.get("ZDepth")).longValue(); sizeC[0] = c; sizeT[0] = (int) ((Long) metadata.get("TDepth")).longValue();; currentOrder[0] = order; }
|
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/152ea9f3f73a28d996513a7cb7b820a6ed4e6b22/IPLabReader.java/buggy/loci/formats/in/IPLabReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
1862,
1228,
12,
350,
1769,
565,
1160,
8526,
12792,
2160,
273,
394,
1160,
63,
24,
15533,
565,
316,
18,
896,
12,
74,
477,
2160,
1769,
565,
328,
10609,
273,
394,
514,
12,
74,
477,
2160,
2934,
14963,
2932,
2835,
2835,
8863,
565,
316,
18,
1019,
12,
80,
10609,
1769,
565,
368,
6490,
4529,
1982,
711,
14544,
471,
531,
958,
1365,
756,
565,
316,
18,
7457,
2160,
12,
2138,
1769,
565,
30216,
273,
316,
18,
896,
1702,
1435,
300,
9131,
31,
565,
1835,
273,
316,
18,
896,
1702,
5621,
565,
2072,
273,
316,
18,
896,
1702,
5621,
565,
276,
273,
316,
18,
896,
1702,
5621,
565,
509,
998,
6148,
273,
316,
18,
896,
1702,
5621,
565,
509,
268,
6148,
273,
316,
18,
896,
1702,
5621,
565,
509,
585,
9037,
559,
273,
316,
18,
896,
1702,
5621,
565,
818,
8946,
273,
998,
6148,
380,
268,
6148,
31,
565,
1982,
18,
458,
2932,
2384,
3113,
394,
3407,
12,
2819,
10019,
565,
1982,
18,
458,
2932,
2686,
3113,
394,
3407,
12,
4210,
10019,
565,
1982,
18,
458,
2932,
10585,
3113,
394,
3407,
12,
71,
10019,
565,
1982,
18,
458,
2932,
62,
6148,
3113,
394,
3407,
12,
94,
6148,
10019,
565,
1982,
18,
458,
2932,
56,
6148,
3113,
394,
3407,
12,
88,
6148,
10019,
565,
514,
24203,
31,
565,
324,
1121,
273,
404,
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,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
1862,
1228,
12,
350,
1769,
565,
1160,
8526,
12792,
2160,
273,
394,
1160,
63,
24,
15533,
565,
316,
18,
896,
12,
74,
477,
2160,
1769,
565,
328,
10609,
273,
394,
514,
12,
74,
477,
2160,
2934,
14963,
2932,
2835,
2835,
8863,
565,
316,
18,
1019,
12,
80,
10609,
1769,
565,
368,
6490,
4529,
1982,
711,
14544,
471,
531,
958,
1365,
756,
565,
316,
18,
7457,
2160,
12,
2138,
1769,
565,
30216,
273,
316,
18,
896,
1702,
1435,
300,
9131,
31,
565,
1835,
273,
316,
18,
896,
1702,
5621,
565,
2072,
273,
2
] |
graph = (Graphics2D) i.next(); log.debug("Restoring: " + graph); state.push();
|
Java2DGraphicsState s = (Java2DGraphicsState)i.next(); stateStack.push(state); state = s;
|
protected void restoreStateStackAfterBreakOut(List breakOutList) { log.debug( "Block.FIXED --> restoring context after break-out"); Graphics2D graph; Iterator i = breakOutList.iterator(); while (i.hasNext()) { graph = (Graphics2D) i.next(); log.debug("Restoring: " + graph); state.push(); } }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/0c9e940819053540698f38164a59e6da737d47b8/Java2DRenderer.java/buggy/src/java/org/apache/fop/render/java2d/Java2DRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5217,
1119,
2624,
4436,
7634,
1182,
12,
682,
898,
1182,
682,
13,
288,
3639,
613,
18,
4148,
12,
7734,
315,
1768,
18,
30406,
15431,
3127,
6053,
819,
1839,
898,
17,
659,
8863,
3639,
16830,
22,
40,
2667,
31,
3639,
4498,
277,
273,
898,
1182,
682,
18,
9838,
5621,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
2667,
273,
261,
17558,
22,
40,
13,
277,
18,
4285,
5621,
5411,
613,
18,
4148,
2932,
5188,
6053,
30,
315,
397,
2667,
1769,
5411,
919,
18,
6206,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5217,
1119,
2624,
4436,
7634,
1182,
12,
682,
898,
1182,
682,
13,
288,
3639,
613,
18,
4148,
12,
7734,
315,
1768,
18,
30406,
15431,
3127,
6053,
819,
1839,
898,
17,
659,
8863,
3639,
16830,
22,
40,
2667,
31,
3639,
4498,
277,
273,
898,
1182,
682,
18,
9838,
5621,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
2667,
273,
261,
17558,
22,
40,
13,
277,
18,
4285,
5621,
5411,
613,
18,
4148,
2932,
5188,
6053,
30,
315,
397,
2667,
1769,
5411,
919,
18,
6206,
5621,
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
] |
private void handleComplexTypeError(String message, int typeNameIndex,
|
private void handleComplexTypeError(String message, int typeNameIndex,
|
private void handleComplexTypeError(String message, int typeNameIndex, ComplexTypeInfo typeInfo) throws Exception { String typeName = fStringPool.toString(typeNameIndex); if (message != null) { if (typeName.startsWith("#")) reportGenericSchemaError("Anonymous complexType: " + message); else reportGenericSchemaError("ComplexType '" + typeName + "': " + message); } // // Mock up the typeInfo structure so that there won't be problems during // validation // typeInfo.contentType = XMLElementDecl.TYPE_ANY; // this should match anything typeInfo.contentSpecHandle = -1; typeInfo.derivedBy = 0; typeInfo.datatypeValidator = null; typeInfo.attlistHead = -1; int templateElementNameIndex = fStringPool.addSymbol("$"+typeName); typeInfo.templateElementIndex = fSchemaGrammar.addElementDecl( new QName(-1, templateElementNameIndex,typeNameIndex,fTargetNSURI), (fTargetNSURI==StringPool.EMPTY_STRING) ? StringPool.EMPTY_STRING : fCurrentScope, typeInfo.scopeDefined, typeInfo.contentType, typeInfo.contentSpecHandle, -1, typeInfo.datatypeValidator); return; }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
12795,
19030,
12,
780,
883,
16,
509,
8173,
1016,
16,
4766,
1850,
16060,
17305,
23112,
13,
1216,
1185,
288,
3639,
514,
8173,
273,
284,
780,
2864,
18,
10492,
12,
723,
461,
1016,
1769,
3639,
309,
261,
2150,
480,
446,
13,
288,
1850,
309,
261,
723,
461,
18,
17514,
1190,
2932,
17133,
3719,
2398,
2605,
7014,
3078,
668,
2932,
18792,
7233,
559,
30,
315,
397,
883,
1769,
1850,
469,
5411,
2605,
7014,
3078,
668,
2932,
12795,
559,
2119,
397,
8173,
397,
2491,
30,
315,
397,
883,
1769,
3639,
289,
3639,
368,
3639,
368,
225,
7867,
731,
326,
23112,
3695,
1427,
716,
1915,
8462,
1404,
506,
9688,
4982,
2398,
368,
225,
3379,
2868,
368,
3639,
23112,
18,
22194,
273,
1139,
11155,
3456,
18,
2399,
67,
15409,
31,
225,
368,
333,
1410,
845,
6967,
3639,
23112,
18,
1745,
1990,
3259,
273,
300,
21,
31,
3639,
23112,
18,
765,
2950,
858,
273,
374,
31,
3639,
23112,
18,
21540,
5126,
273,
446,
31,
3639,
23112,
18,
4558,
1098,
1414,
273,
300,
21,
31,
3639,
509,
1542,
30584,
1016,
273,
284,
780,
2864,
18,
1289,
5335,
2932,
12911,
15,
723,
461,
1769,
3639,
23112,
18,
3202,
1046,
1016,
273,
284,
3078,
18576,
18,
1289,
1046,
3456,
12,
5411,
394,
16723,
19236,
21,
16,
1542,
30584,
1016,
16,
723,
461,
1016,
16,
74,
2326,
3156,
3098,
3631,
5411,
261,
74,
2326,
3156,
3098,
631,
780,
2864,
18,
13625,
67,
5804,
13,
692,
514,
2864,
18,
13625,
67,
5804,
294,
284,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
12795,
19030,
12,
780,
883,
16,
509,
8173,
1016,
16,
4766,
1850,
16060,
17305,
23112,
13,
1216,
1185,
288,
3639,
514,
8173,
273,
284,
780,
2864,
18,
10492,
12,
723,
461,
1016,
1769,
3639,
309,
261,
2150,
480,
446,
13,
288,
1850,
309,
261,
723,
461,
18,
17514,
1190,
2932,
17133,
3719,
2398,
2605,
7014,
3078,
668,
2932,
18792,
7233,
559,
30,
315,
397,
883,
1769,
1850,
469,
5411,
2605,
7014,
3078,
668,
2932,
12795,
559,
2119,
397,
8173,
397,
2491,
30,
315,
397,
883,
1769,
3639,
289,
3639,
368,
3639,
368,
225,
7867,
731,
326,
23112,
3695,
1427,
716,
1915,
8462,
1404,
506,
9688,
4982,
2398,
368,
225,
3379,
2868,
368,
3639,
23112,
18,
2
] |
return getSelectedResources(); }
|
return getSelectedResources(); }
|
protected List getActionResources() { return getSelectedResources(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/53cada7d6d0463cdcb3aed320ea380f4aae64087/WorkspaceAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
987,
12473,
3805,
1435,
288,
3639,
327,
16625,
3805,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
987,
12473,
3805,
1435,
288,
3639,
327,
16625,
3805,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
children.add(getDomElementsGroupNode(myDomlElement, method));
|
children.add(getDomElementsGroupNode(myDomElement, method));
|
public SimpleNode[] getChildren() { List<SimpleNode> children = new ArrayList(); final Collection<Method> methods = myDomlElement.getMethodsInfo().getFixedChildrenGetterMethods(); for (Method method : methods) { try { final Object result = method.invoke(myDomlElement, new Object[0]); if (result instanceof DomElement) { final String tagName = myDomlElement.getMethodsInfo().getTagName(method); if (showGenericValues() && result instanceof GenericValue) { children.add(new GenericValueNode((GenericValue)result, tagName, this)); } else { children.add(getDomElementNode((DomElement)result, tagName, this)); } } } catch (Throwable e) { LOG.error(e); } } final Collection<Method> collectionMethods = myDomlElement.getMethodsInfo().getCollectionChildrenGetterMethods(); for (Method method : collectionMethods) { children.add(getDomElementsGroupNode(myDomlElement, method)); } AbstractDomElementNode[] childrenNodes = children.toArray(new AbstractDomElementNode[children.size()]); if (showOrdered()) { Arrays.sort(childrenNodes, getComparator()); } return childrenNodes; }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/9dd2fe2f9ac5020c5d968c167b4a9086c896e2c5/BaseDomElementNode.java/buggy/source/com/intellij/util/xml/tree/BaseDomElementNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4477,
907,
8526,
10268,
1435,
288,
565,
987,
32,
5784,
907,
34,
2325,
273,
394,
2407,
5621,
565,
727,
2200,
32,
1305,
34,
2590,
273,
3399,
8832,
80,
1046,
18,
588,
4712,
966,
7675,
588,
7505,
4212,
8461,
4712,
5621,
565,
364,
261,
1305,
707,
294,
2590,
13,
288,
1377,
775,
288,
3639,
727,
1033,
563,
273,
707,
18,
14407,
12,
4811,
8832,
80,
1046,
16,
394,
1033,
63,
20,
19226,
3639,
309,
261,
2088,
1276,
12965,
1046,
13,
288,
1850,
727,
514,
7196,
273,
3399,
8832,
80,
1046,
18,
588,
4712,
966,
7675,
588,
8520,
12,
2039,
1769,
1850,
309,
261,
4500,
7014,
1972,
1435,
597,
563,
1276,
7928,
620,
13,
288,
2398,
2325,
18,
1289,
12,
2704,
7928,
620,
907,
12443,
7014,
620,
13,
2088,
16,
7196,
16,
333,
10019,
1850,
289,
469,
288,
5411,
2325,
18,
1289,
12,
588,
8832,
1046,
907,
12443,
8832,
1046,
13,
2088,
16,
7196,
16,
333,
10019,
1850,
289,
3639,
289,
1377,
289,
1377,
1044,
261,
15155,
425,
13,
288,
3639,
2018,
18,
1636,
12,
73,
1769,
1377,
289,
565,
289,
565,
727,
2200,
32,
1305,
34,
1849,
4712,
273,
3399,
8832,
80,
1046,
18,
588,
4712,
966,
7675,
588,
2532,
4212,
8461,
4712,
5621,
565,
364,
261,
1305,
707,
294,
1849,
4712,
13,
288,
1377,
2325,
18,
1289,
12,
588,
8832,
3471,
1114,
907,
12,
4811,
8832,
1046,
16,
707,
10019,
565,
289,
565,
4115,
8832,
1046,
907,
8526,
2325,
3205,
273,
2325,
18,
31447,
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,
282,
1071,
4477,
907,
8526,
10268,
1435,
288,
565,
987,
32,
5784,
907,
34,
2325,
273,
394,
2407,
5621,
565,
727,
2200,
32,
1305,
34,
2590,
273,
3399,
8832,
80,
1046,
18,
588,
4712,
966,
7675,
588,
7505,
4212,
8461,
4712,
5621,
565,
364,
261,
1305,
707,
294,
2590,
13,
288,
1377,
775,
288,
3639,
727,
1033,
563,
273,
707,
18,
14407,
12,
4811,
8832,
80,
1046,
16,
394,
1033,
63,
20,
19226,
3639,
309,
261,
2088,
1276,
12965,
1046,
13,
288,
1850,
727,
514,
7196,
273,
3399,
8832,
80,
1046,
18,
588,
4712,
966,
7675,
588,
8520,
12,
2039,
1769,
1850,
309,
261,
4500,
7014,
1972,
1435,
597,
563,
1276,
7928,
620,
13,
288,
2398,
2325,
18,
1289,
2
] |
ClassWriter cw = AsmHelper.newClassWriter(true);
|
ClassWriter cw = new ClassWriter(true);
|
AsmClassInfo(final byte[] bytecode, final ClassLoader loader) { if (bytecode == null) { throw new IllegalArgumentException("bytecode can not be null"); } m_bytecode = bytecode; m_loaderRef = new WeakReference(loader); m_classInfoRepository = AsmClassInfoRepository.getRepository(loader); try { ClassReader cr = new ClassReader(bytecode); ClassWriter cw = AsmHelper.newClassWriter(true); ClassInfoClassAdapter visitor = new ClassInfoClassAdapter(cw); cr.accept(visitor, new Attribute[] { new CustomAttribute() }, false); } catch (Throwable t) { t.printStackTrace(); } m_classInfoRepository.addClassInfo(this); }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/2d49b952712be2040c67ebcec379769be0f9e29d/AsmClassInfo.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/reflect/impl/asm/AsmClassInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2970,
81,
19455,
12,
6385,
1160,
8526,
22801,
16,
727,
9403,
4088,
13,
288,
3639,
309,
261,
1637,
16651,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
1637,
16651,
848,
486,
506,
446,
8863,
3639,
289,
3639,
312,
67,
1637,
16651,
273,
22801,
31,
3639,
312,
67,
6714,
1957,
273,
394,
23632,
2404,
12,
6714,
1769,
3639,
312,
67,
1106,
966,
3305,
273,
2970,
81,
19455,
3305,
18,
588,
3305,
12,
6714,
1769,
3639,
775,
288,
5411,
1659,
2514,
4422,
273,
394,
1659,
2514,
12,
1637,
16651,
1769,
5411,
31807,
14098,
273,
394,
31807,
12,
3767,
1769,
5411,
19010,
797,
4216,
8000,
273,
394,
19010,
797,
4216,
12,
71,
91,
1769,
5411,
4422,
18,
9436,
12,
3516,
1811,
16,
394,
3601,
8526,
288,
7734,
394,
6082,
1499,
1435,
5411,
19879,
629,
1769,
3639,
289,
1044,
261,
15155,
268,
13,
288,
5411,
268,
18,
1188,
6332,
5621,
3639,
289,
3639,
312,
67,
1106,
966,
3305,
18,
1289,
19455,
12,
2211,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2970,
81,
19455,
12,
6385,
1160,
8526,
22801,
16,
727,
9403,
4088,
13,
288,
3639,
309,
261,
1637,
16651,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
1637,
16651,
848,
486,
506,
446,
8863,
3639,
289,
3639,
312,
67,
1637,
16651,
273,
22801,
31,
3639,
312,
67,
6714,
1957,
273,
394,
23632,
2404,
12,
6714,
1769,
3639,
312,
67,
1106,
966,
3305,
273,
2970,
81,
19455,
3305,
18,
588,
3305,
12,
6714,
1769,
3639,
775,
288,
5411,
1659,
2514,
4422,
273,
394,
1659,
2514,
12,
1637,
16651,
1769,
5411,
31807,
14098,
273,
394,
31807,
12,
3767,
1769,
5411,
19010,
797,
4216,
8000,
273,
394,
19010,
797,
4216,
12,
71,
91,
1769,
5411,
4422,
18,
9436,
12,
3516,
2
] |
IScriptExpression expr = (IScriptExpression) iter.next( ); selectedColumns[i] = expr.getText( );
|
IBaseExpression expr = (IBaseExpression) iter.next( ); if ( expr instanceof IConditionalExpression ) { IConditionalExpression condExpr = (IConditionalExpression) expr; selectedColumns[i] = condExpr.getExpression( ).getText( ); } else if ( expr instanceof IScriptExpression ) { IScriptExpression scriptExpr = (IScriptExpression) expr; selectedColumns[i] = scriptExpr.getText( ); }
|
private void validateSelectedColumns( IBaseQueryDefinition query ) throws EngineException { assert query != null; Collection exprs = query.getRowExpressions( ); if ( selectedColumns != null ) { for ( int i = 0; i < selectedColumns.length; i++ ) { boolean findColumn = false; Iterator iter = exprs.iterator( ); while ( iter.hasNext( ) ) { IScriptExpression expr = (IScriptExpression) iter.next( ); if ( expr.getText( ).equalsIgnoreCase( selectedColumns[i] ) ) { findColumn = true; break; } } if ( findColumn == false ) { throw new EngineException( "Invalid Columns" ); } } } else { selectedColumns = new String[exprs.size( )]; Iterator iter = exprs.iterator( ); for ( int i = 0; i < selectedColumns.length; i++ ) { IScriptExpression expr = (IScriptExpression) iter.next( ); selectedColumns[i] = expr.getText( ); } } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/fccbc9a3e345958111c1017bd15989ea0b710b1f/DataExtractionTask.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/DataExtractionTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
7416,
3380,
12,
467,
2171,
1138,
1852,
843,
262,
1082,
202,
15069,
10507,
503,
202,
95,
202,
202,
11231,
843,
480,
446,
31,
202,
202,
2532,
22523,
273,
843,
18,
588,
1999,
8927,
12,
11272,
202,
202,
430,
261,
3170,
3380,
480,
446,
262,
202,
202,
95,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
3170,
3380,
18,
2469,
31,
277,
9904,
262,
1082,
202,
95,
9506,
202,
6494,
1104,
1494,
273,
629,
31,
9506,
202,
3198,
1400,
273,
22523,
18,
9838,
12,
11272,
9506,
202,
17523,
261,
1400,
18,
5332,
2134,
12,
262,
262,
9506,
202,
95,
6862,
202,
45,
3651,
2300,
3065,
273,
261,
45,
3651,
2300,
13,
1400,
18,
4285,
12,
11272,
6862,
202,
430,
261,
3065,
18,
588,
1528,
12,
262,
18,
14963,
5556,
12,
3170,
3380,
63,
77,
65,
262,
262,
6862,
202,
95,
25083,
202,
4720,
1494,
273,
638,
31,
25083,
202,
8820,
31,
6862,
202,
97,
9506,
202,
97,
9506,
202,
430,
261,
1104,
1494,
422,
629,
262,
9506,
202,
95,
6862,
202,
12849,
394,
10507,
503,
12,
315,
1941,
14962,
6,
11272,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
8109,
3380,
273,
394,
514,
63,
8638,
87,
18,
1467,
12,
262,
15533,
1082,
202,
3198,
1400,
273,
22523,
18,
9838,
12,
11272,
25083,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
3170,
3380,
18,
2469,
31,
277,
9904,
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,
1954,
7416,
3380,
12,
467,
2171,
1138,
1852,
843,
262,
1082,
202,
15069,
10507,
503,
202,
95,
202,
202,
11231,
843,
480,
446,
31,
202,
202,
2532,
22523,
273,
843,
18,
588,
1999,
8927,
12,
11272,
202,
202,
430,
261,
3170,
3380,
480,
446,
262,
202,
202,
95,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
3170,
3380,
18,
2469,
31,
277,
9904,
262,
1082,
202,
95,
9506,
202,
6494,
1104,
1494,
273,
629,
31,
9506,
202,
3198,
1400,
273,
22523,
18,
9838,
12,
11272,
9506,
202,
17523,
261,
1400,
18,
5332,
2134,
12,
262,
262,
9506,
202,
95,
6862,
202,
45,
3651,
2300,
3065,
273,
261,
45,
3651,
2300,
13,
1400,
2
] |
Action action = item.getAction(); if(action == null) { if(item.getPerformWhen() != null){ action = item.getPerformWhen().getSelectedAction(); } }
|
Action action = getAction();
|
byte runAction(CheatSheetManager csm) { Action action = item.getAction(); if(action == null) { if(item.getPerformWhen() != null){ action = item.getPerformWhen().getSelectedAction(); } } if(action != null) { return runAction(action.getPluginID(), action.getActionClass(), action.getParams(), csm); } return VIEWITEM_ADVANCE; }
|
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/d5c2759eb08eab1497c6534e9216cffc6c973356/CoreItem.java/buggy/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CoreItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
7229,
1086,
1803,
12,
39,
580,
270,
8229,
1318,
2873,
81,
13,
288,
202,
202,
1803,
1301,
273,
761,
18,
588,
1803,
5621,
202,
202,
430,
12,
1128,
422,
446,
13,
288,
1082,
202,
430,
12,
1726,
18,
588,
4990,
9434,
1435,
480,
446,
15329,
9506,
202,
1128,
273,
761,
18,
588,
4990,
9434,
7675,
588,
7416,
1803,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
1128,
480,
446,
13,
288,
1082,
202,
2463,
1086,
1803,
12,
1128,
18,
588,
3773,
734,
9334,
1301,
18,
588,
1803,
797,
9334,
1301,
18,
588,
1370,
9334,
2873,
81,
1769,
202,
202,
97,
202,
202,
2463,
21794,
12674,
67,
1880,
58,
4722,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
7229,
1086,
1803,
12,
39,
580,
270,
8229,
1318,
2873,
81,
13,
288,
202,
202,
1803,
1301,
273,
761,
18,
588,
1803,
5621,
202,
202,
430,
12,
1128,
422,
446,
13,
288,
1082,
202,
430,
12,
1726,
18,
588,
4990,
9434,
1435,
480,
446,
15329,
9506,
202,
1128,
273,
761,
18,
588,
4990,
9434,
7675,
588,
7416,
1803,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
1128,
480,
446,
13,
288,
1082,
202,
2463,
1086,
1803,
12,
1128,
18,
588,
3773,
734,
9334,
1301,
18,
588,
1803,
797,
9334,
1301,
18,
588,
1370,
9334,
2873,
81,
1769,
202,
202,
97,
202,
202,
2463,
21794,
12674,
67,
1880,
58,
4722,
31,
202,
97,
2,
-100,
-100
] |
public UniversalBody receiveCheckpoint(String nodeName, Checkpoint ckpt, int inc) throws ProActiveException {
|
public UniversalBody receiveCheckpoint(String nodeName, Checkpoint ckpt, int inc) throws ProActiveException {
|
public UniversalBody receiveCheckpoint(String nodeName, Checkpoint ckpt, int inc) throws ProActiveException { try { return remoteProActiveRuntime.receiveCheckpoint(nodeName, ckpt, inc); } catch (java.rmi.RemoteException re) { throw new ProActiveException(re); } }
|
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/1279458d52679339839158611daec34b4baf800a/RemoteProActiveRuntimeAdapter.java/buggy/src/org/objectweb/proactive/core/runtime/rmi/RemoteProActiveRuntimeAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27705,
2250,
6798,
14431,
12,
780,
7553,
16,
25569,
12622,
337,
16,
509,
7290,
13,
1377,
202,
15069,
1186,
3896,
503,
288,
3639,
775,
288,
5411,
327,
2632,
626,
3896,
5576,
18,
18149,
14431,
12,
2159,
461,
16,
12622,
337,
16,
7290,
1769,
3639,
289,
1044,
261,
6290,
18,
8864,
77,
18,
5169,
503,
283,
13,
288,
5411,
604,
394,
1186,
3896,
503,
12,
266,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27705,
2250,
6798,
14431,
12,
780,
7553,
16,
25569,
12622,
337,
16,
509,
7290,
13,
1377,
202,
15069,
1186,
3896,
503,
288,
3639,
775,
288,
5411,
327,
2632,
626,
3896,
5576,
18,
18149,
14431,
12,
2159,
461,
16,
12622,
337,
16,
7290,
1769,
3639,
289,
1044,
261,
6290,
18,
8864,
77,
18,
5169,
503,
283,
13,
288,
5411,
604,
394,
1186,
3896,
503,
12,
266,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AffineTransform imageToUser)
|
AffineTransform imageToUser, Color bgcolor)
|
private boolean drawRaster (ColorModel cm, Raster r, AffineTransform imageToUser) { if (r == null) return false; SampleModel sm = r.getSampleModel (); DataBuffer db = r.getDataBuffer (); if (db == null || sm == null) return false; if (cm == null) cm = ColorModel.getRGBdefault (); double[] i2u = new double[6]; if (imageToUser != null) imageToUser.getMatrix(i2u); else { i2u[0] = 1; i2u[1] = 0; i2u[2] = 0; i2u[3] = 1; i2u[4] = 0; i2u[5] = 0; } int pixels[] = null; if (sm.getDataType () == DataBuffer.TYPE_INT && db instanceof DataBufferInt && db.getNumBanks () == 1) { // single bank, ARGB-ints buffer in sRGB space DataBufferInt dbi = (DataBufferInt)db; pixels = dbi.getData (); } else pixels = r.getPixels (0, 0, r.getWidth (), r.getHeight (), pixels); ColorSpace cs = cm.getColorSpace (); if (cs != null && cs.getType () != ColorSpace.CS_sRGB) { int pixels2[] = new int[pixels.length]; for (int i = 0; i < pixels2.length; i++) pixels2[i] = cm.getRGB (pixels[i]); pixels = pixels2; } stateSave (); translate (x, y); drawPixels (pixels, r.getWidth (), r.getHeight (), r.getWidth (), i2u); stateRestore (); if (isBufferedImageGraphics ()) updateBufferedImage(); return true; }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/14511e3ad21013e92c6399b2bd2ec09a8263e33a/GdkGraphics2D.java/clean/libjava/gnu/java/awt/peer/gtk/GdkGraphics2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
3724,
18637,
261,
2957,
1488,
5003,
16,
30757,
436,
16,
1171,
9079,
23906,
558,
4059,
1316,
774,
1299,
16,
5563,
31509,
13,
225,
288,
565,
309,
261,
86,
422,
446,
13,
1377,
327,
629,
31,
565,
11474,
1488,
3029,
273,
436,
18,
588,
8504,
1488,
261,
1769,
565,
1910,
1892,
1319,
273,
436,
18,
588,
751,
1892,
261,
1769,
565,
309,
261,
1966,
422,
446,
747,
3029,
422,
446,
13,
1377,
327,
629,
31,
565,
309,
261,
7670,
422,
446,
13,
1377,
5003,
273,
5563,
1488,
18,
588,
11343,
1886,
261,
1769,
565,
1645,
8526,
277,
22,
89,
273,
394,
1645,
63,
26,
15533,
565,
309,
261,
2730,
774,
1299,
480,
446,
13,
1377,
1316,
774,
1299,
18,
588,
4635,
12,
77,
22,
89,
1769,
565,
469,
1377,
288,
3639,
277,
22,
89,
63,
20,
65,
273,
404,
31,
277,
22,
89,
63,
21,
65,
273,
374,
31,
3639,
277,
22,
89,
63,
22,
65,
273,
374,
31,
277,
22,
89,
63,
23,
65,
273,
404,
31,
3639,
277,
22,
89,
63,
24,
65,
273,
374,
31,
277,
22,
89,
63,
25,
65,
273,
374,
31,
1377,
289,
565,
509,
8948,
8526,
273,
446,
31,
565,
309,
261,
4808,
18,
588,
6273,
1832,
422,
1910,
1892,
18,
2399,
67,
3217,
597,
3639,
1319,
1276,
1910,
1892,
1702,
597,
3639,
1319,
18,
588,
2578,
16040,
87,
1832,
422,
404,
13,
1377,
288,
3639,
368,
2202,
11218,
16,
6052,
5887,
17,
28142,
1613,
316,
272,
11343,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
3724,
18637,
261,
2957,
1488,
5003,
16,
30757,
436,
16,
1171,
9079,
23906,
558,
4059,
1316,
774,
1299,
16,
5563,
31509,
13,
225,
288,
565,
309,
261,
86,
422,
446,
13,
1377,
327,
629,
31,
565,
11474,
1488,
3029,
273,
436,
18,
588,
8504,
1488,
261,
1769,
565,
1910,
1892,
1319,
273,
436,
18,
588,
751,
1892,
261,
1769,
565,
309,
261,
1966,
422,
446,
747,
3029,
422,
446,
13,
1377,
327,
629,
31,
565,
309,
261,
7670,
422,
446,
13,
1377,
5003,
273,
5563,
1488,
18,
588,
11343,
1886,
261,
1769,
565,
1645,
8526,
277,
22,
89,
273,
394,
1645,
63,
26,
15533,
565,
309,
261,
2730,
774,
1299,
480,
446,
13,
1377,
1316,
774,
2
] |
public void reportException(RhinoException ex)
|
public static void reportException(ErrorReporter er, RhinoException ex)
|
public void reportException(RhinoException ex) { String msg; if (ex instanceof JavaScriptException) { msg = getMessage("msg.uncaughtJSException", ex.details()); } else if (ex instanceof EcmaError) { msg = getMessage("msg.uncaughtEcmaError", ex.details()); } else { msg = ex.toString(); } reportErrorMessage(msg, ex.sourceName(), ex.lineNumber(), ex.lineSource(), ex.columnNumber(), false); }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/087a9c630080435e55ad1f50f28e17aa302e575d/ToolErrorReporter.java/buggy/toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2605,
503,
12,
668,
13289,
6445,
16,
534,
76,
15020,
503,
431,
13,
565,
288,
3639,
514,
1234,
31,
3639,
309,
261,
338,
1276,
11905,
503,
13,
288,
5411,
1234,
273,
2381,
2932,
3576,
18,
551,
16510,
6479,
503,
3113,
431,
18,
6395,
10663,
3639,
289,
469,
309,
261,
338,
1276,
20840,
2540,
668,
13,
288,
5411,
1234,
273,
2381,
2932,
3576,
18,
551,
16510,
23057,
2540,
668,
3113,
431,
18,
6395,
10663,
3639,
289,
469,
288,
5411,
1234,
273,
431,
18,
10492,
5621,
3639,
289,
3639,
2605,
14935,
12,
3576,
16,
431,
18,
3168,
461,
9334,
431,
18,
1369,
1854,
9334,
21821,
431,
18,
1369,
1830,
9334,
431,
18,
2827,
1854,
9334,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2605,
503,
12,
668,
13289,
6445,
16,
534,
76,
15020,
503,
431,
13,
565,
288,
3639,
514,
1234,
31,
3639,
309,
261,
338,
1276,
11905,
503,
13,
288,
5411,
1234,
273,
2381,
2932,
3576,
18,
551,
16510,
6479,
503,
3113,
431,
18,
6395,
10663,
3639,
289,
469,
309,
261,
338,
1276,
20840,
2540,
668,
13,
288,
5411,
1234,
273,
2381,
2932,
3576,
18,
551,
16510,
23057,
2540,
668,
3113,
431,
18,
6395,
10663,
3639,
289,
469,
288,
5411,
1234,
273,
431,
18,
10492,
5621,
3639,
289,
3639,
2605,
14935,
12,
3576,
16,
431,
18,
3168,
461,
9334,
431,
18,
1369,
1854,
9334,
21821,
431,
18,
1369,
1830,
9334,
431,
18,
2827,
1854,
9334,
629,
1769,
2
] |
createColumnsFromModel();
|
createDefaultColumnsFromModel();
|
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createColumnsFromModel(); repaint(); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTable.java/buggy/core/src/classpath/javax/javax/swing/JTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1014,
5033,
261,
1388,
1488,
1133,
871,
13,
225,
288,
565,
368,
1089,
326,
1057,
938,
628,
326,
1014,
938,
309,
326,
3695,
711,
565,
368,
3550,
471,
326,
2982,
3656,
1684,
3380,
1265,
1488,
353,
444,
565,
309,
14015,
2575,
18,
588,
3759,
1999,
1435,
422,
1388,
1488,
1133,
18,
7557,
67,
11226,
13,
3639,
597,
3656,
1684,
3380,
1265,
1488,
13,
3639,
27346,
3380,
1265,
1488,
5621,
565,
24962,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1014,
5033,
261,
1388,
1488,
1133,
871,
13,
225,
288,
565,
368,
1089,
326,
1057,
938,
628,
326,
1014,
938,
309,
326,
3695,
711,
565,
368,
3550,
471,
326,
2982,
3656,
1684,
3380,
1265,
1488,
353,
444,
565,
309,
14015,
2575,
18,
588,
3759,
1999,
1435,
422,
1388,
1488,
1133,
18,
7557,
67,
11226,
13,
3639,
597,
3656,
1684,
3380,
1265,
1488,
13,
3639,
27346,
3380,
1265,
1488,
5621,
565,
24962,
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
] |
private void updateColor(ISourceViewer viewer) {
|
public void updateColor(ISourceViewer viewer) {
|
private void updateColor(ISourceViewer viewer) { StyledText text= viewer.getTextWidget(); if (text == null || text.isDisposed()) return; fColor = fColorCache.getNamedColor(PydevPrefs.HYPERLINK_COLOR); }
|
50371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50371/dba1114acd785e1a29e5368b01145dd7b9f00d12/Hyperlink.java/clean/org.python.pydev/src/org/python/pydev/editor/Hyperlink.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
2957,
12,
45,
1830,
18415,
14157,
13,
288,
1082,
202,
24273,
1259,
1528,
977,
33,
14157,
18,
588,
1528,
4609,
5621,
202,
202,
430,
261,
955,
422,
446,
747,
977,
18,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
202,
202,
74,
2957,
273,
284,
2957,
1649,
18,
588,
7604,
2957,
12,
9413,
5206,
1386,
2556,
18,
44,
61,
3194,
10554,
67,
10989,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
2957,
12,
45,
1830,
18415,
14157,
13,
288,
1082,
202,
24273,
1259,
1528,
977,
33,
14157,
18,
588,
1528,
4609,
5621,
202,
202,
430,
261,
955,
422,
446,
747,
977,
18,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
202,
202,
74,
2957,
273,
284,
2957,
1649,
18,
588,
7604,
2957,
12,
9413,
5206,
1386,
2556,
18,
44,
61,
3194,
10554,
67,
10989,
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
] |
/* switch(store.horizontalAlignment()) { case Element.ALIGN_LEFT : os.write(RtfWriter.escape); os.write(cellHorizontalAlignLeft); break; case Element.ALIGN_CENTER : os.write(RtfWriter.escape); os.write(cellHorizontalAlignCenter); break; case Element.ALIGN_RIGHT : os.write(RtfWriter.escape); os.write(cellHorizontalAlignRight); break; case Element.ALIGN_JUSTIFIED : os.write(RtfWriter.escape); os.write(cellHorizontalAlignJustified); break; }*/
|
public boolean writeCellContent(ByteArrayOutputStream os) throws DocumentException { try { // <!-- steffen if (mergeType == MERGE_HORIZ_PREV || mergeType == MERGE_BOTH_PREV) { return true; } // -->/* switch(store.horizontalAlignment()) { case Element.ALIGN_LEFT : os.write(RtfWriter.escape); os.write(cellHorizontalAlignLeft); break; case Element.ALIGN_CENTER : os.write(RtfWriter.escape); os.write(cellHorizontalAlignCenter); break; case Element.ALIGN_RIGHT : os.write(RtfWriter.escape); os.write(cellHorizontalAlignRight); break; case Element.ALIGN_JUSTIFIED : os.write(RtfWriter.escape); os.write(cellHorizontalAlignJustified); break; }*/ if (!emptyCell) { Iterator cellIterator = store.getElements(); while (cellIterator.hasNext()) { Element element = (Element) cellIterator.next(); // if horizontal alignment is undefined overwrite // with that of enclosing cell if (element instanceof Paragraph && ((Paragraph) element).alignment() == Element.ALIGN_UNDEFINED) { ((Paragraph) element).setAlignment(store.horizontalAlignment()); } writer.addElement(element, os); if (element.type() == Element.PARAGRAPH && cellIterator.hasNext()) { os.write(RtfWriter.escape); os.write(RtfWriter.paragraph); } } } else { os.write(RtfWriter.escape); os.write(RtfWriter.paragraphDefaults); os.write(RtfWriter.escape); os.write(cellInTable); } os.write(RtfWriter.escape); os.write(cellEnd);// os.write((byte)'\n'); } catch (IOException e) { return false; } return true; }
|
4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/334220235b3f2dd264ba0b5245bd570c6243a45a/RtfCell.java/clean/src/com/lowagie/text/rtf/RtfCell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1045,
4020,
1350,
12,
8826,
4632,
1140,
13,
1216,
4319,
503,
288,
3639,
775,
288,
5411,
368,
5719,
413,
384,
17098,
275,
5411,
309,
261,
2702,
559,
422,
490,
654,
7113,
67,
44,
11581,
67,
3670,
58,
747,
2691,
559,
422,
490,
654,
7113,
67,
38,
18307,
67,
3670,
58,
13,
288,
7734,
327,
638,
31,
5411,
289,
5411,
368,
15431,
20308,
5411,
1620,
12,
2233,
18,
18396,
11535,
10756,
5411,
288,
7734,
648,
3010,
18,
26439,
67,
10066,
1377,
294,
1140,
18,
2626,
12,
54,
6632,
2289,
18,
6939,
1769,
7734,
1140,
18,
2626,
12,
3855,
14457,
10044,
3910,
1769,
898,
31,
7734,
648,
3010,
18,
26439,
67,
19835,
565,
294,
1140,
18,
2626,
12,
54,
6632,
2289,
18,
6939,
1769,
7734,
1140,
18,
2626,
12,
3855,
14457,
10044,
8449,
1769,
898,
31,
7734,
648,
3010,
18,
26439,
67,
11847,
377,
294,
1140,
18,
2626,
12,
54,
6632,
2289,
18,
6939,
1769,
7734,
1140,
18,
2626,
12,
3855,
14457,
10044,
4726,
1769,
898,
31,
7734,
648,
3010,
18,
26439,
67,
46,
5996,
13519,
294,
1140,
18,
2626,
12,
54,
6632,
2289,
18,
6939,
1769,
7734,
1140,
18,
2626,
12,
3855,
14457,
10044,
19642,
939,
1769,
898,
31,
5411,
289,
5549,
5411,
309,
16051,
5531,
4020,
13,
288,
7734,
4498,
2484,
3198,
273,
1707,
18,
588,
3471,
5621,
7734,
1323,
261,
3855,
3198,
18,
5332,
2134,
10756,
288,
10792,
3010,
930,
273,
261,
1046,
13,
2484,
3198,
18,
4285,
5621,
10792,
368,
309,
10300,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1045,
4020,
1350,
12,
8826,
4632,
1140,
13,
1216,
4319,
503,
288,
3639,
775,
288,
5411,
368,
5719,
413,
384,
17098,
275,
5411,
309,
261,
2702,
559,
422,
490,
654,
7113,
67,
44,
11581,
67,
3670,
58,
747,
2691,
559,
422,
490,
654,
7113,
67,
38,
18307,
67,
3670,
58,
13,
288,
7734,
327,
638,
31,
5411,
289,
5411,
368,
15431,
20308,
5411,
1620,
12,
2233,
18,
18396,
11535,
10756,
5411,
288,
7734,
648,
3010,
18,
26439,
67,
10066,
1377,
294,
1140,
18,
2626,
12,
54,
6632,
2289,
18,
6939,
1769,
7734,
1140,
18,
2626,
12,
3855,
14457,
10044,
3910,
1769,
898,
31,
7734,
648,
3010,
18,
26439,
67,
19835,
565,
294,
1140,
18,
2626,
12,
2
] |
|
results.put("LargeBagConstraintUsingTable", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.name IN (SELECT value FROM " + LARGE_BAG_TABLE_NAME + ") ORDER BY a1_.id");
|
public static void setUpResults() throws Exception { results.put("SelectSimpleObject", "SELECT intermine_Alias.OBJECT AS \"intermine_Alias\", intermine_Alias.id AS \"intermine_Aliasid\" FROM Company AS intermine_Alias ORDER BY intermine_Alias.id"); results2.put("SelectSimpleObject", Collections.singleton("Company")); results.put("SubQuery", "SELECT DISTINCT intermine_All.intermine_Arrayname AS a1_, intermine_All.intermine_Alias AS \"intermine_Alias\" FROM (SELECT DISTINCT intermine_Array.OBJECT AS intermine_Array, intermine_Array.CEOId AS intermine_ArrayCEOId, intermine_Array.addressId AS intermine_ArrayaddressId, intermine_Array.id AS intermine_Arrayid, intermine_Array.name AS intermine_Arrayname, intermine_Array.vatNumber AS intermine_ArrayvatNumber, 5 AS intermine_Alias FROM Company AS intermine_Array) AS intermine_All ORDER BY intermine_All.intermine_Arrayname, intermine_All.intermine_Alias"); results2.put("SubQuery", Collections.singleton("Company")); results.put("WhereSimpleEquals", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.vatNumber = 1234 ORDER BY a1_.name"); results2.put("WhereSimpleEquals", Collections.singleton("Company")); results.put("WhereSimpleNotEquals", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.vatNumber != 1234 ORDER BY a1_.name"); results2.put("WhereSimpleNotEquals", Collections.singleton("Company")); results.put("WhereSimpleNegEquals", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.vatNumber != 1234 ORDER BY a1_.name"); results2.put("WhereSimpleNegEquals", Collections.singleton("Company")); results.put("WhereSimpleLike", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.name LIKE 'Company%' ORDER BY a1_.name"); results2.put("WhereSimpleLike", Collections.singleton("Company")); results.put("WhereEqualsString", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.name = 'CompanyA' ORDER BY a1_.name"); results2.put("WhereEqualsString", Collections.singleton("Company")); results.put("WhereAndSet", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE (a1_.name LIKE 'Company%' AND a1_.vatNumber > 2000) ORDER BY a1_.name"); results2.put("WhereAndSet", Collections.singleton("Company")); results.put("WhereOrSet", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE (a1_.name LIKE 'CompanyA%' OR a1_.vatNumber > 2000) ORDER BY a1_.name"); results2.put("WhereOrSet", Collections.singleton("Company")); results.put("WhereNotSet", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE ( NOT (a1_.name LIKE 'Company%' AND a1_.vatNumber > 2000)) ORDER BY a1_.name"); results2.put("WhereNotSet", Collections.singleton("Company")); results.put("WhereSubQueryField", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.name AS orderbyfield0 FROM Department AS a1_ WHERE a1_.name IN (SELECT DISTINCT a1_.name FROM Department AS a1_) ORDER BY a1_.name, a1_.id"); results2.put("WhereSubQueryField", Collections.singleton("Department")); results.put("WhereSubQueryClass", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_ WHERE a1_.id IN (SELECT DISTINCT a1_.id FROM Company AS a1_ WHERE a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereSubQueryClass", Collections.singleton("Company")); results.put("WhereNotSubQueryClass", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_ WHERE a1_.id NOT IN (SELECT DISTINCT a1_.id FROM Company AS a1_ WHERE a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereNotSubQueryClass", Collections.singleton("Company")); results.put("WhereNegSubQueryClass", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_ WHERE a1_.id NOT IN (SELECT DISTINCT a1_.id FROM Company AS a1_ WHERE a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereNegSubQueryClass", Collections.singleton("Company")); results.put("WhereClassClass", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Company AS a1_, Company AS a2_ WHERE a1_.id = a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereClassClass", Collections.singleton("Company")); results.put("WhereNotClassClass", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Company AS a1_, Company AS a2_ WHERE a1_.id != a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereNotClassClass", Collections.singleton("Company")); results.put("WhereNegClassClass", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Company AS a1_, Company AS a2_ WHERE a1_.id != a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereNegClassClass", Collections.singleton("Company")); Integer id1 = (Integer) TypeUtil.getFieldValue(data.get("CompanyA"), "id"); results.put("WhereClassObject", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_ WHERE a1_.id = " + id1 + " ORDER BY a1_.id"); results2.put("WhereClassObject", Collections.singleton("Company")); results.put("Contains11", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Department AS a1_, Manager AS a2_ WHERE (a1_.managerId = a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("Contains11", new HashSet(Arrays.asList(new String[] {"Department", "Manager"}))); results.put("ContainsNot11", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Department AS a1_, Manager AS a2_ WHERE (a1_.managerId != a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("ContainsNot11", new HashSet(Arrays.asList(new String[] {"Department", "Manager"}))); results.put("ContainsNeg11", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Department AS a1_, Manager AS a2_ WHERE (a1_.managerId != a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("ContainsNeg11", new HashSet(Arrays.asList(new String[] {"Department", "Manager"}))); results.put("Contains1N", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Company AS a1_, Department AS a2_ WHERE (a1_.id = a2_.companyId AND a1_.name = 'CompanyA') ORDER BY a1_.id, a2_.id"); results2.put("Contains1N", new HashSet(Arrays.asList(new String[] {"Department", "Company"}))); results.put("ContainsN1", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Department AS a1_, Company AS a2_ WHERE (a1_.companyId = a2_.id AND a2_.name = 'CompanyA') ORDER BY a1_.id, a2_.id"); results2.put("ContainsN1", new HashSet(Arrays.asList(new String[] {"Department", "Company"}))); results.put("ContainsMN", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Contractor AS a1_, Company AS a2_, CompanysContractors AS indirect0 WHERE ((a1_.id = indirect0.Companys AND indirect0.Contractors = a2_.id) AND a1_.name = 'ContractorA') ORDER BY a1_.id, a2_.id"); results2.put("ContainsMN", new HashSet(Arrays.asList(new String[] {"Contractor", "Company", "CompanysContractors"}))); results.put("ContainsDuplicatesMN", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Contractor AS a1_, Company AS a2_, OldComsOldContracts AS indirect0 WHERE (a1_.id = indirect0.OldComs AND indirect0.OldContracts = a2_.id) ORDER BY a1_.id, a2_.id"); results2.put("ContainsDuplicatesMN", new HashSet(Arrays.asList(new String[] {"Contractor", "Company", "OldComsOldContracts"}))); id1 = (Integer) TypeUtil.getFieldValue(data.get("EmployeeA1"), "id"); results.put("ContainsObject", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Department AS a1_ WHERE a1_.managerId = " + id1 + " ORDER BY a1_.id"); results2.put("ContainsObject", Collections.singleton("Department")); results.put("SimpleGroupBy", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, COUNT(*) AS a2_ FROM Company AS a1_, Department AS a3_ WHERE a1_.id = a3_.companyId GROUP BY a1_.OBJECT, a1_.CEOId, a1_.addressId, a1_.id, a1_.name, a1_.vatNumber ORDER BY a1_.id, COUNT(*)"); results2.put("SimpleGroupBy", new HashSet(Arrays.asList(new String[] {"Department", "Company"}))); results.put("MultiJoin", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id, a4_.OBJECT AS a4_, a4_.id AS a4_id FROM Company AS a1_, Department AS a2_, Manager AS a3_, Address AS a4_ WHERE (a1_.id = a2_.companyId AND a2_.managerId = a3_.id AND a3_.addressId = a4_.id AND a3_.name = 'EmployeeA1') ORDER BY a1_.id, a2_.id, a3_.id, a4_.id"); results2.put("MultiJoin", new HashSet(Arrays.asList(new String[] {"Department", "Manager", "Company", "Address"}))); results.put("SelectComplex", "SELECT DISTINCT (AVG(a1_.vatNumber) + 20) AS a3_, a2_.name AS a4_, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Company AS a1_, Department AS a2_ GROUP BY a2_.OBJECT, a2_.companyId, a2_.id, a2_.managerId, a2_.name ORDER BY (AVG(a1_.vatNumber) + 20), a2_.name, a2_.id"); results2.put("SelectComplex", new HashSet(Arrays.asList(new String[] {"Department", "Company"}))); results.put("SelectClassAndSubClasses", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.name AS orderbyfield0 FROM Employee AS a1_ ORDER BY a1_.name, a1_.id"); results2.put("SelectClassAndSubClasses", Collections.singleton("Employee")); results.put("SelectInterfaceAndSubClasses", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employable AS a1_ ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses", Collections.singleton("Employable")); results.put("SelectInterfaceAndSubClasses2", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM RandomInterface AS a1_ ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses2", Collections.singleton("RandomInterface")); results.put("SelectInterfaceAndSubClasses3", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM ImportantPerson AS a1_ ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses3", Collections.singleton("ImportantPerson")); results.put("OrderByAnomaly", "SELECT DISTINCT 5 AS a2_, a1_.name AS a3_ FROM Company AS a1_ ORDER BY a1_.name"); results2.put("OrderByAnomaly", Collections.singleton("Company")); Integer id2 = (Integer) TypeUtil.getFieldValue(data.get("CompanyA"), "id"); Integer id3 = (Integer) TypeUtil.getFieldValue(data.get("DepartmentA1"), "id"); results.put("SelectClassObjectSubquery", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_, Department AS a2_ WHERE (a1_.id = " + id2 + " AND a1_.id = a2_.companyId AND a2_.id IN (SELECT DISTINCT a1_.id FROM Department AS a1_ WHERE a1_.id = " + id3 + ")) ORDER BY a1_.id"); results2.put("SelectClassObjectSubquery", new HashSet(Arrays.asList(new String[] {"Department", "Company"}))); results.put("SelectUnidirectionalCollection", "SELECT DISTINCT a2_.OBJECT AS a2_, a2_.id AS a2_id FROM Company AS a1_, Secretary AS a2_, HasSecretarysSecretarys AS indirect0 WHERE (a1_.name = 'CompanyA' AND (a1_.id = indirect0.Secretarys AND indirect0.HasSecretarys = a2_.id)) ORDER BY a2_.id"); results2.put("SelectUnidirectionalCollection", new HashSet(Arrays.asList(new String[] {"Company", "Secretary", "HasSecretarysSecretarys"}))); results.put("EmptyAndConstraintSet", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_ WHERE true ORDER BY a1_.id"); results2.put("EmptyAndConstraintSet", Collections.singleton("Company")); results.put("EmptyOrConstraintSet", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_ WHERE false ORDER BY a1_.id"); results2.put("EmptyOrConstraintSet", Collections.singleton("Company")); results.put("EmptyNandConstraintSet", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_ WHERE false ORDER BY a1_.id"); results2.put("EmptyNandConstraintSet", Collections.singleton("Company")); results.put("EmptyNorConstraintSet", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Company AS a1_ WHERE true ORDER BY a1_.id"); results2.put("EmptyNorConstraintSet", Collections.singleton("Company")); results.put("BagConstraint", "SELECT DISTINCT Company.OBJECT AS \"Company\", Company.id AS \"Companyid\" FROM Company AS Company WHERE (Company.name IN ('CompanyA', 'goodbye', 'hello')) ORDER BY Company.id"); results2.put("BagConstraint", Collections.singleton("Company")); results.put("BagConstraint2", "SELECT DISTINCT Company.OBJECT AS \"Company\", Company.id AS \"Companyid\" FROM Company AS Company WHERE (Company.id IN (" + id2 + ")) ORDER BY Company.id"); results2.put("BagConstraint2", Collections.singleton("Company")); results.put("InterfaceField", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employable AS a1_ WHERE a1_.name = 'EmployeeA1' ORDER BY a1_.id"); results2.put("InterfaceField", Collections.singleton("Employable")); results.put("InterfaceReference", NO_RESULT); results.put("InterfaceCollection", NO_RESULT); Set res = new HashSet(); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1__1.debt AS a2_, a1_.age AS a3_ FROM Employee AS a1_, Broke AS a1__1 WHERE a1_.id = a1__1.id AND (a1__1.debt > 0 AND a1_.age > 0) ORDER BY a1_.id, a1__1.debt, a1_.age"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.debt AS a2_, a1__1.age AS a3_ FROM Broke AS a1_, Employee AS a1__1 WHERE a1_.id = a1__1.id AND (a1_.debt > 0 AND a1__1.age > 0) ORDER BY a1_.id, a1_.debt, a1__1.age"); results.put("DynamicInterfacesAttribute", res); results2.put("DynamicInterfacesAttribute", new HashSet(Arrays.asList(new String[] {"Employee", "Broke"}))); res = new HashSet(); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employable AS a1_, Broke AS a1__1 WHERE a1_.id = a1__1.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Broke AS a1_, Employable AS a1__1 WHERE a1_.id = a1__1.id ORDER BY a1_.id"); results.put("DynamicClassInterface", res); results2.put("DynamicClassInterface", new HashSet(Arrays.asList(new String[] {"Employable", "Broke"}))); res = new HashSet(); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM Department AS a1_, Broke AS a1__1, Company AS a2_, Bank AS a3_ WHERE a1_.id = a1__1.id AND (a2_.id = a1_.companyId AND a3_.id = a1__1.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM Broke AS a1_, Department AS a1__1, Company AS a2_, Bank AS a3_ WHERE a1_.id = a1__1.id AND (a2_.id = a1__1.companyId AND a3_.id = a1_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef1", res); results2.put("DynamicClassRef1", new HashSet(Arrays.asList(new String[] {"Department", "Broke", "Company", "Bank"}))); res = new HashSet(); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM Department AS a1_, Broke AS a1__1, Company AS a2_, Bank AS a3_ WHERE a1_.id = a1__1.id AND (a1_.companyId = a2_.id AND a1__1.bankId = a3_.id) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM Broke AS a1_, Department AS a1__1, Company AS a2_, Bank AS a3_ WHERE a1_.id = a1__1.id AND (a1__1.companyId = a2_.id AND a1_.bankId = a3_.id) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef2", res); results2.put("DynamicClassRef2", new HashSet(Arrays.asList(new String[] {"Department", "Broke", "Company", "Bank"}))); res = new HashSet(); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM Company AS a1_, Bank AS a1__1, Department AS a2_, Broke AS a3_ WHERE a1_.id = a1__1.id AND (a1_.id = a2_.companyId AND a1_.id = a3_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM Bank AS a1_, Company AS a1__1, Department AS a2_, Broke AS a3_ WHERE a1_.id = a1__1.id AND (a1_.id = a2_.companyId AND a1_.id = a3_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef3", res); results2.put("DynamicClassRef3", new HashSet(Arrays.asList(new String[] {"Department", "Broke", "Company", "Bank"}))); res = new HashSet(); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM Company AS a1_, Bank AS a1__1, Department AS a2_, Broke AS a3_ WHERE a1_.id = a1__1.id AND (a2_.companyId = a1_.id AND a3_.bankId = a1_.id) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM Bank AS a1_, Company AS a1__1, Department AS a2_, Broke AS a3_ WHERE a1_.id = a1__1.id AND (a2_.companyId = a1_.id AND a3_.bankId = a1_.id) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef4", res); results2.put("DynamicClassRef4", new HashSet(Arrays.asList(new String[] {"Department", "Broke", "Company", "Bank"}))); res = new HashSet(); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employable AS a1_, Broke AS a1__1, HasAddress AS a2_, Broke AS a2__1 WHERE a1_.id = a1__1.id AND a2_.id = a2__1.id AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employable AS a1_, Broke AS a1__1, Broke AS a2_, HasAddress AS a2__1 WHERE a1_.id = a1__1.id AND a2_.id = a2__1.id AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Broke AS a1_, Employable AS a1__1, HasAddress AS a2_, Broke AS a2__1 WHERE a1_.id = a1__1.id AND a2_.id = a2__1.id AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Broke AS a1_, Employable AS a1__1, Broke AS a2_, HasAddress AS a2__1 WHERE a1_.id = a1__1.id AND a2_.id = a2__1.id AND a1_.id = a2_.id ORDER BY a1_.id"); results.put("DynamicClassConstraint", res); results2.put("DynamicClassConstraint", new HashSet(Arrays.asList(new String[] {"Employable", "Broke", "HasAddress"}))); results.put("ContainsConstraintNull", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.addressId IS NULL ORDER BY a1_.id"); results2.put("ContainsConstraintNull", Collections.singleton("Employee")); results.put("ContainsConstraintNotNull", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.addressId IS NOT NULL ORDER BY a1_.id"); results2.put("ContainsConstraintNotNull", Collections.singleton("Employee")); results.put("SimpleConstraintNull", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Manager AS a1_ WHERE a1_.title IS NULL ORDER BY a1_.id"); results2.put("SimpleConstraintNull", Collections.singleton("Manager")); results.put("SimpleConstraintNotNull", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Manager AS a1_ WHERE a1_.title IS NOT NULL ORDER BY a1_.id"); results2.put("SimpleConstraintNotNull", Collections.singleton("Manager")); results.put("TypeCast", "SELECT DISTINCT (a1_.age)::TEXT AS a2_ FROM Employee AS a1_ ORDER BY (a1_.age)::TEXT"); results2.put("TypeCast", Collections.singleton("Employee")); results.put("IndexOf", "SELECT STRPOS(a1_.name, 'oy') AS a2_ FROM Employee AS a1_ ORDER BY STRPOS(a1_.name, 'oy')"); results2.put("IndexOf", Collections.singleton("Employee")); results.put("Substring", "SELECT SUBSTR(a1_.name, 2, 2) AS a2_ FROM Employee AS a1_ ORDER BY SUBSTR(a1_.name, 2, 2)"); results2.put("Substring", Collections.singleton("Employee")); results.put("Substring2", "SELECT SUBSTR(a1_.name, 2) AS a2_ FROM Employee AS a1_ ORDER BY SUBSTR(a1_.name, 2)"); results2.put("Substring2", Collections.singleton("Employee")); results.put("OrderByReference", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.departmentId AS orderbyfield0 FROM Employee AS a1_ ORDER BY a1_.departmentId, a1_.id"); results2.put("OrderByReference", Collections.singleton("Employee")); results.put("FailDistinctOrder", new Failure(ObjectStoreException.class, "Field a1_.age in the ORDER BY list must be in the SELECT list, or the whole QueryClass org.intermine.model.testmodel.Employee must be in the SELECT list, or the query made non-distinct")); String largeBagConstraintText = new BufferedReader(new InputStreamReader(TruncatedSqlGeneratorTest.class.getClassLoader().getResourceAsStream("test/largeBag.sql"))).readLine(); results.put("LargeBagConstraint", largeBagConstraintText); results2.put("LargeBagConstraint", Collections.singleton("Employee")); results2.put("LargeBagConstraintUsingTable", Collections.singleton("Employee")); results.put("LargeBagConstraintUsingTable", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.name IN (SELECT value FROM " + LARGE_BAG_TABLE_NAME + ") ORDER BY a1_.id"); }
|
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/e18b0260e188657b92aa98005c42556f4c5c51dd/SqlGeneratorTest.java/buggy/intermine/src/test/org/intermine/objectstore/intermine/SqlGeneratorTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1686,
18,
458,
2932,
20020,
5013,
5806,
7736,
1388,
3113,
315,
4803,
23286,
279,
21,
27799,
9422,
5355,
279,
21,
67,
16,
279,
21,
27799,
350,
5355,
279,
21,
67,
350,
4571,
512,
27520,
5355,
279,
21,
67,
4852,
279,
21,
27799,
529,
2120,
261,
4803,
460,
4571,
315,
397,
511,
28847,
67,
38,
1781,
67,
7775,
67,
1985,
397,
9369,
10205,
6953,
279,
21,
27799,
350,
8863,
1686,
18,
458,
2932,
20020,
5013,
5806,
7736,
1388,
3113,
315,
4803,
23286,
279,
21,
27799,
9422,
5355,
279,
21,
67,
16,
279,
21,
27799,
350,
5355,
279,
21,
67,
350,
4571,
512,
27520,
5355,
279,
21,
67,
4852,
279,
21,
27799,
529,
2120,
261,
4803,
460,
4571,
315,
397,
511,
28847,
67,
38,
1781,
67,
7775,
67,
1985,
397,
9369,
10205,
6953,
279,
21,
27799,
350,
8863,
1686,
18,
458,
2932,
20020,
5013,
5806,
7736,
1388,
3113,
315,
4803,
23286,
279,
21,
27799,
9422,
5355,
279,
21,
67,
16,
279,
21,
27799,
350,
5355,
279,
21,
67,
350,
4571,
512,
27520,
5355,
279,
21,
67,
4852,
279,
21,
27799,
529,
2120,
261,
4803,
460,
4571,
315,
397,
511,
28847,
67,
38,
1781,
67,
7775,
67,
1985,
397,
9369,
10205,
6953,
279,
21,
27799,
350,
8863,
1686,
18,
458,
2932,
20020,
5013,
5806,
7736,
1388,
3113,
315,
4803,
23286,
279,
21,
27799,
9422,
5355,
279,
21,
67,
16,
279,
21,
27799,
350,
5355,
279,
21,
67,
350,
4571,
512,
27520,
5355,
279,
21,
67,
4852,
279,
21,
27799,
529,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1686,
18,
458,
2932,
20020,
5013,
5806,
7736,
1388,
3113,
315,
4803,
23286,
279,
21,
27799,
9422,
5355,
279,
21,
67,
16,
279,
21,
27799,
350,
5355,
279,
21,
67,
350,
4571,
512,
27520,
5355,
279,
21,
67,
4852,
279,
21,
27799,
529,
2120,
261,
4803,
460,
4571,
315,
397,
511,
28847,
67,
38,
1781,
67,
7775,
67,
1985,
397,
9369,
10205,
6953,
279,
21,
27799,
350,
8863,
1686,
18,
458,
2932,
20020,
5013,
5806,
7736,
1388,
3113,
315,
4803,
23286,
279,
21,
27799,
9422,
5355,
279,
21,
67,
16,
279,
21,
27799,
350,
5355,
279,
21,
67,
350,
4571,
512,
27520,
5355,
279,
21,
67,
4852,
279,
21,
27799,
529,
2120,
261,
4803,
460,
4571,
315,
397,
511,
2
] |
|
+ba+","+size+"): "+bytesToHex(b)+" for "+sb.toString());
|
+ba+ ',' +size+"): "+bytesToHex(b)+" for "+sb.toString());
|
public final static byte[] bitsToBytes(BitSet ba, int size) { int bytesAlloc = countBytesForBits(size); byte[] b = new byte[bytesAlloc]; StringBuffer sb =null; if(logDEBUG) sb = new StringBuffer(8*bytesAlloc); //TODO: Should it be 2*8*bytesAlloc here? for(int i=0;i<b.length;i++) { short s = 0; for(int j=0;j<8;j++) { int idx = i*8+j; boolean val = idx > size ? false : ba.get(idx); s |= val ? (1<<j) : 0; if(sb != null) sb.append(val ? '1' : '0'); } if(s > 255) throw new IllegalStateException("WTF? s = "+s); b[i] = (byte)s; } if(logDEBUG) Logger.debug(HexUtil.class, "bytes: "+bytesAlloc+" returned from bitsToBytes(" +ba+","+size+"): "+bytesToHex(b)+" for "+sb.toString()); return b; }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/62fd59041864b4ed1f43adc676de6bfb5ea977f3/HexUtil.java/buggy/src/freenet/support/HexUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
760,
1160,
8526,
4125,
21033,
12,
5775,
694,
9846,
16,
509,
963,
13,
288,
202,
202,
474,
1731,
8763,
273,
1056,
2160,
1290,
6495,
12,
1467,
1769,
202,
202,
7229,
8526,
324,
273,
394,
1160,
63,
3890,
8763,
15533,
202,
202,
780,
1892,
2393,
273,
2011,
31,
202,
202,
430,
12,
1330,
9394,
13,
2393,
273,
394,
6674,
12,
28,
14,
3890,
8763,
1769,
368,
6241,
30,
9363,
518,
506,
576,
14,
28,
14,
3890,
8763,
2674,
35,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
70,
18,
2469,
31,
77,
27245,
288,
1082,
202,
6620,
272,
273,
374,
31,
1082,
202,
1884,
12,
474,
525,
33,
20,
31,
78,
32,
28,
31,
78,
27245,
288,
9506,
202,
474,
2067,
273,
277,
14,
28,
15,
78,
31,
9506,
202,
6494,
1244,
273,
4405,
202,
3465,
405,
963,
692,
629,
294,
25083,
202,
12124,
18,
588,
12,
3465,
1769,
9506,
202,
87,
5626,
1244,
692,
261,
21,
17685,
78,
13,
294,
374,
31,
9506,
202,
430,
12,
18366,
480,
446,
13,
2393,
18,
6923,
12,
1125,
692,
296,
21,
11,
294,
296,
20,
8284,
1082,
202,
97,
1082,
202,
430,
12,
87,
405,
4561,
13,
604,
394,
5477,
2932,
8588,
42,
35,
272,
273,
13773,
87,
1769,
1082,
202,
70,
63,
77,
65,
273,
261,
7229,
13,
87,
31,
202,
202,
97,
202,
202,
430,
12,
1330,
9394,
13,
4242,
18,
4148,
12,
7037,
1304,
18,
1106,
16,
315,
3890,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
760,
1160,
8526,
4125,
21033,
12,
5775,
694,
9846,
16,
509,
963,
13,
288,
202,
202,
474,
1731,
8763,
273,
1056,
2160,
1290,
6495,
12,
1467,
1769,
202,
202,
7229,
8526,
324,
273,
394,
1160,
63,
3890,
8763,
15533,
202,
202,
780,
1892,
2393,
273,
2011,
31,
202,
202,
430,
12,
1330,
9394,
13,
2393,
273,
394,
6674,
12,
28,
14,
3890,
8763,
1769,
368,
6241,
30,
9363,
518,
506,
576,
14,
28,
14,
3890,
8763,
2674,
35,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
70,
18,
2469,
31,
77,
27245,
288,
1082,
202,
6620,
272,
273,
374,
31,
1082,
202,
1884,
12,
474,
525,
33,
20,
31,
78,
32,
28,
2
] |
if (corpus.containsKey(tokenDegenerated)) { Double probabilityTemp = (Double) corpus.get(tokenDegenerated);
|
if (workCorpus.containsKey(tokenDegenerated)) { Double probabilityTemp = (Double) workCorpus.get(tokenDegenerated);
|
private SortedSet getTokenProbabilityStrengths(Set tokens) { //Convert to a SortedSet of token probability strengths. SortedSet tokenProbabilityStrengths = new TreeSet(); Iterator i = tokens.iterator(); while (i.hasNext()) { TokenProbabilityStrength tps = new TokenProbabilityStrength(); tps.token = (String) i.next(); if (corpus.containsKey(tps.token)) { tps.strength = Math.abs(0.5 - ((Double) corpus.get(tps.token)).doubleValue()); } else { //This token has never been seen before, //we'll give it initially the default probability. Double corpusProbability = new Double(DEFAULT_TOKEN_PROBABILITY); tps.strength = Math.abs(0.5 - DEFAULT_TOKEN_PROBABILITY); Collection degeneratedTokens = buildDegenerated(tps.token); Iterator iDegenerated = degeneratedTokens.iterator(); String tokenDegenerated = null; double strengthDegenerated; while (iDegenerated.hasNext()) { tokenDegenerated = (String) iDegenerated.next(); if (corpus.containsKey(tokenDegenerated)) { Double probabilityTemp = (Double) corpus.get(tokenDegenerated); strengthDegenerated = Math.abs(0.5 - probabilityTemp.doubleValue()); if (strengthDegenerated > tps.strength) { tps.strength = strengthDegenerated; corpusProbability = probabilityTemp; } } } synchronized(corpus) { corpus.put(tps.token, corpusProbability); } } tokenProbabilityStrengths.add(tps); } return tokenProbabilityStrengths; }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/35e9d45b9c3172643e66a21c01d888afa0b3b08b/BayesianAnalyzer.java/clean/src/java/org/apache/james/util/BayesianAnalyzer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
22123,
9162,
25598,
27624,
87,
12,
694,
2430,
13,
288,
3639,
368,
2723,
358,
279,
22123,
434,
1147,
11331,
21638,
87,
18,
3639,
22123,
1147,
25598,
27624,
87,
273,
394,
19461,
5621,
7734,
4498,
277,
273,
2430,
18,
9838,
5621,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
3155,
25598,
27624,
268,
1121,
273,
394,
3155,
25598,
27624,
5621,
13491,
268,
1121,
18,
2316,
273,
261,
780,
13,
277,
18,
4285,
5621,
13491,
309,
261,
3850,
9861,
18,
12298,
653,
12,
88,
1121,
18,
2316,
3719,
288,
7734,
268,
1121,
18,
334,
13038,
273,
2361,
18,
5113,
12,
20,
18,
25,
300,
14015,
5265,
13,
13825,
18,
588,
12,
88,
1121,
18,
2316,
13,
2934,
9056,
620,
10663,
5411,
289,
5411,
469,
288,
7734,
368,
2503,
1147,
711,
5903,
2118,
5881,
1865,
16,
7734,
368,
1814,
5614,
8492,
518,
22458,
326,
805,
11331,
18,
7734,
3698,
13825,
25598,
273,
394,
3698,
12,
5280,
67,
8412,
67,
3373,
38,
22879,
1769,
7734,
268,
1121,
18,
334,
13038,
273,
2361,
18,
5113,
12,
20,
18,
25,
300,
3331,
67,
8412,
67,
3373,
38,
22879,
1769,
27573,
2200,
443,
11168,
5157,
273,
1361,
758,
11168,
12,
88,
1121,
18,
2316,
1769,
7734,
4498,
277,
758,
11168,
273,
443,
11168,
5157,
18,
9838,
5621,
7734,
514,
1147,
758,
11168,
273,
446,
31,
7734,
1645,
21638,
758,
11168,
31,
7734,
1323,
261,
77,
758,
11168,
18,
5332,
2134,
10756,
288,
10792,
1147,
758,
11168,
273,
261,
780,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
22123,
9162,
25598,
27624,
87,
12,
694,
2430,
13,
288,
3639,
368,
2723,
358,
279,
22123,
434,
1147,
11331,
21638,
87,
18,
3639,
22123,
1147,
25598,
27624,
87,
273,
394,
19461,
5621,
7734,
4498,
277,
273,
2430,
18,
9838,
5621,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
3155,
25598,
27624,
268,
1121,
273,
394,
3155,
25598,
27624,
5621,
13491,
268,
1121,
18,
2316,
273,
261,
780,
13,
277,
18,
4285,
5621,
13491,
309,
261,
3850,
9861,
18,
12298,
653,
12,
88,
1121,
18,
2316,
3719,
288,
7734,
268,
1121,
18,
334,
13038,
273,
2361,
18,
5113,
12,
20,
18,
25,
300,
14015,
5265,
13,
13825,
18,
588,
12,
88,
1121,
18,
2316,
13,
2934,
2
] |
httpConnection.addRequestProperty ((String)entry.getKey(), ((List<String>)entry.getValue()).get(0));
|
httpConnection.addRequestProperty((String) entry.getKey(), ((List<String>) entry.getValue()).get(0));
|
protected HttpURLConnection createHttpConnection(String endpoint, Map<String, Object> context) throws IOException { boolean verification = false; // does the client want client hostname verification by the service String verificationProperty = (String) context.get(HOSTNAME_VERIFICATION_PROPERTY); if (verificationProperty != null) { if (verificationProperty.equalsIgnoreCase("true")) verification = true; } // does the client want request redirection to occur String redirectProperty = (String) context.get(REDIRECT_REQUEST_PROPERTY); if (redirectProperty != null) { if (redirectProperty.equalsIgnoreCase("false")) redirect = false; } checkEndpoints(endpoint); HttpURLConnection httpConnection = createConnection(endpoint); if (!verification) { // for https hostname verification - turn off by default if (httpConnection instanceof HttpsURLConnection) { ((HttpsURLConnection) httpConnection).setHostnameVerifier(new HttpClientVerifier()); } } // allow interaction with the web page - user may have to supply // username, password id web page is accessed from web browser httpConnection.setAllowUserInteraction(true); // enable input, output streams httpConnection.setDoOutput(true); httpConnection.setDoInput(true); // the soap message is always sent as a Http POST // HTTP Get is disallowed by BP 1.0 httpConnection.setRequestMethod("POST"); // set the properties on HttpURLConnection for (Map.Entry entry : super.getHeaders().entrySet()) { httpConnection.addRequestProperty ((String)entry.getKey(), ((List<String>)entry.getValue()).get(0)); } return httpConnection; }
|
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/1e4f132eb859087c8d1bc03291b28b121226bdae/HttpClientTransport.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/transport/http/client/HttpClientTransport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
19084,
752,
2940,
1952,
12,
780,
2494,
16,
4766,
5397,
1635,
32,
780,
16,
1033,
34,
819,
13,
5411,
1216,
1860,
288,
3639,
1250,
11805,
273,
629,
31,
3639,
368,
1552,
326,
1004,
2545,
1004,
5199,
11805,
635,
326,
1156,
3639,
514,
11805,
1396,
273,
7734,
261,
780,
13,
819,
18,
588,
12,
8908,
1985,
67,
2204,
14865,
67,
9900,
1769,
3639,
309,
261,
27726,
1396,
480,
446,
13,
288,
5411,
309,
261,
27726,
1396,
18,
14963,
5556,
2932,
3767,
6,
3719,
7734,
11805,
273,
638,
31,
3639,
289,
3639,
368,
1552,
326,
1004,
2545,
590,
19611,
358,
3334,
3639,
514,
3136,
1396,
273,
7734,
261,
780,
13,
819,
18,
588,
12,
25103,
67,
5519,
67,
9900,
1769,
3639,
309,
261,
7590,
1396,
480,
446,
13,
288,
5411,
309,
261,
7590,
1396,
18,
14963,
5556,
2932,
5743,
6,
3719,
7734,
3136,
273,
629,
31,
3639,
289,
3639,
866,
10357,
12,
8003,
1769,
3639,
19084,
1062,
1952,
273,
27870,
12,
8003,
1769,
3639,
309,
16051,
27726,
13,
288,
5411,
368,
364,
2333,
5199,
11805,
225,
300,
7005,
3397,
635,
805,
5411,
309,
261,
2505,
1952,
1276,
2541,
87,
14790,
13,
288,
7734,
14015,
22077,
14790,
13,
1062,
1952,
2934,
542,
13769,
17758,
12,
2704,
16308,
17758,
10663,
5411,
289,
3639,
289,
3639,
368,
1699,
13581,
598,
326,
3311,
1363,
300,
729,
2026,
1240,
358,
14467,
3639,
368,
2718,
16,
2201,
612,
3311,
1363,
353,
15539,
628,
3311,
4748,
3639,
1062,
1952,
18,
542,
7009,
1299,
17419,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19084,
752,
2940,
1952,
12,
780,
2494,
16,
4766,
5397,
1635,
32,
780,
16,
1033,
34,
819,
13,
5411,
1216,
1860,
288,
3639,
1250,
11805,
273,
629,
31,
3639,
368,
1552,
326,
1004,
2545,
1004,
5199,
11805,
635,
326,
1156,
3639,
514,
11805,
1396,
273,
7734,
261,
780,
13,
819,
18,
588,
12,
8908,
1985,
67,
2204,
14865,
67,
9900,
1769,
3639,
309,
261,
27726,
1396,
480,
446,
13,
288,
5411,
309,
261,
27726,
1396,
18,
14963,
5556,
2932,
3767,
6,
3719,
7734,
11805,
273,
638,
31,
3639,
289,
3639,
368,
1552,
326,
1004,
2545,
590,
19611,
358,
3334,
3639,
514,
3136,
1396,
273,
7734,
261,
780,
13,
819,
18,
588,
12,
25103,
67,
5519,
67,
9900,
2
] |
targetlump.nestingdepth, pos, true, true);
|
targetlump.nestingdepth, pos, true, wasopentag);
|
private void renderRecurse(UIBranchContainer basecontainer, XMLLump parentlump, XMLLump baselump) { int renderindex = baselump.lumpindex; int basedepth = parentlump.nestingdepth; XMLViewTemplate tl = parentlump.parent; while (true) { // continue scanning along this template section until we either each // the last lump, or the recursion level. renderindex = RenderUtil.dumpScan(tl.lumps, renderindex, basedepth, pos, true, false); if (renderindex == tl.lumps.length) break; XMLLump lump = tl.lumps[renderindex]; if (lump.nestingdepth < basedepth) break; String id = lump.rsfID; boolean ismessage = id.startsWith(XMLLump.FORID_PREFIX); if (id != null && !ismessage && id.indexOf(SplitID.SEPARATOR) != -1) { // we have entered a repetitive domain, by diagnosis of the template. // Seek in the component tree for the child list that must be here // at this component, and process them in order, looking them up in // the forward map, which must ALSO be here. String prefix = SplitID.getPrefix(id); List children = fetchComponents(basecontainer, prefix); // these are all children with the same prefix, which will be rendered // synchronously. if (children != null) { for (int i = 0; i < children.size(); ++i) { UIComponent child = (UIComponent) children.get(i); if (child instanceof UIBranchContainer) { XMLLump targetlump = (XMLLump) branchmap.get(child); if (targetlump != null) { renderBranch((UIBranchContainer) child, targetlump); } } else { // repetitive non-branch XMLLump targetlump = findChild(parentlump, child); // this case may trigger if there are suffix-specific renderers // but no fallback. if (targetlump == null) continue; int renderend = renderer.renderComponent(child, view, targetlump, pos, contenttypeinfo.IDStrategy, collected); if (i != children.size() - 1) { // at this point, magically locate any "glue" that matches the // transition // from this component to the next in the template, and scan // along // until we reach the next component with a matching id prefix. // NB transition matching is not implemented and may never be. RenderUtil.dumpScan(tl.lumps, renderend, targetlump.nestingdepth - 1, pos, false, true); // we discard any index reached by this dump, continuing the // controlled sequence as long as there are any children. // given we are in the middle of a sequence here, we expect to // see nothing perverse like components or forms, at most static // things (needing rewriting?) // TODO: split of beginning logic from renderComponent that // deals // with static rewriting, and somehow fix this call to dumpScan // so that it can invoke it. Not urgent, we currently only have // the TINIEST text forming repetition glue. } else { RenderUtil.dumpScan(tl.lumps, renderend, targetlump.nestingdepth, pos, true, true); } } } } else { if (Logger.log.isDebugEnabled()) { Logger.log.debug("No component with prefix " + prefix + " found for domain at template lump " + renderindex + ", skipping"); } } // at this point, magically locate the "postamble" from lump, and // reset the index. // Logger.log.info("Stack returned: skipping domain from "); // debugLump(lump); XMLLump finallump = parentlump.downmap.getFinal(prefix); XMLLump closefinal = finallump.close_tag; renderindex = closefinal.lumpindex + 1; // Logger.log.info("to "); // debugLump(lumps[renderindex]); } else if (ismessage) { TargettedMessageList messages = messagetargets.getMessages(lump); if (messages == null) messages = new TargettedMessageList(); if (!rendereddeadletters) { rendereddeadletters = true; TargettedMessageList deadmessages = messagetargets .getMessages(MessageTargetter.DEAD_LETTERS); if (deadmessages != null) { messages.addMessages(deadmessages); } } if (messages.size() != 0) { if (messagelump == null) { Logger.log.warn("No message template is configured (containing branch with rsf id rsf-messages:)"); } else { UIBranchContainer messagebranch = messagerenderer.renderMessageList(messages); renderBranch(messagebranch, messagelump); } } XMLLump closelump = lump.close_tag; renderindex = closelump.lumpindex + 1; } else { // no colon - continue template-driven. // it is a single, irrepitable component - just render it, and skip // on, or skip completely if there is no peer in the component tree. UIComponent component = null; if (id != null) { component = fetchComponent(basecontainer, id); } // if we find a leaf component, render it. renderindex = renderer.renderComponent(component, view, lump, pos, contenttypeinfo.IDStrategy, collected); } // end if unrepeatable component. if (renderindex == tl.lumps.length) { // deal with the case where component was root element - Ryan of 11/10/06 break; } } }
|
29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/dbbabf8669d759f76cc1a513ce3d9527c48b17fe/ViewRender.java/buggy/rsf-core/core/src/uk/org/ponder/rsf/renderer/ViewRender.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1743,
426,
17682,
12,
5370,
7108,
2170,
1026,
3782,
16,
1377,
3167,
48,
2801,
982,
80,
2801,
16,
3167,
48,
2801,
2580,
292,
2801,
13,
288,
565,
509,
1743,
1615,
273,
2580,
292,
2801,
18,
80,
2801,
1615,
31,
565,
509,
1026,
5979,
273,
982,
80,
2801,
18,
82,
10100,
5979,
31,
565,
3167,
1767,
2283,
8332,
273,
982,
80,
2801,
18,
2938,
31,
565,
1323,
261,
3767,
13,
288,
1377,
368,
1324,
21138,
7563,
333,
1542,
2442,
3180,
732,
3344,
1517,
1377,
368,
326,
1142,
328,
2801,
16,
578,
326,
13917,
1801,
18,
1377,
1743,
1615,
273,
6987,
1304,
18,
8481,
7972,
12,
6172,
18,
80,
23868,
16,
1743,
1615,
16,
1026,
5979,
16,
949,
16,
1850,
638,
16,
629,
1769,
1377,
309,
261,
5902,
1615,
422,
8332,
18,
80,
23868,
18,
2469,
13,
3639,
898,
31,
1377,
3167,
48,
2801,
328,
2801,
273,
8332,
18,
80,
23868,
63,
5902,
1615,
15533,
1377,
309,
261,
80,
2801,
18,
82,
10100,
5979,
411,
1026,
5979,
13,
3639,
898,
31,
1377,
514,
612,
273,
328,
2801,
18,
5453,
74,
734,
31,
1377,
1250,
353,
2150,
273,
612,
18,
17514,
1190,
12,
4201,
48,
2801,
18,
7473,
734,
67,
6307,
1769,
1377,
309,
261,
350,
480,
446,
597,
401,
291,
2150,
597,
612,
18,
31806,
12,
5521,
734,
18,
4550,
13,
480,
300,
21,
13,
288,
3639,
368,
732,
1240,
16219,
279,
22265,
3720,
2461,
16,
635,
6643,
18050,
291,
434,
326,
1542,
18,
3639,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1743,
426,
17682,
12,
5370,
7108,
2170,
1026,
3782,
16,
1377,
3167,
48,
2801,
982,
80,
2801,
16,
3167,
48,
2801,
2580,
292,
2801,
13,
288,
565,
509,
1743,
1615,
273,
2580,
292,
2801,
18,
80,
2801,
1615,
31,
565,
509,
1026,
5979,
273,
982,
80,
2801,
18,
82,
10100,
5979,
31,
565,
3167,
1767,
2283,
8332,
273,
982,
80,
2801,
18,
2938,
31,
565,
1323,
261,
3767,
13,
288,
1377,
368,
1324,
21138,
7563,
333,
1542,
2442,
3180,
732,
3344,
1517,
1377,
368,
326,
1142,
328,
2801,
16,
578,
326,
13917,
1801,
18,
1377,
1743,
1615,
273,
6987,
1304,
18,
8481,
7972,
12,
6172,
18,
80,
23868,
16,
1743,
1615,
16,
1026,
5979,
16,
949,
2
] |
public String getSeparator() {
|
public char getSeparator() {
|
public String getSeparator() { // Okay, this is a bit ugly. But since we'll never find this in the // string, // match() will call innerMatch with the whole rest of the string as // matchingPart, // which is exactly what we want. return "\0"; }
|
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/a7b2840e3cb09cf0e938fe0d65e6ea8d5a5cc665/RawParameter.java/buggy/kom/java/nu/rydin/kom/frontend/text/parser/RawParameter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1149,
1322,
881,
5880,
1435,
288,
3639,
368,
16154,
528,
16,
333,
353,
279,
2831,
26920,
18,
12484,
3241,
732,
5614,
5903,
1104,
333,
316,
326,
3639,
368,
533,
16,
3639,
368,
845,
1435,
903,
745,
3443,
2060,
598,
326,
7339,
3127,
434,
326,
533,
487,
3639,
368,
3607,
1988,
16,
3639,
368,
1492,
353,
8950,
4121,
732,
2545,
18,
3639,
327,
1548,
20,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1149,
1322,
881,
5880,
1435,
288,
3639,
368,
16154,
528,
16,
333,
353,
279,
2831,
26920,
18,
12484,
3241,
732,
5614,
5903,
1104,
333,
316,
326,
3639,
368,
533,
16,
3639,
368,
845,
1435,
903,
745,
3443,
2060,
598,
326,
7339,
3127,
434,
326,
533,
487,
3639,
368,
3607,
1988,
16,
3639,
368,
1492,
353,
8950,
4121,
732,
2545,
18,
3639,
327,
1548,
20,
14432,
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
] |
String[] args = { path }; VFSManager.error(comp,"badurl",args);
|
String[] args = { mu.getMessage() }; VFSManager.error(comp,path,"badurl",args);
|
public OutputStream _createOutputStream(Object session, String path, Component comp) throws IOException { try { return new URL(path).openConnection() .getOutputStream(); } catch(MalformedURLException mu) { Log.log(Log.ERROR,this,mu); String[] args = { path }; VFSManager.error(comp,"badurl",args); return null; } }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/b20a306d85153e340b55107bf8a75f3d1c48f5bb/UrlVFS.java/buggy/org/gjt/sp/jedit/io/UrlVFS.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8962,
389,
2640,
4632,
12,
921,
1339,
16,
514,
589,
16,
202,
202,
1841,
1161,
13,
1216,
1860,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
2463,
394,
1976,
12,
803,
2934,
3190,
1952,
1435,
9506,
202,
18,
588,
4632,
5621,
202,
202,
97,
202,
202,
14683,
12,
18695,
20160,
4129,
13,
202,
202,
95,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
13297,
1769,
1082,
202,
780,
8526,
833,
273,
288,
589,
289,
31,
1082,
202,
58,
4931,
1318,
18,
1636,
12,
2919,
10837,
8759,
718,
3113,
1968,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8962,
389,
2640,
4632,
12,
921,
1339,
16,
514,
589,
16,
202,
202,
1841,
1161,
13,
1216,
1860,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
2463,
394,
1976,
12,
803,
2934,
3190,
1952,
1435,
9506,
202,
18,
588,
4632,
5621,
202,
202,
97,
202,
202,
14683,
12,
18695,
20160,
4129,
13,
202,
202,
95,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
13297,
1769,
1082,
202,
780,
8526,
833,
273,
288,
589,
289,
31,
1082,
202,
58,
4931,
1318,
18,
1636,
12,
2919,
10837,
8759,
718,
3113,
1968,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String toFormulaString(SheetReferences refs)
|
public String toFormulaString(Workbook book)
|
public String toFormulaString(SheetReferences refs) { return "^"; }
|
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/3a17ddd5d43b1a648d653abb0a42371ac01d4b3e/PowerPtg.java/buggy/src/java/org/apache/poi/hssf/record/formula/PowerPtg.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
358,
14972,
780,
12,
23345,
6978,
13,
565,
288,
3639,
327,
15017,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
358,
14972,
780,
12,
23345,
6978,
13,
565,
288,
3639,
327,
15017,
14432,
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
] |
context.setContextPath("/");
|
context.setContextPath("/test");
|
public void test() throws Exception { ContextHandler context = new ContextHandler(); context.setContextPath("/"); context.setEventListeners(new EventListener[] { new ContextLoaderListener() }); Map initParams = new HashMap(); initParams.put("contextConfigLocation", "classpath:org/apache/servicemix/http/spring-web.xml"); initParams.put("contextClass", XmlWebApplicationContext.class.getName()); context.setInitParams(initParams); ServletHolder holder = new ServletHolder(); holder.setName("jbiServlet"); holder.setClassName(HttpManagedServlet.class.getName()); ServletHandler handler = new ServletHandler(); handler.setServlets(new ServletHolder[] { holder }); ServletMapping mapping = new ServletMapping(); mapping.setServletName("jbiServlet"); mapping.setPathSpec("/*"); handler.setServletMappings(new ServletMapping[] { mapping }); context.setHandler(handler); ContextHandlerCollection contexts = new ContextHandlerCollection(); HandlerCollection handlers = new HandlerCollection(); handlers.setHandlers(new Handler[] { contexts }); contexts.addHandler(context); SelectChannelConnector connector = new SelectChannelConnector(); connector.setHost("localhost"); connector.setPort(8080); Server server = new Server(); server.setConnectors(new Connector[] { connector }); server.setHandler(handlers); server.start(); System.err.println("Started"); PostMethod post = new PostMethod("http://localhost:8080/jbi/Service/"); post.setRequestEntity(new StringRequestEntity("<soap:Envelope xmlns:soap='http://www.w3.org/2003/05/soap-envelope'><soap:Body><hello>world</hello></soap:Body></soap:Envelope>")); new HttpClient().executeMethod(post); if (post.getStatusCode() != 200) { throw new InvalidStatusResponseException(post.getStatusCode()); } System.err.println(post.getResponseBodyAsString()); }
|
6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/42efb328de52a10b8e489f3fecfdb0600c868c65/HttpManagedTest.java/clean/servicemix-http/src/test/java/org/apache/servicemix/http/HttpManagedTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1435,
1216,
1185,
288,
3639,
1772,
1503,
819,
273,
394,
1772,
1503,
5621,
3639,
819,
18,
542,
1042,
743,
2932,
19,
3813,
8863,
3639,
819,
18,
542,
30275,
12,
2704,
22090,
8526,
288,
394,
1772,
2886,
2223,
1435,
15549,
3639,
1635,
1208,
1370,
273,
394,
4317,
5621,
3639,
1208,
1370,
18,
458,
2932,
2472,
809,
2735,
3113,
315,
26302,
30,
3341,
19,
19211,
19,
3278,
14860,
19,
2505,
19,
87,
11638,
17,
4875,
18,
2902,
8863,
3639,
1208,
1370,
18,
458,
2932,
2472,
797,
3113,
5714,
4079,
28278,
18,
1106,
18,
17994,
10663,
3639,
819,
18,
542,
2570,
1370,
12,
2738,
1370,
1769,
3639,
7971,
6064,
10438,
273,
394,
7971,
6064,
5621,
3639,
10438,
18,
542,
461,
2932,
10649,
77,
4745,
8863,
3639,
10438,
18,
542,
3834,
12,
2940,
10055,
4745,
18,
1106,
18,
17994,
10663,
3639,
7971,
1503,
1838,
273,
394,
7971,
1503,
5621,
3639,
1838,
18,
542,
4745,
87,
12,
2704,
7971,
6064,
8526,
288,
10438,
15549,
3639,
7971,
3233,
2874,
273,
394,
7971,
3233,
5621,
3639,
2874,
18,
542,
4745,
461,
2932,
10649,
77,
4745,
8863,
3639,
2874,
18,
542,
743,
1990,
2932,
19,
7388,
1769,
3639,
1838,
18,
542,
4745,
7742,
12,
2704,
7971,
3233,
8526,
288,
2874,
15549,
3639,
819,
18,
542,
1503,
12,
4176,
1769,
3639,
1772,
1503,
2532,
5781,
273,
394,
1772,
1503,
2532,
5621,
3639,
4663,
2532,
4919,
273,
394,
4663,
2532,
5621,
3639,
4919,
18,
542,
6919,
12,
2704,
4663,
8526,
288,
5781,
15549,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1435,
1216,
1185,
288,
3639,
1772,
1503,
819,
273,
394,
1772,
1503,
5621,
3639,
819,
18,
542,
1042,
743,
2932,
19,
3813,
8863,
3639,
819,
18,
542,
30275,
12,
2704,
22090,
8526,
288,
394,
1772,
2886,
2223,
1435,
15549,
3639,
1635,
1208,
1370,
273,
394,
4317,
5621,
3639,
1208,
1370,
18,
458,
2932,
2472,
809,
2735,
3113,
315,
26302,
30,
3341,
19,
19211,
19,
3278,
14860,
19,
2505,
19,
87,
11638,
17,
4875,
18,
2902,
8863,
3639,
1208,
1370,
18,
458,
2932,
2472,
797,
3113,
5714,
4079,
28278,
18,
1106,
18,
17994,
10663,
3639,
819,
18,
542,
2570,
1370,
12,
2738,
1370,
1769,
3639,
7971,
6064,
10438,
273,
394,
7971,
6064,
5621,
3639,
10438,
18,
2
] |
for (ElemTemplateElement t = template.m_firstChild; t != null;
|
for (; t != null;
|
public void transformSelectedNodes( TransformerImpl transformer, Node sourceNode, ElemTemplateElement template, QName mode) throws TransformerException { try { boolean rdebug = TransformerImpl.S_DEBUG; XPathContext xctxt = transformer.getXPathContext(); XPath selectPattern = getSelectOrDefault(); XObject selectResult = selectPattern.execute(xctxt, sourceNode, this); if (rdebug) transformer.getTraceManager().fireSelectedEvent(sourceNode, this, "test", selectPattern, selectResult); Vector keys = transformer.processSortKeys(this, sourceNode); NodeIterator sourceNodes = selectResult.nodeset(); // Sort if we need to. if (null != keys) sourceNodes = sortNodes(xctxt, keys, sourceNodes); // The returned value is only relevant for ElemApplyTemplates. // This value needs to be passed to popParams which will // restore it in the variable stack. int savedSearchStart = pushParams(transformer, xctxt, sourceNode, mode); // Push the ContextNodeList on a stack, so that select="position()" // and the like will work. // System.out.println("pushing context node list..."); SourceLocator savedLocator = xctxt.getSAXLocator(); xctxt.pushContextNodeList((ContextNodeList) sourceNodes); transformer.pushElemTemplateElement(null); ResultTreeHandler rth = transformer.getResultTreeHandler(); StylesheetRoot sroot = getStylesheetRoot(); TemplateList tl = sroot.getTemplateListComposed(); // StylesheetComposed stylesheet = getStylesheetComposed(); StackGuard guard = transformer.getStackGuard(); boolean check = (guard.m_recursionLimit > -1); boolean quiet = transformer.getQuietConflictWarnings(); boolean needToFindTemplate = (null == template); try { Node child; while (null != (child = sourceNodes.nextNode())) { if (needToFindTemplate) { template = tl.getTemplate(xctxt, child, mode, -1, quiet); // If that didn't locate a node, fall back to a default template rule. // See http://www.w3.org/TR/xslt#built-in-rule. if (null == template) { switch (child.getNodeType()) { case Node.DOCUMENT_FRAGMENT_NODE : case Node.ELEMENT_NODE : template = sroot.getDefaultRule(); break; case Node.ATTRIBUTE_NODE : case Node.CDATA_SECTION_NODE : case Node.TEXT_NODE : if (child.isSupported(SaxEventDispatch.SUPPORTSINTERFACE, "1.0")) { ((SaxEventDispatch) child).dispatchCharactersEvent(rth); } else { String data = child.getNodeValue(); rth.characters(data.toCharArray(), 0, data.length()); } continue; case Node.DOCUMENT_NODE : template = sroot.getDefaultRootRule(); break; default : // No default rules for processing instructions and the like. continue; } } } // If we are processing the default text rule, then just clone // the value directly to the result tree. try { transformer.pushPairCurrentMatched(template, child); if (check) guard.push(this, child); // Fire a trace event for the template. if (rdebug) transformer.getTraceManager().fireTraceEvent(child, mode, template); // And execute the child templates. if (template.isCompiledTemplate()) template.execute(transformer, child, mode); else { // Loop through the children of the template, calling execute on // each of them. for (ElemTemplateElement t = template.m_firstChild; t != null; t = t.m_nextSibling) { xctxt.setSAXLocator(t); transformer.setCurrentElement(t); t.execute(transformer, child, mode); } } reMarkParams(xctxt); } catch(TransformerException te) { throw te; } finally { transformer.popCurrentMatched(); if (check) guard.pop(); } } } finally { xctxt.setSAXLocator(savedLocator); xctxt.popContextNodeList(); transformer.popElemTemplateElement(); popParams(xctxt, savedSearchStart); // if(null != sourceNodes) // sourceNodes.detach(); } } catch(SAXException se) { transformer.getErrorListener().fatalError(new TransformerException(se)); } }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/00f5ecfd3b2dafadf0ef1ecbcd3ba95d03d5e0ed/ElemForEach.java/buggy/src/org/apache/xalan/templates/ElemForEach.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2510,
7416,
3205,
12,
1850,
11519,
2828,
8360,
16,
2029,
26799,
16,
10223,
2283,
1046,
1542,
16,
16723,
1965,
13,
5411,
1216,
21684,
225,
288,
565,
775,
565,
288,
1377,
1250,
436,
4148,
273,
11519,
2828,
18,
55,
67,
9394,
31,
1377,
10172,
1042,
25465,
273,
8360,
18,
588,
14124,
1042,
5621,
1377,
10172,
2027,
3234,
273,
20182,
25186,
5621,
1377,
1139,
921,
2027,
1253,
273,
2027,
3234,
18,
8837,
12,
92,
20364,
16,
26799,
16,
333,
1769,
5411,
309,
261,
86,
4148,
13,
3639,
8360,
18,
588,
3448,
1318,
7675,
12179,
7416,
1133,
12,
3168,
907,
16,
333,
16,
4766,
13491,
315,
3813,
3113,
2027,
3234,
16,
2027,
1253,
1769,
5411,
5589,
1311,
273,
8360,
18,
2567,
4416,
2396,
12,
2211,
16,
26799,
1769,
1377,
2029,
3198,
1084,
3205,
273,
2027,
1253,
18,
4690,
278,
5621,
1377,
368,
5928,
309,
732,
1608,
358,
18,
1377,
309,
261,
2011,
480,
1311,
13,
3639,
1084,
3205,
273,
1524,
3205,
12,
92,
20364,
16,
1311,
16,
1084,
3205,
1769,
1377,
368,
1021,
2106,
460,
353,
1338,
9368,
364,
10223,
7001,
8218,
18,
1377,
368,
1220,
460,
4260,
358,
506,
2275,
358,
1843,
1370,
1492,
903,
1377,
368,
5217,
518,
316,
326,
2190,
2110,
18,
1377,
509,
5198,
2979,
1685,
273,
1817,
1370,
12,
21523,
16,
25465,
16,
26799,
16,
1965,
1769,
1377,
368,
8547,
326,
1772,
19914,
603,
279,
2110,
16,
1427,
716,
2027,
1546,
3276,
10031,
1377,
368,
471,
326,
3007,
903,
1440,
18,
1377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2510,
7416,
3205,
12,
1850,
11519,
2828,
8360,
16,
2029,
26799,
16,
10223,
2283,
1046,
1542,
16,
16723,
1965,
13,
5411,
1216,
21684,
225,
288,
565,
775,
565,
288,
1377,
1250,
436,
4148,
273,
11519,
2828,
18,
55,
67,
9394,
31,
1377,
10172,
1042,
25465,
273,
8360,
18,
588,
14124,
1042,
5621,
1377,
10172,
2027,
3234,
273,
20182,
25186,
5621,
1377,
1139,
921,
2027,
1253,
273,
2027,
3234,
18,
8837,
12,
92,
20364,
16,
26799,
16,
333,
1769,
5411,
309,
261,
86,
4148,
13,
3639,
8360,
18,
588,
3448,
1318,
7675,
12179,
7416,
1133,
12,
3168,
907,
16,
333,
16,
4766,
13491,
315,
3813,
3113,
2027,
3234,
16,
2027,
1253,
1769,
5411,
5589,
1311,
273,
8360,
2
] |
public Vector readTasks(CmsProject project, CmsUser agent, CmsUser owner, CmsGroup role, int tasktype, String orderBy, String sort) throws CmsException { boolean first = true; Vector tasks = new Vector(); // vector for the return result CmsTask task = null; // tmp task for adding to vector ResultSet recset = null; Connection con = null; Statement statement = null; // create the sql string depending on parameters // handle the project for the SQL String String sqlstr = "SELECT * FROM " + m_cq.get("C_TABLENAME_TASK") + " WHERE "; if (project != null) { sqlstr = sqlstr + m_cq.get("C_TASK_ROOT") + "=" + project.getTaskId(); first = false; } else { sqlstr = sqlstr + m_cq.get("C_TASK_ROOT") + "<>0 AND " + m_cq.get("C_TASK_PARENT") + "<>0"; first = false; } // handle the agent for the SQL String if (agent != null) { if (!first) { sqlstr = sqlstr + " AND "; } sqlstr = sqlstr + m_cq.get("C_TASK_AGENTUSER") + "=" + agent.getId(); first = false; } // handle the owner for the SQL String if (owner != null) { if (!first) { sqlstr = sqlstr + " AND "; } sqlstr = sqlstr + m_cq.get("C_TASK_INITIATORUSER") + "=" + owner.getId(); first = false; } // handle the role for the SQL String if (role != null) { if (!first) { sqlstr = sqlstr + " AND "; } sqlstr = sqlstr + m_cq.get("C_TASK_ROLE") + "=" + role.getId(); first = false; } sqlstr = sqlstr + getTaskTypeConditon(first, tasktype); // handel the order and sort parameter for the SQL String if (orderBy != null) { if (!orderBy.equals("")) { sqlstr = sqlstr + " ORDER BY " + orderBy; if (orderBy != null) { if (!orderBy.equals("")) { sqlstr = sqlstr + " " + sort; } } } } try { con = DriverManager.getConnection(m_poolName); statement = con.createStatement(); recset = statement.executeQuery(sqlstr); // if resultset exists - return vector of tasks while (recset.next()) { task = new CmsTask(recset.getInt(m_cq.get("C_TASK_ID")), recset.getString(m_cq.get("C_TASK_NAME")), recset.getInt(m_cq.get("C_TASK_STATE")), recset.getInt(m_cq.get("C_TASK_TASKTYPE")), recset.getInt(m_cq.get("C_TASK_ROOT")), recset.getInt(m_cq.get("C_TASK_PARENT")), recset.getInt(m_cq.get("C_TASK_INITIATORUSER")), recset.getInt(m_cq.get("C_TASK_ROLE")), recset.getInt(m_cq.get("C_TASK_AGENTUSER")), recset.getInt(m_cq.get("C_TASK_ORIGINALUSER")), SqlHelper.getTimestamp(recset, m_cq.get("C_TASK_STARTTIME")), SqlHelper.getTimestamp(recset, m_cq.get("C_TASK_WAKEUPTIME")), SqlHelper.getTimestamp(recset, m_cq.get("C_TASK_TIMEOUT")), SqlHelper.getTimestamp(recset, m_cq.get("C_TASK_ENDTIME")), recset.getInt(m_cq.get("C_TASK_PERCENTAGE")), recset.getString(m_cq.get("C_TASK_PERMISSION")), recset.getInt(m_cq.get("C_TASK_PRIORITY")), recset.getInt(m_cq.get("C_TASK_ESCALATIONTYPE")), recset.getString(m_cq.get("C_TASK_HTMLLINK")), recset.getInt(m_cq.get("C_TASK_MILESTONE")), recset.getInt(m_cq.get("C_TASK_AUTOFINISH"))); tasks.addElement(task); } } catch (SQLException exc) { throw new CmsException(exc.getMessage(), CmsException.C_SQL_ERROR, exc); } catch (Exception exc) { throw new CmsException(exc.getMessage(), CmsException.C_UNKNOWN_EXCEPTION, exc); } finally { // close all db-resources if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } return tasks;}
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ddea85daacc842b71afe75743df5751072ced548/CmsDbAccess.java/clean/src/com/opencms/file/mySql/CmsDbAccess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
5018,
896,
6685,
12,
4747,
4109,
4406,
16,
4747,
1299,
5629,
16,
4747,
1299,
8443,
16,
4747,
1114,
4615,
16,
474,
4146,
723,
16,
780,
26323,
16,
780,
3804,
13,
15069,
4747,
503,
95,
6494,
3645,
33,
3767,
31,
58,
386,
499,
835,
87,
33,
2704,
5018,
5621,
759,
7737,
1884,
1136,
851,
2088,
4747,
2174,
4146,
33,
2011,
31,
759,
16925,
337,
835,
1884,
3439,
869,
7737,
13198,
3927,
542,
33,
2011,
31,
1952,
591,
33,
2011,
31,
3406,
11516,
33,
2011,
31,
759,
27350,
546,
281,
1217,
1080,
5817,
310,
265,
3977,
759,
2349,
80,
546,
73,
4406,
1884,
5787,
3997,
780,
780,
4669,
701,
1546,
4803,
14,
11249,
6,
15,
81,
67,
71,
85,
18,
588,
2932,
39,
67,
7775,
1985,
67,
15580,
7923,
9078,
12299,
14432,
430,
12,
4406,
5,
33,
2011,
15329,
4669,
701,
33,
4669,
701,
15,
81,
67,
71,
85,
18,
588,
2932,
39,
67,
15580,
67,
9185,
7923,
9078,
1546,
15,
4406,
18,
588,
30182,
5621,
3645,
33,
5743,
31,
97,
12107,
95,
4669,
701,
33,
4669,
701,
15,
81,
67,
71,
85,
18,
588,
2932,
39,
67,
15580,
67,
9185,
7923,
9078,
29667,
20,
4307,
6,
15,
81,
67,
71,
85,
18,
588,
2932,
39,
67,
15580,
67,
14943,
7923,
9078,
29667,
20,
14432,
3645,
33,
5743,
31,
97,
759,
2349,
80,
546,
73,
5629,
1884,
5787,
3997,
780,
430,
12,
5629,
5,
33,
2011,
15329,
430,
12,
5,
3645,
15329,
4669,
701,
33,
4669,
701,
9078,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5018,
896,
6685,
12,
4747,
4109,
4406,
16,
4747,
1299,
5629,
16,
4747,
1299,
8443,
16,
4747,
1114,
4615,
16,
474,
4146,
723,
16,
780,
26323,
16,
780,
3804,
13,
15069,
4747,
503,
95,
6494,
3645,
33,
3767,
31,
58,
386,
499,
835,
87,
33,
2704,
5018,
5621,
759,
7737,
1884,
1136,
851,
2088,
4747,
2174,
4146,
33,
2011,
31,
759,
16925,
337,
835,
1884,
3439,
869,
7737,
13198,
3927,
542,
33,
2011,
31,
1952,
591,
33,
2011,
31,
3406,
11516,
33,
2011,
31,
759,
27350,
546,
281,
1217,
1080,
5817,
310,
265,
3977,
759,
2349,
80,
546,
73,
4406,
1884,
5787,
3997,
780,
780,
4669,
701,
1546,
4803,
14,
11249,
6,
15,
81,
67,
71,
85,
18,
2
] |
||
ToDoItem item = (ToDoItem) items.elementAt(i);
|
ToDoItem item = (ToDoItem)items.elementAt(i);
|
public Vector getPopUpActions(MouseEvent me) { Vector popUpActions = super.getPopUpActions(me); ToDoList list = Designer.TheDesigner.getToDoList(); Vector items = (Vector) list.elementsForOffender(getOwner()).clone(); if (items != null && items.size() > 0) { JMenu critiques = new JMenu("Critiques"); ToDoItem itemUnderMouse = hitClarifier(me.getX(), me.getY()); if (itemUnderMouse != null) critiques.add(new ActionGoToCritique(itemUnderMouse)); critiques.addSeparator(); int size = items.size(); for (int i = 0; i < size; i++) { ToDoItem item = (ToDoItem) items.elementAt(i); if (item == itemUnderMouse) continue; critiques.add(new ActionGoToCritique(item)); } popUpActions.insertElementAt(critiques, 0); } popUpActions.addElement(ActionProperties.SINGLETON); popUpActions.addElement(ActionDeleteFromDiagram.SINGLETON); return popUpActions; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/8485bf4a1469aab61cc29cf76b937d54c6455437/FigNodeModelElement.java/buggy/src_new/org/argouml/uml/diagram/ui/FigNodeModelElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
1689,
556,
1211,
6100,
12,
9186,
1133,
1791,
13,
288,
3639,
5589,
1843,
1211,
6100,
273,
2240,
18,
588,
7049,
1211,
6100,
12,
3501,
1769,
3639,
2974,
3244,
682,
666,
273,
29703,
264,
18,
1986,
15478,
264,
18,
588,
774,
3244,
682,
5621,
3639,
5589,
1516,
273,
261,
5018,
13,
666,
18,
6274,
1290,
7210,
2345,
12,
588,
5541,
1435,
2934,
14056,
5621,
3639,
309,
261,
3319,
480,
446,
597,
1516,
18,
1467,
1435,
405,
374,
13,
288,
5411,
804,
4599,
7921,
18988,
281,
273,
394,
804,
4599,
2932,
39,
583,
18988,
281,
8863,
5411,
2974,
3244,
1180,
761,
14655,
9186,
273,
6800,
2009,
297,
1251,
12,
3501,
18,
588,
60,
9334,
1791,
18,
588,
61,
10663,
5411,
309,
261,
1726,
14655,
9186,
480,
446,
13,
7734,
7921,
18988,
281,
18,
1289,
12,
2704,
4382,
5741,
774,
39,
583,
2161,
12,
1726,
14655,
9186,
10019,
5411,
7921,
18988,
281,
18,
1289,
6581,
5621,
5411,
509,
963,
273,
1516,
18,
1467,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
7734,
2974,
3244,
1180,
761,
273,
261,
774,
3244,
1180,
13,
3319,
18,
2956,
861,
12,
77,
1769,
7734,
309,
261,
1726,
422,
761,
14655,
9186,
13,
10792,
1324,
31,
7734,
7921,
18988,
281,
18,
1289,
12,
2704,
4382,
5741,
774,
39,
583,
2161,
12,
1726,
10019,
5411,
289,
5411,
1843,
1211,
6100,
18,
6387,
1046,
861,
12,
27826,
18988,
281,
16,
374,
1769,
3639,
289,
3639,
1843,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
1689,
556,
1211,
6100,
12,
9186,
1133,
1791,
13,
288,
3639,
5589,
1843,
1211,
6100,
273,
2240,
18,
588,
7049,
1211,
6100,
12,
3501,
1769,
3639,
2974,
3244,
682,
666,
273,
29703,
264,
18,
1986,
15478,
264,
18,
588,
774,
3244,
682,
5621,
3639,
5589,
1516,
273,
261,
5018,
13,
666,
18,
6274,
1290,
7210,
2345,
12,
588,
5541,
1435,
2934,
14056,
5621,
3639,
309,
261,
3319,
480,
446,
597,
1516,
18,
1467,
1435,
405,
374,
13,
288,
5411,
804,
4599,
7921,
18988,
281,
273,
394,
804,
4599,
2932,
39,
583,
18988,
281,
8863,
5411,
2974,
3244,
1180,
761,
14655,
9186,
273,
6800,
2009,
297,
1251,
12,
3501,
18,
588,
60,
9334,
1791,
18,
588,
61,
2
] |
if (jj_3R_153()) return true;
|
if (jj_scan_token(LBRACE)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_300()) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_scan_token(81)) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_3R_301()) jj_scanpos = xsp; if (jj_scan_token(RBRACE)) return true;
|
final private boolean jj_3R_97() { if (jj_3R_153()) return true; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
10580,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
12995,
9254,
3719,
327,
638,
31,
3155,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
23,
54,
67,
19249,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
11861,
3719,
10684,
67,
9871,
917,
273,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
23,
54,
67,
31831,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
19437,
9254,
3719,
327,
638,
31,
565,
327,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
10580,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
12995,
9254,
3719,
327,
638,
31,
3155,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
23,
54,
67,
19249,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
11861,
3719,
10684,
67,
9871,
917,
273,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
23,
54,
67,
31831,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
2
] |
public boolean isActive(String aContentExtensionId) {
|
public boolean isActive(INavigatorContentDescriptor aContentDescriptor) {
|
public boolean isActive(String aContentExtensionId) { return NavigatorActivationService.getInstance() .isNavigatorExtensionActive(viewerDescriptor.getViewerId(), aContentExtensionId); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/377029d74a7de25fc7c2c47d145c9fad2b1088ee/VisibilityAssistant.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/VisibilityAssistant.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
15083,
12,
780,
279,
1350,
3625,
548,
13,
288,
202,
202,
2463,
423,
13061,
14857,
1179,
18,
588,
1442,
1435,
9506,
202,
18,
291,
22817,
3625,
3896,
12,
25256,
3187,
18,
588,
18415,
548,
9334,
25083,
202,
69,
1350,
3625,
548,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
15083,
12,
780,
279,
1350,
3625,
548,
13,
288,
202,
202,
2463,
423,
13061,
14857,
1179,
18,
588,
1442,
1435,
9506,
202,
18,
291,
22817,
3625,
3896,
12,
25256,
3187,
18,
588,
18415,
548,
9334,
25083,
202,
69,
1350,
3625,
548,
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
] |
h1.addAuthenticationProgressHandler(new TempAuthenticationEventHandler());
|
TempAuthenticationEventHandler h = new TempAuthenticationEventHandler(); h.outer = new RelateAuthenticationProtocol("", (byte) Integer.parseInt(args[1])); h1.addAuthenticationProgressHandler(h);
|
public static void main(String[] args) throws Exception { class TempAuthenticationEventHandler implements AuthenticationProgressHandler { public void AuthenticationSuccess(Object remote, Object result) { System.out.println("Received authentication success event with " + remote + ", got result " + result); } public void AuthenticationFailure(Object remote, Exception e, String msg) { System.out.println("Received authentication failure event with " + remote); Throwable exc = e; while (exc != null) { System.out.println("Exception: " + exc); exc = exc.getCause(); } if (msg != null) System.out.println("Message: " + msg); } public void AuthenticationProgress(Object remote, int cur, int max, String msg) { System.out.println("Received authentication progress event with " + remote + " " + cur + " out of " + max + ": " + msg); } } if (args.length > 0 && args[0].equals("server")) { HostServerSocket h1 = new HostServerSocket(TcpPort); h1.addAuthenticationProgressHandler(new TempAuthenticationEventHandler()); h1.startListening(); new BufferedReader(new InputStreamReader(System.in)).readLine(); h1.stopListening(); } if (args.length > 1 && args[0].equals("client")) { RelateAuthenticationProtocol r = new RelateAuthenticationProtocol(args[1], (byte) 100); r.addAuthenticationProgressHandler(new TempAuthenticationEventHandler()); r.startAuthentication(2); new BufferedReader(new InputStreamReader(System.in)).readLine(); } // problem with the javax.comm API - doesn't release its native thread System.exit(0); }
|
14316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14316/46bb5a1bdd2ed53feec869c9e1a3c86ba76c4d7c/RelateAuthenticationProtocol.java/buggy/src/java/RelateAuthentication/src/org/eu/mayrhofer/authentication/RelateAuthenticationProtocol.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
202,
95,
377,
202,
1106,
16380,
6492,
16402,
4792,
8665,
5491,
1503,
288,
377,
202,
565,
1071,
918,
8665,
4510,
12,
921,
2632,
16,
1033,
563,
13,
377,
202,
565,
288,
377,
202,
3639,
2332,
18,
659,
18,
8222,
2932,
8872,
5107,
2216,
871,
598,
315,
397,
2632,
397,
3104,
2363,
563,
315,
397,
563,
1769,
377,
202,
565,
289,
377,
202,
565,
1071,
918,
8665,
5247,
12,
921,
2632,
16,
1185,
425,
16,
514,
1234,
13,
377,
202,
565,
288,
377,
202,
3639,
2332,
18,
659,
18,
8222,
2932,
8872,
5107,
5166,
871,
598,
315,
397,
2632,
1769,
377,
202,
3639,
4206,
3533,
273,
425,
31,
377,
202,
3639,
1323,
261,
10075,
480,
446,
13,
288,
377,
202,
5411,
2332,
18,
659,
18,
8222,
2932,
503,
30,
315,
397,
3533,
1769,
377,
202,
5411,
3533,
273,
3533,
18,
588,
10683,
5621,
377,
202,
3639,
289,
377,
202,
3639,
309,
261,
3576,
480,
446,
13,
377,
202,
5411,
2332,
18,
659,
18,
8222,
2932,
1079,
30,
315,
397,
1234,
1769,
377,
202,
565,
289,
377,
202,
565,
1071,
918,
8665,
5491,
12,
921,
2632,
16,
509,
662,
16,
509,
943,
16,
514,
1234,
13,
377,
202,
565,
288,
377,
202,
3639,
2332,
18,
659,
18,
8222,
2932,
8872,
5107,
4007,
871,
598,
315,
397,
2632,
397,
315,
315,
397,
662,
397,
315,
596,
434,
315,
397,
943,
397,
6398,
315,
397,
1234,
1769,
377,
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,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
202,
95,
377,
202,
1106,
16380,
6492,
16402,
4792,
8665,
5491,
1503,
288,
377,
202,
565,
1071,
918,
8665,
4510,
12,
921,
2632,
16,
1033,
563,
13,
377,
202,
565,
288,
377,
202,
3639,
2332,
18,
659,
18,
8222,
2932,
8872,
5107,
2216,
871,
598,
315,
397,
2632,
397,
3104,
2363,
563,
315,
397,
563,
1769,
377,
202,
565,
289,
377,
202,
565,
1071,
918,
8665,
5247,
12,
921,
2632,
16,
1185,
425,
16,
514,
1234,
13,
377,
202,
565,
288,
377,
202,
3639,
2332,
18,
659,
18,
8222,
2932,
8872,
5107,
5166,
871,
598,
315,
397,
2632,
1769,
377,
202,
3639,
4206,
3533,
273,
425,
31,
2
] |
return null; }
|
public String lookupNamespaceURI(String prefix) { short type = this.getNodeType(); switch (type) { case Node.ELEMENT_NODE : { return lookupNamespaceURI(prefix, this); } case Node.DOCUMENT_NODE : { return ((NodeImpl)((Document)this).getDocumentElement()).lookupNamespaceURI(prefix); } case Node.ENTITY_NODE : case Node.NOTATION_NODE: case Node.DOCUMENT_FRAGMENT_NODE: case Node.DOCUMENT_TYPE_NODE: // type is unknown return null; case Node.ATTRIBUTE_NODE:{ if (this.ownerNode.getNodeType() == Node.ELEMENT_NODE) { return ownerNode.lookupNamespaceURI(prefix); } return null; } default:{ Node parent = this.getParentNode(); if (parent.getNodeType() == Node.ELEMENT_NODE) { // REVISIT: skip entity references return ((NodeImpl)parent).lookupNamespaceURI(prefix); } return null; } } }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/90d327f6b4eaebcda2c3c7be0cc05b3420eca0cb/NodeImpl.java/clean/src/org/apache/xerces/dom/NodeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3689,
3402,
3098,
12,
780,
1633,
13,
288,
3639,
3025,
618,
273,
333,
18,
588,
15101,
5621,
3639,
1620,
261,
723,
13,
288,
3639,
648,
2029,
18,
10976,
67,
8744,
294,
288,
2868,
327,
3689,
3402,
3098,
12,
3239,
16,
333,
1769,
3639,
289,
3639,
648,
2029,
18,
18450,
67,
8744,
294,
288,
5375,
327,
14015,
907,
2828,
13,
12443,
2519,
13,
2211,
2934,
588,
2519,
1046,
1435,
2934,
8664,
3402,
3098,
12,
3239,
1769,
3639,
289,
3639,
648,
2029,
18,
11101,
67,
8744,
294,
3639,
648,
2029,
18,
4400,
2689,
67,
8744,
30,
3639,
648,
2029,
18,
18450,
67,
9981,
26903,
67,
8744,
30,
3639,
648,
2029,
18,
18450,
67,
2399,
67,
8744,
30,
5411,
368,
618,
353,
5917,
5411,
327,
446,
31,
3639,
648,
2029,
18,
11616,
67,
8744,
18611,
5411,
309,
261,
2211,
18,
8443,
907,
18,
588,
15101,
1435,
422,
2029,
18,
10976,
67,
8744,
13,
288,
7734,
327,
3410,
907,
18,
8664,
3402,
3098,
12,
3239,
1769,
5411,
289,
5411,
327,
446,
31,
3639,
289,
3639,
805,
18611,
9079,
2029,
982,
273,
333,
18,
588,
3054,
907,
5621,
5411,
309,
261,
2938,
18,
588,
15101,
1435,
422,
2029,
18,
10976,
67,
8744,
13,
288,
7734,
368,
2438,
26780,
1285,
30,
2488,
1522,
5351,
7734,
327,
14015,
907,
2828,
13,
2938,
2934,
8664,
3402,
3098,
12,
3239,
1769,
5411,
289,
5411,
327,
446,
31,
3639,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3689,
3402,
3098,
12,
780,
1633,
13,
288,
3639,
3025,
618,
273,
333,
18,
588,
15101,
5621,
3639,
1620,
261,
723,
13,
288,
3639,
648,
2029,
18,
10976,
67,
8744,
294,
288,
2868,
327,
3689,
3402,
3098,
12,
3239,
16,
333,
1769,
3639,
289,
3639,
648,
2029,
18,
18450,
67,
8744,
294,
288,
5375,
327,
14015,
907,
2828,
13,
12443,
2519,
13,
2211,
2934,
588,
2519,
1046,
1435,
2934,
8664,
3402,
3098,
12,
3239,
1769,
3639,
289,
3639,
648,
2029,
18,
11101,
67,
8744,
294,
3639,
648,
2029,
18,
4400,
2689,
67,
8744,
30,
3639,
648,
2029,
18,
18450,
67,
9981,
26903,
67,
8744,
30,
3639,
648,
2029,
18,
18450,
67,
2399,
67,
8744,
30,
5411,
2
] |
|
String[] typeElements= Bindings.getNameComponents(type); IJavaElement element= scope.findElement(getPathToCompilationUnit(type.getPackage(), typeElements[0])); IType candidate= null; if (element instanceof ICompilationUnit) { candidate= JavaModelUtil.toWorkingCopy((ICompilationUnit)element).getType(typeElements[0]); } else if (element instanceof IClassFile) { candidate= ((IClassFile)element).getType(); } else if (element == null){ if (type.isMember()) candidate= JavaModelUtil.findType(scope, Bindings.getFullyQualifiedImportName(type.getDeclaringClass())); else candidate= JavaModelUtil.findType(scope, Bindings.getFullyQualifiedImportName(type)); } if (candidate == null || typeElements.length == 1) return candidate; return findTypeInType(typeElements, candidate);
|
IType declaringClass = find(declaringClassBinding, in); if (declaringClass == null) return null; IField foundField= declaringClass.getField(field.getName()); if (! foundField.exists()) return null; return foundField;
|
public static IType find(ITypeBinding type, IJavaProject scope) throws JavaModelException { if (type.isPrimitive()) return null; String[] typeElements= Bindings.getNameComponents(type); IJavaElement element= scope.findElement(getPathToCompilationUnit(type.getPackage(), typeElements[0])); IType candidate= null; if (element instanceof ICompilationUnit) { candidate= JavaModelUtil.toWorkingCopy((ICompilationUnit)element).getType(typeElements[0]); } else if (element instanceof IClassFile) { candidate= ((IClassFile)element).getType(); } else if (element == null){ if (type.isMember()) candidate= JavaModelUtil.findType(scope, Bindings.getFullyQualifiedImportName(type.getDeclaringClass())); else candidate= JavaModelUtil.findType(scope, Bindings.getFullyQualifiedImportName(type)); } if (candidate == null || typeElements.length == 1) return candidate; return findTypeInType(typeElements, candidate); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/0a6bfd6ada6ab1c8194d19fc76b5f58061673b18/Binding2JavaModel.java/buggy/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/Binding2JavaModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
559,
1104,
12,
45,
559,
5250,
618,
16,
467,
5852,
4109,
2146,
13,
1216,
5110,
1488,
503,
288,
202,
202,
430,
261,
723,
18,
291,
9840,
10756,
1082,
202,
2463,
446,
31,
202,
202,
780,
8526,
618,
3471,
33,
6936,
899,
18,
17994,
7171,
12,
723,
1769,
202,
202,
45,
5852,
1046,
930,
33,
2146,
18,
4720,
1046,
12,
588,
743,
774,
19184,
2802,
12,
723,
18,
588,
2261,
9334,
618,
3471,
63,
20,
5717,
1769,
202,
202,
45,
559,
5500,
33,
446,
31,
202,
202,
430,
261,
2956,
1276,
467,
19184,
2802,
13,
288,
1082,
202,
19188,
33,
5110,
1488,
1304,
18,
869,
14836,
2951,
12443,
45,
19184,
2802,
13,
2956,
2934,
588,
559,
12,
723,
3471,
63,
20,
19226,
202,
202,
97,
469,
309,
261,
2956,
1276,
467,
797,
812,
13,
288,
1082,
202,
19188,
33,
14015,
45,
797,
812,
13,
2956,
2934,
588,
559,
5621,
202,
202,
97,
469,
309,
261,
2956,
422,
446,
15329,
1082,
202,
430,
261,
723,
18,
291,
4419,
10756,
9506,
202,
19188,
33,
5110,
1488,
1304,
18,
4720,
559,
12,
4887,
16,
6936,
899,
18,
588,
16999,
8708,
5010,
461,
12,
723,
18,
588,
3456,
14682,
1435,
10019,
1082,
202,
12107,
9506,
202,
19188,
33,
5110,
1488,
1304,
18,
4720,
559,
12,
4887,
16,
6936,
899,
18,
588,
16999,
8708,
5010,
461,
12,
723,
10019,
202,
202,
97,
9506,
202,
430,
261,
19188,
422,
446,
747,
618,
3471,
18,
2469,
422,
404,
13,
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,
760,
467,
559,
1104,
12,
45,
559,
5250,
618,
16,
467,
5852,
4109,
2146,
13,
1216,
5110,
1488,
503,
288,
202,
202,
430,
261,
723,
18,
291,
9840,
10756,
1082,
202,
2463,
446,
31,
202,
202,
780,
8526,
618,
3471,
33,
6936,
899,
18,
17994,
7171,
12,
723,
1769,
202,
202,
45,
5852,
1046,
930,
33,
2146,
18,
4720,
1046,
12,
588,
743,
774,
19184,
2802,
12,
723,
18,
588,
2261,
9334,
618,
3471,
63,
20,
5717,
1769,
202,
202,
45,
559,
5500,
33,
446,
31,
202,
202,
430,
261,
2956,
1276,
467,
19184,
2802,
13,
288,
1082,
202,
19188,
33,
5110,
1488,
1304,
18,
869,
14836,
2951,
12443,
45,
19184,
2802,
13,
2956,
2934,
588,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.