rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
getContext().warn( "setShort( " + value + " );" );
|
getContext().info( "setShort( " + value + " );" );
|
public void setShort( final Short value ) { getContext().warn( "setShort( " + value + " );" ); }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/04b605647f2971d41d5949facdb9760019a51acb/PrimitiveTypesTest.java/clean/proposal/myrmidon/src/java/org/apache/antlib/selftest/PrimitiveTypesTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4897,
12,
727,
7925,
460,
262,
565,
288,
3639,
6474,
7675,
1376,
12,
315,
542,
4897,
12,
315,
397,
460,
397,
315,
262,
4868,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4897,
12,
727,
7925,
460,
262,
565,
288,
3639,
6474,
7675,
1376,
12,
315,
542,
4897,
12,
315,
397,
460,
397,
315,
262,
4868,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
toolkit.lockAWT(); try { return null; } finally { toolkit.unlockAWT(); }
|
return null;
|
public InputMethodRequests getInputMethodRequests() { toolkit.lockAWT(); try { return null; } finally { toolkit.unlockAWT(); } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9b00f971bab2256d913aec1b141462a929f6e182/Component.java/buggy/modules/awt/src/main/java/common/java/awt/Component.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2741,
1305,
6421,
12353,
1305,
6421,
1435,
288,
3639,
5226,
8691,
18,
739,
37,
8588,
5621,
3639,
775,
288,
5411,
327,
446,
31,
3639,
289,
3095,
288,
5411,
5226,
8691,
18,
26226,
37,
8588,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2741,
1305,
6421,
12353,
1305,
6421,
1435,
288,
3639,
5226,
8691,
18,
739,
37,
8588,
5621,
3639,
775,
288,
5411,
327,
446,
31,
3639,
289,
3095,
288,
5411,
5226,
8691,
18,
26226,
37,
8588,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 boolean isCombinable(double d){ return MesquiteDouble.isCombinable(d);
|
public boolean isCombinable(){ for (int i=0; i<numItems; i++) if (MesquiteDouble.isCombinable(values[i])) return true; return false;
|
public static boolean isCombinable(double d){ return MesquiteDouble.isCombinable(d); }
|
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/88e3c75ba71c7c3e23478b1c3ff126ef3c6fe3ab/ContinuousState.java/buggy/branches/Mesquite1.x/Mesquite Project/Source/mesquite/cont/lib/ContinuousState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
353,
24107,
429,
12,
9056,
302,
15329,
202,
202,
2463,
490,
281,
372,
1137,
5265,
18,
291,
24107,
429,
12,
72,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
353,
24107,
429,
12,
9056,
302,
15329,
202,
202,
2463,
490,
281,
372,
1137,
5265,
18,
291,
24107,
429,
12,
72,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MenuItem newItem = new MenuItem(parent, SWT.PUSH, index); newItem.setData(this); newItem.setEnabled(isEnabled()); String text = label; if (mnemonic != null) { } newItem.setText(text); if (icon != null) { LocalResourceManager m = new LocalResourceManager(JFaceResources .getResources()); newItem.setImage(icon == null ? null : m.createImage(icon)); disposeOldImages(); localResourceManager = m;
|
if (widget != null || parent == null) { return;
|
public void fill(Menu parent, int index) { if (command == null) { return; } MenuItem newItem = new MenuItem(parent, SWT.PUSH, index); newItem.setData(this); newItem.setEnabled(isEnabled()); String text = label; if (mnemonic != null) { // convert label to have mnemonic } newItem.setText(text); if (icon != null) { LocalResourceManager m = new LocalResourceManager(JFaceResources .getResources()); newItem.setImage(icon == null ? null : m.createImage(icon)); disposeOldImages(); localResourceManager = m; } newItem.addListener(SWT.Dispose, getItemListener()); newItem.addListener(SWT.Selection, getItemListener()); widget = newItem; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e84e7542be845f078b8e4aade9254de24aa21b6a/CommandContributionItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/menus/CommandContributionItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
202,
202,
430,
261,
3076,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
12958,
26536,
273,
394,
25085,
12,
2938,
16,
348,
8588,
18,
30348,
16,
770,
1769,
202,
202,
2704,
1180,
18,
542,
751,
12,
2211,
1769,
202,
202,
2704,
1180,
18,
542,
1526,
12,
291,
1526,
10663,
202,
202,
780,
977,
273,
1433,
31,
202,
202,
430,
261,
13607,
20918,
480,
446,
13,
288,
1082,
202,
759,
1765,
1433,
358,
1240,
12883,
20918,
202,
202,
97,
202,
202,
2704,
1180,
18,
542,
1528,
12,
955,
1769,
202,
202,
430,
261,
3950,
480,
446,
13,
288,
1082,
202,
2042,
1420,
1318,
312,
273,
394,
3566,
1420,
1318,
12,
46,
11824,
3805,
6862,
202,
18,
588,
3805,
10663,
1082,
202,
2704,
1180,
18,
542,
2040,
12,
3950,
422,
446,
692,
446,
294,
312,
18,
2640,
2040,
12,
3950,
10019,
1082,
202,
2251,
4150,
7617,
8946,
5621,
1082,
202,
3729,
1420,
1318,
273,
312,
31,
202,
202,
97,
202,
202,
2704,
1180,
18,
1289,
2223,
12,
55,
8588,
18,
1669,
4150,
16,
8143,
2223,
10663,
202,
202,
2704,
1180,
18,
1289,
2223,
12,
55,
8588,
18,
6233,
16,
8143,
2223,
10663,
202,
202,
6587,
273,
26536,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
202,
202,
430,
261,
3076,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
12958,
26536,
273,
394,
25085,
12,
2938,
16,
348,
8588,
18,
30348,
16,
770,
1769,
202,
202,
2704,
1180,
18,
542,
751,
12,
2211,
1769,
202,
202,
2704,
1180,
18,
542,
1526,
12,
291,
1526,
10663,
202,
202,
780,
977,
273,
1433,
31,
202,
202,
430,
261,
13607,
20918,
480,
446,
13,
288,
1082,
202,
759,
1765,
1433,
358,
1240,
12883,
20918,
202,
202,
97,
202,
202,
2704,
1180,
18,
542,
1528,
12,
955,
1769,
202,
202,
430,
261,
3950,
480,
446,
13,
288,
1082,
202,
2042,
1420,
2
] |
public Enumeration elements()
|
public Enumeration elements()
|
newPermissionCollection(){ return new PermissionCollection() { Hashtable permissions = new Hashtable(); boolean allAllowed = false; public void add(Permission permission) { if (isReadOnly()) throw new IllegalStateException("readonly"); BasicPermission bp = (BasicPermission) permission; String name = bp.getName(); if (name.equals("*")) allAllowed = true; permissions.put(name, bp); } public boolean implies(Permission permission) { if (!(permission instanceof BasicPermission)) return false; if (allAllowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength = name.length(); if (name.endsWith("*")) prefixLength -= 2; while (true) { if (permissions.get(name) != null) return true; prefixLength = name.lastIndexOf('.', prefixLength); if (prefixLength < 0) return false; name = name.substring(0, prefixLength + 1) + '*'; } } public Enumeration elements() { return permissions.elements(); } };}
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/929d12f9c1cf27322f4228118023127504d9e8ac/BasicPermission.java/buggy/java/security/BasicPermission.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
394,
5041,
2532,
1435,
95,
225,
327,
394,
8509,
2532,
1435,
377,
288,
1377,
18559,
4371,
273,
394,
18559,
5621,
1377,
1250,
777,
5042,
273,
629,
31,
5411,
1071,
918,
527,
12,
5041,
4132,
13,
225,
202,
95,
202,
225,
309,
261,
291,
12066,
10756,
202,
565,
604,
394,
5477,
2932,
16365,
8863,
202,
225,
7651,
5041,
9107,
273,
261,
8252,
5041,
13,
4132,
31,
202,
225,
514,
508,
273,
9107,
18,
17994,
5621,
202,
225,
309,
261,
529,
18,
14963,
2932,
7388,
3719,
202,
565,
777,
5042,
273,
638,
31,
202,
225,
4371,
18,
458,
12,
529,
16,
9107,
1769,
202,
97,
5411,
1071,
1250,
24168,
12,
5041,
4132,
13,
202,
95,
202,
565,
309,
16051,
12,
9827,
1276,
7651,
5041,
3719,
202,
1377,
327,
629,
31,
202,
377,
202,
565,
309,
261,
454,
5042,
13,
202,
1377,
327,
638,
31,
202,
565,
7651,
5041,
358,
1170,
1283,
273,
261,
8252,
5041,
13,
4132,
31,
202,
565,
514,
508,
273,
358,
1170,
1283,
18,
17994,
5621,
202,
565,
309,
261,
529,
18,
14963,
2932,
7388,
3719,
202,
1377,
327,
629,
31,
202,
565,
509,
31106,
273,
508,
18,
2469,
5621,
202,
565,
309,
261,
529,
18,
5839,
1190,
2932,
7388,
3719,
202,
1377,
31106,
3947,
576,
31,
202,
565,
1323,
261,
3767,
13,
288,
202,
1377,
309,
261,
9612,
18,
588,
12,
529,
13,
480,
446,
13,
202,
202,
2463,
638,
31,
202,
4202,
202,
1377,
31106,
273,
508,
18,
2722,
31985,
2668,
1093,
16,
31106,
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,
394,
5041,
2532,
1435,
95,
225,
327,
394,
8509,
2532,
1435,
377,
288,
1377,
18559,
4371,
273,
394,
18559,
5621,
1377,
1250,
777,
5042,
273,
629,
31,
5411,
1071,
918,
527,
12,
5041,
4132,
13,
225,
202,
95,
202,
225,
309,
261,
291,
12066,
10756,
202,
565,
604,
394,
5477,
2932,
16365,
8863,
202,
225,
7651,
5041,
9107,
273,
261,
8252,
5041,
13,
4132,
31,
202,
225,
514,
508,
273,
9107,
18,
17994,
5621,
202,
225,
309,
261,
529,
18,
14963,
2932,
7388,
3719,
202,
565,
777,
5042,
273,
638,
31,
202,
225,
4371,
18,
458,
12,
529,
16,
9107,
1769,
202,
97,
5411,
1071,
1250,
24168,
12,
5041,
4132,
13,
202,
95,
202,
565,
309,
16051,
12,
9827,
2
] |
selenium.windowMaximize("");
|
selenium.windowMaximize("title=Google"); selenium.windowMaximize("title=exact:Google"); selenium.windowMaximize("title=regexp:Google"); selenium.windowMaximize("title=glob:Google");
|
public void testGoogleTestSearch() throws Throwable { selenium.open("http://www.google.com/webhp"); String[] windowNames = selenium.getAllWindowNames(); for (String windowName : windowNames) { System.out.println("Window Name: " + windowName); } String[] windowIds = selenium.getAllWindowIds(); for (String windowId : windowIds) { System.out.println("Window Id: " + windowId); } String[] windowTitles = selenium.getAllWindowTitles(); for (String windowTitle : windowTitles) { System.out.println("Window Title: " + windowTitle); } selenium.windowFocus(""); selenium.windowMaximize(""); selenium.windowMaximize("regexp:"); selenium.windowMaximize("regexp:.*"); assertEquals("Google", selenium.getTitle()); selenium.type("q", "Selenium OpenQA"); assertEquals("Selenium OpenQA", selenium.getValue("q")); String s = selenium.getLogMessages(); System.out.println("The log messages are the following:\n" + s); selenium.click("btnG"); selenium.waitForPageToLoad("5000"); assertTrue(selenium.isTextPresent("glob:http://www.openqa.org")); assertTrue(selenium.isTextPresent("exact:http://www.openqa.org")); assertTrue(selenium.isTextPresent("regexp:http://www.openqa.org")); assertTrue(selenium.isTextPresent("http://www.openqa.org")); assertEquals("Selenium OpenQA - Google Search", selenium.getTitle()); }
|
50930 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50930/7e8351c16566e48a0ae1fc03c097b37ecc73f8ea/GoogleTest.java/clean/clients/java/src/test/java/com/thoughtworks/selenium/GoogleTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
9639,
4709,
2979,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
3190,
2932,
2505,
2207,
5591,
18,
9536,
18,
832,
19,
4875,
15373,
8863,
3639,
514,
8526,
2742,
1557,
273,
29480,
18,
588,
1595,
3829,
1557,
5621,
3639,
364,
261,
780,
2742,
461,
294,
2742,
1557,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3829,
1770,
30,
315,
397,
2742,
461,
1769,
3639,
289,
3639,
514,
8526,
2742,
2673,
273,
29480,
18,
588,
1595,
3829,
2673,
5621,
3639,
364,
261,
780,
2742,
548,
294,
2742,
2673,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3829,
3124,
30,
315,
397,
2742,
548,
1769,
3639,
289,
3639,
514,
8526,
2742,
25088,
273,
29480,
18,
588,
1595,
3829,
25088,
5621,
3639,
364,
261,
780,
2742,
4247,
294,
2742,
25088,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3829,
10984,
30,
315,
397,
2742,
4247,
1769,
3639,
289,
3639,
29480,
18,
5668,
9233,
2932,
8863,
3639,
29480,
18,
5668,
2747,
10153,
2932,
2649,
33,
9639,
8863,
29480,
18,
5668,
2747,
10153,
2932,
2649,
33,
17165,
30,
9639,
8863,
29480,
18,
5668,
2747,
10153,
2932,
2649,
33,
17745,
30,
9639,
8863,
29480,
18,
5668,
2747,
10153,
2932,
2649,
33,
10581,
30,
9639,
8863,
3639,
29480,
18,
5668,
2747,
10153,
2932,
17745,
2773,
1769,
3639,
29480,
18,
5668,
2747,
10153,
2932,
17745,
30,
4509,
8863,
3639,
1815,
8867,
2932,
9639,
3113,
29480,
18,
588,
4247,
10663,
202,
202,
1786,
17327,
18,
723,
2932,
85,
3113,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
9639,
4709,
2979,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
3190,
2932,
2505,
2207,
5591,
18,
9536,
18,
832,
19,
4875,
15373,
8863,
3639,
514,
8526,
2742,
1557,
273,
29480,
18,
588,
1595,
3829,
1557,
5621,
3639,
364,
261,
780,
2742,
461,
294,
2742,
1557,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3829,
1770,
30,
315,
397,
2742,
461,
1769,
3639,
289,
3639,
514,
8526,
2742,
2673,
273,
29480,
18,
588,
1595,
3829,
2673,
5621,
3639,
364,
261,
780,
2742,
548,
294,
2742,
2673,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3829,
3124,
30,
315,
397,
2742,
548,
1769,
3639,
289,
3639,
514,
8526,
2742,
25088,
273,
29480,
18,
2
] |
traceIn("numericLiteral"); try { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST numericLiteral_AST = null; switch ( LA(1)) { case DOUBLE_LITERAL: { org.exist.xquery.parser.XQueryAST tmp268_AST = null; tmp268_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp268_AST); match(DOUBLE_LITERAL); numericLiteral_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case DECIMAL_LITERAL: { org.exist.xquery.parser.XQueryAST tmp269_AST = null; tmp269_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp269_AST); match(DECIMAL_LITERAL); numericLiteral_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case INTEGER_LITERAL: { org.exist.xquery.parser.XQueryAST tmp270_AST = null; tmp270_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp270_AST); match(INTEGER_LITERAL); numericLiteral_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = numericLiteral_AST; } finally { traceOut("numericLiteral");
|
returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST numericLiteral_AST = null; switch ( LA(1)) { case DOUBLE_LITERAL: { org.exist.xquery.parser.XQueryAST tmp268_AST = null; tmp268_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp268_AST); match(DOUBLE_LITERAL); numericLiteral_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break;
|
public final void numericLiteral() throws RecognitionException, TokenStreamException { traceIn("numericLiteral"); try { // debugging returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST numericLiteral_AST = null; switch ( LA(1)) { case DOUBLE_LITERAL: { org.exist.xquery.parser.XQueryAST tmp268_AST = null; tmp268_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp268_AST); match(DOUBLE_LITERAL); numericLiteral_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case DECIMAL_LITERAL: { org.exist.xquery.parser.XQueryAST tmp269_AST = null; tmp269_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp269_AST); match(DECIMAL_LITERAL); numericLiteral_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case INTEGER_LITERAL: { org.exist.xquery.parser.XQueryAST tmp270_AST = null; tmp270_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp270_AST); match(INTEGER_LITERAL); numericLiteral_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = numericLiteral_AST; } finally { // debugging traceOut("numericLiteral"); } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/036ccdd3fe4cdde6cf0f24f284e57caec99eaa4a/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
6389,
6177,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
5129,
382,
2932,
5246,
6177,
8863,
202,
202,
698,
288,
368,
10450,
1082,
202,
2463,
9053,
273,
446,
31,
1082,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
6389,
6177,
67,
9053,
273,
446,
31,
25083,
202,
9610,
261,
2928,
12,
21,
3719,
288,
1082,
202,
3593,
14918,
67,
23225,
30,
1082,
202,
95,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
5558,
28,
67,
9053,
273,
446,
31,
9506,
202,
5645,
5558,
28,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
689,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
9506,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
5558,
28,
67,
9053,
1769,
9506,
202,
1916,
12,
17088,
67,
23225,
1769,
9506,
202,
5246,
6177,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
2972,
9053,
18,
3085,
31,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
25429,
67,
23225,
30,
1082,
202,
95,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
5558,
29,
67,
9053,
273,
446,
31,
9506,
202,
5645,
5558,
29,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
6389,
6177,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
5129,
382,
2932,
5246,
6177,
8863,
202,
202,
698,
288,
368,
10450,
1082,
202,
2463,
9053,
273,
446,
31,
1082,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
6389,
6177,
67,
9053,
273,
446,
31,
25083,
202,
9610,
261,
2928,
12,
21,
3719,
288,
1082,
202,
3593,
14918,
67,
23225,
30,
1082,
202,
95,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
5558,
28,
67,
9053,
273,
446,
31,
9506,
202,
5645,
5558,
28,
67,
9053,
273,
261,
3341,
2
] |
pilotRoll.append(roll);
|
if (roll != null) { pilotRoll.append(roll); }
|
private void doEntityDisplacement(Entity entity, Coords src, Coords dest, PilotingRollData roll) { final Hex srcHex = game.board.getHex(src); final Hex destHex = game.board.getHex(dest); final int direction = src.direction(dest); int fallElevation = srcHex.floor() - destHex.floor(); Entity target = game.getEntity(dest); // can't fall upwards if (fallElevation < 0) { fallElevation = 0; } // if destination is empty, this could be easy... if (target == null || target.equals(entity)) { if (fallElevation < 2) { // no cliff: move and roll normally phaseReport.append(entity.getDisplayName() + " is displaced into hex " + dest.getBoardNum() + ".\n"); entity.setPosition(dest); if (roll != null) { pilotRolls.addElement(roll); } return; } else { // cliff: fall off it, deal damage, prone immediately phaseReport.append(entity.getDisplayName() + " falls " + fallElevation + " levels into hex " + dest.getBoardNum() + ".\n"); // only given a modifier, so flesh out into a full piloting roll PilotingRollData pilotRoll = Compute.getBasePilotingRoll(game, entity.getId()); pilotRoll.append(roll); doEntityFall(entity, dest, fallElevation, pilotRoll); return; } } // okay, destination occupied. hmmm... System.err.println("server.doEntityDisplacement: destination occupied"); if (fallElevation < 2) { // domino effect: move & displace target phaseReport.append(entity.getDisplayName() + " is displaced into hex " + dest.getBoardNum() + ", occupied by " + target.getDisplayName() + ".\n"); entity.setPosition(dest); if (roll != null) { pilotRolls.addElement(roll); } doEntityDisplacement(target, dest, dest.translated(direction), new PilotingRollData(target.getId(), 0, "domino effect")); return; } else { // accidental fall from above: havoc! phaseReport.append(entity.getDisplayName() + " falls " + fallElevation + " levels into hex " + dest.getBoardNum() + ", occupied by " + target.getDisplayName() + ".\n"); // determine to-hit number ToHitData toHit = new ToHitData(7, "base"); toHit.append(Compute.getTargetMovementModifier(game, target.getId())); toHit.append(Compute.getTargetTerrainModifier(game, target.getId())); // roll dice final int diceRoll = Compute.d6(2); phaseReport.append("Collision occurs on a " + toHit.getValue() + " or greater. Rolls " + diceRoll); if (diceRoll >= toHit.getValue()) { phaseReport.append(", hits!\n"); // deal damage to target int damage = (int)Math.ceil(entity.getWeight() / 10); phaseReport.append(target.getDisplayName() + " takes " + damage + " from the collision."); while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_PUNCH, ToHitData.SIDE_FRONT); phaseReport.append(damageEntity(target, hit, cluster)); damage -= cluster; } phaseReport.append("\n"); // attacker falls as normal, on his back // only given a modifier, so flesh out into a full piloting roll PilotingRollData pilotRoll = Compute.getBasePilotingRoll(game, entity.getId()); pilotRoll.append(roll); doEntityFall(entity, dest, fallElevation, 3, pilotRoll); // defender pushed away, or destroyed Coords targetDest = Compute.getValidDisplacement(game, target.getId(), dest, direction); if (targetDest != null) { doEntityDisplacement(target, dest, targetDest, new PilotingRollData(target.getId(), 2, "fallen on")); } else { // ack! automatic death! phaseReport.append("*** " + target.getDisplayName() + " DESTROYED due to impossible displacement! ***"); target.setDoomed(true); } } else { phaseReport.append(", misses.\n"); //TODO: this is not quite how the rules go Coords targetDest = Compute.getValidDisplacement(game, entity.getId(), dest, direction); if (targetDest != null) { doEntityDisplacement(entity, src, targetDest, new PilotingRollData(entity.getId(), PilotingRollData.IMPOSSIBLE, "pushed off a cliff")); } else { // ack! automatic death! phaseReport.append("*** " + entity.getDisplayName() + " DESTROYED due to impossible displacement! ***"); entity.setDoomed(true); } } return; } }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/2d19f4af98307bbebf3a2ddf05fde4ca2a94f301/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
1943,
1669,
15917,
12,
1943,
1522,
16,
10320,
87,
1705,
16,
10320,
87,
1570,
16,
4766,
1377,
453,
330,
17128,
24194,
751,
5824,
13,
288,
3639,
727,
15734,
1705,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
4816,
1769,
3639,
727,
15734,
1570,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
10488,
1769,
3639,
727,
509,
4068,
273,
1705,
18,
9855,
12,
10488,
1769,
3639,
509,
4159,
17274,
7112,
273,
1705,
7037,
18,
74,
5807,
1435,
300,
1570,
7037,
18,
74,
5807,
5621,
3639,
3887,
1018,
273,
7920,
18,
588,
1943,
12,
10488,
1769,
3639,
368,
848,
1404,
4159,
731,
6397,
3639,
309,
261,
25602,
17274,
7112,
411,
374,
13,
288,
5411,
4159,
17274,
7112,
273,
374,
31,
3639,
289,
3639,
368,
309,
2929,
353,
1008,
16,
333,
3377,
506,
12779,
2777,
3639,
309,
261,
3299,
422,
446,
747,
1018,
18,
14963,
12,
1096,
3719,
288,
5411,
309,
261,
25602,
17274,
7112,
411,
576,
13,
288,
7734,
368,
1158,
927,
3048,
30,
3635,
471,
5824,
15849,
7734,
6855,
4820,
18,
6923,
12,
1096,
18,
588,
20524,
1435,
21821,
397,
315,
353,
1015,
28238,
1368,
3827,
315,
21821,
397,
1570,
18,
588,
22233,
2578,
1435,
397,
3552,
64,
82,
8863,
7734,
1522,
18,
542,
2555,
12,
10488,
1769,
7734,
309,
261,
2693,
480,
446,
13,
288,
10792,
293,
22797,
4984,
3251,
18,
1289,
1046,
12,
2693,
1769,
7734,
289,
7734,
327,
31,
5411,
289,
469,
288,
7734,
368,
927,
3048,
30,
4159,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
1943,
1669,
15917,
12,
1943,
1522,
16,
10320,
87,
1705,
16,
10320,
87,
1570,
16,
4766,
1377,
453,
330,
17128,
24194,
751,
5824,
13,
288,
3639,
727,
15734,
1705,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
4816,
1769,
3639,
727,
15734,
1570,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
10488,
1769,
3639,
727,
509,
4068,
273,
1705,
18,
9855,
12,
10488,
1769,
3639,
509,
4159,
17274,
7112,
273,
1705,
7037,
18,
74,
5807,
1435,
300,
1570,
7037,
18,
74,
5807,
5621,
3639,
3887,
1018,
273,
7920,
18,
588,
1943,
12,
10488,
1769,
3639,
368,
848,
1404,
4159,
731,
6397,
3639,
309,
261,
25602,
17274,
7112,
411,
374,
13,
288,
5411,
4159,
2
] |
Object rawValue = NSPropertyListSerialization .propertyListFromString(string); if (rawValue instanceof NSArray) {
|
Object rawValue = NSPropertyListSerialization.propertyListFromString(string); if(rawValue instanceof NSArray) {
|
public static NSDictionary primaryKeyDictionaryForString( EOEditingContext ec, String entityName, String string) { if (string == null) return null; if (string.trim().length() == 0) { return NSDictionary.EmptyDictionary; } EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, entityName); NSArray pks = entity.primaryKeyAttributes(); NSMutableDictionary pk = new NSMutableDictionary(); try { Object rawValue = NSPropertyListSerialization .propertyListFromString(string); if (rawValue instanceof NSArray) { int index = 0; for (Enumeration e = ((NSArray) rawValue).objectEnumerator(); e .hasMoreElements();) { EOAttribute attribute = (EOAttribute) pks .objectAtIndex(index++); Object value = e.nextElement(); if (attribute.adaptorValueType() == EOAttribute.AdaptorDateType && !(value instanceof NSTimestamp)) { value = new NSTimestampFormatter("%Y-%m-%d %H:%M:%S %Z") .parseObject((String) value); } value = attribute.validateValue(value); pk.setObjectForKey(value, attribute.name()); if (pks.count() == 1) { break; } } } else { EOAttribute attribute = (EOAttribute) pks.objectAtIndex(0); Object value = rawValue; value = attribute.validateValue(value); pk.setObjectForKey(value, attribute.name()); } return pk; } catch (Exception ex) { throw new NSForwardException(ex, "Error while parsing primary key: " + string); } }
|
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/34bd76e4415f130e75e7bb5959a34935299de2cf/ERXEOControlUtilities.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEOControlUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
423,
9903,
3192,
8841,
10905,
1290,
780,
12,
5411,
512,
51,
28029,
1042,
6557,
16,
514,
14868,
16,
514,
533,
13,
288,
3639,
309,
261,
1080,
422,
446,
13,
327,
446,
31,
3639,
309,
261,
1080,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
288,
327,
423,
9903,
3192,
18,
1921,
10905,
31,
289,
3639,
512,
51,
1943,
1522,
273,
4232,
60,
41,
51,
1862,
11864,
18,
1096,
7604,
12,
557,
16,
14868,
1769,
3639,
11472,
1076,
24871,
273,
1522,
18,
8258,
653,
2498,
5621,
3639,
423,
7303,
3050,
10905,
2365,
273,
394,
423,
7303,
3050,
10905,
5621,
3639,
775,
288,
5411,
1033,
22539,
273,
11472,
1396,
682,
16764,
10792,
263,
4468,
682,
9193,
12,
1080,
1769,
5411,
309,
261,
1899,
620,
1276,
11472,
1076,
13,
288,
7734,
509,
770,
273,
374,
31,
7734,
364,
261,
21847,
425,
273,
14015,
3156,
1076,
13,
22539,
2934,
1612,
3572,
7385,
5621,
425,
13491,
263,
5332,
7417,
3471,
5621,
13,
288,
10792,
512,
51,
1499,
1566,
273,
261,
41,
51,
1499,
13,
24871,
18701,
263,
1612,
24499,
12,
1615,
9904,
1769,
10792,
1033,
460,
273,
425,
18,
4285,
1046,
5621,
10792,
309,
261,
4589,
18,
19195,
280,
17930,
1435,
422,
512,
51,
1499,
18,
29888,
1626,
559,
18701,
597,
401,
12,
1132,
1276,
423,
882,
2796,
3719,
288,
13491,
460,
273,
394,
423,
882,
2796,
5074,
27188,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
738,
62,
7923,
27573,
263,
2670,
921,
12443,
780,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
423,
9903,
3192,
8841,
10905,
1290,
780,
12,
5411,
512,
51,
28029,
1042,
6557,
16,
514,
14868,
16,
514,
533,
13,
288,
3639,
309,
261,
1080,
422,
446,
13,
327,
446,
31,
3639,
309,
261,
1080,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
288,
327,
423,
9903,
3192,
18,
1921,
10905,
31,
289,
3639,
512,
51,
1943,
1522,
273,
4232,
60,
41,
51,
1862,
11864,
18,
1096,
7604,
12,
557,
16,
14868,
1769,
3639,
11472,
1076,
24871,
273,
1522,
18,
8258,
653,
2498,
5621,
3639,
423,
7303,
3050,
10905,
2365,
273,
394,
423,
7303,
3050,
10905,
5621,
3639,
775,
288,
5411,
1033,
22539,
273,
11472,
1396,
682,
16764,
10792,
263,
4468,
682,
9193,
12,
1080,
2
] |
logger.debug("Constructed authentication packet: " + byteArrayToString(msg));
|
logger.debug("Constructed authentication packet: " + byteArrayToDecString(msg));
|
public boolean startAuthenticationWith(int remoteRelateId, byte[] nonce, byte[] rfMessage, int rounds, int bitsPerRound, int referenceMeasurement) { if (nonce.length != 16 || rfMessage.length != 16 || rounds < 2 || rounds > 255 || remoteRelateId < 0 || remoteRelateId > 255 || bitsPerRound < 1 || referenceMeasurement > 2500) { logger.fatal("ERROR in parameters while constructing start-of-auth packet!"); // TODO: this should actually be an exception, since this is a sanity check for something that shouldn't happen return false; } byte msg[] = new byte[38]; int ind=0; boolean ret = false; msg[ind++] = AUTHENTICATION_START_SIGN; msg[ind++] = (byte) remoteRelateId; System.arraycopy(nonce, 0, msg, ind, nonce.length); ind += nonce.length; System.arraycopy(rfMessage, 0, msg, ind, rfMessage.length); ind += rfMessage.length; msg[ind++] = (byte) rounds; msg[ind++] = (byte) bitsPerRound; msg[ind++] = (byte) (referenceMeasurement >> 8); msg[ind++] = (byte) (referenceMeasurement & 0xff); logger.debug("Constructed authentication packet: " + byteArrayToString(msg)); // before sending a message to the dongle, need to suspend the reading thread setMonitoring(false); try { ret = commHelper.sendMessage(msg, MAXIMUM_TIMEOUT); } catch (PortInUseException e) { return false; } catch (IOException e) { return false; } // start the reading again setMonitoring(true); return ret; }
|
14316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14316/e31b9d8dbd396cf0c255032c6791e38006a88287/SerialConnector.java/buggy/src/java/RelateAuthentication/src/uk/ac/lancs/relate/SerialConnector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
787,
6492,
1190,
12,
474,
2632,
1971,
340,
548,
16,
1160,
8526,
7448,
16,
1160,
8526,
9075,
1079,
16,
509,
21196,
16,
509,
4125,
2173,
11066,
16,
509,
2114,
17933,
13,
288,
202,
202,
430,
261,
12824,
18,
2469,
480,
2872,
747,
9075,
1079,
18,
2469,
480,
2872,
747,
21196,
411,
576,
747,
21196,
405,
4561,
4697,
202,
20081,
2632,
1971,
340,
548,
411,
374,
747,
2632,
1971,
340,
548,
405,
4561,
747,
4125,
2173,
11066,
411,
404,
4697,
202,
20081,
2114,
17933,
405,
6969,
713,
13,
288,
1082,
202,
4901,
18,
30709,
2932,
3589,
316,
1472,
1323,
27389,
787,
17,
792,
17,
1944,
4414,
4442,
1769,
1082,
202,
759,
2660,
30,
333,
1410,
6013,
506,
392,
1520,
16,
3241,
333,
353,
279,
16267,
866,
364,
5943,
716,
12044,
1404,
5865,
1082,
202,
2463,
629,
31,
202,
202,
97,
9506,
202,
7229,
1234,
8526,
273,
394,
1160,
63,
7414,
15533,
202,
202,
474,
1547,
33,
20,
31,
202,
202,
6494,
325,
273,
629,
31,
9506,
202,
3576,
63,
728,
9904,
65,
273,
12790,
18915,
2689,
67,
7570,
67,
11260,
31,
202,
202,
3576,
63,
728,
9904,
65,
273,
261,
7229,
13,
2632,
1971,
340,
548,
31,
202,
202,
3163,
18,
1126,
3530,
12,
12824,
16,
374,
16,
1234,
16,
1547,
16,
7448,
18,
2469,
1769,
1547,
1011,
7448,
18,
2469,
31,
202,
202,
3163,
18,
1126,
3530,
12,
5809,
1079,
16,
374,
16,
1234,
16,
1547,
16,
9075,
1079,
18,
2469,
1769,
1547,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
787,
6492,
1190,
12,
474,
2632,
1971,
340,
548,
16,
1160,
8526,
7448,
16,
1160,
8526,
9075,
1079,
16,
509,
21196,
16,
509,
4125,
2173,
11066,
16,
509,
2114,
17933,
13,
288,
202,
202,
430,
261,
12824,
18,
2469,
480,
2872,
747,
9075,
1079,
18,
2469,
480,
2872,
747,
21196,
411,
576,
747,
21196,
405,
4561,
4697,
202,
20081,
2632,
1971,
340,
548,
411,
374,
747,
2632,
1971,
340,
548,
405,
4561,
747,
4125,
2173,
11066,
411,
404,
4697,
202,
20081,
2114,
17933,
405,
6969,
713,
13,
288,
1082,
202,
4901,
18,
30709,
2932,
3589,
316,
1472,
1323,
27389,
787,
17,
792,
17,
1944,
4414,
4442,
1769,
1082,
202,
759,
2660,
30,
333,
1410,
6013,
2
] |
return DiagramPlugin.getInstance(); }
|
return DiagramPlugin.getInstance(); }
|
protected Plugin getPlugin() { return DiagramPlugin.getInstance(); }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/e7a9862e2ce75b0b75be5e902d2b4874a868063a/DiagramResourceManager.java/clean/org.eclipse.gmf.runtime/examples/org.eclipse.gmf.examples.runtime.diagram.geoshapes/src/org/eclipse/gmf/examples/runtime/diagram/geoshapes/internal/l10n/DiagramResourceManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6258,
16319,
1435,
288,
202,
202,
2463,
14539,
1940,
3773,
18,
588,
1442,
5621,
202,
97,
202,
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
] |
[
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6258,
16319,
1435,
288,
202,
202,
2463,
14539,
1940,
3773,
18,
588,
1442,
5621,
202,
97,
202,
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
] |
if ( val != null ) {
|
boolean good; if ( val == null ) { good = false; } else {
|
private void calculate() throws IOException { int ncol = dataModel.getColumnCount(); /* Allocate result objects. */ mins = new Object[ ncol ]; maxs = new Object[ ncol ]; ngoods = new long[ ncol ]; nbads = new long[ ncol ]; means = new double[ ncol ]; sdevs = new double[ ncol ]; sums = new double[ ncol ]; sum2s = new double[ ncol ]; boolean[] badcompars = new boolean[ ncol ]; boolean[] isNumber = new boolean[ ncol ]; boolean[] isComparable = new boolean[ ncol ]; double[] dmins = new double[ ncol ]; double[] dmaxs = new double[ ncol ]; Arrays.fill( dmins, Double.MAX_VALUE ); Arrays.fill( dmaxs, -Double.MAX_VALUE ); /* See which columns we can sensibly gather statistics on. */ for ( int icol = 0; icol < ncol; icol++ ) { Class clazz = dataModel.getColumnInfo( icol ).getContentClass(); isNumber[ icol ] = Number.class.isAssignableFrom( clazz ); isComparable[ icol ] = Comparable.class .isAssignableFrom( clazz ); } /* Iterate over the selected rows in the table. */ RowSequence rseq = new ProgressBarStarTable( dataModel, progBar ) .getRowSequence(); IOException interruption = null; long lrow = 0L; ngoodrow = 0L; for ( ; rseq.hasNext(); lrow++ ) { /* A thread interruption may manifest itself here as an * exception (see ProgressBarStarTable). If so, save the * exception and break out. */ try { rseq.next(); } catch ( IOException e ) { interruption = e; break; } if ( rset.isIncluded( lrow ) ) { ngoodrow++; Object[] row = rseq.getRow(); /* Accumulate statistics as appropriate. */ for ( int icol = 0; icol < ncol; icol++ ) { Object val = row[ icol ]; if ( val != null ) { if ( isNumber[ icol ] ) { if ( ! ( val instanceof Number ) ) { System.err.println( "Error in table data: not numeric at " + lrow + "," + icol + "(" + val + ")" ); break; } double dval = ((Number) val).doubleValue(); if ( Double.isNaN( dval ) ) { break; } if ( dval < dmins[ icol ] ) { dmins[ icol ] = dval; mins[ icol ] = val; } if ( dval > dmaxs[ icol ] ) { dmaxs[ icol ] = dval; maxs[ icol ] = val; } sums[ icol ] += dval; sum2s[ icol ] += dval * dval; } else if ( isComparable[ icol ] ) { if ( ! ( val instanceof Comparable ) ) { System.err.println( "Error in table data: not Comparable " + " at " + lrow + "," + icol + "(" + val + ")" ); break; } Comparable cval = (Comparable) val; if ( mins[ icol ] == null ) { assert maxs[ icol ] == null; mins[ icol ] = val; maxs[ icol ] = val; } else { try { if ( cval.compareTo( mins[ icol ] ) < 0 ) { mins[ icol ] = val; } else if ( cval.compareTo( maxs[ icol ] ) > 0 ) { maxs[ icol ] = val; } } /* It is possible for two objects in the * same column both to be Comparable, * but not to each other. In this case, * there does not exist a well-defined * min/max for that column. */ catch ( ClassCastException e ) { badcompars[ icol ] = true; } } } ngoods[ icol ]++; } } } } long nrow = lrow; /* Calculate the actual statistics based on the accumulated * values. We do this even if the summation was interrupted, * since the partially-accumulated values may be of interest. */ for ( int icol = 0; icol < ncol; icol++ ) { long ngood = ngoods[ icol ]; nbads[ icol ] = ngoodrow - ngood; if ( ngood > 0 ) { double mean = sums[ icol ] / ngood; means[ icol ] = mean; double var = sum2s[ icol ] / ngood - mean * mean; sdevs[ icol ] = Math.sqrt( var ); } else { means[ icol ] = Double.NaN; sdevs[ icol ] = Double.NaN; } if ( badcompars[ icol ] ) { mins[ icol ] = null; maxs[ icol ] = null; } } /* Re-throw any interruption-type exception we picked up. */ if ( interruption != null ) { throw interruption; } }
|
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/c41b345536003a95591a16ca9ed87cc528991b4b/StatsWindow.java/buggy/topcat/src/main/uk/ac/starlink/topcat/StatsWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
4604,
1435,
1216,
1860,
288,
5411,
509,
290,
1293,
273,
27600,
18,
588,
1494,
1380,
5621,
5411,
1748,
22222,
563,
2184,
18,
1195,
5411,
26381,
273,
394,
1033,
63,
290,
1293,
308,
31,
5411,
943,
87,
273,
394,
1033,
63,
290,
1293,
308,
31,
5411,
290,
19747,
87,
273,
394,
1525,
63,
290,
1293,
308,
31,
5411,
4264,
17318,
273,
394,
1525,
63,
290,
1293,
308,
31,
5411,
4696,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
272,
5206,
87,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
26608,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
2142,
22,
87,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
1250,
8526,
5570,
832,
8954,
273,
394,
1250,
63,
290,
1293,
308,
31,
5411,
1250,
8526,
18103,
273,
394,
1250,
63,
290,
1293,
308,
31,
5411,
1250,
8526,
353,
799,
10207,
273,
394,
1250,
63,
290,
1293,
308,
31,
5411,
1645,
8526,
302,
1154,
87,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
1645,
8526,
302,
1896,
87,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
5647,
18,
5935,
12,
302,
1154,
87,
16,
3698,
18,
6694,
67,
4051,
11272,
5411,
5647,
18,
5935,
12,
302,
1896,
87,
16,
300,
5265,
18,
6694,
67,
4051,
11272,
5411,
1748,
2164,
1492,
2168,
732,
848,
15390,
24755,
11090,
7691,
603,
18,
1195,
5411,
364,
261,
509,
277,
1293,
273,
374,
31,
277,
1293,
411,
290,
1293,
31,
277,
1293,
9904,
262,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
4604,
1435,
1216,
1860,
288,
5411,
509,
290,
1293,
273,
27600,
18,
588,
1494,
1380,
5621,
5411,
1748,
22222,
563,
2184,
18,
1195,
5411,
26381,
273,
394,
1033,
63,
290,
1293,
308,
31,
5411,
943,
87,
273,
394,
1033,
63,
290,
1293,
308,
31,
5411,
290,
19747,
87,
273,
394,
1525,
63,
290,
1293,
308,
31,
5411,
4264,
17318,
273,
394,
1525,
63,
290,
1293,
308,
31,
5411,
4696,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
272,
5206,
87,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
26608,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
2142,
22,
87,
273,
394,
1645,
63,
290,
1293,
308,
31,
5411,
1250,
8526,
5570,
832,
2
] |
cseqFirst.getSequenceNumberLong());
|
cseqFirst.getSeqNumber());
|
public void processResponse(ResponseEvent responseReceivedEvent) { System.out.println("Got a response"); Response response = (Response) responseReceivedEvent.getResponse(); ClientTransaction tid = responseReceivedEvent.getClientTransaction(); CSeqHeader cseq = (CSeqHeader) response.getHeader(CSeqHeader.NAME); System.out.println("Response received : Status Code = " + response.getStatusCode() + " " + cseq); if (tid == null) { System.out.println("Stray response -- dropping "); return; } System.out.println("transaction state is " + tid.getState()); System.out.println("Dialog = " + tid.getDialog()); System.out.println("Dialog State is " + tid.getDialog().getState()); try { if (response.getStatusCode() == Response.OK) { if (cseq.getMethod().equals(Request.INVITE)) { if (Secuencia.equals("first")) { System.out.println("processResponse FIRST"); responseFirstEvent = responseReceivedEvent; // get call-id String callId = ((CallIdHeader) response .getHeader(CallIdHeader.NAME)).getCallId(); // Create second Invite second++; Secuencia = "second"; Request requestSecond = this.createInvite(Secuencia, String.valueOf(second), callId, null, peerHostPortB); // SDP for second Invite with first response // ContentTypeHeader requestSecond.setContent(response.getContent(), (ContentTypeHeader) (response .getHeader("Content-Type"))); inviteSecond = sipProvider .getNewClientTransaction(requestSecond); inviteSecond.sendRequest(); System.out.println("INVITE second sent:\n" + requestSecond); } else if (Secuencia.equals("second")) { System.out.println("processResponse SECOND"); // send ACK second Dialog dialogSecond = tid.getDialog(); Request ackRequest = dialogSecond.createAck(cseq .getSequenceNumberLong());// dialogSecond.createRequest(Request.ACK); System.out.println("Sending ACK second"); dialogSecond.sendAck(ackRequest);// dialogSecond.sendAck(ackRequest); CSeqHeader cseqFirst = (CSeqHeader) responseFirstEvent .getResponse().getHeader(CSeqHeader.NAME); Request ackRequestFirst = responseFirstEvent .getDialog().createAck( cseqFirst.getSequenceNumberLong()); ackRequestFirst.setContent(response.getContent(), (ContentTypeHeader) (response .getHeader("Content-Type"))); System.out.println("Sending ACK first"); responseFirstEvent.getDialog().sendAck(ackRequestFirst); // save the dialog of the other side, for the bye... responseFirstEvent.getDialog().setApplicationData( dialogSecond); dialogSecond.setApplicationData(responseFirstEvent .getDialog()); Secuencia = "fin"; } } } } catch (Exception ex) { ex.printStackTrace(); System.exit(0); } }
|
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/b8e5d1c6e8b8ea8e60e492733a285b4cfa90745b/Controller.java/buggy/src/examples/tpcc/Controller.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
1064,
12,
1064,
1133,
766,
8872,
1133,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
15617,
279,
766,
8863,
202,
202,
1064,
766,
273,
261,
1064,
13,
766,
8872,
1133,
18,
588,
1064,
5621,
202,
202,
1227,
3342,
11594,
273,
766,
8872,
1133,
18,
588,
1227,
3342,
5621,
202,
202,
39,
6926,
1864,
276,
5436,
273,
261,
39,
6926,
1864,
13,
766,
18,
588,
1864,
12,
39,
6926,
1864,
18,
1985,
1769,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1064,
5079,
294,
2685,
3356,
273,
315,
9506,
202,
15,
766,
18,
588,
14041,
1435,
397,
315,
315,
397,
276,
5436,
1769,
202,
202,
430,
261,
18081,
422,
446,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
1585,
528,
766,
1493,
3640,
1382,
315,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
3163,
18,
659,
18,
8222,
2932,
7958,
919,
353,
315,
397,
11594,
18,
588,
1119,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
6353,
273,
315,
397,
11594,
18,
588,
6353,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
6353,
3287,
353,
315,
397,
11594,
18,
588,
6353,
7675,
588,
1119,
10663,
202,
202,
698,
288,
1082,
202,
430,
261,
2740,
18,
588,
14041,
1435,
422,
2306,
18,
3141,
13,
288,
9506,
202,
430,
261,
71,
5436,
18,
588,
1305,
7675,
14963,
12,
691,
18,
706,
58,
5398,
3719,
288,
6862,
202,
430,
261,
2194,
89,
28115,
18,
14963,
2932,
3645,
6,
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,
1207,
1064,
12,
1064,
1133,
766,
8872,
1133,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
15617,
279,
766,
8863,
202,
202,
1064,
766,
273,
261,
1064,
13,
766,
8872,
1133,
18,
588,
1064,
5621,
202,
202,
1227,
3342,
11594,
273,
766,
8872,
1133,
18,
588,
1227,
3342,
5621,
202,
202,
39,
6926,
1864,
276,
5436,
273,
261,
39,
6926,
1864,
13,
766,
18,
588,
1864,
12,
39,
6926,
1864,
18,
1985,
1769,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1064,
5079,
294,
2685,
3356,
273,
315,
9506,
202,
15,
766,
18,
588,
14041,
1435,
397,
315,
315,
397,
276,
5436,
1769,
202,
202,
430,
261,
18081,
422,
446,
13,
288,
1082,
2
] |
if (curChar == 10 && kind > 22) kind = 22;
|
if (curChar == 10 && kind > 19) kind = 19;
|
private final int jjMoveNfa_8(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 15; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x2400L & l) != 0L) { if (kind > 22) kind = 22; } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(12, 13); } else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if ((0x2400L & l) != 0L && kind > 22) kind = 22; break; case 5: if (curChar == 10 && kind > 22) kind = 22; break; case 6: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 9: if (curChar == 36 && kind > 13) kind = 13; break; case 11: if (curChar == 36) jjCheckNAddTwoStates(12, 13); break; case 13: if (curChar == 33 && kind > 14) kind = 14; break; case 14: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(12, 13); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if (curChar == 92) jjCheckNAddStates(62, 65); break; case 1: if (kind > 16) kind = 16; break; case 8: if (curChar == 92) jjCheckNAddTwoStates(8, 9); break; case 10: if (curChar == 92) jjCheckNAddTwoStates(10, 11); break; case 12: if (curChar == 92) jjAddStates(66, 67); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 15 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
28,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
4711,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
890,
30,
5375,
309,
14015,
20,
92,
3247,
713,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
11201,
13,
13491,
3846,
273,
11201,
31,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
6580,
13,
5375,
288,
5397,
309,
261,
9224,
405,
5958,
13,
13491,
3846,
273,
5958,
31,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
2138,
16,
5958,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
13191,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
11750,
9904,
65,
273,
576,
31,
5375,
309,
261,
1397,
2156,
422,
5958,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
28,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
4711,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
try {
|
try { XavaPreferences.getInstance().setDuplicateComponentWarnings(false);
|
protected void run() throws Exception { try { String componentsPath = "../" + getProject() + "/components"; File dirComponents = new File(componentsPath); String [] components = dirComponents.list(); // First load all components for (int i = 0; i < components.length; i++) { String file = components[i]; if (file.endsWith(".xml") || file.endsWith(".XML") || file.endsWith("Xml")) { load(file); } } generate(componentsPath, components); savePackages(); saveDNAs(); } catch (Exception ex) { ex.printStackTrace(); System.err.println(XavaResources.getString("generation_project_code_error", project)); } }
|
14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/de75673f87c0aa974d6679deaad7a8ff7a7f6520/CodeGenerator.java/buggy/OpenXava/generator/CodeGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1086,
1435,
1216,
1185,
288,
1082,
3196,
202,
698,
288,
6862,
6862,
6862,
25083,
202,
780,
4085,
743,
273,
315,
838,
4898,
397,
11080,
1435,
397,
2206,
8119,
14432,
25083,
202,
812,
1577,
7171,
273,
394,
1387,
12,
8119,
743,
1769,
25083,
202,
780,
5378,
4085,
273,
1577,
7171,
18,
1098,
5621,
1082,
202,
759,
5783,
1262,
777,
4085,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4085,
18,
2469,
31,
277,
27245,
288,
9506,
202,
780,
585,
273,
4085,
63,
77,
15533,
6862,
6862,
9506,
202,
430,
261,
768,
18,
5839,
1190,
2932,
18,
2902,
7923,
747,
585,
18,
5839,
1190,
2932,
18,
4201,
7923,
747,
585,
18,
5839,
1190,
2932,
4432,
6,
3719,
288,
6862,
25083,
202,
945,
12,
768,
1769,
9506,
202,
97,
6862,
6862,
1082,
202,
97,
25083,
202,
7163,
12,
8119,
743,
16,
4085,
1769,
25083,
202,
5688,
11425,
5621,
1875,
202,
5688,
8609,
1463,
5621,
202,
202,
97,
202,
202,
14683,
261,
503,
431,
13,
288,
1082,
202,
338,
18,
1188,
6332,
5621,
1082,
202,
3163,
18,
370,
18,
8222,
12,
60,
1629,
3805,
18,
588,
780,
2932,
25514,
67,
4406,
67,
710,
67,
1636,
3113,
1984,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1086,
1435,
1216,
1185,
288,
1082,
3196,
202,
698,
288,
6862,
6862,
6862,
25083,
202,
780,
4085,
743,
273,
315,
838,
4898,
397,
11080,
1435,
397,
2206,
8119,
14432,
25083,
202,
812,
1577,
7171,
273,
394,
1387,
12,
8119,
743,
1769,
25083,
202,
780,
5378,
4085,
273,
1577,
7171,
18,
1098,
5621,
1082,
202,
759,
5783,
1262,
777,
4085,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4085,
18,
2469,
31,
277,
27245,
288,
9506,
202,
780,
585,
273,
4085,
63,
77,
15533,
6862,
6862,
9506,
202,
430,
261,
768,
18,
5839,
1190,
2932,
18,
2902,
7923,
747,
585,
18,
5839,
1190,
2932,
18,
4201,
7923,
747,
585,
18,
5839,
1190,
2932,
2
] |
menu.addSeparator();
|
menu.add(new JSeparator(SwingConstants.HORIZONTAL));
|
private JMenu createActionsMenu() { JMenu menu = new JMenu("Actions"); menu.setMnemonic(KeyEvent.VK_A); menu.add(new JMenuItem( controller.getAction(HiViewerControl.PROPERTIES))); menu.add(new JMenuItem(controller.getAction(HiViewerControl.ANNOTATE))); menu.add(new JMenuItem(controller.getAction(HiViewerControl.CLASSIFY))); menu.addSeparator(); menu.add(new JMenuItem(controller.getAction(HiViewerControl.VIEW))); menu.add(new JMenuItem(controller.getAction(HiViewerControl.ZOOM_IN))); menu.add(new JMenuItem(controller.getAction(HiViewerControl.ZOOM_OUT))); menu.add(new JMenuItem(controller.getAction(HiViewerControl.ZOOM_FIT))); return menu; }
|
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/95a81c4515a3d8dfe34a789aed7b4aa6557ccc17/HiViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerWin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
4599,
752,
6100,
4599,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
394,
804,
4599,
2932,
6100,
8863,
3639,
3824,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
37,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
7734,
2596,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
17421,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
5723,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
16791,
1777,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
5723,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
5237,
12096,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
6581,
12,
6050,
310,
2918,
18,
44,
20344,
10019,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
5723,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
12145,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
5723,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
62,
51,
1872,
67,
706,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
5723,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
62,
51,
1872,
67,
5069,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
5723,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
62,
51,
1872,
67,
42,
1285,
3719,
1769,
3639,
327,
3824,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
4599,
752,
6100,
4599,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
394,
804,
4599,
2932,
6100,
8863,
3639,
3824,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
37,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
7734,
2596,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
17421,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
5723,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
16791,
1777,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
12958,
12,
5723,
18,
588,
1803,
12,
25009,
18415,
3367,
18,
5237,
12096,
3719,
1769,
3639,
3824,
18,
1289,
12,
2704,
804,
6581,
12,
6050,
310,
2918,
18,
44,
20344,
10019,
3639,
2
] |
Platform.run(new UpdateItemSafeRunnable(widget, element, true)); }
|
Platform.run(new UpdateItemSafeRunnable(widget, element, true)); }
|
protected final void refreshItem(Widget widget, Object element) { Platform.run(new UpdateItemSafeRunnable(widget, element, true)); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dc85f0b1334fe6aa79c5c32e8024d573af99e0d2/StructuredViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
4460,
1180,
12,
4609,
3604,
16,
1033,
930,
13,
288,
3639,
11810,
18,
2681,
12,
2704,
2315,
1180,
9890,
20013,
12,
6587,
16,
930,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
4460,
1180,
12,
4609,
3604,
16,
1033,
930,
13,
288,
3639,
11810,
18,
2681,
12,
2704,
2315,
1180,
9890,
20013,
12,
6587,
16,
930,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} finally {
|
} finally {
|
private synchronized void executeProcedureInternal( String procedureName, ParameterListItem[] formalParameterList, ParameterListItem[] actualParameterList, TdsStatement stmt, SQLWarningChain wChain, int timeout, boolean noMetaData) throws java.sql.SQLException, net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { // SAfe We need to check if all cancel requests were processed and wait // for any outstanding cancel. It could happen that we sent the // CANCEL after the server sent us all the data, so the answer is // going to come in a packet of its own. while( cancelController.outstandingCancels() > 0 ) { waitForDataOrTimeout(wChain, timeout); // @todo Make sure the statement/resultset are not left in an inconsistent state. processSubPacket(); } // A stored procedure has a packet type of 0x03 in the header packet. // for non-image date the packets consists of // offset length desc. // 0 1 The length of the name of the stored proc // 1 N1 The name of the stored proc // N1 + 1 2 unknown (filled with zeros?) // N1 + 3 2 unknown prefix for param 1 (zero filled?) // N1 + 5 1 datatype for param 1 // N1 + 6 1 max length of param 1 // N1 + 7 N2 parameter 1 data // ... // // For image data (datatype 0x22) the packet consists of // 0 1 The length of the name of the stored proc // 1 N1 The name of the stored proc // N1 + 1 2 unknown (filled with zeros?) // N1 + 3 2 unknown prefix for param 1 (zero filled?) // N1 + 5 1 datatype for param 1 // N1 + 6 4 length of param 1 // N1 + 10 4 length of param 1 (duplicated?) // N1 + 7 N2 parameter 1 data // ... checkMaxRows(stmt); int i; try { // SAfe We must not do this here, if an exception is thrown before // the packet is actually sent, we will deadlock in skipToEnd // with nothing to read. // moreResults = true; // Start sending the procedure execute packet. comm.startPacket(TdsComm.PROC); if (tdsVer == Tds.TDS70) { comm.appendTdsShort((short) (procedureName.length())); comm.appendChars(procedureName); } else { byte[] nameBytes = encoder.getBytes(procedureName); comm.appendByte((byte) nameBytes.length); comm.appendBytes(nameBytes, nameBytes.length, (byte) 0); } // SAfe I think if this is set to 2 it means "don't return column // information" (useful for scrollable statements, to reduce // the amount of data passed around). comm.appendShort((short) (noMetaData ? 512 : 0)); // Now handle the parameters for( i=0; i<formalParameterList.length; i++ ) { // SAfe We could try using actualParameterList here, instead // of formalParameterList. If it works (although it // shouldn't) it will solve a lot of problems. byte nativeType = cvtJdbcTypeToNativeType(formalParameterList[i].type); comm.appendByte((byte) 0); if (actualParameterList[i].isOutput) { comm.appendByte((byte)1); if (nativeType == SYBBIT && actualParameterList[i].value == null) { actualParameterList[i].value = Boolean.FALSE; } } else { comm.appendByte((byte) 0); } if (actualParameterList[i].value == null && (nativeType == SYBINT1 || nativeType == SYBINT2 || nativeType == SYBINT4)) { nativeType = SYBINTN; } switch (nativeType) { case SYBCHAR: { String val; try { val = (String)actualParameterList[i].value; } catch (ClassCastException e) { if( actualParameterList[i].value instanceof Boolean ) val = ((Boolean)actualParameterList[i].value).booleanValue() ? "1" : "0"; else val = actualParameterList[i].value.toString(); } if( tdsVer<TDS70 && val!=null && val.length()==0 ) val = " "; int len = val != null ? val.length() : 0; int max = formalParameterList[i].maxLength; // MJH - Do not use the formalType from the actual parameters as // this will be null where a cached stored procedure is reused by a // different PreparedStatement from the one that created it in the fist // place. Use the formalParameter data instead. // //if (actualParameterList[i].formalType != null && // actualParameterList[i].formalType.startsWith("n")) { // if( formalParameterList[i].formalType != null && formalParameterList[i].formalType.startsWith("n") ) { /* * This is a Unicode column, save to assume TDS 7.0 */ if (max > 4000) { comm.appendByte(SYBNTEXT); comm.appendTdsInt(max * 2); if (val == null) { comm.appendTdsInt(0xFFFFFFFF); } else { comm.appendTdsInt(len * 2); comm.appendChars(val); } } else { comm.appendByte((byte) (SYBNVARCHAR | 0x80)); comm.appendTdsShort((short) (max * 2)); if (val == null) { comm.appendTdsShort((short) 0xFFFF); } else { // MJH - Trap silent truncation problem if( val.length() > 4000 ) throw new java.io.IOException("Field too long"); comm.appendTdsShort((short) (len * 2)); comm.appendChars(val); } } } else { /* * Either VARCHAR or TEXT, TEXT can not happen * with TDS 7.0 as we would always use NTEXT there */ if (tdsVer != TDS70 && max > 255) { // TEXT comm.appendByte(SYBTEXT); if( actualParameterList[i].value instanceof byte[] ) sendSybImage((byte[]) actualParameterList[i].value); else sendSybImage(encoder.getBytes(val)); } else { // VARCHAR sendSybChar(val, formalParameterList[i].maxLength); } } break; } case SYBINTN: comm.appendByte(SYBINTN); comm.appendByte((byte)4); // maximum length of the field, if (actualParameterList[i].value == null) { comm.appendByte((byte)0); // actual length } else { comm.appendByte((byte)4); // actual length comm.appendTdsInt(((Number)(actualParameterList[i].value)).intValue()); } break; case SYBINT4: comm.appendByte(SYBINT4); comm.appendTdsInt(((Number)(actualParameterList[i].value)).intValue()); break; case SYBINT2: comm.appendByte(SYBINT2); comm.appendTdsShort(((Number)(actualParameterList[i].value)).shortValue()); break; case SYBINT1: comm.appendByte(SYBINT1); comm.appendByte(((Number)(actualParameterList[i].value)).byteValue()); break; case SYBFLT8: case SYBFLTN: { if (actualParameterList[i].value == null) { comm.appendByte(SYBFLTN); comm.appendByte((byte)8); comm.appendByte((byte)0); } else { Number n = (Number)(actualParameterList[i].value); Double d = new Double(n.doubleValue()); comm.appendByte(SYBFLT8); comm.appendFlt8(d); } break; } case SYBDATETIMN: { writeDatetimeValue(actualParameterList[i].value, SYBDATETIMN); break; } case SYBIMAGE: { comm.appendByte(nativeType); sendSybImage((byte[]) actualParameterList[i].value); break; } case SYBTEXT: { comm.appendByte(SYBTEXT); sendSybImage(encoder.getBytes((String) actualParameterList[i]. value)); break; } case SYBBIT: case SYBBITN: { if (actualParameterList[i].value == null) { comm.appendByte(SYBBITN); comm.appendByte((byte)1); comm.appendByte((byte)0); } else { comm.appendByte(SYBBIT); if( actualParameterList[i].value.equals(Boolean.TRUE) ) comm.appendByte((byte)1); else comm.appendByte((byte)0); } break; } case SYBNUMERIC: case SYBDECIMAL: { writeDecimalValue(nativeType, actualParameterList[i].value, 0, -1); break; } case SYBBINARY: case SYBVARBINARY: { byte[] value = (byte[])actualParameterList[i].value; int maxLength = formalParameterList[i].maxLength; if (value == null) { comm.appendByte(SYBVARBINARY); comm.appendByte((byte)(maxLength)); comm.appendByte((byte)0); } else { if (value.length > 255) { if (tdsVer != TDS70) { throw new java.io.IOException("Field too long"); } comm.appendByte(SYBBIGVARBINARY); if (maxLength < 0 || maxLength > 8000) { comm.appendTdsShort((short)8000); } else comm.appendTdsShort((short)maxLength); comm.appendTdsShort((short)(value.length)); } else { comm.appendByte(SYBVARBINARY); comm.appendByte((byte)(maxLength)); comm.appendByte((byte)(value.length)); } comm.appendBytes(value); } break; } case SYBVOID: case SYBVARCHAR: case SYBDATETIME4: case SYBREAL: case SYBMONEY: case SYBDATETIME: case SYBMONEYN: case SYBMONEY4: default: { throw new SQLException("Not implemented for nativeType 0x" + Integer.toHexString(nativeType)); } } } // mark that we are performing a query cancelController.setQueryInProgressFlag(); moreResults = true; comm.sendPacket(); waitForDataOrTimeout(wChain, timeout); } catch (java.io.IOException e) { throw new SQLException("Network error- " + e.getMessage()); } finally { comm.packetType = 0; } }
|
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/961a45de8bf5d82c43254ac74e0e90a332e67845/Tds.java/clean/src/main/net/sourceforge/jtds/jdbc/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
1836,
17213,
3061,
12,
5411,
514,
12131,
461,
16,
5411,
5498,
13575,
8526,
25739,
1662,
682,
16,
5411,
5498,
13575,
8526,
3214,
1662,
682,
16,
5411,
399,
2377,
3406,
3480,
16,
5411,
3063,
6210,
3893,
341,
3893,
16,
5411,
509,
2021,
16,
5411,
1250,
1158,
6998,
13,
2398,
1216,
2252,
18,
4669,
18,
23116,
16,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
368,
17127,
3030,
1660,
1608,
358,
866,
309,
777,
3755,
3285,
4591,
5204,
471,
2529,
3639,
368,
1377,
364,
1281,
20974,
3755,
18,
2597,
3377,
5865,
716,
732,
3271,
326,
3639,
368,
1377,
29641,
1839,
326,
1438,
3271,
584,
777,
326,
501,
16,
1427,
326,
5803,
353,
3639,
368,
1377,
8554,
358,
12404,
316,
279,
4414,
434,
2097,
4953,
18,
3639,
1323,
12,
3755,
2933,
18,
659,
15167,
6691,
87,
1435,
405,
374,
262,
3639,
288,
5411,
10712,
751,
1162,
2694,
12,
91,
3893,
16,
2021,
1769,
5411,
368,
632,
9012,
4344,
3071,
326,
3021,
19,
2088,
542,
854,
486,
2002,
316,
392,
27403,
919,
18,
5411,
1207,
1676,
6667,
5621,
3639,
289,
3639,
368,
432,
4041,
12131,
711,
279,
4414,
618,
434,
374,
92,
4630,
316,
326,
1446,
4414,
18,
3639,
368,
364,
1661,
17,
2730,
1509,
326,
12640,
20915,
434,
3639,
368,
1384,
540,
769,
3639,
3044,
18,
3639,
368,
374,
7734,
404,
6647,
1021,
769,
434,
326,
508,
434,
326,
4041,
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,
3852,
918,
1836,
17213,
3061,
12,
5411,
514,
12131,
461,
16,
5411,
5498,
13575,
8526,
25739,
1662,
682,
16,
5411,
5498,
13575,
8526,
3214,
1662,
682,
16,
5411,
399,
2377,
3406,
3480,
16,
5411,
3063,
6210,
3893,
341,
3893,
16,
5411,
509,
2021,
16,
5411,
1250,
1158,
6998,
13,
2398,
1216,
2252,
18,
4669,
18,
23116,
16,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
368,
17127,
3030,
1660,
1608,
358,
866,
309,
777,
3755,
3285,
4591,
5204,
471,
2529,
3639,
368,
1377,
364,
1281,
20974,
3755,
18,
2597,
3377,
5865,
716,
732,
3271,
326,
3639,
368,
1377,
29641,
1839,
326,
2
] |
debugln("done with target map");
|
private void doOneStrike(Legion legion, Battle battle) { debugln("called doOneStrike"); // Simple one-ply group strike algorithm. // First make forced strikes, including rangestrikes for // rangestrikers with only one target. battle.makeForcedStrikes(true); debugln("done with forced strikes"); // Then create a map containing each target // and the likely number of hits it would take if all // possible creatures attacked it. HashMap map = new HashMap(); Collection critters = legion.getCritters(); Iterator it = critters.iterator(); while (it.hasNext()) { Critter critter = (Critter)it.next(); Set set = battle.findStrikes(critter, true); Iterator it2 = set.iterator(); while (it2.hasNext()) { String hexLabel = (String)it2.next(); Critter target = battle.getCritterFromHexLabel(hexLabel); int dice = critter.getDice(target); int strikeNumber = critter.getStrikeNumber(target); double h = averageNumberOfHits(dice, strikeNumber); if (map.containsKey(target)) { double d = ((Double)map.get(target)).doubleValue(); h += d; } debugln("adding " + target.getDescription() + " : " + h); map.put(target, new Double(h)); } } debugln("done with target map"); // Pick the most important target that can likely be // killed this turn. If none can, pick the most important // target. boolean canKillSomething = false; Critter bestTarget = null; char terrain = battle.getTerrain(); it = map.keySet().iterator(); while (it.hasNext()) { Critter target = (Critter)it.next(); debugln("checking target " + target.getDescription()); double h = ((Double)map.get(target)).doubleValue(); if (h + target.getHits() >= target.getPower()) { // We can probably kill this target. if (bestTarget == null || !canKillSomething || getKillValue(target, terrain) > getKillValue(bestTarget, terrain)) { bestTarget = target; canKillSomething = true; } } else { // We probably can't kill this target. if (bestTarget == null || (!canKillSomething && getKillValue(target, terrain) > getKillValue(bestTarget, terrain))) { bestTarget = target; } } } if (bestTarget == null) { debugln("no targets"); return; } debugln("Best target is " + bestTarget.getDescription()); // Having found the target, pick an attacker. The // first priority is finding one that does not need // to worry about carry penalties to hit this target. // The second priority is using the weakest attacker, // so that more information is available when the // stronger attackers strike. Critter bestAttacker = null; it = critters.iterator(); while (it.hasNext()) { Critter critter = (Critter)it.next(); if (critter.canStrike(bestTarget)) { if (critter.possibleStrikePenalty(bestTarget)) { if (bestAttacker == null || (bestAttacker.possibleStrikePenalty(bestTarget) && getCombatValue(critter, terrain) < getCombatValue(bestAttacker, terrain))) { bestAttacker = critter; } } else { if (bestAttacker == null || bestAttacker.possibleStrikePenalty(bestTarget) || getCombatValue(critter, terrain) < getCombatValue(bestAttacker, terrain)) { bestAttacker = critter; } } } } debugln("Best attacker is " + bestAttacker.getDescription()); // Having found the target and attacker, strike. // Take a carry penalty if there is still a 95% // chance of killing this target. bestAttacker.strike(bestTarget); debugln("struck"); // If there are any carries, apply them first to // the biggest creature that could be killed with // them, then to the biggest creature. while (battle.getCarryDamage() > 0) { bestTarget = null; Set set = battle.findCarryTargets(); it = set.iterator(); while (it.hasNext()) { String hexLabel = (String)it.next(); Critter target = battle.getCritterFromHexLabel(hexLabel); if (target.wouldDieFrom(battle.getCarryDamage())) { if (bestTarget == null || !bestTarget.wouldDieFrom(battle.getCarryDamage()) || getKillValue(target, terrain) > getKillValue(bestTarget, terrain)) { bestTarget = target; } } else { if (bestTarget == null || (!bestTarget.wouldDieFrom(battle.getCarryDamage()) && getKillValue(target, terrain) > getKillValue(bestTarget, terrain))) { bestTarget = target; } } debugln("Best carry target is " + bestTarget.getDescription()); battle.applyCarries(bestTarget); } } }
|
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/097aac8871f232313bd7d285cf38ae1e8056ef86/SimpleAI.java/clean/Colossus/SimpleAI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
3335,
1585,
2547,
12,
8329,
285,
4553,
285,
16,
605,
4558,
298,
324,
4558,
298,
13,
565,
288,
3639,
1198,
2370,
2932,
11777,
741,
3335,
1585,
2547,
8863,
3639,
368,
4477,
1245,
17,
1283,
1041,
609,
2547,
4886,
18,
3639,
368,
5783,
1221,
13852,
609,
25235,
16,
6508,
7322,
313,
25235,
364,
540,
368,
7322,
313,
1766,
414,
598,
1338,
1245,
1018,
18,
3639,
324,
4558,
298,
18,
6540,
1290,
3263,
1585,
25235,
12,
3767,
1769,
3639,
1198,
2370,
2932,
8734,
598,
13852,
609,
25235,
8863,
3639,
368,
9697,
752,
279,
852,
4191,
1517,
1018,
3639,
368,
471,
326,
10374,
1300,
434,
11076,
518,
4102,
4862,
309,
777,
3639,
368,
3323,
1519,
2790,
13843,
329,
518,
18,
3639,
4317,
852,
273,
394,
4317,
5621,
3639,
2200,
7921,
5432,
273,
4553,
285,
18,
588,
39,
583,
5432,
5621,
3639,
4498,
518,
273,
7921,
5432,
18,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
3639,
288,
5411,
385,
583,
387,
7921,
387,
273,
261,
39,
583,
387,
13,
305,
18,
4285,
5621,
5411,
1000,
444,
273,
324,
4558,
298,
18,
4720,
1585,
25235,
12,
27826,
387,
16,
638,
1769,
5411,
4498,
518,
22,
273,
444,
18,
9838,
5621,
5411,
1323,
261,
305,
22,
18,
5332,
2134,
10756,
5411,
288,
7734,
514,
3827,
2224,
273,
261,
780,
13,
305,
22,
18,
4285,
5621,
7734,
385,
583,
387,
1018,
273,
324,
4558,
298,
18,
588,
39,
583,
387,
1265,
7037,
2224,
12,
7118,
2224,
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,
3238,
918,
741,
3335,
1585,
2547,
12,
8329,
285,
4553,
285,
16,
605,
4558,
298,
324,
4558,
298,
13,
565,
288,
3639,
1198,
2370,
2932,
11777,
741,
3335,
1585,
2547,
8863,
3639,
368,
4477,
1245,
17,
1283,
1041,
609,
2547,
4886,
18,
3639,
368,
5783,
1221,
13852,
609,
25235,
16,
6508,
7322,
313,
25235,
364,
540,
368,
7322,
313,
1766,
414,
598,
1338,
1245,
1018,
18,
3639,
324,
4558,
298,
18,
6540,
1290,
3263,
1585,
25235,
12,
3767,
1769,
3639,
1198,
2370,
2932,
8734,
598,
13852,
609,
25235,
8863,
3639,
368,
9697,
752,
279,
852,
4191,
1517,
1018,
3639,
368,
471,
326,
10374,
1300,
434,
11076,
518,
4102,
4862,
309,
777,
3639,
368,
3323,
1519,
2790,
13843,
329,
2
] |
|
temp = toFlip.width; toFlip.width = toFlip.height; toFlip.height = temp;
|
public static void flipXY(Rectangle toFlip) { int temp = toFlip.x; toFlip.x = toFlip.y; toFlip.y = temp; temp = toFlip.width; toFlip.width = toFlip.height; toFlip.height = temp; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/Geometry.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Geometry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
9668,
8546,
12,
19463,
358,
28535,
13,
288,
377,
202,
474,
1906,
273,
358,
28535,
18,
92,
31,
377,
202,
869,
28535,
18,
92,
273,
358,
28535,
18,
93,
31,
377,
202,
869,
28535,
18,
93,
273,
1906,
31,
377,
202,
377,
202,
5814,
273,
358,
28535,
18,
2819,
31,
377,
202,
869,
28535,
18,
2819,
273,
358,
28535,
18,
4210,
31,
377,
202,
869,
28535,
18,
4210,
273,
1906,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
760,
918,
9668,
8546,
12,
19463,
358,
28535,
13,
288,
377,
202,
474,
1906,
273,
358,
28535,
18,
92,
31,
377,
202,
869,
28535,
18,
92,
273,
358,
28535,
18,
93,
31,
377,
202,
869,
28535,
18,
93,
273,
1906,
31,
377,
202,
377,
202,
5814,
273,
358,
28535,
18,
2819,
31,
377,
202,
869,
28535,
18,
2819,
273,
358,
28535,
18,
4210,
31,
377,
202,
869,
28535,
18,
4210,
273,
1906,
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
] |
|
if (sourceFile != null) { existingFile.setContents(sourceFile.getContents(), IResource.KEEP_HISTORY, new SubProgressMonitor( subMonitor, 0)); } } }
|
if (sourceFile != null) { existingFile.setContents(sourceFile.getContents(), IResource.KEEP_HISTORY, new SubProgressMonitor( subMonitor, 0)); } } }
|
private void copyExisting(IResource source, IResource existing, IProgressMonitor subMonitor) throws CoreException { IFile existingFile = getFile(existing); if (existingFile != null) { IFile sourceFile = getFile(source); if (sourceFile != null) { existingFile.setContents(sourceFile.getContents(), IResource.KEEP_HISTORY, new SubProgressMonitor( subMonitor, 0)); } } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/48cbfd568805d8302ff76e177e1533df1b92a834/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1610,
9895,
12,
45,
1420,
1084,
16,
467,
1420,
2062,
16,
5411,
467,
5491,
7187,
720,
7187,
13,
1216,
30015,
288,
3639,
467,
812,
2062,
812,
273,
6034,
12,
11711,
1769,
3639,
309,
261,
11711,
812,
480,
446,
13,
288,
5411,
467,
812,
16338,
273,
6034,
12,
3168,
1769,
5411,
309,
261,
3168,
812,
480,
446,
13,
288,
7734,
2062,
812,
18,
542,
6323,
12,
3168,
812,
18,
588,
6323,
9334,
13491,
467,
1420,
18,
6859,
10541,
67,
31746,
16,
394,
2592,
5491,
7187,
12,
27573,
720,
7187,
16,
374,
10019,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1610,
9895,
12,
45,
1420,
1084,
16,
467,
1420,
2062,
16,
5411,
467,
5491,
7187,
720,
7187,
13,
1216,
30015,
288,
3639,
467,
812,
2062,
812,
273,
6034,
12,
11711,
1769,
3639,
309,
261,
11711,
812,
480,
446,
13,
288,
5411,
467,
812,
16338,
273,
6034,
12,
3168,
1769,
5411,
309,
261,
3168,
812,
480,
446,
13,
288,
7734,
2062,
812,
18,
542,
6323,
12,
3168,
812,
18,
588,
6323,
9334,
13491,
467,
1420,
18,
6859,
10541,
67,
31746,
16,
394,
2592,
5491,
7187,
12,
27573,
720,
7187,
16,
374,
10019,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
addItems(table,page);
|
addItems(table, page);
|
private void openDialog(WorkbenchPage page) { final int MAX_ITEMS = 22; selection = null; final Shell dialog = new Shell(getWorkbenchWindow().getShell(),SWT.MODELESS); Display display = dialog.getDisplay(); dialog.setLayout(new FillLayout()); final Table table = new Table(dialog,SWT.SINGLE | SWT.FULL_SELECTION); table.setHeaderVisible(true); table.setLinesVisible(true); TableColumn tc = new TableColumn(table,SWT.NONE); tc.setResizable(false); tc.setText(getTableHeader()); addItems(table,page); int tableItemCount = table.getItemCount(); switch (tableItemCount) { case 0: // do nothing; break; case 1: table.setSelection(0); break; default: table.setSelection(forward ? 1 : table.getItemCount() - 1); } tc.pack(); table.pack(); Rectangle tableBounds = table.getBounds(); tableBounds.height = Math.min(tableBounds.height, table.getItemHeight()*MAX_ITEMS); table.setBounds(tableBounds); dialog.pack(); tc.setWidth(table.getClientArea().width); table.setFocus(); table.addFocusListener(new FocusListener() { public void focusGained(FocusEvent e) { } public void focusLost(FocusEvent e) { cancel(dialog); } }); Rectangle dialogBounds = dialog.getBounds(); Rectangle displayBounds = display.getClientArea(); Rectangle parentBounds = dialog.getParent().getBounds(); //Place it in the center of its parent; dialogBounds.x = parentBounds.x + ((parentBounds.width - dialogBounds.width) / 2); dialogBounds.y = parentBounds.y + ((parentBounds.height - dialogBounds.height) / 2); if(!displayBounds.contains(dialogBounds.x,dialogBounds.y) || !displayBounds.contains(dialogBounds.x + dialogBounds.width,dialogBounds.y + dialogBounds.height)) { //Place it in the center of the display if it is not visible //when placed in the center of its parent; dialogBounds.x = (displayBounds.width - dialogBounds.width) / 2; dialogBounds.y = (displayBounds.height - dialogBounds.height) / 2; } dialogBounds.height = dialogBounds.height + 3 - table.getHorizontalBar().getSize().y; dialog.setBounds(dialogBounds); table.removeHelpListener(getHelpListener()); table.addHelpListener(new HelpListener() { public void helpRequested(HelpEvent event) { } }); // TODO Bold cast to Workbench final Workbench workbench = (Workbench) page.getWorkbenchWindow().getWorkbench(); try { dialog.open(); addMouseListener(table, dialog); workbench.disableKeyFilter(); addKeyListener(table, dialog); addTraverseListener(table); while (!dialog.isDisposed()) if (!display.readAndDispatch()) display.sleep(); } finally { if(!dialog.isDisposed()) cancel(dialog); workbench.enableKeyFilter(); } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f4c7612b94bd3c858ff747bb4d43466101c13426/CyclePartAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CyclePartAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1696,
6353,
12,
2421,
22144,
1964,
1363,
13,
288,
202,
202,
6385,
509,
4552,
67,
29887,
273,
11201,
31,
9506,
202,
10705,
273,
446,
31,
202,
202,
6385,
19433,
6176,
273,
394,
19433,
12,
588,
2421,
22144,
3829,
7675,
588,
13220,
9334,
55,
8588,
18,
7038,
26005,
1769,
202,
202,
4236,
2562,
273,
6176,
18,
588,
4236,
5621,
202,
202,
12730,
18,
542,
3744,
12,
2704,
14192,
3744,
10663,
9506,
202,
6385,
3555,
1014,
273,
394,
3555,
12,
12730,
16,
55,
8588,
18,
20184,
571,
348,
8588,
18,
18111,
67,
1090,
15445,
1769,
202,
202,
2121,
18,
542,
1864,
6207,
12,
3767,
1769,
202,
202,
2121,
18,
542,
5763,
6207,
12,
3767,
1769,
202,
202,
1388,
1494,
1715,
273,
394,
3555,
1494,
12,
2121,
16,
55,
8588,
18,
9826,
1769,
202,
202,
5111,
18,
542,
607,
6934,
12,
5743,
1769,
202,
202,
5111,
18,
542,
1528,
12,
588,
1388,
1864,
10663,
202,
202,
1289,
3126,
12,
2121,
16,
2433,
1769,
202,
202,
474,
1014,
30687,
273,
1014,
18,
588,
30687,
5621,
1082,
202,
9610,
261,
2121,
30687,
13,
288,
1082,
202,
3593,
374,
30,
9506,
202,
759,
741,
5083,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
404,
30,
9506,
202,
2121,
18,
542,
6233,
12,
20,
1769,
9506,
202,
8820,
31,
1082,
202,
1886,
30,
9506,
202,
2121,
18,
542,
6233,
12,
11565,
692,
404,
294,
1014,
18,
588,
30687,
1435,
300,
404,
1769,
202,
202,
97,
1082,
202,
5111,
18,
2920,
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,
1696,
6353,
12,
2421,
22144,
1964,
1363,
13,
288,
202,
202,
6385,
509,
4552,
67,
29887,
273,
11201,
31,
9506,
202,
10705,
273,
446,
31,
202,
202,
6385,
19433,
6176,
273,
394,
19433,
12,
588,
2421,
22144,
3829,
7675,
588,
13220,
9334,
55,
8588,
18,
7038,
26005,
1769,
202,
202,
4236,
2562,
273,
6176,
18,
588,
4236,
5621,
202,
202,
12730,
18,
542,
3744,
12,
2704,
14192,
3744,
10663,
9506,
202,
6385,
3555,
1014,
273,
394,
3555,
12,
12730,
16,
55,
8588,
18,
20184,
571,
348,
8588,
18,
18111,
67,
1090,
15445,
1769,
202,
202,
2121,
18,
542,
1864,
6207,
12,
3767,
1769,
202,
202,
2121,
18,
542,
5763,
6207,
12,
3767,
1769,
202,
202,
2
] |
target = target.getParent(); while (target != null && target != port) { target.translateToParent(exposeRegion); target = target.getParent();
|
target = target.getParent( ); while ( target != null && target != port ) { target.translateToParent( exposeRegion ); target = target.getParent( );
|
public void reveal(EditPart part) { Viewport port = getFigureCanvas().getViewport(); IFigure target = ((GraphicalEditPart)part).getFigure(); Rectangle exposeRegion = target.getBounds().getCopy(); // Get the primary editpolicy EditPolicy policy = part.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE); // If the policy let us access the handles, proceed, otherwise // default to original behaviour if ( ! (policy instanceof ISelectionHandlesEditPolicy )) { super.reveal(part); return; } // First translate exposeRegion to the root level target = target.getParent(); while (target != null && target != port) { target.translateToParent(exposeRegion); target = target.getParent(); } // Merge selection handles if any to the exposeRegion List handles = ((TableResizeEditPolice)policy).getHandles(); for (Iterator iter = handles.iterator();iter.hasNext();) { AbstractHandle handle = (AbstractHandle)iter.next(); Locator locator = handle.getLocator(); locator.relocate( handle ); exposeRegion.union(handle.getBounds().getCopy()); } exposeRegion.getExpanded(5, 5); Dimension viewportSize = port.getClientArea().getSize(); Point topLeft = exposeRegion.getTopLeft(); Point bottomRight = exposeRegion.getBottomRight().translate(viewportSize.getNegated()); Point finalLocation = new Point(); if (viewportSize.width < exposeRegion.width) finalLocation.x = Math.min(bottomRight.x, Math.max(topLeft.x, port.getViewLocation().x)); else finalLocation.x = Math.min(topLeft.x, Math.max(bottomRight.x, port.getViewLocation().x)); if (viewportSize.height < exposeRegion.height) finalLocation.y = Math.min(bottomRight.y, Math.max(topLeft.y, port.getViewLocation().y)); else finalLocation.y = Math.min(topLeft.y, Math.max(bottomRight.y, port.getViewLocation().y)); getFigureCanvas().scrollSmoothTo(finalLocation.x, finalLocation.y); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/879c6e2a73c9076aeeed74591c18318a1397dcd3/DeferredGraphicalViewer.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/parts/DeferredGraphicalViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
283,
24293,
12,
4666,
1988,
1087,
13,
202,
95,
202,
565,
202,
202,
22743,
1756,
273,
2812,
15906,
12971,
7675,
588,
22743,
5621,
202,
202,
5501,
15906,
1018,
273,
14015,
4137,
1706,
4666,
1988,
13,
2680,
2934,
588,
42,
15906,
5621,
202,
202,
19463,
15722,
5165,
273,
1018,
18,
588,
5694,
7675,
588,
2951,
5621,
9506,
202,
759,
968,
326,
3354,
3874,
5086,
202,
202,
4666,
2582,
3329,
273,
1087,
18,
588,
4666,
2582,
12,
4666,
2582,
18,
18864,
67,
6331,
1781,
67,
16256,
1769,
9506,
202,
759,
971,
326,
3329,
2231,
584,
2006,
326,
7372,
16,
11247,
16,
3541,
202,
202,
759,
805,
358,
2282,
14273,
202,
202,
430,
261,
401,
261,
5086,
1276,
467,
6233,
8788,
4666,
2582,
8623,
202,
202,
95,
1875,
565,
2240,
18,
266,
24293,
12,
2680,
1769,
1082,
565,
327,
31,
202,
202,
97,
202,
202,
759,
5783,
4204,
15722,
5165,
358,
326,
1365,
1801,
202,
202,
3299,
273,
1018,
18,
588,
3054,
5621,
202,
202,
17523,
261,
3299,
480,
446,
597,
1018,
480,
1756,
13,
288,
1082,
202,
3299,
18,
13929,
774,
3054,
12,
338,
4150,
5165,
1769,
1082,
202,
3299,
273,
1018,
18,
588,
3054,
5621,
202,
202,
97,
9506,
202,
759,
202,
6786,
4421,
7372,
309,
1281,
358,
326,
15722,
5165,
202,
202,
682,
7372,
273,
14015,
1388,
12182,
4666,
5850,
1812,
13,
5086,
2934,
588,
8788,
5621,
202,
202,
1884,
261,
3198,
1400,
273,
7372,
18,
9838,
5621,
2165,
18,
5332,
2134,
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,
225,
202,
482,
918,
283,
24293,
12,
4666,
1988,
1087,
13,
202,
95,
202,
565,
202,
202,
22743,
1756,
273,
2812,
15906,
12971,
7675,
588,
22743,
5621,
202,
202,
5501,
15906,
1018,
273,
14015,
4137,
1706,
4666,
1988,
13,
2680,
2934,
588,
42,
15906,
5621,
202,
202,
19463,
15722,
5165,
273,
1018,
18,
588,
5694,
7675,
588,
2951,
5621,
9506,
202,
759,
968,
326,
3354,
3874,
5086,
202,
202,
4666,
2582,
3329,
273,
1087,
18,
588,
4666,
2582,
12,
4666,
2582,
18,
18864,
67,
6331,
1781,
67,
16256,
1769,
9506,
202,
759,
971,
326,
3329,
2231,
584,
2006,
326,
7372,
16,
11247,
16,
3541,
202,
202,
759,
805,
358,
2282,
14273,
202,
202,
430,
261,
401,
261,
5086,
1276,
2
] |
links.addChild("li").addChild("a", "href", "#running", "Running (" + running + ")"); links.addChild("li").addChild("a", "href", "#queued", "Queued (" + queued + ")"); links.addChild("li").addChild("a", "href", "#visited", "Visited (" + visited + ")"); links.addChild("li").addChild("a", "href", "#failed", "Failed (" + failed + ")");
|
links.addChild("li").addChild("a", "href", "#running", "Running (" + running + ')'); links.addChild("li").addChild("a", "href", "#queued", "Queued (" + queued + ')'); links.addChild("li").addChild("a", "href", "#visited", "Visited (" + visited + ')'); links.addChild("li").addChild("a", "href", "#failed", "Failed (" + failed + ')');
|
private HTMLNode createNavbar(int running, int queued, int visited, int failed) { HTMLNode infobox = new HTMLNode("div", "class", "infobox navbar"); infobox.addChild("div", "class", "infobox-header", "Page navigation"); HTMLNode links = infobox.addChild("div", "class", "infobox-content").addChild("ul"); links.addChild("li").addChild("a", "href", "#running", "Running (" + running + ")"); links.addChild("li").addChild("a", "href", "#queued", "Queued (" + queued + ")"); links.addChild("li").addChild("a", "href", "#visited", "Visited (" + visited + ")"); links.addChild("li").addChild("a", "href", "#failed", "Failed (" + failed + ")"); return infobox; }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/62fd59041864b4ed1f43adc676de6bfb5ea977f3/NinjaSpider.java/buggy/src/freenet/clients/http/NinjaSpider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3982,
907,
752,
12599,
3215,
12,
474,
3549,
16,
509,
12234,
16,
509,
9711,
16,
509,
2535,
13,
288,
202,
202,
4870,
907,
1123,
2147,
273,
394,
3982,
907,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
8775,
3215,
8863,
202,
202,
1376,
2147,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
17,
3374,
3113,
315,
1964,
10394,
8863,
202,
202,
4870,
907,
4716,
273,
1123,
2147,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
17,
1745,
20387,
1289,
1763,
2932,
332,
8863,
202,
202,
7135,
18,
1289,
1763,
2932,
549,
20387,
1289,
1763,
2932,
69,
3113,
315,
7547,
3113,
6619,
8704,
3113,
315,
7051,
7566,
397,
3549,
397,
7310,
1769,
202,
202,
7135,
18,
1289,
1763,
2932,
549,
20387,
1289,
1763,
2932,
69,
3113,
315,
7547,
3113,
6619,
19499,
3113,
315,
21039,
7566,
397,
12234,
397,
7310,
1769,
202,
202,
7135,
18,
1289,
1763,
2932,
549,
20387,
1289,
1763,
2932,
69,
3113,
315,
7547,
3113,
6619,
30129,
3113,
315,
30019,
7566,
397,
9711,
397,
7310,
1769,
202,
202,
7135,
18,
1289,
1763,
2932,
549,
20387,
1289,
1763,
2932,
69,
3113,
315,
7547,
3113,
6619,
7307,
3113,
315,
2925,
7566,
397,
2535,
397,
7310,
1769,
202,
202,
2463,
1123,
2147,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3982,
907,
752,
12599,
3215,
12,
474,
3549,
16,
509,
12234,
16,
509,
9711,
16,
509,
2535,
13,
288,
202,
202,
4870,
907,
1123,
2147,
273,
394,
3982,
907,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
8775,
3215,
8863,
202,
202,
1376,
2147,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
17,
3374,
3113,
315,
1964,
10394,
8863,
202,
202,
4870,
907,
4716,
273,
1123,
2147,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
17,
1745,
20387,
1289,
1763,
2932,
332,
8863,
202,
202,
7135,
18,
1289,
1763,
2932,
549,
20387,
1289,
1763,
2932,
69,
3113,
315,
7547,
3113,
6619,
8704,
3113,
315,
7051,
7566,
397,
2
] |
UIManager.LookAndFeelInfo[] info =
|
UIManager.LookAndFeelInfo[] info =
|
LAFListModel() { UIManager.LookAndFeelInfo[] info = UIManager.getInstalledLookAndFeels(); fLAFs = new LookAndFeel[info.length]; for (int i = 0; i < info.length; i++) { try { String name = info[i].getClassName(); Class c = Class.forName(name); fLAFs[i] = (LookAndFeel)c.newInstance(); } catch (Exception e){ } } }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/UIPrefsEditor.java/buggy/grendel/sources/grendel/prefs/UIPrefsEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2928,
42,
682,
1488,
1435,
288,
1377,
6484,
1318,
18,
9794,
1876,
2954,
292,
966,
8526,
1123,
273,
540,
6484,
1318,
18,
588,
16747,
9794,
1876,
2954,
10558,
5621,
1377,
284,
2534,
12432,
273,
394,
10176,
1876,
2954,
292,
63,
1376,
18,
2469,
15533,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
18,
2469,
31,
277,
27245,
288,
3639,
775,
288,
1850,
514,
508,
273,
1123,
63,
77,
8009,
588,
3834,
5621,
1850,
1659,
276,
273,
1659,
18,
1884,
461,
12,
529,
1769,
1850,
284,
2534,
12432,
63,
77,
65,
273,
261,
9794,
1876,
2954,
292,
13,
71,
18,
2704,
1442,
5621,
3639,
289,
1044,
261,
503,
425,
15329,
3639,
289,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2928,
42,
682,
1488,
1435,
288,
1377,
6484,
1318,
18,
9794,
1876,
2954,
292,
966,
8526,
1123,
273,
540,
6484,
1318,
18,
588,
16747,
9794,
1876,
2954,
10558,
5621,
1377,
284,
2534,
12432,
273,
394,
10176,
1876,
2954,
292,
63,
1376,
18,
2469,
15533,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
18,
2469,
31,
277,
27245,
288,
3639,
775,
288,
1850,
514,
508,
273,
1123,
63,
77,
8009,
588,
3834,
5621,
1850,
1659,
276,
273,
1659,
18,
1884,
461,
12,
529,
1769,
1850,
284,
2534,
12432,
63,
77,
65,
273,
261,
9794,
1876,
2954,
292,
13,
71,
18,
2704,
1442,
5621,
3639,
289,
1044,
261,
503,
425,
15329,
3639,
289,
1377,
289,
565,
289,
2
] |
if( sm_logger.isLoggable( Level.FINER ) )
|
if( sm_logger.isLoggingEnterExitLevel() )
|
private boolean supportsNamedResults() throws DataException { String methodName = "supportsNamedResults"; sm_logger.entering( sm_className, methodName ); if( m_supportsNamedResults != UNKNOWN ) { boolean ret = ( m_supportsNamedResults == TRUE ); if( sm_logger.isLoggable( Level.FINER ) ) sm_logger.exiting( sm_className, methodName, Boolean.valueOf( ret ) ); return ret; } // else it's unknown right now boolean b = m_connection.getMetaData( m_dataSetType ).supportsNamedResultSets( ); m_supportsNamedResults = b ? TRUE : FALSE; if( sm_logger.isLoggable( Level.FINER ) ) sm_logger.exiting( sm_className, methodName, Boolean.valueOf( b ) ); return b; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/2ac885878a23bee92cd501683619a083c7b0e41d/PreparedStatement.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/odaconsumer/PreparedStatement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6146,
7604,
3447,
1435,
1216,
1910,
503,
202,
95,
202,
202,
780,
4918,
273,
315,
28064,
7604,
3447,
14432,
202,
202,
4808,
67,
4901,
18,
2328,
310,
12,
3029,
67,
12434,
16,
4918,
11272,
9506,
202,
430,
12,
312,
67,
28064,
7604,
3447,
480,
13598,
262,
202,
202,
95,
1082,
202,
6494,
325,
273,
261,
312,
67,
28064,
7604,
3447,
422,
5383,
11272,
25083,
202,
430,
12,
3029,
67,
4901,
18,
291,
1343,
8455,
12,
4557,
18,
7263,
654,
262,
262,
9506,
202,
4808,
67,
4901,
18,
8593,
310,
12,
3029,
67,
12434,
16,
4918,
16,
3411,
18,
1132,
951,
12,
325,
262,
11272,
25083,
202,
2463,
325,
31,
202,
202,
97,
202,
202,
759,
469,
518,
1807,
5917,
2145,
2037,
202,
202,
6494,
324,
273,
1875,
202,
81,
67,
4071,
18,
588,
6998,
12,
312,
67,
892,
25181,
262,
18,
28064,
7604,
1253,
2785,
12,
11272,
202,
202,
81,
67,
28064,
7604,
3447,
273,
324,
692,
5383,
294,
4934,
31,
202,
202,
430,
12,
3029,
67,
4901,
18,
291,
1343,
8455,
12,
4557,
18,
7263,
654,
262,
262,
1082,
202,
4808,
67,
4901,
18,
8593,
310,
12,
3029,
67,
12434,
16,
4918,
16,
3411,
18,
1132,
951,
12,
324,
262,
11272,
202,
202,
2463,
324,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6146,
7604,
3447,
1435,
1216,
1910,
503,
202,
95,
202,
202,
780,
4918,
273,
315,
28064,
7604,
3447,
14432,
202,
202,
4808,
67,
4901,
18,
2328,
310,
12,
3029,
67,
12434,
16,
4918,
11272,
9506,
202,
430,
12,
312,
67,
28064,
7604,
3447,
480,
13598,
262,
202,
202,
95,
1082,
202,
6494,
325,
273,
261,
312,
67,
28064,
7604,
3447,
422,
5383,
11272,
25083,
202,
430,
12,
3029,
67,
4901,
18,
291,
1343,
8455,
12,
4557,
18,
7263,
654,
262,
262,
9506,
202,
4808,
67,
4901,
18,
8593,
310,
12,
3029,
67,
12434,
16,
4918,
16,
3411,
18,
1132,
951,
12,
325,
262,
11272,
25083,
202,
2463,
325,
31,
202,
202,
97,
202,
202,
759,
2
] |
this.documentIds = documentIds ;
|
this.documentIds = documentIds;
|
DocumentsIterator( int[] documentIds ) { this.documentIds = documentIds ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/5ea3be799c5f7f70e6b5c2efad65059623f907ac/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4319,
87,
3198,
12,
509,
8526,
1668,
2673,
262,
288,
5411,
333,
18,
5457,
2673,
273,
1668,
2673,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
540,
4319,
87,
3198,
12,
509,
8526,
1668,
2673,
262,
288,
5411,
333,
18,
5457,
2673,
273,
1668,
2673,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Vector newVector = new Vector(1); newVector.add(new Option("\tTurns off the normalization of attribute "+ "values in distance calculation.\n", "D", 0,"-D"));
|
Vector newVector = new Vector(); newVector.add(new Option("\tDistance function to use.\n", "A", 1,"-A"));
|
public Enumeration listOptions() { Vector newVector = new Vector(1); newVector.add(new Option("\tTurns off the normalization of attribute "+ "values in distance calculation.\n", "D", 0,"-D")); return newVector.elements(); }
|
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/e3068e9b529cd38a9acef7b9e0f45eb544778b97/NearestNeighbourSearch.java/buggy/weka/core/NearestNeighbourSearch.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13864,
666,
1320,
1435,
288,
565,
5589,
394,
5018,
273,
394,
5589,
12,
21,
1769,
565,
394,
5018,
18,
1289,
12,
2704,
2698,
31458,
88,
31873,
3397,
326,
13728,
434,
1566,
13773,
11794,
315,
2372,
316,
3888,
11096,
8403,
82,
3113,
11794,
315,
40,
3113,
374,
10837,
17,
40,
7923,
1769,
565,
327,
394,
5018,
18,
6274,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13864,
666,
1320,
1435,
288,
565,
5589,
394,
5018,
273,
394,
5589,
12,
21,
1769,
565,
394,
5018,
18,
1289,
12,
2704,
2698,
31458,
88,
31873,
3397,
326,
13728,
434,
1566,
13773,
11794,
315,
2372,
316,
3888,
11096,
8403,
82,
3113,
11794,
315,
40,
3113,
374,
10837,
17,
40,
7923,
1769,
565,
327,
394,
5018,
18,
6274,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public DesktopPropertyEditorFactory(VariableBundle bundle, JDesktopPane newDesktop, IconManager manager) { super(bundle, manager);
|
public DesktopPropertyEditorFactory(VariableBundle bundle, JDesktopPane newDesktop, IconManager manager, HelpBroker broker) { super(bundle, manager, broker);
|
public DesktopPropertyEditorFactory(VariableBundle bundle, JDesktopPane newDesktop, IconManager manager) { super(bundle, manager); desktop = newDesktop; }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/ad1d7a526540019e033079228544b3a802a556d3/DesktopPropertyEditorFactory.java/buggy/src/net/suberic/util/gui/propedit/DesktopPropertyEditorFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10597,
11869,
1396,
6946,
1733,
12,
3092,
3405,
3440,
16,
804,
27583,
8485,
394,
27583,
16,
16011,
1318,
3301,
13,
288,
565,
2240,
12,
9991,
16,
3301,
1769,
565,
21304,
273,
394,
27583,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10597,
11869,
1396,
6946,
1733,
12,
3092,
3405,
3440,
16,
804,
27583,
8485,
394,
27583,
16,
16011,
1318,
3301,
13,
288,
565,
2240,
12,
9991,
16,
3301,
1769,
565,
21304,
273,
394,
27583,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return value.doubleValue(); }
|
return value.doubleValue(); }
|
public double getDoubleValue() { return value.doubleValue(); }
|
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1cc89bd397c0f049e6fa3045916fd6d9a3cdada8/RubyBignum.java/clean/org/jruby/RubyBignum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
16097,
620,
1435,
288,
3639,
327,
460,
18,
9056,
620,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
16097,
620,
1435,
288,
3639,
327,
460,
18,
9056,
620,
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
] |
getFolderDisplay().repaint(); }
|
selectNextMessage(); }
|
public void run() { getFolderDisplay().repaint(); }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/525467dd9275c7e45b1bc6b7d6234d42d119bb93/FolderInternalFrame.java/buggy/net/suberic/pooka/gui/FolderInternalFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
565,
29001,
4236,
7675,
14462,
1598,
5621,
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,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
565,
29001,
4236,
7675,
14462,
1598,
5621,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static Border createRaisedBevelBorder() { /* Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.) Returns: the Border object createLoweredBevelBorder */ return null; }
|
public static Border createRaisedBevelBorder () { return new BevelBorder (BevelBorder.RAISED); }
|
public static Border createRaisedBevelBorder() { /* Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.) Returns: the Border object createLoweredBevelBorder */ return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
13525,
752,
12649,
5918,
1919,
941,
8107,
1435,
288,
1748,
1082,
282,
12953,
279,
5795,
598,
279,
11531,
506,
941,
329,
3591,
16,
1450,
5186,
18117,
699,
16601,
434,
326,
1794,
1807,
783,
5412,
2036,
364,
8839,
310,
16,
471,
23433,
264,
699,
14968,
364,
10510,
87,
18,
261,
382,
279,
11531,
5795,
16,
8839,
87,
854,
603,
1760,
471,
10510,
87,
854,
3613,
4644,
421,
12998,
1082,
282,
2860,
30,
202,
282,
326,
13525,
733,
202,
2640,
4070,
329,
1919,
941,
8107,
1082,
282,
1195,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
482,
760,
13525,
752,
12649,
5918,
1919,
941,
8107,
1435,
288,
1748,
1082,
282,
12953,
279,
5795,
598,
279,
11531,
506,
941,
329,
3591,
16,
1450,
5186,
18117,
699,
16601,
434,
326,
1794,
1807,
783,
5412,
2036,
364,
8839,
310,
16,
471,
23433,
264,
699,
14968,
364,
10510,
87,
18,
261,
382,
279,
11531,
5795,
16,
8839,
87,
854,
603,
1760,
471,
10510,
87,
854,
3613,
4644,
421,
12998,
1082,
282,
2860,
30,
202,
282,
326,
13525,
733,
202,
2640,
4070,
329,
1919,
941,
8107,
1082,
282,
1195,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new ThisOrTargetPointcut(isThis, newType);
|
Pointcut ret = new ThisOrTargetPointcut(isThis, newType); ret.copyLocationFrom(this); return ret;
|
public Pointcut concretize1(ResolvedTypeX inAspect, IntMap bindings) { if (isDeclare(bindings.getEnclosingAdvice())) { // Enforce rule about which designators are supported in declare inAspect.getWorld().showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.THIS_OR_TARGET_IN_DECLARE,isThis?"this":"target"), bindings.getEnclosingAdvice().getSourceLocation(), null); return Pointcut.makeMatchesNothing(Pointcut.CONCRETE); } TypePattern newType = type.remapAdviceFormals(bindings); if (inAspect.crosscuttingMembers != null) { inAspect.crosscuttingMembers.exposeType(newType.getExactType()); } return new ThisOrTargetPointcut(isThis, newType); }
|
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/1b6e9edfacf5f3d2732d164b15bc26022835c6ac/ThisOrTargetPointcut.java/clean/weaver/src/org/aspectj/weaver/patterns/ThisOrTargetPointcut.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4686,
5150,
20570,
1349,
554,
21,
12,
12793,
559,
60,
316,
17468,
16,
3094,
863,
7394,
13,
288,
202,
202,
430,
261,
291,
3456,
834,
12,
15863,
18,
588,
21594,
1871,
633,
1435,
3719,
288,
1082,
225,
368,
31716,
1720,
2973,
1492,
8281,
3062,
854,
3260,
316,
14196,
1082,
225,
316,
17468,
18,
588,
18071,
7675,
4500,
1079,
12,
45,
1079,
18,
3589,
16,
1082,
21114,
202,
3218,
21851,
5058,
18,
2139,
12,
3218,
21851,
5058,
18,
2455,
5127,
67,
916,
67,
16374,
67,
706,
67,
1639,
15961,
862,
16,
291,
2503,
7225,
2211,
15563,
3299,
6,
3631,
9506,
202,
15863,
18,
588,
21594,
1871,
633,
7675,
588,
1830,
2735,
9334,
446,
1769,
1082,
225,
327,
4686,
5150,
18,
6540,
6869,
23814,
12,
2148,
5150,
18,
2248,
5458,
1448,
1769,
202,
202,
97,
9506,
202,
559,
3234,
23319,
273,
618,
18,
266,
1458,
1871,
633,
1204,
1031,
12,
15863,
1769,
202,
202,
430,
261,
267,
17468,
18,
71,
6973,
1017,
25387,
6918,
480,
446,
13,
288,
1082,
202,
267,
17468,
18,
71,
6973,
1017,
25387,
6918,
18,
338,
4150,
559,
12,
2704,
559,
18,
588,
14332,
559,
10663,
202,
202,
97,
9506,
202,
2463,
394,
1220,
1162,
2326,
2148,
5150,
12,
291,
2503,
16,
23319,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4686,
5150,
20570,
1349,
554,
21,
12,
12793,
559,
60,
316,
17468,
16,
3094,
863,
7394,
13,
288,
202,
202,
430,
261,
291,
3456,
834,
12,
15863,
18,
588,
21594,
1871,
633,
1435,
3719,
288,
1082,
225,
368,
31716,
1720,
2973,
1492,
8281,
3062,
854,
3260,
316,
14196,
1082,
225,
316,
17468,
18,
588,
18071,
7675,
4500,
1079,
12,
45,
1079,
18,
3589,
16,
1082,
21114,
202,
3218,
21851,
5058,
18,
2139,
12,
3218,
21851,
5058,
18,
2455,
5127,
67,
916,
67,
16374,
67,
706,
67,
1639,
15961,
862,
16,
291,
2503,
7225,
2211,
15563,
3299,
6,
3631,
9506,
202,
15863,
18,
588,
21594,
1871,
633,
7675,
588,
1830,
2735,
9334,
446,
1769,
1082,
225,
327,
2
] |
private LegendBehaviorType( int value, String name )
|
private LegendBehaviorType( int value, String name, String literal )
|
private LegendBehaviorType( int value, String name ) { super( value, name ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/LegendBehaviorType.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/LegendBehaviorType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
17167,
409,
9212,
559,
12,
509,
460,
16,
514,
508,
262,
202,
95,
202,
202,
9565,
12,
460,
16,
508,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
17167,
409,
9212,
559,
12,
509,
460,
16,
514,
508,
262,
202,
95,
202,
202,
9565,
12,
460,
16,
508,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_t = __t2238;
|
_t = __t2241;
|
public final void altertablestate(AST _t) throws RecognitionException { AST altertablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2238 = _t; AST tmp537_AST_in = (AST)_t; match(_t,ALTER); _t = _t.getFirstChild(); AST tmp538_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); AST tmp539_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ADD: { AST tmp540_AST_in = (AST)_t; match(_t,ADD); _t = _t.getNextSibling(); AST tmp541_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getNextSibling(); sql_col_def(_t); _t = _retTree; break; } case DROP: { AST tmp542_AST_in = (AST)_t; match(_t,DROP); _t = _t.getNextSibling(); AST tmp543_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getNextSibling(); field(_t); _t = _retTree; break; } case ALTER: { AST tmp544_AST_in = (AST)_t; match(_t,ALTER); _t = _t.getNextSibling(); AST tmp545_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getNextSibling(); field(_t); _t = _retTree; { _loop2243: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FORMAT: { AST __t2241 = _t; AST tmp546_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2241; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case DEFAULT: { AST __t2242 = _t; AST tmp547_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2242; _t = _t.getNextSibling(); break; } case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } default: { break _loop2243; } } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2238; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
10182,
7032,
80,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
10182,
7032,
80,
395,
340,
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,
3787,
7414,
273,
389,
88,
31,
202,
202,
9053,
1853,
25,
6418,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
18843,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
25,
7414,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7775,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
9053,
1853,
25,
5520,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
22261,
67,
1985,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
11689,
30,
202,
202,
95,
1082,
202,
9053,
1853,
6564,
20,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
8355,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
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,
727,
918,
10182,
7032,
80,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
10182,
7032,
80,
395,
340,
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,
3787,
7414,
273,
389,
88,
31,
202,
202,
9053,
1853,
25,
6418,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
18843,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
25,
7414,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7775,
2
] |
case T_null : switch (rightId){ case T_char : return Constant.fromValue(left.stringValue() + right.stringValue()); case T_float: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_double: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_byte: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_short: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_int: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_long: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); }
|
public static final Constant computeConstantOperationPLUS(Constant left, int leftId, Constant right, int rightId) { switch (leftId){ case T_JavaLangObject : if (rightId == T_JavaLangString) { return Constant.fromValue(left.stringValue() + right.stringValue()); } case T_boolean : if (rightId == T_JavaLangString) { return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_char : switch (rightId){ case T_char : return Constant.fromValue(left.charValue() + right.charValue()); case T_float: return Constant.fromValue(left.charValue() + right.floatValue()); case T_double: return Constant.fromValue(left.charValue() + right.doubleValue()); case T_byte: return Constant.fromValue(left.charValue() + right.byteValue()); case T_short: return Constant.fromValue(left.charValue() + right.shortValue()); case T_int: return Constant.fromValue(left.charValue() + right.intValue()); case T_long: return Constant.fromValue(left.charValue() + right.longValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_float : switch (rightId){ case T_char : return Constant.fromValue(left.floatValue() + right.charValue()); case T_float: return Constant.fromValue(left.floatValue() + right.floatValue()); case T_double: return Constant.fromValue(left.floatValue() + right.doubleValue()); case T_byte: return Constant.fromValue(left.floatValue() + right.byteValue()); case T_short: return Constant.fromValue(left.floatValue() + right.shortValue()); case T_int: return Constant.fromValue(left.floatValue() + right.intValue()); case T_long: return Constant.fromValue(left.floatValue() + right.longValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_double : switch (rightId){ case T_char : return Constant.fromValue(left.doubleValue() + right.charValue()); case T_float: return Constant.fromValue(left.doubleValue() + right.floatValue()); case T_double: return Constant.fromValue(left.doubleValue() + right.doubleValue()); case T_byte: return Constant.fromValue(left.doubleValue() + right.byteValue()); case T_short: return Constant.fromValue(left.doubleValue() + right.shortValue()); case T_int: return Constant.fromValue(left.doubleValue() + right.intValue()); case T_long: return Constant.fromValue(left.doubleValue() + right.longValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_byte : switch (rightId){ case T_char : return Constant.fromValue(left.byteValue() + right.charValue()); case T_float: return Constant.fromValue(left.byteValue() + right.floatValue()); case T_double: return Constant.fromValue(left.byteValue() + right.doubleValue()); case T_byte: return Constant.fromValue(left.byteValue() + right.byteValue()); case T_short: return Constant.fromValue(left.byteValue() + right.shortValue()); case T_int: return Constant.fromValue(left.byteValue() + right.intValue()); case T_long: return Constant.fromValue(left.byteValue() + right.longValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_short : switch (rightId){ case T_char : return Constant.fromValue(left.shortValue() + right.charValue()); case T_float: return Constant.fromValue(left.shortValue() + right.floatValue()); case T_double: return Constant.fromValue(left.shortValue() + right.doubleValue()); case T_byte: return Constant.fromValue(left.shortValue() + right.byteValue()); case T_short: return Constant.fromValue(left.shortValue() + right.shortValue()); case T_int: return Constant.fromValue(left.shortValue() + right.intValue()); case T_long: return Constant.fromValue(left.shortValue() + right.longValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_int : switch (rightId){ case T_char : return Constant.fromValue(left.intValue() + right.charValue()); case T_float: return Constant.fromValue(left.intValue() + right.floatValue()); case T_double: return Constant.fromValue(left.intValue() + right.doubleValue()); case T_byte: return Constant.fromValue(left.intValue() + right.byteValue()); case T_short: return Constant.fromValue(left.intValue() + right.shortValue()); case T_int: return Constant.fromValue(left.intValue() + right.intValue()); case T_long: return Constant.fromValue(left.intValue() + right.longValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_long : switch (rightId){ case T_char : return Constant.fromValue(left.longValue() + right.charValue()); case T_float: return Constant.fromValue(left.longValue() + right.floatValue()); case T_double: return Constant.fromValue(left.longValue() + right.doubleValue()); case T_byte: return Constant.fromValue(left.longValue() + right.byteValue()); case T_short: return Constant.fromValue(left.longValue() + right.shortValue()); case T_int: return Constant.fromValue(left.longValue() + right.intValue()); case T_long: return Constant.fromValue(left.longValue() + right.longValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_JavaLangString : switch (rightId){ case T_char : return Constant.fromValue(left.stringValue() + right.stringValue()); case T_float: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_double: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_byte: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_short: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_int: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_long: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_boolean: return Constant.fromValue(left.stringValue() + right.stringValue()); } break; case T_null : switch (rightId){ case T_char : return Constant.fromValue(left.stringValue() + right.stringValue()); case T_float: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_double: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_byte: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_short: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_int: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_long: return Constant.fromValue(left.stringValue() + right.stringValue()); case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); } } return NotAConstant; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c6ea2a72647dce31af35c91712fb9d7b45a7c96d/Constant.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
10551,
3671,
6902,
2988,
6253,
3378,
12,
6902,
2002,
16,
509,
2002,
548,
16,
10551,
2145,
16,
509,
2145,
548,
13,
288,
9506,
202,
9610,
261,
4482,
548,
15329,
1082,
202,
3593,
399,
67,
5852,
7275,
921,
294,
9506,
202,
430,
261,
4083,
548,
422,
399,
67,
5852,
7275,
780,
13,
288,
6862,
202,
2463,
10551,
18,
2080,
620,
12,
4482,
18,
1080,
620,
1435,
397,
2145,
18,
1080,
620,
10663,
9506,
202,
97,
1082,
202,
3593,
399,
67,
6494,
294,
9506,
202,
430,
261,
4083,
548,
422,
399,
67,
5852,
7275,
780,
13,
288,
6862,
202,
2463,
10551,
18,
2080,
620,
12,
4482,
18,
1080,
620,
1435,
397,
2145,
18,
1080,
620,
10663,
9506,
202,
97,
1082,
202,
8820,
31,
1082,
202,
3593,
399,
67,
3001,
294,
9506,
202,
9610,
261,
4083,
548,
15329,
6862,
202,
3593,
399,
67,
3001,
294,
202,
2463,
10551,
18,
2080,
620,
12,
4482,
18,
3001,
620,
1435,
397,
2145,
18,
3001,
620,
10663,
6862,
202,
3593,
399,
67,
5659,
30,
202,
2463,
10551,
18,
2080,
620,
12,
4482,
18,
3001,
620,
1435,
397,
2145,
18,
5659,
620,
10663,
6862,
202,
3593,
399,
67,
9056,
30,
202,
2463,
10551,
18,
2080,
620,
12,
4482,
18,
3001,
620,
1435,
397,
2145,
18,
9056,
620,
10663,
6862,
202,
3593,
399,
67,
7229,
30,
202,
2463,
10551,
18,
2080,
620,
12,
4482,
18,
3001,
620,
1435,
397,
2145,
18,
7229,
620,
10663,
6862,
202,
3593,
399,
67,
6620,
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,
760,
727,
10551,
3671,
6902,
2988,
6253,
3378,
12,
6902,
2002,
16,
509,
2002,
548,
16,
10551,
2145,
16,
509,
2145,
548,
13,
288,
9506,
202,
9610,
261,
4482,
548,
15329,
1082,
202,
3593,
399,
67,
5852,
7275,
921,
294,
9506,
202,
430,
261,
4083,
548,
422,
399,
67,
5852,
7275,
780,
13,
288,
6862,
202,
2463,
10551,
18,
2080,
620,
12,
4482,
18,
1080,
620,
1435,
397,
2145,
18,
1080,
620,
10663,
9506,
202,
97,
1082,
202,
3593,
399,
67,
6494,
294,
9506,
202,
430,
261,
4083,
548,
422,
399,
67,
5852,
7275,
780,
13,
288,
6862,
202,
2463,
10551,
18,
2080,
620,
12,
4482,
18,
1080,
620,
1435,
397,
2145,
18,
1080,
620,
10663,
2
] |
|
verifyEquals("Slow Loading Page", selenium.getTitle()); selenium.close(); selenium.selectWindow("null");
|
verifyEquals("Slow Loading Page", selenium.getTitle()); selenium.close(); selenium.selectWindow("null");
|
public void test() throws Throwable { selenium.setContext("Test SelectWindow", "info"); /* Test selectWindow */ // open|./tests/html/test_select_window.html| selenium.open("./tests/html/test_select_window.html"); // click|popupPage| selenium.click("popupPage"); // pause|500 pause(500); // selectWindow|myPopupWindow| selenium.selectWindow("myPopupWindow"); // verifyTitle|Select Window Popup| verifyEquals("Select Window Popup", selenium.getTitle()); /* Check page transitions in popup window */ /* quick loading page */ // clickAndWait|link=Click to load new page| selenium.click("link=Click to load new page"); selenium.waitForPageToLoad("60000"); // verifyTitle|Reload Page| verifyEquals("Reload Page", selenium.getTitle()); /* Slow loading page */ // clickAndWait|link=Click here| selenium.click("link=Click here"); selenium.waitForPageToLoad("60000"); // verifyTitle|Slow Loading Page| verifyEquals("Slow Loading Page", selenium.getTitle()); // close|| selenium.close(); // selectWindow|null| selenium.selectWindow("null"); checkForVerificationErrors(); }
|
25408 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25408/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestWaitInPopupWindow.java/buggy/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestWaitInPopupWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
6766,
3829,
3113,
315,
1376,
8863,
225,
1748,
7766,
2027,
3829,
4202,
1195,
1082,
202,
759,
1696,
96,
18,
19,
16341,
19,
2620,
19,
3813,
67,
4025,
67,
5668,
18,
2620,
96,
1082,
202,
1786,
17327,
18,
3190,
2932,
18,
19,
16341,
19,
2620,
19,
3813,
67,
4025,
67,
5668,
18,
2620,
8863,
1082,
202,
759,
4682,
96,
16086,
1964,
96,
1082,
202,
1786,
17327,
18,
7475,
2932,
16086,
1964,
8863,
1082,
202,
759,
11722,
96,
12483,
1082,
202,
19476,
12,
12483,
1769,
1082,
202,
759,
2027,
3829,
96,
4811,
13770,
3829,
96,
1082,
202,
1786,
17327,
18,
4025,
3829,
2932,
4811,
13770,
3829,
8863,
1082,
202,
759,
3929,
4247,
96,
3391,
6076,
10264,
416,
96,
1082,
202,
8705,
8867,
2932,
3391,
6076,
10264,
416,
3113,
29480,
18,
588,
4247,
10663,
202,
202,
20308,
2073,
1363,
13136,
316,
10431,
2742,
1195,
202,
202,
20308,
9549,
7153,
1363,
1195,
1082,
202,
759,
4682,
1876,
5480,
96,
1232,
33,
6563,
358,
1262,
394,
1363,
96,
1082,
202,
1786,
17327,
18,
7475,
2932,
1232,
33,
6563,
358,
1262,
394,
1363,
8863,
202,
202,
1786,
17327,
18,
7048,
1290,
1964,
26883,
2932,
26,
2787,
8863,
1082,
202,
759,
3929,
4247,
96,
13013,
3460,
96,
1082,
202,
8705,
8867,
2932,
13013,
3460,
3113,
29480,
18,
588,
4247,
10663,
202,
202,
20308,
348,
821,
7153,
1363,
1195,
1082,
202,
759,
4682,
1876,
5480,
96,
1232,
33,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
6766,
3829,
3113,
315,
1376,
8863,
225,
1748,
7766,
2027,
3829,
4202,
1195,
1082,
202,
759,
1696,
96,
18,
19,
16341,
19,
2620,
19,
3813,
67,
4025,
67,
5668,
18,
2620,
96,
1082,
202,
1786,
17327,
18,
3190,
2932,
18,
19,
16341,
19,
2620,
19,
3813,
67,
4025,
67,
5668,
18,
2620,
8863,
1082,
202,
759,
4682,
96,
16086,
1964,
96,
1082,
202,
1786,
17327,
18,
7475,
2932,
16086,
1964,
8863,
1082,
202,
759,
11722,
96,
12483,
1082,
202,
19476,
12,
12483,
1769,
1082,
202,
759,
2027,
3829,
96,
4811,
13770,
3829,
96,
1082,
202,
1786,
17327,
18,
4025,
3829,
2932,
4811,
2
] |
progressBar.addChild("div", new String[] { "class", "title" }, new String[] { "progress_fraction_finalized", "This progress value is accurate as the download process has been finalized" }, nf.format((int) ((fetched / (double) min) * 1000) / 10.0) + "%");
|
progressBar.addChild("div", new String[] { "class", "title" }, new String[] { "progress_fraction_finalized", "This progress value is accurate" }, nf.format((int) ((fetched / (double) min) * 1000) / 10.0) + "%");
|
private HTMLNode createProgressCell(boolean started, int fetched, int failed, int fatallyFailed, int min, int total, boolean finalized) { HTMLNode progressCell = new HTMLNode("td", "class", "request-progress"); if (!started) { progressCell.addChild("#", "STARTING"); return progressCell; } //double frac = p.getSuccessFraction(); if (!core.isAdvancedDarknetEnabled()) { total = min; } if ((fetched < 0) || (total <= 0)) { progressCell.addChild("span", "class", "progress_fraction_unknown", "unknown"); } else { int fetchedPercent = (int) (fetched / (double) total * 100); int failedPercent = (int) (failed / (double) total * 100); int fatallyFailedPercent = (int) (fatallyFailed / (double) total * 100); int minPercent = (int) (min / (double) total * 100); HTMLNode progressBar = progressCell.addChild("div", "class", "progressbar"); progressBar.addChild("div", new String[] { "class", "style" }, new String[] { "progressbar-done", "width: " + fetchedPercent + "%;" }); if (failed > 0) progressBar.addChild("div", new String[] { "class", "style" }, new String[] { "progressbar-failed", "width: " + failedPercent + "%;" }); if (fatallyFailed > 0) progressBar.addChild("div", new String[] { "class", "style" }, new String[] { "progressbar-failed2", "width: " + fatallyFailedPercent + "%;" }); if ((fetched + failed + fatallyFailed) < min) progressBar.addChild("div", new String[] { "class", "style" }, new String[] { "progressbar-min", "width: " + (minPercent - fetchedPercent) + "%;" }); NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(1); if (finalized) { progressBar.addChild("div", new String[] { "class", "title" }, new String[] { "progress_fraction_finalized", "This progress value is accurate as the download process has been finalized" }, nf.format((int) ((fetched / (double) min) * 1000) / 10.0) + "%"); } else { progressBar.addChild("div", new String[] { "class", "title" }, new String[] { "progress_fraction_not_finalized", "This progress value is likely to change as the file download process has not been finalized" }, nf.format((int) ((fetched / (double) min) * 1000) / 10.0)+ "%"); } } return progressCell; }
|
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/0d840bf37fb172899f7049845b31046ff226f000/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3982,
907,
752,
5491,
4020,
12,
6494,
5746,
16,
509,
12807,
16,
509,
2535,
16,
509,
284,
270,
1230,
2925,
16,
509,
1131,
16,
509,
2078,
16,
1250,
727,
1235,
13,
288,
202,
202,
4870,
907,
4007,
4020,
273,
394,
3982,
907,
2932,
4465,
3113,
315,
1106,
3113,
315,
2293,
17,
8298,
8863,
202,
202,
430,
16051,
14561,
13,
288,
1082,
202,
8298,
4020,
18,
1289,
1763,
2932,
7,
3113,
315,
7570,
1360,
8863,
1082,
202,
2463,
4007,
4020,
31,
202,
202,
97,
9506,
202,
759,
9056,
12445,
273,
293,
18,
588,
4510,
13724,
5621,
202,
202,
430,
16051,
3644,
18,
291,
23618,
40,
1313,
2758,
1526,
10756,
288,
1082,
202,
4963,
273,
1131,
31,
202,
202,
97,
9506,
202,
430,
14015,
5754,
329,
411,
374,
13,
747,
261,
4963,
1648,
374,
3719,
288,
1082,
202,
8298,
4020,
18,
1289,
1763,
2932,
3969,
3113,
315,
1106,
3113,
315,
8298,
67,
16744,
67,
8172,
3113,
315,
8172,
8863,
202,
202,
97,
469,
288,
1082,
202,
474,
12807,
8410,
273,
261,
474,
13,
261,
5754,
329,
342,
261,
9056,
13,
2078,
380,
2130,
1769,
1082,
202,
474,
2535,
8410,
273,
261,
474,
13,
261,
7307,
342,
261,
9056,
13,
2078,
380,
2130,
1769,
1082,
202,
474,
284,
270,
1230,
2925,
8410,
273,
261,
474,
13,
261,
74,
270,
1230,
2925,
342,
261,
9056,
13,
2078,
380,
2130,
1769,
1082,
202,
474,
1131,
8410,
273,
261,
474,
13,
261,
1154,
342,
261,
9056,
13,
2078,
380,
2130,
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,
3982,
907,
752,
5491,
4020,
12,
6494,
5746,
16,
509,
12807,
16,
509,
2535,
16,
509,
284,
270,
1230,
2925,
16,
509,
1131,
16,
509,
2078,
16,
1250,
727,
1235,
13,
288,
202,
202,
4870,
907,
4007,
4020,
273,
394,
3982,
907,
2932,
4465,
3113,
315,
1106,
3113,
315,
2293,
17,
8298,
8863,
202,
202,
430,
16051,
14561,
13,
288,
1082,
202,
8298,
4020,
18,
1289,
1763,
2932,
7,
3113,
315,
7570,
1360,
8863,
1082,
202,
2463,
4007,
4020,
31,
202,
202,
97,
9506,
202,
759,
9056,
12445,
273,
293,
18,
588,
4510,
13724,
5621,
202,
202,
430,
16051,
3644,
18,
291,
23618,
40,
1313,
2758,
1526,
10756,
288,
1082,
202,
4963,
273,
1131,
31,
202,
2
] |
org.eclipse.wst.sse.core.internal.Logger.logException("Could not find plugin: " + descriptor, e);
|
org.eclipse.wst.sse.core.internal.Logger.logException("Could not find class: " + className, e);
|
protected AdapterFactory loadFactoryFromConfigurationElement(IConfigurationElement element, Object requesterType) { AdapterFactory factory = null; if (element.getName().equals(TAG_NAME)) { String contentType = element.getAttribute(ATTR_CONTENTTYPE); if (!requesterType.equals(contentType)) return null; String className = element.getAttribute(ATTR_CLASS); // String adapterKeyClass = element.getAttribute(ATTR_ADAPTERKEY); // String registerAdapters = // element.getAttribute(ATTR_REGISTERADAPTER); // if className is null, then no one defined the extension point // for adapter factories IPluginDescriptor descriptor = null; if (className != null) { try { factory = (AdapterFactory) element.createExecutableExtension(ATTR_CLASS); // Plugin plugin = null; descriptor = element.getDeclaringExtension().getDeclaringPluginDescriptor(); // plugin = descriptor.getPlugin(); } catch (CoreException e) { // if an error occurs here, its probably that the plugin // could not be found/loaded org.eclipse.wst.sse.core.internal.Logger.logException("Could not find plugin: " + descriptor, e); //$NON-NLS-1$ } catch (Exception e) { // if an error occurs here, its probably that the plugin // could not be found/loaded -- but in any case we just // want // to log the error and continue running and best we can. org.eclipse.wst.sse.core.internal.Logger.logException("Could not find plugin: " + descriptor, e); //$NON-NLS-1$ } // if (plugin != null) { // factory = oldAttributesCode(element, factory, className, // plugin); // } } return factory; }
|
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/425ffe7b68526a8574007dbae9d4ecfb097cff08/PluginContributedFactoryReader.java/buggy/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/modelhandler/PluginContributedFactoryReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
14238,
1733,
1262,
1733,
1265,
1750,
1046,
12,
45,
1750,
1046,
930,
16,
1033,
19961,
559,
13,
288,
202,
202,
4216,
1733,
3272,
273,
446,
31,
202,
202,
430,
261,
2956,
18,
17994,
7675,
14963,
12,
7927,
67,
1985,
3719,
288,
1082,
202,
780,
5064,
273,
930,
18,
588,
1499,
12,
12043,
67,
6067,
1157,
30651,
1769,
1082,
202,
430,
16051,
26192,
559,
18,
14963,
12,
22194,
3719,
9506,
202,
2463,
446,
31,
1082,
202,
780,
2658,
273,
930,
18,
588,
1499,
12,
12043,
67,
5237,
1769,
1082,
202,
759,
1082,
202,
780,
4516,
653,
797,
273,
930,
18,
588,
1499,
12,
12043,
67,
1880,
37,
1856,
654,
3297,
1769,
1082,
202,
759,
1082,
202,
780,
1744,
26620,
273,
1082,
202,
759,
930,
18,
588,
1499,
12,
12043,
67,
27511,
1880,
37,
1856,
654,
1769,
1082,
202,
759,
309,
2658,
353,
446,
16,
1508,
1158,
1245,
2553,
326,
2710,
1634,
1082,
202,
759,
364,
4516,
17456,
1082,
202,
45,
3773,
3187,
4950,
273,
446,
31,
1082,
202,
430,
261,
12434,
480,
446,
13,
288,
9506,
202,
698,
288,
6862,
202,
6848,
273,
261,
4216,
1733,
13,
930,
18,
2640,
17709,
3625,
12,
12043,
67,
5237,
1769,
6862,
202,
759,
9506,
202,
3773,
1909,
273,
446,
31,
6862,
202,
12628,
273,
930,
18,
588,
3456,
5968,
3625,
7675,
588,
3456,
5968,
3773,
3187,
5621,
6862,
202,
759,
6862,
202,
4094,
273,
4950,
18,
588,
3773,
5621,
9506,
202,
97,
1044,
261,
25341,
425,
13,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
14238,
1733,
1262,
1733,
1265,
1750,
1046,
12,
45,
1750,
1046,
930,
16,
1033,
19961,
559,
13,
288,
202,
202,
4216,
1733,
3272,
273,
446,
31,
202,
202,
430,
261,
2956,
18,
17994,
7675,
14963,
12,
7927,
67,
1985,
3719,
288,
1082,
202,
780,
5064,
273,
930,
18,
588,
1499,
12,
12043,
67,
6067,
1157,
30651,
1769,
1082,
202,
430,
16051,
26192,
559,
18,
14963,
12,
22194,
3719,
9506,
202,
2463,
446,
31,
1082,
202,
780,
2658,
273,
930,
18,
588,
1499,
12,
12043,
67,
5237,
1769,
1082,
202,
759,
1082,
202,
780,
4516,
653,
797,
273,
930,
18,
588,
1499,
12,
12043,
67,
1880,
37,
1856,
654,
3297,
1769,
1082,
202,
759,
1082,
202,
780,
2
] |
File file = new File(path, fileName);
|
File file = getFile(path, fileName);
|
public boolean isSourceModified(Resource resource) { /* * we assume that the file needs to be reloaded; * if we find the original file and it's unchanged, * then we'll flip this. */ boolean modified = true; String fileName = resource.getName(); String path = (String) templatePaths.get(fileName); File currentFile = null; for (int i = 0; currentFile == null && i < paths.size(); i++) { String testPath = (String) paths.get(i); File testFile = new File(testPath, fileName); if (testFile.canRead()) { currentFile = testFile; } } File file = new File(path, fileName); if (currentFile == null || !file.exists()) { /* * noop: if the file is missing now (either the cached * file is gone, or the file can no longer be found) * then we leave modified alone (it's set to true); a * reload attempt will be done, which will either use * a new template or fail with an appropriate message * about how the file couldn't be found. */ } else if (currentFile.equals(file) && file.canRead()) { /* * if only if currentFile is the same as file and * file.lastModified() is the same as * resource.getLastModified(), then we should use the * cached version. */ modified = (file.lastModified() != resource.getLastModified()); } /* * rsvc.debug("isSourceModified for " + fileName + ": " + modified); */ return modified; }
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/c989e4b7c49e165ba4f5e897573f881ea528c36f/FileResourceLoader.java/clean/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
1830,
4575,
12,
1420,
1058,
13,
565,
288,
3639,
1748,
540,
380,
732,
6750,
716,
326,
585,
4260,
358,
506,
283,
4230,
31,
1850,
380,
309,
732,
1104,
326,
2282,
585,
471,
518,
1807,
14827,
16,
540,
380,
1508,
732,
5614,
9668,
333,
18,
540,
1195,
3639,
1250,
4358,
273,
638,
31,
3639,
514,
3968,
273,
1058,
18,
17994,
5621,
3639,
514,
589,
273,
261,
780,
13,
1542,
4466,
18,
588,
12,
17812,
1769,
3639,
1387,
22650,
273,
446,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
22650,
422,
446,
597,
277,
411,
2953,
18,
1467,
5621,
277,
27245,
3639,
288,
5411,
514,
1842,
743,
273,
261,
780,
13,
2953,
18,
588,
12,
77,
1769,
5411,
1387,
1842,
812,
273,
394,
1387,
12,
3813,
743,
16,
3968,
1769,
5411,
309,
261,
3813,
812,
18,
4169,
1994,
10756,
5411,
288,
7734,
22650,
273,
1842,
812,
31,
5411,
289,
3639,
289,
3639,
1387,
585,
273,
6034,
12,
803,
16,
3968,
1769,
3639,
309,
261,
2972,
812,
422,
446,
747,
401,
768,
18,
1808,
10756,
3639,
288,
5411,
1748,
2398,
380,
17065,
30,
309,
326,
585,
353,
3315,
2037,
261,
73,
2927,
326,
3472,
2398,
380,
585,
353,
22296,
16,
578,
326,
585,
848,
1158,
7144,
506,
1392,
13,
2398,
380,
1508,
732,
8851,
4358,
24068,
261,
305,
1807,
444,
358,
638,
1769,
279,
2868,
380,
7749,
4395,
903,
506,
2731,
16,
1492,
903,
3344,
999,
2398,
380,
279,
394,
1542,
578,
2321,
598,
392,
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,
353,
1830,
4575,
12,
1420,
1058,
13,
565,
288,
3639,
1748,
540,
380,
732,
6750,
716,
326,
585,
4260,
358,
506,
283,
4230,
31,
1850,
380,
309,
732,
1104,
326,
2282,
585,
471,
518,
1807,
14827,
16,
540,
380,
1508,
732,
5614,
9668,
333,
18,
540,
1195,
3639,
1250,
4358,
273,
638,
31,
3639,
514,
3968,
273,
1058,
18,
17994,
5621,
3639,
514,
589,
273,
261,
780,
13,
1542,
4466,
18,
588,
12,
17812,
1769,
3639,
1387,
22650,
273,
446,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
22650,
422,
446,
597,
277,
411,
2953,
18,
1467,
5621,
277,
27245,
3639,
288,
5411,
514,
1842,
743,
273,
261,
780,
13,
2953,
18,
588,
12,
77,
2
] |
Type.char_type,
|
Scheme.charType,
|
public static void initMakeMethods() { if (scmCharType == null) { scmCharType = new ClassType ("kawa.lang.Char"); makeCharMethod = scmCharType.addMethod ("make", Compilation.int1Args, scmCharType, Access.PUBLIC|Access.STATIC); charValueMethod = scmCharType.addMethod ("charValue", Type.typeArray0, Type.char_type, Access.PUBLIC); } }
|
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/d4c270aca1f89430bf9969c44305c9d4a99f23f8/Char.java/buggy/kawa/lang/Char.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1208,
6464,
4712,
1435,
225,
288,
565,
309,
261,
1017,
81,
2156,
559,
422,
446,
13,
1377,
288,
202,
1017,
81,
2156,
559,
273,
394,
1659,
559,
7566,
79,
2219,
69,
18,
4936,
18,
2156,
8863,
202,
6540,
2156,
1305,
273,
29207,
2156,
559,
18,
1289,
1305,
7566,
6540,
3113,
6862,
1082,
22416,
18,
474,
21,
2615,
16,
6862,
1082,
29207,
2156,
559,
16,
6862,
1082,
5016,
18,
14939,
96,
1862,
18,
22741,
1769,
202,
3001,
620,
1305,
273,
29207,
2156,
559,
18,
1289,
1305,
7566,
3001,
620,
3113,
6862,
1082,
225,
1412,
18,
723,
1076,
20,
16,
6862,
1082,
225,
1412,
18,
3001,
67,
723,
16,
6862,
1082,
225,
5016,
18,
14939,
1769,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1208,
6464,
4712,
1435,
225,
288,
565,
309,
261,
1017,
81,
2156,
559,
422,
446,
13,
1377,
288,
202,
1017,
81,
2156,
559,
273,
394,
1659,
559,
7566,
79,
2219,
69,
18,
4936,
18,
2156,
8863,
202,
6540,
2156,
1305,
273,
29207,
2156,
559,
18,
1289,
1305,
7566,
6540,
3113,
6862,
1082,
22416,
18,
474,
21,
2615,
16,
6862,
1082,
29207,
2156,
559,
16,
6862,
1082,
5016,
18,
14939,
96,
1862,
18,
22741,
1769,
202,
3001,
620,
1305,
273,
29207,
2156,
559,
18,
1289,
1305,
7566,
3001,
620,
3113,
6862,
1082,
225,
1412,
18,
723,
1076,
20,
16,
6862,
1082,
225,
1412,
18,
3001,
67,
723,
16,
6862,
1082,
225,
5016,
18,
14939,
1769,
1377,
2
] |
return (isConnected || (hasCompletedHandshake() && (isVerifiedIncompatibleNewerVersion() || isVerifiedIncompatibleOlderVersion())));
|
return isConnected;
|
public boolean isConnected() { // maybe we should check the protocol versions too return (isConnected || (hasCompletedHandshake() && (isVerifiedIncompatibleNewerVersion() || isVerifiedIncompatibleOlderVersion()))); }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/f18d01b1fb86ddf4053d90e1f337f99ccd2ec255/PeerNode.java/clean/src/freenet/node/PeerNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
20854,
1435,
288,
377,
202,
759,
6944,
732,
1410,
866,
326,
1771,
5244,
4885,
4202,
327,
20854,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
20854,
1435,
288,
377,
202,
759,
6944,
732,
1410,
866,
326,
1771,
5244,
4885,
4202,
327,
20854,
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
] |
logger.logException("exception", e); if (!config.isFatalErrors()) { logger.logException("non-fatal: skipping", e);
|
logger.logException("exception", e); if (!config.isFatalErrors()) { logger.logException("non-fatal: skipping", e);
|
private void process() throws Exception { int eventType; // NOTE: next() skips comments, document-decl, ignorable-whitespace, // and processing-instructions automatically. // To catch these, use nextToken() instead. // For custom entity handling, nextToken() could also be used. boolean c = true; while (c) { // We *only* care about finding records, // then passing them off a new producer try { eventType = xpp.next(); switch (eventType) { case XmlPullParser.START_TAG: processStartElement(); break; case XmlPullParser.TEXT: // text in an unknown element, or otherwise a no-op break; case XmlPullParser.END_TAG: // end of an unknown element, or otherwise a no-op break; case XmlPullParser.START_DOCUMENT: break; case XmlPullParser.END_DOCUMENT: c = false; break; default: throw new XmlPullParserException("UNIMPLEMENTED: " + eventType); } } catch (Exception e) { if (currentFileBasename != null) { logger.warning("error in " + currentFileBasename + (currentRecordPath == null ? "" : (" at " + currentRecordPath))); } if (producer != null) { logger.warning(producer.getByteBufferDescription()); } if (xpp != null) { logger.warning("pos = " + xpp.getPositionDescription()); logger.warning("text = " + xpp.getText()); } logger.logException("exception", e); if (!config.isFatalErrors()) { // keep going logger.logException("non-fatal: skipping", e); event.stop(true); monitor.add(currentUri, event); if (currentContent != null) { currentContent.close(); } if (config.isUseFileNameIds()) { c = false; } continue; } // fatal logger.warning("re-throwing fatal error"); throw e; } } if (currentContent != null) { XmlPullParserException e = new XmlPullParserException( "end of document before end of current record!\n" + "recordName = " + recordName + ", recordNamespace = " + recordNamespace + " at " + xpp.getPositionDescription() + "\n" + currentUri); if (config.isFatalErrors()) { throw e; } logger.logException("non-fatal", e); if (currentContent != null) { currentContent.close(); } currentUri = null; producer = null; } }
|
52612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52612/427dffaa2ae12b73b84bf5f6a616ecd321087ce3/Loader.java/clean/src/java/com/marklogic/recordloader/Loader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
1435,
1216,
1185,
288,
202,
202,
474,
11216,
31,
202,
202,
759,
5219,
30,
1024,
1435,
24646,
5678,
16,
1668,
17,
8840,
16,
9750,
15514,
17,
18777,
16,
202,
202,
759,
471,
4929,
17,
25758,
6635,
18,
202,
202,
759,
2974,
1044,
4259,
16,
999,
9617,
1435,
3560,
18,
202,
202,
759,
2457,
1679,
1522,
5057,
16,
9617,
1435,
3377,
2546,
506,
1399,
18,
202,
202,
6494,
276,
273,
638,
31,
202,
202,
17523,
261,
71,
13,
288,
1082,
202,
759,
1660,
380,
3700,
14,
7671,
2973,
13727,
3853,
16,
1082,
202,
759,
1508,
9588,
2182,
3397,
279,
394,
12608,
1082,
202,
698,
288,
9506,
202,
2575,
559,
273,
619,
11858,
18,
4285,
5621,
9506,
202,
9610,
261,
2575,
559,
13,
288,
9506,
202,
3593,
5714,
9629,
2678,
18,
7570,
67,
7927,
30,
6862,
202,
2567,
1685,
1046,
5621,
6862,
202,
8820,
31,
9506,
202,
3593,
5714,
9629,
2678,
18,
5151,
30,
6862,
202,
759,
977,
316,
392,
5917,
930,
16,
578,
3541,
279,
1158,
17,
556,
6862,
202,
8820,
31,
9506,
202,
3593,
5714,
9629,
2678,
18,
4415,
67,
7927,
30,
6862,
202,
759,
679,
434,
392,
5917,
930,
16,
578,
3541,
279,
1158,
17,
556,
6862,
202,
8820,
31,
9506,
202,
3593,
5714,
9629,
2678,
18,
7570,
67,
18450,
30,
6862,
202,
8820,
31,
9506,
202,
3593,
5714,
9629,
2678,
18,
4415,
67,
18450,
30,
6862,
202,
71,
273,
629,
31,
6862,
202,
8820,
31,
9506,
202,
1886,
30,
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,
1152,
918,
1207,
1435,
1216,
1185,
288,
202,
202,
474,
11216,
31,
202,
202,
759,
5219,
30,
1024,
1435,
24646,
5678,
16,
1668,
17,
8840,
16,
9750,
15514,
17,
18777,
16,
202,
202,
759,
471,
4929,
17,
25758,
6635,
18,
202,
202,
759,
2974,
1044,
4259,
16,
999,
9617,
1435,
3560,
18,
202,
202,
759,
2457,
1679,
1522,
5057,
16,
9617,
1435,
3377,
2546,
506,
1399,
18,
202,
202,
6494,
276,
273,
638,
31,
202,
202,
17523,
261,
71,
13,
288,
1082,
202,
759,
1660,
380,
3700,
14,
7671,
2973,
13727,
3853,
16,
1082,
202,
759,
1508,
9588,
2182,
3397,
279,
394,
12608,
1082,
202,
698,
288,
9506,
202,
2575,
559,
273,
619,
11858,
18,
4285,
5621,
2
] |
fConfigDir = ReportLauncherUtils.createConfigArea( config .getName( ) );
|
fConfigDir = ReportLauncherUtils.createConfigArea( config.getName( ) );
|
private File getConfigDir( ILaunchConfiguration config ) { if ( fConfigDir == null ) try { if ( config.getAttribute( "usefeatures", false ) ) //$NON-NLS-1$ { String root = getProductPath( ).toString( ); if ( PDECore.getDefault( ).getModelManager( ) .isOSGiRuntime( ) ) root = root + "/configuration"; //$NON-NLS-1$ fConfigDir = new File( root ); } else { fConfigDir = ReportLauncherUtils.createConfigArea( config .getName( ) ); } } catch ( CoreException _ex ) { fConfigDir = ReportLauncherUtils.createConfigArea( config .getName( ) ); } if ( !fConfigDir.exists( ) ) fConfigDir.mkdirs( ); return fConfigDir; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/93f83d28c012c9318e61bf947b01279cec0512a3/ReportLaunchConfigurationDelegate.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1387,
4367,
1621,
12,
467,
9569,
1750,
642,
262,
202,
95,
202,
202,
430,
261,
284,
809,
1621,
422,
446,
262,
1082,
202,
698,
1082,
202,
95,
9506,
202,
430,
261,
642,
18,
588,
1499,
12,
315,
1202,
7139,
3113,
629,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
95,
6862,
202,
780,
1365,
273,
15880,
743,
12,
262,
18,
10492,
12,
11272,
6862,
202,
430,
261,
453,
1639,
4670,
18,
588,
1868,
12,
262,
18,
588,
1488,
1318,
12,
262,
6862,
1082,
202,
18,
291,
4618,
43,
77,
5576,
12,
262,
262,
25083,
202,
3085,
273,
1365,
397,
2206,
7025,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
74,
809,
1621,
273,
394,
1387,
12,
1365,
11272,
9506,
202,
97,
469,
9506,
202,
95,
6862,
202,
74,
809,
1621,
273,
8706,
28820,
1989,
18,
2640,
809,
5484,
12,
642,
6862,
1082,
202,
18,
17994,
12,
262,
11272,
9506,
202,
97,
1082,
202,
97,
1044,
261,
30015,
389,
338,
262,
1082,
202,
95,
9506,
202,
74,
809,
1621,
273,
8706,
28820,
1989,
18,
2640,
809,
5484,
12,
642,
25083,
202,
18,
17994,
12,
262,
11272,
1082,
202,
97,
202,
202,
430,
261,
401,
74,
809,
1621,
18,
1808,
12,
262,
262,
1082,
202,
74,
809,
1621,
18,
24816,
8291,
12,
11272,
202,
202,
2463,
284,
809,
1621,
31,
202,
97,
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,
225,
202,
1152,
1387,
4367,
1621,
12,
467,
9569,
1750,
642,
262,
202,
95,
202,
202,
430,
261,
284,
809,
1621,
422,
446,
262,
1082,
202,
698,
1082,
202,
95,
9506,
202,
430,
261,
642,
18,
588,
1499,
12,
315,
1202,
7139,
3113,
629,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
95,
6862,
202,
780,
1365,
273,
15880,
743,
12,
262,
18,
10492,
12,
11272,
6862,
202,
430,
261,
453,
1639,
4670,
18,
588,
1868,
12,
262,
18,
588,
1488,
1318,
12,
262,
6862,
1082,
202,
18,
291,
4618,
43,
77,
5576,
12,
262,
262,
25083,
202,
3085,
273,
1365,
397,
2206,
7025,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
74,
809,
2
] |
deleteList[j] = Integer.parseInt( getValueAt(mlist[j], i).toString());
|
deleteList[j] = Integer.parseInt(getValueAt(mlist[j], i).toString());
|
public void actionPerformed(ActionEvent ae) { String kommando = ((JMenuItem)ae.getSource()).getText(); int i = 0; while (i < 4) { if (getColumnName(i).equals("#")) { break; } i++; } if (kommando.equals(YAMM.getString("button.delete"))) { if (getSelectedRow() == -1) { return; } Utilities.delUnNeededFiles(); int[] mlist = getSelectedRows(); int[] deleteList = new int[mlist.length]; for (int j = 0; j < mlist.length; j++) { deleteList[j] = Integer.parseInt( getValueAt(mlist[j], i).toString()); } Arrays.sort(deleteList); Mailbox.deleteMail(frame.selectedbox, deleteList); Mailbox.createList(frame.selectedbox, listOfMails); updateUI(); Mailbox.updateIndex(frame.selectedbox); Mailbox.updateIndex(YAMM.home + YAMM.sep + "boxes" + YAMM.sep + YAMM.getString("box.trash")); frame.tree.updateUI(); changeButtonMode(false); clearSelection(); } else if (kommando.equals(YAMM.getString("button.reply"))) { if (getSelectedRow() == -1) { return; } int msgnum = Integer.parseInt( getValueAt(getSelectedRow(), i). toString()); long skip = Long.parseLong( ((Vector) frame.listOfMails. elementAt(msgnum)).elementAt(5). toString()); String[] mail = Mailbox.getMailForReplyHeaders( frame.selectedbox, skip); if (!mail[3].startsWith( YAMM.getString("mail.re")) && !mail[3].startsWith("Re:")) { mail[3] = YAMM.getString("mail.re") + " " + mail[3]; } YAMMWrite yam = new YAMMWrite(mail[2], mail[1], mail[3], mail[0] + YAMM.getString("mail.wrote") + "\n"); Mailbox.getMailForReply(frame.selectedbox, msgnum, skip, yam.myTextArea); } }
|
3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/d34f0b921d886e2ea79ca1692b8cb4efbc3811c5/mainTable.java/buggy/gui/main/mainTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
3639,
1082,
202,
780,
417,
362,
889,
83,
273,
14015,
46,
12958,
13,
8906,
18,
588,
1830,
1435,
2934,
588,
1528,
5621,
4766,
1171,
9079,
1082,
202,
474,
277,
273,
374,
31,
4202,
1082,
202,
17523,
261,
77,
411,
1059,
13,
288,
9506,
202,
430,
261,
588,
8516,
12,
77,
2934,
14963,
2932,
17133,
3719,
288,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
77,
9904,
31,
1377,
1082,
202,
97,
377,
1082,
202,
430,
261,
79,
362,
889,
83,
18,
14963,
12,
61,
2192,
49,
18,
588,
780,
2932,
5391,
18,
3733,
6,
20349,
288,
9506,
202,
430,
261,
588,
7416,
1999,
1435,
422,
300,
21,
13,
288,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
11864,
18,
3771,
984,
11449,
2697,
5621,
9506,
202,
474,
8526,
312,
1098,
273,
16625,
4300,
5621,
9506,
202,
474,
8526,
1430,
682,
273,
394,
509,
63,
781,
376,
18,
2469,
15533,
9506,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
312,
1098,
18,
2469,
31,
525,
27245,
288,
6862,
202,
3733,
682,
63,
78,
65,
273,
2144,
18,
2670,
1702,
12,
6862,
1082,
202,
24805,
861,
12,
781,
376,
63,
78,
6487,
6862,
9506,
202,
77,
2934,
10492,
10663,
9506,
202,
97,
9506,
202,
12726,
18,
3804,
12,
3733,
682,
1769,
9506,
202,
30239,
18,
3733,
6759,
12,
3789,
18,
8109,
2147,
16,
1430,
682,
1769,
9506,
202,
30239,
18,
2640,
682,
12,
3789,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
3639,
1082,
202,
780,
417,
362,
889,
83,
273,
14015,
46,
12958,
13,
8906,
18,
588,
1830,
1435,
2934,
588,
1528,
5621,
4766,
1171,
9079,
1082,
202,
474,
277,
273,
374,
31,
4202,
1082,
202,
17523,
261,
77,
411,
1059,
13,
288,
9506,
202,
430,
261,
588,
8516,
12,
77,
2934,
14963,
2932,
17133,
3719,
288,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
77,
9904,
31,
1377,
1082,
202,
97,
377,
1082,
202,
430,
261,
79,
362,
889,
83,
18,
14963,
12,
61,
2192,
49,
18,
588,
780,
2932,
5391,
18,
3733,
6,
20349,
288,
9506,
202,
430,
261,
588,
7416,
1999,
1435,
422,
300,
21,
2
] |
_disableInteractionsPane(); _runAction.setEnabled(false); _runProjectAction.setEnabled(false);
|
_recentDocFrame.pokeDocument(active); _switchDefScrollPane(); boolean isModified = active.isModifiedSinceSave(); boolean canCompile = (! isModified && ! active.isUntitled()); _saveAction.setEnabled(! canCompile); _revertAction.setEnabled(! active.isUntitled()); int pos = _currentDefPane.getCaretPosition(); _currentDefPane.getErrorCaretListener().updateHighlight(pos); _setCurrentDirectory(active); updateFileTitle(); _currentDefPane.requestFocusInWindow(); _posListener.updateLocation(); if (isModified) _model.getDocumentNavigator().repaint(); try { active.revertIfModifiedOnDisk(); } catch (FileMovedException fme) { _showFileMovedError(fme); } catch (IOException e) { _showIOError(e); } if (_findReplace.isDisplayed()) { _findReplace.stopListening(); _findReplace.beginListeningTo(_currentDefPane); }
|
public void run() { _disableInteractionsPane(); _runAction.setEnabled(false); _runProjectAction.setEnabled(false); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/fa54651cc7ac0d03884ebcafd7e8520df74651a1/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
1850,
389,
8394,
2465,
4905,
8485,
5621,
1850,
389,
2681,
1803,
18,
542,
1526,
12,
5743,
1769,
1850,
389,
2681,
4109,
1803,
18,
542,
1526,
12,
5743,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
1850,
389,
8394,
2465,
4905,
8485,
5621,
1850,
389,
2681,
1803,
18,
542,
1526,
12,
5743,
1769,
1850,
389,
2681,
4109,
1803,
18,
542,
1526,
12,
5743,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_scan_token(IDENTIFIER)) return true; if (jj_scan_token(COLON)) return true; if (jj_3R_86()) return true;
|
Token xsp; xsp = jj_scanpos; if (jj_3_33()) { jj_scanpos = xsp; if (jj_3R_134()) return true; }
|
final private boolean jj_3R_84() { if (jj_scan_token(IDENTIFIER)) return true; if (jj_scan_token(COLON)) return true; if (jj_3R_86()) return true; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5193,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4935,
673,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5292,
10756,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5193,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4935,
673,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5292,
10756,
327,
638,
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
] |
private String checkType(String type, String value) { type = type.toLowerCase(); try { if("string".equals(type)) { if((value != null) && (value.indexOf("\"") < 0)) { return value; } else { return null; } } else { if("int".equals(type) || "integer".equals(type)) { value = "" + Integer.parseInt(value); return value; } else { if("float".equals(type)) { value = "" + Float.valueOf(value); return value; } else { if("boolean".equals(type)) { value = "" + Boolean.valueOf(value); return value; } else { if("long".equals(type)) { value = "" + Long.valueOf(value); return value; } else { if("double".equals(type)) { value = "" + Double.valueOf(value); return value; } else { if("byte".equals(type)) { value = "" + Byte.valueOf(value); return value; } else { // the type dosen't exist return null; } } } } } } } } catch(Exception exc) { // the type of the value was wrong return null; } }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0213c4e5566a2ffd2789cf90a387145a742e6acf/CmsAdminModuleAdminEdit.java/buggy/src/com/opencms/workplace/CmsAdminModuleAdminEdit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
23008,
12,
780,
618,
16,
514,
460,
13,
288,
3639,
618,
273,
618,
18,
869,
5630,
5621,
3639,
775,
288,
5411,
309,
2932,
1080,
9654,
14963,
12,
723,
3719,
288,
7734,
309,
12443,
1132,
480,
446,
13,
597,
261,
1132,
18,
31806,
2932,
2412,
7923,
411,
374,
3719,
288,
10792,
327,
460,
31,
7734,
289,
7734,
469,
288,
10792,
327,
446,
31,
7734,
289,
5411,
289,
5411,
469,
288,
7734,
309,
2932,
474,
9654,
14963,
12,
723,
13,
747,
315,
7745,
9654,
14963,
12,
723,
3719,
288,
10792,
460,
273,
1408,
397,
2144,
18,
2670,
1702,
12,
1132,
1769,
10792,
327,
460,
31,
7734,
289,
7734,
469,
288,
10792,
309,
2932,
5659,
9654,
14963,
12,
723,
3719,
288,
13491,
460,
273,
1408,
397,
5450,
18,
1132,
951,
12,
1132,
1769,
13491,
327,
460,
31,
10792,
289,
10792,
469,
288,
13491,
309,
2932,
6494,
9654,
14963,
12,
723,
3719,
288,
18701,
460,
273,
1408,
397,
3411,
18,
1132,
951,
12,
1132,
1769,
18701,
327,
460,
31,
13491,
289,
13491,
469,
288,
18701,
309,
2932,
5748,
9654,
14963,
12,
723,
3719,
288,
27573,
460,
273,
1408,
397,
3407,
18,
1132,
951,
12,
1132,
1769,
27573,
327,
460,
31,
18701,
289,
18701,
469,
288,
27573,
309,
2932,
9056,
9654,
14963,
12,
723,
3719,
288,
4766,
565,
460,
273,
1408,
397,
3698,
18,
1132,
951,
12,
1132,
1769,
4766,
565,
327,
460,
31,
27573,
289,
27573,
469,
288,
4766,
565,
309,
2932,
7229,
9654,
14963,
12,
723,
3719,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
23008,
12,
780,
618,
16,
514,
460,
13,
288,
3639,
618,
273,
618,
18,
869,
5630,
5621,
3639,
775,
288,
5411,
309,
2932,
1080,
9654,
14963,
12,
723,
3719,
288,
7734,
309,
12443,
1132,
480,
446,
13,
597,
261,
1132,
18,
31806,
2932,
2412,
7923,
411,
374,
3719,
288,
10792,
327,
460,
31,
7734,
289,
7734,
469,
288,
10792,
327,
446,
31,
7734,
289,
5411,
289,
5411,
469,
288,
7734,
309,
2932,
474,
9654,
14963,
12,
723,
13,
747,
315,
7745,
9654,
14963,
12,
723,
3719,
288,
10792,
460,
273,
1408,
397,
2144,
18,
2670,
1702,
12,
1132,
1769,
10792,
327,
460,
31,
7734,
289,
7734,
469,
288,
10792,
309,
2932,
5659,
9654,
14963,
12,
723,
2
] |
||
public org.quickfix.field.SecurityID getSecurityID() throws FieldNotFound { org.quickfix.field.SecurityID value = new org.quickfix.field.SecurityID();
|
public quickfix.field.SecurityID getSecurityID() throws FieldNotFound { quickfix.field.SecurityID value = new quickfix.field.SecurityID();
|
public org.quickfix.field.SecurityID getSecurityID() throws FieldNotFound { org.quickfix.field.SecurityID value = new org.quickfix.field.SecurityID(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/clean/src/java/src/quickfix/fix41/ExecutionReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
19288,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4368,
734,
19288,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
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,
-100,
-100,
-100,
-100,
-100
] |
if (browseType == ITEMS_BY_SUBJECT_BROWSE)
|
if (browseType == ITEMS_BY_SUBJECT_BROWSE)
|
private static String formatSql(BrowseScope scope, String sql, String subqueryValue, boolean after) { boolean before = !after; int browseType = scope.getBrowseType(); boolean ascending = scope.getAscending(); int numberDesired = before ? scope.getNumberBefore() : scope.getTotal(); // Search operator // Normal case: before is less than, after is greater than or equal String beforeOperator = "<"; String afterOperator = ">="; // For authors, only equality is relevant if (browseType == ITEMS_BY_AUTHOR_BROWSE) { afterOperator = "="; } //aneesh if (browseType == ITEMS_BY_SUBJECT_BROWSE) { afterOperator = "="; } // Subqueries add a clause which checks for the item specifically, // so we do not check for equality here if (subqueryValue != null) { beforeOperator = "<"; afterOperator = ">"; } if (!ascending) { beforeOperator = ">"; afterOperator = "<="; } if (browseType == ITEMS_BY_DATE_BROWSE) { if (!ascending) { beforeOperator = ">"; afterOperator = "<"; } else { beforeOperator = "<"; afterOperator = ">"; } } String beforeSubqueryOperator = "<"; String afterSubqueryOperator = ">="; // For authors, only equality is relevant if (browseType == ITEMS_BY_AUTHOR_BROWSE) { afterSubqueryOperator = "="; } //aneesh if (browseType == ITEMS_BY_SUBJECT_BROWSE) { afterSubqueryOperator = "="; } if (!ascending) { beforeSubqueryOperator = ">"; afterSubqueryOperator = "<="; } String order = before ? " desc" : ""; if (!ascending) { order = before ? "" : " desc"; } // Note that it's OK to have unused arguments in the array; // see the javadoc of java.text.MessageFormat // for the whole story. List args = new ArrayList(); args.add(before ? beforeSubqueryOperator : afterSubqueryOperator); args.add(before ? beforeOperator : afterOperator); args.add(order); args.add(new Integer(numberDesired)); return MessageFormat.format(sql, args.toArray()); }
|
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/36e0aff656ae4c75308793a5e6744544f92e9646/Browse.java/clean/dspace/src/org/dspace/browse/Browse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
740,
5101,
12,
27304,
3876,
2146,
16,
514,
1847,
16,
5411,
514,
20074,
620,
16,
1250,
1839,
13,
565,
288,
3639,
1250,
1865,
273,
401,
5205,
31,
3639,
509,
21670,
559,
273,
2146,
18,
588,
27304,
559,
5621,
3639,
1250,
13976,
273,
2146,
18,
588,
13665,
2846,
5621,
3639,
509,
1300,
25683,
273,
1865,
692,
2146,
18,
588,
1854,
4649,
1435,
294,
2146,
18,
588,
5269,
5621,
3639,
368,
5167,
3726,
3639,
368,
8769,
648,
30,
1865,
353,
5242,
2353,
16,
1839,
353,
6802,
2353,
578,
3959,
3639,
514,
1865,
5592,
273,
3532,
14432,
3639,
514,
1839,
5592,
273,
14402,
1546,
31,
3639,
368,
2457,
14494,
16,
1338,
14958,
353,
9368,
3639,
309,
261,
25731,
559,
422,
467,
1448,
3537,
67,
6486,
67,
7131,
916,
67,
38,
11226,
1090,
13,
3639,
288,
5411,
1839,
5592,
273,
9671,
31,
3639,
289,
202,
759,
8806,
4607,
202,
430,
261,
25731,
559,
422,
467,
1448,
3537,
67,
6486,
67,
8362,
5304,
67,
38,
11226,
1090,
13,
3639,
288,
5411,
1839,
5592,
273,
9671,
31,
3639,
289,
3639,
368,
2592,
13748,
527,
279,
6591,
1492,
4271,
364,
326,
761,
21195,
16,
3639,
368,
1427,
732,
741,
486,
866,
364,
14958,
2674,
3639,
309,
261,
1717,
2271,
620,
480,
446,
13,
3639,
288,
5411,
1865,
5592,
273,
3532,
14432,
5411,
1839,
5592,
273,
14675,
31,
3639,
289,
3639,
309,
16051,
3691,
2846,
13,
3639,
288,
5411,
1865,
5592,
273,
14675,
31,
5411,
1839,
5592,
273,
3532,
1546,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
740,
5101,
12,
27304,
3876,
2146,
16,
514,
1847,
16,
5411,
514,
20074,
620,
16,
1250,
1839,
13,
565,
288,
3639,
1250,
1865,
273,
401,
5205,
31,
3639,
509,
21670,
559,
273,
2146,
18,
588,
27304,
559,
5621,
3639,
1250,
13976,
273,
2146,
18,
588,
13665,
2846,
5621,
3639,
509,
1300,
25683,
273,
1865,
692,
2146,
18,
588,
1854,
4649,
1435,
294,
2146,
18,
588,
5269,
5621,
3639,
368,
5167,
3726,
3639,
368,
8769,
648,
30,
1865,
353,
5242,
2353,
16,
1839,
353,
6802,
2353,
578,
3959,
3639,
514,
1865,
5592,
273,
3532,
14432,
3639,
514,
1839,
5592,
273,
14402,
1546,
31,
3639,
368,
2457,
14494,
16,
1338,
14958,
353,
9368,
3639,
309,
261,
25731,
2
] |
return new RubyFloat(runtime, op_div(other).getDoubleValue());
|
return new RubyFloat(getRuntime(), op_div(other).getDoubleValue());
|
public RubyNumeric quo(RubyNumeric other) { return new RubyFloat(runtime, op_div(other).getDoubleValue()); }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
719,
83,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
327,
394,
19817,
4723,
12,
588,
5576,
9334,
1061,
67,
2892,
12,
3011,
2934,
588,
5265,
620,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9902,
719,
83,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
327,
394,
19817,
4723,
12,
588,
5576,
9334,
1061,
67,
2892,
12,
3011,
2934,
588,
5265,
620,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( (fFacetsDefined & DatatypeValidator.FACET_ENUMERATION) != 0 ) {
|
if ( (fFacetsDefined & DatatypeValidator.FACET_ENUMERATION) != 0 && (fEnumeration != null) ) {
|
private void checkContent( String content, Object state )throws InvalidDatatypeValueException { if ( this.fBaseValidator != null ) {//validate against parent type if any this.fBaseValidator.validate( content, state ); } if ( (fFacetsDefined & DatatypeValidator.FACET_MAXLENGTH) != 0 ) { if ( content.length() > fMaxLength ) { throw new InvalidDatatypeValueException("Value '"+content+ "' with length '"+content.length()+ "' exceeds maximum length facet of '"+fMaxLength+"'."); } } if ( (fFacetsDefined & DatatypeValidator.FACET_MINLENGTH) != 0 ) { if ( content.length() < fMinLength ) { throw new InvalidDatatypeValueException("Value '"+content+ "' with length '"+content.length()+ "' is less than minimum length facet of '"+fMinLength+"'." ); } } if ( (fFacetsDefined & DatatypeValidator.FACET_LENGTH) != 0 ) { if ( content.length() != fLength ) { throw new InvalidDatatypeValueException("Value '"+content+ "' with length '"+content.length()+ "' is not equal to length facet '"+fLength+"'."); } } if ( (fFacetsDefined & DatatypeValidator.FACET_ENUMERATION) != 0 ) { if ( fEnumeration.contains( content ) == false ) throw new InvalidDatatypeValueException("Value '"+content+"' must be one of "+fEnumeration); } if ( (fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0 ) { //RegularExpression regex = new RegularExpression(fPattern ); if ( fRegex == null || fRegex.matches( content) == false ) throw new InvalidDatatypeValueException("Value '"+content+ "' does not match regular expression facet '" + fPattern + "'." ); } }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/dc38ef3f474431c6ee975d071441496ac221a110/StringDatatypeValidator.java/buggy/src/org/apache/xerces/validators/datatype/StringDatatypeValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
1350,
12,
514,
913,
16,
1033,
919,
262,
15069,
1962,
20228,
9738,
565,
288,
3639,
309,
261,
333,
18,
74,
2171,
5126,
480,
446,
262,
288,
759,
5662,
5314,
982,
618,
309,
1281,
5411,
333,
18,
74,
2171,
5126,
18,
5662,
12,
913,
16,
919,
11272,
3639,
289,
3639,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
6694,
7096,
13,
480,
374,
262,
288,
5411,
309,
261,
913,
18,
2469,
1435,
405,
284,
29346,
262,
288,
7734,
604,
394,
1962,
20228,
9738,
2932,
620,
2119,
15,
1745,
15,
4766,
13491,
2491,
598,
769,
2119,
15,
1745,
18,
2469,
1435,
15,
4766,
13491,
2491,
14399,
4207,
769,
11082,
434,
2119,
15,
74,
29346,
15,
5187,
1199,
1769,
5411,
289,
3639,
289,
3639,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
6236,
7096,
13,
480,
374,
262,
288,
5411,
309,
261,
913,
18,
2469,
1435,
411,
284,
2930,
1782,
262,
288,
7734,
604,
394,
1962,
20228,
9738,
2932,
620,
2119,
15,
1745,
15,
4766,
13491,
2491,
598,
769,
2119,
15,
1745,
18,
2469,
1435,
15,
4766,
13491,
2491,
353,
5242,
2353,
5224,
769,
11082,
434,
2119,
15,
74,
2930,
1782,
15,
5187,
1199,
11272,
5411,
289,
3639,
289,
3639,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
7096,
13,
480,
374,
262,
288,
5411,
309,
261,
913,
18,
2469,
1435,
480,
284,
1782,
262,
288,
7734,
604,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
1350,
12,
514,
913,
16,
1033,
919,
262,
15069,
1962,
20228,
9738,
565,
288,
3639,
309,
261,
333,
18,
74,
2171,
5126,
480,
446,
262,
288,
759,
5662,
5314,
982,
618,
309,
1281,
5411,
333,
18,
74,
2171,
5126,
18,
5662,
12,
913,
16,
919,
11272,
3639,
289,
3639,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
6694,
7096,
13,
480,
374,
262,
288,
5411,
309,
261,
913,
18,
2469,
1435,
405,
284,
29346,
262,
288,
7734,
604,
394,
1962,
20228,
9738,
2932,
620,
2119,
15,
1745,
15,
4766,
13491,
2491,
598,
769,
2119,
15,
1745,
18,
2469,
1435,
15,
4766,
13491,
2491,
14399,
4207,
769,
11082,
434,
2119,
2
] |
String contextId = getContextId(); String keyConfigurationId = getKeyConfigurationId(); KeySequence keySequence = getKeySequence(); KeySequenceBindingNode.remove( tree, keySequence, contextId, keyConfigurationId, 0, null, null); List preferenceKeySequenceBindingDefinitions = new ArrayList(); KeySequenceBindingNode.getKeySequenceBindingDefinitions( tree, KeySequence.getInstance(), 0, preferenceKeySequenceBindingDefinitions); update(); }
|
String contextId = getContextId(); String keyConfigurationId = getKeyConfigurationId(); KeySequence keySequence = getKeySequence(); KeySequenceBindingNode.remove(tree, keySequence, contextId, keyConfigurationId, 0, null, null); List preferenceKeySequenceBindingDefinitions = new ArrayList(); KeySequenceBindingNode.getKeySequenceBindingDefinitions(tree, KeySequence.getInstance(), 0, preferenceKeySequenceBindingDefinitions); update(); }
|
private void selectedButtonRestore() { String contextId = getContextId(); String keyConfigurationId = getKeyConfigurationId(); KeySequence keySequence = getKeySequence(); KeySequenceBindingNode.remove( tree, keySequence, contextId, keyConfigurationId, 0, null, null); List preferenceKeySequenceBindingDefinitions = new ArrayList(); KeySequenceBindingNode.getKeySequenceBindingDefinitions( tree, KeySequence.getInstance(), 0, preferenceKeySequenceBindingDefinitions); update(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/KeysPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3170,
3616,
10874,
1435,
288,
202,
202,
780,
819,
548,
273,
6474,
548,
5621,
202,
202,
780,
498,
1750,
548,
273,
3579,
1750,
548,
5621,
202,
202,
653,
4021,
498,
4021,
273,
3579,
4021,
5621,
202,
202,
653,
4021,
5250,
907,
18,
4479,
12,
1082,
202,
3413,
16,
1082,
202,
856,
4021,
16,
1082,
202,
2472,
548,
16,
1082,
202,
856,
1750,
548,
16,
1082,
202,
20,
16,
1082,
202,
2011,
16,
1082,
202,
2011,
1769,
202,
202,
682,
11555,
653,
4021,
5250,
7130,
273,
394,
2407,
5621,
202,
202,
653,
4021,
5250,
907,
18,
588,
653,
4021,
5250,
7130,
12,
1082,
202,
3413,
16,
1082,
202,
653,
4021,
18,
588,
1442,
9334,
1082,
202,
20,
16,
1082,
202,
19141,
653,
4021,
5250,
7130,
1769,
202,
202,
2725,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3170,
3616,
10874,
1435,
288,
202,
202,
780,
819,
548,
273,
6474,
548,
5621,
202,
202,
780,
498,
1750,
548,
273,
3579,
1750,
548,
5621,
202,
202,
653,
4021,
498,
4021,
273,
3579,
4021,
5621,
202,
202,
653,
4021,
5250,
907,
18,
4479,
12,
1082,
202,
3413,
16,
1082,
202,
856,
4021,
16,
1082,
202,
2472,
548,
16,
1082,
202,
856,
1750,
548,
16,
1082,
202,
20,
16,
1082,
202,
2011,
16,
1082,
202,
2011,
1769,
202,
202,
682,
11555,
653,
4021,
5250,
7130,
273,
394,
2407,
5621,
202,
202,
653,
4021,
5250,
907,
18,
588,
653,
4021,
5250,
7130,
12,
1082,
202,
3413,
16,
1082,
202,
653,
4021,
18,
588,
1442,
9334,
1082,
202,
2
] |
if (page != null && persp != null) page.closePerspective(persp, true, true);
|
if (page != null && persp != null) { page.closePerspective(persp, true, true); }
|
public static void closePerspective(WorkbenchPage page, Perspective persp) { if (page != null && persp != null) page.closePerspective(persp, true, true); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ClosePerspectiveAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ClosePerspectiveAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1746,
14781,
16772,
12,
2421,
22144,
1964,
1363,
16,
453,
414,
16772,
13508,
84,
13,
288,
3639,
309,
261,
2433,
480,
446,
597,
13508,
84,
480,
446,
13,
5411,
1363,
18,
4412,
14781,
16772,
12,
10422,
84,
16,
638,
16,
638,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1746,
14781,
16772,
12,
2421,
22144,
1964,
1363,
16,
453,
414,
16772,
13508,
84,
13,
288,
3639,
309,
261,
2433,
480,
446,
597,
13508,
84,
480,
446,
13,
5411,
1363,
18,
4412,
14781,
16772,
12,
10422,
84,
16,
638,
16,
638,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public SchedulerContext getSchedulerContext() throws SchedulerException,
|
SchedulerContext getSchedulerContext() throws SchedulerException,
|
public SchedulerContext getSchedulerContext() throws SchedulerException, RemoteException;
|
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/cf7f5f77ce5bb6364145230d302b86f1cdadea88/RemotableQuartzScheduler.java/buggy/src/java/org/quartz/core/RemotableQuartzScheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
12620,
1042,
1322,
4961,
1042,
1435,
1216,
12620,
503,
16,
5411,
18361,
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
] |
[
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,
12620,
1042,
1322,
4961,
1042,
1435,
1216,
12620,
503,
16,
5411,
18361,
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
] |
public org.quickfix.field.PrevClosePx getPrevClosePx() throws FieldNotFound { org.quickfix.field.PrevClosePx value = new org.quickfix.field.PrevClosePx();
|
public quickfix.field.PrevClosePx getPrevClosePx() throws FieldNotFound { quickfix.field.PrevClosePx value = new quickfix.field.PrevClosePx();
|
public org.quickfix.field.PrevClosePx getPrevClosePx() throws FieldNotFound { org.quickfix.field.PrevClosePx value = new org.quickfix.field.PrevClosePx(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/clean/src/java/src/quickfix/fix44/NewOrderCross.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
9958,
4605,
21776,
336,
9958,
4605,
21776,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
9958,
4605,
21776,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
9958,
4605,
21776,
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,
9958,
4605,
21776,
336,
9958,
4605,
21776,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
9958,
4605,
21776,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
9958,
4605,
21776,
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
] |
boolean toggleStatusLine = settings.getBoolean(SHOW_STATUS_LINE);
|
boolean toggleStatusLine = true; if (settings.get(SHOW_STATUS_LINE) != null) { toggleStatusLine = settings.getBoolean(SHOW_STATUS_LINE); }
|
protected void restoreDialog(IDialogSettings settings) { boolean toggleStatusLine = settings.getBoolean(SHOW_STATUS_LINE); toggleStatusLineAction.setChecked(toggleStatusLine); GridData gd = (GridData) details.getControl().getLayoutData(); gd.exclude = !toggleStatusLine; String setting = settings.get(SEARCHER_SETTINGS); if (setting != null) { try { IMemento memento = XMLMemento.createReadRoot(new StringReader( setting)); searcher.restoreState(memento); } catch (WorkbenchException e) { // Simply don't restore the settings WorkbenchPlugin.log(e); } } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f9c466e731a3fcd6b27ded21559cc21bf6d87935/AbstractSearchDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/AbstractSearchDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5217,
6353,
12,
734,
3529,
2628,
1947,
13,
288,
202,
202,
6494,
10486,
1482,
1670,
273,
1947,
18,
588,
5507,
12,
16677,
67,
8608,
67,
5997,
1769,
202,
202,
14401,
1482,
1670,
1803,
18,
542,
11454,
12,
14401,
1482,
1670,
1769,
202,
202,
6313,
751,
15551,
273,
261,
6313,
751,
13,
3189,
18,
588,
3367,
7675,
588,
3744,
751,
5621,
202,
202,
19016,
18,
10157,
273,
401,
14401,
1482,
1670,
31,
202,
202,
780,
3637,
273,
1947,
18,
588,
12,
17251,
654,
67,
19428,
1769,
202,
202,
430,
261,
8920,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
3445,
820,
83,
312,
820,
83,
273,
3167,
49,
820,
83,
18,
2640,
1994,
2375,
12,
2704,
26227,
12,
25083,
202,
8920,
10019,
9506,
202,
3072,
264,
18,
13991,
1119,
12,
81,
820,
83,
1769,
1082,
202,
97,
1044,
261,
2421,
22144,
503,
425,
13,
288,
9506,
202,
759,
9587,
1283,
2727,
1404,
5217,
326,
1947,
9506,
202,
2421,
22144,
3773,
18,
1330,
12,
73,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5217,
6353,
12,
734,
3529,
2628,
1947,
13,
288,
202,
202,
6494,
10486,
1482,
1670,
273,
1947,
18,
588,
5507,
12,
16677,
67,
8608,
67,
5997,
1769,
202,
202,
14401,
1482,
1670,
1803,
18,
542,
11454,
12,
14401,
1482,
1670,
1769,
202,
202,
6313,
751,
15551,
273,
261,
6313,
751,
13,
3189,
18,
588,
3367,
7675,
588,
3744,
751,
5621,
202,
202,
19016,
18,
10157,
273,
401,
14401,
1482,
1670,
31,
202,
202,
780,
3637,
273,
1947,
18,
588,
12,
17251,
654,
67,
19428,
1769,
202,
202,
430,
261,
8920,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
3445,
820,
83,
312,
820,
83,
273,
3167,
49,
820,
83,
18,
2640,
1994,
2375,
2
] |
messageFactory, 1);
|
messageFactory);
|
public SocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, MessageFactory messageFactory) throws ConfigError { super(application, messageStoreFactory, settings, new ScreenLogFactory(settings), messageFactory, 1); // This exception is thrown for compatibility reasons if (settings == null) { throw new ConfigError("no settings"); } }
|
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/d48ea96931a2b317f037cdb2737cd96d78bbe3f8/SocketInitiator.java/buggy/src/quickfix/SocketInitiator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8758,
2570,
10620,
12,
3208,
2521,
16,
2350,
2257,
1733,
883,
2257,
1733,
16,
5411,
3877,
2628,
1947,
16,
2350,
1733,
883,
1733,
13,
1216,
1903,
668,
288,
3639,
2240,
12,
3685,
16,
883,
2257,
1733,
16,
1947,
16,
394,
10146,
1343,
1733,
12,
4272,
3631,
7734,
883,
1733,
1769,
3639,
368,
1220,
1520,
353,
6718,
364,
8926,
14000,
3639,
309,
261,
4272,
422,
446,
13,
288,
5411,
604,
394,
1903,
668,
2932,
2135,
1947,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
8758,
2570,
10620,
12,
3208,
2521,
16,
2350,
2257,
1733,
883,
2257,
1733,
16,
5411,
3877,
2628,
1947,
16,
2350,
1733,
883,
1733,
13,
1216,
1903,
668,
288,
3639,
2240,
12,
3685,
16,
883,
2257,
1733,
16,
1947,
16,
394,
10146,
1343,
1733,
12,
4272,
3631,
7734,
883,
1733,
1769,
3639,
368,
1220,
1520,
353,
6718,
364,
8926,
14000,
3639,
309,
261,
4272,
422,
446,
13,
288,
5411,
604,
394,
1903,
668,
2932,
2135,
1947,
8863,
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
] |
Label lblTransparency = new Label(cmpTransparency, SWT.NONE);
|
lblTransparency = new Label(cmpTransparency, SWT.NONE);
|
private void createDropDownComponent(int iXLoc, int iYLoc) { int iShellHeight = 240; int iShellWidth = 160; // Reduce the height based on which buttons are to be shown. if (!bGradientEnabled) { iShellHeight = iShellHeight - 30; } if (!bImageEnabled) { iShellHeight = iShellHeight - 30; } Shell shell = new Shell(this.getShell(), SWT.NONE); shell.setLayout(new FillLayout()); shell.setSize(iShellWidth, iShellHeight); shell.setLocation(iXLoc, iYLoc); cmpDropDown = new Composite(shell, SWT.NONE); GridLayout glDropDown = new GridLayout(); glDropDown.marginHeight = 2; glDropDown.marginWidth = 2; glDropDown.horizontalSpacing = 1; glDropDown.verticalSpacing = 1; glDropDown.numColumns = 8; cmpDropDown.setLayout(glDropDown); cmpDropDown.addKeyListener(this); if (colorArray == null) { colorArray = createColorMap(getDisplay()); } ColorSelectionCanvas cnv = new ColorSelectionCanvas(cmpDropDown, SWT.BORDER, colorArray); GridData gdCnv = new GridData(GridData.FILL_BOTH); gdCnv.horizontalSpan = 8; gdCnv.heightHint = 100; cnv.setLayoutData(gdCnv); cnv.addMouseListener(this); if (this.fCurrent instanceof ColorDefinition) { cnv.setColor(new Color(this.getDisplay(), ((ColorDefinition) fCurrent).getRed(), ((ColorDefinition) fCurrent).getGreen(), ((ColorDefinition) fCurrent).getBlue())); } // Layout for Transparency Composite GridLayout glTransparency = new GridLayout(); glTransparency.numColumns = 2; glTransparency.horizontalSpacing = 5; glTransparency.verticalSpacing = 3; glTransparency.marginHeight = 0; glTransparency.marginWidth = 0; Composite cmpTransparency = new Composite(cmpDropDown, SWT.NONE); GridData gdTransparency = new GridData(GridData.FILL_BOTH); gdTransparency.heightHint = 40; gdTransparency.horizontalSpan = 8; cmpTransparency.setLayoutData(gdTransparency); cmpTransparency.setLayout(glTransparency); Label lblTransparency = new Label(cmpTransparency, SWT.NONE); GridData gdLBLTransparency = new GridData(GridData.FILL_HORIZONTAL); gdLBLTransparency.horizontalIndent = 2; lblTransparency.setLayoutData(gdLBLTransparency); lblTransparency.setText("Transparency:"); lblCurrentTransparency = new Label(cmpTransparency, SWT.NONE); GridData gdLBLCurrentTransparency = new GridData(); gdLBLCurrentTransparency.widthHint = 40; lblCurrentTransparency.setLayoutData(gdLBLCurrentTransparency); srTransparency = new Slider(cmpTransparency, SWT.HORIZONTAL); GridData gdTransparent = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL); gdTransparent.heightHint = 20; gdTransparent.horizontalSpan = 2; srTransparency.setLayoutData(gdTransparent); if (fCurrent == null) { srTransparency.setSelection(0); srTransparency.setEnabled(false); } else { int iValue = 0; if (fCurrent instanceof ColorDefinition) { iValue = ((ColorDefinition) fCurrent).getTransparency(); } if (fCurrent instanceof Gradient) { iValue = ((Gradient) fCurrent).getTransparency(); } srTransparency.setValues(iValue, 0, 256, 1, 1, 10); } lblCurrentTransparency.setText(String.valueOf(srTransparency.getSelection())); srTransparency.setToolTipText(String.valueOf(srTransparency.getSelection())); srTransparency.addSelectionListener(this); if (this.bGradientEnabled) { btnGradient = new Button(cmpDropDown, SWT.NONE); GridData gdGradient = new GridData(GridData.FILL_BOTH); gdTransparent.heightHint = 26; gdGradient.horizontalSpan = 8; btnGradient.setLayoutData(gdGradient); btnGradient.setText("Gradient..."); btnGradient.addSelectionListener(this); } btnCustom = new Button(cmpDropDown, SWT.NONE); GridData gdCustom = new GridData(GridData.FILL_BOTH); gdTransparent.heightHint = 26; gdCustom.horizontalSpan = 8; btnCustom.setLayoutData(gdCustom); btnCustom.setText("Custom Color..."); btnCustom.addSelectionListener(this); if (this.bImageEnabled) { btnImage = new Button(cmpDropDown, SWT.NONE); GridData gdImage = new GridData(GridData.FILL_BOTH); gdTransparent.heightHint = 26; gdImage.horizontalSpan = 8; btnImage.setLayoutData(gdImage); btnImage.setText("Image..."); btnImage.addSelectionListener(this); } shell.layout(); shell.open(); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7793e94b4d7fab5891f226c6c937e37d85bebad8/FillChooserComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
7544,
4164,
1841,
12,
474,
277,
60,
1333,
16,
509,
277,
61,
1333,
13,
565,
288,
3639,
509,
277,
13220,
2686,
273,
27610,
31,
3639,
509,
277,
13220,
2384,
273,
25430,
31,
3639,
368,
24614,
326,
2072,
2511,
603,
1492,
9502,
854,
358,
506,
12188,
18,
3639,
309,
16051,
70,
15651,
1526,
13,
3639,
288,
5411,
277,
13220,
2686,
273,
277,
13220,
2686,
300,
5196,
31,
3639,
289,
3639,
309,
16051,
70,
2040,
1526,
13,
3639,
288,
5411,
277,
13220,
2686,
273,
277,
13220,
2686,
300,
5196,
31,
3639,
289,
3639,
19433,
5972,
273,
394,
19433,
12,
2211,
18,
588,
13220,
9334,
348,
8588,
18,
9826,
1769,
3639,
5972,
18,
542,
3744,
12,
2704,
14192,
3744,
10663,
3639,
5972,
18,
542,
1225,
12,
77,
13220,
2384,
16,
277,
13220,
2686,
1769,
3639,
5972,
18,
542,
2735,
12,
77,
60,
1333,
16,
277,
61,
1333,
1769,
3639,
9411,
7544,
4164,
273,
394,
14728,
12,
10304,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
3744,
5118,
7544,
4164,
273,
394,
7145,
3744,
5621,
3639,
5118,
7544,
4164,
18,
10107,
2686,
273,
576,
31,
3639,
5118,
7544,
4164,
18,
10107,
2384,
273,
576,
31,
3639,
5118,
7544,
4164,
18,
18396,
18006,
273,
404,
31,
3639,
5118,
7544,
4164,
18,
17824,
18006,
273,
404,
31,
3639,
5118,
7544,
4164,
18,
2107,
3380,
273,
1725,
31,
3639,
9411,
7544,
4164,
18,
542,
3744,
12,
7043,
7544,
4164,
1769,
3639,
9411,
7544,
4164,
18,
1289,
653,
2223,
12,
2211,
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,
752,
7544,
4164,
1841,
12,
474,
277,
60,
1333,
16,
509,
277,
61,
1333,
13,
565,
288,
3639,
509,
277,
13220,
2686,
273,
27610,
31,
3639,
509,
277,
13220,
2384,
273,
25430,
31,
3639,
368,
24614,
326,
2072,
2511,
603,
1492,
9502,
854,
358,
506,
12188,
18,
3639,
309,
16051,
70,
15651,
1526,
13,
3639,
288,
5411,
277,
13220,
2686,
273,
277,
13220,
2686,
300,
5196,
31,
3639,
289,
3639,
309,
16051,
70,
2040,
1526,
13,
3639,
288,
5411,
277,
13220,
2686,
273,
277,
13220,
2686,
300,
5196,
31,
3639,
289,
3639,
19433,
5972,
273,
394,
19433,
12,
2211,
18,
588,
13220,
9334,
348,
8588,
18,
9826,
1769,
3639,
5972,
18,
542,
3744,
12,
2704,
14192,
2
] |
if(!isConnected())
|
if(!isConnected)
|
public boolean completedHandshake(long thisBootID, byte[] data, int offset, int length, BlockCipher encCipher, byte[] encKey, Peer replyTo, boolean unverified) { long now = System.currentTimeMillis(); arkFetcher.stop(); synchronized(this) { completedHandshake = true; handshakeCount = 0; bogusNoderef = false; try { // First, the new noderef processNewNoderef(data, offset, length); } catch (FSParseException e1) { bogusNoderef = true; Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); // Treat as invalid version } if(reverseInvalidVersion()) { try { node.setNewestPeerLastGoodVersion(Version.getArbitraryBuildNumber(lastGoodVersion)); } catch (NumberFormatException e) { // ignore } Logger.normal(this, "Not connecting to "+this+" - reverse invalid version "+Version.getVersionString()+" for peer's lastGoodversion: "+lastGoodVersion); verifiedIncompatibleNewerVersion = true; isConnected = false; } else { verifiedIncompatibleNewerVersion = false; } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+version); verifiedIncompatibleOlderVersion = true; isConnected = false; } else { verifiedIncompatibleOlderVersion = false; } setPeerNodeStatus(now); KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); if(thisBootID != this.bootID) { connectedTime = System.currentTimeMillis(); Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID+" for "+getPeer()); isConnected = false; // Will be reset below setPeerNodeStatus(now); if(previousTracker != null) { KeyTracker old = previousTracker; previousTracker = null; old.completelyDeprecated(newTracker); } previousTracker = null; if(currentTracker != null) { KeyTracker old = currentTracker; currentTracker = null; old.completelyDeprecated(newTracker); } this.bootID = thisBootID; node.lm.lostOrRestartedNode(this); } // else it's a rekey if(unverified) { unverifiedTracker = newTracker; ctx = null; Logger.minor(this, "sentHandshake() being called for unverifiedTracker: "+getPeer()); sentHandshake(); } else { previousTracker = currentTracker; currentTracker = newTracker; unverifiedTracker = null; if(previousTracker != null) previousTracker.deprecated(); neverConnected = false; peerAddedTime = 0; // don't store anymore setPeerNodeStatus(now); ctx = null; } if(!isConnected()) node.peers.disconnected(this); Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID+" myName: "+myName); try { receivedPacket(unverified); } catch (NotConnectedException e) { Logger.error(this, "Disconnected in completedHandshake with "+this); return true; // i suppose } if(isConnected) node.peers.addConnectedPeer(this); sentInitialMessages = false; return true; } }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/f18d01b1fb86ddf4053d90e1f337f99ccd2ec255/PeerNode.java/clean/src/freenet/node/PeerNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5951,
14545,
12,
5748,
333,
15817,
734,
16,
1160,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
3914,
13896,
2446,
13896,
16,
1160,
8526,
2446,
653,
16,
10669,
30934,
16,
1250,
640,
19685,
13,
288,
377,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
1313,
16855,
18,
5681,
5621,
377,
202,
22043,
12,
2211,
13,
288,
377,
202,
202,
13615,
14545,
273,
638,
31,
377,
202,
202,
2349,
7478,
1380,
273,
374,
31,
540,
202,
70,
28774,
50,
369,
822,
74,
273,
629,
31,
540,
202,
698,
288,
540,
202,
202,
759,
5783,
16,
326,
394,
14003,
822,
74,
540,
202,
202,
2567,
1908,
50,
369,
822,
74,
12,
892,
16,
1384,
16,
769,
1769,
540,
202,
97,
1044,
261,
4931,
13047,
425,
21,
13,
288,
540,
202,
202,
70,
28774,
50,
369,
822,
74,
273,
638,
31,
540,
202,
202,
3328,
18,
1636,
12,
2211,
16,
315,
2925,
358,
1109,
394,
14003,
822,
74,
364,
13773,
2211,
15,
6877,
13773,
73,
21,
16,
425,
21,
1769,
540,
202,
202,
759,
26564,
487,
2057,
1177,
540,
202,
97,
540,
202,
430,
12,
9845,
1941,
1444,
10756,
288,
540,
202,
202,
698,
288,
540,
1082,
202,
2159,
18,
542,
1908,
395,
6813,
3024,
18195,
1444,
12,
1444,
18,
588,
686,
3682,
3345,
3116,
1854,
12,
2722,
18195,
1444,
10019,
540,
202,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
540,
1082,
202,
759,
2305,
540,
202,
202,
97,
540,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5951,
14545,
12,
5748,
333,
15817,
734,
16,
1160,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
3914,
13896,
2446,
13896,
16,
1160,
8526,
2446,
653,
16,
10669,
30934,
16,
1250,
640,
19685,
13,
288,
377,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
1313,
16855,
18,
5681,
5621,
377,
202,
22043,
12,
2211,
13,
288,
377,
202,
202,
13615,
14545,
273,
638,
31,
377,
202,
202,
2349,
7478,
1380,
273,
374,
31,
540,
202,
70,
28774,
50,
369,
822,
74,
273,
629,
31,
540,
202,
698,
288,
540,
202,
202,
759,
5783,
16,
326,
394,
14003,
822,
74,
540,
202,
202,
2567,
1908,
50,
369,
822,
74,
12,
892,
16,
1384,
2
] |
this.mojos = new LinkedList( mojos );
|
for ( Iterator it = mojos.iterator(); it.hasNext(); ) { MojoDescriptor descriptor = (MojoDescriptor) it.next(); addMojo( descriptor ); }
|
public void setMojos( List mojos ) { this.mojos = new LinkedList( mojos ); }
|
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/5877385df1e5b2dff3e57131c8fac869556c3b8c/PluginDescriptor.java/buggy/maven-plugin-descriptor/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15430,
6311,
538,
12,
987,
312,
6311,
538,
262,
565,
288,
3639,
364,
261,
4498,
518,
273,
312,
6311,
538,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
15931,
3187,
4950,
273,
261,
49,
10007,
3187,
13,
518,
18,
4285,
5621,
225,
527,
49,
10007,
12,
4950,
11272,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
15430,
6311,
538,
12,
987,
312,
6311,
538,
262,
565,
288,
3639,
364,
261,
4498,
518,
273,
312,
6311,
538,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
15931,
3187,
4950,
273,
261,
49,
10007,
3187,
13,
518,
18,
4285,
5621,
225,
527,
49,
10007,
12,
4950,
11272,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (column + sb.length() >= prettyPrinter.getDocumentWidth() - 1) { if (margin.length() + sb.length() < prettyPrinter.getDocumentWidth() - 1 || margin.length() < column) {
|
if (startsWithSpace) { int endCol = column + sb.length(); if ((endCol >= prettyPrinter.getDocumentWidth() - 1) && ((margin.length() + sb.length() < prettyPrinter.getDocumentWidth() - 1) || (margin.length() < column))) {
|
protected void formatText(char[] text, String margin) throws IOException { int i = 0; loop: while (i < text.length) { for (;;) { if (i >= text.length) { break loop; } if (!XMLUtilities.isXMLSpace(text[i])) { break; } i++; } StringBuffer sb = new StringBuffer(); for (;;) { if (i >= text.length || XMLUtilities.isXMLSpace(text[i])) { break; } sb.append(text[i++]); } if (sb.length() == 0) { break; } if (column + sb.length() >= prettyPrinter.getDocumentWidth() - 1) { if (margin.length() + sb.length() < prettyPrinter.getDocumentWidth() - 1 || margin.length() < column) { printNewline(); printString(margin); printString(sb.toString()); } else { if (column >= margin.length()) { printCharacter(' '); } printString(sb.toString()); } } else { if (column > margin.length()) { printCharacter(' '); } printString(sb.toString()); } } }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/bebad01b866f19c096ef5f10f2a9ca11827bbe45/OutputManager.java/buggy/sources/org/apache/batik/transcoder/svg2svg/OutputManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
740,
1528,
12,
3001,
8526,
977,
16,
514,
7333,
13,
1216,
1860,
288,
3639,
509,
277,
273,
374,
31,
3639,
2798,
30,
1323,
261,
77,
411,
977,
18,
2469,
13,
288,
5411,
364,
261,
25708,
13,
288,
7734,
309,
261,
77,
1545,
977,
18,
2469,
13,
288,
10792,
898,
2798,
31,
7734,
289,
7734,
309,
16051,
4201,
11864,
18,
291,
4201,
3819,
12,
955,
63,
77,
22643,
288,
10792,
898,
31,
7734,
289,
7734,
277,
9904,
31,
5411,
289,
5411,
6674,
2393,
273,
394,
6674,
5621,
5411,
364,
261,
25708,
13,
288,
7734,
309,
261,
77,
1545,
977,
18,
2469,
747,
3167,
11864,
18,
291,
4201,
3819,
12,
955,
63,
77,
22643,
288,
10792,
898,
31,
7734,
289,
7734,
2393,
18,
6923,
12,
955,
63,
77,
9904,
19226,
5411,
289,
5411,
309,
261,
18366,
18,
2469,
1435,
422,
374,
13,
288,
7734,
898,
31,
5411,
289,
5411,
309,
261,
2827,
397,
2393,
18,
2469,
1435,
1545,
7517,
12149,
18,
588,
2519,
2384,
1435,
300,
404,
13,
288,
7734,
309,
261,
10107,
18,
2469,
1435,
397,
2393,
18,
2469,
1435,
411,
10792,
7517,
12149,
18,
588,
2519,
2384,
1435,
300,
404,
747,
10792,
7333,
18,
2469,
1435,
411,
1057,
13,
288,
10792,
1172,
26754,
5621,
10792,
1172,
780,
12,
10107,
1769,
10792,
1172,
780,
12,
18366,
18,
10492,
10663,
7734,
289,
469,
288,
10792,
309,
261,
2827,
1545,
7333,
18,
2469,
10756,
288,
13491,
1172,
7069,
2668,
28005,
10792,
289,
10792,
1172,
780,
12,
18366,
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,
740,
1528,
12,
3001,
8526,
977,
16,
514,
7333,
13,
1216,
1860,
288,
3639,
509,
277,
273,
374,
31,
3639,
2798,
30,
1323,
261,
77,
411,
977,
18,
2469,
13,
288,
5411,
364,
261,
25708,
13,
288,
7734,
309,
261,
77,
1545,
977,
18,
2469,
13,
288,
10792,
898,
2798,
31,
7734,
289,
7734,
309,
16051,
4201,
11864,
18,
291,
4201,
3819,
12,
955,
63,
77,
22643,
288,
10792,
898,
31,
7734,
289,
7734,
277,
9904,
31,
5411,
289,
5411,
6674,
2393,
273,
394,
6674,
5621,
5411,
364,
261,
25708,
13,
288,
7734,
309,
261,
77,
1545,
977,
18,
2469,
747,
3167,
11864,
18,
291,
4201,
3819,
12,
955,
63,
77,
22643,
288,
10792,
898,
31,
2
] |
msgs.notify();
|
msgs.notifyAll();
|
public void stop() { Entry entry; // i. If retransmitter is owned, stop it else cancel all tasks // ii. Clear all pending msgs and notify anyone waiting synchronized(msgs) { if (retransmitter_owned) { try { retransmitter.stop(); } catch(InterruptedException ex) { if(log.isErrorEnabled()) log.error(_toString(ex)); } } else { for (Enumeration e = msgs.elements(); e.hasMoreElements();) { entry = (Entry)e.nextElement(); entry.cancel(); } } msgs.clear(); // wake up waitUntilAllAcksReceived() method msgs.notify(); } }
|
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/56d91cb893622dbe94db73b474ef0ae7c6a544fc/AckMcastSenderWindow.java/clean/src/org/jgroups/stack/AckMcastSenderWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
1435,
288,
202,
1622,
1241,
31,
202,
759,
277,
18,
971,
283,
2338,
1938,
387,
353,
16199,
16,
2132,
518,
469,
3755,
777,
4592,
202,
759,
6072,
18,
10121,
777,
4634,
8733,
471,
5066,
1281,
476,
7336,
202,
22043,
12,
27439,
13,
288,
202,
565,
309,
261,
266,
2338,
1938,
387,
67,
995,
329,
13,
288,
202,
202,
698,
288,
1082,
565,
283,
2338,
1938,
387,
18,
5681,
5621,
202,
202,
97,
1044,
12,
24485,
503,
431,
13,
288,
1082,
565,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
24899,
10492,
12,
338,
10019,
202,
202,
97,
202,
565,
289,
469,
288,
202,
202,
1884,
261,
21847,
425,
273,
8733,
18,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
13,
288,
1082,
565,
1241,
273,
261,
1622,
13,
73,
18,
4285,
1046,
5621,
1082,
565,
1241,
18,
10996,
5621,
202,
202,
97,
202,
565,
289,
202,
565,
8733,
18,
8507,
5621,
202,
565,
368,
19891,
731,
2529,
9716,
1595,
11931,
87,
8872,
1435,
707,
202,
565,
8733,
18,
12336,
5621,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
1435,
288,
202,
1622,
1241,
31,
202,
759,
277,
18,
971,
283,
2338,
1938,
387,
353,
16199,
16,
2132,
518,
469,
3755,
777,
4592,
202,
759,
6072,
18,
10121,
777,
4634,
8733,
471,
5066,
1281,
476,
7336,
202,
22043,
12,
27439,
13,
288,
202,
565,
309,
261,
266,
2338,
1938,
387,
67,
995,
329,
13,
288,
202,
202,
698,
288,
1082,
565,
283,
2338,
1938,
387,
18,
5681,
5621,
202,
202,
97,
1044,
12,
24485,
503,
431,
13,
288,
1082,
565,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
24899,
10492,
12,
338,
10019,
202,
202,
97,
202,
565,
289,
469,
288,
202,
202,
1884,
261,
21847,
425,
273,
8733,
18,
6274,
2
] |
exportModel2.useProjections(true); exportModel2.setRootTable((Class) queryParam[2]);
|
exportModel.useProjections(true); exportModel.setRootTable((Class) queryParam[2]);
|
public void actionPerformed(ActionEvent actionEvent) { // Create a new dialog if it already doesn't exist. if (exportModel2 == null) { exportModel2 = new ExportMng2(model.getDatabase()); exportCtrl2 = new ExportMngCtrl2(exportModel2, view); } try { SelectQuery query; Object[] queryParam = searchModel.constructExportQuery(); query = (SelectQuery) queryParam[0]; if ((Boolean) queryParam[1]) { // use projections exportModel2.useProjections(true); exportModel2.setRootTable((Class) queryParam[2]); } exportModel2.setSelectQuery(query); exportModel2.setSelection(model.getTableModel().getSelection()); } catch (DBLayerException e) { // TODO: Some errors may lead to ReconnectDialog.show()! JOptionPane.showMessageDialog(view, "DBLayer Exception: " + e.getMessage()); return; } catch (RemoteException e) { DefaultReconnectDialog.show(view, e); return; } exportCtrl2.setVisible(true); }
|
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/abff572b74932eb11dcba13d1fe9f078107da0b2/AppCoreCtrl.java/clean/trunk/src/net/sf/plantlore/client/AppCoreCtrl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
1301,
1133,
13,
288,
1082,
202,
759,
1788,
279,
394,
6176,
309,
518,
1818,
3302,
1404,
1005,
18,
1082,
202,
430,
261,
6530,
1488,
22,
422,
446,
13,
288,
9506,
202,
6530,
1488,
22,
273,
394,
11054,
49,
3368,
22,
12,
2284,
18,
588,
4254,
10663,
9506,
202,
6530,
12418,
22,
273,
394,
11054,
49,
3368,
12418,
22,
12,
6530,
1488,
22,
16,
1476,
1769,
1082,
202,
97,
1082,
202,
698,
288,
9506,
202,
3391,
1138,
843,
31,
9506,
202,
921,
8526,
25802,
273,
1623,
1488,
18,
10062,
6144,
1138,
5621,
9506,
202,
2271,
273,
261,
3391,
1138,
13,
25802,
63,
20,
15533,
9506,
202,
430,
14015,
5507,
13,
25802,
63,
21,
5717,
288,
368,
999,
8106,
87,
6862,
202,
6530,
1488,
22,
18,
1202,
14789,
87,
12,
3767,
1769,
6862,
202,
6530,
1488,
22,
18,
542,
2375,
1388,
12443,
797,
13,
25802,
63,
22,
19226,
9506,
202,
97,
9506,
202,
6530,
1488,
22,
18,
542,
3391,
1138,
12,
2271,
1769,
9506,
202,
6530,
1488,
22,
18,
542,
6233,
12,
2284,
18,
588,
1388,
1488,
7675,
588,
6233,
10663,
1082,
202,
97,
1044,
261,
2290,
4576,
503,
425,
13,
288,
9506,
202,
759,
2660,
30,
10548,
1334,
2026,
5871,
358,
868,
3612,
6353,
18,
4500,
1435,
5,
9506,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
1945,
16,
315,
2290,
4576,
1185,
30,
315,
25083,
202,
15,
425,
18,
24906,
10663,
9506,
202,
2463,
31,
1082,
202,
97,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
1301,
1133,
13,
288,
1082,
202,
759,
1788,
279,
394,
6176,
309,
518,
1818,
3302,
1404,
1005,
18,
1082,
202,
430,
261,
6530,
1488,
22,
422,
446,
13,
288,
9506,
202,
6530,
1488,
22,
273,
394,
11054,
49,
3368,
22,
12,
2284,
18,
588,
4254,
10663,
9506,
202,
6530,
12418,
22,
273,
394,
11054,
49,
3368,
12418,
22,
12,
6530,
1488,
22,
16,
1476,
1769,
1082,
202,
97,
1082,
202,
698,
288,
9506,
202,
3391,
1138,
843,
31,
9506,
202,
921,
8526,
25802,
273,
1623,
1488,
18,
10062,
6144,
1138,
5621,
9506,
202,
2271,
273,
261,
3391,
1138,
13,
25802,
63,
20,
15533,
9506,
202,
430,
14015,
5507,
13,
25802,
63,
2
] |
public org.quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { org.quickfix.field.UnderlyingRedemptionDate value = new org.quickfix.field.UnderlyingRedemptionDate();
|
public quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { quickfix.field.UnderlyingRedemptionDate value = new quickfix.field.UnderlyingRedemptionDate();
|
public org.quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { org.quickfix.field.UnderlyingRedemptionDate value = new org.quickfix.field.UnderlyingRedemptionDate(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/DerivativeSecurityList.java/buggy/src/java/src/quickfix/fix43/DerivativeSecurityList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
19117,
375,
1626,
10833,
765,
6291,
426,
19117,
375,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
19117,
375,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
19117,
375,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
19117,
375,
1626,
10833,
765,
6291,
426,
19117,
375,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
19117,
375,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
19117,
375,
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
] |
Class c = Class.forName(className); LookAndFeel a = (LookAndFeel) c.newInstance(); setLookAndFeel(a);
|
if (! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); if (look_and_feel != null) look_and_feel.uninitialize(); look_and_feel = newLookAndFeel; look_and_feel.initialize();
|
public static void setLookAndFeel (String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { Class c = Class.forName(className); LookAndFeel a = (LookAndFeel) c.newInstance(); // throws class-cast-exception setLookAndFeel(a); }
|
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/cd2c3eea42ea3ce8cb91d7783e99c2c7ba7f4f37/UIManager.java/buggy/libjava/javax/swing/UIManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
444,
9794,
1876,
2954,
292,
261,
780,
2658,
13,
565,
1216,
10403,
16,
19248,
16,
11900,
16,
565,
7221,
9794,
1876,
2954,
292,
503,
225,
288,
565,
1659,
276,
273,
1659,
18,
1884,
461,
12,
12434,
1769,
565,
10176,
1876,
2954,
292,
279,
273,
261,
9794,
1876,
2954,
292,
13,
276,
18,
2704,
1442,
5621,
368,
1216,
667,
17,
4155,
17,
4064,
565,
444,
9794,
1876,
2954,
292,
12,
69,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
918,
444,
9794,
1876,
2954,
292,
261,
780,
2658,
13,
565,
1216,
10403,
16,
19248,
16,
11900,
16,
565,
7221,
9794,
1876,
2954,
292,
503,
225,
288,
565,
1659,
276,
273,
1659,
18,
1884,
461,
12,
12434,
1769,
565,
10176,
1876,
2954,
292,
279,
273,
261,
9794,
1876,
2954,
292,
13,
276,
18,
2704,
1442,
5621,
368,
1216,
667,
17,
4155,
17,
4064,
565,
444,
9794,
1876,
2954,
292,
12,
69,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Driver getDriver() {
|
public IPatchDriver getDriver() {
|
public Driver getDriver() { return driver; }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/af6640fd9aa925c4d7044770be761a3432d7c66e/Patch.java/clean/JSynthLib/core/Patch.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9396,
15885,
1435,
288,
202,
2463,
3419,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9396,
15885,
1435,
288,
202,
2463,
3419,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_t = __t188;
|
_t = __t193;
|
public final void buffercopystate(AST _t) throws RecognitionException { AST buffercopystate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t183 = _t; AST tmp751_AST_in = (AST)_t; match(_t,BUFFERCOPY); _t = _t.getFirstChild(); tbl(_t,CQ.REF); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t185 = _t; AST tmp752_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop187: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop187; } } while (true); } _t = __t185; _t = _t.getNextSibling(); break; } case USING: { AST __t188 = _t; AST tmp753_AST_in = (AST)_t; match(_t,USING); _t = _t.getFirstChild(); { int _cnt190=0; _loop190: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.REF); _t = _retTree; } else { if ( _cnt190>=1 ) { break _loop190; } else {throw new NoViableAltException(_t);} } _cnt190++; } while (true); } _t = __t188; _t = _t.getNextSibling(); break; } case TO: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp754_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); tbl(_t,CQ.UPDATING); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASSIGN: { AST __t192 = _t; AST tmp755_AST_in = (AST)_t; match(_t,ASSIGN); _t = _t.getFirstChild(); assignment_list(_t); _t = _retTree; _t = __t192; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOLOBS: { AST tmp756_AST_in = (AST)_t; match(_t,NOLOBS); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp757_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t183; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1613,
22295,
1094,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1613,
22295,
1094,
340,
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,
31672,
273,
389,
88,
31,
202,
202,
9053,
1853,
5877,
21,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
11302,
24875,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
16187,
24899,
88,
16,
39,
53,
18,
10771,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
5675,
14514,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
30489,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5877,
22,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
2294,
14514,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
95,
1082,
202,
67,
6498,
2643,
27,
30,
1082,
202,
2896,
288,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
9506,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
974,
67,
1734,
3719,
288,
6862,
202,
19794,
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,
1613,
22295,
1094,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1613,
22295,
1094,
340,
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,
31672,
273,
389,
88,
31,
202,
202,
9053,
1853,
5877,
21,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
11302,
24875,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
16187,
24899,
88,
16,
39,
53,
18,
10771,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
2
] |
Log.write('U'); Log.write(' '); Log.write(val);
|
if (!OMIT_UPDATES) { Log.write('U'); Log.write(' '); Log.write(val); loggedRecord = true; }
|
public final void process() { Word traceState = TRACE_NEW_RECORD; int entriesNotFlushed = 0; /* First we must flush any remaining data */ Log.writeln(); /* Process through the entire buffer. */ while (checkDequeue(1)) { /* For speed and efficiency, we will actually process the data buffer by buffer and not by dequeue-ing each entry. */ while (!bufferOffset(head).isZero()) { head = head.minus(BYTES_IN_ADDRESS); Word val = head.loadWord(); if (traceState.EQ(TRACE_NEW_RECORD)) { if (val.EQ(TRACE_GCSTART)) { Log.write('G'); Log.write('C'); Log.writeln('B', true); } else if (val.EQ(TRACE_GCEND)) { Log.write('G'); Log.write('C'); Log.writeln('E', true); } else { traceState = val; } } else { if (traceState.EQ(TRACE_EXACT_ALLOC) || traceState.EQ(TRACE_ALLOC)) { Log.write((traceState.EQ(TRACE_EXACT_ALLOC)) ? 'A' : 'a'); Log.write(' '); Log.write(val); traceState = TRACE_ALLOC_SIZE; } else if (traceState.EQ(TRACE_EXACT_IMMORTAL_ALLOC) || traceState.EQ(TRACE_IMMORTAL_ALLOC)) { Log.write((traceState.EQ(TRACE_EXACT_IMMORTAL_ALLOC)) ? 'I' : 'i'); Log.write(' '); Log.write(val); traceState = TRACE_ALLOC_SIZE; } else if (traceState.EQ(TRACE_BOOT_ALLOC)) { Log.write('B'); Log.write(' '); Log.write(val); traceState = TRACE_BOOT_ALLOC_SIZE; } else if (traceState.EQ(TRACE_DEATH)) { Log.write('D'); Log.write(' '); Log.write(val); traceState = TRACE_DEATH_TIME; } else if (traceState.EQ(TRACE_BOOT_ALLOC_SIZE)) { Log.write(val); traceState = TRACE_NEW_RECORD; } else if (traceState.EQ(TRACE_ALLOC_SIZE)) { Log.write(val); traceState = TRACE_ALLOC_FP; } else if (traceState.EQ(TRACE_ALLOC_FP)) { Log.write(val); traceState = TRACE_ALLOC_THREAD; } else if (traceState.EQ(TRACE_ALLOC_THREAD)) { Log.write(val); traceState = TRACE_NEW_RECORD; } else if (traceState.EQ(TRACE_TIB_SET)) { Log.write('T'); Log.write(' '); Log.write(val); traceState = TRACE_TIB_VALUE; } else if (traceState.EQ(TRACE_STATIC_SET)) { Log.write('S'); Log.write(' '); Log.write(val); traceState = TRACE_STATIC_TARGET; } else if (traceState.EQ(TRACE_TIB_VALUE) || traceState.EQ(TRACE_DEATH_TIME) || traceState.EQ(TRACE_STATIC_TARGET)) { Log.write(val); traceState = TRACE_NEW_RECORD; } else if (traceState.EQ(TRACE_FIELD_SET) || traceState.EQ(TRACE_ARRAY_SET)) { Log.write('U'); Log.write(' '); Log.write(val); traceState = TRACE_FIELD_SLOT; } else if (traceState.EQ(TRACE_FIELD_TARGET) || traceState.EQ(TRACE_ARRAY_TARGET)) { Log.write(val); traceState = TRACE_NEW_RECORD; } else if (traceState.EQ(TRACE_FIELD_SLOT) || traceState.EQ(TRACE_ARRAY_ELEMENT)) { Log.write(val); traceState = TRACE_FIELD_TARGET; } else VM.assertions.fail("Cannot understand directive!\n"); if (traceState.EQ(TRACE_NEW_RECORD)) { entriesNotFlushed++; Log.writeln(); } else { Log.write(' '); } } if (entriesNotFlushed == 10) { Log.flush(); entriesNotFlushed = 0; } } } resetLocal(); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/5c4fbd7ecbdacd943e5b2fdee13998e93ef59a2c/TraceBuffer.java/clean/MMTk/src/org/mmtk/utility/deque/TraceBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
1207,
1435,
288,
565,
9926,
2606,
1119,
273,
12734,
67,
12917,
67,
22261,
31,
565,
509,
3222,
1248,
8207,
329,
273,
374,
31,
565,
1748,
5783,
732,
1297,
3663,
1281,
4463,
501,
1195,
565,
1827,
18,
5363,
292,
82,
5621,
565,
1748,
4389,
3059,
326,
7278,
1613,
18,
1195,
565,
1323,
261,
1893,
758,
4000,
12,
21,
3719,
288,
1377,
1748,
2457,
8632,
471,
30325,
16,
732,
903,
6013,
1207,
326,
501,
1613,
635,
1850,
1613,
471,
486,
635,
29964,
17,
310,
1517,
1241,
18,
1195,
1377,
1323,
16051,
4106,
2335,
12,
1978,
2934,
291,
7170,
10756,
288,
3639,
910,
273,
910,
18,
19601,
12,
13718,
67,
706,
67,
15140,
1769,
3639,
9926,
1244,
273,
910,
18,
945,
3944,
5621,
3639,
309,
261,
5129,
1119,
18,
27247,
12,
23827,
67,
12917,
67,
22261,
3719,
288,
1850,
309,
261,
1125,
18,
27247,
12,
23827,
67,
15396,
7570,
3719,
288,
5411,
1827,
18,
2626,
2668,
43,
8284,
5411,
1827,
18,
2626,
2668,
39,
8284,
5411,
1827,
18,
5363,
292,
82,
2668,
38,
2187,
638,
1769,
1850,
289,
469,
309,
261,
1125,
18,
27247,
12,
23827,
67,
15396,
4415,
3719,
288,
5411,
1827,
18,
2626,
2668,
43,
8284,
5411,
1827,
18,
2626,
2668,
39,
8284,
5411,
1827,
18,
5363,
292,
82,
2668,
41,
2187,
638,
1769,
1850,
289,
469,
288,
5411,
2606,
1119,
273,
1244,
31,
1850,
289,
3639,
289,
469,
288,
1850,
309,
261,
5129,
1119,
18,
27247,
12,
23827,
67,
2294,
6526,
67,
1013,
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,
727,
918,
1207,
1435,
288,
565,
9926,
2606,
1119,
273,
12734,
67,
12917,
67,
22261,
31,
565,
509,
3222,
1248,
8207,
329,
273,
374,
31,
565,
1748,
5783,
732,
1297,
3663,
1281,
4463,
501,
1195,
565,
1827,
18,
5363,
292,
82,
5621,
565,
1748,
4389,
3059,
326,
7278,
1613,
18,
1195,
565,
1323,
261,
1893,
758,
4000,
12,
21,
3719,
288,
1377,
1748,
2457,
8632,
471,
30325,
16,
732,
903,
6013,
1207,
326,
501,
1613,
635,
1850,
1613,
471,
486,
635,
29964,
17,
310,
1517,
1241,
18,
1195,
1377,
1323,
16051,
4106,
2335,
12,
1978,
2934,
291,
7170,
10756,
288,
3639,
910,
273,
910,
18,
19601,
12,
13718,
67,
706,
67,
15140,
1769,
3639,
9926,
1244,
273,
2
] |
if (widget == null){ add(new Object[] {element});
|
if (widget == null) { add(new Object[] { element });
|
protected void internalRefresh(Object element) { if (element == null) return; if (element.equals(getRoot())){ refreshAll(); return; } Widget widget = findItem(element); if (widget == null){ add(new Object[] {element}); return; } ((ProgressInfoItem) widget).refresh(); Point size = control.computeSize(SWT.DEFAULT, SWT.DEFAULT); control.setSize(size); scrolled.setMinSize(size); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b74a31b065521f3deb00bd3a7661e7916a93a635/DetailedProgressViewer.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/DetailedProgressViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2713,
8323,
12,
921,
930,
13,
288,
202,
202,
430,
261,
2956,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
430,
261,
2956,
18,
14963,
12,
588,
2375,
1435,
3719,
95,
1082,
202,
9144,
1595,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
4609,
3604,
273,
1104,
1180,
12,
2956,
1769,
202,
202,
430,
261,
6587,
422,
446,
15329,
1082,
202,
1289,
12,
2704,
1033,
8526,
288,
2956,
22938,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
12443,
5491,
966,
1180,
13,
3604,
2934,
9144,
5621,
202,
202,
2148,
963,
273,
3325,
18,
9200,
1225,
12,
55,
8588,
18,
5280,
16,
348,
8588,
18,
5280,
1769,
202,
202,
7098,
18,
542,
1225,
12,
1467,
1769,
202,
202,
1017,
25054,
18,
542,
2930,
1225,
12,
1467,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2713,
8323,
12,
921,
930,
13,
288,
202,
202,
430,
261,
2956,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
430,
261,
2956,
18,
14963,
12,
588,
2375,
1435,
3719,
95,
1082,
202,
9144,
1595,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
4609,
3604,
273,
1104,
1180,
12,
2956,
1769,
202,
202,
430,
261,
6587,
422,
446,
15329,
1082,
202,
1289,
12,
2704,
1033,
8526,
288,
2956,
22938,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
12443,
5491,
966,
1180,
13,
3604,
2934,
9144,
5621,
202,
202,
2148,
963,
273,
3325,
18,
9200,
1225,
12,
55,
8588,
18,
5280,
16,
348,
8588,
18,
5280,
1769,
202,
202,
7098,
18,
542,
2
] |
if ( table != null && !table.isDisposed( ) ) { setDefaultTypeSelection( ); }
|
public void setContext( IWizardContext context ) { super.setContext( context ); this.chartModel = ( (ChartWizardContext) context ).getModel( ); if ( chartModel != null ) { this.sType = chartModel.getType( ); this.sSubType = chartModel.getSubType( ); this.sDimension = chartModel.getDimension( ).getName( ); if ( chartModel instanceof ChartWithAxes ) { this.orientation = ( (ChartWithAxes) chartModel ).getOrientation( ); int iYAxesCount = ( (Axis) ( (ChartWithAxes) chartModel ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).size( ); // IF THE UI HAS BEEN INITIALIZED...I.E. IF setContext() IS // CALLED AFTER getUI() if ( iYAxesCount > 1 && ( lblMultipleY != null && !lblMultipleY.isDisposed( ) ) ) { lblMultipleY.setEnabled( !is3D( ) ); cbMultipleY.setEnabled( !is3D( ) ); lblSeriesType.setEnabled( !is3D( ) ); cbSeriesType.setEnabled( !is3D( ) ); cbMultipleY.setSelection( iYAxesCount > 1 ); // TODO: Update the series type based on series type for the // second Y axis } } // IF THE UI HAS BEEN INITIALIZED...I.E. IF setContext() IS CALLED // AFTER getUI() if ( table != null && !table.isDisposed( ) ) { setDefaultTypeSelection( ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/41d957ecd8a8ef31515e6ea8727e620c3876f054/TaskSelectType.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16615,
12,
467,
27130,
1042,
819,
262,
202,
95,
202,
202,
9565,
18,
542,
1042,
12,
819,
11272,
202,
202,
2211,
18,
11563,
1488,
273,
261,
261,
7984,
27130,
1042,
13,
819,
262,
18,
588,
1488,
12,
11272,
202,
202,
430,
261,
4980,
1488,
480,
446,
262,
202,
202,
95,
1082,
202,
2211,
18,
87,
559,
273,
4980,
1488,
18,
588,
559,
12,
11272,
1082,
202,
2211,
18,
87,
30511,
273,
4980,
1488,
18,
588,
30511,
12,
11272,
1082,
202,
2211,
18,
87,
8611,
273,
4980,
1488,
18,
588,
8611,
12,
262,
18,
17994,
12,
11272,
1082,
202,
430,
261,
4980,
1488,
1276,
14804,
1190,
26494,
262,
1082,
202,
95,
9506,
202,
2211,
18,
19235,
273,
261,
261,
7984,
1190,
26494,
13,
4980,
1488,
262,
18,
588,
14097,
12,
11272,
9506,
202,
474,
277,
61,
26494,
1380,
273,
261,
261,
6558,
13,
261,
261,
7984,
1190,
26494,
13,
4980,
1488,
262,
18,
588,
26494,
12,
262,
25083,
202,
18,
588,
12,
374,
262,
262,
18,
588,
19233,
26494,
12,
262,
18,
1467,
12,
11272,
9506,
202,
759,
11083,
12786,
6484,
21641,
9722,
1157,
12584,
25991,
2777,
45,
18,
41,
18,
11083,
16615,
1435,
4437,
9506,
202,
759,
385,
27751,
18651,
336,
5370,
1435,
9506,
202,
430,
261,
277,
61,
26494,
1380,
405,
404,
25083,
202,
10,
10,
261,
14284,
8438,
61,
480,
446,
597,
401,
31885,
8438,
61,
18,
291,
1669,
7423,
12,
262,
262,
262,
9506,
202,
95,
6862,
202,
31885,
8438,
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,
16615,
12,
467,
27130,
1042,
819,
262,
202,
95,
202,
202,
9565,
18,
542,
1042,
12,
819,
11272,
202,
202,
2211,
18,
11563,
1488,
273,
261,
261,
7984,
27130,
1042,
13,
819,
262,
18,
588,
1488,
12,
11272,
202,
202,
430,
261,
4980,
1488,
480,
446,
262,
202,
202,
95,
1082,
202,
2211,
18,
87,
559,
273,
4980,
1488,
18,
588,
559,
12,
11272,
1082,
202,
2211,
18,
87,
30511,
273,
4980,
1488,
18,
588,
30511,
12,
11272,
1082,
202,
2211,
18,
87,
8611,
273,
4980,
1488,
18,
588,
8611,
12,
262,
18,
17994,
12,
11272,
1082,
202,
430,
261,
4980,
1488,
1276,
14804,
1190,
26494,
262,
1082,
202,
95,
9506,
202,
2211,
18,
19235,
2
] |
|
float[] floats = (float[]) converter.convertValue(context, null, null, null, new String[]{ "123", "456" }, float[].class);
|
float[] floats = (float[]) converter.convertValue(context, null, null, null, new String[] { "123", "456" }, float[].class);
|
public void testStringArrayToPrimitives() throws OgnlException { long[] longs = (long[]) converter.convertValue(context, null, null, null, new String[]{ "123", "456" }, long[].class); assertNotNull(longs); assertTrue(Arrays.equals(new long[]{123, 456}, longs)); int[] ints = (int[]) converter.convertValue(context, null, null, null, new String[]{ "123", "456" }, int[].class); assertNotNull(ints); assertTrue(Arrays.equals(new int[]{123, 456}, ints)); double[] doubles = (double[]) converter.convertValue(context, null, null, null, new String[]{ "123", "456" }, double[].class); assertNotNull(doubles); assertTrue(Arrays.equals(new double[]{123, 456}, doubles)); float[] floats = (float[]) converter.convertValue(context, null, null, null, new String[]{ "123", "456" }, float[].class); assertNotNull(floats); assertTrue(Arrays.equals(new float[]{123, 456}, floats)); boolean[] booleans = (boolean[]) converter.convertValue(context, null, null, null, new String[]{ "true", "false" }, boolean[].class); assertNotNull(booleans); assertTrue(Arrays.equals(new boolean[]{true, false}, booleans)); }
|
16468 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16468/a864a10e0ae74db12a683fe9ded33b591590ad5b/XWorkConverterTest.java/clean/src/test/com/opensymphony/xwork/util/XWorkConverterTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
28547,
774,
2050,
18116,
1435,
1216,
531,
1600,
80,
503,
288,
3639,
1525,
8526,
4281,
564,
273,
261,
5748,
63,
5717,
6027,
18,
6283,
620,
12,
2472,
16,
446,
16,
446,
16,
446,
16,
394,
514,
63,
7073,
5411,
315,
12936,
3113,
315,
24,
4313,
6,
3639,
19879,
1525,
63,
8009,
1106,
1769,
3639,
25395,
12,
80,
7260,
1769,
3639,
1815,
5510,
12,
12726,
18,
14963,
12,
2704,
1525,
63,
7073,
12936,
16,
1059,
4313,
5779,
4281,
564,
10019,
3639,
509,
8526,
15542,
273,
261,
474,
63,
5717,
6027,
18,
6283,
620,
12,
2472,
16,
446,
16,
446,
16,
446,
16,
394,
514,
63,
7073,
5411,
315,
12936,
3113,
315,
24,
4313,
6,
3639,
19879,
509,
63,
8009,
1106,
1769,
3639,
25395,
12,
28142,
1769,
3639,
1815,
5510,
12,
12726,
18,
14963,
12,
2704,
509,
63,
7073,
12936,
16,
1059,
4313,
5779,
15542,
10019,
3639,
1645,
8526,
31446,
273,
261,
9056,
63,
5717,
6027,
18,
6283,
620,
12,
2472,
16,
446,
16,
446,
16,
446,
16,
394,
514,
63,
7073,
5411,
315,
12936,
3113,
315,
24,
4313,
6,
3639,
19879,
1645,
63,
8009,
1106,
1769,
3639,
25395,
12,
2896,
19314,
1769,
3639,
1815,
5510,
12,
12726,
18,
14963,
12,
2704,
1645,
63,
7073,
12936,
16,
1059,
4313,
5779,
31446,
10019,
3639,
1431,
8526,
19172,
273,
261,
5659,
63,
5717,
6027,
18,
6283,
620,
12,
2472,
16,
446,
16,
446,
16,
446,
16,
394,
514,
63,
7073,
5411,
315,
12936,
3113,
315,
24,
4313,
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,
28547,
774,
2050,
18116,
1435,
1216,
531,
1600,
80,
503,
288,
3639,
1525,
8526,
4281,
564,
273,
261,
5748,
63,
5717,
6027,
18,
6283,
620,
12,
2472,
16,
446,
16,
446,
16,
446,
16,
394,
514,
63,
7073,
5411,
315,
12936,
3113,
315,
24,
4313,
6,
3639,
19879,
1525,
63,
8009,
1106,
1769,
3639,
25395,
12,
80,
7260,
1769,
3639,
1815,
5510,
12,
12726,
18,
14963,
12,
2704,
1525,
63,
7073,
12936,
16,
1059,
4313,
5779,
4281,
564,
10019,
3639,
509,
8526,
15542,
273,
261,
474,
63,
5717,
6027,
18,
6283,
620,
12,
2472,
16,
446,
16,
446,
16,
446,
16,
394,
514,
63,
7073,
5411,
315,
12936,
3113,
315,
24,
4313,
6,
3639,
19879,
2
] |
"Yellow images mark differences that are statistically insignificant at the " + percentFormatter.format(1.0 - percentile.inside()) + " level.<br>\n" +
|
"Yellow images mark results where there is not enough evidence to reject the null hypothesis at the " + percentFormatter.format(percentile.inside()) + "level (Student's t-test).<br>\n" +
|
public String toString() { String OS="config"; String htmlTable=""; Scenario[] scenarios= DB.queryScenarios(variations, scenarioPattern, OS, null); Variations referenceVariations= (Variations) variations.clone(); referenceVariations.put(PerformanceTestPlugin.BUILD, baseline); Scenario[] refScenarios= DB.queryScenarios(referenceVariations, scenarioPattern, OS, null); NumberFormat percentFormatter= NumberFormat.getPercentInstance(); Map references= new HashMap(); for (int i= 0; i < refScenarios.length; i++) { Scenario scenario= refScenarios[i]; String name= scenario.getScenarioName(); references.put(name, scenario); } if (scenarios != null && scenarios.length > 0) { ArrayList scenarioStatusList=new ArrayList(); Percentile percentile= StatisticsUtil.T90; for (int i= 0; i < scenarios.length; i++) { Scenario scenario= scenarios[i]; String scenarioName=scenario.getScenarioName(); //returns the config names. Making assumption that indices in the configs array map to the indeces of the failure messages. String[] configs=scenario.getTimeSeriesLabels(); String[] failureMessages= scenario.getFailureMessages(); ScenarioStatus scenarioStatus=new ScenarioStatus(scenarioName); scenarioStatusList.add(scenarioStatus); Scenario reference= (Scenario) references.get(scenarioName); if (reference != null) { // XXX have to find out the relevant dimension Dim significanceDimension= (Dim) Dimension.ELAPSED_PROCESS; TimeSeries currentScenario= scenario.getTimeSeries(significanceDimension); TimeSeries baselineScenario= reference.getTimeSeries(significanceDimension); if (currentScenario.getLength() > 0 && baselineScenario.getLength() > 0) { scenarioStatus.significant= StatisticsUtil.hasSignificantDifference(baselineScenario, 0, currentScenario, 0, percentile); } } for (int j=0;j<configs.length;j++){ String failureMessage=scenarioStatus.significant?"":"This result is statistically insignificant at the " + percentFormatter.format(1.0 - percentile.inside()) + " level (Student's t-test). "; if (!configNames.contains(configs[j])) configNames.add(configs[j]); if (failureMessages[j]!=null){ //ensure correct failure message relates to config if (failureMessages[j].indexOf(configs[j])!=-1){ failureMessage=failureMessage.concat(failureMessages[j]); if (scenarioComments.containsKey(scenarioName)){ failureMessage=failureMessage.concat("; "+scenarioComments.get(scenarioName)); scenarioStatus.hasSlowDownExplanation=true; } } } scenarioStatus.statusMap.put(configs[j],failureMessage); } } String label=null; htmlTable=htmlTable.concat("<br><h4>Scenario Status</h4>\n" + "The green/red indication is based on the assert condition in the test. "+ "Hover over <img src=\"FAIL.gif\"> for error message.<br>\n" + "Click on <img src=\"FAIL.gif\"> or <img src=\"OK.gif\"> for detailed results. <br>\n " + "Grayed images mark explainable degradations. <br>\n "+ "Yellow images mark differences that are statistically insignificant at the " + percentFormatter.format(1.0 - percentile.inside()) + " level.<br>\n" + "\"n/a\" - results not available.<br><br>\n"); htmlTable=htmlTable.concat("<table border=\"1\"><tr><td><h4>All "+scenarios.length+" scenarios</h4></td>\n"); for (int i= 0; i < configNames.size(); i++){ label=configNames.get(i).toString(); String columnTitle=label; if (configMaps!=null) { Utils.ConfigDescriptor configDescriptor= (Utils.ConfigDescriptor)configMaps.get(label); if (configDescriptor != null) columnTitle=configDescriptor.description; } htmlTable=htmlTable.concat("<td><h5>"+columnTitle +"</h5></td>"); } htmlTable=htmlTable.concat("</tr>\n"); //counter for js class Id's int jsIdCount=0; for (int j= 0; j < scenarioStatusList.size(); j++) { ScenarioStatus status=(ScenarioStatus)scenarioStatusList.get(j); htmlTable=htmlTable.concat("<tr><td>"+status.name.substring(status.name.indexOf(".",status.name.indexOf(".test")+1)+1)+"</td>"); for (int i=0;i<configNames.size();i++){ String message=null; String configName=configNames.get(i).toString(); String aUrl=configName; if(status.statusMap.get(configName)!=null){ message=status.statusMap.get(configName).toString(); } if (status.statusMap.containsKey(configName)){ if (aUrl!=null){ String successImage= status.significant ? "OK.gif" : "OK_caution.gif"; String html="\n<td><a href=\""+aUrl+"/"+status.name.replace('#', '.').replace(':', '_').replace('\\', '_') + ".html"+"\">\n<img border=\"0\" src=\"" + successImage + "\"/></a></td>"; String failImage=status.significant ?"FAIL.gif":"FAIL_caution.gif"; if (message!=""){ if (status.hasSlowDownExplanation) failImage="FAIL_greyed.gif"; jsIdCount+=1; html="<td><a " + "class=\"tooltipSource\" onMouseover=\"show_element('toolTip"+(jsIdCount)+"')\"" + " onMouseout=\"hide_element('toolTip"+(jsIdCount)+"')\" "+ "\nhref=\""+aUrl+"/"+status.name.replace('#', '.').replace(':', '_').replace('\\', '_')+".html"+"\">" + "<img border=\"0\" src=\""+failImage+"\"/>" + "\n<span class=\"hidden_tooltip\" id=\"toolTip"+jsIdCount+"\">"+message+"</span></a></td>"+ ""; } htmlTable=htmlTable.concat(html); } else{ htmlTable=htmlTable.concat(message != "" ?"<td><img title=\""+message+"\" border=\"0\" src=\"FAIL.gif\"/></td>" :"<td><img border=\"0\" src=\"OK.gif\"/></td>"); } }else{ htmlTable=htmlTable.concat("<td>n/a</td>"); } } } htmlTable=htmlTable.concat("</tr>\n"); } return htmlTable; }
|
14684 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14684/632312917e981412e7d81582f41d98c37206e53e/ScenarioStatusTable.java/buggy/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ScenarioStatusTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
5932,
1546,
1425,
14432,
202,
202,
780,
1729,
1388,
1546,
14432,
3639,
2850,
7754,
8526,
22456,
33,
2383,
18,
2271,
1541,
18087,
12,
4093,
1012,
16,
10766,
3234,
16,
5932,
16,
446,
1769,
202,
202,
4205,
1012,
2114,
4205,
1012,
33,
261,
4205,
1012,
13,
28401,
18,
14056,
5621,
202,
202,
6180,
4205,
1012,
18,
458,
12,
25024,
4709,
3773,
18,
20215,
16,
14243,
1769,
202,
202,
21390,
8526,
1278,
1541,
18087,
33,
2383,
18,
2271,
1541,
18087,
12,
6180,
4205,
1012,
16,
10766,
3234,
16,
5932,
16,
446,
1769,
202,
202,
1854,
1630,
5551,
5074,
33,
29587,
18,
588,
8410,
1442,
5621,
202,
202,
863,
5351,
33,
394,
4317,
5621,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
1278,
1541,
18087,
18,
2469,
31,
277,
27245,
288,
1082,
202,
21390,
10766,
33,
1278,
1541,
18087,
63,
77,
15533,
1082,
202,
780,
508,
33,
10766,
18,
588,
21390,
461,
5621,
1082,
202,
14353,
18,
458,
12,
529,
16,
10766,
1769,
202,
202,
97,
1082,
202,
430,
261,
1017,
18087,
480,
446,
597,
22456,
18,
2469,
405,
374,
13,
288,
1082,
202,
19558,
10766,
1482,
682,
33,
2704,
2407,
5621,
1082,
202,
8410,
398,
17279,
33,
22964,
1304,
18,
56,
9349,
31,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
22456,
18,
2469,
31,
277,
27245,
288,
9506,
202,
21390,
10766,
33,
22456,
63,
77,
15533,
9506,
202,
780,
10766,
461,
33,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
5932,
1546,
1425,
14432,
202,
202,
780,
1729,
1388,
1546,
14432,
3639,
2850,
7754,
8526,
22456,
33,
2383,
18,
2271,
1541,
18087,
12,
4093,
1012,
16,
10766,
3234,
16,
5932,
16,
446,
1769,
202,
202,
4205,
1012,
2114,
4205,
1012,
33,
261,
4205,
1012,
13,
28401,
18,
14056,
5621,
202,
202,
6180,
4205,
1012,
18,
458,
12,
25024,
4709,
3773,
18,
20215,
16,
14243,
1769,
202,
202,
21390,
8526,
1278,
1541,
18087,
33,
2383,
18,
2271,
1541,
18087,
12,
6180,
4205,
1012,
16,
10766,
3234,
16,
5932,
16,
446,
1769,
202,
202,
1854,
1630,
5551,
5074,
33,
29587,
18,
588,
8410,
1442,
5621,
202,
202,
863,
5351,
33,
394,
2
] |
public Glob(String pattern) { String cwd = System.getProperty("user.dir");
|
public Glob(String cwd, String pattern) { this.cwd = canonicalize(cwd);
|
public Glob(String pattern) { // FIXME: don't use user.dir for cwd String cwd = System.getProperty("user.dir"); // Java File will strip trailing path delimeter. // Make a boolean for this special case (how about multiple slashes?) if (pattern.endsWith("/")) { patternEndsWithPathDelimeter = true; } this.pattern = new File(pattern); //.getAbsoluteFile(); if (!this.pattern.getPath().equals(this.pattern.getAbsolutePath())) { // pattern is relative, but we need to consider cwd; add cwd but remember it's relative so we chop it off later patternIsRelative = true; this.pattern = new File(cwd, pattern); } }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/43608826a44e7cd8213325ce6cf8b348d8ca8f8e/Glob.java/clean/src/org/jruby/util/Glob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
18901,
12,
780,
1936,
13,
288,
377,
202,
759,
9852,
30,
2727,
1404,
999,
729,
18,
1214,
364,
7239,
377,
202,
780,
7239,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
377,
202,
3639,
368,
5110,
1387,
903,
2569,
7341,
589,
10508,
847,
18,
3639,
368,
4344,
279,
1250,
364,
333,
4582,
648,
261,
13606,
2973,
3229,
19034,
8535,
3639,
309,
261,
4951,
18,
5839,
1190,
2932,
4898,
3719,
288,
5411,
1936,
24980,
1190,
743,
21445,
847,
273,
638,
31,
3639,
289,
7734,
202,
2211,
18,
4951,
273,
394,
1387,
12,
4951,
1769,
368,
18,
588,
10368,
812,
5621,
3639,
202,
3639,
202,
430,
16051,
2211,
18,
4951,
18,
588,
743,
7675,
14963,
12,
2211,
18,
4951,
18,
588,
10368,
743,
1435,
3719,
288,
3639,
202,
202,
759,
1936,
353,
3632,
16,
1496,
732,
1608,
358,
5260,
7239,
31,
527,
7239,
1496,
11586,
518,
1807,
3632,
1427,
732,
31258,
518,
3397,
5137,
3639,
202,
202,
4951,
2520,
8574,
273,
638,
31,
3639,
202,
202,
2211,
18,
4951,
273,
394,
1387,
12,
11089,
16,
1936,
1769,
3639,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18901,
12,
780,
1936,
13,
288,
377,
202,
759,
9852,
30,
2727,
1404,
999,
729,
18,
1214,
364,
7239,
377,
202,
780,
7239,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
377,
202,
3639,
368,
5110,
1387,
903,
2569,
7341,
589,
10508,
847,
18,
3639,
368,
4344,
279,
1250,
364,
333,
4582,
648,
261,
13606,
2973,
3229,
19034,
8535,
3639,
309,
261,
4951,
18,
5839,
1190,
2932,
4898,
3719,
288,
5411,
1936,
24980,
1190,
743,
21445,
847,
273,
638,
31,
3639,
289,
7734,
202,
2211,
18,
4951,
273,
394,
1387,
12,
4951,
1769,
368,
18,
588,
10368,
812,
5621,
3639,
202,
3639,
202,
430,
16051,
2211,
18,
4951,
18,
588,
743,
7675,
14963,
12,
2211,
2
] |
tuple[0] = Integer.toString(scope).getBytes();
|
tuple[0] = encoding.encode(Integer.toString(scope));
|
public java.sql.ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { Field f[] = new Field[8]; Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "SCOPE", iInt2Oid, 2); f[1] = new Field(connection, "COLUMN_NAME", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[3] = new Field(connection, "TYPE_NAME", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[5] = new Field(connection, "BUFFER_LENGTH", iInt4Oid, 4); f[6] = new Field(connection, "DECIMAL_DIGITS", iInt2Oid, 2); f[7] = new Field(connection, "PSEUDO_COLUMN", iInt2Oid, 2); /* At the moment this simply returns a table's primary key, * if there is one. I believe other unique indexes, ctid, * and oid should also be considered. -KJ */ String from; String where = ""; if (connection.haveMinimumServerVersion("7.3")) { from = " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class ct, pg_catalog.pg_class ci, pg_catalog.pg_attribute a, pg_catalog.pg_index i "; where = " AND ct.relnamespace = n.oid "; if (schema != null && !"".equals(schema)) { where += " AND n.nspname = '"+escapeQuotes(schema)+"' "; } } else { from = " FROM pg_class ct, pg_class ci, pg_attribute a, pg_index i "; } String sql = "SELECT a.attname, a.atttypid "+ from+ " WHERE ct.oid=i.indrelid AND ci.oid=i.indexrelid "+ " AND a.attrelid=ci.oid AND i.indisprimary "+ " AND ct.relname = '"+escapeQuotes(table)+"' "+ where+ " ORDER BY a.attnum "; ResultSet rs = connection.createStatement().executeQuery(sql); while (rs.next()) { byte tuple[][] = new byte[8][]; int columnTypeOid = rs.getInt("atttypid"); tuple[0] = Integer.toString(scope).getBytes(); tuple[1] = rs.getBytes("attname"); tuple[2] = Integer.toString(connection.getSQLType(columnTypeOid)).getBytes(); tuple[3] = connection.getPGType(columnTypeOid).getBytes(); tuple[4] = null; tuple[5] = null; tuple[6] = null; tuple[7] = Integer.toString(java.sql.DatabaseMetaData.bestRowNotPseudo).getBytes(); v.addElement(tuple); } return (ResultSet) ((BaseStatement)connection.createStatement()).createResultSet(f, v, "OK", 1, 0, false); }
|
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/f9d3ed65c43e04c595b097a59d4d1c4542d82794/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
28782,
1999,
3004,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
16,
509,
2146,
16,
1250,
8413,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
28,
15533,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
19444,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
4574,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
11302,
67,
7096,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
23816,
67,
21243,
10158,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
27,
65,
273,
394,
2286,
12,
4071,
16,
315,
52,
1090,
57,
3191,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
28782,
1999,
3004,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
16,
509,
2146,
16,
1250,
8413,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
28,
15533,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
19444,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
2
] |
ctx.storeEventListener(tgt, SVG_EVENT_CLICK, listener, false);
|
subCtx.storeEventListener(tgt, SVG_EVENT_CLICK, listener, false);
|
protected static GraphicsNode createSVGImageNode(BridgeContext ctx, Element e, SVGDocument imgDocument) { CompositeGraphicsNode result = new CompositeGraphicsNode(); // handles the 'preserveAspectRatio', 'overflow' and 'clip' and // sets the appropriate AffineTransform to the image node Rectangle2D bounds = getImageBounds(ctx, e); if ((bounds.getWidth() == 0) || (bounds.getHeight() == 0)) { ShapeNode sn = new ShapeNode(); sn.setShape(bounds); result.getChildren().add(sn); return result; } Rectangle2D r = CSSUtilities.convertEnableBackground(e); if (r != null) { result.setBackgroundEnable(r); } SVGSVGElement svgElement = imgDocument.getRootElement(); CanvasGraphicsNode node; node = (CanvasGraphicsNode)ctx.getGVTBuilder().build(ctx, svgElement); ctx.addUIEventListeners(imgDocument); // HACK: remove the clip set by the SVGSVGElement as the overflow // and clip properties must be ignored. The clip will be set later // using the overflow and clip of the <image> element. node.setClip(null); // HACK: remove the viewingTransform set by the SVGSVGElement // as the viewBox must be ignored. The viewingTransform will // be set later using the width/height of the image element. node.setViewingTransform(new AffineTransform()); result.getChildren().add(node); // create the implicit viewBox for the SVG image. The viewBox for a // SVG image is the viewBox of the outermost SVG element of the SVG file String viewBox = svgElement.getAttributeNS(null, SVG_VIEW_BOX_ATTRIBUTE); float [] vb = ViewBox.parseViewBoxAttribute(e, viewBox); initializeViewport(ctx, e, result, vb, bounds); // add a listener on the outermost svg element of the SVG image. // if an event occured inside the SVG image document, send it // to the <image> element (inside the original document). if (ctx.isInteractive()) { EventListener listener = new ForwardEventListener(svgElement, e); EventTarget tgt = (EventTarget)svgElement; tgt.addEventListener(SVG_EVENT_CLICK, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_CLICK, listener, false); tgt.addEventListener(SVG_EVENT_KEYDOWN, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_KEYDOWN, listener, false); tgt.addEventListener(SVG_EVENT_KEYPRESS, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_KEYPRESS, listener, false); tgt.addEventListener(SVG_EVENT_KEYUP, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_KEYUP, listener, false); tgt.addEventListener(SVG_EVENT_MOUSEDOWN, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_MOUSEDOWN, listener,false); tgt.addEventListener(SVG_EVENT_MOUSEMOVE, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_MOUSEMOVE, listener,false); tgt.addEventListener(SVG_EVENT_MOUSEOUT, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_MOUSEOUT, listener, false); tgt.addEventListener(SVG_EVENT_MOUSEOVER, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_MOUSEOVER, listener,false); tgt.addEventListener(SVG_EVENT_MOUSEUP, listener, false); ctx.storeEventListener(tgt, SVG_EVENT_MOUSEUP, listener, false); } return result; }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/2c46850987c1b7c044d71489fa0fa367c5fa768a/SVGImageElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGImageElementBridge.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
16830,
907,
752,
26531,
2040,
907,
12,
13691,
1042,
1103,
16,
4766,
5397,
3010,
425,
16,
4766,
5397,
11281,
2519,
3774,
2519,
13,
288,
3639,
14728,
17558,
907,
563,
273,
394,
14728,
17558,
907,
5621,
3639,
368,
7372,
326,
296,
27297,
17468,
8541,
2187,
296,
11512,
11,
471,
296,
14161,
11,
471,
540,
368,
1678,
326,
5505,
23906,
558,
4059,
358,
326,
1316,
756,
3639,
13264,
22,
40,
4972,
273,
10567,
5694,
12,
5900,
16,
425,
1769,
3639,
309,
14015,
10576,
18,
588,
2384,
1435,
422,
374,
13,
747,
261,
10576,
18,
588,
2686,
1435,
422,
374,
3719,
288,
5411,
12383,
907,
4556,
273,
394,
12383,
907,
5621,
5411,
4556,
18,
542,
8500,
12,
10576,
1769,
5411,
563,
18,
588,
4212,
7675,
1289,
12,
8134,
1769,
5411,
327,
563,
31,
3639,
289,
3639,
13264,
22,
40,
436,
273,
6765,
11864,
18,
6283,
8317,
8199,
12,
73,
1769,
3639,
309,
261,
86,
480,
446,
13,
288,
5411,
563,
18,
542,
8199,
8317,
12,
86,
1769,
3639,
289,
3639,
11281,
26531,
1046,
9804,
1046,
273,
3774,
2519,
18,
588,
2375,
1046,
5621,
3639,
20966,
17558,
907,
756,
31,
3639,
756,
273,
261,
12971,
17558,
907,
13,
5900,
18,
588,
25269,
56,
1263,
7675,
3510,
12,
5900,
16,
9804,
1046,
1769,
3639,
1103,
18,
1289,
5370,
30275,
12,
6081,
2519,
1769,
3639,
368,
670,
3649,
30,
1206,
326,
6807,
444,
635,
326,
11281,
26531,
1046,
487,
326,
9391,
3639,
368,
471,
6807,
1790,
1297,
506,
5455,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
16830,
907,
752,
26531,
2040,
907,
12,
13691,
1042,
1103,
16,
4766,
5397,
3010,
425,
16,
4766,
5397,
11281,
2519,
3774,
2519,
13,
288,
3639,
14728,
17558,
907,
563,
273,
394,
14728,
17558,
907,
5621,
3639,
368,
7372,
326,
296,
27297,
17468,
8541,
2187,
296,
11512,
11,
471,
296,
14161,
11,
471,
540,
368,
1678,
326,
5505,
23906,
558,
4059,
358,
326,
1316,
756,
3639,
13264,
22,
40,
4972,
273,
10567,
5694,
12,
5900,
16,
425,
1769,
3639,
309,
14015,
10576,
18,
588,
2384,
1435,
422,
374,
13,
747,
261,
10576,
18,
588,
2686,
1435,
422,
374,
3719,
288,
5411,
12383,
907,
4556,
273,
394,
12383,
907,
5621,
5411,
4556,
18,
542,
8500,
12,
10576,
1769,
2
] |
public CollectNode(final int id, final TupleSource leftInput, final ObjectSource rightInput, final AlphaNodeFieldConstraint[] resultConstraints, final BetaConstraints sourceBinder, final BetaConstraints resultsBinder, final Collect collect) { super( id, leftInput, rightInput, sourceBinder ); this.resultsBinder = resultsBinder; this.resultConstraints = resultConstraints; this.collect = collect;
|
CollectNode(final int id, final TupleSource leftInput, final ObjectSource rightInput, final Collect collect) { this( id, leftInput, rightInput, new AlphaNodeFieldConstraint[0], EmptyBetaConstraints.getInstance(), EmptyBetaConstraints.getInstance(), collect );
|
public CollectNode(final int id, final TupleSource leftInput, final ObjectSource rightInput, final AlphaNodeFieldConstraint[] resultConstraints, final BetaConstraints sourceBinder, final BetaConstraints resultsBinder, final Collect collect) { super( id, leftInput, rightInput, sourceBinder ); this.resultsBinder = resultsBinder; this.resultConstraints = resultConstraints; this.collect = collect; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/16811222df6d73aabb4c103f1e9339dc03663ff8/CollectNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/CollectNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9302,
907,
12,
6385,
509,
612,
16,
15604,
727,
7257,
1830,
2002,
1210,
16,
15604,
727,
1033,
1830,
2145,
1210,
16,
15604,
727,
24277,
907,
974,
5806,
8526,
563,
4878,
16,
15604,
727,
16393,
4878,
1084,
17700,
16,
15604,
727,
16393,
4878,
1686,
17700,
16,
15604,
727,
9302,
3274,
13,
288,
3639,
2240,
12,
612,
16,
9079,
2002,
1210,
16,
9079,
2145,
1210,
16,
9079,
1084,
17700,
11272,
3639,
333,
18,
4717,
17700,
273,
1686,
17700,
31,
3639,
333,
18,
2088,
4878,
273,
563,
4878,
31,
3639,
333,
18,
14676,
273,
3274,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
9302,
907,
12,
6385,
509,
612,
16,
15604,
727,
7257,
1830,
2002,
1210,
16,
15604,
727,
1033,
1830,
2145,
1210,
16,
15604,
727,
24277,
907,
974,
5806,
8526,
563,
4878,
16,
15604,
727,
16393,
4878,
1084,
17700,
16,
15604,
727,
16393,
4878,
1686,
17700,
16,
15604,
727,
9302,
3274,
13,
288,
3639,
2240,
12,
612,
16,
9079,
2002,
1210,
16,
9079,
2145,
1210,
16,
9079,
1084,
17700,
11272,
3639,
333,
18,
4717,
17700,
273,
1686,
17700,
31,
3639,
333,
18,
2088,
4878,
273,
563,
4878,
31,
3639,
333,
18,
14676,
273,
3274,
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
] |
case 71:
|
case 72:
|
public final java_cup.runtime.Symbol CUP$LexParse$do_action( int CUP$LexParse$act_num, java_cup.runtime.lr_parser CUP$LexParse$parser, java.util.Stack CUP$LexParse$stack, int CUP$LexParse$top) throws java.lang.Exception { /* Symbol object for return from actions */ java_cup.runtime.Symbol CUP$LexParse$result; /* select the action based on the action number */ switch (CUP$LexParse$act_num) { /*. . . . . . . . . . . . . . . . . . . .*/ case 71: // preclass ::= LOWERCLASS { Vector RESULT = null; RESULT = makePreClass(sym.LOWERCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 70: // preclass ::= UPPERCLASS { Vector RESULT = null; RESULT = makePreClass(sym.UPPERCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 69: // preclass ::= DIGITCLASS { Vector RESULT = null; RESULT = makePreClass(sym.DIGITCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 68: // preclass ::= LETTERCLASS { Vector RESULT = null; RESULT = makePreClass(sym.LETTERCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 67: // preclass ::= JLETTERDIGITCLASS { Vector RESULT = null; RESULT = makePreClass(sym.JLETTERDIGITCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 66: // preclass ::= JLETTERCLASS { Vector RESULT = null; RESULT = makePreClass(sym.JLETTERCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 65: // classcontentelem ::= CHAR { Interval RESULT = null; int cleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Character c = (Character)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Interval(c.charValue(), c.charValue()); CUP$LexParse$result = new java_cup.runtime.Symbol(11/*classcontentelem*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 64: // classcontentelem ::= CHAR DASH CHAR { Interval RESULT = null; int c1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int c1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; Character c1 = (Character)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int c2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int c2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Character c2 = (Character)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Interval(c1.charValue(), c2.charValue()); CUP$LexParse$result = new java_cup.runtime.Symbol(11/*classcontentelem*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 63: // classcontent ::= MACROUSE { Vector RESULT = null; int identleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int identright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String ident = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.CHARCLASS_MACRO, identleft, identright); CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 62: // classcontent ::= classcontent MACROUSE { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int identleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int identright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String ident = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.CHARCLASS_MACRO, identleft, identright); CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 61: // classcontent ::= STRING { Vector RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String s = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Vector(); for (int i = 0; i < s.length(); i++) RESULT.addElement(new Interval(s.charAt(i),s.charAt(i))); CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 60: // classcontent ::= classcontent STRING { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String s = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; for (int i = 0; i < s.length(); i++) list.addElement(new Interval(s.charAt(i),s.charAt(i))); RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 59: // classcontent ::= preclass { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 58: // classcontent ::= classcontent preclass { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int plistleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int plistright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Vector plist = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; for (Enumeration e = plist.elements(); e.hasMoreElements();) list.addElement(e.nextElement()); RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 57: // classcontent ::= classcontentelem { Vector RESULT = null; int elemleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int elemright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Interval elem = (Interval)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; Vector list = new Vector(); list.addElement(elem); RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 56: // classcontent ::= classcontent classcontentelem { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int elemleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int elemright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Interval elem = (Interval)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; list.addElement(elem); RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 55: // charclass ::= OPENCLASS HAT DASH classcontent CLOSECLASS { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { list.addElement(new Interval('-','-')); charClasses.makeClassNot(list, Options.jlex && scanner.caseless); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASSNOT,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 54: // charclass ::= OPENCLASS DASH classcontent CLOSECLASS { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { list.addElement(new Interval('-','-')); charClasses.makeClass(list, Options.jlex && scanner.caseless); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASS,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 53: // charclass ::= OPENCLASS HAT classcontent CLOSECLASS { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { charClasses.makeClassNot(list, Options.jlex && scanner.caseless); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASSNOT,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 52: // charclass ::= OPENCLASS HAT CLOSECLASS { RegExp RESULT = null; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; Vector list = new Vector(); list.addElement(new Interval((char)0,CharClasses.maxChar)); try { charClasses.makeClass(list, false); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASS,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 51: // charclass ::= OPENCLASS classcontent CLOSECLASS { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { charClasses.makeClass(list, Options.jlex && scanner.caseless); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASS,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 50: // charclass ::= OPENCLASS CLOSECLASS { RegExp RESULT = null; RESULT = new RegExp1(sym.CCLASS,null); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 49: // regexp ::= CHAR { RegExp RESULT = null; int cleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Character c = (Character)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { if ( scanner.caseless ) { charClasses.makeClass(c.charValue(), true); RESULT = new RegExp1(sym.CHAR_I, c); } else { charClasses.makeClass(c.charValue(), false); RESULT = new RegExp1(sym.CHAR, c); } } catch (CharClassException e) { syntaxError(ErrorMessages.CS2SMALL_CHAR, cleft, cright); } CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 48: // regexp ::= POINT { RegExp RESULT = null; Vector any = new Vector(); any.addElement(new Interval('\n','\n')); // assumption: there is no upper case for \n charClasses.makeClass('\n', false); RESULT = new RegExp1(sym.CCLASSNOT, any); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 47: // regexp ::= STRING { RegExp RESULT = null; int strleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int strright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String str = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { if ( scanner.caseless ) { charClasses.makeClass(str, true); RESULT = new RegExp1(sym.STRING_I, str); } else { charClasses.makeClass(str, false); RESULT = new RegExp1(sym.STRING, str); } } catch (CharClassException e) { syntaxError(ErrorMessages.CS2SMALL_STRING, strleft, strright); } CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 46: // regexp ::= preclass { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { // assumption [correct?]: preclasses are already closed under case charClasses.makeClass(list, false); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, listleft); } RESULT = new RegExp1(sym.CCLASS, list); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 45: // regexp ::= charclass { RegExp RESULT = null; int cleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp c = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = c; CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 44: // regexp ::= MACROUSE { RegExp RESULT = null; int identleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int identright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String ident = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; if ( !scanner.macroDefinition ) { if ( ! macros.markUsed(ident) ) throw new ScannerException(scanner.file, ErrorMessages.MACRO_UNDECL, identleft, identright); } RESULT = new RegExp1(sym.MACROUSE, ident); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 43: // regexp ::= OPENBRACKET series CLOSEBRACKET { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 42: // regexp ::= regexp REPEAT REPEAT RBRACE { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).value; int n1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int n1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; Integer n1 = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int n2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int n2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Integer n2 = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = makeRepeat(r, n1.intValue(), n2.intValue(), n1left, n2right); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 41: // regexp ::= regexp REPEAT RBRACE { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int nleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int nright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Integer n = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int bleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int bright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object b = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = makeRepeat(r, n.intValue(), n.intValue(), bleft, bright); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 40: // regexp ::= regexp QUESTION { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = new RegExp1(sym.QUESTION, r); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 39: // regexp ::= regexp PLUS { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = new RegExp1(sym.PLUS, r); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 38: // regexp ::= regexp STAR { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = new RegExp1(sym.STAR, r); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 37: // nregexp ::= TILDE nregexp { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new RegExp1(sym.TILDE, r); CUP$LexParse$result = new java_cup.runtime.Symbol(7/*nregexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 36: // nregexp ::= BANG nregexp { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new RegExp1(sym.BANG, r); CUP$LexParse$result = new java_cup.runtime.Symbol(7/*nregexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 35: // nregexp ::= regexp { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(7/*nregexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 34: // concs ::= nregexp { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(6/*concs*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 33: // concs ::= concs nregexp { RegExp RESULT = null; int r1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int r1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r1 = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int r2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int r2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r2 = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new RegExp2(sym.CONCAT, r1, r2); CUP$LexParse$result = new java_cup.runtime.Symbol(6/*concs*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 32: // series ::= BAR { RegExp RESULT = null; int bleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int bright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object b = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.REGEXP_EXPECTED, bleft, bright); CUP$LexParse$result = new java_cup.runtime.Symbol(5/*series*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 31: // series ::= concs { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(5/*series*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 30: // series ::= series BAR concs { RegExp RESULT = null; int r1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int r1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; RegExp r1 = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int r2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int r2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r2 = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new RegExp2(sym.BAR, r1, r2); CUP$LexParse$result = new java_cup.runtime.Symbol(5/*series*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 29: // hatOPT ::= { Boolean RESULT = null; RESULT = new Boolean(false); CUP$LexParse$result = new java_cup.runtime.Symbol(17/*hatOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 28: // hatOPT ::= HAT { Boolean RESULT = null; // assumption: there is no upper case for \n charClasses.makeClass('\n', false); RESULT = new Boolean(true); CUP$LexParse$result = new java_cup.runtime.Symbol(17/*hatOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 27: // states ::= IDENT COMMA { Vector RESULT = null; int cleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object c = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.REGEXP_EXPECTED, cleft, cright+1); CUP$LexParse$result = new java_cup.runtime.Symbol(12/*states*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 26: // states ::= IDENT { Vector RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int idright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String id = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; Vector list = new Vector(); stateNumber = scanner.states.getNumber( id ); if ( stateNumber != null ) list.addElement( stateNumber ); else { throw new ScannerException(scanner.file, ErrorMessages.LEXSTATE_UNDECL, idleft, idright); } RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(12/*states*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 25: // states ::= IDENT COMMA states { Vector RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int idright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; String id = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; stateNumber = scanner.states.getNumber( id ); if ( stateNumber != null ) list.addElement( stateNumber ); else { throw new ScannerException(scanner.file, ErrorMessages.LEXSTATE_UNDECL, idleft, idright); } RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(12/*states*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 24: // statesOPT ::= { Vector RESULT = null; RESULT = new Vector(); CUP$LexParse$result = new java_cup.runtime.Symbol(13/*statesOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 23: // statesOPT ::= LESSTHAN states MORETHAN { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(13/*statesOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 22: // actions ::= NOACTION { Action RESULT = null; RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(18/*actions*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 21: // actions ::= REGEXPEND ACTION { Action RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Action a = (Action)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = a; CUP$LexParse$result = new java_cup.runtime.Symbol(18/*actions*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 20: // lookaheadOPT ::= LOOKAHEAD series DOLLAR { RegExp RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp s = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = new RegExp2(sym.CONCAT, s, makeNL()); CUP$LexParse$result = new java_cup.runtime.Symbol(10/*lookaheadOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 19: // lookaheadOPT ::= { RegExp RESULT = null; RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(10/*lookaheadOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 18: // lookaheadOPT ::= LOOKAHEAD series { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(10/*lookaheadOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 17: // lookaheadOPT ::= DOLLAR { RegExp RESULT = null; RESULT = makeNL(); CUP$LexParse$result = new java_cup.runtime.Symbol(10/*lookaheadOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 16: // rule ::= error { Integer RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(3/*rule*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 15: // rule ::= statesOPT EOFRULE ACTION { Integer RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; Vector s = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int aleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Action a = (Action)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Integer(regExps.insert(s, a)); CUP$LexParse$result = new java_cup.runtime.Symbol(3/*rule*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 14: // rule ::= statesOPT hatOPT series lookaheadOPT actions { Integer RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).right; Vector s = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).value; int bolleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left; int bolright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).right; Boolean bol = (Boolean)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).value; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int lleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int lright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp l = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int aleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Action a = (Action)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Integer(regExps.insert(rleft, s, r, a, bol, l)); CUP$LexParse$result = new java_cup.runtime.Symbol(3/*rule*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 13: // rules ::= rule { Vector RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Integer r = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Vector(); RESULT.addElement(r); CUP$LexParse$result = new java_cup.runtime.Symbol(16/*rules*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 12: // rules ::= LESSTHAN states MORETHAN LBRACE rules RBRACE { Vector RESULT = null; int statesleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left; int statesright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).right; Vector states = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).value; int rlistleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rlistright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector rlist = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; Enumeration rs = rlist.elements(); while ( rs.hasMoreElements() ) { Integer elem = (Integer) rs.nextElement(); regExps.addStates( elem.intValue(), states ); } RESULT = rlist; CUP$LexParse$result = new java_cup.runtime.Symbol(16/*rules*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-5)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 11: // rules ::= rules LESSTHAN states MORETHAN LBRACE rules RBRACE { Vector RESULT = null; int rlist1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-6)).left; int rlist1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-6)).right; Vector rlist1 = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-6)).value; int statesleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left; int statesright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).right; Vector states = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).value; int rlist2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rlist2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector rlist2 = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; Enumeration rs = rlist2.elements(); while ( rs.hasMoreElements() ) { Integer elem = (Integer) rs.nextElement(); regExps.addStates( elem.intValue(), states ); rlist1.addElement( elem ); } RESULT = rlist1; CUP$LexParse$result = new java_cup.runtime.Symbol(16/*rules*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-6)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 10: // rules ::= rules rule { Vector RESULT = null; int rlistleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rlistright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector rlist = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Integer r = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; rlist.addElement(r); RESULT = rlist; CUP$LexParse$result = new java_cup.runtime.Symbol(16/*rules*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 9: // macro ::= IDENT EQUALS { Object RESULT = null; int eleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int eright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object e = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.REGEXP_EXPECTED, eleft, eright); CUP$LexParse$result = new java_cup.runtime.Symbol(2/*macro*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 8: // macro ::= IDENT EQUALS series REGEXPEND { Object RESULT = null; int nameleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left; int nameright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).right; String name = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).value; int definitionleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int definitionright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp definition = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; macros.insert(name, definition); CUP$LexParse$result = new java_cup.runtime.Symbol(2/*macro*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 7: // macro ::= UNICODE { Object RESULT = null; charClasses.setMaxCharCode(0xFFFF); CUP$LexParse$result = new java_cup.runtime.Symbol(2/*macro*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 6: // macro ::= FULL { Object RESULT = null; charClasses.setMaxCharCode(255); CUP$LexParse$result = new java_cup.runtime.Symbol(2/*macro*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 5: // macros ::= error { Object RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(1/*macros*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 4: // macros ::= macros macro { Object RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(1/*macros*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 3: // macros ::= { Object RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(1/*macros*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 2: // specification ::= { NFA RESULT = null; fatalError(ErrorMessages.NO_LEX_SPEC); CUP$LexParse$result = new java_cup.runtime.Symbol(4/*specification*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 1: // specification ::= USERCODE macros DELIMITER rules { NFA RESULT = null; scanner.t.stop(); Out.checkErrors(); Out.time(ErrorMessages.PARSING_TOOK, t); macros.expand(); Enumeration unused = macros.unused(); while ( unused.hasMoreElements() ) { Out.warning("Macro \""+unused.nextElement()+"\" has been declared but never used."); } SemCheck.check(regExps, macros, charClasses.getMaxCharCode(), scanner.file); regExps.checkActions(); if (Options.dump) charClasses.dump(); Out.print("Constructing NFA : "); t.start(); int num = regExps.getNum(); RESULT = new NFA(charClasses.getNumClasses(), scanner, regExps, macros, charClasses); eofActions.setNumLexStates(scanner.states.number()); for (int i = 0; i < num; i++) { if (regExps.isEOF(i)) eofActions.add( regExps.getStates(i), regExps.getAction(i) ); else RESULT.addRegExp(i); } if (scanner.standalone) RESULT.addStandaloneRule(); t.stop(); Out.time(""); Out.time(ErrorMessages.NFA_TOOK, t); CUP$LexParse$result = new java_cup.runtime.Symbol(4/*specification*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 0: // $START ::= specification EOF { Object RESULT = null; int start_valleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int start_valright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; NFA start_val = (NFA)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = start_val; CUP$LexParse$result = new java_cup.runtime.Symbol(0/*$START*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } /* ACCEPT */ CUP$LexParse$parser.done_parsing(); return CUP$LexParse$result; /* . . . . . .*/ default: throw new Exception( "Invalid action number found in internal parse table"); } }
|
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/46884aac638f34201a7496133fde462edfc8ffe8/LexParse.java/buggy/src/JFlex/LexParse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
14756,
3201,
8,
2896,
67,
1128,
12,
565,
509,
13491,
385,
3079,
8,
14756,
3201,
8,
621,
67,
2107,
16,
565,
2252,
67,
71,
416,
18,
9448,
18,
10826,
67,
4288,
385,
3079,
8,
14756,
3201,
8,
4288,
16,
565,
2252,
18,
1367,
18,
2624,
5411,
385,
3079,
8,
14756,
3201,
8,
3772,
16,
565,
509,
13491,
385,
3079,
8,
14756,
3201,
8,
3669,
13,
565,
1216,
2252,
18,
4936,
18,
503,
565,
288,
1377,
1748,
8565,
733,
364,
327,
628,
4209,
1195,
1377,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
14756,
3201,
8,
2088,
31,
1377,
1748,
2027,
326,
1301,
2511,
603,
326,
1301,
1300,
1195,
1377,
1620,
261,
39,
3079,
8,
14756,
3201,
8,
621,
67,
2107,
13,
3639,
288,
1850,
1748,
18,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
5549,
1850,
648,
19387,
30,
368,
675,
1106,
493,
33,
29819,
5237,
2398,
288,
2868,
5589,
17210,
273,
446,
31,
1082,
17210,
273,
1221,
1386,
797,
12,
8117,
18,
23085,
5237,
1769,
9079,
385,
3079,
8,
14756,
3201,
8,
2088,
273,
394,
2252,
67,
71,
416,
18,
9448,
18,
5335,
12,
3600,
20308,
1484,
1106,
5549,
16,
14015,
6290,
67,
71,
416,
18,
9448,
18,
5335,
13,
39,
3079,
8,
14756,
3201,
8,
3772,
18,
2956,
861,
12,
39,
3079,
8,
14756,
3201,
8,
3669,
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,
727,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
14756,
3201,
8,
2896,
67,
1128,
12,
565,
509,
13491,
385,
3079,
8,
14756,
3201,
8,
621,
67,
2107,
16,
565,
2252,
67,
71,
416,
18,
9448,
18,
10826,
67,
4288,
385,
3079,
8,
14756,
3201,
8,
4288,
16,
565,
2252,
18,
1367,
18,
2624,
5411,
385,
3079,
8,
14756,
3201,
8,
3772,
16,
565,
509,
13491,
385,
3079,
8,
14756,
3201,
8,
3669,
13,
565,
1216,
2252,
18,
4936,
18,
503,
565,
288,
1377,
1748,
8565,
733,
364,
327,
628,
4209,
1195,
1377,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
14756,
3201,
8,
2088,
31,
1377,
1748,
2027,
326,
1301,
2
] |
if (!id.equals(currentId)) initFile(id);
|
public BufferedImage openImage(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } if (reader.isRGB(id)) { int c = getSizeC(id); int source = no / c; int channel = no % c; BufferedImage sourceImg = reader.openImage(id, source); return ImageTools.splitChannels(sourceImg)[channel]; } else return reader.openImage(id, no); }
|
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/fef43932e07645ab0f8545996cbeb5b481348dc2/ChannelSeparator.java/clean/loci/formats/ChannelSeparator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12362,
1696,
2040,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
4202,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
309,
261,
10530,
18,
291,
11343,
12,
350,
3719,
288,
1377,
509,
276,
273,
9950,
39,
12,
350,
1769,
1377,
509,
1084,
273,
1158,
342,
276,
31,
1377,
509,
1904,
273,
1158,
738,
276,
31,
1377,
12362,
1084,
12804,
273,
2949,
18,
3190,
2040,
12,
350,
16,
1084,
1769,
1377,
327,
3421,
10348,
18,
4939,
10585,
12,
3168,
12804,
25146,
4327,
15533,
565,
289,
565,
469,
327,
2949,
18,
3190,
2040,
12,
350,
16,
1158,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12362,
1696,
2040,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
4202,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
309,
261,
10530,
18,
291,
11343,
12,
350,
3719,
288,
1377,
509,
276,
273,
9950,
39,
12,
350,
1769,
1377,
509,
1084,
273,
1158,
342,
276,
31,
1377,
509,
1904,
273,
1158,
738,
276,
31,
1377,
12362,
1084,
12804,
273,
2949,
18,
3190,
2040,
12,
350,
16,
1084,
1769,
1377,
327,
3421,
10348,
18,
4939,
10585,
12,
3168,
12804,
25146,
4327,
15533,
565,
289,
565,
469,
327,
2
] |
|
return getPreviousSibling(newNode);
|
return getPreviousSibling(newNode, node);
|
Node getLastChild(Node node) { if (node == null) return null; if ( !fEntityReferenceExpansion && node.getNodeType() == Node.ENTITY_REFERENCE_NODE) return null; Node newNode = node.getLastChild(); if (newNode == null) return null; int accept = acceptNode(newNode); if (accept == NodeFilter.FILTER_ACCEPT) return newNode; else if (accept == NodeFilter.FILTER_SKIP && newNode.hasChildNodes()) { return getLastChild(newNode); } else //if (accept == NodeFilter.REJECT_NODE) { return getPreviousSibling(newNode); } }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/904469745efa247c002caac264e0143abda23342/TreeWalkerImpl.java/buggy/src/org/apache/xerces/dom/TreeWalkerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2029,
7595,
1763,
12,
907,
756,
13,
288,
7734,
309,
261,
2159,
422,
446,
13,
327,
446,
31,
7734,
309,
261,
401,
74,
1943,
2404,
2966,
12162,
2398,
597,
756,
18,
588,
15101,
1435,
422,
2029,
18,
11101,
67,
14617,
67,
8744,
13,
5411,
327,
446,
31,
10792,
2029,
10942,
273,
756,
18,
588,
3024,
1763,
5621,
3639,
309,
261,
2704,
907,
422,
446,
13,
225,
327,
446,
31,
1171,
509,
2791,
273,
2791,
907,
12,
2704,
907,
1769,
7734,
309,
261,
9436,
422,
2029,
1586,
18,
11126,
67,
21417,
13,
5411,
327,
10942,
31,
3639,
469,
540,
309,
261,
9436,
422,
2029,
1586,
18,
11126,
67,
22589,
5411,
597,
10942,
18,
5332,
22460,
10756,
540,
288,
5411,
327,
7595,
1763,
12,
2704,
907,
1769,
3639,
289,
3639,
469,
540,
368,
430,
261,
9436,
422,
2029,
1586,
18,
862,
5304,
67,
8744,
13,
540,
288,
5411,
327,
17225,
10291,
12,
2704,
907,
16,
756,
1769,
3639,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2029,
7595,
1763,
12,
907,
756,
13,
288,
7734,
309,
261,
2159,
422,
446,
13,
327,
446,
31,
7734,
309,
261,
401,
74,
1943,
2404,
2966,
12162,
2398,
597,
756,
18,
588,
15101,
1435,
422,
2029,
18,
11101,
67,
14617,
67,
8744,
13,
5411,
327,
446,
31,
10792,
2029,
10942,
273,
756,
18,
588,
3024,
1763,
5621,
3639,
309,
261,
2704,
907,
422,
446,
13,
225,
327,
446,
31,
1171,
509,
2791,
273,
2791,
907,
12,
2704,
907,
1769,
7734,
309,
261,
9436,
422,
2029,
1586,
18,
11126,
67,
21417,
13,
5411,
327,
10942,
31,
3639,
469,
540,
309,
261,
9436,
422,
2029,
1586,
18,
11126,
67,
22589,
5411,
597,
10942,
18,
5332,
22460,
10756,
540,
288,
5411,
2
] |
Class theClass = getClass(propertyName, defaultValue); if (theClass != null && !xface.isAssignableFrom(theClass)) throw new RuntimeException(theClass+" not "+xface.getName()); return theClass; } catch (Exception e) {
|
return Class.forName(valueString); } catch (ClassNotFoundException e) {
|
public Class getClass(String propertyName, Class defaultValue,Class xface) { try { Class theClass = getClass(propertyName, defaultValue); if (theClass != null && !xface.isAssignableFrom(theClass)) throw new RuntimeException(theClass+" not "+xface.getName()); return theClass; } catch (Exception e) { throw new RuntimeException(e); } }
|
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/628adbdc4a3a1116217663710bf591bf73c01fc3/Configuration.java/buggy/src/java/org/apache/hadoop/conf/Configuration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
2900,
12,
780,
5470,
16,
1659,
4593,
16,
797,
619,
865,
13,
288,
565,
775,
288,
1377,
1659,
326,
797,
273,
2900,
12,
4468,
461,
16,
4593,
1769,
1377,
309,
261,
5787,
797,
480,
446,
597,
401,
92,
865,
18,
291,
7961,
1265,
12,
5787,
797,
3719,
3639,
604,
394,
3235,
12,
5787,
797,
9078,
486,
13773,
92,
865,
18,
17994,
10663,
1377,
327,
326,
797,
31,
565,
289,
1044,
261,
503,
425,
13,
288,
1377,
604,
394,
3235,
12,
73,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1659,
2900,
12,
780,
5470,
16,
1659,
4593,
16,
797,
619,
865,
13,
288,
565,
775,
288,
1377,
1659,
326,
797,
273,
2900,
12,
4468,
461,
16,
4593,
1769,
1377,
309,
261,
5787,
797,
480,
446,
597,
401,
92,
865,
18,
291,
7961,
1265,
12,
5787,
797,
3719,
3639,
604,
394,
3235,
12,
5787,
797,
9078,
486,
13773,
92,
865,
18,
17994,
10663,
1377,
327,
326,
797,
31,
565,
289,
1044,
261,
503,
425,
13,
288,
1377,
604,
394,
3235,
12,
73,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new UnsupportedAudioFileException("input stream type not recognized"); }
|
throw new IllegalArgumentException("encoding not supported for stream"); }
|
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.next(); try { return reader.getAudioInputStream(is); } catch (UnsupportedAudioFileException _) { // Try the next provider. } } throw new UnsupportedAudioFileException("input stream type not recognized"); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AudioSystem.java/buggy/core/src/classpath/javax/javax/sound/sampled/AudioSystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
15045,
4348,
4506,
4484,
4348,
12,
4348,
353,
13,
565,
1216,
7221,
12719,
812,
503,
16,
1860,
225,
288,
565,
4498,
277,
273,
1956,
1733,
18,
8664,
10672,
12,
12719,
812,
2514,
18,
1106,
1769,
565,
1323,
261,
77,
18,
5332,
2134,
10756,
1377,
288,
3639,
15045,
812,
2514,
2949,
273,
261,
12719,
812,
2514,
13,
277,
18,
4285,
5621,
3639,
775,
1850,
288,
5411,
327,
2949,
18,
588,
12719,
4348,
12,
291,
1769,
1850,
289,
3639,
1044,
261,
8544,
12719,
812,
503,
389,
13,
1850,
288,
5411,
368,
6161,
326,
1024,
2893,
18,
1850,
289,
1377,
289,
565,
604,
394,
7221,
12719,
812,
503,
2932,
2630,
1407,
618,
486,
16332,
8863,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
760,
15045,
4348,
4506,
4484,
4348,
12,
4348,
353,
13,
565,
1216,
7221,
12719,
812,
503,
16,
1860,
225,
288,
565,
4498,
277,
273,
1956,
1733,
18,
8664,
10672,
12,
12719,
812,
2514,
18,
1106,
1769,
565,
1323,
261,
77,
18,
5332,
2134,
10756,
1377,
288,
3639,
15045,
812,
2514,
2949,
273,
261,
12719,
812,
2514,
13,
277,
18,
4285,
5621,
3639,
775,
1850,
288,
5411,
327,
2949,
18,
588,
12719,
4348,
12,
291,
1769,
1850,
289,
3639,
1044,
261,
8544,
12719,
812,
503,
389,
13,
1850,
288,
5411,
368,
6161,
326,
1024,
2893,
18,
1850,
289,
1377,
289,
565,
604,
394,
7221,
12719,
812,
503,
2932,
2630,
1407,
618,
486,
16332,
8863,
225,
289,
2,
-100,
-100
] |
n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH));
|
n.putIntProp(Node.ISNUMBER_PROP, Node.BOTH);
|
int rewriteForNumberVariables(Node n) { switch (n.getType()) { case TokenStream.POP : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NoType; } case TokenStream.NUMBER : n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; case TokenStream.GETVAR : { OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (theVar != null) { if (inDirectCallFunction && theVar.isParameter()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else if (theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } return TypeEvent.NoType; } case TokenStream.INC : case TokenStream.DEC : { Node child = n.getFirstChild(); // will be a GETVAR or GETPROP if (child.getType() == TokenStream.GETVAR) { OptLocalVariable theVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if ((theVar != null) && theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(child); return TypeEvent.NumberType; } else return TypeEvent.NoType; } else return TypeEvent.NoType; } case TokenStream.SETVAR : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int rType = rewriteForNumberVariables(rChild); OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (inDirectCallFunction && theVar.isParameter()) { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } markDCPNumberContext(rChild); return TypeEvent.NoType; } else return rType; } else { if ((theVar != null) && theVar.isNumber()) { if (rType != TypeEvent.NumberType) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(rChild); return TypeEvent.NumberType; } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(newRChild); } } return TypeEvent.NoType; } } } case TokenStream.RELOP : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if ((n.getInt() == TokenStream.INSTANCEOF) || (n.getInt() == TokenStream.IN)) { if (lType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node nuChild = new Node(TokenStream.CONVERT, lChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node nuChild = new Node(TokenStream.CONVERT, rChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } } else { if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } else { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } } } // we actually build a boolean value return TypeEvent.NoType; } case TokenStream.ADD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } } return TypeEvent.NoType; } case TokenStream.BITXOR : case TokenStream.BITOR : case TokenStream.BITAND : case TokenStream.RSH : case TokenStream.LSH : case TokenStream.SUB : case TokenStream.MUL : case TokenStream.DIV : case TokenStream.MOD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } else { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); } if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } } case TokenStream.SETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); Node rValue = arrayIndex.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.setElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); markDCPNumberContext(arrayIndex); } int rValueType = rewriteForNumberVariables(rValue); if (rValueType == TypeEvent.NumberType) { if (!convertParameter(rValue)) { n.removeChild(rValue); Node nuChild = new Node(TokenStream.CONVERT, rValue); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } return TypeEvent.NoType; } case TokenStream.GETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.getElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); markDCPNumberContext(arrayIndex); } return TypeEvent.NoType; } case TokenStream.CALL : { FunctionNode target = (FunctionNode)n.getProp(Node.DIRECTCALL_PROP); if (target != null) {/* we leave each child as a Number if it can be. The codegen will handle moving the pairs of parameters.*/ Node child = n.getFirstChild(); // the function rewriteForNumberVariables(child); child = child.getNextSibling(); // the 'this' object rewriteForNumberVariables(child); child = child.getNextSibling(); // the first arg while (child != null) { int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { markDCPNumberContext(child); } child = child.getNextSibling(); } return TypeEvent.NoType; } // else fall thru... } default : { Node child = n.getFirstChild(); while (child != null) { Node nextChild = child.getNextSibling(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { if (!convertParameter(child)) { n.removeChild(child); Node nuChild = new Node(TokenStream.CONVERT, child); nuChild.putProp(Node.TYPE_PROP, Object.class); if (nextChild == null) n.addChildToBack(nuChild); else n.addChildBefore(nuChild, nextChild); } } child = nextChild; } return TypeEvent.NoType; } } }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Optimizer.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
10738,
1290,
1854,
6158,
12,
907,
290,
13,
565,
288,
3639,
1620,
261,
82,
18,
588,
559,
10756,
288,
5411,
648,
3155,
1228,
18,
30374,
294,
288,
10792,
2029,
1151,
273,
290,
18,
588,
3759,
1763,
5621,
10792,
509,
618,
273,
10738,
1290,
1854,
6158,
12,
3624,
1769,
10792,
309,
261,
723,
422,
1412,
1133,
18,
1854,
559,
13,
13491,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
5397,
327,
1412,
1133,
18,
2279,
559,
31,
7734,
289,
5411,
648,
3155,
1228,
18,
9931,
294,
7734,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
7734,
327,
1412,
1133,
18,
1854,
559,
31,
5411,
648,
3155,
1228,
18,
3264,
7716,
294,
288,
10792,
12056,
2042,
3092,
326,
1537,
7682,
273,
261,
6179,
2042,
3092,
21433,
82,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
10792,
309,
261,
5787,
1537,
480,
446,
13,
288,
13491,
309,
261,
267,
5368,
1477,
2083,
597,
326,
1537,
18,
291,
1662,
10756,
288,
18701,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
18701,
327,
1412,
1133,
18,
1854,
559,
31,
13491,
289,
13491,
469,
18701,
309,
261,
5787,
1537,
18,
291,
1854,
10756,
288,
27573,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
27573,
327,
1412,
1133,
18,
1854,
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,
509,
10738,
1290,
1854,
6158,
12,
907,
290,
13,
565,
288,
3639,
1620,
261,
82,
18,
588,
559,
10756,
288,
5411,
648,
3155,
1228,
18,
30374,
294,
288,
10792,
2029,
1151,
273,
290,
18,
588,
3759,
1763,
5621,
10792,
509,
618,
273,
10738,
1290,
1854,
6158,
12,
3624,
1769,
10792,
309,
261,
723,
422,
1412,
1133,
18,
1854,
559,
13,
13491,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
5397,
327,
1412,
1133,
18,
2279,
559,
31,
7734,
289,
5411,
648,
3155,
1228,
18,
9931,
294,
7734,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
7734,
327,
1412,
2
] |
public org.quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { org.quickfix.field.ContractMultiplier value = new org.quickfix.field.ContractMultiplier();
|
public quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { quickfix.field.ContractMultiplier value = new quickfix.field.ContractMultiplier();
|
public org.quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { org.quickfix.field.ContractMultiplier value = new org.quickfix.field.ContractMultiplier(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelRequest.java/clean/src/java/src/quickfix/fix44/OrderCancelRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
336,
8924,
23365,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
336,
8924,
23365,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
executeCount[0]++;
|
synchronized (executeCount) { executeCount[0]++; }
|
public void run(int i) { for (int j = 0; j < iterationCount; j++) { int queryIndex = (i * 2 + j) % queries.length; try { runQueryCheckResult(queries[queryIndex]); if (flush && i == 0) { AggregationManager.instance().flushCachePool(); } executeCount[0]++; } catch (Throwable e) { e.printStackTrace(); throw Util.newInternal( e, "Thread #" + i + " failed while executing query #" + queryIndex); } } }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0b6ecddc2e72f51e21b459ba4c0fabc554c76028/BasicQueryTest.java/clean/src/main/mondrian/test/BasicQueryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
918,
1086,
12,
474,
277,
13,
288,
25083,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
6532,
1380,
31,
525,
27245,
288,
6862,
1082,
202,
474,
843,
1016,
273,
261,
77,
380,
576,
397,
525,
13,
738,
6218,
18,
2469,
31,
6862,
1082,
202,
698,
288,
6862,
9506,
202,
2681,
1138,
1564,
1253,
12,
13748,
63,
2271,
1016,
19226,
27573,
309,
261,
11330,
597,
277,
422,
374,
13,
288,
6862,
6862,
202,
12089,
1318,
18,
1336,
7675,
11330,
1649,
2864,
5621,
27573,
289,
6862,
9506,
202,
8837,
1380,
63,
20,
3737,
15,
31,
6862,
1082,
202,
97,
1044,
261,
15155,
425,
13,
288,
6862,
9506,
202,
73,
18,
1188,
6332,
5621,
6862,
9506,
202,
12849,
3564,
18,
2704,
3061,
12,
6862,
25083,
202,
73,
16,
6862,
25083,
202,
6,
3830,
31526,
397,
277,
397,
6862,
25083,
202,
6,
2535,
1323,
11274,
843,
31526,
397,
6862,
25083,
202,
2271,
1016,
1769,
6862,
1082,
202,
97,
25083,
202,
97,
6862,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
918,
1086,
12,
474,
277,
13,
288,
25083,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
6532,
1380,
31,
525,
27245,
288,
6862,
1082,
202,
474,
843,
1016,
273,
261,
77,
380,
576,
397,
525,
13,
738,
6218,
18,
2469,
31,
6862,
1082,
202,
698,
288,
6862,
9506,
202,
2681,
1138,
1564,
1253,
12,
13748,
63,
2271,
1016,
19226,
27573,
309,
261,
11330,
597,
277,
422,
374,
13,
288,
6862,
6862,
202,
12089,
1318,
18,
1336,
7675,
11330,
1649,
2864,
5621,
27573,
289,
6862,
9506,
202,
8837,
1380,
63,
20,
3737,
15,
31,
6862,
1082,
202,
97,
1044,
261,
15155,
425,
13,
288,
6862,
9506,
202,
73,
18,
1188,
6332,
5621,
6862,
9506,
202,
2
] |
ServiceContext[] cx)
|
org.omg.IOP.ServiceContext[] cx)
|
public static org.omg.IOP.ServiceContext findContext(int ctx_name, ServiceContext[] cx) { for (int i = 0; i < cx.length; i++) if (cx[i].context_id == ctx_name) return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data); throw new BAD_PARAM("No context with id " + ctx_name); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/ServiceContext.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ServiceContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2358,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
1104,
1042,
12,
474,
1103,
67,
529,
16,
565,
2358,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
8526,
9494,
13,
225,
288,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9494,
18,
2469,
31,
277,
27245,
1377,
309,
261,
71,
92,
63,
77,
8009,
2472,
67,
350,
422,
1103,
67,
529,
13,
3639,
327,
394,
2358,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
12,
5900,
67,
529,
16,
9494,
63,
77,
8009,
2472,
67,
892,
1769,
565,
604,
394,
16467,
67,
8388,
2932,
2279,
819,
598,
612,
315,
397,
1103,
67,
529,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2358,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
1104,
1042,
12,
474,
1103,
67,
529,
16,
565,
2358,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
8526,
9494,
13,
225,
288,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9494,
18,
2469,
31,
277,
27245,
1377,
309,
261,
71,
92,
63,
77,
8009,
2472,
67,
350,
422,
1103,
67,
529,
13,
3639,
327,
394,
2358,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
12,
5900,
67,
529,
16,
9494,
63,
77,
8009,
2472,
67,
892,
1769,
565,
604,
394,
16467,
67,
8388,
2932,
2279,
819,
598,
612,
315,
397,
1103,
67,
529,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
rows.setSize(0);
|
public void close() throws SQLException { // No-op }
|
45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/49740c5fb99094b3942d7b8588f545907fd17074/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
1071,
2595,
18,
542,
1225,
12,
20,
1769,
918,
2595,
18,
542,
1225,
12,
20,
1769,
1746,
1435,
2595,
18,
542,
1225,
12,
20,
1769,
1216,
2595,
18,
542,
1225,
12,
20,
1769,
6483,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
288,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
368,
2595,
18,
542,
1225,
12,
20,
1769,
2631,
17,
556,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
1071,
2595,
18,
542,
1225,
12,
20,
1769,
918,
2595,
18,
542,
1225,
12,
20,
1769,
1746,
1435,
2595,
18,
542,
1225,
12,
20,
1769,
1216,
2595,
18,
542,
1225,
12,
20,
1769,
6483,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
288,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
1225,
12,
20,
1769,
368,
2595,
18,
542,
1225,
12,
20,
1769,
2631,
17,
556,
2595,
18,
542,
1225,
12,
20,
1769,
225,
2595,
18,
542,
2
] |
|
getInstanceVariables().put("__classid__", id);
|
getInstanceVariables().put(getRuby().intern("__classid__"), id);
|
public void setName(RubyId id) { getInstanceVariables().put("__classid__", id); }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/8e00ad1c7ae96f50ae0bd521483380788f891b7b/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6788,
12,
54,
10340,
548,
612,
13,
288,
3639,
3694,
6158,
7675,
458,
12,
588,
54,
10340,
7675,
267,
798,
2932,
972,
1106,
350,
14437,
3631,
612,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6788,
12,
54,
10340,
548,
612,
13,
288,
3639,
3694,
6158,
7675,
458,
12,
588,
54,
10340,
7675,
267,
798,
2932,
972,
1106,
350,
14437,
3631,
612,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setResult(Assign.BIT_XOR_ASSIGN); break; } case 346: {
|
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
|
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/13a8963410bb8c85885791a761267a089892a2fc/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
1770,
12,
82,
74,
16,
4766,
1377,
3742,
16,
4766,
1377,
949,
12,
588,
3910,
6952,
9334,
16609,
6952,
1435,
3631,
4766,
1377,
21036,
16,
4766,
1377,
10971,
10019,
10792,
898,
31,
5411,
289,
5397,
368,
5411,
368,
6781,
576,
30,
225,
7508,
461,
493,
33,
7508,
461,
263,
1068,
548,
5411,
368,
5411,
648,
576,
30,
288,
7734,
368,
7,
1369,
2872,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
7508,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
6549,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
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,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
2
] |
|
public OID(String strRep)
|
public OID(int[] components)
|
public OID(String strRep) { this(strRep, false); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e864c0d89c996e0999ad08d1701193723aaab52a/OID.java/clean/core/src/classpath/gnu/gnu/java/security/OID.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18026,
12,
474,
8526,
4085,
13,
225,
288,
565,
333,
12,
701,
18933,
16,
629,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18026,
12,
474,
8526,
4085,
13,
225,
288,
565,
333,
12,
701,
18933,
16,
629,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (binDir != null) {
|
if (libDir != null) {
|
private synchronized void startApplication() { if (messengerd == null) { File binDir = null; File exe = null; try { // Aliases keep their cwd rather than the aliased binDir's cwd on MacOS X // so we'll do a search for messengerd rather than relying on it being where // we think it will be... binDir = new File("").getAbsoluteFile(); if (!"bin".equals(binDir.getName())) { binDir = new File(binDir, "bin"); } if ("bin".equals(binDir.getName())) { // Windows exe = new File(binDir, "messengerd.exe"); if (exe.exists()) { messengerd = Runtime.getRuntime().exec(new String[]{exe.toString()}); } else { // MacOS X exe = new File(binDir, "messengerd.app"); if (exe.exists()) { messengerd = Runtime.getRuntime().exec(new String[]{ "open", exe.toString() }); } else { // Unix exe = new File(binDir, "messengerd"); if (exe.exists()) { messengerd = Runtime.getRuntime().exec(new String[]{exe.toString()}); } else { throw new FileNotFoundException(); } } } } } catch (Exception e) { // Try one more time using the jar and hope java is on the path try { if (binDir != null) { messengerd = Runtime.getRuntime().exec(new String[]{ "java", "-jar", new File(binDir, "messengerd.jar").toString() }); } else { e.printStackTrace(); JOptionPane.showMessageDialog(null, "Launcher could not locate messengerd,\nthe Jive Messenger server daemon executable", "File not found", JOptionPane.ERROR_MESSAGE); } } catch (Exception ex) { ex.printStackTrace(); JOptionPane.showMessageDialog(null, "Launcher could not locate messengerd,\nthe Jive Messenger server daemon executable", "File not found", JOptionPane.ERROR_MESSAGE); } } } }
|
6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/2278c594232497f1986515b0b4eda52ea9c152f1/Launcher.java/clean/src/java/org/jivesoftware/messenger/launcher/Launcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
787,
3208,
1435,
288,
3639,
309,
261,
81,
18912,
72,
422,
446,
13,
288,
5411,
1387,
4158,
1621,
273,
446,
31,
5411,
1387,
15073,
273,
446,
31,
5411,
775,
288,
7734,
368,
30095,
3455,
3675,
7239,
9178,
2353,
326,
19218,
4158,
1621,
1807,
7239,
603,
13217,
4618,
1139,
7734,
368,
1427,
732,
5614,
741,
279,
1623,
364,
31086,
72,
9178,
2353,
283,
6291,
603,
518,
3832,
1625,
7734,
368,
732,
15507,
518,
903,
506,
2777,
7734,
4158,
1621,
273,
394,
1387,
2932,
20387,
588,
10368,
812,
5621,
7734,
309,
261,
4442,
4757,
9654,
14963,
12,
4757,
1621,
18,
17994,
1435,
3719,
288,
10792,
4158,
1621,
273,
394,
1387,
12,
4757,
1621,
16,
315,
4757,
8863,
7734,
289,
7734,
309,
7566,
4757,
9654,
14963,
12,
4757,
1621,
18,
17994,
1435,
3719,
288,
10792,
368,
8202,
10792,
15073,
273,
394,
1387,
12,
4757,
1621,
16,
315,
81,
18912,
72,
18,
14880,
8863,
10792,
309,
261,
14880,
18,
1808,
10756,
288,
13491,
31086,
72,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
2704,
514,
63,
7073,
14880,
18,
10492,
17767,
1769,
10792,
289,
10792,
469,
288,
13491,
368,
13217,
4618,
1139,
13491,
15073,
273,
394,
1387,
12,
4757,
1621,
16,
315,
81,
18912,
72,
18,
2910,
8863,
13491,
309,
261,
14880,
18,
1808,
10756,
288,
18701,
31086,
72,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
2704,
514,
63,
7073,
27573,
315,
3190,
3113,
15073,
18,
10492,
1435,
18701,
15549,
13491,
289,
13491,
469,
288,
18701,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
787,
3208,
1435,
288,
3639,
309,
261,
81,
18912,
72,
422,
446,
13,
288,
5411,
1387,
4158,
1621,
273,
446,
31,
5411,
1387,
15073,
273,
446,
31,
5411,
775,
288,
7734,
368,
30095,
3455,
3675,
7239,
9178,
2353,
326,
19218,
4158,
1621,
1807,
7239,
603,
13217,
4618,
1139,
7734,
368,
1427,
732,
5614,
741,
279,
1623,
364,
31086,
72,
9178,
2353,
283,
6291,
603,
518,
3832,
1625,
7734,
368,
732,
15507,
518,
903,
506,
2777,
7734,
4158,
1621,
273,
394,
1387,
2932,
20387,
588,
10368,
812,
5621,
7734,
309,
261,
4442,
4757,
9654,
14963,
12,
4757,
1621,
18,
17994,
1435,
3719,
288,
10792,
4158,
1621,
273,
394,
1387,
12,
4757,
1621,
16,
315,
4757,
8863,
2
] |
Cancel cancel = new Cancel(info.getMessageProxy().getDeliveryId(), info.getMessageProxy().getDeliveryCount()); toCancel.addFirst(cancel);
|
cancelDelivery(del, info);
|
public Object handleRedeliver(Invocation invocation) throws Throwable { if (trace) { log.trace("redeliver called"); } MethodInvocation mi = (MethodInvocation)invocation; SessionState state = getState(invocation); // We put the messages back in the front of their appropriate consumer buffers and set // JMSRedelivered to true. List toRedeliver = (List)mi.getArguments()[0]; LinkedList toCancel = new LinkedList(); // Need to be recovered in reverse order. for (int i = toRedeliver.size() - 1; i >= 0; i--) { DeliveryInfo info = (DeliveryInfo)toRedeliver.get(i); MessageProxy proxy = info.getMessageProxy(); MessageCallbackHandler handler = state.getCallbackHandler(info.getConsumerId()); if (handler == null) { // This is ok. The original consumer has closed, this message wil get cancelled back // to the channel. Cancel cancel = new Cancel(info.getMessageProxy().getDeliveryId(), info.getMessageProxy().getDeliveryCount()); toCancel.addFirst(cancel); } else { handler.addToFrontOfBuffer(proxy); } } if (!toCancel.isEmpty()) { // Cancel the messages that can't be redelivered locally SessionDelegate del = (SessionDelegate)mi.getTargetObject(); del.cancelDeliveries(toCancel); } return null; }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/67a2ce6eee4fecacdc05a35652ffceb168cc2c14/SessionAspect.java/buggy/src/main/org/jboss/jms/client/container/SessionAspect.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1033,
1640,
3715,
292,
1667,
12,
9267,
9495,
13,
1216,
4206,
282,
288,
1377,
309,
261,
5129,
13,
288,
613,
18,
5129,
2932,
1118,
292,
1667,
2566,
8863,
289,
5411,
2985,
9267,
12837,
273,
261,
1305,
9267,
13,
5768,
4431,
31,
1377,
3877,
1119,
919,
273,
8997,
12,
5768,
4431,
1769,
5375,
368,
1660,
1378,
326,
2743,
1473,
316,
326,
6641,
434,
3675,
5505,
4765,
9664,
471,
444,
1377,
368,
13270,
3715,
292,
1667,
329,
358,
638,
18,
5411,
987,
358,
3715,
292,
1667,
273,
261,
682,
13,
9197,
18,
588,
4628,
1435,
63,
20,
15533,
1377,
10688,
358,
6691,
273,
394,
10688,
5621,
5411,
368,
12324,
358,
506,
24616,
316,
4219,
1353,
18,
1377,
364,
261,
474,
277,
273,
358,
3715,
292,
1667,
18,
1467,
1435,
300,
404,
31,
277,
1545,
374,
31,
277,
413,
13,
1377,
288,
540,
17390,
966,
1123,
273,
261,
8909,
966,
13,
869,
3715,
292,
1667,
18,
588,
12,
77,
1769,
540,
2350,
3886,
2889,
273,
1123,
18,
24906,
3886,
5621,
12900,
2350,
2428,
1503,
1838,
273,
919,
18,
588,
2428,
1503,
12,
1376,
18,
588,
5869,
548,
10663,
15604,
309,
261,
4176,
422,
446,
13,
540,
288,
5411,
368,
1220,
353,
1529,
18,
1021,
2282,
4765,
711,
4375,
16,
333,
883,
341,
330,
336,
13927,
1473,
5411,
368,
358,
326,
1904,
18,
5411,
10347,
3755,
273,
394,
10347,
12,
1376,
18,
24906,
3886,
7675,
588,
8909,
548,
9334,
1123,
18,
24906,
3886,
7675,
588,
8909,
1380,
10663,
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,
565,
1071,
1033,
1640,
3715,
292,
1667,
12,
9267,
9495,
13,
1216,
4206,
282,
288,
1377,
309,
261,
5129,
13,
288,
613,
18,
5129,
2932,
1118,
292,
1667,
2566,
8863,
289,
5411,
2985,
9267,
12837,
273,
261,
1305,
9267,
13,
5768,
4431,
31,
1377,
3877,
1119,
919,
273,
8997,
12,
5768,
4431,
1769,
5375,
368,
1660,
1378,
326,
2743,
1473,
316,
326,
6641,
434,
3675,
5505,
4765,
9664,
471,
444,
1377,
368,
13270,
3715,
292,
1667,
329,
358,
638,
18,
5411,
987,
358,
3715,
292,
1667,
273,
261,
682,
13,
9197,
18,
588,
4628,
1435,
63,
20,
15533,
1377,
10688,
358,
6691,
273,
394,
10688,
5621,
5411,
368,
12324,
358,
506,
24616,
316,
4219,
1353,
18,
1377,
364,
261,
2
] |
this.icon = "";
|
public Midlet() { this.icon = ""; }
|
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/b98582133d39715f73c21e895c11c91b947002f0/Midlet.java/buggy/enough-polish-build/source/src/de/enough/polish/ant/build/Midlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
490,
350,
1810,
1435,
288,
202,
202,
2211,
18,
3950,
273,
1408,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
490,
350,
1810,
1435,
288,
202,
202,
2211,
18,
3950,
273,
1408,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(),
|
} try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(),
|
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlign((String) evalAttr("align", getAlign(), String.class)); } catch (NullAttributeException ex) { setAlign(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setBorder((String) evalAttr("border", getBorder(), String.class)); } catch (NullAttributeException ex) { setBorder(null); } try { setBundle((String) evalAttr("bundle", getBundle(), String.class)); } catch (NullAttributeException ex) { setBundle(null); } try { setHeight((String) evalAttr("height", getHeight(), String.class)); } catch (NullAttributeException ex) { setHeight(null); } try { setHspace((String) evalAttr("hspace", getHspace(), String.class)); } catch (NullAttributeException ex) { setHspace(null); } try { setImageName((String) evalAttr("imageName", getImageName(), String.class)); } catch (NullAttributeException ex) { setImageName(null); } try { setIsmap((String) evalAttr("ismap", getIsmap(), String.class)); } catch (NullAttributeException ex) { setIsmap(null); } try { setLocale((String) evalAttr("locale", getLocale(), String.class)); } catch (NullAttributeException ex) { setLocale(null); } // The "lowsrc" attribute is deprecated. This needs to be removed // when the "lowsrc" attribute is finally removed. try { setLowsrc((String) evalAttr("lowsrc", getLowsrc(), String.class)); } catch (NullAttributeException ex) { setLowsrc(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setPage((String) evalAttr("page", getPage(), String.class)); } catch (NullAttributeException ex) { setPage(null); } try { setPageKey((String) evalAttr("pageKey", getPageKey(), String.class)); } catch (NullAttributeException ex) { setPageKey(null); } try { setParamId((String) evalAttr("paramId", getParamId(), String.class)); } catch (NullAttributeException ex) { setParamId(null); } try { setParamName((String) evalAttr("paramName", getParamName(), String.class)); } catch (NullAttributeException ex) { setParamName(null); } try { setParamProperty((String) evalAttr("paramProperty", getParamProperty(), String.class)); } catch (NullAttributeException ex) { setParamProperty(null); } try { setParamScope((String) evalAttr("paramScope", getParamScope(), String.class)); } catch (NullAttributeException ex) { setParamScope(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } try { setSrc((String) evalAttr("src", getSrc(), String.class)); } catch (NullAttributeException ex) { setSrc(null); } try { setSrcKey((String) evalAttr("srcKey", getSrcKey(), String.class)); } catch (NullAttributeException ex) { setSrcKey(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setUsemap((String) evalAttr("usemap", getUsemap(), String.class)); } catch (NullAttributeException ex) { setUsemap(null); } try { setVspace((String) evalAttr("vspace", getVspace(), String.class)); } catch (NullAttributeException ex) { setVspace(null); } try { setWidth((String) evalAttr("width", getWidth(), String.class)); } catch (NullAttributeException ex) { setWidth(null); } }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELImgTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImgTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10044,
12443,
780,
13,
5302,
3843,
2932,
7989,
3113,
336,
10044,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10044,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
25715,
12443,
780,
13,
5302,
3843,
2932,
8815,
3113,
2882,
1019,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
25715,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
3405,
12443,
780,
13,
5302,
3843,
2932,
9991,
3113,
10946,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
3405,
12,
2011,
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,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10044,
12443,
780,
13,
5302,
3843,
2932,
7989,
3113,
336,
10044,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10044,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
2
] |
RepositoryIndexSearcher repoSearcher = factory.createDefaultRepositoryIndexSearcher( indexer );
|
RepositoryIndexSearchLayer repoSearchLayer = factory.createRepositoryIndexSearchLayer( indexer );
|
public void testSearch() throws Exception { createTestIndex(); RepositoryIndexingFactory factory = (RepositoryIndexingFactory) lookup( RepositoryIndexingFactory.ROLE ); MetadataRepositoryIndex indexer = factory.createMetadataRepositoryIndex( indexPath, repository ); RepositoryIndexSearcher repoSearcher = factory.createDefaultRepositoryIndexSearcher( indexer ); // search last update org.apache.maven.repository.indexing.query.Query qry = new SinglePhraseQuery( RepositoryIndex.FLD_LASTUPDATE, "20051212044643" ); List metadataList = repoSearcher.search( qry ); assertEquals( 1, metadataList.size() ); for ( Iterator iter = metadataList.iterator(); iter.hasNext(); ) { RepositoryMetadata repoMetadata = (RepositoryMetadata) iter.next(); Metadata metadata = repoMetadata.getMetadata(); Versioning versioning = metadata.getVersioning(); assertEquals( "20051212044643", versioning.getLastUpdated() ); } // search plugin prefix qry = new SinglePhraseQuery( RepositoryIndex.FLD_PLUGINPREFIX, "org.apache.maven" ); metadataList = repoSearcher.search( qry ); assertEquals( 1, metadataList.size() ); for ( Iterator iter = metadataList.iterator(); iter.hasNext(); ) { RepositoryMetadata repoMetadata = (RepositoryMetadata) iter.next(); Metadata metadata = repoMetadata.getMetadata(); List plugins = metadata.getPlugins(); for ( Iterator it = plugins.iterator(); it.hasNext(); ) { Plugin plugin = (Plugin) it.next(); assertEquals( "org.apache.maven", plugin.getPrefix() ); } } // search last update using INCLUSIVE Range Query Query qry1 = new SinglePhraseQuery( RepositoryIndex.FLD_LASTUPDATE, "20051212000000" ); Query qry2 = new SinglePhraseQuery( RepositoryIndex.FLD_LASTUPDATE, "20051212235959" ); RangeQuery rQry = new RangeQuery( true ); rQry.addQuery( qry1 ); rQry.addQuery( qry2 ); metadataList = repoSearcher.search( rQry ); for ( Iterator iter = metadataList.iterator(); iter.hasNext(); ) { RepositoryMetadata repoMetadata = (RepositoryMetadata) iter.next(); Metadata metadata = repoMetadata.getMetadata(); Versioning versioning = metadata.getVersioning(); assertEquals( "20051212044643", versioning.getLastUpdated() ); } // search last update using EXCLUSIVE Range Query qry1 = new SinglePhraseQuery( RepositoryIndex.FLD_LASTUPDATE, "20051212000000" ); qry2 = new SinglePhraseQuery( RepositoryIndex.FLD_LASTUPDATE, "20051212044643" ); rQry = new RangeQuery( false ); rQry.addQuery( qry1 ); rQry.addQuery( qry2 ); metadataList = repoSearcher.search( rQry ); assertEquals( metadataList.size(), 0 ); indexer.close(); }
|
28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/edd8a998aa6006fddaf4d4a404bbdd6ddfd246d7/MetadataRepositoryIndexingTest.java/buggy/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/MetadataRepositoryIndexingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2979,
1435,
3639,
1216,
1185,
565,
288,
3639,
752,
4709,
1016,
5621,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
6912,
3305,
1016,
12635,
273,
3272,
18,
2640,
2277,
3305,
1016,
12,
770,
743,
16,
3352,
11272,
540,
6281,
1016,
2979,
4576,
3538,
2979,
4576,
273,
3272,
18,
2640,
3305,
1016,
2979,
4576,
12,
12635,
11272,
3639,
368,
1623,
1142,
1089,
3639,
2358,
18,
19211,
18,
81,
7638,
18,
9071,
18,
1615,
310,
18,
2271,
18,
1138,
16788,
273,
5411,
394,
10326,
12812,
1138,
12,
6281,
1016,
18,
42,
12069,
67,
14378,
8217,
16,
315,
6976,
13757,
2138,
3028,
24,
1105,
23,
6,
11272,
3639,
987,
1982,
682,
273,
3538,
2979,
264,
18,
3072,
12,
16788,
11272,
3639,
1815,
8867,
12,
404,
16,
1982,
682,
18,
1467,
1435,
11272,
3639,
364,
261,
4498,
1400,
273,
1982,
682,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
6281,
2277,
3538,
2277,
273,
261,
3305,
2277,
13,
1400,
18,
4285,
5621,
5411,
6912,
1982,
273,
3538,
2277,
18,
588,
2277,
5621,
5411,
4049,
310,
1177,
310,
273,
1982,
18,
588,
1444,
310,
5621,
5411,
1815,
8867,
12,
315,
6976,
13757,
2138,
3028,
24,
1105,
23,
3113,
1177,
310,
18,
588,
3024,
7381,
1435,
11272,
3639,
289,
3639,
368,
1623,
1909,
1633,
3639,
16788,
273,
394,
10326,
12812,
1138,
12,
6281,
1016,
18,
42,
12069,
67,
19415,
6307,
16,
315,
3341,
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,
2979,
1435,
3639,
1216,
1185,
565,
288,
3639,
752,
4709,
1016,
5621,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
6912,
3305,
1016,
12635,
273,
3272,
18,
2640,
2277,
3305,
1016,
12,
770,
743,
16,
3352,
11272,
540,
6281,
1016,
2979,
4576,
3538,
2979,
4576,
273,
3272,
18,
2640,
3305,
1016,
2979,
4576,
12,
12635,
11272,
3639,
368,
1623,
1142,
1089,
3639,
2358,
18,
19211,
18,
81,
7638,
18,
9071,
18,
1615,
310,
18,
2271,
18,
1138,
16788,
273,
5411,
394,
10326,
12812,
1138,
12,
6281,
1016,
18,
42,
12069,
67,
14378,
8217,
16,
315,
6976,
13757,
2138,
3028,
24,
1105,
23,
6,
2
] |
assertEquals("# M ", m_logString);
|
assertEquals("M ", m_logString);
|
public void test_COMPLEX() { m_logString = ""; K(); assertEquals("# K ", m_logString); m_logString = ""; L(); assertEquals("# L ", m_logString); m_logString = ""; M(); assertEquals("# M ", m_logString); m_logString = ""; N(); assertEquals("before1 # N after1 ", m_logString); }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a4954bc086440ee1724b840d06c4279c27d6d1c7/PointcutExpressionTest.java/buggy/aspectwerkz/src/test/test/xmldef/PointcutExpressionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
10057,
21130,
1435,
288,
3639,
312,
67,
1330,
780,
273,
1408,
31,
3639,
1475,
5621,
3639,
1815,
8867,
2932,
7,
1475,
3104,
312,
67,
1330,
780,
1769,
3639,
312,
67,
1330,
780,
273,
1408,
31,
3639,
511,
5621,
3639,
1815,
8867,
2932,
7,
511,
3104,
312,
67,
1330,
780,
1769,
3639,
312,
67,
1330,
780,
273,
1408,
31,
3639,
490,
5621,
3639,
1815,
8867,
2932,
49,
3104,
312,
67,
1330,
780,
1769,
3639,
312,
67,
1330,
780,
273,
1408,
31,
3639,
423,
5621,
3639,
1815,
8867,
2932,
5771,
21,
468,
423,
1839,
21,
3104,
312,
67,
1330,
780,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
10057,
21130,
1435,
288,
3639,
312,
67,
1330,
780,
273,
1408,
31,
3639,
1475,
5621,
3639,
1815,
8867,
2932,
7,
1475,
3104,
312,
67,
1330,
780,
1769,
3639,
312,
67,
1330,
780,
273,
1408,
31,
3639,
511,
5621,
3639,
1815,
8867,
2932,
7,
511,
3104,
312,
67,
1330,
780,
1769,
3639,
312,
67,
1330,
780,
273,
1408,
31,
3639,
490,
5621,
3639,
1815,
8867,
2932,
49,
3104,
312,
67,
1330,
780,
1769,
3639,
312,
67,
1330,
780,
273,
1408,
31,
3639,
423,
5621,
3639,
1815,
8867,
2932,
5771,
21,
468,
423,
1839,
21,
3104,
312,
67,
1330,
780,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
}
|
public void assertAce(CmsObject cms, String resourceName, CmsAccessControlEntry ace) { try { // get the stored resource OpenCmsTestResourceStorageEntry storedResource = m_currentResourceStrorage.get(resourceName); // create the exclude list List excludeList = new ArrayList(); if (ace != null) { excludeList.add(ace); } String noMatches = compareAccessEntries(cms, resourceName, storedResource, excludeList); // now see if we have collected any no-matches if (noMatches.length() > 0) { fail("error comparing ace of resource " + resourceName + " with stored values: " + noMatches); } if (ace != null) { Vector resAces = cms.getAccessControlEntries(resourceName); boolean notFound= true; Iterator i = resAces.iterator(); while (i.hasNext()) { CmsAccessControlEntry resAce = (CmsAccessControlEntry)i.next(); if (resAce.getPrincipal().equals(ace.getPrincipal()) && (resAce.getResource().equals(ace.getResource()))) { notFound = false; if (!resAce.equals(ace)) { fail("[ACE " + ace + " <-> " + resAce + "]"); } } } if (notFound) { fail("[ACE not found" + ace + "]"); } } } catch (CmsException e) { fail("cannot read resource " + resourceName + " "+CmsException.getStackTraceAsString(e)); } }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/68aedaa3c01c741c9805c6fede5b6e13b059cef4/OpenCmsTestCase.java/buggy/test/org/opencms/test/OpenCmsTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1815,
37,
311,
12,
4747,
921,
6166,
16,
514,
9546,
16,
2149,
16541,
1622,
18082,
13,
288,
3639,
775,
288,
5411,
368,
336,
326,
4041,
1058,
5411,
10319,
4709,
1420,
3245,
1622,
4041,
1420,
273,
312,
67,
2972,
1420,
1585,
1531,
18,
588,
12,
3146,
461,
1769,
28524,
2398,
368,
752,
326,
4433,
666,
5411,
987,
4433,
682,
273,
394,
2407,
5621,
5411,
309,
261,
623,
480,
446,
13,
288,
7734,
4433,
682,
18,
1289,
12,
623,
1769,
5411,
289,
18701,
514,
1158,
6869,
273,
3400,
1862,
5400,
12,
6851,
16,
9546,
16,
4041,
1420,
16,
4433,
682,
1769,
1171,
368,
2037,
2621,
309,
732,
1240,
12230,
1281,
1158,
17,
8436,
5411,
309,
261,
2135,
6869,
18,
2469,
1435,
405,
374,
13,
288,
7734,
2321,
2932,
1636,
17553,
18082,
434,
1058,
315,
397,
9546,
397,
315,
598,
4041,
924,
30,
315,
397,
1158,
6869,
1769,
5411,
289,
12900,
309,
261,
623,
480,
446,
13,
288,
7734,
5589,
400,
37,
764,
273,
6166,
18,
588,
16541,
5400,
12,
3146,
461,
1769,
7734,
1250,
19372,
33,
638,
31,
7734,
4498,
277,
273,
400,
37,
764,
18,
9838,
5621,
7734,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
10792,
2149,
16541,
1622,
400,
37,
311,
273,
261,
4747,
16541,
1622,
13,
77,
18,
4285,
5621,
10792,
309,
261,
455,
37,
311,
18,
588,
9155,
7675,
14963,
12,
623,
18,
588,
9155,
10756,
11794,
597,
261,
455,
37,
311,
18,
588,
1420,
7675,
14963,
12,
623,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1815,
37,
311,
12,
4747,
921,
6166,
16,
514,
9546,
16,
2149,
16541,
1622,
18082,
13,
288,
3639,
775,
288,
5411,
368,
336,
326,
4041,
1058,
5411,
10319,
4709,
1420,
3245,
1622,
4041,
1420,
273,
312,
67,
2972,
1420,
1585,
1531,
18,
588,
12,
3146,
461,
1769,
28524,
2398,
368,
752,
326,
4433,
666,
5411,
987,
4433,
682,
273,
394,
2407,
5621,
5411,
309,
261,
623,
480,
446,
13,
288,
7734,
4433,
682,
18,
1289,
12,
623,
1769,
5411,
289,
18701,
514,
1158,
6869,
273,
3400,
1862,
5400,
12,
6851,
16,
9546,
16,
4041,
1420,
16,
4433,
682,
1769,
1171,
368,
2037,
2621,
309,
732,
1240,
12230,
1281,
1158,
17,
8436,
5411,
309,
261,
2135,
6869,
2
] |
protected void addActionDescriptor(CommonActionProviderDescriptor aDescriptor) { if(aDescriptor.getDependsOnId() == null)
|
protected void addActionDescriptor( CommonActionProviderDescriptor aDescriptor) { if (aDescriptor.getDependsOnId() == null)
|
protected void addActionDescriptor(CommonActionProviderDescriptor aDescriptor) { if(aDescriptor.getDependsOnId() == null) rootDescriptors.put(aDescriptor.getId(), aDescriptor); else dependentDescriptors.put(aDescriptor.getId(), aDescriptor); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/187a6e5e9526ea47a03a969d7ddb741178d2527d/CommonActionDescriptorManager.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/actions/CommonActionDescriptorManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14745,
3187,
12,
6517,
1803,
2249,
3187,
279,
3187,
13,
288,
25083,
202,
430,
12,
69,
3187,
18,
588,
4584,
87,
1398,
548,
1435,
422,
446,
13,
1082,
202,
3085,
12705,
18,
458,
12,
69,
3187,
18,
26321,
9334,
279,
3187,
1769,
202,
202,
12107,
1875,
202,
10891,
12705,
18,
458,
12,
69,
3187,
18,
26321,
9334,
279,
3187,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14745,
3187,
12,
6517,
1803,
2249,
3187,
279,
3187,
13,
288,
25083,
202,
430,
12,
69,
3187,
18,
588,
4584,
87,
1398,
548,
1435,
422,
446,
13,
1082,
202,
3085,
12705,
18,
458,
12,
69,
3187,
18,
26321,
9334,
279,
3187,
1769,
202,
202,
12107,
1875,
202,
10891,
12705,
18,
458,
12,
69,
3187,
18,
26321,
9334,
279,
3187,
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
] |
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
|
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/0c2418384f5c30e274953927e006a71647a24f1b/ColorChooser.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorChooser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2957,
17324,
12,
2909,
10497,
7358,
13,
202,
95,
202,
202,
474,
8526,
26198,
33,
7358,
18,
588,
23263,
5621,
202,
202,
474,
90,
28657,
474,
21433,
26198,
63,
26313,
5772,
6625,
19,
10395,
1769,
202,
202,
2957,
71,
33,
2704,
2957,
12,
26198,
63,
5879,
6487,
26198,
63,
29500,
6487,
26198,
63,
14618,
1821,
6487,
26198,
63,
26313,
19226,
202,
202,
952,
1318,
33,
2704,
2957,
17324,
1318,
12,
2211,
16,
26198,
16,
90,
1769,
202,
202,
4057,
33,
2704,
2957,
25863,
12,
952,
1318,
1769,
202,
202,
2170,
1745,
8485,
33,
9565,
18,
588,
1350,
8485,
5621,
202,
202,
2738,
14388,
5621,
202,
202,
2738,
21824,
12,
90,
1769,
202,
202,
2738,
1528,
29521,
12,
26198,
16,
90,
1769,
202,
202,
2738,
2957,
5537,
12,
71,
1769,
202,
202,
3510,
43,
5370,
5621,
202,
202,
3980,
18,
542,
1225,
12,
24572,
67,
59,
16,
24572,
67,
44,
1769,
202,
202,
1745,
8485,
18,
1289,
12,
3980,
1769,
9506,
202,
952,
1318,
18,
7331,
5583,
5621,
202,
202,
542,
607,
6934,
12,
5743,
1769,
202,
202,
542,
1225,
12,
24572,
67,
59,
15,
59,
67,
22639,
16,
24572,
67,
44,
15,
44,
67,
22639,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2957,
17324,
12,
2909,
10497,
7358,
13,
202,
95,
202,
202,
474,
8526,
26198,
33,
7358,
18,
588,
23263,
5621,
202,
202,
474,
90,
28657,
474,
21433,
26198,
63,
26313,
5772,
6625,
19,
10395,
1769,
202,
202,
2957,
71,
33,
2704,
2957,
12,
26198,
63,
5879,
6487,
26198,
63,
29500,
6487,
26198,
63,
14618,
1821,
6487,
26198,
63,
26313,
19226,
202,
202,
952,
1318,
33,
2704,
2957,
17324,
1318,
12,
2211,
16,
26198,
16,
90,
1769,
202,
202,
4057,
33,
2704,
2957,
25863,
12,
952,
1318,
1769,
202,
202,
2170,
1745,
8485,
33,
9565,
18,
588,
1350,
8485,
5621,
202,
202,
2738,
14388,
5621,
202,
202,
2738,
21824,
12,
90,
1769,
202,
202,
2738,
1528,
29521,
2
] |
||
MoveStep step = (MoveStep)temp.get(i);
|
MoveStep step = (MoveStep)temp.elementAt(i);
|
public void compile(Game g, Entity en) { this.game = g; this.entity = en; Vector temp = new Vector(steps); steps.clear(); for (int i = 0; i < temp.size(); i++) { MoveStep step = (MoveStep)temp.get(i); if (step.getTarget(game) != null) { step = new MoveStep(this, step.getType(), step.getTarget(game)); } else { step = new MoveStep(this, step.getType()); } this.addStep(step); } compileLastStep(); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/d47b6b0f26db6c789071d490ab22fcf703f6e9f4/MovePath.java/buggy/megamek/src/megamek/common/MovePath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4074,
12,
12496,
314,
16,
3887,
570,
13,
288,
3639,
333,
18,
13957,
273,
314,
31,
3639,
333,
18,
1096,
273,
570,
31,
3639,
5589,
1906,
273,
394,
5589,
12,
8986,
1769,
3639,
6075,
18,
8507,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1906,
18,
1467,
5621,
277,
27245,
288,
5411,
9933,
4160,
2235,
273,
261,
7607,
4160,
13,
5814,
18,
2956,
861,
12,
77,
1769,
5411,
309,
261,
4119,
18,
588,
2326,
12,
13957,
13,
480,
446,
13,
288,
7734,
2235,
273,
394,
9933,
4160,
12,
2211,
16,
2235,
18,
588,
559,
9334,
2235,
18,
588,
2326,
12,
13957,
10019,
5411,
289,
469,
288,
7734,
2235,
273,
394,
9933,
4160,
12,
2211,
16,
2235,
18,
588,
559,
10663,
5411,
289,
5411,
333,
18,
1289,
4160,
12,
4119,
1769,
3639,
289,
202,
202,
11100,
3024,
4160,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4074,
12,
12496,
314,
16,
3887,
570,
13,
288,
3639,
333,
18,
13957,
273,
314,
31,
3639,
333,
18,
1096,
273,
570,
31,
3639,
5589,
1906,
273,
394,
5589,
12,
8986,
1769,
3639,
6075,
18,
8507,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1906,
18,
1467,
5621,
277,
27245,
288,
5411,
9933,
4160,
2235,
273,
261,
7607,
4160,
13,
5814,
18,
2956,
861,
12,
77,
1769,
5411,
309,
261,
4119,
18,
588,
2326,
12,
13957,
13,
480,
446,
13,
288,
7734,
2235,
273,
394,
9933,
4160,
12,
2211,
16,
2235,
18,
588,
559,
9334,
2235,
18,
588,
2326,
12,
13957,
10019,
5411,
289,
469,
288,
7734,
2235,
273,
394,
9933,
4160,
12,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.