rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
if (tabFolder.getTabPosition() == SWT.BOTTOM) {
|
if (folder.getTabFolder().getTabPosition() == SWT.BOTTOM) {
|
public Control[] getTabList(IPresentablePart part) { ArrayList list = new ArrayList(); if (tabFolder.getTabPosition() == SWT.BOTTOM) { if (part.getControl() != null) list.add(part.getControl()); } Control[] tabFolderTabList = tabFolder.getTabList(); for (int i = 0; i < tabFolderTabList.length; i++) { list.add(tabFolderTabList[i]); } if (tabFolder.getTabPosition() == SWT.TOP) { if (part.getControl() != null) list.add(part.getControl()); } return (Control[]) list.toArray(new Control[list.size()]); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a44e3679b294ff539fce71b7e835499b2c444fa7/TabbedStackPresentation.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/TabbedStackPresentation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8888,
8526,
3181,
378,
682,
12,
2579,
1581,
429,
1988,
1087,
13,
288,
3639,
2407,
666,
273,
394,
2407,
5621,
3639,
309,
261,
5609,
18,
588,
5661,
3899,
7675,
588,
5661,
2555,
1435,
422,
348,
8588,
18,
28891,
13,
288,
5411,
309,
261,
2680,
18,
588,
3367,
1435,
480,
446,
13,
7734,
666,
18,
1289,
12,
2680,
18,
588,
3367,
10663,
3639,
289,
3639,
8888,
8526,
3246,
3899,
5661,
682,
273,
3246,
3899,
18,
588,
5661,
682,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3246,
3899,
5661,
682,
18,
2469,
31,
277,
27245,
288,
5411,
666,
18,
1289,
12,
7032,
3899,
5661,
682,
63,
77,
19226,
3639,
289,
3639,
309,
261,
7032,
3899,
18,
588,
5661,
2555,
1435,
422,
348,
8588,
18,
10462,
13,
288,
5411,
309,
261,
2680,
18,
588,
3367,
1435,
480,
446,
13,
7734,
666,
18,
1289,
12,
2680,
18,
588,
3367,
10663,
3639,
289,
3639,
327,
261,
3367,
63,
5717,
666,
18,
31447,
12,
2704,
8888,
63,
1098,
18,
1467,
1435,
19226,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8888,
8526,
3181,
378,
682,
12,
2579,
1581,
429,
1988,
1087,
13,
288,
3639,
2407,
666,
273,
394,
2407,
5621,
3639,
309,
261,
5609,
18,
588,
5661,
3899,
7675,
588,
5661,
2555,
1435,
422,
348,
8588,
18,
28891,
13,
288,
5411,
309,
261,
2680,
18,
588,
3367,
1435,
480,
446,
13,
7734,
666,
18,
1289,
12,
2680,
18,
588,
3367,
10663,
3639,
289,
3639,
8888,
8526,
3246,
3899,
5661,
682,
273,
3246,
3899,
18,
588,
5661,
682,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3246,
3899,
5661,
682,
18,
2469,
31,
277,
27245,
288,
5411,
666,
18,
1289,
12,
7032,
3899,
5661,
682,
63,
77,
19226,
3639,
289,
3639,
309,
261,
7032,
3899,
2
] |
+ (offset + len -1) + "]" );
|
+ (offset + len -1) + ']');
|
public RAOutputStream(String pref) throws IOException { raf = new RandomAccessFile(file, "rw"); raf.seek(offset + localOffset); println(" -- Created new OutputStream [" + offset + ", " + (offset + len -1) + "]" ); }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/62fd59041864b4ed1f43adc676de6bfb5ea977f3/RandomAccessFileBucket.java/buggy/src/freenet/support/io/RandomAccessFileBucket.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
26880,
4632,
12,
780,
11307,
13,
1216,
1860,
288,
5411,
24671,
273,
394,
8072,
26933,
12,
768,
16,
315,
21878,
8863,
5411,
24671,
18,
16508,
12,
3348,
397,
1191,
2335,
1769,
5411,
3785,
2932,
1493,
12953,
394,
8962,
8247,
397,
1384,
397,
3104,
315,
5397,
397,
261,
3348,
397,
562,
300,
21,
13,
397,
8641,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
26880,
4632,
12,
780,
11307,
13,
1216,
1860,
288,
5411,
24671,
273,
394,
8072,
26933,
12,
768,
16,
315,
21878,
8863,
5411,
24671,
18,
16508,
12,
3348,
397,
1191,
2335,
1769,
5411,
3785,
2932,
1493,
12953,
394,
8962,
8247,
397,
1384,
397,
3104,
315,
5397,
397,
261,
3348,
397,
562,
300,
21,
13,
397,
8641,
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
] |
});
|
private void addControlListeners() { control.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { dispose(); } }); control.addFocusListener(new FocusListener() { public void focusGained(FocusEvent event) { hasFocus = true; if (showOnlyOnFocus) { update(); } } public void focusLost(FocusEvent event) { hasFocus = false; if (showOnlyOnFocus) { update(); } } }); // Listener for painting the decoration paintListener = new PaintListener() { public void paintControl(PaintEvent event) { Control control = (Control) event.widget; Rectangle rect = getDecorationRectangle(control); if (shouldShowDecoration()) { event.gc.drawImage(decoration.getImage(), rect.x, rect.y); } } }; // Listener for tracking the end of a hover. Only installed // after a hover begins. mouseMoveListener = new MouseMoveListener() { public void mouseMove(MouseEvent event) { if (showHover) { if (!decorationRectangle.contains(event.x, event.y)) { hideHover(); // No need to listen any longer printRemoveListener(event.widget, "MOUSEMOVE"); //$NON-NLS-1$ ((Control) event.widget) .removeMouseMoveListener(mouseMoveListener); moveListeningTarget = null; } } } }; // Listener for tracking the beginning of a hover. Always installed. mouseListener = new MouseTrackListener() { public void mouseExit(MouseEvent event) { // Just in case we didn't catch it before. Control target = (Control) event.widget; if (target == moveListeningTarget) { printRemoveListener(target, "MOUSEMOVE"); //$NON-NLS-1$ target.removeMouseMoveListener(mouseMoveListener); moveListeningTarget = null; } hideHover(); } public void mouseHover(MouseEvent event) { if (showHover) { decorationRectangle = getDecorationRectangle((Control) event.widget); if (decorationRectangle.contains(event.x, event.y)) { showHoverText(decoration.getDescription()); Control target = (Control) event.widget; if (moveListeningTarget == null) { printAddListener(target, "MOUSEMOVE"); //$NON-NLS-1$ target.addMouseMoveListener(mouseMoveListener); moveListeningTarget = target; } else if (target != moveListeningTarget) { printRemoveListener(moveListeningTarget, "MOUSEMOVE"); //$NON-NLS-1$ moveListeningTarget .removeMouseMoveListener(mouseMoveListener); printAddListener(target, "MOUSEMOVE"); //$NON-NLS-1$ target.addMouseMoveListener(mouseMoveListener); moveListeningTarget = target; } else { // It is already installed on this control. } } } } public void mouseEnter(MouseEvent event) { // Nothing to do until a hover occurs. } }; // We are never quite sure which parent in the control hierarchy // is providing the margin space, so hook all the way up. Control c = control.getParent(); while (c != null) { printAddListener(c, "PAINT"); //$NON-NLS-1$ c.addPaintListener(paintListener); printAddListener(c, "MOUSE"); //$NON-NLS-1$ c.addMouseTrackListener(mouseListener); c.redraw(); if (c instanceof Shell) break; c = c.getParent(); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1cb851df6a7e7bfaedd77aa3cd8ad207bc20c121/ControlDecoration.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
3367,
5583,
1435,
288,
202,
202,
7098,
18,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
871,
13,
288,
9506,
202,
2251,
4150,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
7098,
18,
1289,
9233,
2223,
12,
2704,
478,
4560,
2223,
1435,
288,
1082,
202,
482,
918,
7155,
43,
8707,
12,
9233,
1133,
871,
13,
288,
9506,
202,
5332,
9233,
273,
638,
31,
9506,
202,
430,
261,
4500,
3386,
1398,
9233,
13,
288,
6862,
202,
2725,
5621,
9506,
202,
97,
1082,
202,
97,
1082,
202,
482,
918,
7155,
19024,
12,
9233,
1133,
871,
13,
288,
9506,
202,
5332,
9233,
273,
629,
31,
9506,
202,
430,
261,
4500,
3386,
1398,
9233,
13,
288,
6862,
202,
2725,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
10652,
364,
12574,
310,
326,
29217,
202,
202,
84,
1598,
2223,
273,
394,
30001,
2223,
1435,
288,
1082,
202,
482,
918,
12574,
3367,
12,
12699,
1133,
871,
13,
288,
9506,
202,
3367,
3325,
273,
261,
3367,
13,
871,
18,
6587,
31,
9506,
202,
19463,
4917,
273,
336,
7859,
367,
19463,
12,
7098,
1769,
9506,
202,
430,
261,
13139,
5706,
7859,
367,
10756,
288,
6862,
202,
2575,
18,
13241,
18,
9446,
2040,
12,
11880,
367,
18,
588,
2040,
9334,
4917,
18,
92,
16,
4917,
18,
93,
1769,
9506,
202,
97,
1082,
202,
97,
202,
202,
20451,
202,
202,
759,
10652,
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,
527,
3367,
5583,
1435,
288,
202,
202,
7098,
18,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
871,
13,
288,
9506,
202,
2251,
4150,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
7098,
18,
1289,
9233,
2223,
12,
2704,
478,
4560,
2223,
1435,
288,
1082,
202,
482,
918,
7155,
43,
8707,
12,
9233,
1133,
871,
13,
288,
9506,
202,
5332,
9233,
273,
638,
31,
9506,
202,
430,
261,
4500,
3386,
1398,
9233,
13,
288,
6862,
202,
2725,
5621,
9506,
202,
97,
1082,
202,
97,
1082,
202,
482,
918,
7155,
19024,
12,
9233,
1133,
871,
13,
288,
9506,
202,
5332,
9233,
2
] |
|
public double asin(double d) {
|
public static double asin(double d) {
|
public double asin(double d) { if ((d != d) || (d > 1.0) || (d < -1.0)) return Double.NaN; return Math.asin(d); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/f10587a5210f9918f41b86d96f3795e724f30b72/NativeMath.java/clean/js/rhino/org/mozilla/javascript/NativeMath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
487,
267,
12,
9056,
302,
13,
288,
3639,
309,
14015,
72,
480,
302,
13,
1171,
747,
261,
72,
405,
404,
18,
20,
13,
7734,
747,
261,
72,
411,
300,
21,
18,
20,
3719,
5411,
327,
3698,
18,
21172,
31,
3639,
327,
2361,
18,
345,
267,
12,
72,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
487,
267,
12,
9056,
302,
13,
288,
3639,
309,
14015,
72,
480,
302,
13,
1171,
747,
261,
72,
405,
404,
18,
20,
13,
7734,
747,
261,
72,
411,
300,
21,
18,
20,
3719,
5411,
327,
3698,
18,
21172,
31,
3639,
327,
2361,
18,
345,
267,
12,
72,
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
] |
code.emitPushInt(args.length - fix_arg_count);
|
code.emitPushInt(args.length - startArg - fix_arg_count);
|
void compileArgs(Expression[] args, Type thisType, Compilation comp) { boolean variable = takesVarArgs(); String name = getName(); Type arg_type = null; gnu.bytecode.CodeAttr code = comp.getCode(); int skipArg = thisType == Type.void_type ? 1 : 0; int arg_count = argTypes.length - skipArg; if (takesContext()) arg_count--; boolean is_static = thisType == null || skipArg != 0; int fix_arg_count = variable ? arg_count - 1 : args.length; Declaration argDecl = source == null ? null : source.firstDecl(); if (argDecl != null && argDecl.isThisParameter()) argDecl = argDecl.nextDecl(); for (int i = 0; ; ++i) { if (variable && i == fix_arg_count) { arg_type = argTypes[arg_count-1+skipArg]; if (arg_type == Compilation.scmListType) { gnu.kawa.functions.MakeList.compile(args, i, comp); break; } code.emitPushInt(args.length - fix_arg_count); arg_type = ((ArrayType) arg_type).getComponentType(); code.emitNewArray(arg_type); } if (i >= args.length) break; if (i >= fix_arg_count) { code.emitDup(1); // dup array. code.emitPushInt(i - fix_arg_count); } else arg_type = argDecl != null && (is_static || i > 0) ? argDecl.getType() : is_static ? argTypes[i + skipArg] : i==0 ? thisType : argTypes[i-1]; comp.usedClass(arg_type); Target target = source == null ? CheckedTarget.getInstance(arg_type, name, i+1) : CheckedTarget.getInstance(arg_type, source, i); args[i].compileNotePosition(comp, target, args[i]); if (i >= fix_arg_count) code.emitArrayStore(arg_type); if (argDecl != null && (is_static || i > 0)) argDecl = argDecl.nextDecl(); } }
|
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
4074,
2615,
12,
2300,
8526,
833,
16,
1412,
333,
559,
16,
22416,
1161,
13,
288,
565,
1250,
2190,
273,
5530,
1537,
2615,
5621,
565,
514,
508,
273,
1723,
5621,
565,
1412,
1501,
67,
723,
273,
446,
31,
565,
314,
13053,
18,
1637,
16651,
18,
1085,
3843,
981,
273,
1161,
18,
588,
1085,
5621,
565,
509,
2488,
4117,
273,
333,
559,
422,
1412,
18,
6459,
67,
723,
692,
404,
294,
374,
31,
565,
509,
1501,
67,
1883,
273,
30973,
18,
2469,
300,
2488,
4117,
31,
565,
309,
261,
88,
3223,
1042,
10756,
1377,
1501,
67,
1883,
413,
31,
565,
1250,
353,
67,
3845,
273,
333,
559,
422,
446,
747,
2488,
4117,
480,
374,
31,
565,
509,
2917,
67,
3175,
67,
1883,
273,
2190,
692,
1501,
67,
1883,
300,
404,
294,
833,
18,
2469,
31,
565,
16110,
4302,
1501,
3456,
273,
1084,
422,
446,
692,
446,
294,
1084,
18,
3645,
3456,
5621,
565,
309,
261,
3175,
3456,
480,
446,
597,
1501,
3456,
18,
291,
2503,
1662,
10756,
1377,
1501,
3456,
273,
1501,
3456,
18,
4285,
3456,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
274,
965,
77,
13,
1377,
288,
3639,
309,
261,
6105,
597,
277,
422,
2917,
67,
3175,
67,
1883,
13,
1850,
288,
5411,
1501,
67,
723,
273,
30973,
63,
3175,
67,
1883,
17,
21,
15,
7457,
4117,
15533,
202,
565,
309,
261,
3175,
67,
723,
422,
22416,
18,
1017,
81,
19366,
13,
202,
1377,
288,
202,
202,
1600,
89,
18,
79,
2219,
69,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
4074,
2615,
12,
2300,
8526,
833,
16,
1412,
333,
559,
16,
22416,
1161,
13,
288,
565,
1250,
2190,
273,
5530,
1537,
2615,
5621,
565,
514,
508,
273,
1723,
5621,
565,
1412,
1501,
67,
723,
273,
446,
31,
565,
314,
13053,
18,
1637,
16651,
18,
1085,
3843,
981,
273,
1161,
18,
588,
1085,
5621,
565,
509,
2488,
4117,
273,
333,
559,
422,
1412,
18,
6459,
67,
723,
692,
404,
294,
374,
31,
565,
509,
1501,
67,
1883,
273,
30973,
18,
2469,
300,
2488,
4117,
31,
565,
309,
261,
88,
3223,
1042,
10756,
1377,
1501,
67,
1883,
413,
31,
565,
1250,
353,
67,
3845,
273,
333,
559,
422,
446,
747,
2488,
4117,
480,
374,
31,
565,
509,
2917,
67,
2
] |
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException
|
public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
|
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { if (methodId == Id_constructor) { return make(cx, scope, f, args); } else if (methodId == Id_toString) { return js_toString(thisObj); } else if (methodId == Id_toSource) { return js_toSource(cx, scope, thisObj); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeError.java/clean/js/rhino/src/org/mozilla/javascript/NativeError.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
309,
261,
2039,
548,
422,
3124,
67,
12316,
13,
288,
7734,
327,
1221,
12,
71,
92,
16,
2146,
16,
284,
16,
833,
1769,
5411,
289,
469,
309,
261,
2039,
548,
422,
3124,
67,
10492,
13,
288,
7734,
327,
3828,
67,
10492,
12,
2211,
2675,
1769,
5411,
289,
469,
309,
261,
2039,
548,
422,
3124,
67,
869,
1830,
13,
288,
7734,
327,
3828,
67,
869,
1830,
12,
71,
92,
16,
2146,
16,
15261,
1769,
5411,
289,
3639,
289,
3639,
327,
2240,
18,
4177,
1305,
12,
2039,
548,
16,
284,
16,
9494,
16,
2146,
16,
15261,
16,
833,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
309,
261,
2039,
548,
422,
3124,
67,
12316,
13,
288,
7734,
327,
1221,
12,
71,
92,
16,
2146,
16,
284,
16,
833,
1769,
5411,
289,
469,
309,
261,
2039,
548,
422,
3124,
67,
10492,
13,
288,
7734,
327,
3828,
67,
10492,
12,
2211,
2675,
1769,
5411,
289,
469,
309,
261,
2039,
548,
422,
3124,
67,
869,
1830,
13,
288,
7734,
327,
3828,
67,
869,
1830,
12,
71,
92,
16,
2146,
16,
15261,
1769,
5411,
289,
3639,
2
] |
i.next(); while(!i.atEnd()) { n.notify(i.current()); i.next();
|
while(i.hasNext()) { GlobalModelListener cur = (GlobalModelListener) i.next(); n.notifyListener(cur);
|
private void _notifyListeners(EventNotifier n) { ModelList<GlobalModelListener>.Iterator i = _listeners.getIterator(); // Frustrating need to move iterator out of initial position before iterating. i.next(); while(!i.atEnd()) { n.notify(i.current()); i.next(); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/a937ccbbfe3e2271b14c781e19a341556df45efe/GlobalModel.java/buggy/drjava/src/edu/rice/cs/drjava/GlobalModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
12336,
5583,
12,
1133,
14889,
290,
13,
288,
565,
3164,
682,
32,
5160,
1488,
2223,
18652,
3198,
277,
273,
389,
16072,
18,
588,
3198,
5621,
3639,
368,
478,
8010,
313,
1776,
1608,
358,
3635,
2775,
596,
434,
2172,
1754,
1865,
13099,
18,
565,
277,
18,
4285,
5621,
565,
1323,
12,
5,
77,
18,
270,
1638,
10756,
288,
1377,
290,
18,
12336,
12,
77,
18,
2972,
10663,
1377,
277,
18,
4285,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
12336,
5583,
12,
1133,
14889,
290,
13,
288,
565,
3164,
682,
32,
5160,
1488,
2223,
18652,
3198,
277,
273,
389,
16072,
18,
588,
3198,
5621,
3639,
368,
478,
8010,
313,
1776,
1608,
358,
3635,
2775,
596,
434,
2172,
1754,
1865,
13099,
18,
565,
277,
18,
4285,
5621,
565,
1323,
12,
5,
77,
18,
270,
1638,
10756,
288,
1377,
290,
18,
12336,
12,
77,
18,
2972,
10663,
1377,
277,
18,
4285,
5621,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(firstWarning!=null) firstWarning.setNextWarning(new SQLWarning(msg)); else firstWarning = new SQLWarning(msg);
|
if(firstWarning!=null) firstWarning.setNextWarning(new SQLWarning(msg)); else firstWarning = new SQLWarning(msg);
|
public void addWarning(String msg) { DriverManager.println(msg); // Add the warning to the chain if(firstWarning!=null) firstWarning.setNextWarning(new SQLWarning(msg)); else firstWarning = new SQLWarning(msg); // Now check for some specific messages // This is obsolete in 6.5, but I've left it in here so if we need to use this // technique again, we'll know where to place it. // // This is generated by the SQL "show datestyle" //if(msg.startsWith("NOTICE:") && msg.indexOf("DateStyle")>0) { //// 13 is the length off "DateStyle is " //msg = msg.substring(msg.indexOf("DateStyle is ")+13); // //for(int i=0;i<dateStyles.length;i+=2) //if(msg.startsWith(dateStyles[i])) //currentDateStyle=i+1; // this is the index of the format //} }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/721d3603b02b0b9a8010214e0dc2356f60ef94ba/Connection.java/clean/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6210,
12,
780,
1234,
13,
565,
288,
202,
4668,
1318,
18,
8222,
12,
3576,
1769,
202,
759,
1436,
326,
3436,
358,
326,
2687,
202,
430,
12,
3645,
6210,
5,
33,
2011,
13,
202,
565,
1122,
6210,
18,
542,
2134,
6210,
12,
2704,
3063,
6210,
12,
3576,
10019,
202,
12107,
202,
565,
1122,
6210,
273,
394,
3063,
6210,
12,
3576,
1769,
202,
759,
4494,
866,
364,
2690,
2923,
2743,
202,
759,
1220,
353,
27191,
316,
1666,
18,
25,
16,
1496,
467,
8081,
2002,
518,
316,
2674,
1427,
309,
732,
1608,
358,
999,
333,
202,
759,
17734,
2161,
3382,
16,
732,
5614,
5055,
1625,
358,
3166,
518,
18,
202,
759,
202,
759,
1220,
353,
4374,
635,
326,
3063,
315,
4500,
1150,
19706,
6,
202,
759,
430,
12,
3576,
18,
17514,
1190,
2932,
20559,
2773,
13,
597,
1234,
18,
31806,
2932,
1626,
2885,
7923,
34,
20,
13,
288,
202,
1307,
5958,
353,
326,
769,
3397,
315,
1626,
2885,
353,
315,
202,
759,
3576,
273,
1234,
18,
28023,
12,
3576,
18,
31806,
2932,
1626,
2885,
353,
9369,
15,
3437,
1769,
202,
759,
202,
759,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
712,
9725,
18,
2469,
31,
77,
15,
33,
22,
13,
202,
759,
430,
12,
3576,
18,
17514,
1190,
12,
712,
9725,
63,
77,
22643,
202,
759,
2972,
1626,
2885,
33,
77,
15,
21,
31,
368,
333,
353,
326,
770,
434,
326,
740,
202,
759,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6210,
12,
780,
1234,
13,
565,
288,
202,
4668,
1318,
18,
8222,
12,
3576,
1769,
202,
759,
1436,
326,
3436,
358,
326,
2687,
202,
430,
12,
3645,
6210,
5,
33,
2011,
13,
202,
565,
1122,
6210,
18,
542,
2134,
6210,
12,
2704,
3063,
6210,
12,
3576,
10019,
202,
12107,
202,
565,
1122,
6210,
273,
394,
3063,
6210,
12,
3576,
1769,
202,
759,
4494,
866,
364,
2690,
2923,
2743,
202,
759,
1220,
353,
27191,
316,
1666,
18,
25,
16,
1496,
467,
8081,
2002,
518,
316,
2674,
1427,
309,
732,
1608,
358,
999,
333,
202,
759,
17734,
2161,
3382,
16,
732,
5614,
5055,
1625,
358,
3166,
518,
18,
202,
759,
202,
759,
1220,
353,
4374,
635,
326,
2
] |
Scriptable scope = getTopLevelScope(this); return cx.decompileScript(thisScript, scope, 0);
|
return cx.decompileScript(thisScript, getTopLevelScope(scope), 0);
|
private Object js_toString(Context cx, Object[] args) { Script thisScript = script; if (thisScript == null) { thisScript = this; } Scriptable scope = getTopLevelScope(this); return cx.decompileScript(thisScript, scope, 0); }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/37375e32cf16d65268effed2bfea1cc25d1c3dcf/NativeScript.java/clean/js/rhino/src/org/mozilla/javascript/NativeScript.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
10492,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
565,
288,
3639,
7739,
333,
3651,
273,
2728,
31,
3639,
309,
261,
2211,
3651,
422,
446,
13,
288,
333,
3651,
273,
333,
31,
289,
3639,
22780,
2146,
273,
13729,
2355,
3876,
12,
2211,
1769,
3639,
327,
9494,
18,
323,
11100,
3651,
12,
2211,
3651,
16,
2146,
16,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
10492,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
565,
288,
3639,
7739,
333,
3651,
273,
2728,
31,
3639,
309,
261,
2211,
3651,
422,
446,
13,
288,
333,
3651,
273,
333,
31,
289,
3639,
22780,
2146,
273,
13729,
2355,
3876,
12,
2211,
1769,
3639,
327,
9494,
18,
323,
11100,
3651,
12,
2211,
3651,
16,
2146,
16,
374,
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
] |
org.exist.xquery.parser.XQueryAST tmp402_AST = null; tmp402_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp402_AST);
|
org.exist.xquery.parser.XQueryAST tmp326_AST = null; tmp326_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp326_AST);
|
public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp376_AST = null; tmp376_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp376_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp377_AST = null; tmp377_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp377_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp378_AST = null; tmp378_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp378_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp379_AST = null; tmp379_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp379_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp380_AST = null; tmp380_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp380_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp381_AST = null; tmp381_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp381_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp382_AST = null; tmp382_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp382_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp383_AST = null; tmp383_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp383_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp384_AST = null; tmp384_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp384_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp385_AST = null; tmp385_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp385_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp386_AST = null; tmp386_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp386_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp387_AST = null; tmp387_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp387_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp388_AST = null; tmp388_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp388_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp389_AST = null; tmp389_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp389_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 127: { org.exist.xquery.parser.XQueryAST tmp390_AST = null; tmp390_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp390_AST); match(127); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp391_AST = null; tmp391_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp391_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp392_AST = null; tmp392_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp392_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp393_AST = null; tmp393_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp393_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 139: { org.exist.xquery.parser.XQueryAST tmp394_AST = null; tmp394_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp394_AST); match(139); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 144: { org.exist.xquery.parser.XQueryAST tmp395_AST = null; tmp395_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp395_AST); match(144); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 145: { org.exist.xquery.parser.XQueryAST tmp396_AST = null; tmp396_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp396_AST); match(145); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 140: { org.exist.xquery.parser.XQueryAST tmp397_AST = null; tmp397_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp397_AST); match(140); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp398_AST = null; tmp398_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp398_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp399_AST = null; tmp399_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp399_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp400_AST = null; tmp400_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp400_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp401_AST = null; tmp401_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp401_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case VERSION: { org.exist.xquery.parser.XQueryAST tmp402_AST = null; tmp402_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp402_AST); match(VERSION); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case XQUERY: { org.exist.xquery.parser.XQueryAST tmp403_AST = null; tmp403_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp403_AST); match(XQUERY); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp404_AST = null; tmp404_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp404_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp405_AST = null; tmp405_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp405_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp406_AST = null; tmp406_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp406_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp407_AST = null; tmp407_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp407_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp408_AST = null; tmp408_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp408_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp409_AST = null; tmp409_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp409_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp410_AST = null; tmp410_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp410_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp411_AST = null; tmp411_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp411_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp412_AST = null; tmp412_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp412_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp413_AST = null; tmp413_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp413_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp414_AST = null; tmp414_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp414_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp415_AST = null; tmp415_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp415_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp416_AST = null; tmp416_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp416_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp417_AST = null; tmp417_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp417_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp418_AST = null; tmp418_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp418_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp419_AST = null; tmp419_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp419_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp420_AST = null; tmp420_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp420_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp421_AST = null; tmp421_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp421_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp422_AST = null; tmp422_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp422_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp423_AST = null; tmp423_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp423_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp424_AST = null; tmp424_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp424_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp425_AST = null; tmp425_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp425_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp426_AST = null; tmp426_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp426_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp427_AST = null; tmp427_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp427_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp428_AST = null; tmp428_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp428_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp429_AST = null; tmp429_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp429_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp430_AST = null; tmp430_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp430_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp431_AST = null; tmp431_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp431_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8735,
14149,
67,
9053,
273,
446,
31,
202,
202,
529,
33,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
2956,
30,
202,
202,
95,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
6418,
26,
67,
9053,
273,
446,
31,
1082,
202,
5645,
6418,
26,
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,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
1853,
6418,
26,
67,
9053,
1769,
1082,
202,
1916,
12,
23225,
67,
2956,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
529,
273,
315,
2956,
14432,
1082,
202,
97,
1082,
202,
18898,
14149,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
2972,
9053,
18,
3085,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
18454,
67,
869,
30,
202,
202,
95,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
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,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8735,
14149,
67,
9053,
273,
446,
31,
202,
202,
529,
33,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
2956,
30,
202,
202,
95,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
6418,
26,
67,
9053,
273,
446,
31,
1082,
202,
5645,
6418,
26,
67,
9053,
273,
261,
3341,
18,
2
] |
}
|
private int getDoubleBondedCarbonsCount(AtomContainer ac, org.openscience.cdk.interfaces.Atom atom) { org.openscience.cdk.interfaces.Atom[] neighbours = ac.getConnectedAtoms(atom); Bond bond = null; int cdbcounter = 0; for (int i = 0; i < neighbours.length; i++) { if (neighbours[i].getSymbol().equals("C")) { bond = ac.getBond(neighbours[i], atom); if (!neighbours[i].getFlag(CDKConstants.ISAROMATIC)) { if (bond.getOrder() == 2.0) { cdbcounter += 1; } } } } return cdbcounter; }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/4a5972030c58ddaddae01131565720e9592189d1/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/XLogPDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
16097,
38,
265,
785,
39,
6779,
7008,
1380,
12,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
3179,
13,
288,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
8526,
27662,
273,
1721,
18,
588,
8932,
14280,
12,
7466,
1769,
202,
202,
9807,
8427,
273,
446,
31,
202,
202,
474,
276,
1966,
7476,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
27662,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
11166,
4390,
63,
77,
8009,
588,
5335,
7675,
14963,
2932,
39,
6,
3719,
288,
9506,
202,
26425,
273,
1721,
18,
588,
9807,
12,
11166,
4390,
63,
77,
6487,
3179,
1769,
9506,
202,
430,
16051,
11166,
4390,
63,
77,
8009,
588,
4678,
12,
39,
3398,
2918,
18,
5127,
985,
1872,
11781,
3719,
288,
6862,
202,
430,
261,
26425,
18,
588,
2448,
1435,
422,
576,
18,
20,
13,
288,
25083,
202,
71,
1966,
7476,
1011,
404,
31,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
276,
1966,
7476,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
16097,
38,
265,
785,
39,
6779,
7008,
1380,
12,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
3179,
13,
288,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
8526,
27662,
273,
1721,
18,
588,
8932,
14280,
12,
7466,
1769,
202,
202,
9807,
8427,
273,
446,
31,
202,
202,
474,
276,
1966,
7476,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
27662,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
11166,
4390,
63,
77,
8009,
588,
5335,
7675,
14963,
2932,
39,
6,
3719,
288,
9506,
202,
26425,
273,
1721,
18,
588,
9807,
12,
11166,
2
] |
|
public void unparse(XmlaResponse response) { throw new UnsupportedOperationException();
|
public void unparse(XmlaResponse response) throws XmlaException { throw new XmlaException( CLIENT_FAULT_FC, HSB_UNSUPPORTED_OPERATION_CODE, HSB_UNSUPPORTED_OPERATION_FAULT_FS, new UnsupportedOperationException("MDSCHEMA_SETS"));
|
public void unparse(XmlaResponse response) { throw new UnsupportedOperationException(); }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/41e43f806f666da1ff483ebb20820e61433739e2/RowsetDefinition.java/buggy/src/main/mondrian/xmla/RowsetDefinition.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
640,
2670,
12,
4432,
69,
1064,
766,
13,
288,
5411,
604,
394,
13172,
5621,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
640,
2670,
12,
4432,
69,
1064,
766,
13,
288,
5411,
604,
394,
13172,
5621,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} for(int i=0;i<k;i++) { if(writers[i] != null) writers[i].close(); } for(int i=0;i<n;i++) { if(readers[i] != null) readers[i].close();
|
for (int i = 0; i < checkBlockStatus.length; i++) { buckets[i + k] = checkBlockStatus[i].getData(); if (buckets[i + k] == null) { readers[i + k] = null; } else { readers[i + k] = new DataInputStream(buckets[i + k] .getInputStream()); if (idx < k) packetIndexes[idx++] = i + k; } } if (idx < k) throw new IllegalArgumentException( "Must have at least k packets"); for (int i = 0; i < packetIndexes.length; i++) Logger.minor(this, "[" + i + "] = " + packetIndexes[i]); if (numberToDecode > 0) { for (int offset = 0; offset < blockLength; offset += STRIPE_SIZE) { for (int i = 0; i < k; i++) { int x = packetIndexes[i]; readers[x].readFully(realBuffer, i * STRIPE_SIZE, STRIPE_SIZE); } int[] disposableIndexes = new int[packetIndexes.length]; System.arraycopy(packetIndexes, 0, disposableIndexes, 0, packetIndexes.length); code.decode(packets, disposableIndexes); for (int i = 0; i < k; i++) { if (writers[i] != null) writers[i].write(realBuffer, i * STRIPE_SIZE, STRIPE_SIZE); } } } } finally { for (int i = 0; i < k; i++) { if (writers[i] != null) writers[i].close(); } for (int i = 0; i < n; i++) { if (readers[i] != null) readers[i].close(); }
|
public void realDecode(SplitfileBlock[] dataBlockStatus, SplitfileBlock[] checkBlockStatus, int blockLength, BucketFactory bf) throws IOException { Logger.minor(this, "Doing decode: "+dataBlockStatus.length+" data blocks, "+checkBlockStatus.length+" check blocks, block length "+blockLength+" with "+this, new Exception("debug")); if(dataBlockStatus.length + checkBlockStatus.length != n) throw new IllegalArgumentException(); if(dataBlockStatus.length != k) throw new IllegalArgumentException(); Buffer[] packets = new Buffer[k]; Bucket[] buckets = new Bucket[n]; DataInputStream[] readers = new DataInputStream[n]; OutputStream[] writers = new OutputStream[k]; int numberToDecode = 0; // can be less than n-k byte[] realBuffer = new byte[k * STRIPE_SIZE]; int[] packetIndexes = new int[k]; for(int i=0;i<packetIndexes.length;i++) packetIndexes[i] = -1; int idx = 0; for(int i=0;i<k;i++) packets[i] = new Buffer(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<dataBlockStatus.length;i++) { buckets[i] = dataBlockStatus[i].getData(); if(buckets[i] == null) { buckets[i] = bf.makeBucket(blockLength); writers[i] = buckets[i].getOutputStream(); Logger.minor(this, "writers["+i+"] != null"); readers[i] = null; numberToDecode++; } else { long sz = buckets[i].size(); if(sz < blockLength) { if(i != dataBlockStatus.length-1) throw new IllegalArgumentException("All buckets except the last must be the full size but data bucket "+i+" of "+dataBlockStatus.length+" ("+dataBlockStatus[i]+") is "+sz+" not "+blockLength); if(sz < blockLength) buckets[i] = pad(buckets[i], blockLength, bf, (int) sz); else throw new IllegalArgumentException("Too big: "+sz+" bigger than "+blockLength); } Logger.minor(this, "writers["+i+"] = null (already filled)"); writers[i] = null; readers[i] = new DataInputStream(buckets[i].getInputStream()); packetIndexes[idx++] = i; } } for(int i=0;i<checkBlockStatus.length;i++) { buckets[i+k] = checkBlockStatus[i].getData(); if(buckets[i+k] == null) { readers[i+k] = null; } else { readers[i+k] = new DataInputStream(buckets[i+k].getInputStream()); if(idx < k) packetIndexes[idx++] = i+k; } } if(idx < k) throw new IllegalArgumentException("Must have at least k packets"); for(int i=0;i<packetIndexes.length;i++) Logger.minor(this, "["+i+"] = "+packetIndexes[i]); if(numberToDecode > 0) { // Do the (striped) decode for(int offset=0;offset<blockLength;offset+=STRIPE_SIZE) { // Read the data in first for(int i=0;i<k;i++) { int x = packetIndexes[i]; readers[x].readFully(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } // Do the decode // Not shuffled int[] disposableIndexes = new int[packetIndexes.length]; System.arraycopy(packetIndexes, 0, disposableIndexes, 0, packetIndexes.length); code.decode(packets, disposableIndexes); // packets now contains an array of decoded blocks, in order // Write the data out for(int i=0;i<k;i++) { if(writers[i] != null) writers[i].write(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } } } for(int i=0;i<k;i++) { if(writers[i] != null) writers[i].close(); } for(int i=0;i<n;i++) { if(readers[i] != null) readers[i].close(); } // Set new buckets only after have a successful decode. // Note that the last data bucket will be overwritten padded. for(int i=0;i<dataBlockStatus.length;i++) { Bucket data = buckets[i]; if(data.size() != blockLength) throw new IllegalStateException("Block "+i+": "+data+" : "+dataBlockStatus[i]+" length "+data.size()); dataBlockStatus[i].setData(data); } }
|
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/fbdde7654afdefd24ae4365520a38c1c680248a7/StandardOnionFECCodec.java/buggy/src/freenet/client/StandardOnionFECCodec.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
6615,
12,
5521,
768,
1768,
8526,
501,
1768,
1482,
16,
5385,
768,
1768,
8526,
866,
1768,
1482,
16,
509,
25367,
16,
7408,
1733,
16222,
13,
1216,
1860,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
3244,
310,
2495,
30,
13773,
892,
1768,
1482,
18,
2469,
9078,
501,
4398,
16,
13773,
1893,
1768,
1482,
18,
2469,
9078,
866,
4398,
16,
1203,
769,
13773,
2629,
1782,
9078,
598,
13773,
2211,
16,
394,
1185,
2932,
4148,
7923,
1769,
202,
202,
430,
12,
892,
1768,
1482,
18,
2469,
397,
866,
1768,
1482,
18,
2469,
480,
290,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
430,
12,
892,
1768,
1482,
18,
2469,
480,
417,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
1892,
8526,
12640,
273,
394,
3525,
63,
79,
15533,
202,
202,
4103,
8526,
9169,
273,
394,
7408,
63,
82,
15533,
202,
202,
751,
4348,
8526,
16527,
273,
394,
29382,
63,
82,
15533,
202,
202,
4632,
8526,
18656,
273,
394,
8962,
63,
79,
15533,
202,
202,
474,
1300,
774,
6615,
273,
374,
31,
368,
848,
506,
5242,
2353,
290,
17,
79,
9506,
202,
7229,
8526,
2863,
1892,
273,
394,
1160,
63,
79,
380,
2347,
2259,
1423,
67,
4574,
15533,
9506,
202,
474,
8526,
4414,
8639,
273,
394,
509,
63,
79,
15533,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
11482,
8639,
18,
2469,
31,
77,
27245,
1082,
202,
11482,
8639,
63,
77,
65,
273,
300,
21,
31,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
6615,
12,
5521,
768,
1768,
8526,
501,
1768,
1482,
16,
5385,
768,
1768,
8526,
866,
1768,
1482,
16,
509,
25367,
16,
7408,
1733,
16222,
13,
1216,
1860,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
3244,
310,
2495,
30,
13773,
892,
1768,
1482,
18,
2469,
9078,
501,
4398,
16,
13773,
1893,
1768,
1482,
18,
2469,
9078,
866,
4398,
16,
1203,
769,
13773,
2629,
1782,
9078,
598,
13773,
2211,
16,
394,
1185,
2932,
4148,
7923,
1769,
202,
202,
430,
12,
892,
1768,
1482,
18,
2469,
397,
866,
1768,
1482,
18,
2469,
480,
290,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
430,
12,
892,
1768,
1482,
18,
2469,
480,
417,
13,
1082,
2
] |
if(floater.element == box.element) { continue; }
|
if (floater.element == box.element) { continue; }
|
public static Box newGetLeftFloatX(Box box, List left_floats, BlockFormattingContext bfc) { //Uu.p("in new bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats //int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); //Uu.p("content = " + box.element); //Uu.p("testing against float = " + floater + " " + floater.hashCode()); //Uu.p("content = " + floater.element); Rectangle fr = new Rectangle(floater.x,floater.y,floater.width,floater.height); //Uu.p("float rect: " + fr); // get the point where the float was added Point fpt = bfc.getOffset(floater); // get the origin of this BFC //Uu.p("fpt = " + fpt);// + " lpt = " + lpt); // convert to abs coords fr.translate(fpt.x,fpt.y); //Uu.p("float rect: " + fr); //x = floater.x + floater.width; // skip if the box and the floater have the same element. this means they are really the same box // this is a hack to account for when the same float is run through twice. i don't know // why this is happening. hopefully we can fix it in the future. if(floater.element == box.element) { continue; } if (fr.y + fr.height > box.y) { //Uu.p("float["+i+"] blocks the box vertically"); return floater; } else { //Uu.p("float["+i+"] doesn't block. moving to next"); } } //Uu.p("returning null"); return null; }
|
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bb9b81ee7be6601404028f6f9847b6ba41abcd98/FloatManager.java/buggy/src/java/org/xhtmlrenderer/layout/FloatManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8549,
394,
967,
3910,
4723,
60,
12,
3514,
3919,
16,
987,
2002,
67,
5659,
87,
16,
3914,
23974,
1042,
324,
7142,
13,
288,
202,
202,
759,
57,
89,
18,
84,
2932,
267,
394,
324,
7142,
18,
588,
3910,
4723,
60,
12,
315,
397,
3919,
397,
315,
262,
315,
1769,
3639,
368,
1056,
12727,
3059,
326,
19172,
3639,
368,
474,
619,
273,
374,
31,
3639,
364,
261,
474,
277,
273,
2002,
67,
5659,
87,
18,
1467,
1435,
300,
404,
31,
277,
1545,
374,
31,
277,
413,
13,
288,
5411,
8549,
1431,
264,
273,
261,
3514,
13,
2002,
67,
5659,
87,
18,
588,
12,
77,
1769,
5411,
368,
57,
89,
18,
84,
2932,
2147,
273,
315,
397,
3919,
1769,
1082,
202,
759,
57,
89,
18,
84,
2932,
1745,
273,
315,
397,
3919,
18,
2956,
1769,
5411,
368,
57,
89,
18,
84,
2932,
3813,
310,
5314,
1431,
273,
315,
397,
1431,
264,
397,
315,
315,
397,
1431,
264,
18,
2816,
1085,
10663,
1082,
202,
759,
57,
89,
18,
84,
2932,
1745,
273,
315,
397,
1431,
264,
18,
2956,
1769,
1082,
202,
19463,
3812,
273,
394,
13264,
12,
5659,
264,
18,
92,
16,
5659,
264,
18,
93,
16,
5659,
264,
18,
2819,
16,
5659,
264,
18,
4210,
1769,
1082,
202,
759,
57,
89,
18,
84,
2932,
5659,
4917,
30,
315,
397,
3812,
1769,
1082,
202,
759,
336,
326,
1634,
1625,
326,
1431,
1703,
3096,
5411,
4686,
284,
337,
273,
324,
7142,
18,
588,
2335,
12,
5659,
264,
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,
8549,
394,
967,
3910,
4723,
60,
12,
3514,
3919,
16,
987,
2002,
67,
5659,
87,
16,
3914,
23974,
1042,
324,
7142,
13,
288,
202,
202,
759,
57,
89,
18,
84,
2932,
267,
394,
324,
7142,
18,
588,
3910,
4723,
60,
12,
315,
397,
3919,
397,
315,
262,
315,
1769,
3639,
368,
1056,
12727,
3059,
326,
19172,
3639,
368,
474,
619,
273,
374,
31,
3639,
364,
261,
474,
277,
273,
2002,
67,
5659,
87,
18,
1467,
1435,
300,
404,
31,
277,
1545,
374,
31,
277,
413,
13,
288,
5411,
8549,
1431,
264,
273,
261,
3514,
13,
2002,
67,
5659,
87,
18,
588,
12,
77,
1769,
5411,
368,
57,
89,
18,
84,
2932,
2147,
273,
315,
397,
2
] |
public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) {
|
public void readImpl(final PipelineContext pipelineContext, final ContentHandler contentHandler) { final ContentHandler debugContentHandler = contentHandler; readInputAsSAX(pipelineContext, INPUT_CONFIG, new ForwardingContentHandler(debugContentHandler) { private Locator locator; private TransformerURIResolver uriResolver = new TransformerURIResolver(XIncludeProcessor.this, pipelineContext, INPUT_CONFIG); private NamespaceSupport2 namespaceSupport = new NamespaceSupport2(); private int level; private boolean inInclude; private int includeLevel; public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { namespaceSupport.pushContext(); if (XMLConstants.XINCLUDE_URI.equals(uri) || XMLConstants.OLD_XINCLUDE_URI.equals(uri)) { if (XMLConstants.OLD_XINCLUDE_URI.equals(uri)) logger.warn("Using incorrect XInclude namespace URI: '" + uri + "'; should use '" + XMLConstants.XINCLUDE_URI + "' at " + new LocationData(locator).toString()); if ("include".equals(localname)) { inInclude = true; includeLevel = level; final String href = attributes.getValue("href"); final String parse = attributes.getValue("parse"); if (parse != null && !parse.equals("xml")) throw new ValidationException("Invalid 'parse' attribute value: " + parse, new LocationData(locator)); try { final SAXSource source = (SAXSource) uriResolver.resolve(href, locator.getSystemId()); final XMLReader xmlReader = source.getXMLReader(); xmlReader.setContentHandler(new ForwardingContentHandler(debugContentHandler) { private int nestedIncludeLevel; public void startDocument() { } public void endDocument() { } public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { if (nestedIncludeLevel == 0) { sendStartPrefixMappings(); final AttributesImpl newAttributes = new AttributesImpl(attributes); newAttributes.addAttribute(XMLConstants.XML_URI, "base", "xml:base", ContentHandlerHelper.CDATA, source.getSystemId()); attributes = newAttributes; } super.startElement(uri, localname, qName, attributes); nestedIncludeLevel++; } public void endElement(String uri, String localname, String qName) throws SAXException { nestedIncludeLevel--; super.endElement(uri, localname, qName); if (nestedIncludeLevel == 0) sendEndPrefixMappings(); } }); xmlReader.parse(new InputSource()); } catch (Exception e) { throw new OXFException(e); } } else if ("fallback".equals(localname)) { } else { throw new ValidationException("Invalid XInclude element: " + localname, new LocationData(locator)); } } else { super.startElement(uri, localname, qName, attributes); } level++; } private void sendStartPrefixMappings() throws SAXException { for (Enumeration e = namespaceSupport.getPrefixes(); e.hasMoreElements();) { final String namespacePrefix = (String) e.nextElement(); if (!namespacePrefix.startsWith("xml")) super.startPrefixMapping(namespacePrefix, ""); } final String defaultNS = namespaceSupport.getURI(""); if (defaultNS != null && defaultNS.length() > 0) super.startPrefixMapping("", ""); } private void sendEndPrefixMappings() throws SAXException { for (Enumeration e = namespaceSupport.getPrefixes(); e.hasMoreElements();) { final String namespacePrefix = (String) e.nextElement(); if (!namespacePrefix.startsWith("xml")) super.endPrefixMapping(namespacePrefix); } final String defaultNS = namespaceSupport.getURI(""); if (defaultNS != null && defaultNS.length() > 0) super.endPrefixMapping(""); } public void endElement(String uri, String localname, String qName) throws SAXException { level--; namespaceSupport.popContext(); if (XMLConstants.XINCLUDE_URI.equals(uri) || XMLConstants.OLD_XINCLUDE_URI.equals(uri)) { } else { super.endElement(uri, localname, qName); } } public void startPrefixMapping(String prefix, String uri) throws SAXException { namespaceSupport.declarePrefix(prefix, uri); super.startPrefixMapping(prefix, uri); } public void setDocumentLocator(Locator locator) { this.locator = locator; super.setDocumentLocator(locator); } });
|
public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) { // TODO: read and process! }
|
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/c92faea3770d68e915964a3102a4873b3279f0cd/XIncludeProcessor.java/clean/src/java/org/orbeon/oxf/processor/xinclude/XIncludeProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
6385,
13671,
1042,
5873,
1042,
16,
727,
3697,
1503,
913,
1503,
13,
288,
282,
727,
3697,
1503,
1198,
1350,
1503,
273,
913,
1503,
31,
855,
1210,
1463,
55,
2501,
12,
14511,
1042,
16,
12943,
67,
7203,
16,
394,
17206,
310,
1350,
1503,
12,
4148,
1350,
1503,
13,
288,
225,
3238,
2851,
639,
8871,
31,
3238,
11519,
3098,
4301,
2003,
4301,
273,
394,
11519,
3098,
4301,
12,
60,
8752,
5164,
18,
2211,
16,
5873,
1042,
16,
12943,
67,
7203,
1769,
3238,
6005,
6289,
22,
1981,
6289,
273,
394,
6005,
6289,
22,
5621,
225,
3238,
509,
1801,
31,
3238,
1250,
316,
8752,
31,
3238,
509,
2341,
2355,
31,
225,
1071,
918,
13591,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
225,
1981,
6289,
18,
6206,
1042,
5621,
225,
309,
261,
4201,
2918,
18,
60,
26003,
67,
3098,
18,
14963,
12,
1650,
13,
747,
3167,
2918,
18,
11846,
67,
60,
26003,
67,
3098,
18,
14963,
12,
1650,
3719,
288,
282,
309,
261,
4201,
2918,
18,
11846,
67,
60,
26003,
67,
3098,
18,
14963,
12,
1650,
3719,
1194,
18,
8935,
2932,
7736,
11332,
1139,
8752,
1981,
3699,
30,
2119,
397,
2003,
397,
2491,
31,
1410,
999,
2119,
397,
3167,
2918,
18,
60,
26003,
67,
3098,
397,
2491,
622,
315,
397,
394,
7050,
751,
12,
20048,
2934,
10492,
10663,
225,
309,
7566,
6702,
9654,
14963,
12,
3729,
529,
3719,
288,
282,
316,
8752,
273,
638,
31,
2341,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
6385,
13671,
1042,
5873,
1042,
16,
727,
3697,
1503,
913,
1503,
13,
288,
282,
727,
3697,
1503,
1198,
1350,
1503,
273,
913,
1503,
31,
855,
1210,
1463,
55,
2501,
12,
14511,
1042,
16,
12943,
67,
7203,
16,
394,
17206,
310,
1350,
1503,
12,
4148,
1350,
1503,
13,
288,
225,
3238,
2851,
639,
8871,
31,
3238,
11519,
3098,
4301,
2003,
4301,
273,
394,
11519,
3098,
4301,
12,
60,
8752,
5164,
18,
2211,
16,
5873,
1042,
16,
12943,
67,
7203,
1769,
3238,
6005,
6289,
22,
1981,
6289,
273,
394,
6005,
6289,
22,
5621,
225,
3238,
509,
1801,
31,
3238,
1250,
316,
8752,
31,
3238,
509,
2341,
2355,
31,
225,
1071,
918,
13591,
12,
780,
2003,
2
] |
println(" public " + returnTypeName + " " + className + "FromTerm(aterm.ATerm trm) {"); println(" if (!(trm instanceof aterm.ATermList)) {"); println(" throw new IllegalArgumentException(\"This is not a " + className + ": \" + trm);"); println(" }"); println(); println(" aterm.ATermList list = (aterm.ATermList) trm;"); println(" if (list.isEmpty()) {"); println(" return " + makeClassName + "();"); println(" }"); println(); println(" if (list.getLength() == 1) {");
|
println( " public " + returnTypeName + " " + className + "FromTerm(aterm.ATerm trm) {"); println(" if (!(trm instanceof aterm.ATermList)) {"); println( " throw new IllegalArgumentException(\"This is not a " + className + ": \" + trm);"); println(" }"); println(); println(" aterm.ATermList list = (aterm.ATermList) trm;"); println(" if (list.isEmpty()) {"); println(" return " + makeClassName + "();"); println(" }"); println(); println(" if (list.getLength() == 1) {");
|
private void genSeparatedListFromTermMethod(SeparatedListType type) { JavaGenerationParameters params = getJavaGenerationParameters(); String returnTypeName = TypeGenerator.qualifiedClassName(params, type); String className = TypeGenerator.className(type); String makeClassName = "make" + className; String manyPattern = patternListVariable(type); String elementType = type.getElementType(); // String elementClass = TypeGenerator.className(elementType); // String elementClassFromTerm = elementClass + "FromTerm"; Separators separators = type.getSeparators(); int headLength = 1 + separators.getLength(); // on the ATerm level int tailIndex = 1 + type.countSeparatorFields(); // on the abstract // level println(" public " + returnTypeName + " " + className + "FromTerm(aterm.ATerm trm) {"); println(" if (!(trm instanceof aterm.ATermList)) {"); println(" throw new IllegalArgumentException(\"This is not a " + className + ": \" + trm);"); println(" }"); println(); println(" aterm.ATermList list = (aterm.ATermList) trm;"); println(" if (list.isEmpty()) {"); println(" return " + makeClassName + "();"); println(" }"); println(); println(" if (list.getLength() == 1) {"); String singletonElement = buildFromTermListElement(elementType, "list.getFirst()"); println(" return " + makeClassName + "(" + singletonElement + ");"); println(" }"); println(); println(" int length = (list.getLength() / " + headLength + ") + 1;"); println(" java.util.List[] nodes = new java.util.List[length-1];"); println(); println(" for (int i = 0; i < length - 1; i++) {"); println(" java.util.List args = list.match(" + manyPattern + ");"); println(" if (args == null) {"); println(" throw new IllegalArgumentException(\"This is not a " + className + ": \" + trm);"); println(" }"); println(" nodes[i] = args;"); println(" list = (aterm.ATermList) args.get(" + tailIndex + ");"); println(" }"); println(); println(" if (list.getLength() != 1) {"); println(" throw new IllegalArgumentException(\"This is not a " + className + ": \" + trm);"); println(" }"); println(); println(" " + returnTypeName + " result = " + makeClassName + "(" + singletonElement + ");"); println(); println(" for (int i = length - 2; i >= 0; i--) {"); println(" java.util.List children = nodes[i];"); String elementTypeName = TypeGenerator.qualifiedClassName(params, elementType); String head = buildFromTermListElement(elementType, "(aterm.ATerm) children.get(0)"); println(" " + elementTypeName + " head = " + head + ";"); genFromTermSeparatorFieldAssigments(type); String separatorArgs = buildOptionalSeparatorArguments(type); println(" result = " + makeClassName + "(head, " + separatorArgs + "result);"); println(" }"); println(); println(" return result;"); println(" }"); println(); }
|
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/76875cdfe2af0d6de4ab58a245cce8bd703a86ab/FactoryGenerator.java/clean/apigen/apigen/gen/java/FactoryGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
28174,
682,
1265,
4065,
1305,
12,
28174,
19366,
618,
13,
288,
202,
202,
5852,
13842,
2402,
859,
273,
18911,
13842,
2402,
5621,
202,
202,
780,
327,
7947,
273,
1412,
3908,
18,
19724,
3834,
12,
2010,
16,
618,
1769,
202,
202,
780,
2658,
273,
1412,
3908,
18,
12434,
12,
723,
1769,
202,
202,
780,
1221,
3834,
273,
315,
6540,
6,
397,
2658,
31,
202,
202,
780,
4906,
3234,
273,
1936,
682,
3092,
12,
723,
1769,
202,
202,
780,
21427,
273,
618,
18,
588,
17481,
5621,
202,
202,
759,
514,
930,
797,
273,
1412,
3908,
18,
12434,
12,
2956,
559,
1769,
202,
202,
759,
514,
930,
797,
1265,
4065,
273,
930,
797,
397,
315,
1265,
4065,
14432,
202,
202,
16842,
3062,
14815,
273,
618,
18,
588,
16842,
3062,
5621,
202,
202,
474,
910,
1782,
273,
404,
397,
14815,
18,
588,
1782,
5621,
368,
603,
326,
432,
4065,
1801,
202,
202,
474,
5798,
1016,
273,
404,
397,
618,
18,
1883,
6581,
2314,
5621,
368,
603,
326,
8770,
202,
202,
759,
1801,
202,
202,
8222,
2932,
225,
1071,
315,
397,
327,
7947,
397,
315,
315,
397,
2658,
397,
315,
1265,
4065,
12,
270,
1035,
18,
789,
1035,
433,
81,
13,
288,
8863,
202,
202,
8222,
2932,
565,
309,
16051,
12,
313,
81,
1276,
622,
1035,
18,
789,
1035,
682,
3719,
288,
8863,
202,
202,
8222,
2932,
1377,
604,
394,
2754,
23031,
2503,
353,
486,
279,
315,
397,
2658,
397,
6398,
1239,
397,
433,
81,
1769,
8863,
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,
3157,
28174,
682,
1265,
4065,
1305,
12,
28174,
19366,
618,
13,
288,
202,
202,
5852,
13842,
2402,
859,
273,
18911,
13842,
2402,
5621,
202,
202,
780,
327,
7947,
273,
1412,
3908,
18,
19724,
3834,
12,
2010,
16,
618,
1769,
202,
202,
780,
2658,
273,
1412,
3908,
18,
12434,
12,
723,
1769,
202,
202,
780,
1221,
3834,
273,
315,
6540,
6,
397,
2658,
31,
202,
202,
780,
4906,
3234,
273,
1936,
682,
3092,
12,
723,
1769,
202,
202,
780,
21427,
273,
618,
18,
588,
17481,
5621,
202,
202,
759,
514,
930,
797,
273,
1412,
3908,
18,
12434,
12,
2956,
559,
1769,
202,
202,
759,
514,
930,
797,
1265,
4065,
273,
930,
797,
397,
315,
1265,
4065,
2
] |
runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "concrete class", 0, rule), new TestDescriptor(TEST2, "failure case", 1, rule), new TestDescriptor(TEST3, "failure case, 1 method", 1, rule), new TestDescriptor(TEST4, "abstract class with abstract method", 0, rule), new TestDescriptor(TEST5, "abstract class implements interface", 0, rule), }); }
|
runTests(rule); }
|
public void testAll() { runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "concrete class", 0, rule), new TestDescriptor(TEST2, "failure case", 1, rule), new TestDescriptor(TEST3, "failure case, 1 method", 1, rule), new TestDescriptor(TEST4, "abstract class with abstract method", 0, rule), new TestDescriptor(TEST5, "abstract class implements interface", 0, rule), }); }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/AbstractClassWithoutAbstractMethodTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/AbstractClassWithoutAbstractMethodTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
1435,
288,
3639,
1086,
14650,
12,
2704,
7766,
3187,
63,
7073,
5411,
394,
7766,
3187,
12,
16961,
21,
16,
315,
23470,
667,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
22,
16,
315,
12251,
648,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
23,
16,
315,
12251,
648,
16,
404,
707,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
24,
16,
315,
17801,
667,
598,
8770,
707,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
25,
16,
315,
17801,
667,
4792,
1560,
3113,
374,
16,
1720,
3631,
3639,
15549,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1595,
1435,
288,
3639,
1086,
14650,
12,
2704,
7766,
3187,
63,
7073,
5411,
394,
7766,
3187,
12,
16961,
21,
16,
315,
23470,
667,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
22,
16,
315,
12251,
648,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
23,
16,
315,
12251,
648,
16,
404,
707,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
24,
16,
315,
17801,
667,
598,
8770,
707,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
25,
16,
315,
17801,
667,
4792,
1560,
3113,
374,
16,
1720,
3631,
3639,
15549,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return support.isNext((char) c); }
|
return support.isNext((char) c); }
|
private boolean peek(int c) { return support.isNext((char) c); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
8032,
12,
474,
276,
13,
288,
202,
202,
2463,
2865,
18,
291,
2134,
12443,
3001,
13,
276,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
8032,
12,
474,
276,
13,
288,
202,
202,
2463,
2865,
18,
291,
2134,
12443,
3001,
13,
276,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
hourglassOn();
|
public void run() {// new ScrollableDialog(null, "_junitAllAction called", "", "").show(); try { // hourglassOn(); if (_model.isProjectActive()) _model.getJUnitModel().junitProject(); else _model.getJUnitModel().junitAll(); } finally { // hourglassOff(); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/c34979036dca11c3afc06b42fcb087eaf85bc790/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
1071,
12091,
75,
459,
1398,
5621,
918,
12091,
75,
459,
1398,
5621,
1086,
1435,
12091,
75,
459,
1398,
5621,
288,
759,
12091,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
394,
12091,
75,
459,
1398,
5621,
23134,
429,
6353,
12,
2011,
16,
12091,
75,
459,
1398,
5621,
4192,
78,
4873,
1595,
1803,
12091,
75,
459,
1398,
5621,
2566,
3113,
12091,
75,
459,
1398,
5621,
23453,
12091,
75,
459,
1398,
5621,
1408,
2934,
4500,
5621,
12091,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
775,
12091,
75,
459,
1398,
5621,
288,
12091,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
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,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
1071,
12091,
75,
459,
1398,
5621,
918,
12091,
75,
459,
1398,
5621,
1086,
1435,
12091,
75,
459,
1398,
5621,
288,
759,
12091,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
6126,
75,
459,
1398,
5621,
394,
12091,
75,
459,
1398,
5621,
23134,
429,
2
] |
|
runtime.getGlobalVariables().set("$?", runtime.newFixnum( runInShell(runtime, aString.toString(), output)));
|
ByteArrayOutputStream output = new ByteArrayOutputStream(); int resultCode = runInShell(runtime, new IRubyObject[] {aString}, output); recv.getRuntime().getGlobalVariables().set("$?", runtime.newFixnum(resultCode));
|
public static IRubyObject backquote(IRubyObject recv, IRubyObject aString) { StringBuffer output = new StringBuffer(); IRuby runtime = recv.getRuntime(); runtime.getGlobalVariables().set("$?", runtime.newFixnum( runInShell(runtime, aString.toString(), output))); return recv.getRuntime().newString(output.toString()); }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/b4a189a27604d62c317938f16a124fb9dab1e94a/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1473,
6889,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
279,
780,
13,
288,
3639,
6674,
876,
273,
394,
6674,
5621,
3639,
15908,
10340,
3099,
273,
10665,
18,
588,
5576,
5621,
3639,
3099,
18,
588,
5160,
6158,
7675,
542,
2932,
8,
35,
3113,
3099,
18,
2704,
8585,
2107,
12,
5411,
1086,
382,
13220,
12,
9448,
16,
279,
780,
18,
10492,
9334,
876,
3719,
1769,
7734,
327,
10665,
18,
588,
5576,
7675,
2704,
780,
12,
2844,
18,
10492,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1473,
6889,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
279,
780,
13,
288,
3639,
6674,
876,
273,
394,
6674,
5621,
3639,
15908,
10340,
3099,
273,
10665,
18,
588,
5576,
5621,
3639,
3099,
18,
588,
5160,
6158,
7675,
542,
2932,
8,
35,
3113,
3099,
18,
2704,
8585,
2107,
12,
5411,
1086,
382,
13220,
12,
9448,
16,
279,
780,
18,
10492,
9334,
876,
3719,
1769,
7734,
327,
10665,
18,
588,
5576,
7675,
2704,
780,
12,
2844,
18,
10492,
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
] |
getContainer().updateButtons();
|
final IWizardContainer wizard= getContainer(); if (wizard.getCurrentPage() != null) wizard.updateButtons();
|
public void setRefactoringScript(final URI location) { fScriptLocation= location; getContainer().updateButtons(); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/92e5b16a50bd8e22bbaf798a10ca5291bd61df61/CreateRefactoringScriptWizard.java/clean/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/scripting/CreateRefactoringScriptWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
426,
3493,
6053,
3651,
12,
6385,
3699,
2117,
13,
288,
202,
202,
74,
3651,
2735,
33,
2117,
31,
202,
202,
588,
2170,
7675,
2725,
14388,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
444,
426,
3493,
6053,
3651,
12,
6385,
3699,
2117,
13,
288,
202,
202,
74,
3651,
2735,
33,
2117,
31,
202,
202,
588,
2170,
7675,
2725,
14388,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return d; }
|
return d; }
|
protected IASTDeclarator initDeclarator(SimpleDeclarationStrategy strategy) throws EndOfFileException, BacktrackException { IASTDeclarator d = declarator(strategy, false, false ); IASTInitializer initializer = optionalCPPInitializer(); if (initializer != null) { d.setInitializer(initializer); initializer.setParent(d); initializer.setPropertyInParent(IASTDeclarator.INITIALIZER); ((ASTNode) d).setLength(calculateEndOffset(initializer) - ((ASTNode) d).getOffset()); } return d; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/8b59056395eb6c26e898030e7e1cd1b78d4db999/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
31419,
1208,
31419,
12,
5784,
6094,
4525,
6252,
13,
540,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
1377,
467,
9053,
31419,
302,
273,
3496,
5880,
12,
14914,
16,
629,
16,
629,
11272,
1377,
467,
9053,
14729,
12562,
273,
3129,
4258,
52,
14729,
5621,
1377,
309,
261,
22181,
480,
446,
13,
288,
540,
302,
18,
542,
14729,
12,
22181,
1769,
540,
12562,
18,
542,
3054,
12,
72,
1769,
540,
12562,
18,
542,
1396,
382,
3054,
12,
45,
9053,
31419,
18,
12919,
15154,
654,
1769,
540,
14015,
9053,
907,
13,
302,
2934,
542,
1782,
12,
11162,
1638,
2335,
12,
22181,
13,
9079,
300,
14015,
9053,
907,
13,
302,
2934,
588,
2335,
10663,
1377,
289,
1377,
327,
302,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
31419,
1208,
31419,
12,
5784,
6094,
4525,
6252,
13,
540,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
1377,
467,
9053,
31419,
302,
273,
3496,
5880,
12,
14914,
16,
629,
16,
629,
11272,
1377,
467,
9053,
14729,
12562,
273,
3129,
4258,
52,
14729,
5621,
1377,
309,
261,
22181,
480,
446,
13,
288,
540,
302,
18,
542,
14729,
12,
22181,
1769,
540,
12562,
18,
542,
3054,
12,
72,
1769,
540,
12562,
18,
542,
1396,
382,
3054,
12,
45,
9053,
31419,
18,
12919,
15154,
654,
1769,
540,
14015,
9053,
907,
13,
302,
2934,
542,
1782,
12,
11162,
1638,
2335,
12,
22181,
13,
9079,
300,
14015,
9053,
907,
13,
302,
2934,
588,
2335,
10663,
1377,
289,
2
] |
super(59);
|
super(59, data);
|
public TimeInForce() { super(59); }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TimeInForce.java/clean/src/java/src/quickfix/field/TimeInForce.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2647,
382,
10997,
1435,
282,
288,
377,
2240,
12,
6162,
16,
501,
1769,
225,
289,
225,
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,
282,
1071,
2647,
382,
10997,
1435,
282,
288,
377,
2240,
12,
6162,
16,
501,
1769,
225,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new PromiscuousItemException(j);
|
throw new PromiscuousItemException(j, i.getParent());
|
public void insertNext(DoublyLinkedList.Item i, DoublyLinkedList.Item j) { if (i.getParent() != this) throw new PromiscuousItemException(i); if (j.getParent() != null) throw new PromiscuousItemException(j); if (j.getNext() != null || j.getPrev() != null) throw new PromiscuousItemException(j); DoublyLinkedList.Item next = i.getNext(); if (next == null) throw new VirginItemException(i); next.setPrev(j); j.setNext(next); i.setNext(j); j.setPrev(i); ++size; }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/d10b21446936a981fde954dd017325c3933d41c6/DoublyLinkedListImpl.java/clean/src/freenet/support/DoublyLinkedListImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2243,
2134,
12,
3244,
440,
93,
13174,
682,
18,
1180,
277,
16,
2256,
440,
93,
13174,
682,
18,
1180,
525,
13,
288,
377,
202,
430,
261,
77,
18,
588,
3054,
1435,
480,
333,
13,
377,
202,
202,
12849,
394,
17552,
291,
6319,
1481,
1180,
503,
12,
77,
1769,
377,
202,
430,
261,
78,
18,
588,
3054,
1435,
480,
446,
13,
377,
202,
202,
12849,
394,
17552,
291,
6319,
1481,
1180,
503,
12,
78,
16,
277,
18,
588,
3054,
10663,
3639,
309,
261,
78,
18,
588,
2134,
1435,
480,
446,
747,
525,
18,
588,
9958,
1435,
480,
446,
13,
5411,
604,
394,
17552,
291,
6319,
1481,
1180,
503,
12,
78,
16,
277,
18,
588,
3054,
10663,
3639,
2256,
440,
93,
13174,
682,
18,
1180,
1024,
273,
277,
18,
588,
2134,
5621,
3639,
309,
261,
4285,
422,
446,
13,
5411,
604,
394,
776,
481,
1912,
1180,
503,
12,
77,
1769,
3639,
1024,
18,
542,
9958,
12,
78,
1769,
3639,
525,
18,
542,
2134,
12,
4285,
1769,
3639,
277,
18,
542,
2134,
12,
78,
1769,
3639,
525,
18,
542,
9958,
12,
77,
1769,
3639,
965,
1467,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2243,
2134,
12,
3244,
440,
93,
13174,
682,
18,
1180,
277,
16,
2256,
440,
93,
13174,
682,
18,
1180,
525,
13,
288,
377,
202,
430,
261,
77,
18,
588,
3054,
1435,
480,
333,
13,
377,
202,
202,
12849,
394,
17552,
291,
6319,
1481,
1180,
503,
12,
77,
1769,
377,
202,
430,
261,
78,
18,
588,
3054,
1435,
480,
446,
13,
377,
202,
202,
12849,
394,
17552,
291,
6319,
1481,
1180,
503,
12,
78,
16,
277,
18,
588,
3054,
10663,
3639,
309,
261,
78,
18,
588,
2134,
1435,
480,
446,
747,
525,
18,
588,
9958,
1435,
480,
446,
13,
5411,
604,
394,
17552,
291,
6319,
1481,
1180,
503,
12,
78,
16,
277,
18,
588,
3054,
10663,
3639,
2
] |
case 31: break; case 18:
|
case 33: break; case 20:
|
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 23: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); try { s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } catch (CommentException e) { w.write("/* "+commentEncode(e.getMessage())+" */"); } } case 31: break; case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 32: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 33: break; case 22: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 34: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 35: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 36: break; case 25: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 37: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 38: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 39: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 40: break; case 20: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 41: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 42: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s+ ' '); if(debug) log("Matched @media: "+s); } case 43: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 44: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 45: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 46: break; case 19: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 47: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 48: break; case 27: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); try { s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } catch (CommentException e) { w.write("/* " + commentEncode(e.getMessage()) + " */"); } } case 49: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 50: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 51: break; case 21: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 52: break; case 15: { if(!deleteErrors) { throwError("Unknown @identifier "+yytext()); } else { String s = yytext(); if(debug) log("Discarded identifier: "+s); // Ignore } } case 53: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 54: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 55: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 56: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 57: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 58: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 59: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 60: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
|
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/58e844dc77aa5d1ee9f4952f22f0f7b6b8469457/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
1323,
261,
3767,
13,
288,
1377,
11273,
21486,
1616,
48,
273,
11273,
21486,
1616,
31,
1377,
11273,
1803,
273,
300,
21,
31,
1377,
11273,
3935,
1616,
48,
273,
11273,
3935,
1616,
273,
11273,
1685,
1994,
273,
11273,
21486,
1616,
48,
31,
3639,
11273,
1119,
273,
11273,
14756,
1706,
1119,
31,
1377,
11273,
1290,
1803,
30,
288,
3639,
1323,
261,
3767,
13,
288,
2868,
309,
261,
6378,
3935,
1616,
48,
411,
11273,
1638,
1994,
48,
13,
5411,
11273,
1210,
273,
11273,
1892,
48,
63,
6378,
3935,
1616,
48,
9904,
15533,
1850,
469,
309,
261,
6378,
861,
12706,
13,
288,
5411,
11273,
1210,
273,
1624,
61,
12706,
31,
5411,
898,
11273,
1290,
1803,
31,
1850,
289,
1850,
469,
288,
5411,
368,
1707,
1473,
3472,
6865,
5411,
11273,
3935,
1616,
225,
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,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
2
] |
this.readOnly = readOnly;
|
this.readOnly = readOnly;
|
public void setReadOnly(boolean readOnly) throws SQLException { this.readOnly = readOnly; }
|
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
12066,
12,
6494,
15075,
13,
1216,
6483,
288,
202,
2211,
18,
896,
3386,
273,
15075,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
444,
12066,
12,
6494,
15075,
13,
1216,
6483,
288,
202,
2211,
18,
896,
3386,
273,
15075,
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
] |
CSSPrimitiveValue.CSS_NUMBER,
|
type,
|
protected static float emsToPixels(float v, short d, Context ctx) { CSSPrimitiveValue fontSize = ctx.getFontSize(); short type = fontSize.getPrimitiveType(); switch (type) { case CSSPrimitiveValue.CSS_IDENT: float fs = ctx.getMediumFontSize(); fs = TextUtilities.parseFontSize(fontSize.getStringValue(), fs); return v * cssToUserSpace(fs, CSSPrimitiveValue.CSS_PT, d, ctx); default: return v * cssToUserSpace(fontSize.getFloatValue(type), CSSPrimitiveValue.CSS_NUMBER, d, ctx); } }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/b55213355ab9a4fc9ac868afd88d3a73b7d449e9/UnitProcessor.java/clean/sources/org/apache/batik/bridge/UnitProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1431,
801,
11634,
18079,
12,
5659,
331,
16,
3025,
302,
16,
1772,
1103,
13,
288,
3639,
6765,
9840,
620,
16746,
273,
1103,
18,
588,
22688,
5621,
3639,
3025,
618,
273,
16746,
18,
588,
9840,
559,
5621,
3639,
1620,
261,
723,
13,
288,
5411,
648,
6765,
9840,
620,
18,
10276,
67,
13355,
30,
7734,
1431,
2662,
273,
1103,
18,
588,
25599,
22688,
5621,
7734,
2662,
273,
3867,
11864,
18,
2670,
22688,
12,
5776,
1225,
18,
588,
19733,
9334,
2662,
1769,
7734,
327,
331,
380,
3747,
774,
1299,
3819,
12,
2556,
16,
4766,
1850,
6765,
9840,
620,
18,
10276,
67,
1856,
16,
4766,
1850,
302,
16,
4766,
1850,
1103,
1769,
5411,
805,
30,
7734,
327,
331,
380,
3747,
774,
1299,
3819,
12,
5776,
1225,
18,
588,
4723,
620,
12,
723,
3631,
4766,
1850,
618,
16,
4766,
1850,
302,
16,
4766,
1850,
1103,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1431,
801,
11634,
18079,
12,
5659,
331,
16,
3025,
302,
16,
1772,
1103,
13,
288,
3639,
6765,
9840,
620,
16746,
273,
1103,
18,
588,
22688,
5621,
3639,
3025,
618,
273,
16746,
18,
588,
9840,
559,
5621,
3639,
1620,
261,
723,
13,
288,
5411,
648,
6765,
9840,
620,
18,
10276,
67,
13355,
30,
7734,
1431,
2662,
273,
1103,
18,
588,
25599,
22688,
5621,
7734,
2662,
273,
3867,
11864,
18,
2670,
22688,
12,
5776,
1225,
18,
588,
19733,
9334,
2662,
1769,
7734,
327,
331,
380,
3747,
774,
1299,
3819,
12,
2556,
16,
4766,
1850,
6765,
9840,
620,
18,
10276,
67,
1856,
16,
4766,
1850,
302,
16,
4766,
1850,
1103,
1769,
5411,
805,
30,
7734,
327,
331,
380,
3747,
2
] |
return display.getSystemFont();
|
return null;
|
public Font getFont(Object element) { Display display = tree.getDisplay(); if (element instanceof FontDefinition) { int parentHeight = tree.getViewer().getControl().getFont().getFontData()[0].getHeight(); Font baseFont = fontRegistry.get(((FontDefinition)element).getId()); Font font = (Font) fonts.get(baseFont); if (font == null) { FontData [] data = baseFont.getFontData(); for (int i = 0; i < data.length; i++) { data[i].setHeight(parentHeight); } font = new Font(display, data); fonts.put(baseFont, font); } updateColumn(getText(element), font); return font; } updateColumn(getText(element), tree.getViewer().getControl().getFont()); return display.getSystemFont(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5a1451b629baf49b2ed3ad104d2e7b39edc9fd65/ColorsAndFontsPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorsAndFontsPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
10063,
18776,
12,
921,
930,
13,
288,
5411,
9311,
2562,
273,
2151,
18,
588,
4236,
5621,
5411,
309,
261,
2956,
1276,
10063,
1852,
13,
288,
7734,
509,
982,
2686,
273,
2151,
18,
588,
18415,
7675,
588,
3367,
7675,
588,
5711,
7675,
588,
5711,
751,
1435,
63,
20,
8009,
588,
2686,
5621,
377,
202,
3639,
10063,
1026,
5711,
273,
3512,
4243,
18,
588,
12443,
12,
5711,
1852,
13,
2956,
2934,
26321,
10663,
377,
202,
3639,
10063,
3512,
273,
261,
5711,
13,
16450,
18,
588,
12,
1969,
5711,
1769,
377,
202,
3639,
309,
261,
5776,
422,
446,
13,
288,
377,
202,
5411,
10063,
751,
5378,
501,
273,
1026,
5711,
18,
588,
5711,
751,
5621,
377,
202,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
501,
18,
2469,
31,
277,
27245,
288,
13491,
501,
63,
77,
8009,
542,
2686,
12,
2938,
2686,
1769,
10792,
289,
377,
202,
5411,
3512,
273,
394,
10063,
12,
5417,
16,
501,
1769,
9506,
377,
202,
202,
22052,
18,
458,
12,
1969,
5711,
16,
3512,
1769,
377,
202,
3639,
289,
377,
202,
3639,
1089,
1494,
12,
588,
1528,
12,
2956,
3631,
3512,
1769,
377,
202,
3639,
327,
3512,
31,
377,
202,
565,
289,
5411,
1089,
1494,
12,
588,
1528,
12,
2956,
3631,
2151,
18,
588,
18415,
7675,
588,
3367,
7675,
588,
5711,
10663,
5411,
327,
446,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
10063,
18776,
12,
921,
930,
13,
288,
5411,
9311,
2562,
273,
2151,
18,
588,
4236,
5621,
5411,
309,
261,
2956,
1276,
10063,
1852,
13,
288,
7734,
509,
982,
2686,
273,
2151,
18,
588,
18415,
7675,
588,
3367,
7675,
588,
5711,
7675,
588,
5711,
751,
1435,
63,
20,
8009,
588,
2686,
5621,
377,
202,
3639,
10063,
1026,
5711,
273,
3512,
4243,
18,
588,
12443,
12,
5711,
1852,
13,
2956,
2934,
26321,
10663,
377,
202,
3639,
10063,
3512,
273,
261,
5711,
13,
16450,
18,
588,
12,
1969,
5711,
1769,
377,
202,
3639,
309,
261,
5776,
422,
446,
13,
288,
377,
202,
5411,
10063,
751,
5378,
501,
273,
1026,
5711,
18,
588,
5711,
751,
5621,
377,
202,
5411,
364,
261,
2
] |
taskActivityTableContentProvider = new TaskActivityContentProvider(getViewer());
|
taskActivityTableContentProvider = new TaskActivityContentProvider(MylarTaskListPlugin.getTaskListManager());
|
public void createPartControl(Composite parent) { treeViewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION); getViewer().getTree().setHeaderVisible(true); getViewer().getTree().setLinesVisible(true); getViewer().setColumnProperties(columnNames); getViewer().setUseHashlookup(true); columns = new TreeColumn[columnNames.length]; for (int i = 0; i < columnNames.length; i++) { columns[i] = new TreeColumn(getViewer().getTree(), SWT.LEFT); columns[i].setText(columnNames[i]); columns[i].setWidth(columnWidths[i]); // final int index = i; // columns[i].addSelectionListener(new SelectionAdapter() { // @Override // public void widgetSelected(SelectionEvent e) { // sortIndex = index; // sortDirection *= DEFAULT_SORT_DIRECTION; // getViewer().setSorter(new TaskActivityTableSorter()); // } // }); columns[i].addControlListener(new ControlListener() { public void controlResized(ControlEvent e) { for (int j = 0; j < columnWidths.length; j++) { if (columns[j].equals(e.getSource())) { columnWidths[j] = columns[j].getWidth(); } } } public void controlMoved(ControlEvent e) { // don't care if the control is moved } }); } taskHistoryTreeLabelProvider = new TaskActivityLabelProvider(new TaskElementLabelProvider(), PlatformUI .getWorkbench().getDecoratorManager().getLabelDecorator(), parent.getBackground()); getViewer().setSorter(new TaskActivityTableSorter()); taskActivityTableContentProvider = new TaskActivityContentProvider(getViewer()); getViewer().setContentProvider(taskActivityTableContentProvider); getViewer().setLabelProvider(taskHistoryTreeLabelProvider); getViewer().setInput(getViewSite()); makeActions(); hookOpenAction(); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/ab0859060cb7a33aa8fa21ea563a8f906eff1914/TaskActivityView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskActivityView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
1988,
3367,
12,
9400,
982,
13,
288,
202,
202,
3413,
18415,
273,
394,
4902,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
18111,
67,
1090,
15445,
1769,
202,
202,
588,
18415,
7675,
588,
2471,
7675,
542,
1864,
6207,
12,
3767,
1769,
202,
202,
588,
18415,
7675,
588,
2471,
7675,
542,
5763,
6207,
12,
3767,
1769,
202,
202,
588,
18415,
7675,
542,
1494,
2297,
12,
2827,
1557,
1769,
202,
202,
588,
18415,
7675,
542,
3727,
2310,
8664,
12,
3767,
1769,
202,
202,
5112,
273,
394,
4902,
1494,
63,
2827,
1557,
18,
2469,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
19975,
18,
2469,
31,
277,
27245,
288,
1082,
202,
5112,
63,
77,
65,
273,
394,
4902,
1494,
12,
588,
18415,
7675,
588,
2471,
9334,
348,
8588,
18,
10066,
1769,
1082,
202,
5112,
63,
77,
8009,
542,
1528,
12,
2827,
1557,
63,
77,
19226,
1082,
202,
5112,
63,
77,
8009,
542,
2384,
12,
2827,
22407,
63,
77,
19226,
1082,
202,
759,
727,
509,
770,
273,
277,
31,
1082,
202,
759,
2168,
63,
77,
8009,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1082,
202,
759,
632,
6618,
1082,
202,
759,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
1082,
202,
759,
1524,
1016,
273,
770,
31,
1082,
202,
759,
31410,
6413,
3331,
67,
23988,
67,
30516,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
1988,
3367,
12,
9400,
982,
13,
288,
202,
202,
3413,
18415,
273,
394,
4902,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
18111,
67,
1090,
15445,
1769,
202,
202,
588,
18415,
7675,
588,
2471,
7675,
542,
1864,
6207,
12,
3767,
1769,
202,
202,
588,
18415,
7675,
588,
2471,
7675,
542,
5763,
6207,
12,
3767,
1769,
202,
202,
588,
18415,
7675,
542,
1494,
2297,
12,
2827,
1557,
1769,
202,
202,
588,
18415,
7675,
542,
3727,
2310,
8664,
12,
3767,
1769,
202,
202,
5112,
273,
394,
4902,
1494,
63,
2827,
1557,
18,
2469,
15533,
202,
202,
2
] |
layout(true);
|
folder.layout(true);
|
public void setVisible(boolean isVisible) { tabFolder.getControl().setVisible(isVisible); IPresentablePart current = getSite().getSelectedPart(); if (current != null) { current.setVisible(true); } if (isVisible) { layout(true); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a44e3679b294ff539fce71b7e835499b2c444fa7/TabbedStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/TabbedStackPresentation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16697,
12,
6494,
20453,
13,
288,
3639,
3246,
3899,
18,
588,
3367,
7675,
542,
6207,
12,
291,
6207,
1769,
3639,
2971,
1581,
429,
1988,
783,
273,
11021,
7675,
588,
7416,
1988,
5621,
3639,
309,
261,
2972,
480,
446,
13,
288,
5411,
783,
18,
542,
6207,
12,
3767,
1769,
3639,
289,
3639,
309,
261,
291,
6207,
13,
288,
5411,
3009,
18,
6741,
12,
3767,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16697,
12,
6494,
20453,
13,
288,
3639,
3246,
3899,
18,
588,
3367,
7675,
542,
6207,
12,
291,
6207,
1769,
3639,
2971,
1581,
429,
1988,
783,
273,
11021,
7675,
588,
7416,
1988,
5621,
3639,
309,
261,
2972,
480,
446,
13,
288,
5411,
783,
18,
542,
6207,
12,
3767,
1769,
3639,
289,
3639,
309,
261,
291,
6207,
13,
288,
5411,
3009,
18,
6741,
12,
3767,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public LogPanel(final ChainsawStatusBar statusBar, final String ident, String eventType) { identifier = ident; this.statusBar = statusBar; columnNameKeywordMap.put(ChainsawConstants.CLASS_COL_NAME, LoggingEventFieldResolver.CLASS_FIELD); columnNameKeywordMap.put(ChainsawConstants.FILE_COL_NAME, LoggingEventFieldResolver.FILE_FIELD); columnNameKeywordMap.put(ChainsawConstants.LEVEL_COL_NAME, LoggingEventFieldResolver.LEVEL_FIELD); columnNameKeywordMap.put(ChainsawConstants.LINE_COL_NAME, LoggingEventFieldResolver.LINE_FIELD); columnNameKeywordMap.put(ChainsawConstants.LOGGER_COL_NAME, LoggingEventFieldResolver.LOGGER_FIELD); columnNameKeywordMap.put(ChainsawConstants.NDC_COL_NAME, LoggingEventFieldResolver.NDC_FIELD); columnNameKeywordMap.put(ChainsawConstants.PROPERTIES_COL_NAME, LoggingEventFieldResolver.PROP_FIELD); columnNameKeywordMap.put(ChainsawConstants.MESSAGE_COL_NAME, LoggingEventFieldResolver.MSG_FIELD); columnNameKeywordMap.put(ChainsawConstants.THREAD_COL_NAME, LoggingEventFieldResolver.THREAD_FIELD); columnNameKeywordMap.put(ChainsawConstants.THROWABLE_COL_NAME, LoggingEventFieldResolver.EXCEPTION_FIELD); columnNameKeywordMap.put(ChainsawConstants.TIMESTAMP_COL_NAME, LoggingEventFieldResolver.TIMESTAMP_FIELD); preferencesFrame.setTitle("'" + ident + "' Log Panel Preferences"); preferencesFrame.setIconImage(((ImageIcon) ChainsawIcons.ICON_PREFERENCES).getImage()); preferencesFrame.getContentPane().add(preferencesPanel); preferencesFrame.setSize(640, 480); preferencesPanel.setOkCancelActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { preferencesFrame.setVisible(false); } }); preferenceModel.addPropertyChangeListener("levelIcons", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { renderer.setLevelUseIcons(((Boolean) evt.getNewValue()).booleanValue()); table.tableChanged(new TableModelEvent(getModel())); } }); setDetailPaneConversionPattern(DefaultLayoutFactory.getDefaultPatternLayout()); ((EventDetailLayout) toolTipLayout).setConversionPattern(DefaultLayoutFactory.getDefaultPatternLayout()); preferenceModel.addPropertyChangeListener("detailPaneVisible", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean newValue = ((Boolean) evt.getNewValue()).booleanValue(); // if (newValue) { // lowerPanel.setDividerLocation(400); // } detailPanel.setVisible(newValue); lowerPanel.setOneTouchExpandable(newValue); } }); detailPanel.addPropertyChangeListener("visible", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { lowerPanel.setDividerLocation(0.5d); lowerPanel.validate(); } }); detailPanel.setVisible(getPreferenceModel().isDetailPaneVisible()); detailPanel.setPreferredSize(new Dimension(320, 160)); preferenceModel.addPropertyChangeListener("logTreePanelVisible", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean newValue = ((Boolean) evt.getNewValue()).booleanValue(); logTreePanel.setVisible(newValue); } }); tableModel = new ChainsawCyclicBufferTableModel(); colorFrame.setTitle("'" + ident + "' Color Filter"); colorFrame.setIconImage(((ImageIcon) ChainsawIcons.ICON_PREFERENCES).getImage()); renderer = new TableColorizingRenderer(colorizer); colorPanel = new ColorPanel(colorizer, filterModel); colorFrame.getContentPane().add(colorPanel); colorPanel.setCloseActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { colorFrame.setVisible(false); } }); colorizer.addPropertyChangeListener("colorrule", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { if (table != null) { table.repaint(); } colorPanel.updateColors(); } }); preferencesFrame.setSize(640, 480); table = new JSortTable(tableModel); table.getColumnModel().addColumnModelListener(new ChainsawTableColumnModelListener( table)); table.setAutoCreateColumnsFromModel(false); throwableRenderPanel = new ThrowableRenderPanel(table); preferenceModel.addPropertyChangeListener("visibleColumns", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { TableColumnModel columnModel = table.getColumnModel(); for (int i = 0; i < columnModel.getColumnCount(); i++) { TableColumn column = columnModel.getColumn(i); if (!preferenceModel.isColumnVisible( column.getHeaderValue().toString())) { columnModel.removeColumn(column); } } Set columnSet = new HashSet(); Enumeration enumeration = columnModel.getColumns(); while (enumeration.hasMoreElements()) { TableColumn column = (TableColumn) enumeration.nextElement(); columnSet.add(column.getHeaderValue()); } for (Iterator iter = ChainsawColumns.getColumnsNames() .iterator(); iter.hasNext();) { String column = (String) iter.next(); if (preferenceModel.isColumnVisible(column) && !columnSet.contains(column)) { TableColumn newCol = new TableColumn(ChainsawColumns.getColumnsNames() .indexOf(column)); newCol.setHeaderValue(column); columnModel.addColumn(newCol); } } } }); /** * We listen for new Key's coming in so we can get them automatically added as columns */ tableModel.addNewKeyListener(new NewKeyListener() { public void newKeyAdded(NewKeyEvent e) { table.addColumn(new TableColumn(e.getNewModelIndex())); } }); tableModel.addPropertyChangeListener("cyclic", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent arg0) { if (tableModel.isCyclic()) { MessageCenter.getInstance().getLogger().warn( "Changed to Cyclic Mode. Maximum # events kept: " + tableModel.getMaxSize()); } else { MessageCenter.getInstance().getLogger().warn( "Changed to Unlimited Mode. Warning, you may run out of memory."); } } }); table.setRowHeight(20); table.setShowGrid(false); scrollToBottom = new ScrollToBottom(true); // ========================================== tableModel.addLoggerNameListener(logTreeModel); /** * Set the Display rule to use the mediator, the model will add itself as a property * change listener and update itself when the rule changes. */ tableModel.setDisplayRule(ruleMediator); logTreePanel = new LoggerNameTreePanel(logTreeModel); /** * Set the LoggerRule to be the LoggerTreePanel, as this visual component * is a rule itself, and the RuleMediator will automatically listen * when it's rule state changes. */ ruleMediator.setLoggerRule(logTreePanel); /*** * Setup a popup menu triggered for Timestamp column to allow time stamp format changes */ final JPopupMenu dateFormatChangePopup = new JPopupMenu(); final JRadioButtonMenuItem isoButton = new JRadioButtonMenuItem(new AbstractAction( "Use ISO8601Format") { public void actionPerformed(ActionEvent e) { preferenceModel.setDateFormatPattern("ISO8601"); } }); final JRadioButtonMenuItem simpleTimeButton = new JRadioButtonMenuItem(new AbstractAction( "Use simple time") { public void actionPerformed(ActionEvent e) { preferenceModel.setDateFormatPattern("HH:mm:ss"); } }); ButtonGroup dfBG = new ButtonGroup(); dfBG.add(isoButton); dfBG.add(simpleTimeButton); isoButton.setSelected(true); dateFormatChangePopup.add(isoButton); dateFormatChangePopup.add(simpleTimeButton); setLayout(new BorderLayout()); table.getTableHeader().addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { checkEvent(e); } public void mousePressed(MouseEvent e) { checkEvent(e); } public void mouseReleased(MouseEvent e) { checkEvent(e); } private void checkEvent(MouseEvent e) { if (e.isPopupTrigger()) { TableColumnModel colModel = table.getColumnModel(); int index = colModel.getColumnIndexAtX(e.getX()); int modelIndex = colModel.getColumn(index) .getModelIndex(); if ((modelIndex + 1) == ChainsawColumns.INDEX_TIMESTAMP_COL_NAME) { dateFormatChangePopup.show(e.getComponent(), e.getX(), e.getY()); } } } }); PropertyChangeListener datePrefsChangeListener = new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { LogPanelPreferenceModel model = (LogPanelPreferenceModel) evt.getSource(); isoButton.setSelected(model.isUseISO8601Format()); simpleTimeButton.setSelected(!model.isUseISO8601Format() && !model.isCustomDateFormat()); if (model.isUseISO8601Format()) { renderer.setDateFormatter(new ISO8601DateFormat()); } else { renderer.setDateFormatter(new SimpleDateFormat( model.getDateFormatPattern())); } table.tableChanged(new TableModelEvent(getModel())); } }; PropertyChangeListener loggerPrecisionChangeListener = new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { LogPanelPreferenceModel model = (LogPanelPreferenceModel) evt.getSource(); renderer.setLoggerPrecision(model.getLoggerPrecision()); table.tableChanged(new TableModelEvent(getModel())); } }; preferenceModel.addPropertyChangeListener("loggerPrecision", loggerPrecisionChangeListener); preferenceModel.addPropertyChangeListener("dateFormatPattern", datePrefsChangeListener); preferenceModel.addPropertyChangeListener("dateFormatPattern", datePrefsChangeListener); SettingsManager.getInstance().addSettingsListener(renderer); table.setDefaultRenderer(Object.class, renderer); table.addMouseMotionListener(new TableColumnDetailMouseListener(table, tableModel)); //HACK - fix the way columns are sized..should be saved off and loaded later table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); detail = new JEditorPane(ChainsawConstants.DETAIL_CONTENT_TYPE, ""); detail.setEditable(false); detailPaneUpdater = new DetailPaneUpdater(this, detail, (EventContainer) tableModel); addPropertyChangeListener("detailPaneConversionPattern", detailPaneUpdater); upperPanel = new JPanel(new BorderLayout()); upperPanel.setBorder(BorderFactory.createEmptyBorder(2, 5, 2, 0)); final JLabel filterLabel = new JLabel("Refine focus on: "); filterLabel.setFont(filterLabel.getFont().deriveFont(Font.BOLD)); JPanel upperLeftPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 3, 0)); upperLeftPanel.add(filterLabel); final JTextField filterText = new JTextField(); filterText.addKeyListener(new ExpressionRuleContext(filterModel, filterText)); ruleMediator.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { Rule rule = ruleMediator.getRefinementRule(); // TODO need to work out how to suspend the DocumentChangeListener reFilter temporarily while this bit updates if ((rule != null) && rule instanceof RefinementFocusRule) { RefinementFocusRule refineRule = (RefinementFocusRule) ruleMediator.getRefinementRule(); filterText.setText(refineRule.getExpression()); } } }); filterText.getDocument().addDocumentListener(new DelayedFilterTextDocumentListener( filterText, ruleMediator)); upperPanel.add(filterText, BorderLayout.CENTER); upperPanel.add(upperLeftPanel, BorderLayout.WEST); JPanel upperRightPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0)); upperPanel.add(upperRightPanel, BorderLayout.EAST); eventsAndStatusPanel = new JPanel(); eventsAndStatusPanel.setLayout(new BorderLayout()); final JScrollPane eventsPane = new JScrollPane(table); eventsAndStatusPanel.add(eventsPane, BorderLayout.CENTER); final JPanel statusLabelPanel = new JPanel(); statusLabelPanel.setLayout(new BorderLayout()); statusLabelPanel.add(upperPanel, BorderLayout.CENTER); eventsAndStatusPanel.add(statusLabelPanel, BorderLayout.NORTH); //set valueisadjusting if holding down a key - don't process setdetail events table.addKeyListener(new KeyListener() { public void keyTyped(KeyEvent e) { } public void keyPressed(KeyEvent e) { synchronized (detail) { table.getSelectionModel().setValueIsAdjusting(true); detail.notify(); } } public void keyReleased(KeyEvent e) { synchronized (detail) { table.getSelectionModel().setValueIsAdjusting(false); detail.notify(); } } }); final JScrollPane detailPane = new JScrollPane(detail); detailPane.setPreferredSize(new Dimension(900, 50)); detailPanel.add(detailPane, BorderLayout.CENTER); final JToolBar detailToolbar = new JToolBar(JToolBar.HORIZONTAL); detailToolbar.setFloatable(false); final LayoutEditorPane layoutEditorPane = new LayoutEditorPane(); final JDialog layoutEditorDialog = new JDialog((JFrame) null, "Pattern Editor"); layoutEditorDialog.getContentPane().add(layoutEditorPane); layoutEditorDialog.setSize(640, 480); layoutEditorPane.addCancelActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { layoutEditorDialog.setVisible(false); } }); layoutEditorPane.addOkActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { setDetailPaneConversionPattern(layoutEditorPane.getConversionPattern()); layoutEditorDialog.setVisible(false); } }); Action editDetailAction = new AbstractAction("Edit...", new ImageIcon(ChainsawIcons.ICON_EDIT_RECEIVER)) { public void actionPerformed(ActionEvent e) { layoutEditorPane.setConversionPattern(getDetailPaneConversionPattern()); Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); Point p = new Point(((int) ((size.getWidth() / 2) - (layoutEditorDialog.getSize().getWidth() / 2))), ((int) ((size.getHeight() / 2) - (layoutEditorDialog.getSize().getHeight() / 2)))); layoutEditorDialog.setLocation(p); layoutEditorDialog.setVisible(true); } }; editDetailAction.putValue(Action.SHORT_DESCRIPTION, "opens a Dialog window to Edit the Pattern Layout text"); final SmallButton editDetailButton = new SmallButton(editDetailAction); editDetailButton.setText(null); detailToolbar.add(Box.createHorizontalGlue()); detailToolbar.add(editDetailButton); detailToolbar.addSeparator(); detailToolbar.add(Box.createHorizontalStrut(5)); Action closeDetailAction = new AbstractAction(null, LineIconFactory.createCloseIcon()) { public void actionPerformed(ActionEvent arg0) { getPreferenceModel().setDetailPaneVisible(false); } }; closeDetailAction.putValue(Action.SHORT_DESCRIPTION, "Hides the Detail Panel"); SmallButton closeDetailButton = new SmallButton(closeDetailAction); detailToolbar.add(closeDetailButton); detailPanel.add(detailToolbar, BorderLayout.NORTH); JPopupMenu editDetailPopupMenu = new JPopupMenu(); editDetailPopupMenu.add(editDetailAction); editDetailPopupMenu.addSeparator(); final ButtonGroup layoutGroup = new ButtonGroup(); JRadioButtonMenuItem defaultLayoutRadio = new JRadioButtonMenuItem(new AbstractAction( "Set to Default Layout") { public void actionPerformed(ActionEvent e) { setDetailPaneConversionPattern(DefaultLayoutFactory.getDefaultPatternLayout()); } }); editDetailPopupMenu.add(defaultLayoutRadio); layoutGroup.add(defaultLayoutRadio); defaultLayoutRadio.setSelected(true); JRadioButtonMenuItem tccLayoutRadio = new JRadioButtonMenuItem(new AbstractAction( "Set to TCCLayout") { public void actionPerformed(ActionEvent e) { setDetailPaneConversionPattern(PatternLayout.TTCC_CONVERSION_PATTERN); } }); editDetailPopupMenu.add(tccLayoutRadio); layoutGroup.add(tccLayoutRadio); PopupListener editDetailPopupListener = new PopupListener(editDetailPopupMenu); detail.addMouseListener(editDetailPopupListener); lowerPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, eventsAndStatusPanel, detailPanel); lowerPanel.setDividerSize(5); lowerPanel.setResizeWeight(0.5); lowerPanel.setBorder(null); lowerPanel.setContinuousLayout(true); lowerPanel.setOneTouchExpandable(true); nameTreeAndMainPanelSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); nameTreeAndMainPanelSplit.add(logTreePanel); nameTreeAndMainPanelSplit.add(lowerPanel); nameTreeAndMainPanelSplit.setOneTouchExpandable(true); nameTreeAndMainPanelSplit.setToolTipText("Still under development...."); nameTreeAndMainPanelSplit.setDividerLocation(-1); add(nameTreeAndMainPanelSplit, BorderLayout.CENTER); /** * This listener deals with when the user hides the LogPanel, * by disabling the use of the splitpane */ logTreePanel.addComponentListener(new ComponentListener() { public void componentHidden(ComponentEvent e) { nameTreeAndMainPanelSplit.setEnabled(false); nameTreeAndMainPanelSplit.setOneTouchExpandable(false); getPreferenceModel().setLogTreePanelVisible(false); } public void componentMoved(ComponentEvent e) { } public void componentResized(ComponentEvent e) { } public void componentShown(ComponentEvent e) { nameTreeAndMainPanelSplit.setEnabled(true); nameTreeAndMainPanelSplit.setOneTouchExpandable(true); nameTreeAndMainPanelSplit.setDividerLocation(-1); getPreferenceModel().setLogTreePanelVisible(true); } }); // add(lowerPanel, BorderLayout.CENTER); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent evt) { if (((evt.getFirstIndex() == evt.getLastIndex()) && (evt.getFirstIndex() > 0)) || (evt.getValueIsAdjusting())) { return; } final ListSelectionModel lsm = (ListSelectionModel) evt.getSource(); if (lsm.isSelectionEmpty()) { if (isVisible()) { statusBar.setNothingSelected(); } if (detail.getDocument().getDefaultRootElement() != null) { detailPaneUpdater.setSelectedRow(-1); } } else { if (table.getSelectedRow() > -1) { int selectedRow = table.getSelectedRow(); if (isVisible()) { updateStatusBar(); } try { if (tableModel.getRowCount() >= selectedRow) { detailPaneUpdater.setSelectedRow(table.getSelectedRow()); } else { detailPaneUpdater.setSelectedRow(-1); } } catch (Exception e) { e.printStackTrace(); detailPaneUpdater.setSelectedRow(-1); } } } } }); final JMenuItem menuItemToggleDock = new JMenuItem("Undock/dock"); undockedFrame = new JFrame(ident); undockedFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); if (ChainsawIcons.UNDOCKED_ICON != null) { undockedFrame.setIconImage(new ImageIcon( ChainsawIcons.UNDOCKED_ICON).getImage()); } externalPanel = new DockablePanel(); externalPanel.setLayout(new BorderLayout()); undockedFrame.getContentPane().add(externalPanel); dockingAction = new AbstractAction("Undock") { public void actionPerformed(ActionEvent evt) { if (isDocked()) { undock(); } else { dock(); } } }; dockingAction.putValue(Action.SMALL_ICON, new ImageIcon(ChainsawIcons.UNDOCK)); menuItemToggleDock.setAction(dockingAction); undockedFrame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { dock(); } }); JMenuItem menuItemColorPanel = new JMenuItem("LogPanel Color Filter..."); menuItemColorPanel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { showColorPanel(); } }); menuItemColorPanel.setIcon(ChainsawIcons.ICON_PREFERENCES); JMenuItem menuItemLogPanelPreferences = new JMenuItem( "LogPanel Preferences..."); menuItemLogPanelPreferences.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { showPreferences(); } }); menuItemLogPanelPreferences.setIcon(ChainsawIcons.ICON_PREFERENCES); final JCheckBoxMenuItem menuItemToggleToolTips = new JCheckBoxMenuItem( "Show ToolTips"); menuItemToggleToolTips.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { getPreferenceModel().setToolTips(menuItemToggleToolTips.isSelected()); } }); menuItemToggleToolTips.setIcon(new ImageIcon(ChainsawIcons.TOOL_TIP)); getPreferenceModel().addPropertyChangeListener("toolTips", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean value = ((Boolean) evt.getNewValue()).booleanValue(); menuItemToggleToolTips.setSelected(value); } }); final JCheckBoxMenuItem menuItemLoggerTree = new JCheckBoxMenuItem("Logger Tree panel"); menuItemLoggerTree.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { getPreferenceModel().setLogTreePanelVisible(menuItemLoggerTree.isSelected()); }}); getPreferenceModel().addPropertyChangeListener("logTreePanelVisible", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean value = ((Boolean)evt.getNewValue()).booleanValue(); menuItemLoggerTree.setSelected(value); }}); menuItemFocusOn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { if (currentPoint != null) { int column = table.columnAtPoint(currentPoint); int row = table.rowAtPoint(currentPoint); String colName = table.getColumnName(column); String value = ""; if (colName.equalsIgnoreCase( ChainsawConstants.TIMESTAMP_COL_NAME)) { JComponent comp = (JComponent) table.getCellRenderer(row, column); if (comp instanceof JLabel) { value = ((JLabel) comp).getText(); } } else { value = table.getValueAt(row, column).toString(); } if (columnNameKeywordMap.containsKey(colName)) { filterText.setText(columnNameKeywordMap.get(colName) .toString() + " == '" + value + "'"); } } } }); final JMenuItem menuDefineAddCustomFilter = new JMenuItem( "Add to focus"); menuDefineAddCustomFilter.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { if (currentPoint != null) { int column = table.columnAtPoint(currentPoint); int row = table.rowAtPoint(currentPoint); String colName = table.getColumnName(column); String value = ""; if (colName.equalsIgnoreCase( ChainsawConstants.TIMESTAMP_COL_NAME)) { JComponent comp = (JComponent) table.getCellRenderer(row, column); if (comp instanceof JLabel) { value = ((JLabel) comp).getText(); } } else { value = table.getValueAt(row, column).toString(); } if (columnNameKeywordMap.containsKey(colName)) { filterText.setText(filterText.getText() + " && " + columnNameKeywordMap.get(colName).toString() + " == '" + value + "'"); } } } }); final JCheckBoxMenuItem menuItemScrollBottom = new JCheckBoxMenuItem("Scroll to bottom"); menuItemScrollBottom.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { getPreferenceModel().setScrollToBottom(menuItemScrollBottom.isSelected()); } }); getPreferenceModel().addPropertyChangeListener("scrollToBottom", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean value = ((Boolean)evt.getNewValue()).booleanValue(); menuItemScrollBottom.setSelected(value); scrollToBottom.scroll(value); }}); menuItemScrollBottom.setIcon(new ImageIcon( ChainsawIcons.SCROLL_TO_BOTTOM)); JMenuItem menuItemRemoveDisplayFilter = new JMenuItem( "Remove all display filters"); menuItemRemoveDisplayFilter.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { tableModel.setDisplayRule(null); } }); final JPopupMenu p = new JPopupMenu(); final JCheckBoxMenuItem menuItemToggleDetails = new JCheckBoxMenuItem( "Show Detail Pane"); menuItemToggleDetails.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { getPreferenceModel().setDetailPaneVisible(menuItemToggleDetails.isSelected()); } }); getPreferenceModel().addPropertyChangeListener("detailPaneVisible", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { boolean value = ((Boolean) evt.getNewValue()).booleanValue(); menuItemToggleDetails.setSelected(value); } }); menuItemToggleDetails.setIcon(new ImageIcon(ChainsawIcons.INFO)); /** * We set this to true first, because the Split pane hasn't been laid * out yet, and isDetailPaneVisible() will therefore return false. */ menuItemToggleDetails.getModel().setSelected(true); final Action clearFocusAction = new AbstractAction("Clear focus") { public void actionPerformed(ActionEvent e) { filterText.setText(null); ruleMediator.setRefinementRule(null); } }; clearFocusAction.setEnabled(false); ruleMediator.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { clearFocusAction.setEnabled((ruleMediator.getRefinementRule() != null) || (ruleMediator.getLoggerRule() != null)); } }); p.add(clearFocusAction); p.add(menuItemFocusOn); p.add(menuDefineAddCustomFilter); p.add(new JSeparator()); p.add(menuItemToggleDetails); p.add(menuItemToggleToolTips); p.add(menuItemScrollBottom); p.add(menuItemLoggerTree); p.add(new JSeparator()); p.add(menuItemToggleDock); p.add(new JSeparator()); p.add(menuItemColorPanel); p.add(menuItemLogPanelPreferences); final PopupListener popupListener = new PopupListener(p); eventsPane.addMouseListener(popupListener); table.addMouseListener(popupListener); tableModel.addEventCountListener(new EventCountListener() { public void eventCountChanged(int currentCount, int totalCount) { if (LogPanel.this.isVisible()) { statusBar.setSelectedLine(0, currentCount, totalCount); } } }); final ChainsawCyclicBufferTableModel cyclicModel = (ChainsawCyclicBufferTableModel) tableModel; tableModel.addEventCountListener(new EventCountListener() { final NumberFormat formatter = NumberFormat.getPercentInstance(); boolean warning75 = false; boolean warning100 = false; public void eventCountChanged(int currentCount, int totalCount) { if (tableModel.isCyclic()) { double percent = ((double) totalCount) / cyclicModel.getMaxSize(); String msg = null; if ((percent > 0.75) && (percent < 1.0) && !warning75) { msg = "Warning :: " + formatter.format(percent) + " of the '" + getIdentifier() + "' buffer has been used"; warning75 = true; } else if ((percent >= 1.0) && !warning100) { msg = "Warning :: " + formatter.format(percent) + " of the '" + getIdentifier() + "' buffer has been used. Older events are being discarded."; warning100 = true; } if (msg != null) { MessageCenter.getInstance().getLogger().info(msg); } } } }); undockedToolbar = createDockwindowToolbar(); externalPanel.add(undockedToolbar, BorderLayout.NORTH); undockedFrame.pack(); Container container = detailDialog.getContentPane(); final JTextArea detailArea = new JTextArea(10, 40); detailArea.setEditable(false); container.setLayout(new BoxLayout(container, BoxLayout.Y_AXIS)); container.add(new JScrollPane(detailArea)); throwableRenderPanel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Object o = table.getValueAt(table.getSelectedRow(), table.getSelectedColumn()); detailDialog.setTitle(table.getColumnName( table.getSelectedColumn()) + " detail..."); if (o instanceof String[]) { StringBuffer buf = new StringBuffer(); String[] ti = (String[]) o; buf.append(ti[0]).append("\n"); for (int i = 1; i < ti.length; i++) { buf.append(ti[i]).append("\n "); } detailArea.setText(buf.toString()); } else { detailArea.setText((o == null) ? "" : o.toString()); } detailDialog.setLocation(LogPanel.this.getLocationOnScreen()); SwingUtilities.invokeLater(new Runnable() { public void run() { detailDialog.setVisible(true); } }); } }); detailDialog.pack(); }
|
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/76be2094a12e6f19f0dffc06c0dc5419960d1fb5/LogPanel.java/buggy/src/java/org/apache/log4j/chainsaw/LogPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1343,
5537,
12,
6385,
15945,
2219,
1482,
5190,
2327,
5190,
16,
6385,
780,
6392,
16,
780,
2575,
559,
15329,
5644,
33,
6392,
31,
2211,
18,
2327,
5190,
33,
2327,
5190,
31,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
5237,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
5237,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
3776,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
3776,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
10398,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
10398,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
5997,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
5997,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
8757,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
8757,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
2908,
39,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
2908,
39,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
17421,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
15811,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
8723,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
11210,
67,
6776,
1769,
2827,
461,
8736,
863,
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,
1071,
1343,
5537,
12,
6385,
15945,
2219,
1482,
5190,
2327,
5190,
16,
6385,
780,
6392,
16,
780,
2575,
559,
15329,
5644,
33,
6392,
31,
2211,
18,
2327,
5190,
33,
2327,
5190,
31,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
5237,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
5237,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
3776,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
3776,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2918,
18,
10398,
67,
4935,
67,
1985,
16,
7735,
1133,
974,
4301,
18,
10398,
67,
6776,
1769,
2827,
461,
8736,
863,
18,
458,
12,
15945,
2219,
2
] |
||
throw new MIException("No answer");
|
throw new MIException(MIPlugin.getResourceString("src.common.No_answer"));
|
public ICDISession createLaunchSession(ILaunchConfiguration config, IFile exe) throws CDIException { Session session = null; boolean failed = false; try { session = (Session) super.createLaunchSession(config, exe); session.getMISession().setCommandFactory(commandFactory); // For windows we need to start the inferior in a new console window // to separate the Inferior std{in,out,err} from gdb std{in,out,err} MISession mi = session.getMISession(); try { CommandFactory factory = mi.getCommandFactory(); MIGDBSet set = factory.createMIGDBSet(new String[] { "new-console" }); mi.postCommand(set); MIInfo info = set.getMIInfo(); if (info == null) { throw new MIException("No answer"); } } catch (MIException e) { // We ignore this exception, for example // on GNU/Linux the new-console is an error. } initializeLibraries(config, session); return session; } catch (CDIException e) { failed = true; throw e; } finally { if (failed) { if (session != null) { try { session.terminate(); } catch (Exception ex) { // ignore the exception here. } } } } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f3a9fae6384fd8bb36474b1661bb6d0b65b38d5f/CygwinGDBDebugger.java/clean/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/CygwinGDBDebugger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
26899,
2565,
2157,
752,
9569,
2157,
12,
2627,
4760,
1750,
642,
16,
467,
812,
15073,
13,
1216,
385,
2565,
503,
288,
202,
202,
2157,
1339,
273,
446,
31,
202,
202,
6494,
2535,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
3184,
273,
261,
2157,
13,
2240,
18,
2640,
9569,
2157,
12,
1425,
16,
15073,
1769,
1082,
202,
3184,
18,
588,
7492,
2157,
7675,
542,
2189,
1733,
12,
3076,
1733,
1769,
1082,
202,
759,
2457,
9965,
732,
1608,
358,
787,
326,
12455,
9659,
316,
279,
394,
2983,
2742,
1082,
202,
759,
358,
9004,
326,
657,
586,
9659,
2044,
95,
267,
16,
659,
16,
370,
97,
628,
314,
1966,
2044,
95,
267,
16,
659,
16,
370,
97,
1082,
202,
7492,
2157,
12837,
273,
1339,
18,
588,
7492,
2157,
5621,
1082,
202,
698,
288,
9506,
202,
2189,
1733,
3272,
273,
12837,
18,
588,
2189,
1733,
5621,
9506,
202,
49,
3047,
2290,
694,
444,
273,
3272,
18,
2640,
49,
3047,
2290,
694,
12,
2704,
514,
8526,
288,
315,
2704,
17,
8698,
6,
15549,
9506,
202,
9197,
18,
2767,
2189,
12,
542,
1769,
9506,
202,
7492,
966,
1123,
273,
444,
18,
588,
7492,
966,
5621,
9506,
202,
430,
261,
1376,
422,
446,
13,
288,
6862,
202,
12849,
394,
20806,
503,
2932,
2279,
5803,
8863,
9506,
202,
97,
1082,
202,
97,
1044,
261,
7492,
503,
425,
13,
288,
9506,
202,
759,
1660,
2305,
333,
1520,
16,
364,
3454,
9506,
202,
759,
603,
611,
50,
57,
19,
19475,
326,
394,
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,
26899,
2565,
2157,
752,
9569,
2157,
12,
2627,
4760,
1750,
642,
16,
467,
812,
15073,
13,
1216,
385,
2565,
503,
288,
202,
202,
2157,
1339,
273,
446,
31,
202,
202,
6494,
2535,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
3184,
273,
261,
2157,
13,
2240,
18,
2640,
9569,
2157,
12,
1425,
16,
15073,
1769,
1082,
202,
3184,
18,
588,
7492,
2157,
7675,
542,
2189,
1733,
12,
3076,
1733,
1769,
1082,
202,
759,
2457,
9965,
732,
1608,
358,
787,
326,
12455,
9659,
316,
279,
394,
2983,
2742,
1082,
202,
759,
358,
9004,
326,
657,
586,
9659,
2044,
95,
267,
16,
659,
16,
370,
97,
628,
314,
1966,
2044,
95,
267,
16,
659,
16,
370,
97,
2
] |
int attemptsNumber = 20; Statement stmt = null; try { Connection con = RDBMServices.getConnection(); try { RDBMServices.setAutoCommit(con, false); stmt = con.createStatement(); String sQuery = "SELECT SEQUENCE_VALUE FROM UP_SEQUENCE WHERE SEQUENCE_NAME='UP_FRAGMENT'"; for (int i = 0; i < attemptsNumber; i++) { try { if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getNextFragmentId(): " + sQuery); ResultSet rs = stmt.executeQuery(sQuery); int currentId = 0; rs.next(); currentId = rs.getInt(1); if ( rs != null ) rs.close(); String sUpdate = "UPDATE UP_SEQUENCE SET SEQUENCE_VALUE="+(currentId + 1)+" WHERE SEQUENCE_NAME='UP_FRAGMENT'"; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getNextFragmentId(): " + sUpdate); stmt.executeUpdate(sUpdate); RDBMServices.commit(con); return new String ( (currentId + 1) + "" ); } catch (Exception sqle) { RDBMServices.rollback(con); Thread.sleep(500); } } } finally { if ( stmt != null ) stmt.close(); RDBMServices.releaseConnection(con); } } catch ( Exception e ) { throw new PortalException(e); } throw new PortalException("Unable to generate a new next fragment node id!"); }
|
int attemptsNumber = 20; Statement stmt = null; try { Connection con = RDBMServices.getConnection(); try { RDBMServices.setAutoCommit(con, false); stmt = con.createStatement(); String sQuery = "SELECT SEQUENCE_VALUE FROM UP_SEQUENCE WHERE SEQUENCE_NAME='UP_FRAGMENT'"; for (int i = 0; i < attemptsNumber; i++) { try { if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getNextFragmentId(): " + sQuery); ResultSet rs = stmt.executeQuery(sQuery); int currentId = 0; rs.next(); currentId = rs.getInt(1); if ( rs != null ) rs.close(); String sUpdate = "UPDATE UP_SEQUENCE SET SEQUENCE_VALUE="+(currentId + 1)+" WHERE SEQUENCE_NAME='UP_FRAGMENT'"; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getNextFragmentId(): " + sUpdate); stmt.executeUpdate(sUpdate); RDBMServices.commit(con); return new String ( (currentId + 1) + "" ); } catch (Exception sqle) { RDBMServices.rollback(con); Thread.sleep(500); } } } finally { if ( stmt != null ) stmt.close(); RDBMServices.releaseConnection(con); } } catch ( Exception e ) { throw new PortalException(e); } throw new PortalException("Unable to generate a new next fragment node id!"); }
|
public synchronized String getNextFragmentId() throws PortalException { int attemptsNumber = 20; Statement stmt = null; try { Connection con = RDBMServices.getConnection(); try { RDBMServices.setAutoCommit(con, false); stmt = con.createStatement(); String sQuery = "SELECT SEQUENCE_VALUE FROM UP_SEQUENCE WHERE SEQUENCE_NAME='UP_FRAGMENT'"; for (int i = 0; i < attemptsNumber; i++) { try { if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getNextFragmentId(): " + sQuery); ResultSet rs = stmt.executeQuery(sQuery); int currentId = 0; rs.next(); currentId = rs.getInt(1); if ( rs != null ) rs.close(); String sUpdate = "UPDATE UP_SEQUENCE SET SEQUENCE_VALUE="+(currentId + 1)+" WHERE SEQUENCE_NAME='UP_FRAGMENT'"; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getNextFragmentId(): " + sUpdate); stmt.executeUpdate(sUpdate); RDBMServices.commit(con); return new String ( (currentId + 1) + "" ); } catch (Exception sqle) { RDBMServices.rollback(con); // Assume a concurrent update. Try again after some random amount of milliseconds. Thread.sleep(500); // Retry in up to 1/2 seconds } } } finally { if ( stmt != null ) stmt.close(); RDBMServices.releaseConnection(con); } } catch ( Exception e ) { throw new PortalException(e); } throw new PortalException("Unable to generate a new next fragment node id!"); }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/a70ada928fe06bf9bc2b55f2f32208ea99e82cb6/AggregatedUserLayoutStore.java/clean/source/org/jasig/portal/layout/alm/AggregatedUserLayoutStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
514,
6927,
7456,
548,
1435,
1216,
25478,
503,
288,
377,
509,
7531,
1854,
273,
4200,
31,
377,
8056,
3480,
273,
446,
31,
377,
775,
288,
1377,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
1377,
775,
288,
3639,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
629,
1769,
3639,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
514,
26656,
273,
315,
4803,
27118,
67,
4051,
4571,
7376,
67,
25330,
4852,
27118,
67,
1985,
2218,
3079,
67,
9981,
26903,
4970,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7531,
1854,
31,
277,
27245,
288,
540,
775,
288,
2398,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
1171,
613,
18,
4148,
2932,
6078,
690,
1299,
3744,
2257,
2866,
588,
2134,
7456,
548,
13332,
315,
397,
26656,
1769,
1850,
10842,
3597,
273,
3480,
18,
8837,
1138,
12,
87,
1138,
1769,
1850,
509,
783,
548,
273,
374,
31,
1850,
3597,
18,
4285,
5621,
1850,
783,
548,
273,
3597,
18,
588,
1702,
12,
21,
1769,
1850,
309,
261,
3597,
480,
446,
262,
3597,
18,
4412,
5621,
5411,
514,
272,
1891,
273,
315,
8217,
7376,
67,
25330,
7855,
27118,
67,
4051,
1546,
15,
12,
2972,
548,
397,
404,
13,
9078,
4852,
27118,
67,
1985,
2218,
3079,
67,
9981,
26903,
4970,
31,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
7734,
613,
18,
4148,
2932,
6078,
690,
1299,
3744,
2257,
2866,
588,
2134,
7456,
548,
13332,
315,
397,
272,
1891,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
514,
6927,
7456,
548,
1435,
1216,
25478,
503,
288,
377,
509,
7531,
1854,
273,
4200,
31,
377,
8056,
3480,
273,
446,
31,
377,
775,
288,
1377,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
1377,
775,
288,
3639,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
629,
1769,
3639,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
514,
26656,
273,
315,
4803,
27118,
67,
4051,
4571,
7376,
67,
25330,
4852,
27118,
67,
1985,
2218,
3079,
67,
9981,
26903,
4970,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7531,
1854,
31,
277,
27245,
288,
540,
775,
288,
2398,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
1171,
613,
2
] |
if (log.isTraceEnabled()) { log.trace("It's closed"); }
|
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a close is in operation. //But it is possible for a receive to be called while a message listener is set if (listening) { throw new JBossJMSException("A message listener is already registered"); } receiving = true; receiverThread = Thread.currentThread(); long startTimestamp = System.currentTimeMillis(); JBossMessage m = null; try { while(true) { try { if (timeout == 0) { if (log.isTraceEnabled()) log.trace("receive with no timeout"); if (!receiverStopping) { m = getMessage(0); } if (m == null) { return null; } if (log.isTraceEnabled()) { log.trace("Got message: " + m); } } else if (timeout == -1) { //ReceiveNoWait if (log.isTraceEnabled()) { log.trace("receive noWait"); } if (!receiverStopping) { m = getMessage(-1); } if (m == null) { if (log.isTraceEnabled()) { log.trace("No message available"); } return null; } } else { if (log.isTraceEnabled()) { log.trace("receive timeout " + timeout + " ms, blocking poll on queue"); } if (!receiverStopping) { m = getMessage(timeout); } if (m == null) { // timeout expired if (log.isTraceEnabled()) { log.trace(timeout + " ms timeout expired"); } return null; } } } catch(InterruptedException e) { if (log.isTraceEnabled()) { log.trace("Thread was interrupted"); } if (closed) { if (log.isTraceEnabled()) { log.trace("It's closed"); } return null; } else { throw e; } } if (log.isTraceEnabled()) { log.trace("got " + m); } if (!m.isExpired()) { if (log.isTraceEnabled()) { log.trace("message " + m + " is not expired, returning it to the caller"); } preDeliver(m); postDeliver(m); return m; } log.debug("message expired, discarding"); // discard the message, adjust timeout and reenter the buffer if (timeout != 0) { timeout -= System.currentTimeMillis() - startTimestamp; } } } finally { receiving = false; receiverThread = null; } }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/e07e82660e41ece086f5f54b009b334608f1356d/MessageCallbackHandler.java/buggy/src/main/org/jboss/jms/client/remoting/MessageCallbackHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
2350,
6798,
12,
5748,
2021,
16,
13270,
1305,
9267,
23007,
9197,
16,
23499,
5971,
1702,
13,
1377,
1216,
20343,
16,
7558,
282,
288,
5375,
368,
9673,
326,
23007,
4765,
353,
2202,
286,
20528,
16,
1377,
368,
305,
12044,
1404,
506,
3323,
364,
279,
6798,
358,
506,
2566,
1347,
4042,
6798,
353,
316,
1674,
1377,
368,
280,
1323,
279,
1746,
353,
316,
1674,
18,
1377,
368,
31167,
518,
353,
3323,
364,
279,
6798,
358,
506,
2566,
1323,
279,
883,
2991,
353,
444,
5411,
309,
261,
18085,
310,
13,
1377,
288,
540,
604,
394,
804,
38,
8464,
46,
3537,
503,
2932,
37,
883,
2991,
353,
1818,
4104,
8863,
9079,
289,
5411,
15847,
273,
638,
31,
5411,
5971,
3830,
273,
4884,
18,
2972,
3830,
5621,
5411,
1525,
787,
4921,
273,
2332,
18,
2972,
28512,
5621,
5411,
804,
38,
8464,
1079,
312,
273,
446,
31,
5411,
775,
1377,
288,
540,
1323,
12,
3767,
13,
540,
288,
5411,
775,
5411,
288,
9079,
309,
261,
4538,
422,
374,
13,
9079,
288,
5375,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
613,
18,
5129,
2932,
18149,
598,
1158,
2021,
8863,
4766,
565,
309,
16051,
24454,
21994,
13,
5375,
288,
5397,
312,
273,
2381,
12,
20,
1769,
5375,
289,
4766,
565,
309,
261,
81,
422,
446,
13,
5375,
288,
5397,
327,
446,
31,
5375,
289,
4766,
565,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
15617,
883,
30,
315,
397,
312,
1769,
289,
9079,
289,
9079,
469,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
2350,
6798,
12,
5748,
2021,
16,
13270,
1305,
9267,
23007,
9197,
16,
23499,
5971,
1702,
13,
1377,
1216,
20343,
16,
7558,
282,
288,
5375,
368,
9673,
326,
23007,
4765,
353,
2202,
286,
20528,
16,
1377,
368,
305,
12044,
1404,
506,
3323,
364,
279,
6798,
358,
506,
2566,
1347,
4042,
6798,
353,
316,
1674,
1377,
368,
280,
1323,
279,
1746,
353,
316,
1674,
18,
1377,
368,
31167,
518,
353,
3323,
364,
279,
6798,
358,
506,
2566,
1323,
279,
883,
2991,
353,
444,
5411,
309,
261,
18085,
310,
13,
1377,
288,
540,
604,
394,
804,
38,
8464,
46,
3537,
503,
2932,
37,
883,
2991,
353,
1818,
4104,
8863,
9079,
289,
5411,
15847,
273,
638,
31,
5411,
5971,
3830,
273,
2
] |
|
return fetchSvci().getAddContentCalendarCollections();
|
TreeMap tm = new TreeMap(listCollator); Iterator it = fetchSvci().getAddContentCalendarCollections().iterator(); while (it.hasNext()) { BwCalendar cal = (BwCalendar)it.next(); tm.put(cal.getName(), cal); } return tm.values();
|
public Collection getAddContentCalendarCollections() { try { return fetchSvci().getAddContentCalendarCollections(); } catch (Throwable t) { err.emit(t); return null; } }
|
50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/1ed296e45760dd558854aa0828eee1fa77c815a0/BwActionFormBase.java/clean/calendar3/webcommon/src/org/bedework/webcommon/BwActionFormBase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2200,
336,
986,
1350,
7335,
15150,
1435,
288,
565,
775,
288,
1377,
16381,
6118,
273,
394,
16381,
12,
1098,
13535,
639,
1769,
225,
4498,
518,
273,
2158,
17444,
77,
7675,
588,
986,
1350,
7335,
15150,
7675,
9838,
5621,
225,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
605,
91,
7335,
1443,
273,
261,
38,
91,
7335,
13,
305,
18,
4285,
5621,
6118,
18,
458,
12,
771,
18,
17994,
9334,
1443,
1769,
289,
225,
327,
6118,
18,
2372,
5621,
377,
289,
1044,
261,
15155,
268,
13,
288,
1377,
393,
18,
18356,
12,
88,
1769,
1377,
327,
446,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2200,
336,
986,
1350,
7335,
15150,
1435,
288,
565,
775,
288,
1377,
16381,
6118,
273,
394,
16381,
12,
1098,
13535,
639,
1769,
225,
4498,
518,
273,
2158,
17444,
77,
7675,
588,
986,
1350,
7335,
15150,
7675,
9838,
5621,
225,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
605,
91,
7335,
1443,
273,
261,
38,
91,
7335,
13,
305,
18,
4285,
5621,
6118,
18,
458,
12,
771,
18,
17994,
9334,
1443,
1769,
289,
225,
327,
6118,
18,
2372,
5621,
377,
289,
1044,
261,
15155,
268,
13,
288,
1377,
393,
18,
18356,
12,
88,
1769,
1377,
327,
446,
31,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
content.add(BorderLayout.SOUTH,box);
|
panel.add(BorderLayout.SOUTH,box); content.add(BorderLayout.SOUTH,panel); updateTotalSize();
|
InstallPluginsDialog(JDialog dialog, Vector model, int mode) { super(JOptionPane.getFrameForComponent(dialog), (mode == INSTALL ? jEdit.getProperty("install-plugins.title") : jEdit.getProperty("update-plugins.title")),true); JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); JLabel label = new JLabel(jEdit.getProperty("install-plugins.caption")); label.setBorder(new EmptyBorder(0,0,6,0)); content.add(BorderLayout.NORTH,label); JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(new EmptyBorder(0,0,12,0)); plugins = new JCheckBoxList(model); plugins.getSelectionModel().addListSelectionListener(new ListHandler()); JScrollPane scroller = new JScrollPane(plugins); scroller.setPreferredSize(new Dimension(0,100)); panel.add(BorderLayout.CENTER,scroller); JPanel panel2 = new JPanel(new BorderLayout()); panel2.setBorder(new EmptyBorder(6,0,0,0)); JPanel labelBox = new JPanel(new GridLayout( (mode == UPDATE ? 6 : 5),1,0,3)); labelBox.setBorder(new EmptyBorder(0,0,3,12)); labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.name"),SwingConstants.RIGHT)); labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.author"),SwingConstants.RIGHT)); labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.latest-version"),SwingConstants.RIGHT)); if(mode == UPDATE) { labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.installed-version"),SwingConstants.RIGHT)); } labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.updated"),SwingConstants.RIGHT)); labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.description"),SwingConstants.RIGHT)); panel2.add(BorderLayout.WEST,labelBox); JPanel valueBox = new JPanel(new GridLayout( (mode == UPDATE ? 6 : 5),1,0,3)); valueBox.setBorder(new EmptyBorder(0,0,3,0)); valueBox.add(name = new JLabel()); valueBox.add(author = new JLabel()); valueBox.add(latestVersion = new JLabel()); if(mode == UPDATE) { valueBox.add(installedVersion = new JLabel()); } valueBox.add(updated = new JLabel()); valueBox.add(Box.createGlue()); panel2.add(BorderLayout.CENTER,valueBox); JPanel panel3 = new JPanel(new BorderLayout(0,3)); description = new JTextArea(6,30); description.setEditable(false); description.setLineWrap(true); description.setWrapStyleWord(true); panel3.add(BorderLayout.NORTH,new JScrollPane(description)); if(mode == INSTALL) { JPanel panel4 = new JPanel(new BorderLayout(0,3)); ButtonGroup grp = new ButtonGroup(); installUser = new JRadioButton(); String settings = jEdit.getSettingsDirectory(); if(settings == null) { settings = jEdit.getProperty("install-plugins.none"); installUser.setEnabled(false); } else { settings = MiscUtilities.constructPath(settings,"jars"); installUser.setEnabled(true); } String[] args = { settings }; installUser.setText(jEdit.getProperty("install-plugins.user",args)); grp.add(installUser); panel4.add(BorderLayout.CENTER,installUser); installSystem = new JRadioButton(); String jEditHome = jEdit.getJEditHome(); if(jEditHome == null) { jEditHome = jEdit.getProperty("install-plugins.none"); installSystem.setEnabled(false); } else { jEditHome = MiscUtilities.constructPath(jEditHome,"jars"); installSystem.setEnabled(true); } args[0] = jEditHome; installSystem.setText(jEdit.getProperty("install-plugins.system",args)); grp.add(installSystem); panel4.add(BorderLayout.SOUTH,installSystem); if(installUser.isEnabled()) installUser.setSelected(true); else installSystem.setSelected(true); panel3.add(BorderLayout.CENTER,panel4); } panel3.add(BorderLayout.SOUTH,downloadSource = new JCheckBox( jEdit.getProperty("install-plugins.downloadSource"))); downloadSource.setSelected(jEdit.getBooleanProperty("install-plugins" + ".downloadSource.value")); panel2.add(BorderLayout.SOUTH,panel3); panel.add(BorderLayout.SOUTH,panel2); content.add(BorderLayout.CENTER,panel); Box box = new Box(BoxLayout.X_AXIS); box.add(Box.createGlue()); install = new JButton(jEdit.getProperty("install-plugins.install")); install.setEnabled(false); getRootPane().setDefaultButton(install); install.addActionListener(new ActionHandler()); box.add(install); box.add(Box.createHorizontalStrut(6)); cancel = new JButton(jEdit.getProperty("common.cancel")); cancel.addActionListener(new ActionHandler()); box.add(cancel); box.add(Box.createHorizontalStrut(6)); box.add(Box.createGlue()); content.add(BorderLayout.SOUTH,box); pack(); setLocationRelativeTo(dialog); show(); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/a58f3534c38b610fc6131301b1b484e8974d83c0/InstallPluginsDialog.java/clean/org/gjt/sp/jedit/pluginmgr/InstallPluginsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6410,
9461,
6353,
12,
46,
6353,
6176,
16,
5589,
938,
16,
509,
1965,
13,
202,
95,
202,
202,
9565,
12,
46,
1895,
8485,
18,
588,
3219,
1290,
1841,
12,
12730,
3631,
1082,
202,
12,
3188,
422,
22880,
4685,
1082,
202,
35,
525,
4666,
18,
588,
1396,
2932,
5425,
17,
8057,
18,
2649,
7923,
1082,
202,
30,
525,
4666,
18,
588,
1396,
2932,
2725,
17,
8057,
18,
2649,
7923,
3631,
3767,
1769,
202,
202,
46,
5537,
913,
273,
394,
24048,
12,
2704,
30814,
10663,
202,
202,
1745,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
2138,
16,
2138,
16,
2138,
16,
2138,
10019,
202,
202,
542,
1350,
8485,
12,
1745,
1769,
202,
202,
46,
2224,
1433,
273,
394,
21403,
12,
78,
4666,
18,
588,
1396,
2932,
5425,
17,
8057,
18,
15386,
7923,
1769,
202,
202,
1925,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
20,
16,
20,
16,
26,
16,
20,
10019,
202,
202,
1745,
18,
1289,
12,
8107,
3744,
18,
50,
28212,
16,
1925,
1769,
202,
202,
46,
5537,
6594,
273,
394,
24048,
12,
2704,
30814,
10663,
202,
202,
13916,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
20,
16,
20,
16,
2138,
16,
20,
10019,
202,
202,
8057,
273,
394,
804,
19174,
682,
12,
2284,
1769,
202,
202,
8057,
18,
588,
6233,
1488,
7675,
1289,
682,
6233,
2223,
12,
2704,
987,
1503,
10663,
202,
202,
46,
26360,
888,
1539,
273,
394,
804,
26360,
12,
8057,
1769,
202,
202,
1017,
1539,
18,
542,
16028,
1225,
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,
6410,
9461,
6353,
12,
46,
6353,
6176,
16,
5589,
938,
16,
509,
1965,
13,
202,
95,
202,
202,
9565,
12,
46,
1895,
8485,
18,
588,
3219,
1290,
1841,
12,
12730,
3631,
1082,
202,
12,
3188,
422,
22880,
4685,
1082,
202,
35,
525,
4666,
18,
588,
1396,
2932,
5425,
17,
8057,
18,
2649,
7923,
1082,
202,
30,
525,
4666,
18,
588,
1396,
2932,
2725,
17,
8057,
18,
2649,
7923,
3631,
3767,
1769,
202,
202,
46,
5537,
913,
273,
394,
24048,
12,
2704,
30814,
10663,
202,
202,
1745,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
2138,
16,
2138,
16,
2138,
16,
2138,
10019,
202,
202,
542,
1350,
8485,
12,
1745,
1769,
202,
202,
46,
2224,
1433,
273,
394,
2
] |
if (index <= 0xFF) { iCodeTop = addIcode(Icode_REG_IND1, iCodeTop);
|
int indexSize = 0; int indexOp; switch (index) { case 0: indexOp = Icode_REG_IND_C0; break; case 1: indexOp = Icode_REG_IND_C1; break; case 2: indexOp = Icode_REG_IND_C2; break; case 3: indexOp = Icode_REG_IND_C3; break; default: if (index <= 0xFF) { indexOp = Icode_REG_IND1; indexSize = 1; } else if (index <= 0xFFFF) { indexOp = Icode_REG_IND2; indexSize = 2; } else { indexOp = Icode_REG_IND4; indexSize = 4; } } iCodeTop = addIcode(indexOp, iCodeTop); switch (indexSize) { case 1:
|
private int addIndexOp(int op, int index, int iCodeTop) { if (index < 0) Kit.codeBug(); if (index <= 0xFF) { iCodeTop = addIcode(Icode_REG_IND1, iCodeTop); iCodeTop = addByte(index, iCodeTop); } else if (index <= 0xFFFF) { iCodeTop = addIcode(Icode_REG_IND2, iCodeTop); iCodeTop = addShort(index, iCodeTop); } else { iCodeTop = addIcode(Icode_REG_IND4, iCodeTop); iCodeTop = addInt(index, iCodeTop); } if (op > BASE_ICODE) { iCodeTop = addIcode(op, iCodeTop); } else { iCodeTop = addToken(op, iCodeTop); } return iCodeTop; }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/dbf67ecaa80a3ae9385546d3e402d88f9c9d3b5b/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
26794,
3817,
12,
474,
1061,
16,
509,
770,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
309,
261,
1615,
411,
374,
13,
1475,
305,
18,
710,
19865,
5621,
3639,
309,
261,
1615,
1648,
374,
6356,
13,
288,
5411,
277,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
5937,
67,
2356,
21,
16,
277,
1085,
3401,
1769,
5411,
277,
1085,
3401,
273,
527,
3216,
12,
1615,
16,
277,
1085,
3401,
1769,
3639,
289,
469,
309,
261,
1615,
1648,
374,
21718,
13,
288,
5411,
277,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
5937,
67,
2356,
22,
16,
277,
1085,
3401,
1769,
5411,
277,
1085,
3401,
273,
527,
4897,
12,
1615,
16,
277,
1085,
3401,
1769,
3639,
289,
469,
288,
5411,
277,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
5937,
67,
2356,
24,
16,
277,
1085,
3401,
1769,
5411,
277,
1085,
3401,
273,
527,
1702,
12,
1615,
16,
277,
1085,
3401,
1769,
3639,
289,
3639,
309,
261,
556,
405,
10250,
67,
19334,
13,
288,
5411,
277,
1085,
3401,
273,
527,
45,
710,
12,
556,
16,
277,
1085,
3401,
1769,
3639,
289,
469,
288,
5411,
277,
1085,
3401,
273,
527,
1345,
12,
556,
16,
277,
1085,
3401,
1769,
3639,
289,
3639,
327,
277,
1085,
3401,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
509,
26794,
3817,
12,
474,
1061,
16,
509,
770,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
309,
261,
1615,
411,
374,
13,
1475,
305,
18,
710,
19865,
5621,
3639,
309,
261,
1615,
1648,
374,
6356,
13,
288,
5411,
277,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
5937,
67,
2356,
21,
16,
277,
1085,
3401,
1769,
5411,
277,
1085,
3401,
273,
527,
3216,
12,
1615,
16,
277,
1085,
3401,
1769,
3639,
289,
469,
309,
261,
1615,
1648,
374,
21718,
13,
288,
5411,
277,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
5937,
67,
2356,
22,
16,
277,
1085,
3401,
1769,
5411,
277,
1085,
3401,
273,
527,
4897,
12,
1615,
16,
277,
2
] |
newValue = oldValue | PURPLE_MASK | BUFFERED_MASK;
|
newValue = (oldValue & ~BASE_COLOR_MASK) | PURPLE | BUFFERED_MASK;
|
public static boolean makePurple(Object object) throws VM_PragmaUninterruptible, VM_PragmaInline { if (isGreenOrPurple(object)) return false; // inherently acyclic or already purple, so do nothing int oldValue, newValue; boolean rtn; do { oldValue = VM_Magic.prepare(object, RC_HEADER_OFFSET); newValue = oldValue | PURPLE_MASK | BUFFERED_MASK; if ((oldValue & BUFFERED_MASK) == 0) rtn = true; // need to add to buffer else rtn = false; // already buffered } while (!VM_Magic.attempt(object, RC_HEADER_OFFSET, oldValue, newValue)); return rtn; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/e5579fd33debd9a5f2690cc26d50934d23db32c8/SimpleRCBaseHeader.java/buggy/rvm/src/vm/memoryManagers/JMTk/header/SimpleRCBaseHeader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
1221,
10262,
1802,
12,
921,
733,
13,
565,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
16,
8251,
67,
2050,
9454,
10870,
288,
565,
309,
261,
291,
21453,
1162,
10262,
1802,
12,
1612,
3719,
1377,
327,
629,
31,
225,
368,
316,
1614,
23351,
1721,
93,
18964,
578,
1818,
5405,
1802,
16,
1427,
741,
5083,
565,
509,
11144,
16,
6129,
31,
565,
1250,
12119,
31,
565,
741,
288,
1377,
11144,
273,
8251,
67,
19289,
18,
9366,
12,
1612,
16,
24206,
67,
7557,
67,
11271,
1769,
1377,
6129,
273,
261,
1673,
620,
473,
4871,
8369,
67,
10989,
67,
11704,
13,
571,
26345,
30099,
571,
25859,
2056,
67,
11704,
31,
1377,
309,
14015,
1673,
620,
473,
25859,
2056,
67,
11704,
13,
422,
374,
13,
202,
3797,
82,
273,
638,
31,
368,
1608,
358,
527,
358,
1613,
1377,
469,
202,
3797,
82,
273,
629,
31,
368,
1818,
11445,
565,
289,
1323,
16051,
7397,
67,
19289,
18,
11764,
12,
1612,
16,
24206,
67,
7557,
67,
11271,
16,
11144,
16,
6129,
10019,
565,
327,
12119,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
1221,
10262,
1802,
12,
921,
733,
13,
565,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
16,
8251,
67,
2050,
9454,
10870,
288,
565,
309,
261,
291,
21453,
1162,
10262,
1802,
12,
1612,
3719,
1377,
327,
629,
31,
225,
368,
316,
1614,
23351,
1721,
93,
18964,
578,
1818,
5405,
1802,
16,
1427,
741,
5083,
565,
509,
11144,
16,
6129,
31,
565,
1250,
12119,
31,
565,
741,
288,
1377,
11144,
273,
8251,
67,
19289,
18,
9366,
12,
1612,
16,
24206,
67,
7557,
67,
11271,
1769,
1377,
6129,
273,
261,
1673,
620,
473,
4871,
8369,
67,
10989,
67,
11704,
13,
571,
26345,
30099,
571,
25859,
2056,
67,
11704,
31,
1377,
309,
14015,
1673,
620,
473,
25859,
2056,
2
] |
MessageDialog.openError(null, "Posting Error", "Ensure proper configuration in " + TaskRepositoriesView.NAME + ".");
|
MylarStatusHandler.fail(e, "Posting Error. Ensure proper configuration in "+ TaskRepositoriesView.NAME + ".", true);
|
protected void submitBug() { submitButton.setEnabled(false); showBusy(true); if (summaryText != null && summaryText.getText().trim().equals("")) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openInformation(NewBugEditor.this.getSite().getShell(), ERROR_CREATING_BUG_REPORT, "A summary must be provided with new bug reports."); summaryText.setFocus(); submitButton.setEnabled(true); showBusy(false); } }); return; } if (descriptionTextViewer != null && descriptionTextViewer.getTextWidget().getText().trim().equals("")) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openInformation(NewBugEditor.this.getSite().getShell(), ERROR_CREATING_BUG_REPORT, "A description must be provided with new reports."); descriptionTextViewer.getTextWidget().setFocus(); submitButton.setEnabled(true); showBusy(false); } }); return; } updateBug(); Proxy proxySettings = TasksUiPlugin.getDefault().getProxySettings(); boolean wrap = IBugzillaConstants.BugzillaServerVersion.SERVER_218.equals(repository.getVersion()); try { final BugzillaReportSubmitForm bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeNewBugPost( repository.getUrl(), repository.getUserName(), repository.getPassword(), proxySettings, repository .getCharacterEncoding(), taskData, wrap); JobChangeAdapter submitJobListener = new JobChangeAdapter() { public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) { close(); String newTaskHandle = AbstractRepositoryTask.getHandle(repository.getUrl(), event .getJob().getResult().getMessage()); ITask newTask = TasksUiPlugin.getTaskListManager().getTaskList().getTask(newTaskHandle); NewLocalTaskAction.scheduleNewTask(newTask); if (newTask != null) { Object selectedObject = null; if (TaskListView.getFromActivePerspective() != null) selectedObject = ((IStructuredSelection) TaskListView .getFromActivePerspective().getViewer().getSelection()) .getFirstElement(); if (selectedObject instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().moveToContainer( ((TaskCategory) selectedObject), newTask); } TaskUiUtil.refreshAndOpenTaskListElement(newTask); } return; } else if (event.getJob().getResult().getCode() == Status.INFO) { WebBrowserDialog.openAcceptAgreement(NewBugEditor.this.getSite().getShell(), IBugzillaConstants.REPORT_SUBMIT_ERROR, event.getJob().getResult().getMessage(), event.getJob().getResult() .getException().getMessage()); submitButton.setEnabled(true); NewBugEditor.this.showBusy(false); } else if (event.getJob().getResult().getCode() == Status.ERROR) { MessageDialog.openError(NewBugEditor.this.getSite().getShell(), IBugzillaConstants.REPORT_SUBMIT_ERROR, event.getResult().getMessage()); submitButton.setEnabled(true); NewBugEditor.this.showBusy(false); } } }); } }; // BugzillaRepositoryConnector bugzillaRepositoryClient = // (BugzillaRepositoryConnector) TasksUiPlugin // .getRepositoryManager().getRepositoryConnector(BugzillaCorePlugin.REPOSITORY_KIND); submissionHandler.submitBugReport(bugzillaReportSubmitForm, submitJobListener, false, addToTaskListRoot.getSelection()); } catch (UnsupportedEncodingException e) { // should never get here but just in case... MessageDialog.openError(null, "Posting Error", "Ensure proper encoding selected in " + TaskRepositoriesView.NAME + "."); return; } catch (Exception e) { // TODO: Handle errors more appropriately (perhaps CoreException) MessageDialog.openError(null, "Posting Error", "Ensure proper configuration in " + TaskRepositoriesView.NAME + "."); return; } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/5bd44242356bcd625b22dcf6d1229c5c8b07a99a/NewBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4879,
19865,
1435,
288,
202,
202,
9297,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
4500,
29289,
12,
3767,
1769,
202,
202,
430,
261,
7687,
1528,
480,
446,
597,
4916,
1528,
18,
588,
1528,
7675,
5290,
7675,
14963,
2932,
6,
3719,
288,
1082,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
1079,
6353,
18,
3190,
5369,
12,
1908,
19865,
6946,
18,
2211,
18,
588,
4956,
7675,
588,
13220,
9334,
5475,
67,
5458,
28054,
67,
4827,
67,
22710,
16,
6862,
1082,
202,
6,
37,
4916,
1297,
506,
2112,
598,
394,
7934,
10557,
1199,
1769,
6862,
202,
7687,
1528,
18,
542,
9233,
5621,
6862,
202,
9297,
3616,
18,
542,
1526,
12,
3767,
1769,
6862,
202,
4500,
29289,
12,
5743,
1769,
9506,
202,
97,
1082,
202,
22938,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
3384,
1528,
18415,
480,
446,
597,
2477,
1528,
18415,
18,
588,
1528,
4609,
7675,
588,
1528,
7675,
5290,
7675,
14963,
2932,
6,
3719,
288,
1082,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
1079,
6353,
18,
3190,
5369,
12,
1908,
19865,
6946,
18,
2211,
18,
588,
4956,
7675,
588,
13220,
9334,
5475,
67,
5458,
28054,
67,
4827,
67,
22710,
16,
6862,
1082,
202,
6,
37,
2477,
1297,
506,
2112,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4879,
19865,
1435,
288,
202,
202,
9297,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
4500,
29289,
12,
3767,
1769,
202,
202,
430,
261,
7687,
1528,
480,
446,
597,
4916,
1528,
18,
588,
1528,
7675,
5290,
7675,
14963,
2932,
6,
3719,
288,
1082,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
1079,
6353,
18,
3190,
5369,
12,
1908,
19865,
6946,
18,
2211,
18,
588,
4956,
7675,
588,
13220,
9334,
5475,
67,
5458,
28054,
67,
4827,
67,
22710,
16,
6862,
1082,
202,
6,
37,
4916,
1297,
506,
2112,
598,
394,
7934,
10557,
1199,
1769,
6862,
202,
2
] |
IMylarElement element = MylarPlugin.getContextManager().getElement(structureBridge.getHandleIdentifier(file));
|
IMylarElement element = ContextCorePlugin.getContextManager().getElement(structureBridge.getHandleIdentifier(file));
|
public void testPatternNotAddedIfExcluded() throws CoreException { Set<String> previousExcludions = MylarIdePlugin.getDefault().getExcludedResourcePatterns(); Set<String> exclude = new HashSet<String>(); exclude.add("b*.txt"); MylarIdePlugin.getDefault().setExcludedResourcePatterns(exclude); IFile file = project.getProject().getFile("boring.txt"); file.create(null, true, null); assertTrue(file.exists()); IMylarElement element = MylarPlugin.getContextManager().getElement(structureBridge.getHandleIdentifier(file)); assertFalse(element.getInterest().isInteresting()); MylarIdePlugin.getDefault().setExcludedResourcePatterns(previousExcludions); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/ResourceContextTest.java/buggy/org.eclipse.mylyn.ide.tests/src/org/eclipse/mylyn/ide/tests/ResourceContextTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3234,
1248,
8602,
2047,
16461,
1435,
1216,
30015,
288,
202,
202,
694,
32,
780,
34,
2416,
424,
830,
1100,
1115,
273,
8005,
7901,
45,
323,
3773,
18,
588,
1868,
7675,
588,
16461,
1420,
11268,
5621,
202,
202,
694,
32,
780,
34,
4433,
273,
394,
6847,
32,
780,
34,
5621,
202,
202,
10157,
18,
1289,
2932,
70,
11146,
5830,
8863,
202,
202,
12062,
7901,
45,
323,
3773,
18,
588,
1868,
7675,
542,
16461,
1420,
11268,
12,
10157,
1769,
9506,
202,
45,
812,
585,
273,
1984,
18,
588,
4109,
7675,
29925,
2932,
70,
6053,
18,
5830,
8863,
202,
202,
768,
18,
2640,
12,
2011,
16,
638,
16,
446,
1769,
202,
202,
11231,
5510,
12,
768,
18,
1808,
10663,
202,
202,
3445,
93,
7901,
1046,
930,
273,
8005,
7901,
3773,
18,
29120,
1318,
7675,
21336,
12,
7627,
13691,
18,
588,
3259,
3004,
12,
768,
10019,
202,
202,
11231,
8381,
12,
2956,
18,
588,
29281,
7675,
291,
2465,
10100,
10663,
202,
202,
12062,
7901,
45,
323,
3773,
18,
588,
1868,
7675,
542,
16461,
1420,
11268,
12,
11515,
424,
830,
1100,
1115,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3234,
1248,
8602,
2047,
16461,
1435,
1216,
30015,
288,
202,
202,
694,
32,
780,
34,
2416,
424,
830,
1100,
1115,
273,
8005,
7901,
45,
323,
3773,
18,
588,
1868,
7675,
588,
16461,
1420,
11268,
5621,
202,
202,
694,
32,
780,
34,
4433,
273,
394,
6847,
32,
780,
34,
5621,
202,
202,
10157,
18,
1289,
2932,
70,
11146,
5830,
8863,
202,
202,
12062,
7901,
45,
323,
3773,
18,
588,
1868,
7675,
542,
16461,
1420,
11268,
12,
10157,
1769,
9506,
202,
45,
812,
585,
273,
1984,
18,
588,
4109,
7675,
29925,
2932,
70,
6053,
18,
5830,
8863,
202,
202,
768,
18,
2640,
12,
2011,
16,
638,
16,
446,
1769,
202,
202,
11231,
5510,
12,
768,
18,
2
] |
if ( (_type.getSuperClass()==null) || (_type.getSuperClass().equals(superClass)) ) setSuperClass("org.exolab.castor.xml.util.XMLClassDescriptorImpl"); else {
|
if ( (_type.getSuperClassQualifiedName()==null) || (_type.getSuperClassQualifiedName().equals(superClass)) ) setSuperClass("org.exolab.castor.xml.util.XMLClassDescriptorImpl"); else {
|
private void init() { JMethod method = null; JSourceCode jsc = null; boolean extended = false; //Make sure that the Descriptor is extended XMLClassDescriptor //even when the user has specified a super class for all the generated //classes String superClass = null; if (_config != null) { superClass = _config.getProperty(SourceGenerator.Property.SUPER_CLASS, null); } if ( (_type.getSuperClass()==null) || (_type.getSuperClass().equals(superClass)) ) setSuperClass("org.exolab.castor.xml.util.XMLClassDescriptorImpl"); else { extended = true; setSuperClass(_type.getSuperClass()+"Descriptor"); } superClass = null;// addImport("org.exolab.castor.xml.NodeType");// addImport("org.exolab.castor.xml.XMLFieldHandler");// addImport("org.exolab.castor.xml.handlers.*");// addImport("org.exolab.castor.xml.util.XMLFieldDescriptorImpl");// addImport("org.exolab.castor.xml.validators.*");// addImport("org.exolab.castor.xml.FieldValidator"); addField(new JField(JType.BOOLEAN, "elementDefinition")); addField(new JField(SGTypes.String, "nsPrefix")); addField(new JField(SGTypes.String, "nsURI")); addField(new JField(SGTypes.String, "xmlName")); //-- if there is a super class, the identity field must remain //-- the same than the one in the super class addField(new JField(_XMLFieldDescriptorClass, "identity")); //-- create default constructor addConstructor( createConstructor() ); JConstructor cons = getConstructor(0); jsc = cons.getSourceCode(); jsc.add("super();"); if (extended) { //-- add base class (for validation) jsc.add("setExtendsWithoutFlatten("); jsc.append("new "); jsc.append(getSuperClass()); jsc.append("());"); } //jsc.add("Class[] emptyClassArgs = new Class[0];"); //jsc.add("Class[] classArgs = new Class[1];"); //---------------------------------------------/ //- Methods Defined by XMLClassDescriptorImpl -/ //---------------------------------------------/ //-- create isElementDefinition method method = new JMethod("isElementDefinition", JType.BOOLEAN, "true if XML schema definition of this Class is that of a global\n" + "element or element with anonymous type definition."); jsc = method.getSourceCode(); jsc.add("return elementDefinition;"); addMethod(method); _getElementDefinition = method; //-----------------------------------------/ //- Methods Defined by XMLClassDescriptor -/ //-----------------------------------------/ //-- create getNameSpacePrefix method method = new JMethod("getNameSpacePrefix", SGTypes.String, "the namespace prefix to use when marshalling as XML."); if (_config.useJava50()) { method.addAnnotation(new JAnnotation(new JAnnotationType("Override"))); } jsc = method.getSourceCode(); jsc.add("return nsPrefix;"); addMethod(method); _getNameSpacePrefix = method; //-- create getNameSpaceURI method method = new JMethod("getNameSpaceURI", SGTypes.String, "the namespace URI used when marshalling and unmarshalling as XML."); if (_config.useJava50()) { method.addAnnotation(new JAnnotation(new JAnnotationType("Override"))); } jsc = method.getSourceCode(); jsc.add("return nsURI;"); addMethod(method); _getNameSpaceURI = method; //-- create getValidator method method = new JMethod("getValidator", _TypeValidatorClass, "a specific validator for the class described by this ClassDescriptor."); if (_config.useJava50()) { method.addAnnotation(new JAnnotation(new JAnnotationType("Override"))); } jsc = method.getSourceCode(); jsc.add("return this;"); addMethod(method); //-- create getXMLName method method = new JMethod("getXMLName", SGTypes.String, "the XML Name for the Class being described."); if (_config.useJava50()) { method.addAnnotation(new JAnnotation(new JAnnotationType("Override"))); } jsc = method.getSourceCode(); jsc.add("return xmlName;"); addMethod(method); _getXMLName = method; //--------------------------------------/ //- Methods defined by ClassDescriptor -/ //--------------------------------------/ //-- create getAccessMode method JClass amClass = new JClass("org.exolab.castor.mapping.AccessMode"); method = new JMethod("getAccessMode", amClass, "the access mode specified for this class."); if (_config.useJava50()) { method.addAnnotation(new JAnnotation(new JAnnotationType("Override"))); } jsc = method.getSourceCode(); jsc.add("return null;"); addMethod(method); _getAccessMode = method; //-- create getExtends method method = new JMethod("getExtends", _ClassDescriptorClass, "the class descriptor of the class extended by this class."); if (_config.useJava50()) { method.addAnnotation(new JAnnotation(new JAnnotationType("Override"))); } jsc = method.getSourceCode(); if (extended) { jsc.add("return super.getExtends();"); } else { jsc.add("return null;"); } //--don't add the type to the import list addMethod(method, false); _getExtends = method; //-- create getIdentity method method = new JMethod("getIdentity", _FieldDescriptorClass, "the identity field, null if this class has no identity."); if (_config.useJava50()) { method.addAnnotation(new JAnnotation(new JAnnotationType("Override"))); } jsc = method.getSourceCode(); if (extended) { jsc.add("if (identity == null)"); jsc.indent(); jsc.add("return super.getIdentity();"); jsc.unindent(); } jsc.add("return identity;"); //--don't add the type to the import list addMethod(method, false); _getIdentity = method; //-- create getJavaClass method method = new JMethod("getJavaClass", SGTypes.Class, "the Java class represented by this descriptor."); if (_config.useJava50()) { method.addAnnotation(new JAnnotation(new JAnnotationType("Override"))); } jsc = method.getSourceCode(); jsc.add("return "); jsc.append(classType(_type)); jsc.append(";"); //--don't add the type to the import list addMethod(method, false); _getJavaClass = method; } //-- createSource
|
57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/de26751196a9f172d763dfb17f0ee98f77fb449b/DescriptorJClass.java/buggy/src/main/java/org/exolab/castor/builder/util/DescriptorJClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1435,
288,
3639,
804,
1305,
377,
707,
273,
446,
31,
3639,
804,
1830,
1085,
525,
1017,
565,
273,
446,
31,
3639,
1250,
7021,
273,
629,
31,
3639,
368,
6464,
3071,
716,
326,
12823,
353,
7021,
3167,
797,
3187,
3639,
368,
16728,
1347,
326,
729,
711,
1269,
279,
2240,
667,
364,
777,
326,
4374,
3639,
368,
4701,
3639,
514,
18846,
273,
446,
31,
3639,
309,
261,
67,
1425,
480,
446,
13,
288,
5411,
18846,
273,
389,
1425,
18,
588,
1396,
12,
1830,
3908,
18,
1396,
18,
13272,
654,
67,
5237,
16,
446,
1769,
3639,
289,
3639,
309,
261,
261,
67,
723,
18,
588,
8051,
797,
1435,
631,
2011,
13,
747,
2398,
261,
67,
723,
18,
588,
8051,
797,
7675,
14963,
12,
9565,
797,
3719,
262,
5411,
444,
8051,
797,
2932,
3341,
18,
338,
355,
378,
18,
4155,
280,
18,
2902,
18,
1367,
18,
4201,
797,
3187,
2828,
8863,
3639,
469,
288,
7734,
7021,
273,
638,
31,
7734,
444,
8051,
797,
24899,
723,
18,
588,
8051,
797,
1435,
9078,
3187,
8863,
3639,
289,
3639,
18846,
273,
446,
31,
759,
3639,
527,
5010,
2932,
3341,
18,
338,
355,
378,
18,
4155,
280,
18,
2902,
18,
15101,
8863,
759,
3639,
527,
5010,
2932,
3341,
18,
338,
355,
378,
18,
4155,
280,
18,
2902,
18,
4201,
974,
1503,
8863,
759,
3639,
527,
5010,
2932,
3341,
18,
338,
355,
378,
18,
4155,
280,
18,
2902,
18,
11046,
4509,
8863,
759,
3639,
527,
5010,
2932,
3341,
18,
338,
355,
378,
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,
1208,
1435,
288,
3639,
804,
1305,
377,
707,
273,
446,
31,
3639,
804,
1830,
1085,
525,
1017,
565,
273,
446,
31,
3639,
1250,
7021,
273,
629,
31,
3639,
368,
6464,
3071,
716,
326,
12823,
353,
7021,
3167,
797,
3187,
3639,
368,
16728,
1347,
326,
729,
711,
1269,
279,
2240,
667,
364,
777,
326,
4374,
3639,
368,
4701,
3639,
514,
18846,
273,
446,
31,
3639,
309,
261,
67,
1425,
480,
446,
13,
288,
5411,
18846,
273,
389,
1425,
18,
588,
1396,
12,
1830,
3908,
18,
1396,
18,
13272,
654,
67,
5237,
16,
446,
1769,
3639,
289,
3639,
309,
261,
261,
67,
723,
18,
588,
8051,
797,
1435,
631,
2011,
13,
747,
2398,
261,
67,
723,
18,
588,
2
] |
setEnabled(false); if (clipboard == null) { return; }
|
setEnabled(false); if (clipboard == null) { return; }
|
void updateEnablement() { setEnabled(false); if (clipboard == null) { return; } // Paste if clipboard contains pastable markers MarkerTransfer transfer = MarkerTransfer.getInstance(); IMarker[] markerData = (IMarker[]) clipboard.getContents(transfer); if (markerData == null || markerData.length < 1 || pastableTypes == null) { return; } for (int i = 0; i < markerData.length; i++) { try { IMarker marker = markerData[i]; if (!marker.exists()) { break; } boolean pastable = false; for (int j = 0; j < pastableTypes.length; j++) { if (marker.isSubtypeOf(pastableTypes[j])) { pastable = true; break; } } if (!pastable) { return; } if (!Util.isEditable(marker)) { return; } } catch (CoreException e) { return; } } setEnabled(true); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/b69abae539dd3ef42fe4df4fa2acd70692f6bb1d/ActionPasteMarker.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionPasteMarker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1089,
8317,
475,
1435,
288,
3639,
12888,
12,
5743,
1769,
3639,
309,
261,
14161,
3752,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
368,
453,
14725,
309,
20304,
1914,
8854,
429,
11754,
3639,
14742,
5912,
7412,
273,
14742,
5912,
18,
588,
1442,
5621,
3639,
467,
7078,
8526,
5373,
751,
273,
261,
3445,
1313,
264,
63,
5717,
20304,
18,
588,
6323,
12,
13866,
1769,
3639,
309,
261,
11145,
751,
422,
446,
747,
5373,
751,
18,
2469,
411,
404,
7734,
747,
8854,
429,
2016,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5373,
751,
18,
2469,
31,
277,
27245,
288,
5411,
775,
288,
7734,
467,
7078,
5373,
273,
5373,
751,
63,
77,
15533,
7734,
309,
16051,
11145,
18,
1808,
10756,
288,
10792,
898,
31,
7734,
289,
7734,
1250,
8854,
429,
273,
629,
31,
7734,
364,
261,
474,
525,
273,
374,
31,
525,
411,
8854,
429,
2016,
18,
2469,
31,
525,
27245,
288,
10792,
309,
261,
11145,
18,
291,
1676,
723,
951,
12,
84,
689,
429,
2016,
63,
78,
22643,
288,
13491,
8854,
429,
273,
638,
31,
13491,
898,
31,
10792,
289,
7734,
289,
7734,
309,
16051,
84,
689,
429,
13,
288,
10792,
327,
31,
7734,
289,
7734,
309,
16051,
1304,
18,
291,
15470,
12,
11145,
3719,
288,
10792,
327,
31,
7734,
289,
5411,
289,
1044,
261,
25341,
425,
13,
288,
7734,
327,
31,
5411,
289,
3639,
289,
3639,
12888,
12,
3767,
1769,
565,
289,
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,
918,
1089,
8317,
475,
1435,
288,
3639,
12888,
12,
5743,
1769,
3639,
309,
261,
14161,
3752,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
368,
453,
14725,
309,
20304,
1914,
8854,
429,
11754,
3639,
14742,
5912,
7412,
273,
14742,
5912,
18,
588,
1442,
5621,
3639,
467,
7078,
8526,
5373,
751,
273,
261,
3445,
1313,
264,
63,
5717,
20304,
18,
588,
6323,
12,
13866,
1769,
3639,
309,
261,
11145,
751,
422,
446,
747,
5373,
751,
18,
2469,
411,
404,
7734,
747,
8854,
429,
2016,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5373,
751,
18,
2469,
31,
277,
27245,
288,
5411,
775,
288,
7734,
467,
7078,
2
] |
jjCheckNAddStates(68, 70);
|
jjCheckNAddStates(62, 64);
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 36; 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 ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(23); } else if ((0x100002600L & l) != 0L) { if (kind > 26) kind = 26; jjCheckNAdd(4); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(33, 34); } else if (curChar == 46) jjstateSet[jjnewStateCnt++] = 27; else if (curChar == 45) jjCheckNAdd(23); else if (curChar == 39) jjCheckNAddStates(68, 70); else if (curChar == 34) jjCheckNAddStates(71, 73); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; 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 ((0x100002600L & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAdd(4); break; case 5: if (curChar == 34) jjCheckNAddStates(71, 73); break; case 6: if ((0xfffffffbffffffffL & l) != 0L) jjCheckNAddStates(71, 73); break; case 7: if (curChar == 34 && kind > 27) kind = 27; break; case 9: if ((0x8400000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 10: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(74, 77); break; case 11: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 12: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 13; break; case 13: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(11); break; case 14: if (curChar == 32) jjAddStates(78, 79); break; case 15: if (curChar == 10) jjCheckNAddStates(71, 73); break; case 16: if (curChar == 39) jjCheckNAddStates(68, 70); break; case 17: if ((0xffffff7fffffffffL & l) != 0L) jjCheckNAddStates(68, 70); break; case 19: if (curChar == 32) jjAddStates(13, 14); break; case 20: if (curChar == 10) jjCheckNAddStates(68, 70); break; case 21: if (curChar == 39 && kind > 27) kind = 27; break; case 22: if (curChar == 45) jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(23); break; case 25: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 59) kind = 59; jjstateSet[jjnewStateCnt++] = 25; break; case 26: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 27; break; case 30: if (curChar == 36 && kind > 13) kind = 13; break; case 32: if (curChar == 36) jjCheckNAddTwoStates(33, 34); break; case 34: if (curChar == 33 && kind > 14) kind = 14; break; case 35: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(33, 34); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 59) kind = 59; jjCheckNAdd(25); } else if (curChar == 92) jjCheckNAddStates(80, 83); break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(71, 73); break; case 8: if (curChar == 92) jjAddStates(84, 88); break; case 9: if ((0x14404410000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 17: jjAddStates(68, 70); break; case 18: if (curChar == 92) jjAddStates(13, 14); break; case 24: case 25: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 59) kind = 59; jjCheckNAdd(25); break; case 27: if ((0x7fffffe07fffffeL & l) != 0L && kind > 60) kind = 60; break; case 28: if (curChar == 92) jjCheckNAddStates(80, 83); break; case 29: if (curChar == 92) jjCheckNAddTwoStates(29, 30); break; case 31: if (curChar == 92) jjCheckNAddTwoStates(31, 32); break; case 33: if (curChar == 92) jjAddStates(89, 90); 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; case 6: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(71, 73); break; case 17: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(68, 70); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 36 - (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,
21,
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,
6580,
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,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
18106,
13,
13491,
3846,
273,
18106,
31,
5397,
10684,
1564,
50,
986,
12,
4366,
1769,
5375,
289,
5375,
469,
309,
14015,
20,
92,
23899,
5558,
713,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
10659,
13,
13491,
3846,
273,
10659,
31,
5397,
10684,
1564,
50,
986,
12,
24,
1769,
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,
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,
21,
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,
6580,
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
] |
return CSearchMessages.getFormattedString( "CSearchOperation.pluralOccurencesPostfix", args );
|
return CSearchMessages.getFormattedString( "CSearchOperation.pluralOccurrencesPostfix", args );
|
public String getPluralLabelPattern() { String desc = null; if( _elementPattern != null ){ desc = _elementPattern.getElementName(); } else { desc = _stringPattern; } String [] args = new String [] { desc, "{0}", _scopeDescription }; if( _limitTo == DECLARATIONS ){ return CSearchMessages.getFormattedString( "CSearchOperation.pluralDeclarationsPostfix", args ); //$NON_NLS-1$ } else if ( _limitTo == REFERENCES ){ return CSearchMessages.getFormattedString( "CSearchOperation.pluralReferencesPostfix", args ); //$NON_NLS-1$ } else { return CSearchMessages.getFormattedString( "CSearchOperation.pluralOccurencesPostfix", args ); //$NON_NLS-1$ } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d1d3dec2feb20881d256ba2b313387a0f71254d1/CSearchOperation.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9774,
3766,
2224,
3234,
1435,
288,
202,
202,
780,
3044,
273,
446,
31,
9506,
202,
430,
12,
389,
2956,
3234,
480,
446,
262,
95,
1082,
202,
5569,
273,
389,
2956,
3234,
18,
21336,
461,
5621,
202,
202,
97,
469,
288,
1082,
202,
5569,
273,
389,
1080,
3234,
31,
3196,
202,
97,
9506,
202,
780,
5378,
833,
273,
394,
514,
5378,
288,
3044,
16,
4144,
20,
1532,
16,
389,
4887,
3291,
289,
31,
202,
202,
430,
12,
389,
3595,
774,
422,
2030,
5017,
985,
15297,
262,
95,
1082,
202,
2463,
385,
2979,
5058,
18,
588,
18298,
780,
12,
315,
39,
2979,
2988,
18,
15203,
21408,
24505,
3113,
833,
11272,
4329,
3993,
67,
5106,
17,
21,
8,
202,
202,
97,
469,
309,
261,
389,
3595,
774,
422,
22898,
55,
262,
95,
1082,
202,
2463,
385,
2979,
5058,
18,
588,
18298,
780,
12,
315,
39,
2979,
2988,
18,
15203,
8221,
24505,
3113,
833,
11272,
4329,
3993,
67,
5106,
17,
21,
8,
202,
202,
97,
469,
288,
1082,
202,
2463,
385,
2979,
5058,
18,
588,
18298,
780,
12,
315,
39,
2979,
2988,
18,
15203,
12397,
12228,
24505,
3113,
833,
11272,
4329,
3993,
67,
5106,
17,
21,
8,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9774,
3766,
2224,
3234,
1435,
288,
202,
202,
780,
3044,
273,
446,
31,
9506,
202,
430,
12,
389,
2956,
3234,
480,
446,
262,
95,
1082,
202,
5569,
273,
389,
2956,
3234,
18,
21336,
461,
5621,
202,
202,
97,
469,
288,
1082,
202,
5569,
273,
389,
1080,
3234,
31,
3196,
202,
97,
9506,
202,
780,
5378,
833,
273,
394,
514,
5378,
288,
3044,
16,
4144,
20,
1532,
16,
389,
4887,
3291,
289,
31,
202,
202,
430,
12,
389,
3595,
774,
422,
2030,
5017,
985,
15297,
262,
95,
1082,
202,
2463,
385,
2979,
5058,
18,
588,
18298,
780,
12,
315,
39,
2979,
2988,
18,
15203,
21408,
24505,
3113,
833,
11272,
4329,
3993,
67,
5106,
17,
21,
8,
2
] |
Win32DrawingSurface wds = (Win32DrawingSurface)surfaceInfo.getSurface(); int hWnd = wds.getHWnd();
|
X11DrawingSurface wds = (X11DrawingSurface)surfaceInfo.getSurface(); int hWnd = wds.getDrawable();
|
public int getWindowID() { DrawingSurfaceInfo surfaceInfo = ((DrawingSurface)this.getPeer()).getDrawingSurfaceInfo(); surfaceInfo.lock(); Win32DrawingSurface wds = (Win32DrawingSurface)surfaceInfo.getSurface(); int hWnd = wds.getHWnd(); surfaceInfo.unlock(); return hWnd; }
|
47063 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47063/f26abc68790d6f9a4e591aa1cc09c18ff8053540/vtkPanel.java/clean/java/vtk/vtkPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
26156,
734,
1435,
6647,
288,
1850,
10184,
310,
11508,
966,
9034,
966,
273,
5411,
14015,
26885,
11508,
13,
2211,
18,
588,
6813,
1435,
2934,
588,
26885,
11508,
966,
5621,
1850,
9034,
966,
18,
739,
5621,
1850,
21628,
1578,
26885,
11508,
341,
2377,
273,
5411,
261,
18049,
1578,
26885,
11508,
13,
18266,
966,
18,
588,
11508,
5621,
1850,
509,
366,
59,
4880,
273,
341,
2377,
18,
588,
44,
59,
4880,
5621,
1850,
9034,
966,
18,
26226,
5621,
1850,
327,
366,
59,
4880,
31,
1850,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
26156,
734,
1435,
6647,
288,
1850,
10184,
310,
11508,
966,
9034,
966,
273,
5411,
14015,
26885,
11508,
13,
2211,
18,
588,
6813,
1435,
2934,
588,
26885,
11508,
966,
5621,
1850,
9034,
966,
18,
739,
5621,
1850,
21628,
1578,
26885,
11508,
341,
2377,
273,
5411,
261,
18049,
1578,
26885,
11508,
13,
18266,
966,
18,
588,
11508,
5621,
1850,
509,
366,
59,
4880,
273,
341,
2377,
18,
588,
44,
59,
4880,
5621,
1850,
9034,
966,
18,
26226,
5621,
1850,
327,
366,
59,
4880,
31,
1850,
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
] |
writer.closeTag( HTMLTags.TAG_TR );
|
writer.closeTag( HTMLTags.TAG_TR );
|
public void endRow( ) { if ( reportEmitter.pop( ) ) { return; } assert currentData != null; currentData.adjustCols( ); writer.closeTag( HTMLTags.TAG_TR ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/778c80860c81c271b4b70edb2450e2750fe6c140/HTMLTableEmitter.java/clean/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLTableEmitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
679,
1999,
12,
262,
202,
95,
202,
202,
430,
261,
2605,
13476,
18,
5120,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
11231,
30685,
480,
446,
31,
202,
202,
2972,
751,
18,
13362,
8011,
12,
11272,
202,
202,
6299,
18,
4412,
1805,
12,
3982,
3453,
18,
7927,
67,
4349,
11272,
225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
679,
1999,
12,
262,
202,
95,
202,
202,
430,
261,
2605,
13476,
18,
5120,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
11231,
30685,
480,
446,
31,
202,
202,
2972,
751,
18,
13362,
8011,
12,
11272,
202,
202,
6299,
18,
4412,
1805,
12,
3982,
3453,
18,
7927,
67,
4349,
11272,
225,
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
] |
if ( (c1 < 0 && c2 > 0) || (c1 == 0 && c2 == 0) ) { return INDETERMINATE; } return(c1!=INDETERMINATE)?c1:c2;
|
return INDETERMINATE;
|
protected short compareDates(int[] date1, int[] date2, boolean strict) { if ( date1[utc]==date2[utc] ) { return compareOrder(date1, date2); } short c1, c2; int[] tempDate = new int[TOTAL_SIZE]; int[] timeZone = new int[2]; if ( date1[utc]=='Z' ) { //compare date1<=date1<=(date2 with time zone -14) // cloneDate(date2, tempDate); //clones date1 value to global temporary storage: fTempDate timeZone[hh]=14; timeZone[mm]=0; tempDate[utc]='+'; normalize(tempDate, timeZone); c1 = compareOrder(date1, tempDate); //compare date1>=(date2 with time zone +14) // cloneDate(date2, tempDate); //clones date1 value to global temporary storage: tempDate timeZone[hh]=14; timeZone[mm]=0; tempDate[utc]='-'; normalize(tempDate, timeZone); c2 = compareOrder(date1, tempDate); if ( (c1 < 0 && c2 > 0) || (c1 == 0 && c2 == 0) ) { return INDETERMINATE; } //REVISIT: wait for clarification on this case from schema return(c1!=INDETERMINATE)?c1:c2; } else if ( date2[utc]=='Z' ) { //compare (date1 with time zone -14)<=date2 // cloneDate(date1, tempDate); //clones date1 value to global temporary storage: tempDate timeZone[hh]=14; timeZone[mm]=0; tempDate[utc]='-'; if (DEBUG) { System.out.println("tempDate=" + dateToString(tempDate)); } normalize(tempDate, timeZone); c1 = compareOrder(tempDate, date2); if (DEBUG) { System.out.println("date=" + dateToString(date2)); System.out.println("tempDate=" + dateToString(tempDate)); } //compare (date1 with time zone +14)<=date2 // cloneDate(date1, tempDate); //clones date1 value to global temporary storage: tempDate timeZone[hh]=14; timeZone[mm]=0; tempDate[utc]='+'; normalize(tempDate, timeZone); c2 = compareOrder(tempDate, date2); if (DEBUG) { System.out.println("tempDate=" + dateToString(tempDate)); } if ( (c1 < 0 && c2 > 0) || (c1 == 0 && c2 == 0) ) { return INDETERMINATE; } //REVISIT: wait for clarification on this case from schema return(c1!=INDETERMINATE)?c1:c2; } return INDETERMINATE; }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/fd4b34e58e8bdd6d566962cd0569952a4ad378fe/AbstractDateTimeDV.java/clean/src/org/apache/xerces/impl/dv/xs/AbstractDateTimeDV.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3025,
3400,
15578,
12,
474,
8526,
1509,
21,
16,
509,
8526,
1509,
22,
16,
1250,
5490,
13,
288,
3639,
309,
261,
1509,
21,
63,
17892,
65,
631,
712,
22,
63,
17892,
65,
262,
288,
5411,
327,
3400,
2448,
12,
712,
21,
16,
1509,
22,
1769,
3639,
289,
3639,
3025,
276,
21,
16,
276,
22,
31,
7734,
509,
8526,
1906,
1626,
273,
394,
509,
63,
28624,
67,
4574,
15533,
3639,
509,
8526,
17512,
273,
394,
509,
63,
22,
15533,
3639,
309,
261,
1509,
21,
63,
17892,
65,
18920,
62,
11,
262,
288,
5411,
368,
9877,
1509,
21,
32,
33,
712,
21,
32,
28657,
712,
22,
598,
813,
4157,
300,
3461,
13,
5411,
368,
5411,
3236,
1626,
12,
712,
22,
16,
1906,
1626,
1769,
368,
830,
5322,
1509,
21,
460,
358,
2552,
6269,
2502,
30,
284,
7185,
1626,
5411,
17512,
63,
21622,
65,
33,
3461,
31,
5411,
17512,
63,
7020,
65,
33,
20,
31,
5411,
1906,
1626,
63,
17892,
65,
2218,
6797,
31,
5411,
3883,
12,
5814,
1626,
16,
17512,
1769,
5411,
276,
21,
273,
3400,
2448,
12,
712,
21,
16,
1906,
1626,
1769,
5411,
368,
9877,
1509,
21,
34,
28657,
712,
22,
598,
813,
4157,
397,
3461,
13,
5411,
368,
5411,
3236,
1626,
12,
712,
22,
16,
1906,
1626,
1769,
368,
830,
5322,
1509,
21,
460,
358,
2552,
6269,
2502,
30,
1906,
1626,
5411,
17512,
63,
21622,
65,
33,
3461,
31,
5411,
17512,
63,
7020,
65,
33,
20,
31,
5411,
1906,
1626,
63,
17892,
65,
2218,
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,
3025,
3400,
15578,
12,
474,
8526,
1509,
21,
16,
509,
8526,
1509,
22,
16,
1250,
5490,
13,
288,
3639,
309,
261,
1509,
21,
63,
17892,
65,
631,
712,
22,
63,
17892,
65,
262,
288,
5411,
327,
3400,
2448,
12,
712,
21,
16,
1509,
22,
1769,
3639,
289,
3639,
3025,
276,
21,
16,
276,
22,
31,
7734,
509,
8526,
1906,
1626,
273,
394,
509,
63,
28624,
67,
4574,
15533,
3639,
509,
8526,
17512,
273,
394,
509,
63,
22,
15533,
3639,
309,
261,
1509,
21,
63,
17892,
65,
18920,
62,
11,
262,
288,
5411,
368,
9877,
1509,
21,
32,
33,
712,
21,
32,
28657,
712,
22,
598,
813,
4157,
300,
3461,
13,
5411,
368,
5411,
3236,
1626,
12,
712,
2
] |
public void setUp() throws PartInitException{ try { MylarTaskListPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("org.eclipse.mylar.tasks.ui.views.TaskListView");// File file = new File("foo" + MylarTaskListPlugin.FILE_EXTENSION); TaskListManager manager = MylarTaskListPlugin.getTaskListManager(); // tlist = manager.getTaskList(); cat1 = new TaskCategory("First Category"); cat1task1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true); cat1task1.setPriority(MylarTaskListPlugin.PriorityLevel.P1.toString()); cat1task1.setCompleted(true); cat1task1.setCategory(cat1); manager.moveToCategory(cat1, cat1task1);// cat1.addTask(cat1task1); cat1task1sub1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "sub task 1", true); cat1task1sub1.setPriority(MylarTaskListPlugin.PriorityLevel.P1.toString()); cat1task1sub1.setCompleted(true); cat1task1sub1.setParent(cat1task1); cat1task1.addSubTask(cat1task1sub1); cat1task2 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2", true); cat1task2.setPriority(MylarTaskListPlugin.PriorityLevel.P2.toString()); cat1task2.setCategory(cat1); manager.moveToCategory(cat1, cat1task2);// cat1.addTask(cat1task2); cat1task3 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3", true); cat1task3.setPriority(MylarTaskListPlugin.PriorityLevel.P3.toString()); cat1task3.setCompleted(true); cat1task3.setCategory(cat1); manager.moveToCategory(cat1, cat1task3);// cat1.addTask(cat1task3); cat1task4 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true); cat1task4.setPriority(MylarTaskListPlugin.PriorityLevel.P4.toString()); cat1task4.setCategory(cat1); manager.moveToCategory(cat1, cat1task4);// cat1.addTask(cat1task4); cat1task5 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5", true); cat1task5.setPriority(MylarTaskListPlugin.PriorityLevel.P5.toString()); cat1task5.setCompleted(true); cat1task5.setCategory(cat1); manager.moveToCategory(cat1, cat1task5);// cat1.addTask(cat1task5); manager.addCategory(cat1); assertEquals(cat1.getChildren().size(), 5); cat2 = new TaskCategory("Second Category"); cat2task1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true); cat2task1.setPriority(MylarTaskListPlugin.PriorityLevel.P1.toString()); cat2task1.setCategory(cat2); manager.moveToCategory(cat2, cat2task1);// cat2.addTask(cat2task1); cat2task1sub1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "sub task 1", true); cat2task1sub1.setPriority(MylarTaskListPlugin.PriorityLevel.P1.toString()); cat2task1sub1.setParent(cat2task1); cat2task1.addSubTask(cat2task1sub1); cat2task2 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2", true); cat2task2.setPriority(MylarTaskListPlugin.PriorityLevel.P2.toString()); cat2task2.setCompleted(true); cat2task2.setCategory(cat2); manager.moveToCategory(cat2, cat2task2);// cat2.addTask(cat2task2); cat2task3 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3", true); cat2task3.setPriority(MylarTaskListPlugin.PriorityLevel.P3.toString()); cat2task3.setCategory(cat2); manager.moveToCategory(cat2, cat2task3);// cat2.addTask(cat2task3); cat2task4 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true); cat2task4.setPriority(MylarTaskListPlugin.PriorityLevel.P4.toString()); cat2task4.setCompleted(true); cat2task4.setCategory(cat2); manager.moveToCategory(cat2, cat2task4);// cat2.addTask(cat2task4); cat2task5 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5", true); cat2task5.setPriority(MylarTaskListPlugin.PriorityLevel.P5.toString()); cat2task5.setCategory(cat2); manager.moveToCategory(cat2, cat2task5);// cat2.addTask(cat2task5); manager.addCategory(cat2); manager.saveTaskList(); } catch (Exception e) { e.printStackTrace(); } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/f3355503c72af2c44569c6c5839ab4a0b1d839fa/TaskListUiTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListUiTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
542,
1211,
1435,
15069,
1988,
2570,
503,
95,
202,
202,
698,
95,
202,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2421,
22144,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
7675,
4500,
1767,
2932,
3341,
18,
20416,
18,
4811,
7901,
18,
9416,
18,
4881,
18,
7061,
18,
2174,
682,
1767,
8863,
759,
202,
202,
812,
768,
33,
2704,
812,
2932,
11351,
6,
15,
12062,
7901,
2174,
682,
3773,
18,
3776,
67,
12796,
1769,
2174,
682,
49,
940,
1035,
1063,
33,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
5621,
759,
88,
1098,
33,
4181,
18,
588,
2174,
682,
5621,
2574,
21,
33,
2704,
2174,
4457,
2932,
3759,
4457,
8863,
2574,
21,
4146,
21,
33,
2704,
2174,
12,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
2174,
3259,
9334,
6,
4146,
21,
3113,
3767,
1769,
2574,
21,
4146,
21,
18,
542,
8183,
12,
12062,
7901,
2174,
682,
3773,
18,
8183,
2355,
18,
52,
21,
18,
10492,
10663,
2574,
21,
4146,
21,
18,
542,
9556,
12,
3767,
1769,
2574,
21,
4146,
21,
18,
542,
4457,
12,
2574,
21,
1769,
4181,
18,
8501,
774,
4457,
12,
2574,
21,
16,
2574,
21,
4146,
21,
1769,
759,
202,
202,
2574,
21,
18,
1289,
2174,
12,
2574,
21,
4146,
21,
1769,
9506,
202,
2574,
21,
4146,
21,
1717,
21,
33,
2704,
2174,
12,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
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,
6459,
542,
1211,
1435,
15069,
1988,
2570,
503,
95,
202,
202,
698,
95,
202,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2421,
22144,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
7675,
4500,
1767,
2932,
3341,
18,
20416,
18,
4811,
7901,
18,
9416,
18,
4881,
18,
7061,
18,
2174,
682,
1767,
8863,
759,
202,
202,
812,
768,
33,
2704,
812,
2932,
11351,
6,
15,
12062,
7901,
2174,
682,
3773,
18,
3776,
67,
12796,
1769,
2174,
682,
49,
940,
1035,
1063,
33,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
5621,
759,
88,
1098,
33,
4181,
18,
588,
2174,
682,
5621,
2574,
21,
33,
2704,
2174,
4457,
2932,
3759,
2
] |
||
protected void fillDefaultNatures( String packaging ) { super.fillDefaultNatures( packaging ); ArrayList projectnatures = new ArrayList(); if ( Constants.PROJECT_PACKAGING_EAR.equals( packaging ) ) { projectnatures.add( COM_IBM_WTP_J2EE_EARNATURE ); } else if ( Constants.PROJECT_PACKAGING_WAR.equals( packaging ) ) { projectnatures.add( COM_IBM_WTP_WEB_WEB_NATURE ); projectnatures.add( ORG_ECLIPSE_JDT_CORE_JAVANATURE ); projectnatures.add( COM_IBM_ETOOLS_SITEEDIT_WEB_SITE_NATURE ); projectnatures.add( COM_IBM_ETOOLS_WEBPAGE_TEMPLATE_TEMPLATENATURE ); } else if ( Constants.PROJECT_PACKAGING_EJB.equals( packaging ) ) { projectnatures.add( COM_IBM_WTP_EJB_EJBNATURE ); projectnatures.add( ORG_ECLIPSE_JDT_CORE_JAVANATURE ); } else if ( isJavaProject() ) { projectnatures.add( ORG_ECLIPSE_JDT_CORE_JAVANATURE ); } setProjectnatures( projectnatures ); }
|
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/ad6a4d9f76873917335fd374cbdf14ef1400690f/RadPlugin.java/clean/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/RadPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3636,
1868,
50,
2790,
12,
514,
2298,
5755,
262,
565,
288,
3639,
2240,
18,
5935,
1868,
50,
2790,
12,
2298,
5755,
11272,
7734,
2407,
1984,
82,
2790,
273,
394,
2407,
5621,
3639,
309,
261,
5245,
18,
17147,
67,
12231,
20868,
67,
9250,
18,
14963,
12,
2298,
5755,
262,
262,
3639,
288,
5411,
1984,
82,
2790,
18,
1289,
12,
5423,
67,
13450,
49,
67,
8588,
52,
67,
46,
22,
9383,
67,
41,
4391,
10511,
11272,
3639,
289,
3639,
469,
309,
261,
5245,
18,
17147,
67,
12231,
20868,
67,
16777,
18,
14963,
12,
2298,
5755,
262,
262,
3639,
288,
5411,
1984,
82,
2790,
18,
1289,
12,
5423,
67,
13450,
49,
67,
8588,
52,
67,
14778,
67,
14778,
67,
50,
10511,
11272,
5411,
1984,
82,
2790,
18,
1289,
12,
4869,
43,
67,
7228,
2053,
52,
1090,
67,
46,
9081,
67,
15715,
67,
46,
5856,
1258,
10511,
11272,
5411,
1984,
82,
2790,
18,
1289,
12,
5423,
67,
13450,
49,
67,
1584,
51,
1741,
55,
67,
20609,
10776,
67,
14778,
67,
20609,
67,
50,
10511,
11272,
5411,
1984,
82,
2790,
18,
1289,
12,
5423,
67,
13450,
49,
67,
1584,
51,
1741,
55,
67,
14778,
11219,
67,
12205,
67,
10258,
12190,
1157,
10511,
11272,
3639,
289,
3639,
469,
309,
261,
5245,
18,
17147,
67,
12231,
20868,
67,
22719,
18,
14963,
12,
2298,
5755,
262,
262,
3639,
288,
5411,
1984,
82,
2790,
18,
1289,
12,
5423,
67,
13450,
49,
67,
8588,
52,
67,
22719,
67,
22719,
50,
10511,
11272,
5411,
1984,
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,
3636,
1868,
50,
2790,
12,
514,
2298,
5755,
262,
565,
288,
3639,
2240,
18,
5935,
1868,
50,
2790,
12,
2298,
5755,
11272,
7734,
2407,
1984,
82,
2790,
273,
394,
2407,
5621,
3639,
309,
261,
5245,
18,
17147,
67,
12231,
20868,
67,
9250,
18,
14963,
12,
2298,
5755,
262,
262,
3639,
288,
5411,
1984,
82,
2790,
18,
1289,
12,
5423,
67,
13450,
49,
67,
8588,
52,
67,
46,
22,
9383,
67,
41,
4391,
10511,
11272,
3639,
289,
3639,
469,
309,
261,
5245,
18,
17147,
67,
12231,
20868,
67,
16777,
18,
14963,
12,
2298,
5755,
262,
262,
3639,
288,
5411,
1984,
82,
2790,
18,
1289,
12,
5423,
67,
13450,
49,
67,
8588,
52,
67,
14778,
67,
14778,
67,
2
] |
||
game = nextGame; boardData = (Style12Struct)lastStyle12Structs.get(gameNumber);
|
gameData = nextGameData;
|
private void illegalMoveAttempted(String moveString){ Integer gameNumber = null; // We must find the played game, since the server doesn't provide its game number. Game game = null; Style12Struct boardData = null; Enumeration gameNumbers = ongoingGames.keys(); while (gameNumbers.hasMoreElements()){ gameNumber = (Integer)gameNumbers.nextElement(); Game nextGame = (Game)ongoingGames.get(gameNumber); if (nextGame.getGameType() == Game.MY_GAME){ game = nextGame; boardData = (Style12Struct)lastStyle12Structs.get(gameNumber); break; } } if (game == null) // We're not playing a game. Weird, but what can we do? return; Vector unechoedGameMoves = (Vector)unechoedMoves.get(game); if ((unechoedGameMoves == null) || (unechoedGameMoves.size() == 0)) // Not a move we made (probably the user typed it in) return; Move move = (Move)unechoedGameMoves.elementAt(0); if (moveToString(game, move).equals(moveString)){ // Our move unechoedGameMoves.removeAllElements(); listenerManager.fireGameEvent(new IllegalMoveEvent(this, game, move)); } }
|
1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/d8e7b9ef422687e823e251da744b8f95d39c7ca5/JinFreechessConnection.java/buggy/src/free/jin/freechess/JinFreechessConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
16720,
7607,
28788,
12,
780,
3635,
780,
15329,
565,
2144,
7920,
1854,
273,
446,
31,
368,
1660,
1297,
1104,
326,
6599,
329,
7920,
16,
3241,
326,
1438,
3302,
1404,
5615,
2097,
7920,
1300,
18,
565,
14121,
7920,
273,
446,
31,
377,
9767,
2138,
3823,
11094,
751,
273,
446,
31,
3639,
13864,
7920,
10072,
273,
30542,
43,
753,
18,
2452,
5621,
565,
1323,
261,
13957,
10072,
18,
5332,
7417,
3471,
10756,
95,
1377,
7920,
1854,
273,
261,
4522,
13,
13957,
10072,
18,
4285,
1046,
5621,
1377,
14121,
1024,
12496,
273,
261,
12496,
13,
5409,
310,
43,
753,
18,
588,
12,
13957,
1854,
1769,
1377,
309,
261,
4285,
12496,
18,
588,
12496,
559,
1435,
422,
14121,
18,
22114,
67,
43,
1642,
15329,
3639,
7920,
273,
1024,
12496,
31,
3639,
11094,
751,
273,
261,
2885,
2138,
3823,
13,
2722,
2885,
2138,
3823,
87,
18,
588,
12,
13957,
1854,
1769,
3639,
898,
31,
1377,
289,
565,
289,
565,
309,
261,
13957,
422,
446,
13,
368,
1660,
4565,
486,
23982,
279,
7920,
18,
1660,
6909,
16,
1496,
4121,
848,
732,
741,
35,
1377,
327,
31,
565,
5589,
640,
12946,
329,
12496,
19297,
273,
261,
5018,
13,
7556,
2599,
329,
19297,
18,
588,
12,
13957,
1769,
565,
309,
14015,
7556,
2599,
329,
12496,
19297,
422,
446,
13,
747,
261,
7556,
2599,
329,
12496,
19297,
18,
1467,
1435,
422,
374,
3719,
368,
2288,
279,
3635,
732,
7165,
261,
7748,
6906,
326,
729,
9092,
518,
316,
13,
1377,
327,
31,
565,
9933,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
16720,
7607,
28788,
12,
780,
3635,
780,
15329,
565,
2144,
7920,
1854,
273,
446,
31,
368,
1660,
1297,
1104,
326,
6599,
329,
7920,
16,
3241,
326,
1438,
3302,
1404,
5615,
2097,
7920,
1300,
18,
565,
14121,
7920,
273,
446,
31,
377,
9767,
2138,
3823,
11094,
751,
273,
446,
31,
3639,
13864,
7920,
10072,
273,
30542,
43,
753,
18,
2452,
5621,
565,
1323,
261,
13957,
10072,
18,
5332,
7417,
3471,
10756,
95,
1377,
7920,
1854,
273,
261,
4522,
13,
13957,
10072,
18,
4285,
1046,
5621,
1377,
14121,
1024,
12496,
273,
261,
12496,
13,
5409,
310,
43,
753,
18,
588,
12,
13957,
1854,
1769,
1377,
309,
261,
4285,
12496,
18,
588,
12496,
559,
1435,
422,
14121,
18,
22114,
2
] |
if ( ! config.getTagName().equals("eventArm")) { throw new IllegalArgumentException("Configuration element must be a EventArm tag");
|
if ( ! config.getTagName().equals("eventArm")) { throw new IllegalArgumentException("Configuration element must be a EventArm tag"); } this.props = props; addSodExceptionListener(sodExceptionListener); processConfig(config);
|
public EventArm (Element config, SodExceptionListener sodExceptionListener, Properties props) throws ConfigurationException { if ( ! config.getTagName().equals("eventArm")) { throw new IllegalArgumentException("Configuration element must be a EventArm tag"); } this.config = config; this.props = props; addSodExceptionListener(sodExceptionListener); processConfig(config); }
|
45996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45996/a3721557efa31a5fa8ca86835d541f72a6ac461f/EventArm.java/buggy/src/edu/sc/seis/sod/EventArm.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2587,
25583,
261,
1046,
642,
16,
348,
369,
503,
2223,
272,
369,
503,
2223,
16,
6183,
3458,
13,
1216,
22196,
288,
565,
309,
261,
401,
642,
18,
588,
8520,
7675,
14963,
2932,
2575,
25583,
6,
3719,
288,
3639,
604,
394,
2754,
2932,
1750,
930,
1297,
506,
279,
2587,
25583,
1047,
8863,
565,
289,
565,
333,
18,
1425,
273,
642,
31,
565,
333,
18,
9693,
273,
3458,
31,
565,
527,
55,
369,
503,
2223,
12,
87,
369,
503,
2223,
1769,
565,
1207,
809,
12,
1425,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
2587,
25583,
261,
1046,
642,
16,
348,
369,
503,
2223,
272,
369,
503,
2223,
16,
6183,
3458,
13,
1216,
22196,
288,
565,
309,
261,
401,
642,
18,
588,
8520,
7675,
14963,
2932,
2575,
25583,
6,
3719,
288,
3639,
604,
394,
2754,
2932,
1750,
930,
1297,
506,
279,
2587,
25583,
1047,
8863,
565,
289,
565,
333,
18,
1425,
273,
642,
31,
565,
333,
18,
9693,
273,
3458,
31,
565,
527,
55,
369,
503,
2223,
12,
87,
369,
503,
2223,
1769,
565,
1207,
809,
12,
1425,
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
] |
GrailsDomainClass domainClass = this.grailsApplication.getGrailsDomainClass("org.codehaus.groovy.grails.orm.hibernate.PersistentMethodTestClass"); GroovyObject obj = (GroovyObject)domainClass.newInstance(); obj.setProperty( "id", new Long(1) ); obj.setProperty( "firstName", "fr" ); obj.setProperty( "lastName", "flintstone" ); obj.invokeMethod("validate", null); List errors = (List)obj.getProperty("errors"); assertNotNull(errors); assertEquals(1, errors.size()); }
|
GrailsDomainClass domainClass = this.grailsApplication.getGrailsDomainClass("PersistentMethodTests"); GroovyObject obj = (GroovyObject)domainClass.newInstance(); obj.setProperty( "id", new Long(1) ); obj.setProperty( "firstName", "fr" ); obj.setProperty( "lastName", "flintstone" ); obj.invokeMethod("validate", null); Errors errors = (Errors)obj.getProperty("errors"); assertNotNull(errors); assertTrue(errors.hasErrors()); }
|
public void testValidatePersistentMethod() { // init spring config GrailsDomainClass domainClass = this.grailsApplication.getGrailsDomainClass("org.codehaus.groovy.grails.orm.hibernate.PersistentMethodTestClass"); GroovyObject obj = (GroovyObject)domainClass.newInstance(); obj.setProperty( "id", new Long(1) ); obj.setProperty( "firstName", "fr" ); obj.setProperty( "lastName", "flintstone" ); obj.invokeMethod("validate", null); List errors = (List)obj.getProperty("errors"); assertNotNull(errors); assertEquals(1, errors.size()); }
|
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/a5c9dcc1f634b2b34633f99a226b7a489931c458/PersistentMethodTests.java/clean/test/persistence/org/codehaus/groovy/grails/orm/hibernate/PersistentMethodTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4270,
11906,
1305,
1435,
288,
202,
202,
759,
1208,
25974,
642,
25083,
202,
14571,
14573,
3748,
797,
2461,
797,
273,
333,
18,
2752,
14573,
3208,
18,
588,
14571,
14573,
3748,
797,
2932,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
535,
18,
15769,
22828,
18,
11906,
1305,
4709,
797,
8863,
9506,
202,
43,
12859,
921,
1081,
273,
261,
43,
12859,
921,
13,
4308,
797,
18,
2704,
1442,
5621,
202,
202,
2603,
18,
542,
1396,
12,
315,
350,
3113,
394,
3407,
12,
21,
13,
11272,
202,
202,
2603,
18,
542,
1396,
12,
315,
3645,
461,
3113,
315,
4840,
6,
11272,
202,
202,
2603,
18,
542,
1396,
12,
315,
2722,
461,
3113,
315,
2242,
474,
13925,
6,
11272,
9506,
202,
2603,
18,
14407,
1305,
2932,
5662,
3113,
446,
1769,
9506,
202,
682,
1334,
273,
261,
682,
13,
2603,
18,
588,
1396,
2932,
4324,
8863,
202,
202,
11231,
5962,
12,
4324,
1769,
202,
202,
11231,
8867,
12,
21,
16,
1334,
18,
1467,
10663,
1082,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4270,
11906,
1305,
1435,
288,
202,
202,
759,
1208,
25974,
642,
25083,
202,
14571,
14573,
3748,
797,
2461,
797,
273,
333,
18,
2752,
14573,
3208,
18,
588,
14571,
14573,
3748,
797,
2932,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
535,
18,
15769,
22828,
18,
11906,
1305,
4709,
797,
8863,
9506,
202,
43,
12859,
921,
1081,
273,
261,
43,
12859,
921,
13,
4308,
797,
18,
2704,
1442,
5621,
202,
202,
2603,
18,
542,
1396,
12,
315,
350,
3113,
394,
3407,
12,
21,
13,
11272,
202,
202,
2603,
18,
542,
1396,
12,
315,
3645,
461,
3113,
315,
4840,
6,
11272,
202,
202,
2603,
18,
542,
1396,
12,
315,
2722,
461,
3113,
2
] |
final Socket mySocket = incoming;
|
private void loop() throws IOException { Socket incoming = null; incoming = _server.accept(); final Socket mySocket = incoming; try { handleRequest(incoming); } catch (IOException iox) { } }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/2cd6c4a96369272d11c63d55dfb5a2671a5efcad/TestConnection.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/updates/TestConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2798,
1435,
1216,
1860,
288,
3639,
8758,
6935,
273,
446,
31,
3639,
6935,
273,
389,
3567,
18,
9436,
5621,
9079,
775,
288,
5411,
15713,
12,
31033,
1769,
3639,
289,
1044,
261,
14106,
277,
2409,
13,
288,
10792,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2798,
1435,
1216,
1860,
288,
3639,
8758,
6935,
273,
446,
31,
3639,
6935,
273,
389,
3567,
18,
9436,
5621,
9079,
775,
288,
5411,
15713,
12,
31033,
1769,
3639,
289,
1044,
261,
14106,
277,
2409,
13,
288,
10792,
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
] |
|
CustomProfile newProfile= new CustomProfile(trimmed, fSettings, ProfileVersioner.CURRENT_VERSION);
|
CustomProfile newProfile= new CustomProfile(trimmed, fSettings, fCurrentVersion, fProfileKind);
|
public Profile rename(String name, ProfileManager manager) { final String trimmed= name.trim(); CustomProfile newProfile= new CustomProfile(trimmed, fSettings, ProfileVersioner.CURRENT_VERSION); manager.addProfile(newProfile); return newProfile; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/12f3dd59c579048e11942c9768bb3f6c6a45e156/ProfileManager.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/ProfileManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
11357,
6472,
12,
780,
508,
16,
11357,
1318,
3301,
13,
288,
1082,
202,
6385,
514,
12350,
33,
508,
18,
5290,
5621,
1082,
225,
202,
3802,
4029,
394,
4029,
33,
394,
6082,
4029,
12,
5290,
2937,
16,
284,
2628,
16,
11357,
1444,
264,
18,
15487,
67,
5757,
1769,
1082,
225,
202,
4181,
18,
1289,
4029,
12,
2704,
4029,
1769,
1082,
202,
2463,
394,
4029,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
11357,
6472,
12,
780,
508,
16,
11357,
1318,
3301,
13,
288,
1082,
202,
6385,
514,
12350,
33,
508,
18,
5290,
5621,
1082,
225,
202,
3802,
4029,
394,
4029,
33,
394,
6082,
4029,
12,
5290,
2937,
16,
284,
2628,
16,
11357,
1444,
264,
18,
15487,
67,
5757,
1769,
1082,
225,
202,
4181,
18,
1289,
4029,
12,
2704,
4029,
1769,
1082,
202,
2463,
394,
4029,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while(e.hasMoreElements()) {
|
while (e.hasMoreElements()) {
|
public void dispose() { Enumeration e = breakpoints.keys(); while(e.hasMoreElements()) { Integer line = (Integer)breakpoints.get(e.nextElement()); db.clearBreakPoint(url, line.intValue()); } db.removeWindow(this); super.dispose(); }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
13864,
425,
273,
23416,
18,
2452,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
2144,
980,
273,
261,
4522,
13,
8820,
4139,
18,
588,
12,
73,
18,
4285,
1046,
10663,
5411,
1319,
18,
8507,
7634,
2148,
12,
718,
16,
980,
18,
474,
620,
10663,
3639,
289,
3639,
1319,
18,
4479,
3829,
12,
2211,
1769,
3639,
2240,
18,
2251,
4150,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
13864,
425,
273,
23416,
18,
2452,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
2144,
980,
273,
261,
4522,
13,
8820,
4139,
18,
588,
12,
73,
18,
4285,
1046,
10663,
5411,
1319,
18,
8507,
7634,
2148,
12,
718,
16,
980,
18,
474,
620,
10663,
3639,
289,
3639,
1319,
18,
4479,
3829,
12,
2211,
1769,
3639,
2240,
18,
2251,
4150,
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
] |
if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) )
|
final boolean bRenderLegendTitle = lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ); int iTitlePos = Position.ABOVE; if ( bRenderLegendTitle )
|
public void renderLegend( IPrimitiveRenderer ipr, Legend lg, Map htRenderers ) throws ChartException { if ( !lg.isVisible( ) ) // CHECK VISIBILITY { return; } renderBlock( ipr, lg, StructureSource.createLegend( lg ) ); final IDisplayServer xs = getDevice( ).getDisplayServer( ); final double dScale = xs.getDpiResolution( ) / 72d; Bounds bo = lg.getBounds( ).scaledInstance( dScale ); Size sz = null; double dX, dY; if ( lg.getPosition( ) != Position.INSIDE_LITERAL ) { try { sz = lg.getPreferredSize( xs, cm, rtc ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } sz.scale( dScale ); // USE ANCHOR IN POSITIONING THE LEGEND CLIENT AREA WITHIN THE BLOCK // SLACK SPACE dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = 0; if ( lg.isSetAnchor( ) ) { final int iAnchor = lg.getAnchor( ).getValue( ); switch ( iAnchor ) { case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : dY = bo.getTop( ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : dY = bo.getTop( ) + bo.getHeight( ) - sz.getHeight( ); break; default : // CENTERED dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; break; } switch ( iAnchor ) { case Anchor.WEST : case Anchor.NORTH_WEST : dX = bo.getLeft( ); break; case Anchor.EAST : case Anchor.SOUTH_EAST : dX = bo.getLeft( ) + bo.getWidth( ) - sz.getWidth( ); break; default : // CENTERED dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; break; } } else { dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; } } else // USE PREVIOUSLY COMPUTED POSITION IN THE GENERATOR FOR LEGEND 'INSIDE' // PLOT { dX = bo.getLeft( ); dY = bo.getTop( ); sz = SizeImpl.create( bo.getWidth( ), bo.getHeight( ) ); // 'bo' // ALREADY // SCALED } // consider legend title size. Label lgTitle = lg.getTitle( ); double lgTitleWidth = 0, lgTitleHeight = 0; double yOffset = 0, xOffset = 0, wOffset = 0, hOffset = 0; if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) ) { lgTitle = (Label) EcoreUtil.copy( lgTitle ); // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } lgTitleWidth = bb.getWidth( ); lgTitleHeight = bb.getHeight( ); switch ( lg.getTitlePosition( ).getValue( ) ) { case Position.ABOVE : yOffset = lgTitleHeight; hOffset = -yOffset; break; case Position.BELOW : hOffset = -lgTitleHeight; break; case Position.LEFT : xOffset = lgTitleWidth; wOffset = -xOffset; break; case Position.RIGHT : wOffset = -lgTitleWidth; break; } } // RENDER THE LEGEND CLIENT AREA final ClientArea ca = lg.getClientArea( ); final Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); LineAttributes lia = ca.getOutline( ); bo = BoundsImpl.create( dX, dY, sz.getWidth( ), sz.getHeight( ) ); bo = bo.adjustedInstance( lgIns ); // SHRINK // BY // INSETS dX = bo.getLeft( ); dY = bo.getTop( ); // Adjust bounds. bo.delta( xOffset, yOffset, wOffset, hOffset ); dX = bo.getLeft( ); dY = bo.getTop( ); final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), RectangleRenderEvent.class ); // render client area shadow. if ( ca.getShadowColor( ) != null ) { rre.setBounds( bo.translateInstance( 3, 3 ) ); rre.setBackground( ca.getShadowColor( ) ); ipr.fillRectangle( rre ); } // render client area rre.setBounds( bo ); rre.setOutline( lia ); rre.setBackground( ca.getBackground( ) ); ipr.fillRectangle( rre ); ipr.drawRectangle( rre ); lia = (LineAttributes) EcoreUtil.copy( lia ); lia.setVisible( true ); // SEPARATOR LINES MUST BE VISIBLE final SeriesDefinition[] seda = cm.getSeriesForLegend( ); // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation o = lg.getOrientation( ); final Direction d = lg.getDirection( ); final Label la = LabelImpl.create( ); la.setCaption( (Text) EcoreUtil.copy( lg.getText( ) ) ); la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); double maxWrappingSize = lg.getWrappingSize( ); double dItemHeight = itm.getFullHeight( ); final double dHorizontalSpacing = 4; final double dVerticalSpacing = 4; double dSeparatorThickness = lia.getThickness( ); Insets insCA = ca.getInsets( ).scaledInstance( dScale ); Series seBase; ArrayList al; LegendItemRenderingHints lirh; Palette pa; int iPaletteCount; EList elPaletteEntries; Fill fPaletteEntry; final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); // Calculate if minSlice applicable. boolean bMinSliceDefined = false; double dMinSlice = 0; boolean bPercentageMinSlice = false; String sMinSliceLabel = null; boolean bMinSliceApplied = false; // Get available maximum block width/height. Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); double dMaxX = boFull.getLeft( ) + boFull.getWidth( ) - ins.getRight( ) - lgIns.getRight( ); double dMaxY = boFull.getTop( ) + boFull.getHeight( ) - ins.getBottom( ) - lgIns.getBottom( ); if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); dMinSlice = ( (ChartWithoutAxes) cm ).getMinSlice( ); bPercentageMinSlice = ( (ChartWithoutAxes) cm ).isMinSlicePercent( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { if ( !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ).isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( ); DataSetIterator dsiOrtho = null; double dCurrentMinSlice = 0; for ( int i = 0; i < sdOrtho.length && !bMinSliceApplied; i++ ) { try { dsiOrtho = new DataSetIterator( ( (Series) sdOrtho[i].getRunTimeSeries( ) .get( 0 ) ).getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } // TODO Check dataset type, throw exception or ignore?. if ( bPercentageMinSlice ) { double total = 0; while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { total += ( (Number) obj ).doubleValue( ); } } dsiOrtho.reset( ); dCurrentMinSlice = total * dMinSlice / 100d; } else { dCurrentMinSlice = dMinSlice; } while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { double val = ( (Number) obj ).doubleValue( ); if ( val < dCurrentMinSlice ) { bMinSliceApplied = true; break; } } } } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( o.getValue( ) == Orientation.VERTICAL ) { double dXOffset = 0, dMaxW = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { return; // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { return; // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. // render legend item. dY += insCA.getTop( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, 0, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceDefined && bMinSliceApplied ) { dY += insCA.getTop( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, 0, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { dY += insCA.getTop( ); seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = (Label) EcoreUtil.copy( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ) - 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX, dY + dSeparatorThickness / 2, dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxW = 0; al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { dY += insCA.getTop( ); seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = (Label) EcoreUtil.copy( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ) - 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + // MAX ITEM WIDTH + RIGHT INSETS dXOffset += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dX += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dY = bo.getTop( ); // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX + dSeparatorThickness / 2, dY, bo.getHeight( ), Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } } else if ( o.getValue( ) == Orientation.HORIZONTAL ) { double dYOffset = 0, dMaxH = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; // ONLY // SUPPORT // 1 // BASE // AXIS // FOR // NOW if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { return; // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { return; // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; dY += insCA.getTop( ); while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. dX += insCA.getLeft( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dX + itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, 0, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dX += itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceDefined && bMinSliceApplied ) { dX += insCA.getLeft( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dX + itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, 0, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dX += itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxH = 0; dY += insCA.getTop( ); dX = bo.getLeft( ) + insCA.getLeft( ); al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = (Label) EcoreUtil.copy( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ); } dYOffset += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dY += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dX = bo.getLeft( ) + insCA.getLeft( ); // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX, dY + dSeparatorThickness / 2, bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { dSeparatorThickness += dHorizontalSpacing; dX += insCA.getLeft( ); dY += insCA.getTop( ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = (Label) EcoreUtil.copy( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dFWidth + insCA.getRight( ); } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX + dSeparatorThickness / 2, dY, dMaxH, Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); // i18n_CONCATENATIONS_REMOVED } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.orientation", //$NON-NLS-1$ new Object[]{ o.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); // i18n_CONCATENATIONS_REMOVED } // Render legend title if defined. if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) ) { double lX = bo.getLeft( ); double lY = bo.getTop( ); switch ( lg.getTitlePosition( ).getValue( ) ) { case Position.ABOVE : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) - lgTitleHeight; break; case Position.BELOW : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) + bo.getHeight( ); break; case Position.LEFT : lX = bo.getLeft( ) - lgTitleWidth; lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; case Position.RIGHT : lX = bo.getLeft( ) + bo.getWidth( ); lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; } final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( WrappedStructureSource.createLegendTitle( lg, lgTitle ), TextRenderEvent.class ); tre.setBlockBounds( BoundsImpl.create( lX, lY, lgTitleWidth, lgTitleHeight ) ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setLabel( lgTitle ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } itm.dispose( ); // DISPOSE RESOURCES AFTER USE }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/536b54a46b25aa99e427a2fbd8217e09108c905a/BaseRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
16812,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1635,
14049,
3420,
414,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
23623,
18,
291,
6207,
12,
262,
262,
368,
14565,
12596,
30310,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
5902,
1768,
12,
277,
683,
16,
15266,
16,
13348,
1830,
18,
2640,
16812,
12,
15266,
262,
11272,
202,
202,
6385,
1599,
291,
1601,
2081,
9280,
273,
19512,
12,
262,
18,
588,
4236,
2081,
12,
11272,
202,
202,
6385,
1645,
302,
5587,
273,
9280,
18,
588,
40,
7259,
11098,
12,
262,
342,
19387,
72,
31,
202,
202,
5694,
800,
273,
15266,
18,
588,
5694,
12,
262,
18,
20665,
1442,
12,
302,
5587,
11272,
202,
202,
1225,
11262,
273,
446,
31,
202,
202,
9056,
302,
60,
16,
302,
61,
31,
202,
202,
430,
261,
15266,
18,
588,
2555,
12,
262,
480,
11010,
18,
706,
26498,
67,
23225,
262,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
24575,
273,
15266,
18,
588,
16028,
1225,
12,
9280,
16,
5003,
16,
436,
5111,
11272,
1082,
202,
97,
1082,
202,
14683,
261,
1185,
431,
262,
1082,
202,
95,
9506,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
25083,
202,
7984,
503,
18,
25230,
1360,
16,
25083,
202,
338,
11272,
1082,
202,
97,
1082,
202,
24575,
18,
5864,
12,
302,
5587,
11272,
1082,
202,
759,
14988,
31912,
2120,
26808,
1360,
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,
1743,
16812,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1635,
14049,
3420,
414,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
23623,
18,
291,
6207,
12,
262,
262,
368,
14565,
12596,
30310,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
5902,
1768,
12,
277,
683,
16,
15266,
16,
13348,
1830,
18,
2640,
16812,
12,
15266,
262,
11272,
202,
202,
6385,
1599,
291,
1601,
2081,
9280,
273,
19512,
12,
262,
18,
588,
4236,
2081,
12,
11272,
202,
202,
6385,
1645,
302,
5587,
273,
9280,
18,
588,
40,
7259,
11098,
12,
262,
342,
19387,
72,
31,
202,
202,
5694,
800,
273,
15266,
18,
588,
2
] |
fThread = new Thread(new ThreadGroup("DSF Thread Group"), r, "DSF Dispatch Thread", 0);
|
fThread = new Thread(new ThreadGroup("DSF Thread Group"), r, "DSF Dispatch Thread", 0);
|
public Thread newThread(Runnable r) { assert fThread == null; // Should be called only once. fThread = new Thread(new ThreadGroup("DSF Thread Group"), r, "DSF Dispatch Thread", 0); return fThread; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/94841c4ee3efc4a608afcf5de2265b440c3cf516/DefaultDsfExecutor.java/buggy/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/DefaultDsfExecutor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4884,
394,
3830,
12,
20013,
436,
13,
288,
5411,
1815,
284,
3830,
422,
446,
31,
225,
368,
9363,
506,
2566,
1338,
3647,
18,
5411,
284,
3830,
273,
394,
4884,
12,
2704,
4884,
1114,
2932,
3948,
42,
4884,
3756,
6,
3631,
436,
16,
315,
3948,
42,
11552,
4884,
3113,
374,
1769,
2398,
327,
284,
3830,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4884,
394,
3830,
12,
20013,
436,
13,
288,
5411,
1815,
284,
3830,
422,
446,
31,
225,
368,
9363,
506,
2566,
1338,
3647,
18,
5411,
284,
3830,
273,
394,
4884,
12,
2704,
4884,
1114,
2932,
3948,
42,
4884,
3756,
6,
3631,
436,
16,
315,
3948,
42,
11552,
4884,
3113,
374,
1769,
2398,
327,
284,
3830,
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
] |
String testId;
|
String testId = null;
|
private IContributionItem findAlphabeticalOrder(String startId, String itemId, IContributionManager mgr) { IContributionItem[] items = mgr.getItems(); int insertIndex = 0; // look for starting point while (insertIndex < items.length) { IContributionItem item = items[insertIndex]; if (item.getId().equals(startId)) break; ++insertIndex; } // Find the index that this item should be inserted in for (int i = insertIndex + 1; i < items.length; i++) { IContributionItem item = items[i]; if (item.isGroupMarker()) break; String testId; if (item instanceof PluginActionCoolBarContributionItem) { testId = ((PluginActionCoolBarContributionItem) item) .getActionSetId(); } else { testId = item.getId(); } if (itemId != null) { if (itemId.compareTo(testId) < 1) break; } insertIndex = i; } if (insertIndex >= items.length) { return null; } return items[insertIndex]; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4137da753240d84108fa8bacebf46413b9d75874/PluginActionSetBuilder.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginActionSetBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
467,
442,
4027,
1180,
1104,
27316,
1706,
2448,
12,
780,
787,
548,
16,
7734,
514,
18424,
16,
467,
442,
4027,
1318,
13333,
13,
288,
5411,
467,
442,
4027,
1180,
8526,
1516,
273,
13333,
18,
588,
3126,
5621,
5411,
509,
2243,
1016,
273,
374,
31,
5411,
368,
2324,
364,
5023,
1634,
5411,
1323,
261,
6387,
1016,
411,
1516,
18,
2469,
13,
288,
7734,
467,
442,
4027,
1180,
761,
273,
1516,
63,
6387,
1016,
15533,
7734,
309,
261,
1726,
18,
26321,
7675,
14963,
12,
1937,
548,
3719,
10792,
898,
31,
7734,
965,
6387,
1016,
31,
5411,
289,
5411,
368,
4163,
326,
770,
716,
333,
761,
1410,
506,
9564,
316,
5411,
364,
261,
474,
277,
273,
2243,
1016,
397,
404,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
7734,
467,
442,
4027,
1180,
761,
273,
1516,
63,
77,
15533,
7734,
309,
261,
1726,
18,
291,
1114,
7078,
10756,
10792,
898,
31,
7734,
514,
1842,
548,
273,
446,
31,
7734,
309,
261,
1726,
1276,
6258,
1803,
39,
1371,
5190,
442,
4027,
1180,
13,
288,
10792,
1842,
548,
273,
14015,
3773,
1803,
39,
1371,
5190,
442,
4027,
1180,
13,
761,
13,
18701,
263,
588,
1803,
18523,
5621,
7734,
289,
469,
288,
10792,
1842,
548,
273,
761,
18,
26321,
5621,
7734,
289,
7734,
309,
261,
1726,
548,
480,
446,
13,
288,
10792,
309,
261,
1726,
548,
18,
9877,
774,
12,
3813,
548,
13,
411,
404,
13,
13491,
898,
31,
7734,
289,
7734,
2243,
1016,
273,
277,
31,
5411,
289,
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,
467,
442,
4027,
1180,
1104,
27316,
1706,
2448,
12,
780,
787,
548,
16,
7734,
514,
18424,
16,
467,
442,
4027,
1318,
13333,
13,
288,
5411,
467,
442,
4027,
1180,
8526,
1516,
273,
13333,
18,
588,
3126,
5621,
5411,
509,
2243,
1016,
273,
374,
31,
5411,
368,
2324,
364,
5023,
1634,
5411,
1323,
261,
6387,
1016,
411,
1516,
18,
2469,
13,
288,
7734,
467,
442,
4027,
1180,
761,
273,
1516,
63,
6387,
1016,
15533,
7734,
309,
261,
1726,
18,
26321,
7675,
14963,
12,
1937,
548,
3719,
10792,
898,
31,
7734,
965,
6387,
1016,
31,
5411,
289,
5411,
368,
4163,
326,
770,
716,
333,
761,
1410,
506,
9564,
316,
5411,
364,
261,
474,
277,
273,
2243,
1016,
397,
404,
2
] |
block.setStyle(new Style(c.getCurrentStyle(), 0, c));
|
block.setStyle(new Style(c.getCurrentStyle(), 0));
|
public static Box createBox(LayoutContext c, Content content) { Box block = new AnonymousBlockBox(content); c.pushStyle(CascadedStyle.emptyCascadedStyle); block.setStyle(new Style(c.getCurrentStyle(), 0, c)); c.popStyle(); return block; }
|
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1a1faae1c515edaea28dc3a60efde193dc7545a6/AnonymousBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/AnonymousBoxing.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
8549,
752,
3514,
12,
3744,
1042,
276,
16,
3697,
913,
13,
288,
3639,
8549,
1203,
273,
394,
29775,
1768,
3514,
12,
1745,
1769,
3639,
276,
18,
6206,
2885,
12,
39,
3691,
2435,
2885,
18,
5531,
39,
3691,
2435,
2885,
1769,
3639,
1203,
18,
542,
2885,
12,
2704,
9767,
12,
71,
18,
588,
3935,
2885,
9334,
374,
10019,
3639,
276,
18,
5120,
2885,
5621,
3639,
327,
1203,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
8549,
752,
3514,
12,
3744,
1042,
276,
16,
3697,
913,
13,
288,
3639,
8549,
1203,
273,
394,
29775,
1768,
3514,
12,
1745,
1769,
3639,
276,
18,
6206,
2885,
12,
39,
3691,
2435,
2885,
18,
5531,
39,
3691,
2435,
2885,
1769,
3639,
1203,
18,
542,
2885,
12,
2704,
9767,
12,
71,
18,
588,
3935,
2885,
9334,
374,
10019,
3639,
276,
18,
5120,
2885,
5621,
3639,
327,
1203,
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
] |
public void createAccessMethods(JClass jClass) { JMethod method = null; JParameter contentParam = new JParameter(getContentType().getJType(), getContentName()); JSourceCode jsc = null; //---------------------/ //- Create add method -/ //---------------------/ String cName = JavaNaming.toJavaClassName(getElementName()); method = new JMethod(null, "add"+cName); jClass.addMethod(method); method.addException(SGTypes.IndexOutOfBoundsException); method.addParameter(contentParam); createAddMethod(method); //---------------------/ //- Create get method -/ //---------------------/ JType jType = getContentType().getJType(); method = new JMethod(jType, "get"+cName); jClass.addMethod(method); method.addException(SGTypes.IndexOutOfBoundsException); method.addParameter(new JParameter(JType.Int, "index")); createGetByIndexMethod(method); //-----------------------/ //- Create get[] method -/ //-----------------------/ jType = jType.createArray(); method = new JMethod(jType, "get"+cName); jClass.addMethod(method); createGetMethod(method); //----------------------/ //- Create set methods -/ //----------------------/ method = new JMethod(null, "set"+cName); jClass.addMethod(method); method.addException(SGTypes.IndexOutOfBoundsException); method.addParameter(contentParam); method.addParameter(new JParameter(JType.Int, "index")); createSetByIndexMethod(method); //-- array setter JType arrayType = contentParam.getType().createArray(); String pName = JavaNaming.toJavaMemberName(cName); JParameter arrayParam = new JParameter(arrayType, pName+"Array"); method = new JMethod(null, "set"+cName); method.addParameter(arrayParam); jClass.addMethod(method); createSetArrayMethod(method); //--------------------------/ //- Create getCount method -/ //--------------------------/ method = new JMethod(JType.Int, "get"+cName+"Count"); jClass.addMethod(method); createGetCountMethod(method); //---------------------------/ //- Create Enumerate Method -/ //---------------------------/ method = new JMethod(SGTypes.Enumeration, "enumerate"+cName); jClass.addMethod(method); createEnumerateMethod(method); //--------------------------------/ //- Create remove(Object) Method -/ //--------------------------------/ //-- commented out until I fix primitives //method = new JMethod(JType.Boolean, "remove"+cName); //methods.addElement(method); //method.addParameter(contentParam); //createRemoveByObjectMethod_Impl(method); //--------------------------------/ //- Create remove(int i) Method -/ //--------------------------------/ jType = getContentType().getJType(); method = new JMethod(jType, "remove"+cName); jClass.addMethod(method); method.addParameter(new JParameter(JType.Int, "index")); createRemoveByIndexMethod(method); //-----------------------------/ //- Create removeAll() Method -/ //-----------------------------/ method = new JMethod(null, "removeAll"+cName); jClass.addMethod(method); createRemoveAllMethod(method); } //-- createAccessMethods
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/ce2d2d2cdff5188c1f20ff2b843461107912d14e/CollectionInfo.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/builder/CollectionInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
1862,
4712,
12,
46,
797,
525,
797,
13,
288,
13491,
804,
1305,
707,
273,
446,
31,
7734,
804,
1662,
913,
786,
2398,
273,
394,
804,
1662,
12,
588,
8046,
7675,
588,
46,
559,
9334,
5154,
461,
10663,
10792,
804,
1830,
1085,
525,
1017,
273,
446,
31,
5375,
368,
1271,
13465,
19,
540,
368,
17,
1788,
527,
707,
300,
19,
3639,
368,
1271,
13465,
19,
7734,
514,
276,
461,
273,
5110,
24102,
18,
869,
5852,
3834,
12,
21336,
461,
10663,
7734,
707,
273,
394,
804,
1305,
12,
2011,
16,
315,
1289,
6,
15,
71,
461,
1769,
3639,
525,
797,
18,
1289,
1305,
12,
2039,
1769,
7734,
707,
18,
1289,
503,
12,
30820,
2016,
18,
30548,
1769,
3639,
707,
18,
1289,
1662,
12,
1745,
786,
1769,
7734,
752,
986,
1305,
12,
2039,
1769,
17311,
368,
1271,
13465,
19,
540,
368,
17,
1788,
336,
707,
300,
19,
3639,
368,
1271,
13465,
19,
13491,
804,
559,
525,
559,
273,
17470,
7675,
588,
46,
559,
5621,
3639,
707,
273,
394,
804,
1305,
12,
78,
559,
16,
315,
588,
6,
15,
71,
461,
1769,
3639,
525,
797,
18,
1289,
1305,
12,
2039,
1769,
3639,
707,
18,
1289,
503,
12,
30820,
2016,
18,
30548,
1769,
3639,
707,
18,
1289,
1662,
12,
2704,
804,
1662,
12,
46,
559,
18,
1702,
16,
315,
1615,
7923,
1769,
18701,
752,
967,
21268,
1305,
12,
2039,
1769,
4766,
1377,
368,
1271,
17082,
19,
540,
368,
17,
1788,
336,
8526,
707,
300,
19,
3639,
368,
1271,
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,
752,
1862,
4712,
12,
46,
797,
525,
797,
13,
288,
13491,
804,
1305,
707,
273,
446,
31,
7734,
804,
1662,
913,
786,
2398,
273,
394,
804,
1662,
12,
588,
8046,
7675,
588,
46,
559,
9334,
5154,
461,
10663,
10792,
804,
1830,
1085,
525,
1017,
273,
446,
31,
5375,
368,
1271,
13465,
19,
540,
368,
17,
1788,
527,
707,
300,
19,
3639,
368,
1271,
13465,
19,
7734,
514,
276,
461,
273,
5110,
24102,
18,
869,
5852,
3834,
12,
21336,
461,
10663,
7734,
707,
273,
394,
804,
1305,
12,
2011,
16,
315,
1289,
6,
15,
71,
461,
1769,
3639,
525,
797,
18,
1289,
1305,
12,
2039,
1769,
7734,
707,
18,
1289,
503,
12,
30820,
2016,
18,
30548,
1769,
2
] |
||
Integer classLine = AnalysisContext.currentAnalysisContext().getSourceInfoMap()
|
SourceInfoMap.SourceLineRange classLine = AnalysisContext.currentAnalysisContext() .getSourceInfoMap()
|
public SourceLineAnnotation getSourceLines() { if (sourceLines == null) { // Create source line annotation for class on demand Integer classLine = AnalysisContext.currentAnalysisContext().getSourceInfoMap() .getClassLine(className); int classLineNumber = classLine != null ? classLine.intValue() : -1; sourceLines = new SourceLineAnnotation( className, sourceFileName, classLineNumber, classLineNumber, -1, -1); } return sourceLines; }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d3ff6f0a84a2c9aca7404ac126b76504c5bac5f/ClassAnnotation.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ClassAnnotation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4998,
1670,
3257,
7889,
5763,
1435,
288,
202,
202,
430,
261,
3168,
5763,
422,
446,
13,
288,
1082,
202,
759,
1788,
1084,
980,
3204,
364,
667,
603,
23653,
25083,
202,
4522,
667,
1670,
273,
16318,
1042,
18,
2972,
9418,
1042,
7675,
588,
1830,
966,
863,
1435,
9506,
202,
18,
588,
797,
1670,
12,
12434,
1769,
25083,
202,
474,
667,
31063,
273,
667,
1670,
480,
446,
692,
667,
1670,
18,
474,
620,
1435,
294,
300,
21,
31,
25083,
202,
3168,
5763,
273,
394,
4998,
1670,
3257,
12,
6862,
202,
12434,
16,
1084,
4771,
16,
667,
31063,
16,
667,
31063,
16,
300,
21,
16,
300,
21,
1769,
202,
202,
97,
202,
202,
2463,
1084,
5763,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
4998,
1670,
3257,
7889,
5763,
1435,
288,
202,
202,
430,
261,
3168,
5763,
422,
446,
13,
288,
1082,
202,
759,
1788,
1084,
980,
3204,
364,
667,
603,
23653,
25083,
202,
4522,
667,
1670,
273,
16318,
1042,
18,
2972,
9418,
1042,
7675,
588,
1830,
966,
863,
1435,
9506,
202,
18,
588,
797,
1670,
12,
12434,
1769,
25083,
202,
474,
667,
31063,
273,
667,
1670,
480,
446,
692,
667,
1670,
18,
474,
620,
1435,
294,
300,
21,
31,
25083,
202,
3168,
5763,
273,
394,
4998,
1670,
3257,
12,
6862,
202,
12434,
16,
1084,
4771,
16,
667,
31063,
16,
667,
31063,
16,
300,
21,
16,
300,
21,
1769,
202,
202,
97,
202,
202,
2463,
1084,
5763,
31,
202,
97,
2
] |
return null; }
|
return null; }
|
public String getSourceId() { // TODO Auto-generated method stub return null; }
|
6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/7b30da2f47cbda6e16406770c133332adb1b4079/HeaderJDOM.java/buggy/MacPAF/src/com/redbugz/macpaf/jdom/HeaderJDOM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
7889,
548,
1435,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
7889,
548,
1435,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println("NameService host: " + dialog.getNameServiceHost()); System.out.println("NameService post: " + dialog.getNameServicePort());
|
private void networkConnectAction (ActionEvent e) { ConnectionDialog dialog = new ConnectionDialog(this, "ORB Connections"); dialog.display(); if ( dialog.getStatus() == ConnectionDialog.OK_OPTION ) { System.out.println("NameService host: " + dialog.getNameServiceHost()); System.out.println("NameService post: " + dialog.getNameServicePort()); if ( dialog.getNameServiceHost() != null ) { CorbaService new_orb = new CorbaService(dialog.getNameServiceHost(), dialog.getNameServicePort(), dialog.getNamingSubcontext()); Object service = ServiceRegistry.instance().getService("Environment"); try { if ( service != null ) { EnvironmentService env_service = (EnvironmentService) service; new_orb.init(env_service.getCommandLineArgs()); } else { new_orb.init(null); } m_bean_container.fireConnectionEvent(new_orb); m_orbs.add(new_orb); } catch (org.omg.CORBA.SystemException sys_ex) { sys_ex.getMessage(); sys_ex.printStackTrace(); } } } }
|
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/43ebe377b0dda0952e1841c12acc2dcf30cfd50a/TweekFrame.java/clean/modules/tweek/java/org/vrjuggler/tweek/gui/TweekFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
2483,
5215,
1803,
261,
1803,
1133,
425,
13,
282,
288,
1377,
4050,
6353,
6176,
273,
394,
4050,
6353,
12,
2211,
16,
315,
916,
38,
4050,
87,
8863,
1377,
6176,
18,
5417,
5621,
1377,
309,
261,
6176,
18,
588,
1482,
1435,
422,
4050,
6353,
18,
3141,
67,
7425,
262,
1377,
288,
540,
2332,
18,
659,
18,
8222,
2932,
461,
1179,
1479,
30,
315,
397,
6176,
18,
17994,
1179,
2594,
10663,
540,
2332,
18,
659,
18,
8222,
2932,
461,
1179,
1603,
30,
315,
397,
6176,
18,
17994,
1179,
2617,
10663,
540,
309,
261,
6176,
18,
17994,
1179,
2594,
1435,
480,
446,
262,
540,
288,
5411,
9557,
12124,
1179,
394,
67,
16640,
273,
394,
9557,
12124,
1179,
12,
12730,
18,
17994,
1179,
2594,
9334,
4766,
10792,
6176,
18,
17994,
1179,
2617,
9334,
4766,
10792,
6176,
18,
588,
24102,
1676,
2472,
10663,
5411,
1033,
1156,
273,
1956,
4243,
18,
1336,
7675,
588,
1179,
2932,
5494,
8863,
5411,
775,
5411,
288,
9079,
309,
261,
1156,
480,
446,
262,
9079,
288,
5375,
7518,
1179,
1550,
67,
3278,
273,
261,
5494,
1179,
13,
1156,
31,
5375,
394,
67,
16640,
18,
2738,
12,
3074,
67,
3278,
18,
588,
21391,
2615,
10663,
9079,
289,
9079,
469,
9079,
288,
5375,
394,
67,
16640,
18,
2738,
12,
2011,
1769,
9079,
289,
9079,
312,
67,
14496,
67,
3782,
18,
12179,
1952,
1133,
12,
2704,
67,
16640,
1769,
9079,
312,
67,
280,
2038,
18,
1289,
12,
2704,
67,
16640,
1769,
5411,
289,
5411,
1044,
261,
3341,
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,
565,
3238,
918,
2483,
5215,
1803,
261,
1803,
1133,
425,
13,
282,
288,
1377,
4050,
6353,
6176,
273,
394,
4050,
6353,
12,
2211,
16,
315,
916,
38,
4050,
87,
8863,
1377,
6176,
18,
5417,
5621,
1377,
309,
261,
6176,
18,
588,
1482,
1435,
422,
4050,
6353,
18,
3141,
67,
7425,
262,
1377,
288,
540,
2332,
18,
659,
18,
8222,
2932,
461,
1179,
1479,
30,
315,
397,
6176,
18,
17994,
1179,
2594,
10663,
540,
2332,
18,
659,
18,
8222,
2932,
461,
1179,
1603,
30,
315,
397,
6176,
18,
17994,
1179,
2617,
10663,
540,
309,
261,
6176,
18,
17994,
1179,
2594,
1435,
480,
446,
262,
540,
288,
5411,
9557,
12124,
1179,
394,
67,
16640,
273,
394,
9557,
12124,
1179,
12,
12730,
2
] |
|
Address rowIP = VM_Magic.objectAsAddress(stack).add(osrFPoff + STACKFRAME_RETURN_ADDRESS_OFFSET).loadAddress();
|
Address rowIP = VM_Magic.objectAsAddress(stack).loadAddress(osrFPoff.add(STACKFRAME_RETURN_ADDRESS_OFFSET));
|
public OSR_ExecutionState extractState(VM_Thread thread, int osrFPoff, int methFPoff, int cmid) { /* performs architecture and compiler dependent operations here * * When a thread is hung called from baseline compiled code, * the hierarchy of calls on stack looks like follows * ( starting from FP in the FP register ): * * morph * yield * threadSwitch * threadSwitchFrom[Prologue|Backedge|Epilong] * foo ( real method ). * * The returned OSR_ExecutionState should have following * * current thread * compiled method ID of "foo" * fp of foo's stack frame * bytecode index of foo's next instruction * the list of variable,value of foo at that point * which method (foo) */ if (VM.TraceOnStackReplacement) { VM.sysWriteln("BASE execStateExtractor starting ..."); } VM_Registers contextRegisters = thread.contextRegisters; byte[] stack = thread.stack; if (VM.VerifyAssertions) { int fooCmid = VM_Magic.getIntAtOffset(stack, methFPoff + STACKFRAME_METHOD_ID_OFFSET); if (VM.TraceOnStackReplacement) { VM.sysWriteln("fooCmid = " + fooCmid); VM.sysWriteln(" cmid = " + cmid); } VM._assert(fooCmid == cmid); } VM_BaselineCompiledMethod fooCM = (VM_BaselineCompiledMethod)VM_CompiledMethods.getCompiledMethod(cmid); VM_NormalMethod fooM = (VM_NormalMethod)fooCM.getMethod(); // get the next bc index VM_CodeArray instructions = fooCM.getInstructions(); VM.disableGC(); Address instr_beg = VM_Magic.objectAsAddress(instructions); Address rowIP = VM_Magic.objectAsAddress(stack).add(osrFPoff + STACKFRAME_RETURN_ADDRESS_OFFSET).loadAddress(); VM.enableGC(); int ipIndex = rowIP.diff(instr_beg).toInt() >> LG_INSTRUCTION_WIDTH; // CAUTION: IP Offset should point to next instruction int bcIndex = fooCM.findBytecodeIndexForInstruction(ipIndex + 1); // assertions if (VM.VerifyAssertions) { if (bcIndex == -1) { VM.sysWriteln("osrFPoff = " + osrFPoff); VM.sysWriteln("instr_beg = " + instr_beg); for (int i=(osrFPoff)-10; i<(osrFPoff)+10; i++) VM.sysWriteln(" stack["+i+"] = "+stack[i]); VM.sysWriteln("ipIndex : " + ipIndex); VM.sysWriteln("bcIndex : " + bcIndex); } VM._assert(bcIndex != -1); } // create execution state object OSR_ExecutionState state = new OSR_ExecutionState(thread, methFPoff, cmid, bcIndex, osrFPoff); /* extract values for local and stack, but first of all * we need to get type information for current PC. */ OSR_BytecodeTraverser typer = new OSR_BytecodeTraverser(); typer.computeLocalStackTypes(fooM, bcIndex); byte[] localTypes = typer.getLocalTypes(); byte[] stackTypes = typer.getStackTypes(); if (VM.TraceOnStackReplacement) { VM.sysWrite("BC Index : "+bcIndex+"\n"); VM.sysWrite("Local Types :"); for (int i=0; i<localTypes.length; i++) { VM.sysWrite(" "+(char)localTypes[i]); } VM.sysWrite("\nStack Types :"); for (int i=0; i<stackTypes.length; i++) { VM.sysWrite(" "+(char)stackTypes[i]); } VM.sysWrite("\n"); } // consult GC reference map again since the type matcher does not complete // the flow analysis, it can not distinguish reference or non-reference // type. We should remove non-reference type for (int i=0, n=localTypes.length; i<n; i++) { // if typer reports a local is reference type, but the GC map says no // then set the localType to uninitialized, see VM spec, bytecode verifier if (localTypes[i] == ClassTypeCode) { if (!fooCM.referenceMaps.isLocalRefType(fooM, ipIndex+ 1, i)) { localTypes[i] = VoidTypeCode; if (VM.TraceOnStackReplacement) { VM.sysWriteln("GC maps disagrees with type matcher at "+i+"th local\n"); } } } } // go through the stack frame and extract values // In the variable value list, we keep the order as follows: // L0, L1, ..., S0, S1, .... // adjust local offset and stack offset // NOTE: donot call VM_Compiler.getFirstLocalOffset(method) int startLocalOffset = fooCM.getStartLocalOffset(); startLocalOffset += methFPoff; int stackOffset = fooCM.getEmptyStackOffset(); stackOffset += methFPoff; // for locals getVariableValue(stack, startLocalOffset, localTypes, fooCM, instructions, LOCAL, state); // for stacks getVariableValue(stack, stackOffset, stackTypes, fooCM, instructions, STACK, state); if (VM.TraceOnStackReplacement) { state.printState(); } if (VM.TraceOnStackReplacement) { VM.sysWriteln("BASE executionStateExtractor done "); } return state; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/OSR_BaselineExecStateExtractor.java/clean/rvm/src/vm/arch/intel/executionState/OSR_BaselineExecStateExtractor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5932,
54,
67,
3210,
1119,
2608,
1119,
12,
7397,
67,
3830,
2650,
16,
21394,
509,
1140,
86,
30246,
3674,
16,
21394,
509,
7917,
30246,
3674,
16,
4766,
282,
509,
5003,
350,
13,
288,
225,
1748,
11199,
27418,
471,
5274,
10460,
5295,
2674,
282,
380,
565,
380,
5203,
279,
2650,
353,
366,
20651,
2566,
628,
14243,
7743,
981,
16,
282,
380,
326,
9360,
434,
4097,
603,
2110,
10192,
3007,
13040,
282,
380,
261,
5023,
628,
28740,
316,
326,
28740,
1744,
262,
30,
282,
380,
7734,
380,
6647,
14354,
282,
380,
6647,
2824,
282,
380,
6647,
2650,
10200,
282,
380,
6647,
2650,
10200,
1265,
63,
626,
1330,
344,
96,
2711,
7126,
96,
18918,
330,
932,
65,
282,
380,
6647,
8431,
261,
2863,
707,
262,
18,
282,
380,
565,
380,
1021,
2106,
5932,
54,
67,
3210,
1119,
1410,
1240,
3751,
282,
380,
3639,
380,
377,
783,
2650,
282,
380,
377,
7743,
707,
1599,
434,
315,
11351,
6,
282,
380,
377,
4253,
434,
8431,
1807,
2110,
2623,
282,
380,
377,
22801,
770,
434,
8431,
1807,
1024,
7592,
282,
380,
377,
326,
666,
434,
2190,
16,
1132,
434,
8431,
622,
716,
1634,
282,
380,
377,
1492,
707,
261,
11351,
13,
377,
1195,
565,
309,
261,
7397,
18,
3448,
1398,
2624,
15201,
13,
288,
1377,
8251,
18,
9499,
4913,
292,
82,
2932,
8369,
1196,
1119,
10958,
5023,
1372,
8863,
3639,
289,
565,
8251,
67,
10277,
819,
10277,
273,
2650,
18,
2472,
10277,
31,
565,
1160,
8526,
2110,
273,
2650,
18,
3772,
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,
5932,
54,
67,
3210,
1119,
2608,
1119,
12,
7397,
67,
3830,
2650,
16,
21394,
509,
1140,
86,
30246,
3674,
16,
21394,
509,
7917,
30246,
3674,
16,
4766,
282,
509,
5003,
350,
13,
288,
225,
1748,
11199,
27418,
471,
5274,
10460,
5295,
2674,
282,
380,
565,
380,
5203,
279,
2650,
353,
366,
20651,
2566,
628,
14243,
7743,
981,
16,
282,
380,
326,
9360,
434,
4097,
603,
2110,
10192,
3007,
13040,
282,
380,
261,
5023,
628,
28740,
316,
326,
28740,
1744,
262,
30,
282,
380,
7734,
380,
6647,
14354,
282,
380,
6647,
2824,
282,
380,
6647,
2650,
10200,
282,
380,
6647,
2650,
10200,
1265,
63,
626,
1330,
344,
96,
2711,
7126,
96,
18918,
330,
932,
65,
282,
380,
6647,
2
] |
public NewFloatPolygonRasterizer(int[] pixelBuf) { this(pixelBuf, false, false,null);
|
public NewFloatPolygonRasterizer(int[] pixelBuf,boolean interpolateY, boolean interpolateFullX, Colorizer colorizer) { super(); this.colorizer = colorizer; this.interpolateY = interpolateY; this.interpolateFullX = interpolateFullX; pixels=pixelBuf; System.out.println(">NEW FLOAT RASTERIZER<"); System.out.println("(correct interpolation = "+correctInterpolation+")");
|
public NewFloatPolygonRasterizer(int[] pixelBuf) { this(pixelBuf, false, false,null); }
|
25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/ebefa80ebc57705657a2249820470c341a94948d/NewFloatPolygonRasterizer.java/buggy/src-soft/de/jreality/soft/NewFloatPolygonRasterizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1166,
4723,
11787,
18637,
1824,
12,
474,
8526,
4957,
5503,
13,
288,
3639,
333,
12,
11743,
5503,
16,
629,
16,
629,
16,
2011,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1166,
4723,
11787,
18637,
1824,
12,
474,
8526,
4957,
5503,
13,
288,
3639,
333,
12,
11743,
5503,
16,
629,
16,
629,
16,
2011,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self = new JInterfaceDeclaration(sourceRef, modifiers, ident.getText(), interfaces, context.getFields(), context.getMethods(), context.getInnerClasses(), context.getBody(), getJavadocComment(), getStatementComment()); context.release();
|
self = new JInterfaceDeclaration(sourceRef, modifiers, ident.getText(), interfaces, context.getFields(), context.getMethods(), context.getInnerClasses(), context.getBody(), getJavadocComment(), getStatementComment()); context.release();
|
private final JInterfaceDeclaration jInterfaceDefinition( int modifiers ) throws RecognitionException, TokenStreamException { JInterfaceDeclaration self = null; Token ident = null; CClassType[] interfaces = CClassType.EMPTY; CParseClassContext context = CParseClassContext.getInstance(); TokenReference sourceRef = buildTokenReference(); match(LITERAL_interface); ident = LT(1); match(IDENT); interfaces=jInterfaceExtends(); jClassBlock(context); if ( inputState.guessing==0 ) { self = new JInterfaceDeclaration(sourceRef, modifiers, ident.getText(), interfaces, context.getFields(), context.getMethods(), context.getInnerClasses(), context.getBody(), getJavadocComment(), getStatementComment()); context.release(); } return self; }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/c9be56e8c6581d1552b6de0f72991e64e54ec601/KjcParser.java/buggy/streams/src/at/dms/kjc/KjcParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
804,
1358,
6094,
225,
525,
1358,
1852,
12,
202,
202,
474,
10429,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
46,
1358,
6094,
365,
273,
446,
31,
9506,
202,
1345,
225,
3390,
273,
446,
31,
9506,
202,
39,
18328,
8526,
202,
202,
15898,
273,
225,
385,
18328,
18,
13625,
31,
202,
202,
39,
3201,
797,
1042,
202,
2472,
273,
385,
3201,
797,
1042,
18,
588,
1442,
5621,
202,
202,
1345,
2404,
202,
3168,
1957,
273,
1361,
1345,
2404,
5621,
25083,
202,
1916,
12,
23225,
67,
5831,
1769,
202,
202,
6392,
273,
11807,
12,
21,
1769,
202,
202,
1916,
12,
13355,
1769,
202,
202,
15898,
33,
78,
1358,
19581,
5621,
202,
202,
78,
797,
1768,
12,
2472,
1769,
202,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
25083,
202,
2890,
273,
394,
804,
1358,
6094,
12,
3168,
1957,
16,
6862,
9506,
4202,
10429,
16,
6862,
9506,
4202,
3390,
18,
588,
1528,
9334,
6862,
9506,
4202,
7349,
16,
6862,
9506,
4202,
819,
18,
588,
2314,
9334,
6862,
9506,
4202,
819,
18,
588,
4712,
9334,
6862,
9506,
4202,
819,
18,
588,
2857,
4818,
9334,
6862,
9506,
4202,
819,
18,
588,
2250,
9334,
6862,
9506,
4202,
9285,
4805,
4469,
9334,
6862,
9506,
4202,
31523,
4469,
10663,
1082,
202,
2472,
18,
9340,
5621,
6862,
202,
97,
202,
202,
2463,
365,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
804,
1358,
6094,
225,
525,
1358,
1852,
12,
202,
202,
474,
10429,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
46,
1358,
6094,
365,
273,
446,
31,
9506,
202,
1345,
225,
3390,
273,
446,
31,
9506,
202,
39,
18328,
8526,
202,
202,
15898,
273,
225,
385,
18328,
18,
13625,
31,
202,
202,
39,
3201,
797,
1042,
202,
2472,
273,
385,
3201,
797,
1042,
18,
588,
1442,
5621,
202,
202,
1345,
2404,
202,
3168,
1957,
273,
1361,
1345,
2404,
5621,
25083,
202,
1916,
12,
23225,
67,
5831,
1769,
202,
202,
6392,
273,
11807,
12,
21,
1769,
202,
202,
1916,
12,
13355,
1769,
202,
202,
15898,
33,
78,
1358,
19581,
5621,
202,
202,
78,
2
] |
double aRate = (new Double(subStrings[RATE_INDEX])).doubleValue();
|
long rateBits = Long.parseLong(subStrings[RATE_INDEX],16); double aRate = Double.longBitsToDouble(rateBits);
|
public static InventoryProjTask createFromCSV(String csvString) { String[] subStrings = csvString.split(SPLIT_REGEX); double aRate = (new Double(subStrings[RATE_INDEX])).doubleValue(); long aStartTime = -0L; String startTimeStr = subStrings[START_TIME_INDEX].trim(); if (!(startTimeStr.equals(""))) { aStartTime = (new Long(startTimeStr)).longValue(); } long anEndTime = (new Long(subStrings[END_TIME_INDEX])).longValue(); InventoryProjTask newTask = new InventoryProjTask(subStrings[PARENT_UID_INDEX].trim(), subStrings[UID_INDEX].trim(), subStrings[VERB_INDEX].trim(), subStrings[FOR_INDEX].trim(), aRate, aStartTime, anEndTime); return newTask; }
|
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/8ae1c39ba75cbd0226f9107bb4668ca180f6db95/InventoryProjTask.java/buggy/bbn/src/org/cougaar/logistics/ui/inventory/data/InventoryProjTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
24835,
626,
78,
2174,
9492,
16570,
12,
780,
6101,
780,
13,
288,
565,
514,
8526,
720,
7957,
273,
6101,
780,
18,
4939,
12,
17482,
67,
12472,
1769,
1377,
1525,
4993,
6495,
273,
3407,
18,
2670,
3708,
12,
1717,
7957,
63,
24062,
67,
9199,
6487,
2313,
1769,
1645,
279,
4727,
273,
3698,
18,
5748,
6495,
774,
5265,
12,
5141,
6495,
1769,
377,
1525,
279,
13649,
273,
300,
20,
48,
31,
565,
514,
8657,
1585,
273,
720,
7957,
63,
7570,
67,
4684,
67,
9199,
8009,
5290,
5621,
565,
309,
16051,
12,
1937,
950,
1585,
18,
14963,
2932,
6,
20349,
288,
1377,
279,
13649,
273,
261,
2704,
3407,
12,
1937,
950,
1585,
13,
2934,
5748,
620,
5621,
565,
289,
565,
1525,
392,
25255,
273,
261,
2704,
3407,
12,
1717,
7957,
63,
4415,
67,
4684,
67,
9199,
5717,
2934,
5748,
620,
5621,
565,
24835,
626,
78,
2174,
394,
2174,
273,
394,
24835,
626,
78,
2174,
12,
1717,
7957,
63,
14943,
67,
3060,
67,
9199,
8009,
5290,
9334,
4766,
8227,
720,
7957,
63,
3060,
67,
9199,
8009,
5290,
9334,
4766,
8227,
720,
7957,
63,
2204,
38,
67,
9199,
8009,
5290,
9334,
4766,
8227,
720,
7957,
63,
7473,
67,
9199,
8009,
5290,
9334,
4766,
8227,
279,
4727,
16,
279,
13649,
16,
392,
25255,
1769,
565,
327,
394,
2174,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
24835,
626,
78,
2174,
9492,
16570,
12,
780,
6101,
780,
13,
288,
565,
514,
8526,
720,
7957,
273,
6101,
780,
18,
4939,
12,
17482,
67,
12472,
1769,
1377,
1525,
4993,
6495,
273,
3407,
18,
2670,
3708,
12,
1717,
7957,
63,
24062,
67,
9199,
6487,
2313,
1769,
1645,
279,
4727,
273,
3698,
18,
5748,
6495,
774,
5265,
12,
5141,
6495,
1769,
377,
1525,
279,
13649,
273,
300,
20,
48,
31,
565,
514,
8657,
1585,
273,
720,
7957,
63,
7570,
67,
4684,
67,
9199,
8009,
5290,
5621,
565,
309,
16051,
12,
1937,
950,
1585,
18,
14963,
2932,
6,
20349,
288,
1377,
279,
13649,
273,
261,
2704,
3407,
12,
1937,
950,
1585,
13,
2934,
5748,
620,
5621,
565,
289,
2
] |
if ( !( sibling instanceof Element ) ) {
|
if (!(sibling instanceof Element)) {
|
Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.getPreviousSibling(); } break; default: XRLog.exception( "Bad sibling axis" ); } if ( !( sibling instanceof Element ) ) { return null; } return (Element)sibling; }
|
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/c5e4137650b883bbb105b1671ee06fa69cd65ec3/Selector.java/clean/src/java/org/xhtmlrenderer/css/newmatch/Selector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3010,
336,
1294,
5986,
566,
340,
10291,
12,
3010,
425,
262,
288,
3639,
2029,
10841,
273,
446,
31,
3639,
1620,
261,
389,
4890,
262,
288,
5411,
648,
6246,
15971,
1777,
67,
9894,
26789,
67,
25614,
30,
7734,
10841,
273,
425,
18,
588,
8351,
10291,
5621,
7734,
1323,
261,
10841,
480,
446,
597,
10841,
18,
588,
15101,
1435,
480,
2029,
18,
10976,
67,
8744,
262,
288,
10792,
10841,
273,
10841,
18,
588,
8351,
10291,
5621,
7734,
289,
7734,
898,
31,
5411,
805,
30,
7734,
1139,
54,
1343,
18,
4064,
12,
315,
6434,
10841,
2654,
6,
11272,
3639,
289,
3639,
309,
16051,
12,
22734,
1276,
3010,
3719,
288,
5411,
327,
446,
31,
3639,
289,
3639,
327,
261,
1046,
13,
22734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3010,
336,
1294,
5986,
566,
340,
10291,
12,
3010,
425,
262,
288,
3639,
2029,
10841,
273,
446,
31,
3639,
1620,
261,
389,
4890,
262,
288,
5411,
648,
6246,
15971,
1777,
67,
9894,
26789,
67,
25614,
30,
7734,
10841,
273,
425,
18,
588,
8351,
10291,
5621,
7734,
1323,
261,
10841,
480,
446,
597,
10841,
18,
588,
15101,
1435,
480,
2029,
18,
10976,
67,
8744,
262,
288,
10792,
10841,
273,
10841,
18,
588,
8351,
10291,
5621,
7734,
289,
7734,
898,
31,
5411,
805,
30,
7734,
1139,
54,
1343,
18,
4064,
12,
315,
6434,
10841,
2654,
6,
11272,
3639,
289,
3639,
309,
16051,
12,
22734,
1276,
3010,
3719,
288,
5411,
327,
446,
31,
3639,
289,
3639,
327,
261,
1046,
13,
22734,
2
] |
if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(70, 71);
|
if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59);
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 75; 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 1: if ((0x3ff000000000000L & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 2: case 41: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(2, 3); break; case 3: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: case 50: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 10: case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: case 63: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 13); break; case 13: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(14); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 17: case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(20); break; case 20: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if ((0x600000000000L & l) != 0L) jjCheckNAddStates(27, 29); break; case 26: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 33); break; case 28: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(34, 36); break; case 29: if (curChar != 46) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(29, 30); break; case 30: if (curChar == 45) jjCheckNAdd(31); break; case 31: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(32, 33); break; case 33: if (curChar == 46) jjCheckNAdd(34); break; case 34: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: case 39: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 42: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 44: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 45: case 46: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(46, 47); break; case 47: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(48); break; case 48: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 53: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: case 55: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(57); break; case 57: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 59: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 60: case 61: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(62, 63); break; case 66: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 67; break; case 69: if (curChar == 46) jjCheckNAdd(70); break; case 71: if (curChar != 46) break; if (kind > 3) kind = 3; jjCheckNAdd(70); break; case 73: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 74; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(40, 45); if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(46, 47); break; case 3: if (curChar == 95) jjCheckNAdd(4); break; case 4: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 95) jjCheckNAdd(7); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if (curChar == 95) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(48, 49); break; case 13: if (curChar == 95) jjCheckNAdd(14); break; case 14: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if (curChar == 95) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(50, 51); break; case 19: if (curChar == 95) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(24, 26); break; case 25: if (curChar == 95) jjCheckNAdd(26); break; case 26: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 33); break; case 27: if (curChar == 64) jjCheckNAdd(28); break; case 28: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(34, 36); break; case 31: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(32, 33); break; case 34: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: if (curChar == 95) jjCheckNAddTwoStates(37, 38); break; case 37: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 39: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 39; break; case 40: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 42: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: if (curChar == 95) jjCheckNAddTwoStates(44, 45); break; case 44: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 46: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(52, 53); break; case 47: if (curChar == 95) jjCheckNAdd(48); break; case 48: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: if (curChar == 95) jjCheckNAddTwoStates(53, 54); break; case 53: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 55: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if (curChar == 95) jjCheckNAdd(57); break; case 57: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: if (curChar == 95) jjCheckNAddTwoStates(59, 60); break; case 59: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 61: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(62, 63); break; case 64: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(40, 45); break; case 65: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(65, 66); break; case 67: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(66, 67); break; case 68: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(68, 69); break; case 70: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(54, 55); break; case 72: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(72, 73); break; case 73: if (curChar == 64) jjCheckNAdd(74); break; case 74: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAdd(74); 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)) { if (kind > 10) kind = 10; jjCheckNAdd(0); } if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); if (jjCanMove_2(hiByte, i1, i2, l1, l2)) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(40, 45); break; case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 10) kind = 10; jjCheckNAdd(0); break; case 2: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 4: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 4; break; case 5: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 7: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(56, 57); break; case 9: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(58, 59); break; case 10: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 11: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 14: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(14, 15); break; case 16: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(60, 61); break; case 17: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 18: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 20: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(24, 26); break; case 26: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 33); break; case 28: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(34, 36); break; case 31: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(32, 33); break; case 34: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(35, 36); break; case 37: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(62, 63); break; case 38: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 39: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 40: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(40, 41); break; case 41: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 42: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(42, 43); break; case 44: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(64, 65); break; case 45: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(46, 47); break; case 46: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(46, 47); break; case 48: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(49, 50); break; case 50: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 51: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(51, 52); break; case 53: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(66, 67); break; case 54: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); break; case 55: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); break; case 57: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(68, 69); break; case 59: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(70, 71); break; case 60: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 61: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(62, 63); break; case 63: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 64: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(40, 45); break; case 65: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(65, 66); break; case 67: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(66, 67); break; case 68: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(68, 69); break; case 70: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(54, 55); break; case 72: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(72, 73); break; case 74: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 4) kind = 4; jjstateSet[jjnewStateCnt++] = 74; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 75 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/b118a27a8623ffbfab74ffed2cb6817d04292d9a/StandardTokenizerTokenManager.java/buggy/src/java/org/apache/lucene/analysis/standard/StandardTokenizerTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
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,
18821,
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,
404,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
404,
13,
13491,
3846,
273,
404,
31,
5397,
10684,
1564,
50,
986,
7629,
12,
20,
16,
8043,
1769,
5375,
289,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
7629,
12,
2643,
16,
10213,
1769,
5375,
898,
31,
9079,
648,
576,
30,
9079,
648,
20170,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
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,
18821,
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
] |
if (right instanceof TemplateNumber) {
|
if (right instanceof TemplateNumber) {
|
public Object value( InternalContextAdapter context ) throws MethodInvocationException { /* * get the two args */ Object left = jjtGetChild(0).value( context ); Object right = jjtGetChild(1).value( context ); /* * if either is null, lets log and bail */ if (left == null || right == null) { rsvc.error( ( left == null ? "Left" : "Right" ) + " side (" + jjtGetChild( (left == null? 0 : 1) ).literal() + ") of multiplication operation has null value." + " Operation not possible. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return null; } /* * convert to Number if applicable */ if (left instanceof TemplateNumber) { left = ( (TemplateNumber) left).getAsNumber(); } if (right instanceof TemplateNumber) { right = ( (TemplateNumber) right).getAsNumber(); } /* * if not a Number, not much we can do either */ if ( !( left instanceof Number ) || !( right instanceof Number )) { rsvc.error( ( !( left instanceof Number ) ? "Left" : "Right" ) + " side of multiplication operation is not a Number. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return null; } return MathUtils.multiply( (Number)left, (Number)right); }
|
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/db561fa3a70ed2d8e5214b27d7905e75cbaa2125/ASTMulNode.java/clean/src/java/org/apache/velocity/runtime/parser/node/ASTMulNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
460,
12,
3186,
1042,
4216,
819,
262,
3639,
1216,
2985,
9267,
503,
565,
288,
3639,
1748,
540,
380,
225,
336,
326,
2795,
833,
540,
1195,
3639,
1033,
2002,
273,
10684,
88,
967,
1763,
12,
20,
2934,
1132,
12,
819,
11272,
3639,
1033,
2145,
273,
10684,
88,
967,
1763,
12,
21,
2934,
1132,
12,
819,
11272,
3639,
1748,
540,
380,
225,
309,
3344,
353,
446,
16,
14557,
613,
471,
18422,
540,
1195,
3639,
309,
261,
4482,
422,
446,
747,
2145,
422,
446,
13,
3639,
288,
5411,
3597,
4227,
18,
1636,
12,
261,
2002,
422,
446,
692,
315,
3910,
6,
294,
315,
4726,
6,
262,
397,
315,
4889,
7566,
21821,
397,
10684,
88,
967,
1763,
12,
261,
4482,
422,
446,
35,
374,
294,
404,
13,
262,
18,
13107,
1435,
21821,
397,
9369,
434,
23066,
1674,
711,
446,
460,
1199,
21821,
397,
315,
4189,
486,
3323,
18,
315,
21821,
397,
819,
18,
588,
3935,
28917,
1435,
397,
315,
306,
1369,
315,
397,
9851,
1435,
18701,
397,
3104,
1057,
315,
397,
6716,
1435,
397,
9870,
1769,
5411,
327,
446,
31,
3639,
289,
7734,
1748,
540,
380,
225,
1765,
358,
3588,
309,
12008,
540,
1195,
3639,
309,
261,
4482,
1276,
5035,
1854,
13,
288,
6647,
2002,
273,
261,
261,
2283,
1854,
13,
2002,
2934,
588,
1463,
1854,
5621,
3639,
289,
3639,
309,
261,
4083,
1276,
5035,
1854,
13,
288,
6647,
2145,
273,
261,
261,
2283,
1854,
13,
2145,
2934,
588,
1463,
1854,
5621,
3639,
289,
3639,
1748,
540,
380,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
460,
12,
3186,
1042,
4216,
819,
262,
3639,
1216,
2985,
9267,
503,
565,
288,
3639,
1748,
540,
380,
225,
336,
326,
2795,
833,
540,
1195,
3639,
1033,
2002,
273,
10684,
88,
967,
1763,
12,
20,
2934,
1132,
12,
819,
11272,
3639,
1033,
2145,
273,
10684,
88,
967,
1763,
12,
21,
2934,
1132,
12,
819,
11272,
3639,
1748,
540,
380,
225,
309,
3344,
353,
446,
16,
14557,
613,
471,
18422,
540,
1195,
3639,
309,
261,
4482,
422,
446,
747,
2145,
422,
446,
13,
3639,
288,
5411,
3597,
4227,
18,
1636,
12,
261,
2002,
422,
446,
692,
315,
3910,
6,
294,
315,
4726,
6,
262,
397,
315,
4889,
7566,
21821,
397,
10684,
88,
967,
1763,
12,
261,
4482,
2
] |
private void swtichToExprType( ) { Label title = new Label( inputArea, SWT.NONE ); uriEditor = new Text( inputArea, SWT.SINGLE | SWT.BORDER ); uriEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); uriEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); Composite innerComp = new Composite( inputArea, SWT.NONE ); innerComp.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); if ( selectedType == BLOB_TYPE ) { innerComp.setLayout( new GridLayout( 3, false ) ); title.setText( Messages.getString( "ImageBuilder.Label.EnterExpr" ) ); //$NON-NLS-1$ } else { innerComp.setLayout( new GridLayout( 2, false ) ); title.setText( DLG_ENTER_URI_LABEL ); } Button inputButton = new Button( innerComp, SWT.PUSH ); inputButton.setText( Messages.getString( "ImageBuilder.Label.Open" ) ); //$NON-NLS-1$ inputButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); inputButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { openExpression( ); } } ); if ( selectedType == BLOB_TYPE ) { bindingButton = new Button( innerComp, SWT.PUSH ); bindingButton.setText( Messages.getString( "ImageBuilder.Label.Binding" ) ); //$NON-NLS-1$ bindingButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); bindingButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { openBidingDialog( ); } } ); } previewButton = new Button( innerComp, SWT.PUSH ); previewButton.setText( DLG_PREVIEW_LABEL ); previewButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); previewButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { switch ( selectedType ) { case URI_TYPE : uriEditor.setText( uriEditor.getText( ).trim( ) ); preview( removeQuoteString( uriEditor.getText( ) ) ); break; } } } ); initURIEditor( ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/6641c59048786e53d20d8f95fb832cee7bda2ad4/ImageBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ImageBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
5328,
88,
1354,
774,
4742,
559,
1435,
202,
95,
202,
202,
2224,
2649,
33,
2704,
2224,
12,
2630,
5484,
16,
55,
8588,
18,
9826,
1769,
202,
202,
1650,
6946,
33,
2704,
1528,
12,
2630,
5484,
16,
55,
8588,
18,
20184,
96,
55,
8588,
18,
38,
7954,
1769,
202,
202,
1650,
6946,
18,
542,
3744,
751,
12,
2704,
6313,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
1650,
6946,
18,
1289,
11047,
2223,
12,
2704,
11047,
2223,
1435,
95,
1082,
202,
482,
6459,
17042,
1528,
12,
11047,
1133,
73,
13,
1082,
202,
95,
9506,
202,
2725,
14388,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
9400,
7872,
2945,
33,
2704,
9400,
12,
2630,
5484,
16,
55,
8588,
18,
9826,
1769,
202,
202,
7872,
2945,
18,
542,
3744,
751,
12,
2704,
6313,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
4415,
10019,
202,
202,
430,
12,
8109,
559,
631,
38,
6038,
67,
2399,
13,
202,
202,
95,
1082,
202,
7872,
2945,
18,
542,
3744,
12,
2704,
6313,
3744,
12,
23,
16,
5743,
10019,
1082,
202,
2649,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
2040,
1263,
18,
2224,
18,
10237,
4742,
7923,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
7872,
2945,
18,
542,
3744,
12,
2704,
6313,
3744,
12,
22,
16,
5743,
10019,
1082,
202,
2649,
18,
542,
1528,
12,
8914,
43,
67,
12278,
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,
6459,
5328,
88,
1354,
774,
4742,
559,
1435,
202,
95,
202,
202,
2224,
2649,
33,
2704,
2224,
12,
2630,
5484,
16,
55,
8588,
18,
9826,
1769,
202,
202,
1650,
6946,
33,
2704,
1528,
12,
2630,
5484,
16,
55,
8588,
18,
20184,
96,
55,
8588,
18,
38,
7954,
1769,
202,
202,
1650,
6946,
18,
542,
3744,
751,
12,
2704,
6313,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
1650,
6946,
18,
1289,
11047,
2223,
12,
2704,
11047,
2223,
1435,
95,
1082,
202,
482,
6459,
17042,
1528,
12,
11047,
1133,
73,
13,
1082,
202,
95,
9506,
202,
2725,
14388,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
9400,
7872,
2945,
33,
2704,
9400,
2
] |
||
AST tmp1568_AST_in = (AST)_t;
|
AST tmp1567_AST_in = (AST)_t;
|
public final void triggerprocedurestate(AST _t) throws RecognitionException { AST triggerprocedurestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST t1 = null; AST rec = null; AST id4 = null; AST id3 = null; AST id = null; AST id2 = null; AST __t1182 = _t; AST tmp1550_AST_in = (AST)_t; match(_t,TRIGGER); _t = _t.getFirstChild(); AST tmp1551_AST_in = (AST)_t; match(_t,PROCEDURE); _t = _t.getNextSibling(); AST tmp1552_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CREATE: case DELETE_KW: case FIND: case REPLICATIONCREATE: case REPLICATIONDELETE: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CREATE: { AST tmp1553_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getNextSibling(); break; } case DELETE_KW: { AST tmp1554_AST_in = (AST)_t; match(_t,DELETE_KW); _t = _t.getNextSibling(); break; } case FIND: { AST tmp1555_AST_in = (AST)_t; match(_t,FIND); _t = _t.getNextSibling(); break; } case REPLICATIONCREATE: { AST tmp1556_AST_in = (AST)_t; match(_t,REPLICATIONCREATE); _t = _t.getNextSibling(); break; } case REPLICATIONDELETE: { AST tmp1557_AST_in = (AST)_t; match(_t,REPLICATIONDELETE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp1558_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); t1 = _t==ASTNULL ? null : (AST)_t; tbl(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.defineBufferForTrigger(t1); } break; } case REPLICATIONWRITE: case WRITE: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WRITE: { AST tmp1559_AST_in = (AST)_t; match(_t,WRITE); _t = _t.getNextSibling(); break; } case REPLICATIONWRITE: { AST tmp1560_AST_in = (AST)_t; match(_t,REPLICATIONWRITE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp1561_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); rec = _t==ASTNULL ? null : (AST)_t; tbl(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case EOF: case PERIOD: case NEW: case OLD: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: { AST tmp1562_AST_in = (AST)_t; match(_t,NEW); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BUFFER: { AST tmp1563_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id4 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case EOF: case PERIOD: case OLD: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.defineBuffer(id4, id4, rec, true); } break; } case EOF: case PERIOD: case OLD: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { if (id4 == null) action.defineBufferForTrigger(rec); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OLD: { AST tmp1564_AST_in = (AST)_t; match(_t,OLD); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BUFFER: { AST tmp1565_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id3 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.defineBuffer(id3, id3, rec, true); } break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } break; } case ASSIGN: { AST tmp1566_AST_in = (AST)_t; match(_t,ASSIGN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OF: { AST __t1195 = _t; AST tmp1567_AST_in = (AST)_t; match(_t,OF); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TABLE: { AST __t1197 = _t; AST tmp1568_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getFirstChild(); AST tmp1569_AST_in = (AST)_t; match(_t,LABEL); _t = _t.getNextSibling(); constant(_t); _t = _retTree; _t = __t1197; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1195; _t = _t.getNextSibling(); break; } case NEW: { AST __t1198 = _t; AST tmp1570_AST_in = (AST)_t; match(_t,NEW); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: { AST tmp1571_AST_in = (AST)_t; match(_t,VALUE); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineVariable(id, id)); } defineparam_var(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } _t = __t1198; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case OLD: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OLD: { AST __t1201 = _t; AST tmp1572_AST_in = (AST)_t; match(_t,OLD); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: { AST tmp1573_AST_in = (AST)_t; match(_t,VALUE); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id2 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineVariable(id2, id2)); } defineparam_var(_t); _t = _retTree; _t = __t1201; _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1182; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3080,
685,
8153,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3080,
685,
8153,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
268,
21,
273,
446,
31,
202,
202,
9053,
1950,
273,
446,
31,
202,
202,
9053,
612,
24,
273,
446,
31,
202,
202,
9053,
612,
23,
273,
446,
31,
202,
202,
9053,
612,
273,
446,
31,
202,
202,
9053,
612,
22,
273,
446,
31,
9506,
202,
9053,
1001,
88,
2499,
11149,
273,
389,
88,
31,
202,
202,
9053,
1853,
23643,
20,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
6566,
27399,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
23643,
21,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
3373,
23552,
4830,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
9053,
1853,
23643,
22,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7473,
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,
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,
3080,
685,
8153,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3080,
685,
8153,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
268,
21,
273,
446,
31,
202,
202,
9053,
1950,
273,
446,
31,
202,
202,
9053,
612,
24,
273,
446,
31,
202,
202,
9053,
612,
23,
273,
446,
31,
202,
202,
9053,
612,
273,
446,
31,
202,
202,
9053,
612,
22,
273,
446,
31,
9506,
202,
9053,
1001,
88,
2499,
11149,
273,
389,
88,
31,
202,
202,
9053,
1853,
23643,
20,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
2
] |
certificate = new String("IbmX509");
|
certificate = "IbmX509";
|
static SSLServerSocketFactory getServerSocketFactory(String type) { // set up key manager to do server authentication SSLContext ctx = null; KeyManagerFactory kmf = null; KeyStore ks = null; char[] passphrase = "netscape".toCharArray(); SSLServerSocketFactory ssf = null; // trust manager that trusts all cetificates TrustManager[] trustAllCerts = new TrustManager[]{ new X509TrustManager() { public boolean checkClientTrusted( java.security.cert.X509Certificate[] chain){ return true; } public boolean isServerTrusted( java.security.cert.X509Certificate[] chain){ return true; } public boolean isClientTrusted( java.security.cert.X509Certificate[] chain){ return true; } public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } public void checkClientTrusted( java.security.cert.X509Certificate[] chain, String authType) {} public void checkServerTrusted( java.security.cert.X509Certificate[] chain, String authType) {} } }; String certificate = new String("SunX509"); String javaVendor = System.getProperty("java.vendor"); if (javaVendor.equals("IBM Corporation")) certificate = new String("IbmX509"); if (type.equals("TLS")) { try { ctx = SSLContext.getInstance("TLS"); kmf = KeyManagerFactory.getInstance(certificate); ks = KeyStore.getInstance("PKCS12"); ks.load(new FileInputStream(getKeystoreLoc()), passphrase); kmf.init(ks, passphrase); ctx.init(kmf.getKeyManagers(), trustAllCerts, null); ssf = ctx.getServerSocketFactory(); return ssf; } catch (Exception e) { if (Constants.debug_level > 3) e.printStackTrace(); } } else if (type.equals("SSLv3")) { try { ctx = SSLContext.getInstance("SSLv3"); kmf = KeyManagerFactory.getInstance(certificate); ks = KeyStore.getInstance("PKCS12"); ks.load(new FileInputStream(getKeystoreLoc()), passphrase); kmf.init(ks, passphrase); ctx.init(kmf.getKeyManagers(), trustAllCerts, null); ssf = ctx.getServerSocketFactory(); return ssf; } catch (Exception e) { if (Constants.debug_level > 3) e.printStackTrace(); } } return ssf; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/509a25cea2e0a8b08b0acb656da604fd0b0d8181/JSSE_SSLServer.java/buggy/security/jss/org/mozilla/jss/tests/JSSE_SSLServer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
7419,
2081,
4534,
1733,
11543,
4534,
1733,
12,
780,
618,
13,
288,
7734,
368,
444,
731,
498,
3301,
358,
741,
1438,
5107,
3639,
26886,
2398,
1103,
273,
446,
31,
3639,
1929,
20012,
1377,
417,
16126,
273,
446,
31,
3639,
17017,
7734,
11654,
273,
446,
31,
3639,
1149,
8526,
1850,
15244,
273,
315,
2758,
12476,
9654,
869,
15936,
5621,
3639,
7419,
2081,
4534,
1733,
5202,
74,
273,
446,
31,
7734,
368,
10267,
3301,
716,
10267,
87,
777,
276,
278,
1507,
815,
3639,
20246,
1318,
8526,
10267,
1595,
16273,
273,
394,
20246,
1318,
63,
7073,
5411,
394,
1139,
5995,
14146,
1318,
1435,
288,
7734,
1071,
1250,
866,
1227,
16950,
12,
13491,
2252,
18,
7462,
18,
7593,
18,
60,
5995,
4719,
8526,
2687,
15329,
10792,
327,
638,
31,
7734,
289,
7734,
1071,
1250,
353,
2081,
16950,
12,
13491,
2252,
18,
7462,
18,
7593,
18,
60,
5995,
4719,
8526,
2687,
15329,
10792,
327,
638,
31,
7734,
289,
7734,
1071,
1250,
353,
1227,
16950,
12,
13491,
2252,
18,
7462,
18,
7593,
18,
60,
5995,
4719,
8526,
2687,
15329,
10792,
327,
638,
31,
7734,
289,
7734,
1071,
2252,
18,
7462,
18,
7593,
18,
60,
5995,
4719,
8526,
13491,
4506,
4474,
329,
7568,
27307,
1435,
288,
10792,
327,
446,
31,
7734,
289,
7734,
1071,
918,
866,
1227,
16950,
12,
13491,
2252,
18,
7462,
18,
7593,
18,
60,
5995,
4719,
8526,
2687,
16,
13491,
514,
28514,
13,
2618,
7734,
1071,
918,
866,
2081,
16950,
12,
13491,
2252,
18,
7462,
18,
7593,
18,
60,
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,
760,
7419,
2081,
4534,
1733,
11543,
4534,
1733,
12,
780,
618,
13,
288,
7734,
368,
444,
731,
498,
3301,
358,
741,
1438,
5107,
3639,
26886,
2398,
1103,
273,
446,
31,
3639,
1929,
20012,
1377,
417,
16126,
273,
446,
31,
3639,
17017,
7734,
11654,
273,
446,
31,
3639,
1149,
8526,
1850,
15244,
273,
315,
2758,
12476,
9654,
869,
15936,
5621,
3639,
7419,
2081,
4534,
1733,
5202,
74,
273,
446,
31,
7734,
368,
10267,
3301,
716,
10267,
87,
777,
276,
278,
1507,
815,
3639,
20246,
1318,
8526,
10267,
1595,
16273,
273,
394,
20246,
1318,
63,
7073,
5411,
394,
1139,
5995,
14146,
1318,
1435,
288,
7734,
1071,
1250,
866,
1227,
16950,
12,
13491,
2252,
18,
7462,
18,
7593,
18,
60,
5995,
2
] |
Group group = new Group( scientificPage, SWT.NONE ); group.setText( LABEL_SCIENTIFIC_SETTINGS_GROUP ); group.setLayoutData( createGridData4Group( ) ); group.setLayout( new GridLayout( 2, false ) ); Label label = new Label( group, SWT.NONE ); label.setText( LABEL_DECIMAL_PLACES ); sPlacesChoice = new Combo( group, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL ); sPlacesChoice.setItems( new String[]{ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" } ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); sPlacesChoice.setLayoutData( data ); sPlacesChoice.addSelectionListener( mySelectionListener ); sPlacesChoice.addModifyListener( myModifyListener ); sPlacesChoice.select( 2 ); sPreviewLabel = createPreviewText( scientificPage );
|
createScientificSettingPart( scientificPage ); sPreviewLabel = createGeneralPreviewPart4Page( scientificPage );
|
private Composite getScientificPage( Composite parent ) { if ( scientificPage == null ) { scientificPage = new Composite( parent, SWT.NULL ); scientificPage.setLayout( new GridLayout( 1, false ) ); Group group = new Group( scientificPage, SWT.NONE ); group.setText( LABEL_SCIENTIFIC_SETTINGS_GROUP ); group.setLayoutData( createGridData4Group( ) ); group.setLayout( new GridLayout( 2, false ) ); Label label = new Label( group, SWT.NONE ); label.setText( LABEL_DECIMAL_PLACES ); sPlacesChoice = new Combo( group, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL ); sPlacesChoice.setItems( new String[]{ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$ //$NON-NLS-11$ } ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); sPlacesChoice.setLayoutData( data ); sPlacesChoice.addSelectionListener( mySelectionListener ); sPlacesChoice.addModifyListener( myModifyListener ); sPlacesChoice.select( 2 ); sPreviewLabel = createPreviewText( scientificPage ); } return scientificPage; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/68e6e831ed1a7d01155ecde63d74c89397dae569/FormatNumberPage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
11971,
1979,
1507,
1964,
12,
14728,
982,
262,
202,
95,
202,
202,
430,
261,
888,
1979,
1507,
1964,
422,
446,
262,
202,
202,
95,
1082,
202,
1017,
1979,
1507,
1964,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
8560,
11272,
1082,
202,
1017,
1979,
1507,
1964,
18,
542,
3744,
12,
394,
7145,
3744,
12,
404,
16,
629,
262,
11272,
1082,
202,
1114,
1041,
273,
394,
3756,
12,
888,
1979,
1507,
1964,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
1655,
18,
542,
1528,
12,
18210,
67,
2312,
45,
2222,
22183,
67,
19428,
67,
8468,
11272,
1082,
202,
1655,
18,
542,
3744,
751,
12,
752,
6313,
751,
24,
1114,
12,
262,
11272,
1082,
202,
1655,
18,
542,
3744,
12,
394,
7145,
3744,
12,
576,
16,
629,
262,
11272,
1082,
202,
2224,
1433,
273,
394,
5287,
12,
1041,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
1925,
18,
542,
1528,
12,
18210,
67,
23816,
67,
12134,
55,
11272,
1082,
202,
87,
24791,
10538,
273,
394,
1286,
1075,
12,
1041,
16,
348,
8588,
18,
38,
7954,
6862,
202,
96,
348,
8588,
18,
20184,
6862,
202,
96,
348,
8588,
18,
58,
67,
2312,
14555,
11272,
1082,
202,
87,
24791,
10538,
18,
542,
3126,
12,
394,
514,
63,
7073,
6862,
202,
6,
20,
3113,
315,
21,
3113,
315,
22,
3113,
315,
23,
3113,
315,
24,
3113,
315,
25,
3113,
315,
26,
3113,
315,
27,
3113,
315,
28,
3113,
315,
29,
3113,
315,
2163,
6,
4329,
3993,
17,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
11971,
1979,
1507,
1964,
12,
14728,
982,
262,
202,
95,
202,
202,
430,
261,
888,
1979,
1507,
1964,
422,
446,
262,
202,
202,
95,
1082,
202,
1017,
1979,
1507,
1964,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
8560,
11272,
1082,
202,
1017,
1979,
1507,
1964,
18,
542,
3744,
12,
394,
7145,
3744,
12,
404,
16,
629,
262,
11272,
1082,
202,
1114,
1041,
273,
394,
3756,
12,
888,
1979,
1507,
1964,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
1655,
18,
542,
1528,
12,
18210,
67,
2312,
45,
2222,
22183,
67,
19428,
67,
8468,
11272,
1082,
202,
1655,
18,
542,
3744,
751,
12,
752,
6313,
751,
24,
1114,
12,
262,
11272,
1082,
202,
1655,
2
] |
if (jj_scan_token(21)) jj_scanpos = xsp;
|
if (jj_scan_token(22)) jj_scanpos = xsp;
|
static final private boolean jj_3_134() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(21)) jj_scanpos = xsp; if (jj_scan_token(DELETE)) return true; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/380243817238f20dded6aa323a249c33dbaceae3/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
3238,
1250,
10684,
67,
23,
67,
25213,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3787,
3719,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
6460,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
727,
3238,
1250,
10684,
67,
23,
67,
25213,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3787,
3719,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
6460,
3719,
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
] |
final public void append (OPT_LinkedListElement e) {
|
final public void append(OPT_LinkedListElement e) {
|
final public void append (OPT_LinkedListElement e) { if (e == null) return; OPT_LinkedListElement End = end; if (End != null) { End.insertAfter(e); } else { // empty list start = e; } end = e; }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c81e91a66ac12c6f0987892e4e00251a1b0d0681/OPT_LinkedList.java/clean/rvm/src/vm/compilers/optimizing/util/list/OPT_LinkedList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
714,
12,
15620,
67,
13174,
682,
1046,
425,
13,
288,
565,
309,
261,
73,
422,
446,
13,
1377,
327,
31,
565,
16456,
67,
13174,
682,
1046,
4403,
273,
679,
31,
565,
309,
261,
1638,
480,
446,
13,
288,
1377,
4403,
18,
6387,
4436,
12,
73,
1769,
565,
289,
377,
469,
288,
1377,
368,
1008,
666,
1377,
787,
273,
425,
31,
565,
289,
565,
679,
273,
425,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
714,
12,
15620,
67,
13174,
682,
1046,
425,
13,
288,
565,
309,
261,
73,
422,
446,
13,
1377,
327,
31,
565,
16456,
67,
13174,
682,
1046,
4403,
273,
679,
31,
565,
309,
261,
1638,
480,
446,
13,
288,
1377,
4403,
18,
6387,
4436,
12,
73,
1769,
565,
289,
377,
469,
288,
1377,
368,
1008,
666,
1377,
787,
273,
425,
31,
565,
289,
565,
679,
273,
425,
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
] |
Socket sock = (Socket) ce.nextElement();
|
public void send(String message) { Enumeration ce = connections.elements(); for (Enumeration e = writers.elements(); e.hasMoreElements();) { Socket sock = (Socket) ce.nextElement(); PrintWriter writer = (PrintWriter) e.nextElement(); writer.print(message); if (writer.checkError()) { // The client has closed the connection, remove it from our list: connections.remove(sock); writers.remove(writer); } } }
|
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/2d8725d96d5db4341a8a6531ec551df1e3718e9d/TelnetAppender.java/buggy/src/java/org/apache/log4j/net/TelnetAppender.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
12,
780,
883,
13,
288,
1377,
13864,
5898,
273,
5921,
18,
6274,
5621,
1377,
364,
261,
21847,
425,
273,
18656,
18,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
13,
288,
9079,
14071,
2633,
273,
261,
5108,
2289,
13,
425,
18,
4285,
1046,
5621,
3639,
2633,
18,
1188,
12,
2150,
1769,
3639,
309,
261,
6299,
18,
1893,
668,
10756,
288,
1850,
368,
1021,
1004,
711,
4375,
326,
1459,
16,
1206,
518,
628,
3134,
666,
30,
1850,
5921,
18,
4479,
12,
15031,
1769,
1850,
18656,
18,
4479,
12,
6299,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
12,
780,
883,
13,
288,
1377,
13864,
5898,
273,
5921,
18,
6274,
5621,
1377,
364,
261,
21847,
425,
273,
18656,
18,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
13,
288,
9079,
14071,
2633,
273,
261,
5108,
2289,
13,
425,
18,
4285,
1046,
5621,
3639,
2633,
18,
1188,
12,
2150,
1769,
3639,
309,
261,
6299,
18,
1893,
668,
10756,
288,
1850,
368,
1021,
1004,
711,
4375,
326,
1459,
16,
1206,
518,
628,
3134,
666,
30,
1850,
5921,
18,
4479,
12,
15031,
1769,
1850,
18656,
18,
4479,
12,
6299,
1769,
3639,
289,
1377,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
type = col_type;
|
type = columnType;
|
public void parseColumnType(String col_type) throws Exception { int start, end; String type, size = null; start = col_type.indexOf('('); end = col_type.indexOf(')'); if (start != -1 && end != -1) { type = col_type.substring(0, start); size = col_type.substring(start + 1, end).replaceAll(",\\d+", ""); } else { type = col_type; } this.setType(normalizeColumnType(type, size != null)); if (size != null) { this.setSize(Integer.parseInt(size)); } else { this.setSize(columnTypeSize(this.getType())); } }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/ef55c7ddb2f6b65a1f9f5a00e7fde7cd55916149/Column.java/clean/opennms-install/src/main/java/org/opennms/install/Column.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
28149,
12,
780,
645,
67,
723,
13,
1216,
1185,
288,
3639,
509,
787,
16,
679,
31,
3639,
514,
618,
16,
963,
273,
446,
31,
3639,
787,
273,
645,
67,
723,
18,
31806,
2668,
2668,
1769,
3639,
679,
273,
645,
67,
723,
18,
31806,
2668,
2506,
1769,
3639,
309,
261,
1937,
480,
300,
21,
597,
679,
480,
300,
21,
13,
288,
5411,
618,
273,
645,
67,
723,
18,
28023,
12,
20,
16,
787,
1769,
5411,
963,
273,
645,
67,
723,
18,
28023,
12,
1937,
397,
404,
16,
679,
2934,
2079,
1595,
2932,
16,
1695,
72,
15,
3113,
1408,
1769,
3639,
289,
469,
288,
5411,
618,
273,
27280,
31,
3639,
289,
3639,
333,
18,
542,
559,
12,
12237,
28149,
12,
723,
16,
963,
480,
446,
10019,
3639,
309,
261,
1467,
480,
446,
13,
288,
5411,
333,
18,
542,
1225,
12,
4522,
18,
2670,
1702,
12,
1467,
10019,
3639,
289,
469,
288,
5411,
333,
18,
542,
1225,
12,
2827,
559,
1225,
12,
2211,
18,
588,
559,
1435,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
28149,
12,
780,
645,
67,
723,
13,
1216,
1185,
288,
3639,
509,
787,
16,
679,
31,
3639,
514,
618,
16,
963,
273,
446,
31,
3639,
787,
273,
645,
67,
723,
18,
31806,
2668,
2668,
1769,
3639,
679,
273,
645,
67,
723,
18,
31806,
2668,
2506,
1769,
3639,
309,
261,
1937,
480,
300,
21,
597,
679,
480,
300,
21,
13,
288,
5411,
618,
273,
645,
67,
723,
18,
28023,
12,
20,
16,
787,
1769,
5411,
963,
273,
645,
67,
723,
18,
28023,
12,
1937,
397,
404,
16,
679,
2934,
2079,
1595,
2932,
16,
1695,
72,
15,
3113,
1408,
1769,
3639,
289,
469,
288,
5411,
618,
273,
27280,
31,
3639,
289,
3639,
333,
18,
542,
559,
12,
2
] |
return getDialog().getRootPane().getActionMap();
|
return getDialog().getLayeredPane().getActionMap();
|
protected ActionMap getActionMap() { return getDialog().getRootPane().getActionMap(); }
|
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/5ff073bca86c2f5f316c162d978345e58aa3fbbc/ApplicationDialog.java/clean/src/org/springframework/richclient/dialog/ApplicationDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4382,
863,
12473,
863,
1435,
288,
3639,
327,
31774,
7675,
588,
4576,
329,
8485,
7675,
588,
1803,
863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
4382,
863,
12473,
863,
1435,
288,
3639,
327,
31774,
7675,
588,
4576,
329,
8485,
7675,
588,
1803,
863,
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
] |
asm.emitLAddr (JTOC, VM_Entrypoints.JNIEnvSavedJTOCField.getOffset(), PROCESSOR_REGISTER); asm.emitLAddr (PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), PROCESSOR_REGISTER); asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffset());
|
asm.emitLAddr (JTOC, VM_Entrypoints.JNIEnvSavedJTOCField.getOffsetAsInt(), PROCESSOR_REGISTER); asm.emitLAddr (PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffsetAsInt(), PROCESSOR_REGISTER); asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffsetAsInt());
|
private static VM_CodeArray generateInvokeNativeFunctionInstructions() { VM_Assembler asm = new VM_Assembler(0); // move native code address to CTR reg; // do this early so that S1 will be available as a scratch. asm.emitMTCTR (S1); // // store the return address to the Java to C glue prolog, which is now in LR // into transition frame. If GC occurs, the JNIGCMapIterator will cause // this ip address to be relocated if the generated glue code is moved. // asm.emitLAddr (S1, 0, FP); asm.emitMFLR (T0); //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // save return address of JNI method in mini frame (2) asm.emitSTAddr(T0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, S1); //-#endif //-#if RVM_WITH_POWEROPEN_ABI // save return address in stack frame asm.emitSTAddr(T0, -JNI_PROLOG_RETURN_ADDRESS_OFFSET, S1); //-#endif // // Load required JNI function ptr into first parameter reg (GPR3/T0) // This pointer is an interior pointer to the VM_JNIEnvironment which is // currently in S0. // asm.emitADDI (T0, VM_Entrypoints.JNIExternalFunctionsField.getOffset(), S0); // // change the vpstatus of the VP to IN_NATIVE // asm.emitLAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), S0); asm.emitLVAL (S0, VM_Processor.IN_NATIVE); asm.emitSTW (S0, VM_Entrypoints.vpStatusField.getOffset(), PROCESSOR_REGISTER); // // CALL NATIVE METHOD // asm.emitBCCTRL(); // save the return value in R3-R4 in the glue frame spill area since they may be overwritten // if we have to call sysVirtualProcessorYield because we are locked in native. if (VM.BuildFor64Addr) { asm.emitSTD (T0, NATIVE_FRAME_HEADER_SIZE, FP); } else { asm.emitSTW (T0, NATIVE_FRAME_HEADER_SIZE, FP); asm.emitSTW (T1, NATIVE_FRAME_HEADER_SIZE+BYTES_IN_ADDRESS, FP); } // // try to return virtual processor to vpStatus IN_JAVA // int label1 = asm.getMachineCodeIndex(); asm.emitLAddr (S0, 0, FP); // get previous frame //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // mimi (1) FP -> mimi(2) FP -> java caller asm.emitLAddr (S0, 0, S0); //-#endif asm.emitLAddr (PROCESSOR_REGISTER, - JNI_ENV_OFFSET, S0); // load VM_JNIEnvironment asm.emitLAddr (JTOC, VM_Entrypoints.JNIEnvSavedJTOCField.getOffset(), PROCESSOR_REGISTER); // load JTOC asm.emitLAddr (PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), PROCESSOR_REGISTER); // load PR asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffset()); asm.emitLWARX (S0, S1, PROCESSOR_REGISTER); // get status for processor asm.emitCMPI (S0, VM_Processor.BLOCKED_IN_NATIVE); // are we blocked in native code? VM_ForwardReference fr = asm.emitForwardBC(NE); // // if blocked in native, call C routine to do pthread_yield // asm.emitLAddr (T2, VM_Entrypoints.the_boot_recordField.getOffset(), JTOC); // T2 gets boot record address asm.emitLAddr (JTOC, VM_Entrypoints.sysTOCField.getOffset(), T2); // load TOC for syscalls from bootrecord asm.emitLAddr (T1, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffset(), T2); // load addr of function asm.emitMTLR (T1); asm.emitBCLRL (); // call sysVirtualProcessorYield in sys.C asm.emitB (label1); // retest the attempt to change status to IN_JAVAE // // br to here -not blocked in native // fr.resolve(asm); asm.emitLVAL (S0, VM_Processor.IN_JAVA); // S0 <- new state value asm.emitSTWCXr(S0, S1, PROCESSOR_REGISTER); // attempt to change state to java asm.emitBC (NE, label1); // br if failure -retry lwarx // // return to caller // asm.emitLAddr (S0, 0 , FP); // get previous frame //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI asm.emitLAddr(S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, S0); //-#endif //-#if RVM_WITH_POWEROPEN_ABI asm.emitLAddr(S0, -JNI_PROLOG_RETURN_ADDRESS_OFFSET, S0); // get return address from stack frame //-#endif asm.emitMTLR (S0); asm.emitBCLR (); return asm.makeMachineCode().getInstructions(); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/VM_OutOfLineMachineCode.java/buggy/rvm/src/vm/arch/powerPC/runtime/VM_OutOfLineMachineCode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8251,
67,
1085,
1076,
2103,
10969,
9220,
2083,
26712,
1435,
288,
565,
8251,
67,
1463,
5747,
749,
20415,
273,
394,
8251,
67,
1463,
5747,
749,
12,
20,
1769,
565,
368,
3635,
6448,
981,
1758,
358,
31568,
960,
31,
565,
368,
741,
333,
11646,
1427,
716,
348,
21,
903,
506,
2319,
487,
279,
15289,
18,
565,
20415,
18,
18356,
6152,
23876,
261,
55,
21,
1769,
377,
368,
565,
368,
1707,
326,
327,
1758,
358,
326,
5110,
358,
385,
17960,
450,
1330,
16,
1492,
353,
2037,
316,
511,
54,
565,
368,
1368,
6007,
2623,
18,
971,
15085,
9938,
16,
326,
804,
50,
3047,
39,
863,
3198,
903,
4620,
565,
368,
333,
2359,
1758,
358,
506,
283,
1829,
690,
309,
326,
4374,
17960,
981,
353,
10456,
18,
565,
368,
565,
20415,
18,
18356,
48,
3178,
261,
55,
21,
16,
374,
16,
28740,
1769,
565,
20415,
18,
18356,
13542,
16018,
225,
261,
56,
20,
1769,
565,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
55,
10986,
24,
67,
2090,
45,
747,
534,
7397,
67,
9147,
67,
5535,
1792,
67,
51,
67,
2090,
45,
565,
368,
1923,
327,
1758,
434,
804,
50,
45,
707,
316,
21959,
2623,
261,
22,
13,
565,
20415,
18,
18356,
882,
3178,
12,
56,
20,
16,
11464,
15072,
67,
25539,
67,
706,
3902,
27035,
67,
11271,
16,
348,
21,
1769,
565,
368,
17,
7,
409,
430,
565,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
2419,
18839,
11437,
67,
2090,
45,
565,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8251,
67,
1085,
1076,
2103,
10969,
9220,
2083,
26712,
1435,
288,
565,
8251,
67,
1463,
5747,
749,
20415,
273,
394,
8251,
67,
1463,
5747,
749,
12,
20,
1769,
565,
368,
3635,
6448,
981,
1758,
358,
31568,
960,
31,
565,
368,
741,
333,
11646,
1427,
716,
348,
21,
903,
506,
2319,
487,
279,
15289,
18,
565,
20415,
18,
18356,
6152,
23876,
261,
55,
21,
1769,
377,
368,
565,
368,
1707,
326,
327,
1758,
358,
326,
5110,
358,
385,
17960,
450,
1330,
16,
1492,
353,
2037,
316,
511,
54,
565,
368,
1368,
6007,
2623,
18,
971,
15085,
9938,
16,
326,
804,
50,
3047,
39,
863,
3198,
903,
4620,
565,
368,
333,
2359,
1758,
358,
506,
283,
1829,
690,
2
] |
handleProblem( e.createProblemID(), param.getNameArray(), param.getStartingOffset(), param.getEndingOffset(), param.getStartingLine(), true );
|
handleProblem( e.createProblemID(), param.getNameCharArray(), param.getStartingOffset(), param.getEndingOffset(), param.getStartingLine(), true );
|
public IASTTemplateParameter createTemplateParameter( ParamKind kind, String identifier, IASTTypeId defaultValue, IASTParameterDeclaration parameter, List parms, IASTCodeScope parameterScope, int startingOffset, int startingLine, int nameOffset, int nameEndOffset, int nameLine, int endingOffset, int endingLine, char[] fn ) throws ASTSemanticException { //TODO filename ISymbol symbol = null; TypeInfoProvider provider = pst.getTypeInfoProvider(); provider.beginTypeConstruction(); if( defaultValue != null ){ try { provider.setDefaultObj( defaultValue.getTypeSymbol().getTypeInfo() ); } catch ( ASTNotImplementedException e1 ) { } } if( kind == ParamKind.TEMPLATE_LIST ){ ITemplateSymbol template = pst.newTemplateSymbol( identifier.toCharArray() ); provider.setType( ITypeInfo.t_templateParameter ); provider.setTemplateParameterType( ITypeInfo.t_template ); template.setTypeInfo( provider.completeConstruction() ); Iterator iter = parms.iterator(); while (iter.hasNext()){ ASTTemplateParameter param = (ASTTemplateParameter)iter.next(); try { template.addTemplateParameter( param.getSymbol() ); } catch (ParserSymbolTableException e) { handleProblem( e.createProblemID(), param.getNameArray(), param.getStartingOffset(), param.getEndingOffset(), param.getStartingLine(), true ); //$NON-NLS-1$ } } symbol = template; } else { if( kind == ParamKind.CLASS || kind == ParamKind.TYPENAME ){ symbol = pst.newSymbol( identifier.toCharArray() ); provider.setType( ITypeInfo.t_templateParameter ); provider.setTemplateParameterType( ITypeInfo.t_typeName ); symbol.setTypeInfo( provider.completeConstruction() ); } else /*ParamKind.PARAMETER*/ { symbol = cloneSimpleTypeSymbol( ((ASTParameterDeclaration)parameter).getNameArray(), parameter, null ); provider.setTemplateParameterType( symbol.getType() ); provider.setType( ITypeInfo.t_templateParameter ); provider.setTypeSymbol( symbol.getTypeSymbol() ); ITypeInfo info = provider.completeConstruction(); info.addPtrOperator( symbol.getPtrOperators() ); info.setTypeBits( symbol.getTypeInfo().getTypeBits() ); symbol.setTypeInfo( info ); } } IContainerSymbol codeScope = ((ASTCodeScope)parameterScope).getContainerSymbol(); try { codeScope.addSymbol( symbol ); } catch (ParserSymbolTableException e) { } ASTTemplateParameter ast = new ASTTemplateParameter( symbol, defaultValue, parameter, parms, startingOffset, startingLine, nameOffset, nameEndOffset, nameLine, endingOffset, endingLine, fn ); attachSymbolExtension( symbol, ast, false ); return ast; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/18d9318d4df0c5bcdcd8b34cf92c3445bcb408e6/CompleteParseASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
2283,
1662,
752,
2283,
1662,
12,
3639,
3014,
5677,
3846,
16,
3639,
514,
2756,
16,
3639,
467,
9053,
11731,
4593,
16,
3639,
467,
9053,
1662,
6094,
1569,
16,
3639,
987,
17902,
16,
3196,
202,
45,
9053,
1085,
3876,
1569,
3876,
16,
202,
202,
474,
5023,
2335,
16,
509,
5023,
1670,
16,
509,
508,
2335,
16,
509,
508,
1638,
2335,
16,
509,
508,
1670,
16,
509,
11463,
2335,
16,
509,
11463,
1670,
16,
1149,
8526,
2295,
262,
1216,
9183,
13185,
9941,
503,
565,
288,
377,
202,
759,
6241,
1544,
377,
202,
5127,
3284,
3273,
273,
446,
31,
377,
202,
377,
202,
17305,
2249,
2893,
273,
22750,
18,
588,
17305,
2249,
5621,
377,
202,
6778,
18,
10086,
559,
25485,
5621,
377,
202,
377,
202,
430,
12,
4593,
480,
446,
262,
95,
377,
202,
565,
775,
288,
7734,
2893,
18,
542,
1868,
2675,
12,
4593,
18,
588,
559,
5335,
7675,
588,
17305,
1435,
11272,
5411,
289,
1044,
261,
9183,
1248,
8644,
503,
425,
21,
262,
288,
5411,
289,
377,
202,
97,
377,
202,
430,
12,
3846,
422,
3014,
5677,
18,
12205,
67,
7085,
262,
95,
377,
202,
202,
1285,
29761,
5335,
1542,
273,
22750,
18,
2704,
2283,
5335,
12,
2756,
18,
869,
15936,
1435,
11272,
377,
202,
202,
6778,
18,
542,
559,
12,
467,
17305,
18,
88,
67,
3202,
1662,
11272,
377,
202,
202,
6778,
18,
542,
2283,
28460,
12,
467,
17305,
18,
88,
67,
3202,
11272,
377,
202,
202,
3202,
18,
542,
17305,
12,
2893,
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,
467,
9053,
2283,
1662,
752,
2283,
1662,
12,
3639,
3014,
5677,
3846,
16,
3639,
514,
2756,
16,
3639,
467,
9053,
11731,
4593,
16,
3639,
467,
9053,
1662,
6094,
1569,
16,
3639,
987,
17902,
16,
3196,
202,
45,
9053,
1085,
3876,
1569,
3876,
16,
202,
202,
474,
5023,
2335,
16,
509,
5023,
1670,
16,
509,
508,
2335,
16,
509,
508,
1638,
2335,
16,
509,
508,
1670,
16,
509,
11463,
2335,
16,
509,
11463,
1670,
16,
1149,
8526,
2295,
262,
1216,
9183,
13185,
9941,
503,
565,
288,
377,
202,
759,
6241,
1544,
377,
202,
5127,
3284,
3273,
273,
446,
31,
377,
202,
377,
202,
17305,
2249,
2893,
273,
22750,
18,
588,
17305,
2249,
5621,
377,
202,
6778,
18,
10086,
2
] |
_leftButtons.width + leftWidth,
|
leftButtonWidth + leftWidth,
|
public void layoutContainer(Container parent) { Dimension size = parent.getSize(); Dimension _topButtons = topButtons.getPreferredSize(); topButtons.setSize(topButtons.getWidth(), _topButtons.height); _topButtons = topButtons.getPreferredSize(); Dimension _leftButtons = leftButtons.getPreferredSize(); leftButtons.setSize(_leftButtons.width, leftButtons.getHeight()); _leftButtons = leftButtons.getPreferredSize(); Dimension _bottomButtons = bottomButtons.getPreferredSize(); bottomButtons.setSize(bottomButtons.getWidth(), _bottomButtons.height); _bottomButtons = bottomButtons.getPreferredSize(); Dimension _rightButtons = rightButtons.getPreferredSize(); rightButtons.setSize(_rightButtons.width, rightButtons.getHeight()); _rightButtons = rightButtons.getPreferredSize(); Dimension _topToolbars = (topToolbars == null ? new Dimension(0,0) : topToolbars.getPreferredSize()); Dimension _bottomToolbars = (bottomToolbars == null ? new Dimension(0,0) : bottomToolbars.getPreferredSize()); int _width = size.width - _leftButtons.width - _rightButtons.width; int _height = size.height - _topButtons.height - _bottomButtons.height; Dimension _top = top.getPreferredSize(); Dimension _left = left.getPreferredSize(); Dimension _bottom = bottom.getPreferredSize(); Dimension _right = right.getPreferredSize(); int maxTopHeight = _height - _bottom.height - _topToolbars.height - _bottomToolbars.height; int topHeight = Math.min(Math.max(0,maxTopHeight), _top.height); int leftWidth = Math.min(Math.max(0,_width - _right.width),_left.width); int maxBottomHeight = _height - topHeight - _topToolbars.height - _bottomToolbars.height; int bottomHeight = Math.min(Math.max(0,maxBottomHeight), _bottom.height); int rightWidth = Math.min(Math.max(0,_width - leftWidth),_right.width); DockableWindowManager.this.top.setDimension(topHeight); DockableWindowManager.this.left.setDimension(leftWidth); DockableWindowManager.this.bottom.setDimension(bottomHeight); DockableWindowManager.this.right.setDimension(rightWidth); if(alternateLayout) { topButtons.setBounds( _leftButtons.width, 0, _width, _topButtons.height); leftButtons.setBounds( 0, _topButtons.height + _top.height, _leftButtons.width, _height - _top.height - _bottom.height); bottomButtons.setBounds( _leftButtons.width, size.height - _bottomButtons.height, _width, _bottomButtons.height); rightButtons.setBounds( size.width - _rightButtons.width, _topButtons.height + _top.height, _rightButtons.width, _height - _top.height - _bottom.height); top.setBounds( _leftButtons.width, _topButtons.height, _width, topHeight); bottom.setBounds( _leftButtons.width, size.height - bottomHeight - _bottomButtons.height, _width, bottomHeight); left.setBounds( _leftButtons.width, _topButtons.height + topHeight, leftWidth, _height - topHeight - bottomHeight); right.setBounds( size.width - rightWidth - _rightButtons.width, _topButtons.height + topHeight, rightWidth, _height - topHeight - bottomHeight); } else { topButtons.setBounds( _leftButtons.width + leftWidth, 0, _width - leftWidth - rightWidth, _topButtons.height); leftButtons.setBounds( 0, _topButtons.height, _leftButtons.width, _height); bottomButtons.setBounds( _leftButtons.width + leftWidth, size.height - _bottomButtons.height, _width - leftWidth - rightWidth, _bottomButtons.height); rightButtons.setBounds( size.width - _rightButtons.width, _topButtons.height, _rightButtons.width, _height); top.setBounds( _leftButtons.width + leftWidth, _topButtons.height, _width - leftWidth - rightWidth, topHeight); bottom.setBounds( _leftButtons.width + leftWidth, size.height - bottomHeight - _bottomButtons.height, _width - leftWidth - rightWidth, bottomHeight); left.setBounds( _leftButtons.width, _topButtons.height, leftWidth, _height); right.setBounds( size.width - rightWidth - _rightButtons.width, _topButtons.height, rightWidth, _height); } if(topToolbars != null) { topToolbars.setBounds( _leftButtons.width + leftWidth, _topButtons.height + topHeight, _width - leftWidth - rightWidth, _topToolbars.height); } if(bottomToolbars != null) { bottomToolbars.setBounds( _leftButtons.width + leftWidth, _height - bottomHeight - _bottomToolbars.height + _topButtons.height, _width - leftWidth - rightWidth, _bottomToolbars.height); } if(center != null) { center.setBounds( _leftButtons.width + leftWidth, _topButtons.height + topHeight + _topToolbars.height, _width - leftWidth - rightWidth, _height - topHeight - bottomHeight - _topToolbars.height - _bottomToolbars.height); } } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/71997bbe8dbb4ab3bc02031421bfd3e9f03d8280/DockableWindowManager.java/clean/org/gjt/sp/jedit/gui/DockableWindowManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
3511,
2170,
12,
2170,
982,
13,
202,
202,
95,
1082,
202,
8611,
963,
273,
982,
18,
588,
1225,
5621,
1082,
202,
8611,
389,
3669,
14388,
273,
1760,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
3669,
14388,
18,
542,
1225,
12,
3669,
14388,
18,
588,
2384,
9334,
9506,
202,
67,
3669,
14388,
18,
4210,
1769,
1082,
202,
67,
3669,
14388,
273,
1760,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
8611,
389,
4482,
14388,
273,
2002,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
4482,
14388,
18,
542,
1225,
24899,
4482,
14388,
18,
2819,
16,
9506,
202,
4482,
14388,
18,
588,
2686,
10663,
1082,
202,
67,
4482,
14388,
273,
2002,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
8611,
389,
9176,
14388,
273,
5469,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
9176,
14388,
18,
542,
1225,
12,
9176,
14388,
18,
588,
2384,
9334,
9506,
202,
67,
9176,
14388,
18,
4210,
1769,
1082,
202,
67,
9176,
14388,
273,
5469,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
8611,
389,
4083,
14388,
273,
2145,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
4083,
14388,
18,
542,
1225,
24899,
4083,
14388,
18,
2819,
16,
9506,
202,
4083,
14388,
18,
588,
2686,
10663,
1082,
202,
67,
4083,
14388,
273,
2145,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
8611,
389,
3669,
6364,
13518,
273,
261,
3669,
6364,
13518,
422,
446,
9506,
202,
35,
394,
13037,
12,
20,
16,
20,
13,
9506,
202,
30,
1760,
6364,
13518,
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,
3511,
2170,
12,
2170,
982,
13,
202,
202,
95,
1082,
202,
8611,
963,
273,
982,
18,
588,
1225,
5621,
1082,
202,
8611,
389,
3669,
14388,
273,
1760,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
3669,
14388,
18,
542,
1225,
12,
3669,
14388,
18,
588,
2384,
9334,
9506,
202,
67,
3669,
14388,
18,
4210,
1769,
1082,
202,
67,
3669,
14388,
273,
1760,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
8611,
389,
4482,
14388,
273,
2002,
14388,
18,
588,
16028,
1225,
5621,
1082,
202,
4482,
14388,
18,
542,
1225,
24899,
4482,
14388,
18,
2819,
16,
9506,
202,
4482,
14388,
18,
588,
2686,
10663,
1082,
202,
67,
4482,
14388,
273,
2002,
14388,
18,
588,
16028,
1225,
2
] |
return iField.set(millis, iValue);
|
millis = iField.set(millis, iValue);
|
long set(long millis) { if (iText == null) { return iField.set(millis, iValue); } else { return iField.set(millis, iText, iLocale); } }
|
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/88649c3f306907e85ff8bf18bd6ac986a6a54005/DateTimeParserBucket.java/buggy/JodaTime/src/java/org/joda/time/format/DateTimeParserBucket.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1525,
444,
12,
5748,
14833,
13,
288,
5411,
309,
261,
77,
1528,
422,
446,
13,
288,
7734,
14833,
273,
277,
974,
18,
542,
12,
81,
3503,
16,
277,
620,
1769,
5411,
289,
469,
288,
7734,
327,
277,
974,
18,
542,
12,
81,
3503,
16,
277,
1528,
16,
277,
3916,
1769,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
540,
1525,
444,
12,
5748,
14833,
13,
288,
5411,
309,
261,
77,
1528,
422,
446,
13,
288,
7734,
14833,
273,
277,
974,
18,
542,
12,
81,
3503,
16,
277,
620,
1769,
5411,
289,
469,
288,
7734,
327,
277,
974,
18,
542,
12,
81,
3503,
16,
277,
1528,
16,
277,
3916,
1769,
5411,
289,
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
] |
private boolean initVersionHistories(Iterator iter) throws RepositoryException { // todo consolidate version history creation code (currently in NodeImpl.addMixin & ItemImpl.initVersionHistories // walk through list of transient items and search for new versionable nodes boolean createdTransientState = false; while (iter.hasNext()) { ItemState itemState = (ItemState) iter.next(); if (itemState.isNode()) { NodeImpl node = (NodeImpl) itemMgr.getItem(itemState.getId()); if (node.isNodeType(MIX_VERSIONABLE)) { if (!node.hasProperty(JCR_VERSIONHISTORY)) { VersionHistory hist = session.getVersionManager().createVersionHistory(node); node.internalSetProperty(JCR_VERSIONHISTORY, InternalValue.create(new UUID(hist.getUUID()))); node.internalSetProperty(JCR_BASEVERSION, InternalValue.create(new UUID(hist.getRootVersion().getUUID()))); node.internalSetProperty(JCR_ISCHECKEDOUT, InternalValue.create(true)); node.internalSetProperty(JCR_PREDECESSORS, new InternalValue[]{InternalValue.create(new UUID(hist.getRootVersion().getUUID()))}); createdTransientState = true; } } } } return createdTransientState; }
|
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/8291daca329af590f8c770fe33de4a11c9a87ae9/ItemImpl.java/clean/src/java/org/apache/jackrabbit/core/ItemImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6494,
2738,
1444,
8648,
2401,
12,
3198,
2165,
13,
15069,
3305,
503,
95,
759,
88,
369,
504,
7008,
7953,
340,
1589,
8189,
17169,
710,
12,
2972,
715,
267,
907,
2828,
18,
1289,
14439,
10,
1180,
2828,
18,
2738,
1444,
8648,
2401,
759,
11348,
10064,
1098,
792,
22670,
3319,
464,
3072,
1884,
2704,
1589,
378,
1897,
1145,
6494,
4824,
19638,
1119,
33,
5743,
31,
17523,
12,
2165,
18,
5332,
2134,
10756,
95,
1180,
1119,
1726,
1119,
28657,
1180,
1119,
13,
2165,
18,
4285,
5621,
430,
12,
1726,
1119,
18,
291,
907,
10756,
95,
907,
2828,
2159,
28657,
907,
2828,
13,
1726,
9455,
18,
588,
1180,
12,
1726,
1119,
18,
26321,
10663,
430,
12,
2159,
18,
291,
15101,
12,
7492,
60,
67,
5757,
2782,
3719,
95,
430,
12,
5,
2159,
18,
5332,
1396,
12,
46,
5093,
67,
5757,
31746,
3719,
95,
1444,
5623,
11488,
33,
3184,
18,
588,
1444,
1318,
7675,
2640,
1444,
5623,
12,
2159,
1769,
2159,
18,
7236,
694,
1396,
12,
46,
5093,
67,
5757,
31746,
16,
3061,
620,
18,
2640,
12,
2704,
5562,
12,
11488,
18,
588,
5562,
1435,
3719,
1769,
2159,
18,
7236,
694,
1396,
12,
46,
5093,
67,
8369,
5757,
16,
3061,
620,
18,
2640,
12,
2704,
5562,
12,
11488,
18,
588,
2375,
1444,
7675,
588,
5562,
1435,
3719,
1769,
2159,
18,
7236,
694,
1396,
12,
46,
5093,
67,
5127,
10687,
2056,
5069,
16,
3061,
620,
18,
2640,
12,
3767,
10019,
2159,
18,
7236,
694,
1396,
12,
46,
5093,
67,
3670,
1639,
5119,
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,
6494,
2738,
1444,
8648,
2401,
12,
3198,
2165,
13,
15069,
3305,
503,
95,
759,
88,
369,
504,
7008,
7953,
340,
1589,
8189,
17169,
710,
12,
2972,
715,
267,
907,
2828,
18,
1289,
14439,
10,
1180,
2828,
18,
2738,
1444,
8648,
2401,
759,
11348,
10064,
1098,
792,
22670,
3319,
464,
3072,
1884,
2704,
1589,
378,
1897,
1145,
6494,
4824,
19638,
1119,
33,
5743,
31,
17523,
12,
2165,
18,
5332,
2134,
10756,
95,
1180,
1119,
1726,
1119,
28657,
1180,
1119,
13,
2165,
18,
4285,
5621,
430,
12,
1726,
1119,
18,
291,
907,
10756,
95,
907,
2828,
2159,
28657,
907,
2828,
13,
1726,
9455,
18,
588,
1180,
12,
1726,
1119,
18,
26321,
10663,
430,
12,
2159,
18,
291,
15101,
12,
7492,
2
] |
||
globalLock.sharedLock(); waiters.remove(lockState.r.owner); /* * As the hash table may have been resized while we were waiting, * we need to recalculate the bucket. */ h = lockState.parms.target.hashCode() % hashTableSize; lockState.bucket = LockHashTable[h]; ((ExtendedLockBucket)lockState.bucket).lock(); ((ExtendedLockItem)lockState.lockitem).lock(); ((ExtendedLockBucket)lockState.bucket).unlock();
|
for (;;) { try { if (lockState.parms.timeout == -1) { LockSupport.park(); } else { LockSupport.parkNanos(timeToWait); } } finally { globalLock.sharedLock(); } long now = System.nanoTime(); if (timeToWait > 0) { timeToWait -= (now-then); then = now; } /* * As the hash table may have been resized while we were waiting, * we need to recalculate the bucket. */ h = lockState.parms.target.hashCode() % hashTableSize; lockState.bucket = LockHashTable[h]; ((ExtendedLockBucket)lockState.bucket).lock(); if (lockState.r.status == LockRequestStatus.WAITING || lockState.r.status == LockRequestStatus.CONVERTING) { if (timeToWait > 0 || lockState.parms.timeout == -1) { System.err.println("Need to retry as this was a spurious wakeup"); ((ExtendedLockBucket)lockState.bucket).unlock(); globalLock.unlockShared(); continue; } } break; }
|
protected LockHandleImpl doAcquire(LockState lockState) throws LockException { if (log.isDebugEnabled()) { log.debug(LOG_CLASS_NAME, "acquire", "Lock requested by " + lockState.parms.owner + " for " + lockState.parms.target + ", mode=" + lockState.parms.mode + ", duration=" + lockState.parms.duration); } lockState.handle = new LockHandleImpl(this, lockState.parms); lockState.converting = false; lockState.prevThread = Thread.currentThread(); /* 1. Search for the lock. */ int h = lockState.parms.target.hashCode() % hashTableSize; lockState.lockitem = null; lockState.bucket = LockHashTable[h]; lockState.r = null; ((ExtendedLockBucket)lockState.bucket).lock(); try { lockState.lockitem = findLock(lockState); if (lockState.lockitem == null) { /* * 2. If not found, this is a new lock and therefore grant the * lock, and return success. */ handleNewLock(lockState); return lockState.handle; } ((ExtendedLockItem)lockState.lockitem).lock(); } finally { ((ExtendedLockBucket)lockState.bucket).unlock(); } try { /* * 3. Else check if requesting transaction already has a lock * request. */ lockState.r = lockState.lockitem.find(lockState.parms.owner); if (lockState.r == null) { if (handleNewRequest(lockState)) { return lockState.handle; } } else { if (handleConversionRequest(lockState)) { return lockState.handle; } } /* 8. Wait for the lock to be available/compatible. */ prepareToWait(lockState); } finally { ((ExtendedLockItem)lockState.lockitem).unlock(); } notifyLockEventListeners(); LockWaiter waiter = new LockWaiter(lockState.r, Thread.currentThread()); waiters.put(lockState.r.owner, waiter); globalLock.unlockShared(); if (lockState.parms.timeout == -1) { LockSupport.park(); } else { LockSupport.parkNanos(TimeUnit.NANOSECONDS.convert(lockState.parms.timeout, TimeUnit.SECONDS)); } globalLock.sharedLock(); waiters.remove(lockState.r.owner); /* * As the hash table may have been resized while we were waiting, * we need to recalculate the bucket. */ h = lockState.parms.target.hashCode() % hashTableSize; lockState.bucket = LockHashTable[h]; ((ExtendedLockBucket)lockState.bucket).lock(); ((ExtendedLockItem)lockState.lockitem).lock(); ((ExtendedLockBucket)lockState.bucket).unlock(); try { handleWaitResult(lockState); return lockState.handle; } finally { ((ExtendedLockItem)lockState.lockitem).unlock(); } }
|
55658 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55658/0ce35cc1a06d7a1634b14e19391ad91480613649/LockManagerImpl.java/buggy/simpledbm-rss/code/simpledbm-rss/src/main/java/org/simpledbm/rss/impl/locking/LockManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3488,
3259,
2828,
741,
27761,
12,
2531,
1119,
2176,
1119,
13,
1216,
3488,
503,
288,
202,
202,
430,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
1082,
202,
1330,
18,
4148,
12,
4842,
67,
5237,
67,
1985,
16,
315,
1077,
1039,
3113,
315,
2531,
3764,
635,
315,
397,
2176,
1119,
18,
29927,
18,
8443,
6862,
202,
15,
315,
364,
315,
397,
2176,
1119,
18,
29927,
18,
3299,
397,
3104,
1965,
1546,
397,
2176,
1119,
18,
29927,
18,
3188,
397,
3104,
3734,
1546,
6862,
202,
15,
2176,
1119,
18,
29927,
18,
8760,
1769,
202,
202,
97,
202,
202,
739,
1119,
18,
4110,
273,
394,
3488,
3259,
2828,
12,
2211,
16,
2176,
1119,
18,
29927,
1769,
202,
202,
739,
1119,
18,
6283,
310,
273,
629,
31,
202,
202,
739,
1119,
18,
10001,
3830,
273,
4884,
18,
2972,
3830,
5621,
202,
202,
20308,
404,
18,
5167,
364,
326,
2176,
18,
1195,
202,
202,
474,
366,
273,
2176,
1119,
18,
29927,
18,
3299,
18,
2816,
1085,
1435,
738,
1651,
1388,
1225,
31,
202,
202,
739,
1119,
18,
739,
1726,
273,
446,
31,
202,
202,
739,
1119,
18,
7242,
273,
3488,
2310,
1388,
63,
76,
15533,
202,
202,
739,
1119,
18,
86,
273,
446,
31,
202,
202,
12443,
11456,
2531,
4103,
13,
739,
1119,
18,
7242,
2934,
739,
5621,
202,
202,
698,
288,
1082,
202,
739,
1119,
18,
739,
1726,
273,
1104,
2531,
12,
739,
1119,
1769,
1082,
202,
430,
261,
739,
1119,
18,
739,
1726,
422,
446,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3488,
3259,
2828,
741,
27761,
12,
2531,
1119,
2176,
1119,
13,
1216,
3488,
503,
288,
202,
202,
430,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
1082,
202,
1330,
18,
4148,
12,
4842,
67,
5237,
67,
1985,
16,
315,
1077,
1039,
3113,
315,
2531,
3764,
635,
315,
397,
2176,
1119,
18,
29927,
18,
8443,
6862,
202,
15,
315,
364,
315,
397,
2176,
1119,
18,
29927,
18,
3299,
397,
3104,
1965,
1546,
397,
2176,
1119,
18,
29927,
18,
3188,
397,
3104,
3734,
1546,
6862,
202,
15,
2176,
1119,
18,
29927,
18,
8760,
1769,
202,
202,
97,
202,
202,
739,
1119,
18,
4110,
273,
394,
3488,
3259,
2828,
12,
2211,
16,
2176,
1119,
18,
29927,
1769,
202,
202,
2
] |
Date today = new Date(); String year = String.valueOf(today.getYear()); String month = String.valueOf(today.getMonth() + 1); String day = String.valueOf(today.getDate()); if (month.length() == 1) { month = "0" + month; }
|
Calendar today = Calendar.getInstance(); String year = String.valueOf(today.get(Calendar.YEAR)); String month = String.valueOf(today.get(Calendar.MONTH)); String day = String.valueOf(today.get(Calendar.DATE));
|
public String getDayString() { Date today = new Date(); String year = String.valueOf(today.getYear()); String month = String.valueOf(today.getMonth() + 1); String day = String.valueOf(today.getDate()); if (month.length() == 1) { month = "0" + month; } return year + month + day; }
|
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/f9b2840bc9054755e0185a78dacedbcc370232db/AbstractReportWriter.java/clean/src/reports/org/apache/jmeter/report/writers/AbstractReportWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
20444,
780,
1435,
288,
202,
202,
1626,
10074,
273,
394,
2167,
5621,
202,
202,
780,
3286,
273,
514,
18,
1132,
951,
12,
30064,
18,
588,
5593,
10663,
202,
202,
780,
3138,
273,
514,
18,
1132,
951,
12,
30064,
18,
588,
5445,
1435,
397,
404,
1769,
202,
202,
780,
2548,
273,
514,
18,
1132,
951,
12,
30064,
18,
588,
1626,
10663,
202,
202,
430,
261,
7496,
18,
2469,
1435,
422,
404,
13,
288,
1082,
202,
7496,
273,
315,
20,
6,
397,
3138,
31,
202,
202,
97,
202,
202,
2463,
3286,
397,
3138,
397,
2548,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
514,
20444,
780,
1435,
288,
202,
202,
1626,
10074,
273,
394,
2167,
5621,
202,
202,
780,
3286,
273,
514,
18,
1132,
951,
12,
30064,
18,
588,
5593,
10663,
202,
202,
780,
3138,
273,
514,
18,
1132,
951,
12,
30064,
18,
588,
5445,
1435,
397,
404,
1769,
202,
202,
780,
2548,
273,
514,
18,
1132,
951,
12,
30064,
18,
588,
1626,
10663,
202,
202,
430,
261,
7496,
18,
2469,
1435,
422,
404,
13,
288,
1082,
202,
7496,
273,
315,
20,
6,
397,
3138,
31,
202,
202,
97,
202,
202,
2463,
3286,
397,
3138,
397,
2548,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
headerCell.setParamProperty(paramProperty);
|
headerCell.setParamProperty(this.paramProperty);
|
public int doEndTag() throws JspException { MediaTypeEnum currentMediaType = (MediaTypeEnum) pageContext.findAttribute(TableTag.PAGE_ATTRIBUTE_MEDIA); if (currentMediaType != null && !availableForMedia(currentMediaType)) { if (log.isDebugEnabled()) { log.debug("skipping column body, currentMediaType=" + currentMediaType); } return SKIP_BODY; } TableTag tableTag = (TableTag) findAncestorWithClass(this, TableTag.class); // add column header only once if (tableTag.isFirstIteration()) { HeaderCell headerCell = new HeaderCell(); headerCell.setHeaderAttributes((HtmlAttributeMap) headerAttributeMap.clone()); headerCell.setHtmlAttributes((HtmlAttributeMap) attributeMap.clone()); headerCell.setTitle(title); headerCell.setSortable(sortable); headerCell.setColumnDecorator(DecoratorFactory.loadColumnDecorator(decorator)); headerCell.setBeanPropertyName(property); headerCell.setShowNulls(nulls); headerCell.setMaxLength(maxLength); headerCell.setMaxWords(maxWords); headerCell.setAutoLink(autolink); headerCell.setGroup(group); // href and parameter, create link if (href != null && paramId != null) { Href colHref = new Href(href); // parameter value is in a different object than the iterated one if (paramName != null || paramScope != null) { // create a complete string for compatibility with previous version before expression evaluation. // this approach is optimized for new expressions, not for previous property/scope parameters StringBuffer expression = new StringBuffer(); // append scope if (paramScope != null && !"".equals(paramScope)) { expression.append(paramScope).append("Scope."); } // base bean name if (paramId != null) { expression.append(paramName); } else { expression.append(tableTag.getName()); } // append property if (paramProperty != null && !"".equals(paramProperty)) { expression.append('.').append(property); } // evaluate expression. // note the value is fixed, not based on any object created during iteration // this is here for compatibility with the old version mainly Object paramValue = tableTag.evaluateExpression(expression.toString()); // add parameter colHref.addParameter(paramId, paramValue); } else { // lookup value as a property on the list object. This should not be done here to avoid useless // work when only a part of the list is displayed // set id headerCell.setParamName(paramId); // set property headerCell.setParamProperty(paramProperty); } // sets the base href headerCell.setHref(colHref); } tableTag.addColumn(headerCell); if (log.isDebugEnabled()) { log.debug("columnTag.doEndTag() :: first iteration - adding header " + headerCell); } } Cell cell; if (property == null) { Object cellValue; if (getBodyContent() != null) { String value = null; BodyContent bodyContent = getBodyContent(); if (bodyContent != null) { value = bodyContent.getString(); } if (value == null && nulls) { value = ""; } cellValue = value; } // BodyContent will be null if the body was not eval'd, eg an empty list. else if (tableTag.isEmpty()) { cellValue = Cell.EMPTY_CELL; } else { throw new MissingAttributeException( getClass(), new String[] { "property attribute", "value attribute", "tag body" }); } cell = new Cell(cellValue); } else { cell = Cell.EMPTY_CELL; } tableTag.addCell(cell); attributeMap.clear(); headerAttributeMap.clear(); paramName = null; decorator = null; // fix for tag pooling in tomcat setBodyContent(null); return super.doEndTag(); }
|
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/ed5033a65d1a925fc3c1ad3ffe7210f23cf10cb0/ColumnTag.java/clean/displaytag/src/main/java/org/displaytag/tags/ColumnTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
25633,
1435,
1216,
27485,
565,
288,
3639,
6128,
10549,
783,
20870,
273,
261,
5419,
10549,
13,
21442,
18,
4720,
1499,
12,
1388,
1805,
18,
11219,
67,
11616,
67,
26368,
1769,
3639,
309,
261,
2972,
20870,
480,
446,
597,
401,
5699,
1290,
5419,
12,
2972,
20870,
3719,
3639,
288,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
288,
7734,
613,
18,
4148,
2932,
7457,
1382,
1057,
1417,
16,
783,
20870,
1546,
397,
783,
20870,
1769,
5411,
289,
5411,
327,
18420,
67,
16691,
31,
3639,
289,
3639,
3555,
1805,
1014,
1805,
273,
261,
1388,
1805,
13,
1104,
15637,
1190,
797,
12,
2211,
16,
3555,
1805,
18,
1106,
1769,
3639,
368,
527,
1057,
1446,
1338,
3647,
3639,
309,
261,
2121,
1805,
18,
291,
3759,
10795,
10756,
3639,
288,
5411,
4304,
4020,
1446,
4020,
273,
394,
4304,
4020,
5621,
5411,
1446,
4020,
18,
542,
1864,
2498,
12443,
4353,
1499,
863,
13,
1446,
1499,
863,
18,
14056,
10663,
5411,
1446,
4020,
18,
542,
4353,
2498,
12443,
4353,
1499,
863,
13,
1566,
863,
18,
14056,
10663,
5411,
1446,
4020,
18,
542,
4247,
12,
2649,
1769,
5411,
1446,
4020,
18,
542,
30237,
12,
27236,
1769,
5411,
1446,
4020,
18,
542,
1494,
10361,
12,
10361,
1733,
18,
945,
1494,
10361,
12,
19142,
10019,
5411,
1446,
4020,
18,
542,
3381,
13073,
12,
4468,
1769,
5411,
1446,
4020,
18,
542,
5706,
31326,
12,
2011,
87,
1769,
5411,
1446,
4020,
18,
542,
29346,
12,
1896,
1782,
1769,
5411,
1446,
4020,
18,
542,
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,
509,
741,
25633,
1435,
1216,
27485,
565,
288,
3639,
6128,
10549,
783,
20870,
273,
261,
5419,
10549,
13,
21442,
18,
4720,
1499,
12,
1388,
1805,
18,
11219,
67,
11616,
67,
26368,
1769,
3639,
309,
261,
2972,
20870,
480,
446,
597,
401,
5699,
1290,
5419,
12,
2972,
20870,
3719,
3639,
288,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
288,
7734,
613,
18,
4148,
2932,
7457,
1382,
1057,
1417,
16,
783,
20870,
1546,
397,
783,
20870,
1769,
5411,
289,
5411,
327,
18420,
67,
16691,
31,
3639,
289,
3639,
3555,
1805,
1014,
1805,
273,
261,
1388,
1805,
13,
1104,
15637,
1190,
797,
12,
2211,
16,
3555,
1805,
18,
1106,
1769,
3639,
368,
527,
1057,
1446,
1338,
3647,
2
] |
case ObjectDefinition.CLONE :
|
case ObjectDefinition.RBCLONE :
|
public IRubyObject callIndexed(int index, IRubyObject[] args) { switch (index) { case ObjectDefinition.CLONE : return rbClone(); case ObjectDefinition.DUP : return dup(); case ObjectDefinition.EQUAL : return equal(args[0]); case ObjectDefinition.EXTEND : return extend(args); case ObjectDefinition.FREEZE : return freeze(); case ObjectDefinition.FROZEN : return frozen(); case ObjectDefinition.HASH : return hash(); case ObjectDefinition.ID : return id(); case ObjectDefinition.INSPECT : return inspect(); case ObjectDefinition.INSTANCE_EVAL : return instance_eval(args); case ObjectDefinition.INSTANCE_OF : return instance_of(args[0]); case ObjectDefinition.INSTANCE_VARIABLES : return instance_variables(); case ObjectDefinition.KIND_OF : return kind_of(args[0]); case ObjectDefinition.MATCH : return runtime.getFalse(); case ObjectDefinition.METHOD : return method(args[0]); case ObjectDefinition.METHOD_MISSING : return method_missing(args); case ObjectDefinition.METHODS : return methods(); case ObjectDefinition.NIL : return runtime.getFalse(); case ObjectDefinition.PRIVATE_METHODS : return private_methods(); case ObjectDefinition.PROTECTED_METHODS : return protected_methods(); case ObjectDefinition.RESPOND_TO : return respond_to(args); case ObjectDefinition.SEND : return send(args); case ObjectDefinition.SINGLETON_METHODS : return singleton_methods(); case ObjectDefinition.TAINT : return taint(); case ObjectDefinition.TAINTED : return tainted(); case ObjectDefinition.TO_A : return to_a(); case ObjectDefinition.TO_S : return to_s(); case ObjectDefinition.TYPE : return type(); case ObjectDefinition.UNTAINT : return untaint(); } Asserts.notReached("invalid index '" + index + "'."); return null; }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/dcea3e9f2f6ecba04f862dbfb01b220d7890a706/RubyObject.java/buggy/src/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
745,
15034,
12,
474,
770,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
1620,
261,
1615,
13,
288,
5411,
648,
1033,
1852,
18,
19437,
5017,
5998,
294,
7734,
327,
7138,
10930,
5621,
5411,
648,
1033,
1852,
18,
30387,
294,
7734,
327,
9417,
5621,
5411,
648,
1033,
1852,
18,
12853,
294,
7734,
327,
3959,
12,
1968,
63,
20,
19226,
5411,
648,
1033,
1852,
18,
4142,
4415,
294,
7734,
327,
2133,
12,
1968,
1769,
5411,
648,
1033,
1852,
18,
28104,
3794,
294,
7734,
327,
16684,
5621,
5411,
648,
1033,
1852,
18,
42,
1457,
62,
1157,
294,
7734,
327,
12810,
5621,
5411,
648,
1033,
1852,
18,
15920,
294,
7734,
327,
1651,
5621,
5411,
648,
1033,
1852,
18,
734,
294,
7734,
327,
612,
5621,
5411,
648,
1033,
1852,
18,
706,
23810,
1268,
294,
7734,
327,
5334,
5621,
5411,
648,
1033,
1852,
18,
13341,
67,
41,
2669,
294,
7734,
327,
791,
67,
8622,
12,
1968,
1769,
5411,
648,
1033,
1852,
18,
13341,
67,
3932,
294,
7734,
327,
791,
67,
792,
12,
1968,
63,
20,
19226,
5411,
648,
1033,
1852,
18,
13341,
67,
16444,
55,
294,
7734,
327,
791,
67,
7528,
5621,
5411,
648,
1033,
1852,
18,
47,
2356,
67,
3932,
294,
7734,
327,
3846,
67,
792,
12,
1968,
63,
20,
19226,
5411,
648,
1033,
1852,
18,
11793,
294,
7734,
327,
3099,
18,
588,
8381,
5621,
5411,
648,
1033,
1852,
18,
5327,
294,
7734,
327,
707,
12,
1968,
63,
20,
19226,
5411,
648,
1033,
1852,
18,
5327,
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,
15908,
10340,
921,
745,
15034,
12,
474,
770,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
1620,
261,
1615,
13,
288,
5411,
648,
1033,
1852,
18,
19437,
5017,
5998,
294,
7734,
327,
7138,
10930,
5621,
5411,
648,
1033,
1852,
18,
30387,
294,
7734,
327,
9417,
5621,
5411,
648,
1033,
1852,
18,
12853,
294,
7734,
327,
3959,
12,
1968,
63,
20,
19226,
5411,
648,
1033,
1852,
18,
4142,
4415,
294,
7734,
327,
2133,
12,
1968,
1769,
5411,
648,
1033,
1852,
18,
28104,
3794,
294,
7734,
327,
16684,
5621,
5411,
648,
1033,
1852,
18,
42,
1457,
62,
1157,
294,
7734,
327,
12810,
5621,
5411,
648,
1033,
1852,
18,
15920,
294,
7734,
327,
1651,
5621,
5411,
648,
1033,
1852,
2
] |
Iterator iter = seqListeners.iterator(); while (iter.hasNext()){ SequenceListener li = (SequenceListener)iter.next(); SequenceEvent event = new SequenceEvent(sp_accession,sequence); li.newSequence(event); }
|
triggerNewSequence(sp_accession,sequence);
|
public void getSequence( ){ boolean gotSequence = false ; for ( int i = 0 ; i< sequenceServers.length; i++){ if ( gotSequence ) break ; SpiceDasSource ds = sequenceServers[i]; String url = ds.getUrl() ; char lastChar = url.charAt(url.length()-1); if ( ! (lastChar == '/') ) url +="/" ; String dascmd = url + "sequence?segment="; String connstr = dascmd + sp_accession ; try { String sequence = retrieveSequence(connstr); // bug in aristotle das source? sequence.replaceAll(" ",""); gotSequence = true ; // set the sequence ... Iterator iter = seqListeners.iterator(); while (iter.hasNext()){ SequenceListener li = (SequenceListener)iter.next(); //SequenceEvent event = new SequenceEvent(sequence); SequenceEvent event = new SequenceEvent(sp_accession,sequence); li.newSequence(event); } return; } catch (Exception ex) { ex.printStackTrace(); logger.warning(ex.getMessage()); } } logger.log(Level.WARNING,"could not retreive UniProt sequence from any available DAS sequence server"); }
|
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/62d905099bed9011a7ed191ed5ea8dbb4a0cde0c/SequenceThread.java/buggy/src/org/biojava/spice/das/SequenceThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27763,
12,
262,
95,
7734,
1250,
2363,
4021,
273,
629,
274,
7734,
364,
261,
509,
277,
273,
374,
274,
277,
32,
3102,
11913,
18,
2469,
31,
277,
27245,
95,
13491,
309,
261,
2363,
4021,
262,
898,
274,
13491,
5878,
1812,
40,
345,
1830,
3780,
273,
3102,
11913,
63,
77,
15533,
5411,
514,
880,
273,
3780,
18,
588,
1489,
1435,
274,
5411,
1149,
23914,
273,
880,
18,
3001,
861,
12,
718,
18,
2469,
1435,
17,
21,
1769,
5375,
309,
261,
401,
261,
2722,
2156,
422,
2023,
13,
262,
1171,
880,
1011,
6,
4898,
274,
5411,
514,
302,
3691,
1264,
273,
880,
397,
315,
6178,
35,
9273,
1546,
31,
5411,
514,
1487,
701,
273,
302,
3691,
1264,
397,
1694,
67,
3860,
285,
274,
13491,
775,
288,
27573,
514,
3102,
273,
4614,
4021,
12,
4646,
701,
1769,
7734,
368,
7934,
316,
419,
376,
352,
298,
30255,
1084,
35,
7734,
3102,
18,
2079,
1595,
2932,
3104,
3660,
1769,
7734,
2363,
4021,
273,
638,
274,
7734,
368,
444,
326,
3102,
1372,
27573,
4498,
1400,
273,
3833,
5583,
18,
9838,
5621,
7734,
1323,
261,
2165,
18,
5332,
2134,
10756,
95,
10402,
8370,
2223,
4501,
273,
261,
4021,
2223,
13,
2165,
18,
4285,
5621,
10792,
368,
4021,
1133,
871,
273,
394,
8370,
1133,
12,
6178,
1769,
10402,
8370,
1133,
871,
273,
394,
8370,
1133,
12,
1752,
67,
3860,
285,
16,
6178,
1769,
10792,
4501,
18,
2704,
4021,
12,
2575,
1769,
7734,
289,
27573,
327,
31,
5411,
289,
5411,
1044,
261,
503,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27763,
12,
262,
95,
7734,
1250,
2363,
4021,
273,
629,
274,
7734,
364,
261,
509,
277,
273,
374,
274,
277,
32,
3102,
11913,
18,
2469,
31,
277,
27245,
95,
13491,
309,
261,
2363,
4021,
262,
898,
274,
13491,
5878,
1812,
40,
345,
1830,
3780,
273,
3102,
11913,
63,
77,
15533,
5411,
514,
880,
273,
3780,
18,
588,
1489,
1435,
274,
5411,
1149,
23914,
273,
880,
18,
3001,
861,
12,
718,
18,
2469,
1435,
17,
21,
1769,
5375,
309,
261,
401,
261,
2722,
2156,
422,
2023,
13,
262,
1171,
880,
1011,
6,
4898,
274,
5411,
514,
302,
3691,
1264,
273,
880,
397,
315,
6178,
35,
9273,
1546,
31,
5411,
514,
1487,
701,
273,
302,
3691,
1264,
397,
2
] |
promptText.setLayoutData( new GridData( GridData.FILL_BOTH ) );
|
gridData = new GridData( GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL );
|
protected Control createDialogArea( Composite parent ) { Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.marginWidth = 10; //gridLayout.marginTop = 7; container.setLayout( gridLayout ); GridData gridData = new GridData( ); gridData.widthHint = 400; container.setLayoutData( gridData ); Group group = new Group( container, SWT.NONE ); group.setLayout( new GridLayout( ) ); group.setLayoutData( new GridData( GridData.FILL_BOTH ) ); group.setText( GROUP_TITLE ); Composite groupContainer = new Composite( group, SWT.NONE ); gridLayout = new GridLayout( ); gridLayout.numColumns = 2; gridLayout.marginWidth = 7; gridLayout.marginHeight = 7; gridLayout.verticalSpacing = 10; groupContainer.setLayout( gridLayout ); groupContainer.setLayoutData( new GridData( GridData.FILL_BOTH ) ); new Label( groupContainer, SWT.NONE ).setText( LABEL_OBJECT_TYPE ); new Label( groupContainer, SWT.NONE ).setText( objectType ); new Label( groupContainer, SWT.NONE ).setText( LABEL_PROMPT_TEXT ); promptText = new Text( groupContainer, SWT.BORDER | SWT.SINGLE ); promptText.setText( defaultPromptText ); promptText.setLayoutData( new GridData( GridData.FILL_BOTH ) ); return container; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/fa0d9b868dc450072bbb03258594a18bbc5f2012/TemplateReportItemPropertiesDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/TemplateReportItemPropertiesDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
1478,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
3744,
3068,
3744,
273,
394,
7145,
3744,
12,
11272,
202,
202,
5222,
3744,
18,
10107,
2384,
273,
1728,
31,
202,
202,
759,
5222,
3744,
18,
10107,
3401,
273,
2371,
31,
202,
202,
3782,
18,
542,
3744,
12,
3068,
3744,
11272,
202,
202,
6313,
751,
3068,
751,
273,
394,
7145,
751,
12,
11272,
202,
202,
5222,
751,
18,
2819,
7002,
273,
7409,
31,
202,
202,
3782,
18,
542,
3744,
751,
12,
3068,
751,
11272,
202,
202,
1114,
1041,
273,
394,
3756,
12,
1478,
16,
348,
8588,
18,
9826,
11272,
202,
202,
1655,
18,
542,
3744,
12,
394,
7145,
3744,
12,
262,
11272,
202,
202,
1655,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
38,
18307,
262,
11272,
202,
202,
1655,
18,
542,
1528,
12,
13839,
67,
14123,
11272,
202,
202,
9400,
1041,
2170,
273,
394,
14728,
12,
1041,
16,
348,
8588,
18,
9826,
11272,
202,
202,
5222,
3744,
273,
394,
7145,
3744,
12,
11272,
202,
202,
5222,
3744,
18,
2107,
3380,
273,
576,
31,
202,
202,
5222,
3744,
18,
10107,
2384,
273,
2371,
31,
202,
202,
5222,
3744,
18,
10107,
2686,
273,
2371,
31,
202,
202,
5222,
3744,
18,
17824,
18006,
273,
1728,
31,
202,
202,
1655,
2170,
18,
542,
3744,
12,
3068,
3744,
11272,
202,
202,
1655,
2170,
18,
542,
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,
8888,
752,
6353,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
1478,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
3744,
3068,
3744,
273,
394,
7145,
3744,
12,
11272,
202,
202,
5222,
3744,
18,
10107,
2384,
273,
1728,
31,
202,
202,
759,
5222,
3744,
18,
10107,
3401,
273,
2371,
31,
202,
202,
3782,
18,
542,
3744,
12,
3068,
3744,
11272,
202,
202,
6313,
751,
3068,
751,
273,
394,
7145,
751,
12,
11272,
202,
202,
5222,
751,
18,
2819,
7002,
273,
7409,
31,
202,
202,
3782,
18,
542,
3744,
751,
12,
3068,
751,
11272,
202,
202,
1114,
1041,
273,
394,
3756,
12,
1478,
16,
348,
8588,
18,
9826,
11272,
2
] |
public org.quickfix.field.CouponPaymentDate getCouponPaymentDate() throws FieldNotFound { org.quickfix.field.CouponPaymentDate value = new org.quickfix.field.CouponPaymentDate();
|
public quickfix.field.CouponPaymentDate getCouponPaymentDate() throws FieldNotFound { quickfix.field.CouponPaymentDate value = new quickfix.field.CouponPaymentDate();
|
public org.quickfix.field.CouponPaymentDate getCouponPaymentDate() throws FieldNotFound { org.quickfix.field.CouponPaymentDate value = new org.quickfix.field.CouponPaymentDate(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequest.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReportRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
22744,
6032,
1626,
19850,
9899,
6032,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
22744,
6032,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
22744,
6032,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22744,
6032,
1626,
19850,
9899,
6032,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
22744,
6032,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
22744,
6032,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (String)parameters.get(name);
|
String[] values = (String[])parameters.get(name); if (values == null || values.length <= 0) return null; else return values[0];
|
public String getParameter(String name) { return (String)parameters.get(name); }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/05c57c65668ca5a71bf3e6dcc2499240f5379602/ServletRequestImpl.java/buggy/source/org/jasig/portal/container/servlet/ServletRequestImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
5575,
12,
780,
508,
13,
288,
3639,
514,
8526,
924,
273,
261,
780,
63,
5717,
3977,
18,
588,
12,
529,
1769,
225,
309,
261,
2372,
422,
446,
747,
924,
18,
2469,
1648,
374,
13,
327,
446,
31,
469,
327,
924,
63,
20,
15533,
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,
514,
5575,
12,
780,
508,
13,
288,
3639,
514,
8526,
924,
273,
261,
780,
63,
5717,
3977,
18,
588,
12,
529,
1769,
225,
309,
261,
2372,
422,
446,
747,
924,
18,
2469,
1648,
374,
13,
327,
446,
31,
469,
327,
924,
63,
20,
15533,
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
] |
new JOptionPane().showMessageDialog(parent, "Looped \"base\" attribute in XML definitions.", "Error Loading ROM", JOptionPane.ERROR_MESSAGE);
|
JOptionPane.showMessageDialog(parent, "Looped \"base\" attribute in XML definitions.", "Error Loading ROM", JOptionPane.ERROR_MESSAGE);
|
public void openImage(File inputFile) throws XMLParseException, Exception { try { parent.repaintPanel(); JProgressPane progress = new JProgressPane(parent, "Opening file...", "Parsing ECU definitions..."); progress.update("Parsing ECU definitions...", 0); InputSource src = new InputSource(new FileInputStream(parent.getSettings().getEcuDefinitionFile())); DOMRomUnmarshaller domUms = new DOMRomUnmarshaller(); DOMParser parser = new DOMParser(); parser.parse(src); Document doc = parser.getDocument(); FileInputStream fis = new FileInputStream(inputFile); byte[] input = new byte[fis.available()]; fis.read(input); fis.close(); progress.update("Finding ECU definition...", 10); Rom rom = domUms.unmarshallXMLDefinition(doc.getDocumentElement(), input, progress); progress.update("Populating tables...", 50); rom.populateTables(input, progress); rom.setFileName(inputFile.getName()); progress.update("Finalizing...", 90); parent.addRom(rom); rom.setFullFileName(inputFile); progress.dispose(); } catch (RomNotFoundException ex) { new JOptionPane().showMessageDialog(parent, "ECU Definition Not Found", "Error Loading " + inputFile.getName(), JOptionPane.ERROR_MESSAGE); } catch (StackOverflowError ex) { new JOptionPane().showMessageDialog(parent, "Looped \"base\" attribute in XML definitions.", "Error Loading ROM", JOptionPane.ERROR_MESSAGE); } }
|
48870 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48870/3a1e625e283a4a786358f853ddaccf2757df68b2/ECUEditorMenuBar.java/clean/src/enginuity/swing/ECUEditorMenuBar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
2040,
12,
812,
22014,
13,
1216,
3167,
13047,
16,
1185,
288,
10792,
775,
288,
1171,
982,
18,
14462,
1598,
5537,
5621,
5411,
804,
5491,
8485,
4007,
273,
394,
804,
5491,
8485,
12,
2938,
16,
315,
21378,
585,
7070,
16,
315,
13963,
7773,
57,
6377,
7070,
1769,
5411,
4007,
18,
2725,
2932,
13963,
7773,
57,
6377,
7070,
16,
374,
1769,
13491,
23699,
1705,
273,
394,
23699,
12,
2704,
11907,
12,
2938,
18,
588,
2628,
7675,
588,
41,
6319,
1852,
812,
1435,
10019,
18701,
4703,
54,
362,
984,
27296,
4092,
57,
959,
273,
394,
4703,
54,
362,
984,
27296,
5621,
5411,
4703,
2678,
2082,
273,
394,
4703,
2678,
5621,
18701,
2082,
18,
2670,
12,
4816,
1769,
5375,
4319,
997,
273,
2082,
18,
588,
2519,
5621,
5411,
11907,
15324,
273,
394,
11907,
12,
2630,
812,
1769,
5411,
1160,
8526,
810,
273,
394,
1160,
63,
74,
291,
18,
5699,
1435,
15533,
18701,
15324,
18,
896,
12,
2630,
1769,
1171,
15324,
18,
4412,
5621,
4766,
565,
4007,
18,
2725,
2932,
21358,
7773,
57,
2379,
7070,
16,
1728,
1769,
13491,
534,
362,
24137,
273,
4092,
57,
959,
18,
318,
12201,
4201,
1852,
12,
2434,
18,
588,
2519,
1046,
9334,
810,
16,
4007,
1769,
5411,
4007,
18,
2725,
2932,
7049,
27967,
4606,
7070,
16,
6437,
1769,
5411,
24137,
18,
19936,
6905,
12,
2630,
16,
4007,
1769,
5411,
24137,
18,
542,
4771,
12,
2630,
812,
18,
17994,
10663,
13491,
4007,
18,
2725,
2932,
7951,
6894,
7070,
16,
8566,
1769,
1171,
982,
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,
1696,
2040,
12,
812,
22014,
13,
1216,
3167,
13047,
16,
1185,
288,
10792,
775,
288,
1171,
982,
18,
14462,
1598,
5537,
5621,
5411,
804,
5491,
8485,
4007,
273,
394,
804,
5491,
8485,
12,
2938,
16,
315,
21378,
585,
7070,
16,
315,
13963,
7773,
57,
6377,
7070,
1769,
5411,
4007,
18,
2725,
2932,
13963,
7773,
57,
6377,
7070,
16,
374,
1769,
13491,
23699,
1705,
273,
394,
23699,
12,
2704,
11907,
12,
2938,
18,
588,
2628,
7675,
588,
41,
6319,
1852,
812,
1435,
10019,
18701,
4703,
54,
362,
984,
27296,
4092,
57,
959,
273,
394,
4703,
54,
362,
984,
27296,
5621,
5411,
4703,
2678,
2082,
273,
394,
4703,
2678,
5621,
18701,
2082,
18,
2670,
12,
4816,
1769,
5375,
2
] |
BugSet result=this; for (StringPair sp:a)
|
if (doneMap.containsKey(keyValuePair)) return doneMap.get(keyValuePair); ArrayList<BugLeafNode> bugs=new ArrayList<BugLeafNode>(); for(BugLeafNode b:mainList)
|
public BugSet query(BugAspects a) { BugSet result=this; for (StringPair sp:a) { result=result.query(sp); } return result; }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/a12d06bf3e5f9ea3ec69c1194cd4383e582a43cc/BugSet.java/clean/findbugs/src/java5/edu/umd/cs/findbugs/gui2/BugSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
694,
843,
12,
19865,
17468,
87,
279,
13,
202,
95,
202,
202,
19865,
694,
563,
33,
2211,
31,
202,
202,
1884,
261,
780,
4154,
1694,
30,
69,
13,
202,
202,
95,
1082,
202,
2088,
33,
2088,
18,
2271,
12,
1752,
1769,
202,
202,
97,
202,
202,
2463,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
16907,
694,
843,
12,
19865,
17468,
87,
279,
13,
202,
95,
202,
202,
19865,
694,
563,
33,
2211,
31,
202,
202,
1884,
261,
780,
4154,
1694,
30,
69,
13,
202,
202,
95,
1082,
202,
2088,
33,
2088,
18,
2271,
12,
1752,
1769,
202,
202,
97,
202,
202,
2463,
563,
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
] |
int k = stack.indexOf(this);
|
if (graphicCounter != null && graphicCounter.isIndeterminate()) { graphicCounter.setIndeterminate(false); graphicCounter.setMaximum(stepsCompleted); graphicCounter.setValue(stepsCompleted); } int k = stack.indexOf(this);
|
public void finished() { int k = stack.indexOf(this); if (k>=0) stack = stack.subList( 0, k ); }
|
51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/d09e595658c344e1d50ecc2a4aa27c833133bd4f/ProgressCounter.java/buggy/src/edu/cmu/minorthird/util/ProgressCounter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6708,
1435,
288,
202,
202,
474,
417,
273,
2110,
18,
31806,
12,
2211,
1769,
202,
202,
430,
261,
79,
34,
33,
20,
13,
2110,
273,
2110,
18,
1717,
682,
12,
374,
16,
417,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6708,
1435,
288,
202,
202,
474,
417,
273,
2110,
18,
31806,
12,
2211,
1769,
202,
202,
430,
261,
79,
34,
33,
20,
13,
2110,
273,
2110,
18,
1717,
682,
12,
374,
16,
417,
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
] |
private void skipOverMacroArg() { char[] buffer = bufferStack[bufferStackPos]; int limit = bufferLimit[bufferStackPos]; while (++bufferPos[bufferStackPos] < limit) {
|
private int skipOverMacroArg(){ char [] buffer = bufferStack[bufferStackPos]; int limit = bufferLimit[bufferStackPos]; int argEnd = bufferPos[bufferStackPos]--; int nesting = 0; while (++bufferPos[bufferStackPos] < limit) {
|
private void skipOverMacroArg() { char[] buffer = bufferStack[bufferStackPos]; int limit = bufferLimit[bufferStackPos]; while (++bufferPos[bufferStackPos] < limit) { switch (buffer[bufferPos[bufferStackPos]]) { case ' ': case '\t': case '\r': case '\n': case ',': case ')': case '(': case '<': case '>': --bufferPos[bufferStackPos]; return; case '\\': int pos = bufferPos[bufferStackPos]; if (pos + 1 < limit && buffer[pos + 1] == '\n') { // \n is whitespace --bufferPos[bufferStackPos]; return; } break; case '"': boolean escaped = false; loop: while (++bufferPos[bufferStackPos] < bufferLimit[bufferStackPos]) { switch (buffer[bufferPos[bufferStackPos]]) { case '\\': escaped = !escaped; continue; case '"': if (escaped) { escaped = false; continue; } break loop; default: escaped = false; } } break; } } --bufferPos[bufferStackPos]; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0558ecc1c989dec8f76b39a807a2a109f0c6fcb4/Scanner2.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2488,
4851,
17392,
4117,
1435,
288,
202,
202,
3001,
8526,
1613,
273,
1613,
2624,
63,
4106,
2624,
1616,
15533,
202,
202,
474,
1800,
273,
1613,
3039,
63,
4106,
2624,
1616,
15533,
9506,
202,
17523,
261,
9904,
4106,
1616,
63,
4106,
2624,
1616,
65,
411,
1800,
13,
288,
1082,
202,
9610,
261,
4106,
63,
4106,
1616,
63,
4106,
2624,
1616,
65,
5717,
288,
9506,
202,
3593,
296,
4290,
9506,
202,
3593,
2337,
88,
4278,
9506,
202,
3593,
2337,
86,
4278,
9506,
202,
3593,
2337,
82,
4278,
9506,
202,
3593,
3316,
30,
9506,
202,
3593,
5777,
30,
9506,
202,
3593,
7321,
30,
9506,
202,
3593,
2368,
4278,
9506,
202,
3593,
7481,
30,
6862,
202,
413,
4106,
1616,
63,
4106,
2624,
1616,
15533,
6862,
202,
2463,
31,
9506,
202,
3593,
3718,
4278,
6862,
202,
474,
949,
273,
1613,
1616,
63,
4106,
2624,
1616,
15533,
6862,
202,
430,
261,
917,
397,
404,
411,
1800,
597,
1613,
63,
917,
397,
404,
65,
422,
2337,
82,
6134,
288,
25083,
202,
759,
521,
82,
353,
7983,
25083,
202,
413,
4106,
1616,
63,
4106,
2624,
1616,
15533,
25083,
202,
2463,
31,
6862,
202,
97,
6862,
202,
8820,
31,
9506,
202,
3593,
2119,
4278,
6862,
202,
6494,
8345,
273,
629,
31,
6862,
202,
6498,
30,
6862,
202,
17523,
261,
9904,
4106,
1616,
63,
4106,
2624,
1616,
65,
411,
1613,
3039,
63,
4106,
2624,
1616,
5717,
288,
25083,
202,
9610,
261,
4106,
63,
4106,
1616,
63,
4106,
2624,
1616,
65,
5717,
288,
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,
2488,
4851,
17392,
4117,
1435,
288,
202,
202,
3001,
8526,
1613,
273,
1613,
2624,
63,
4106,
2624,
1616,
15533,
202,
202,
474,
1800,
273,
1613,
3039,
63,
4106,
2624,
1616,
15533,
9506,
202,
17523,
261,
9904,
4106,
1616,
63,
4106,
2624,
1616,
65,
411,
1800,
13,
288,
1082,
202,
9610,
261,
4106,
63,
4106,
1616,
63,
4106,
2624,
1616,
65,
5717,
288,
9506,
202,
3593,
296,
4290,
9506,
202,
3593,
2337,
88,
4278,
9506,
202,
3593,
2337,
86,
4278,
9506,
202,
3593,
2337,
82,
4278,
9506,
202,
3593,
3316,
30,
9506,
202,
3593,
5777,
30,
9506,
202,
3593,
7321,
30,
9506,
202,
3593,
2368,
4278,
9506,
202,
3593,
7481,
30,
6862,
202,
413,
4106,
1616,
2
] |
assertTrue("incorrect sign", result.signum() == 0);
|
assertEquals("incorrect sign", 0, result.signum());
|
public void testCase6() { byte aBytes[] = {1, 100, 56, 7, 98, -1, 39, -128, 127}; byte bBytes[] = {15, 100, 56, 7, 98, -1, 39, -128, 127}; int aSign = 1; int bSign = 1; byte rBytes[] = {0}; BigInteger aNumber = new BigInteger(aSign, aBytes); BigInteger bNumber = new BigInteger(bSign, bBytes); BigInteger result = aNumber.divide(bNumber); byte resBytes[] = new byte[rBytes.length]; resBytes = result.toByteArray(); for(int i = 0; i < resBytes.length; i++) { assertTrue(resBytes[i] == rBytes[i]); } assertTrue("incorrect sign", result.signum() == 0); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/2de6e235697acde9baa71a0268d4d3752d10bdf6/BigIntegerDivideTest.java/buggy/modules/math/src/test/java/org/apache/harmony/tests/java/math/BigIntegerDivideTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2449,
26,
1435,
288,
3639,
1160,
279,
2160,
8526,
273,
288,
21,
16,
2130,
16,
13850,
16,
2371,
16,
24645,
16,
300,
21,
16,
16977,
16,
300,
10392,
16,
12331,
20451,
3639,
1160,
324,
2160,
8526,
273,
288,
3600,
16,
2130,
16,
13850,
16,
2371,
16,
24645,
16,
300,
21,
16,
16977,
16,
300,
10392,
16,
12331,
20451,
3639,
509,
279,
2766,
273,
404,
31,
3639,
509,
324,
2766,
273,
404,
31,
7734,
1160,
436,
2160,
8526,
273,
288,
20,
20451,
3639,
10246,
279,
1854,
273,
394,
10246,
12,
69,
2766,
16,
279,
2160,
1769,
3639,
10246,
324,
1854,
273,
394,
10246,
12,
70,
2766,
16,
324,
2160,
1769,
3639,
10246,
563,
273,
279,
1854,
18,
2892,
831,
12,
70,
1854,
1769,
3639,
1160,
400,
2160,
8526,
273,
394,
1160,
63,
86,
2160,
18,
2469,
15533,
3639,
400,
2160,
273,
563,
18,
869,
8826,
5621,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
400,
2160,
18,
2469,
31,
277,
27245,
288,
5411,
1815,
5510,
12,
455,
2160,
63,
77,
65,
422,
436,
2160,
63,
77,
19226,
3639,
289,
3639,
1815,
8867,
2932,
267,
6746,
1573,
3113,
374,
16,
563,
18,
2977,
379,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1842,
2449,
26,
1435,
288,
3639,
1160,
279,
2160,
8526,
273,
288,
21,
16,
2130,
16,
13850,
16,
2371,
16,
24645,
16,
300,
21,
16,
16977,
16,
300,
10392,
16,
12331,
20451,
3639,
1160,
324,
2160,
8526,
273,
288,
3600,
16,
2130,
16,
13850,
16,
2371,
16,
24645,
16,
300,
21,
16,
16977,
16,
300,
10392,
16,
12331,
20451,
3639,
509,
279,
2766,
273,
404,
31,
3639,
509,
324,
2766,
273,
404,
31,
7734,
1160,
436,
2160,
8526,
273,
288,
20,
20451,
3639,
10246,
279,
1854,
273,
394,
10246,
12,
69,
2766,
16,
279,
2160,
1769,
3639,
10246,
324,
1854,
273,
394,
10246,
12,
70,
2766,
16,
324,
2160,
1769,
3639,
10246,
563,
273,
279,
1854,
2
] |
System.out.println("running #6,10,false");
|
public void testParallelMutliple() { for (int i = 0; i < 5; i++) { System.out.println("running #1,1,false"); runParallelQueries(1, 1, false); System.out.println("running #3,2,false"); runParallelQueries(3, 2, false); System.out.println("running #4,6,true"); runParallelQueries(4, 6, true); System.out.println("running #6,10,false"); runParallelQueries(6, 10, false); } }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/2788f89f5e324aa63a8401da76ad0ff1d7a19d11/BasicQueryTest.java/buggy/src/main/mondrian/test/BasicQueryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13056,
7420,
549,
1802,
1435,
288,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1381,
31,
277,
27245,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
8704,
468,
21,
16,
21,
16,
5743,
8863,
3639,
1086,
13056,
9592,
12,
21,
16,
404,
16,
629,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8704,
468,
23,
16,
22,
16,
5743,
8863,
3639,
1086,
13056,
9592,
12,
23,
16,
576,
16,
629,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8704,
468,
24,
16,
26,
16,
3767,
8863,
3639,
1086,
13056,
9592,
12,
24,
16,
1666,
16,
638,
1769,
9079,
1086,
13056,
9592,
12,
26,
16,
1728,
16,
629,
1769,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13056,
7420,
549,
1802,
1435,
288,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1381,
31,
277,
27245,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
8704,
468,
21,
16,
21,
16,
5743,
8863,
3639,
1086,
13056,
9592,
12,
21,
16,
404,
16,
629,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8704,
468,
23,
16,
22,
16,
5743,
8863,
3639,
1086,
13056,
9592,
12,
23,
16,
576,
16,
629,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8704,
468,
24,
16,
26,
16,
3767,
8863,
3639,
1086,
13056,
9592,
12,
24,
16,
1666,
16,
638,
1769,
9079,
1086,
13056,
9592,
12,
26,
16,
1728,
16,
629,
1769,
1377,
289,
565,
289,
2,
-100
] |
|
MessageFormat assemblyIdFormat = new MessageFormat(type + "_" + "{0,number,0000}");
|
MessageFormat assemblyIdFormat = new MessageFormat(type + "-" + "{0,number,0000}"); substitutions.put(":assembly_type", CMT_TYPE);
|
private String insertAssembly(Connection dbConnection, String type) throws SQLException { MessageFormat assemblyIdFormat = new MessageFormat(type + "_" + "{0,number,0000}"); String assemblyId = getNextId(dbConnection, QUERY_MAX_ASSEMBLY, assemblyIdFormat); substitutions.put(":assembly_id", assemblyId); substitutions.put(":description", "TestPopulateDb " + new Date().toString()); Statement stmt = dbConnection.createStatement(); executeUpdate(stmt, dbp.getQuery(INSERT_ASSEMBLY, substitutions)); executeUpdate(stmt, dbp.getQuery(INSERT_TRIAL_ASSEMBLY, substitutions)); stmt.close(); return assemblyId; }
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/414b4de598bedce4a618ac7303aa28af814ba1ed/TestPopulateDb.java/clean/csmart/regress/org/cougaar/tools/csmart/ui/component/TestPopulateDb.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2243,
24368,
12,
1952,
1319,
1952,
16,
514,
618,
13,
1216,
6483,
288,
3639,
17377,
19931,
548,
1630,
273,
394,
17377,
12,
723,
397,
7514,
397,
4144,
20,
16,
2696,
16,
2787,
1532,
1769,
23368,
18,
458,
2932,
30,
28050,
67,
723,
3113,
385,
6152,
67,
2399,
1769,
3639,
514,
19931,
548,
273,
6927,
548,
12,
1966,
1952,
16,
17089,
67,
6694,
67,
3033,
1090,
7969,
7076,
16,
19931,
548,
1630,
1769,
3639,
23368,
18,
458,
2932,
30,
28050,
67,
350,
3113,
19931,
548,
1769,
3639,
23368,
18,
458,
2932,
30,
3384,
3113,
315,
4709,
19097,
4331,
315,
397,
394,
2167,
7675,
10492,
10663,
3639,
8056,
3480,
273,
1319,
1952,
18,
2640,
3406,
5621,
3639,
17521,
12,
10589,
16,
1319,
84,
18,
588,
1138,
12,
11356,
67,
3033,
1090,
7969,
7076,
16,
23368,
10019,
3639,
17521,
12,
10589,
16,
1319,
84,
18,
588,
1138,
12,
11356,
67,
6566,
1013,
67,
3033,
1090,
7969,
7076,
16,
23368,
10019,
3639,
3480,
18,
4412,
5621,
3639,
327,
19931,
548,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2243,
24368,
12,
1952,
1319,
1952,
16,
514,
618,
13,
1216,
6483,
288,
3639,
17377,
19931,
548,
1630,
273,
394,
17377,
12,
723,
397,
7514,
397,
4144,
20,
16,
2696,
16,
2787,
1532,
1769,
23368,
18,
458,
2932,
30,
28050,
67,
723,
3113,
385,
6152,
67,
2399,
1769,
3639,
514,
19931,
548,
273,
6927,
548,
12,
1966,
1952,
16,
17089,
67,
6694,
67,
3033,
1090,
7969,
7076,
16,
19931,
548,
1630,
1769,
3639,
23368,
18,
458,
2932,
30,
28050,
67,
350,
3113,
19931,
548,
1769,
3639,
23368,
18,
458,
2932,
30,
3384,
3113,
315,
4709,
19097,
4331,
315,
397,
394,
2167,
7675,
10492,
10663,
3639,
8056,
3480,
273,
1319,
1952,
18,
2640,
3406,
5621,
3639,
17521,
2
] |
name = n; position = p; origin = o; MAF = m;
|
name = n; position = p; origin = o; MAF = m;
|
SNP(String n, long p, String o, double m){ name = n; position = p; origin = o; MAF = m; }
|
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/73eca0993159f9e38a26717423f35556e15e60e0/SNP.java/buggy/edu/mit/wi/haploview/SNP.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
14204,
52,
12,
780,
290,
16,
1525,
293,
16,
514,
320,
16,
1645,
312,
15329,
202,
529,
273,
290,
31,
202,
3276,
273,
293,
31,
202,
10012,
273,
320,
31,
202,
5535,
42,
273,
312,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
14204,
52,
12,
780,
290,
16,
1525,
293,
16,
514,
320,
16,
1645,
312,
15329,
202,
529,
273,
290,
31,
202,
3276,
273,
293,
31,
202,
10012,
273,
320,
31,
202,
5535,
42,
273,
312,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.