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 |
|---|---|---|---|---|---|---|
monitorEnabled = context.getServlet().getInitParameter("monitor-enabled").equals("true");
|
value = context.getServlet().getInitParameter("monitor-enabled"); monitorEnabled = "true".equals(value);
|
protected void setupForRequest(RequestContext context) { ServletConfig config; super.setupForRequest(context); if (!initialized) { monitorEnabled = context.getServlet().getInitParameter("monitor-enabled").equals("true"); initialized = true; } try { // This needs to be extended to build a proper hit .. // with method & parameters. getSessionTracker(context).addHit(new ServerHit(context.getRequest())); } catch (RemoteException e) { throw new ApplicationRuntimeException("Unable to notify SessionTracker.", e); } }
|
4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/24f6533529e78473b6dbcd0e98158e44f783519c/DemoApplication.java/clean/examples/TapestryDemo/tests/tapestry/DemoApplication.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3875,
27649,
12,
21426,
819,
13,
202,
95,
202,
202,
4745,
809,
642,
31,
202,
202,
9565,
18,
8401,
27649,
12,
2472,
1769,
202,
202,
430,
16051,
13227,
13,
202,
202,
95,
1082,
202,
10259,
1526,
273,
819,
18,
588,
4745,
7675,
588,
2570,
1662,
2932,
10259,
17,
5745,
20387,
14963,
2932,
3767,
8863,
6862,
202,
13227,
273,
638,
31,
202,
202,
97,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
1220,
4260,
358,
506,
7021,
358,
1361,
279,
5338,
6800,
6116,
1082,
202,
759,
598,
707,
473,
1472,
18,
1082,
202,
588,
2157,
8135,
12,
2472,
2934,
1289,
13616,
12,
2704,
3224,
13616,
12,
2472,
18,
588,
691,
1435,
10019,
202,
202,
97,
202,
202,
14683,
261,
5169,
503,
425,
13,
202,
202,
95,
1082,
202,
12849,
394,
4257,
11949,
2932,
3370,
358,
5066,
3877,
8135,
1199,
16,
425,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3875,
27649,
12,
21426,
819,
13,
202,
95,
202,
202,
4745,
809,
642,
31,
202,
202,
9565,
18,
8401,
27649,
12,
2472,
1769,
202,
202,
430,
16051,
13227,
13,
202,
202,
95,
1082,
202,
10259,
1526,
273,
819,
18,
588,
4745,
7675,
588,
2570,
1662,
2932,
10259,
17,
5745,
20387,
14963,
2932,
3767,
8863,
6862,
202,
13227,
273,
638,
31,
202,
202,
97,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
1220,
4260,
358,
506,
7021,
358,
1361,
279,
5338,
6800,
6116,
1082,
202,
759,
598,
707,
473,
1472,
18,
1082,
202,
588,
2157,
8135,
12,
2472,
2934,
1289,
13616,
12,
2704,
3224,
13616,
12,
2472,
18,
588,
691,
1435,
10019,
202,
202,
97,
2
] |
catch(IllegalAccessException x)
|
catch (IllegalArgumentException _)
|
final void setFloatField(Object obj, float val) { try { field.setFloat(obj, val); } catch(IllegalAccessException x) { throw new InternalError(x.getMessage()); } }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/7175146abf61d5302002eac9791f35b481c4eb26/ObjectStreamField.java/clean/libraries/javalib/java/io/ObjectStreamField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
444,
4723,
974,
12,
921,
1081,
16,
1431,
1244,
13,
225,
288,
1377,
775,
1377,
288,
202,
225,
652,
18,
542,
4723,
12,
2603,
16,
1244,
1769,
1377,
289,
1377,
1044,
261,
31237,
389,
13,
1377,
288,
202,
225,
604,
394,
3186,
668,
12,
92,
18,
24906,
10663,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
918,
444,
4723,
974,
12,
921,
1081,
16,
1431,
1244,
13,
225,
288,
1377,
775,
1377,
288,
202,
225,
652,
18,
542,
4723,
12,
2603,
16,
1244,
1769,
1377,
289,
1377,
1044,
261,
31237,
389,
13,
1377,
288,
202,
225,
604,
394,
3186,
668,
12,
92,
18,
24906,
10663,
1377,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
width = innerSize.width;
|
height = minSize.height; comp.setSize(width, height); laidOut[index] = true; preferredHeightAll -= sz.height; heightRemain -= height; continue; } if (height > maxSize.height) { height = maxSize.height; comp.setSize(width, height); laidOut[index] = true; preferredHeightAll -= sz.height; heightRemain -= height; continue; } } heightFactor = (double) heightRemain / (double) preferredHeightAll; int y = insets.top; for (int index = 0; index < children.length; index++) { Component comp = children[index]; int height = 0; if (!laidOut[index]) { Dimension sz = comp.getPreferredSize(); Dimension maxSize = comp.getMaximumSize(); height = (int) (sz.height * heightFactor); int width = Math.min(innerSize.width, maxSize.width); comp.setSize(width, height);
|
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right, size.height - insets.bottom - insets.top); Component[] children = parent.getComponents(); if (isHorizontalIn(parent)) { int x = insets.left; for (int index = 0; index < children.length; index++) { Component comp = children[index]; Dimension sz = comp.getPreferredSize(); int width = sz.width; int height = sz.height; int cy = insets.top; if (height > innerSize.height) { height = innerSize.height; } else { cy = (int) ((innerSize.height - height) * comp.getAlignmentY()); } comp.setSize(width, height); comp.setLocation(x, cy); x = x + width; } } else { int y = insets.top; for (int index = 0; index < children.length; index++) { Component comp = children[index]; Dimension sz = comp.getPreferredSize(); int width = sz.width; int height = sz.height; int cx = insets.left; if (width > innerSize.width) { width = innerSize.width; } else { cx = (int) ((innerSize.width - width) * comp.getAlignmentX()); } comp.setSize(width, height); comp.setLocation(cx, y); y = y + height; } } }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/68494adc212dd4cc21b71473f0b07e220d0133f5/BoxLayout.java/clean/javax/swing/BoxLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
225,
288,
565,
309,
261,
2938,
480,
1478,
13,
1377,
604,
394,
432,
8588,
668,
2932,
5387,
982,
8863,
565,
13037,
963,
273,
982,
18,
588,
1225,
5621,
565,
22300,
23576,
273,
982,
18,
588,
382,
4424,
5621,
565,
13037,
17034,
273,
394,
13037,
12,
1467,
18,
2819,
300,
23576,
18,
4482,
4766,
3639,
300,
23576,
18,
4083,
16,
963,
18,
4210,
4766,
3639,
300,
23576,
18,
9176,
300,
23576,
18,
3669,
1769,
565,
5435,
8526,
2325,
273,
982,
18,
588,
7171,
5621,
565,
309,
261,
291,
14457,
382,
12,
2938,
3719,
1377,
288,
3639,
509,
619,
273,
23576,
18,
4482,
31,
3639,
364,
261,
474,
770,
273,
374,
31,
770,
411,
2325,
18,
2469,
31,
770,
27245,
1850,
288,
5411,
5435,
1161,
273,
2325,
63,
1615,
15533,
5411,
13037,
11262,
273,
1161,
18,
588,
16028,
1225,
5621,
5411,
509,
1835,
273,
11262,
18,
2819,
31,
5411,
509,
2072,
273,
11262,
18,
4210,
31,
5411,
509,
6143,
273,
23576,
18,
3669,
31,
5411,
309,
261,
4210,
405,
17034,
18,
4210,
13,
2868,
288,
7734,
2072,
273,
17034,
18,
4210,
31,
2868,
289,
5411,
469,
2868,
288,
7734,
6143,
273,
261,
474,
13,
14015,
7872,
1225,
18,
4210,
300,
2072,
13,
18701,
380,
1161,
18,
588,
11535,
61,
10663,
2868,
289,
13491,
1161,
18,
542,
1225,
12,
2819,
16,
2072,
1769,
5411,
1161,
18,
542,
2735,
12,
92,
16,
6143,
1769,
5411,
619,
273,
619,
397,
1835,
31,
8227,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
225,
288,
565,
309,
261,
2938,
480,
1478,
13,
1377,
604,
394,
432,
8588,
668,
2932,
5387,
982,
8863,
565,
13037,
963,
273,
982,
18,
588,
1225,
5621,
565,
22300,
23576,
273,
982,
18,
588,
382,
4424,
5621,
565,
13037,
17034,
273,
394,
13037,
12,
1467,
18,
2819,
300,
23576,
18,
4482,
4766,
3639,
300,
23576,
18,
4083,
16,
963,
18,
4210,
4766,
3639,
300,
23576,
18,
9176,
300,
23576,
18,
3669,
1769,
565,
5435,
8526,
2325,
273,
982,
18,
588,
7171,
5621,
565,
309,
261,
291,
14457,
382,
12,
2938,
3719,
1377,
288,
3639,
509,
619,
273,
23576,
18,
4482,
31,
3639,
364,
261,
474,
770,
273,
374,
31,
2
] |
public ScrollPaneUI() { }
|
public ScrollPaneUI() { }
|
public ScrollPaneUI() { // TODO } // ScrollPaneUI()
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0788b89b7368770a1157f825d60dd8c5a9df183e/ScrollPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/ScrollPaneUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
23134,
8485,
5370,
1435,
288,
202,
202,
759,
2660,
202,
97,
368,
23134,
8485,
5370,
1435,
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,
225,
202,
482,
23134,
8485,
5370,
1435,
288,
202,
202,
759,
2660,
202,
97,
368,
23134,
8485,
5370,
1435,
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
] |
myThread.beingDispatched = true; VM_Scheduler.deadQueue.enqueue(myThread);
|
VM_Scheduler.numActiveThreads += 1; if (isDaemon) VM_Scheduler.numDaemons += 1;
|
private static void startoff () { //VM_Scheduler.trace("VM_Thread", "startoff"); VM_Thread currentThread = getCurrentThread(); currentThread.run(); terminate(); if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); } /** * Terminate execution of current thread by abandoning all * references to it and * resuming execution in some other (ready) thread. */ static void terminate () { boolean terminateSystem = false; //VM_Scheduler.trace("VM_Thread", "terminate"); VM_Thread myThread = getCurrentThread(); // allow java.lang.Thread.exit() to remove this thread from ThreadGroup myThread.exit(); //-#if RVM_WITH_ADAPTIVE_SYSTEM if (VM.BuildForCpuMonitoring) VM_RuntimeMeasurements.monitorThreadExit();//-#endif synchronized (myThread) { // release anybody waiting on this thread - // begin critical section // VM_Scheduler.threadCreationMutex.lock(); VM_Processor.getCurrentProcessor().disableThreadSwitching(); // in particular, see java.lang.Thread.join() myThread.isAlive = false; myThread.notifyAll(); } // // if the thread terminated because of an exception, remove // the mark from the exception register object, or else the // garbage collector will attempt to relocate its ip field. myThread.hardwareExceptionRegisters.inuse = false; VM_Scheduler.numActiveThreads -= 1; if (myThread.isDaemon) VM_Scheduler.numDaemons -= 1; if (VM_Scheduler.numDaemons == VM_Scheduler.numActiveThreads) { // no non-daemon thread remains terminateSystem = true; } // end critical section // VM_Processor.getCurrentProcessor().enableThreadSwitching(); VM_Scheduler.threadCreationMutex.unlock(); if (VM.VerifyAssertions) VM.assert(VM_Processor.getCurrentProcessor().threadSwitchingEnabled()); if (terminateSystem) { VM.sysExit(0); if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); } //add Native Thread Virtual Processor to dead VP queue // check for native processor VM_Processor p = myThread.nativeAffinity; if ( p != null) { // put VP on dead queue VM_Scheduler.deadVPQueue.enqueue(p); myThread.nativeAffinity = null; // clear native processor myThread.processorAffinity = null; // clear processor affinity//-#if RVM_WITH_PURPLE_VPS VM_Processor.vpStatus[p.vpStatusIndex] = VM_Processor.RVM_VP_GOING_TO_WAIT;//-#endif } // become another thread // begin critical section // VM_Scheduler.threadCreationMutex.lock(); myThread.beingDispatched = true; VM_Scheduler.deadQueue.enqueue(myThread); VM_Scheduler.threadCreationMutex.unlock(); VM_Processor.getCurrentProcessor().dispatch(); if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); } /** * Get this thread's index in VM_Scheduler.threads[] */ public final int getIndex() { return threadSlot; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/72875807e0af65b96d907dc017316149c20087fb/VM_Thread.java/clean/rvm/src/vm/scheduler/VM_Thread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
787,
3674,
1832,
288,
225,
368,
7397,
67,
11870,
18,
5129,
2932,
7397,
67,
3830,
3113,
315,
1937,
3674,
8863,
565,
8251,
67,
3830,
11800,
273,
5175,
3830,
5621,
565,
11800,
18,
2681,
5621,
565,
10850,
5621,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
18,
11231,
12,
7397,
18,
4400,
67,
29416,
15023,
1769,
225,
289,
282,
1783,
282,
380,
23945,
4588,
434,
783,
2650,
635,
1223,
464,
22470,
777,
565,
380,
5351,
358,
518,
471,
282,
380,
400,
21249,
4588,
316,
2690,
1308,
261,
1672,
13,
2650,
18,
282,
1195,
282,
760,
918,
10850,
1832,
288,
565,
1250,
10850,
3163,
273,
629,
31,
565,
368,
7397,
67,
11870,
18,
5129,
2932,
7397,
67,
3830,
3113,
315,
30017,
8863,
565,
8251,
67,
3830,
3399,
3830,
273,
5175,
3830,
5621,
565,
368,
1699,
2252,
18,
4936,
18,
3830,
18,
8593,
1435,
358,
1206,
333,
2650,
628,
4884,
1114,
565,
3399,
3830,
18,
8593,
5621,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
1880,
37,
1856,
5354,
67,
14318,
565,
309,
261,
7397,
18,
3116,
1290,
22142,
18410,
13,
8251,
67,
5576,
7197,
1346,
18,
10259,
3830,
6767,
5621,
759,
17,
7,
409,
430,
565,
3852,
261,
4811,
3830,
13,
288,
368,
3992,
1281,
3432,
7336,
603,
333,
2650,
300,
225,
202,
759,
2376,
11239,
2442,
202,
759,
202,
7397,
67,
11870,
18,
5930,
9906,
11433,
18,
739,
5621,
202,
7397,
67,
5164,
18,
588,
3935,
5164,
7675,
8394,
3830,
10200,
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,
918,
787,
3674,
1832,
288,
225,
368,
7397,
67,
11870,
18,
5129,
2932,
7397,
67,
3830,
3113,
315,
1937,
3674,
8863,
565,
8251,
67,
3830,
11800,
273,
5175,
3830,
5621,
565,
11800,
18,
2681,
5621,
565,
10850,
5621,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
18,
11231,
12,
7397,
18,
4400,
67,
29416,
15023,
1769,
225,
289,
282,
1783,
282,
380,
23945,
4588,
434,
783,
2650,
635,
1223,
464,
22470,
777,
565,
380,
5351,
358,
518,
471,
282,
380,
400,
21249,
4588,
316,
2690,
1308,
261,
1672,
13,
2650,
18,
282,
1195,
282,
760,
918,
10850,
1832,
288,
565,
1250,
10850,
3163,
273,
629,
31,
565,
368,
7397,
67,
11870,
18,
5129,
2932,
2
] |
private void writeElement(XmlSchemaElement xsElt) throws SchemaCompilationException { if (this.processedElementMap.containsKey(xsElt.getQName())) { return; } XmlSchemaType schemaType = xsElt.getSchemaType(); if (schemaType != null) { BeanWriterMetaInfoHolder metainf = new BeanWriterMetaInfoHolder(); if (schemaType.getName() != null) { //this is a named type QName qName = schemaType.getQName(); //find the class name String className = findClassName(qName, isArray(xsElt)); //this means the schema type actually returns a different QName if (changedTypeMap.containsKey(qName)) { metainf.registerMapping(xsElt.getQName(), (QName) changedTypeMap.get(qName), className); } else { metainf.registerMapping(xsElt.getQName(), qName, className); } }else if (xsElt.getRefName()!= null){ // todo We need to handle the references here }else{ //we are going to special case the anonymous complex type. Our algorithm for dealing //with it is to generate a single object that has the complex content inside. Really the //intent of the user when he declares the complexType anonymously is to use it privately //First copy the schema types content into the metainf holder metainf = (BeanWriterMetaInfoHolder) this.processedAnonymousComplexTypesMap.get(xsElt); metainf.setAnonymous(true); } String writtenClassName = writer.write(xsElt, processedTypemap, metainf); processedElementMap.put(xsElt.getQName(), writtenClassName); } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9c218b4ecb82da054e5cc0830013ff38cff6216b/SchemaCompiler.java/clean/modules/codegen/src/org/apache/axis2/schema/SchemaCompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
28085,
12,
4432,
3078,
1046,
9280,
15899,
13,
1216,
4611,
19184,
503,
288,
3639,
309,
261,
2211,
18,
11005,
1046,
863,
18,
12298,
653,
12,
13713,
15899,
18,
588,
13688,
1435,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
5714,
3078,
559,
1963,
559,
273,
9280,
15899,
18,
588,
3078,
559,
5621,
3639,
309,
261,
4821,
559,
480,
446,
13,
288,
5411,
7704,
2289,
2781,
966,
6064,
5100,
530,
74,
273,
394,
7704,
2289,
2781,
966,
6064,
5621,
5411,
309,
261,
4821,
559,
18,
17994,
1435,
480,
446,
13,
288,
7734,
368,
2211,
353,
279,
4141,
618,
7734,
16723,
22914,
273,
1963,
559,
18,
588,
13688,
5621,
7734,
368,
4720,
326,
667,
508,
7734,
514,
2658,
273,
1104,
3834,
12,
85,
461,
16,
5439,
12,
13713,
15899,
10019,
7734,
368,
2211,
4696,
326,
1963,
618,
6013,
1135,
279,
3775,
16723,
7734,
309,
261,
6703,
23968,
18,
12298,
653,
12,
85,
461,
3719,
288,
10792,
5100,
530,
74,
18,
4861,
3233,
12,
13713,
15899,
18,
588,
13688,
9334,
18701,
261,
13688,
13,
3550,
23968,
18,
588,
12,
85,
461,
3631,
18701,
2658,
1769,
7734,
289,
469,
288,
10792,
5100,
530,
74,
18,
4861,
3233,
12,
13713,
15899,
18,
588,
13688,
9334,
18701,
22914,
16,
18701,
2658,
1769,
7734,
289,
5411,
289,
12107,
309,
261,
13713,
15899,
18,
588,
1957,
461,
1435,
5,
33,
446,
15329,
7734,
368,
10621,
1660,
1608,
358,
1640,
326,
5351,
2674,
5411,
289,
12107,
95,
7734,
368,
1814,
854,
8554,
358,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
28085,
12,
4432,
3078,
1046,
9280,
15899,
13,
1216,
4611,
19184,
503,
288,
3639,
309,
261,
2211,
18,
11005,
1046,
863,
18,
12298,
653,
12,
13713,
15899,
18,
588,
13688,
1435,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
5714,
3078,
559,
1963,
559,
273,
9280,
15899,
18,
588,
3078,
559,
5621,
3639,
309,
261,
4821,
559,
480,
446,
13,
288,
5411,
7704,
2289,
2781,
966,
6064,
5100,
530,
74,
273,
394,
7704,
2289,
2781,
966,
6064,
5621,
5411,
309,
261,
4821,
559,
18,
17994,
1435,
480,
446,
13,
288,
7734,
368,
2211,
353,
279,
4141,
618,
7734,
16723,
22914,
273,
1963,
559,
18,
588,
13688,
5621,
7734,
368,
4720,
326,
667,
508,
7734,
514,
2658,
2
] |
||
String hh[] = child_headers.getHeader("Content-Type"); String child_type = null; if (hh != null && hh.length != 0) { child_type = hh[0]; int i = child_type.indexOf(';'); if (i > 0) child_type = child_type.substring(0, i); child_type = child_type.trim(); } if (child_type != null) { openChild(child_type, child_headers); } else { openChild(defaultSubpartType(), child_headers);
|
String hh[] = child_headers.getHeader("Content-Type"); String child_type = null; if (hh != null && hh.length != 0) { child_type = hh[0]; int i = child_type.indexOf(';'); if (i > 0) child_type = child_type.substring(0, i); child_type = child_type.trim(); } if (child_type != null) { openChild(child_type, child_headers); } else { openChild(defaultSubpartType(), child_headers); }
|
protected void createMultipartChild() { String hh[] = child_headers.getHeader("Content-Type"); String child_type = null; if (hh != null && hh.length != 0) { child_type = hh[0]; // #### strip to first token int i = child_type.indexOf(';'); if (i > 0) child_type = child_type.substring(0, i); child_type = child_type.trim(); } if (child_type != null) { openChild(child_type, child_headers); } else { // If there was no content-type, assume text/plain -- null as a ct // would mean that we should do the auto-uudecode-hack, which we don't // ever want to do for subparts of a multipart (only for untyped // children of message/rfc822.) openChild(defaultSubpartType(), child_headers); } }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/0cc63cb388a13f01532486f9d178811914e6d71b/MimeMultipart.java/clean/grendel/sources/grendel/mime/parser/MimeMultipart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
12024,
1763,
1435,
288,
565,
514,
18629,
8526,
273,
1151,
67,
2485,
18,
588,
1864,
2932,
1350,
17,
559,
8863,
565,
514,
1151,
67,
723,
273,
446,
31,
565,
309,
261,
21622,
480,
446,
597,
18629,
18,
2469,
480,
374,
13,
288,
3639,
1151,
67,
723,
273,
18629,
63,
20,
15533,
3639,
368,
11849,
7,
2569,
358,
1122,
1147,
3639,
509,
277,
273,
1151,
67,
723,
18,
31806,
2668,
4359,
1769,
3639,
309,
261,
77,
405,
374,
13,
1850,
1151,
67,
723,
273,
1151,
67,
723,
18,
28023,
12,
20,
16,
277,
1769,
3639,
1151,
67,
723,
273,
1151,
67,
723,
18,
5290,
5621,
1377,
289,
565,
309,
261,
3624,
67,
723,
480,
446,
13,
288,
1377,
1696,
1763,
12,
3624,
67,
723,
16,
1151,
67,
2485,
1769,
565,
289,
469,
288,
1377,
368,
971,
1915,
1703,
1158,
913,
17,
723,
16,
6750,
977,
19,
7446,
1493,
446,
487,
279,
5691,
1377,
368,
4102,
3722,
716,
732,
1410,
741,
326,
3656,
17,
89,
1317,
710,
17,
76,
484,
16,
1492,
732,
2727,
1404,
1377,
368,
14103,
2545,
358,
741,
364,
720,
6019,
434,
279,
10263,
261,
3700,
364,
14385,
1377,
368,
2325,
434,
883,
19,
16784,
24532,
12998,
1377,
1696,
1763,
12,
1886,
1676,
2680,
559,
9334,
1151,
67,
2485,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
12024,
1763,
1435,
288,
565,
514,
18629,
8526,
273,
1151,
67,
2485,
18,
588,
1864,
2932,
1350,
17,
559,
8863,
565,
514,
1151,
67,
723,
273,
446,
31,
565,
309,
261,
21622,
480,
446,
597,
18629,
18,
2469,
480,
374,
13,
288,
3639,
1151,
67,
723,
273,
18629,
63,
20,
15533,
3639,
368,
11849,
7,
2569,
358,
1122,
1147,
3639,
509,
277,
273,
1151,
67,
723,
18,
31806,
2668,
4359,
1769,
3639,
309,
261,
77,
405,
374,
13,
1850,
1151,
67,
723,
273,
1151,
67,
723,
18,
28023,
12,
20,
16,
277,
1769,
3639,
1151,
67,
723,
273,
1151,
67,
723,
18,
5290,
5621,
1377,
289,
565,
309,
261,
3624,
67,
723,
480,
446,
13,
2
] |
public void visitNilNode(Node iVisited) { visit(iVisited); leave(iVisited); }
|
public void visitNilNode(Node iVisited) { visit(iVisited); leave(iVisited); }
|
public void visitNilNode(Node iVisited) { visit(iVisited); leave(iVisited); }
|
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
12616,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
19574,
12,
77,
30019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
12616,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
19574,
12,
77,
30019,
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
] |
oid.set(p.getName(), get(p));
|
if (value != null) { oid.set(p.getName(), value); }
|
OID load(Session ssn) { Collection paths = m_signature.getPaths(); ObjectType type = m_signature.getObjectType(); HashMap oids = new HashMap(); // First load up the OIDs. for (Iterator it = paths.iterator(); it.hasNext(); ) { Path p = (Path) it.next(); Path parent = p.getParent(); if (type.isKey(p)) { OID oid; if (oids.containsKey(parent)) { oid = (OID) oids.get(parent); } else { if (parent == null) { oid = new OID(type); } else { oid = new OID(type.getType(parent)); } oids.put(parent, oid); } oid.set(p.getName(), get(p)); } } // Now load up the values. for (Iterator it = paths.iterator(); it.hasNext(); ) { Path p = (Path) it.next(); Path parent = p.getParent(); OID oid = (OID) oids.get(parent); if (!oid.isInitialized()) { throw new IllegalStateException ("Query does not fetch OID values."); } Property prop = oid.getObjectType().getProperty(p.getName()); if (type.isKey(p)) { ssn.load(oid, prop, oid.get(p.getName())); } else { ssn.load(oid, prop, get(p)); } } return (OID) oids.get(null); }
|
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/06524e66caab8614526529af728b94c4ba46e813/RecordSet.java/buggy/archive/proto/src/com/arsdigita/persistence/proto/RecordSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
18026,
1262,
12,
2157,
5202,
82,
13,
288,
3639,
2200,
2953,
273,
312,
67,
8195,
18,
588,
4466,
5621,
3639,
21338,
618,
273,
312,
67,
8195,
18,
588,
17610,
5621,
3639,
4317,
26629,
273,
394,
4317,
5621,
3639,
368,
5783,
1262,
731,
326,
531,
5103,
18,
3639,
364,
261,
3198,
518,
273,
2953,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
5411,
2666,
293,
273,
261,
743,
13,
518,
18,
4285,
5621,
5411,
2666,
982,
273,
293,
18,
588,
3054,
5621,
5411,
309,
261,
723,
18,
291,
653,
12,
84,
3719,
288,
7734,
18026,
7764,
31,
7734,
309,
261,
21061,
18,
12298,
653,
12,
2938,
3719,
288,
10792,
7764,
273,
261,
12945,
13,
26629,
18,
588,
12,
2938,
1769,
7734,
289,
469,
288,
10792,
309,
261,
2938,
422,
446,
13,
288,
13491,
7764,
273,
394,
18026,
12,
723,
1769,
10792,
289,
469,
288,
13491,
7764,
273,
394,
18026,
12,
723,
18,
588,
559,
12,
2938,
10019,
10792,
289,
10792,
26629,
18,
458,
12,
2938,
16,
7764,
1769,
7734,
289,
7734,
309,
261,
1132,
480,
446,
13,
288,
7764,
18,
542,
12,
84,
18,
17994,
9334,
460,
1769,
289,
5411,
289,
3639,
289,
3639,
368,
4494,
1262,
731,
326,
924,
18,
3639,
364,
261,
3198,
518,
273,
2953,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
5411,
2666,
293,
273,
261,
743,
13,
518,
18,
4285,
5621,
5411,
2666,
982,
273,
293,
18,
588,
3054,
5621,
5411,
18026,
7764,
273,
261,
12945,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
18026,
1262,
12,
2157,
5202,
82,
13,
288,
3639,
2200,
2953,
273,
312,
67,
8195,
18,
588,
4466,
5621,
3639,
21338,
618,
273,
312,
67,
8195,
18,
588,
17610,
5621,
3639,
4317,
26629,
273,
394,
4317,
5621,
3639,
368,
5783,
1262,
731,
326,
531,
5103,
18,
3639,
364,
261,
3198,
518,
273,
2953,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
5411,
2666,
293,
273,
261,
743,
13,
518,
18,
4285,
5621,
5411,
2666,
982,
273,
293,
18,
588,
3054,
5621,
5411,
309,
261,
723,
18,
291,
653,
12,
84,
3719,
288,
7734,
18026,
7764,
31,
7734,
309,
261,
21061,
18,
12298,
653,
12,
2938,
3719,
288,
10792,
7764,
273,
261,
12945,
13,
26629,
18,
588,
2
] |
private int getJSPTypeForRegion(ITextRegion region) { String regionType = region.getType(); int type = SCRIPTLET; if (regionType == XMLJSPRegionContexts.JSP_SCRIPTLET_OPEN) type = SCRIPTLET; else if (regionType == XMLJSPRegionContexts.JSP_EXPRESSION_OPEN) type = EXPRESSION; else if (regionType == XMLJSPRegionContexts.JSP_DECLARATION_OPEN) type = DECLARATION; else if (regionType == XMLJSPRegionContexts.JSP_CONTENT) type = fLastJSPType; // remember the last type, in case the next type that comes in is JSP_CONTENT fLastJSPType = type; return type; }
|
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/2e01915a5c78fe7220591d5dfc6ebf923eaed5f2/JSPTranslator.java/buggy/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
225,
509,
225,
9285,
3118,
559,
1290,
5165,
12,
1285,
408,
5165,
225,
3020,
13,
225,
288,
202,
202,
780,
225,
3020,
559,
225,
273,
225,
3020,
18,
588,
559,
5621,
202,
202,
474,
225,
618,
225,
273,
225,
22812,
15146,
31,
202,
202,
430,
225,
261,
6858,
559,
225,
422,
225,
3167,
46,
3118,
5165,
15518,
18,
46,
3118,
67,
10885,
15146,
67,
11437,
13,
1082,
202,
723,
225,
273,
225,
22812,
15146,
31,
202,
202,
12107,
225,
309,
225,
261,
6858,
559,
225,
422,
225,
3167,
46,
3118,
5165,
15518,
18,
46,
3118,
67,
19111,
67,
11437,
13,
1082,
202,
723,
225,
273,
225,
5675,
14227,
31,
202,
202,
12107,
225,
309,
225,
261,
6858,
559,
225,
422,
225,
3167,
46,
3118,
5165,
15518,
18,
46,
3118,
67,
23956,
985,
2689,
67,
11437,
13,
1082,
202,
723,
225,
273,
225,
2030,
5017,
985,
2689,
31,
202,
202,
12107,
225,
309,
225,
261,
6858,
559,
225,
422,
225,
3167,
46,
3118,
5165,
15518,
18,
46,
3118,
67,
9689,
13,
1082,
202,
723,
225,
273,
225,
284,
3024,
46,
3118,
559,
31,
202,
202,
759,
225,
11586,
225,
326,
225,
1142,
225,
618,
16,
225,
316,
225,
648,
225,
326,
225,
1024,
225,
618,
225,
716,
225,
14535,
225,
316,
225,
353,
225,
804,
3118,
67,
9689,
202,
202,
74,
3024,
46,
3118,
559,
225,
273,
225,
618,
31,
202,
202,
2463,
225,
618,
31,
202,
97,
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,
225,
202,
1152,
225,
509,
225,
9285,
3118,
559,
1290,
5165,
12,
1285,
408,
5165,
225,
3020,
13,
225,
288,
202,
202,
780,
225,
3020,
559,
225,
273,
225,
3020,
18,
588,
559,
5621,
202,
202,
474,
225,
618,
225,
273,
225,
22812,
15146,
31,
202,
202,
430,
225,
261,
6858,
559,
225,
422,
225,
3167,
46,
3118,
5165,
15518,
18,
46,
3118,
67,
10885,
15146,
67,
11437,
13,
1082,
202,
723,
225,
273,
225,
22812,
15146,
31,
202,
202,
12107,
225,
309,
225,
261,
6858,
559,
225,
422,
225,
3167,
46,
3118,
5165,
15518,
18,
46,
3118,
67,
19111,
67,
11437,
13,
1082,
202,
723,
225,
273,
225,
5675,
14227,
31,
202,
202,
12107,
225,
309,
225,
261,
2
] |
||
public void ExecuteProcedure() {
|
public void ExecuteProcedure() { /* Not executing in the context of an object! */ runtime.Interpreter i = new Interpreter(null);
|
public void ExecuteProcedure() { try{ I.interpret(p, d); } catch(LemRuntimeException e) { System.out.println(e); } }
|
10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/deaf39f5fd53e602ee119c0e78ba328efa14917e/guiLogging.java/clean/trunk/src/mockups/guiLogging.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7903,
17213,
1435,
288,
282,
1748,
2288,
11274,
316,
326,
819,
434,
392,
733,
5,
1195,
3099,
18,
30010,
277,
273,
394,
5294,
11599,
12,
2011,
1769,
3639,
775,
95,
5411,
467,
18,
24713,
12,
84,
16,
302,
1769,
3639,
289,
1044,
12,
48,
351,
11949,
425,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
73,
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,
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,
1071,
918,
7903,
17213,
1435,
288,
282,
1748,
2288,
11274,
316,
326,
819,
434,
392,
733,
5,
1195,
3099,
18,
30010,
277,
273,
394,
5294,
11599,
12,
2011,
1769,
3639,
775,
95,
5411,
467,
18,
24713,
12,
84,
16,
302,
1769,
3639,
289,
1044,
12,
48,
351,
11949,
425,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
73,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void waitForWakeup(long l) { //System.out.println("GOing into wait "+transactionID); //System.out.flush(); synchronized (this) { try { this.wait(l-System.currentTimeMillis()); } catch (InterruptedException e) { e.printStackTrace(); } } //System.out.println("Coming out of wait "+transactionID); //System.out.flush(); }
|
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/2047398952dc1a021679c3c4d8acc712f50310a8/TSOTransaction.java/buggy/src/com/sun/gi/objectstore/tso/TSOTransaction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
10712,
59,
911,
416,
12,
5748,
328,
13,
288,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
16387,
310,
1368,
2529,
13773,
7958,
734,
1769,
202,
202,
759,
3163,
18,
659,
18,
11330,
5621,
202,
202,
22043,
261,
2211,
13,
288,
1082,
202,
698,
288,
6862,
9506,
202,
2211,
18,
7048,
12,
80,
17,
3163,
18,
2972,
28512,
10663,
6862,
1082,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
9506,
202,
73,
18,
1188,
6332,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
799,
310,
596,
434,
2529,
13773,
7958,
734,
1769,
202,
202,
759,
3163,
18,
659,
18,
11330,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
10712,
59,
911,
416,
12,
5748,
328,
13,
288,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
16387,
310,
1368,
2529,
13773,
7958,
734,
1769,
202,
202,
759,
3163,
18,
659,
18,
11330,
5621,
202,
202,
22043,
261,
2211,
13,
288,
1082,
202,
698,
288,
6862,
9506,
202,
2211,
18,
7048,
12,
80,
17,
3163,
18,
2972,
28512,
10663,
6862,
1082,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
9506,
202,
73,
18,
1188,
6332,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
799,
310,
596,
434,
2529,
13773,
7958,
734,
1769,
202,
202,
759,
3163,
18,
659,
18,
11330,
5621,
202,
97,
2,
-100,
-100
] |
||
public LimitedScannerContext(Scanner scanner, Reader reader, String string, ContextKind kind, int offsetLimit) {
|
public LimitedScannerContext(Scanner scanner, Reader reader, String string, int kind, int offsetLimit) {
|
public LimitedScannerContext(Scanner scanner, Reader reader, String string, ContextKind kind, int offsetLimit) { super( reader, string, kind, null ); this.scanner = scanner; limit = offsetLimit; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0ce4a707ab7219e9ddb15141d8f4a4ce46d3ee2a/LimitedScannerContext.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LimitedScannerContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7214,
329,
11338,
1042,
12,
11338,
7683,
16,
5393,
2949,
16,
514,
533,
16,
1772,
5677,
3846,
16,
509,
1384,
3039,
13,
288,
202,
202,
9565,
12,
2949,
16,
533,
16,
3846,
16,
446,
11272,
202,
202,
2211,
18,
26842,
273,
7683,
31,
202,
202,
3595,
273,
1384,
3039,
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,
7214,
329,
11338,
1042,
12,
11338,
7683,
16,
5393,
2949,
16,
514,
533,
16,
1772,
5677,
3846,
16,
509,
1384,
3039,
13,
288,
202,
202,
9565,
12,
2949,
16,
533,
16,
3846,
16,
446,
11272,
202,
202,
2211,
18,
26842,
273,
7683,
31,
202,
202,
3595,
273,
1384,
3039,
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
] |
(new com.ibm.math.DiagBigDecimal.Test("sub001")).ok=((new com.ibm.math.BigDecimal(2)).subtract(new com.ibm.math.BigDecimal(3)).toString()).equals("-1"); (new com.ibm.math.DiagBigDecimal.Test("sub002")).ok=((new com.ibm.math.BigDecimal("5.75")).subtract(new com.ibm.math.BigDecimal("3.3")).toString()).equals("2.45"); (new com.ibm.math.DiagBigDecimal.Test("sub003")).ok=((new com.ibm.math.BigDecimal("5")).subtract(new com.ibm.math.BigDecimal("-3")).toString()).equals("8"); (new com.ibm.math.DiagBigDecimal.Test("sub004")).ok=((new com.ibm.math.BigDecimal("-5")).subtract(new com.ibm.math.BigDecimal("-3")).toString()).equals("-2"); (new com.ibm.math.DiagBigDecimal.Test("sub005")).ok=((new com.ibm.math.BigDecimal("-7")).subtract(new com.ibm.math.BigDecimal("2.5")).toString()).equals("-9.5"); (new com.ibm.math.DiagBigDecimal.Test("sub006")).ok=((new com.ibm.math.BigDecimal("0.7")).subtract(new com.ibm.math.BigDecimal("0.3")).toString()).equals("0.4"); (new com.ibm.math.DiagBigDecimal.Test("sub007")).ok=((new com.ibm.math.BigDecimal("1.3")).subtract(new com.ibm.math.BigDecimal("0.3")).toString()).equals("1.0"); (new com.ibm.math.DiagBigDecimal.Test("sub008")).ok=((new com.ibm.math.BigDecimal("1.25")).subtract(new com.ibm.math.BigDecimal("1.25")).toString()).equals("0.00"); (new com.ibm.math.DiagBigDecimal.Test("sub009")).ok=((new com.ibm.math.BigDecimal("0.02")).subtract(new com.ibm.math.BigDecimal("0.02")).toString()).equals("0.00"); (new com.ibm.math.DiagBigDecimal.Test("sub010")).ok=((new com.ibm.math.BigDecimal("1.23456789")).subtract(new com.ibm.math.BigDecimal("1.00000000")).toString()).equals("0.23456789"); (new com.ibm.math.DiagBigDecimal.Test("sub011")).ok=((new com.ibm.math.BigDecimal("1.23456789")).subtract(new com.ibm.math.BigDecimal("1.00000089")).toString()).equals("0.23456700"); (new com.ibm.math.DiagBigDecimal.Test("sub012")).ok=((new com.ibm.math.BigDecimal("0.5555555559")).subtract(new com.ibm.math.BigDecimal("0.0000000001")).toString()).equals("0.5555555558"); (new com.ibm.math.DiagBigDecimal.Test("sub013")).ok=((new com.ibm.math.BigDecimal("0.5555555559")).subtract(new com.ibm.math.BigDecimal("0.0000000005")).toString()).equals("0.5555555554"); (new com.ibm.math.DiagBigDecimal.Test("sub014")).ok=((new com.ibm.math.BigDecimal("0.4444444444")).subtract(new com.ibm.math.BigDecimal("0.1111111111")).toString()).equals("0.3333333333"); (new com.ibm.math.DiagBigDecimal.Test("sub015")).ok=((new com.ibm.math.BigDecimal("1.0000000000")).subtract(new com.ibm.math.BigDecimal("0.00000001")).toString()).equals("0.9999999900"); (new com.ibm.math.DiagBigDecimal.Test("sub016")).ok=((new com.ibm.math.BigDecimal("0.4444444444999")).subtract(new com.ibm.math.BigDecimal("0")).toString()).equals("0.4444444444999"); (new com.ibm.math.DiagBigDecimal.Test("sub017")).ok=((new com.ibm.math.BigDecimal("0.4444444445000")).subtract(new com.ibm.math.BigDecimal("0")).toString()).equals("0.4444444445000"); (new com.ibm.math.DiagBigDecimal.Test("sub018")).ok=((new com.ibm.math.BigDecimal("70")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999999930"); (new com.ibm.math.DiagBigDecimal.Test("sub019")).ok=((new com.ibm.math.BigDecimal("700")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999999300"); (new com.ibm.math.DiagBigDecimal.Test("sub020")).ok=((new com.ibm.math.BigDecimal("7000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999993000"); (new com.ibm.math.DiagBigDecimal.Test("sub021")).ok=((new com.ibm.math.BigDecimal("70000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999930000"); (new com.ibm.math.DiagBigDecimal.Test("sub022")).ok=((new com.ibm.math.BigDecimal("700000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999300000");
|
(new Test("sub001")).ok=((new com.ibm.math.BigDecimal(2)).subtract(new com.ibm.math.BigDecimal(3)).toString()).equals("-1"); (new Test("sub002")).ok=((new com.ibm.math.BigDecimal("5.75")).subtract(new com.ibm.math.BigDecimal("3.3")).toString()).equals("2.45"); (new Test("sub003")).ok=((new com.ibm.math.BigDecimal("5")).subtract(new com.ibm.math.BigDecimal("-3")).toString()).equals("8"); (new Test("sub004")).ok=((new com.ibm.math.BigDecimal("-5")).subtract(new com.ibm.math.BigDecimal("-3")).toString()).equals("-2"); (new Test("sub005")).ok=((new com.ibm.math.BigDecimal("-7")).subtract(new com.ibm.math.BigDecimal("2.5")).toString()).equals("-9.5"); (new Test("sub006")).ok=((new com.ibm.math.BigDecimal("0.7")).subtract(new com.ibm.math.BigDecimal("0.3")).toString()).equals("0.4"); (new Test("sub007")).ok=((new com.ibm.math.BigDecimal("1.3")).subtract(new com.ibm.math.BigDecimal("0.3")).toString()).equals("1.0"); (new Test("sub008")).ok=((new com.ibm.math.BigDecimal("1.25")).subtract(new com.ibm.math.BigDecimal("1.25")).toString()).equals("0.00"); (new Test("sub009")).ok=((new com.ibm.math.BigDecimal("0.02")).subtract(new com.ibm.math.BigDecimal("0.02")).toString()).equals("0.00"); (new Test("sub010")).ok=((new com.ibm.math.BigDecimal("1.23456789")).subtract(new com.ibm.math.BigDecimal("1.00000000")).toString()).equals("0.23456789"); (new Test("sub011")).ok=((new com.ibm.math.BigDecimal("1.23456789")).subtract(new com.ibm.math.BigDecimal("1.00000089")).toString()).equals("0.23456700"); (new Test("sub012")).ok=((new com.ibm.math.BigDecimal("0.5555555559")).subtract(new com.ibm.math.BigDecimal("0.0000000001")).toString()).equals("0.5555555558"); (new Test("sub013")).ok=((new com.ibm.math.BigDecimal("0.5555555559")).subtract(new com.ibm.math.BigDecimal("0.0000000005")).toString()).equals("0.5555555554"); (new Test("sub014")).ok=((new com.ibm.math.BigDecimal("0.4444444444")).subtract(new com.ibm.math.BigDecimal("0.1111111111")).toString()).equals("0.3333333333"); (new Test("sub015")).ok=((new com.ibm.math.BigDecimal("1.0000000000")).subtract(new com.ibm.math.BigDecimal("0.00000001")).toString()).equals("0.9999999900"); (new Test("sub016")).ok=((new com.ibm.math.BigDecimal("0.4444444444999")).subtract(new com.ibm.math.BigDecimal("0")).toString()).equals("0.4444444444999"); (new Test("sub017")).ok=((new com.ibm.math.BigDecimal("0.4444444445000")).subtract(new com.ibm.math.BigDecimal("0")).toString()).equals("0.4444444445000"); (new Test("sub018")).ok=((new com.ibm.math.BigDecimal("70")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999999930"); (new Test("sub019")).ok=((new com.ibm.math.BigDecimal("700")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999999300"); (new Test("sub020")).ok=((new com.ibm.math.BigDecimal("7000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999993000"); (new Test("sub021")).ok=((new com.ibm.math.BigDecimal("70000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999930000"); (new Test("sub022")).ok=((new com.ibm.math.BigDecimal("700000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999300000");
|
public void diagsubtract(){ boolean flag=false; com.ibm.math.BigDecimal alhs; com.ibm.math.BigDecimal arhs; java.lang.ArithmeticException ae=null; // [first group are 'quick confidence check'] (new com.ibm.math.DiagBigDecimal.Test("sub301")).ok=((new com.ibm.math.BigDecimal(2)).subtract(new com.ibm.math.BigDecimal(3),mcdef).toString()).equals("-1"); (new com.ibm.math.DiagBigDecimal.Test("sub302")).ok=((new com.ibm.math.BigDecimal("5.75")).subtract(new com.ibm.math.BigDecimal("3.3"),mcdef).toString()).equals("2.45"); (new com.ibm.math.DiagBigDecimal.Test("sub303")).ok=((new com.ibm.math.BigDecimal("5")).subtract(new com.ibm.math.BigDecimal("-3"),mcdef).toString()).equals("8"); (new com.ibm.math.DiagBigDecimal.Test("sub304")).ok=((new com.ibm.math.BigDecimal("-5")).subtract(new com.ibm.math.BigDecimal("-3"),mcdef).toString()).equals("-2"); (new com.ibm.math.DiagBigDecimal.Test("sub305")).ok=((new com.ibm.math.BigDecimal("-7")).subtract(new com.ibm.math.BigDecimal("2.5"),mcdef).toString()).equals("-9.5"); (new com.ibm.math.DiagBigDecimal.Test("sub306")).ok=((new com.ibm.math.BigDecimal("0.7")).subtract(new com.ibm.math.BigDecimal("0.3"),mcdef).toString()).equals("0.4"); (new com.ibm.math.DiagBigDecimal.Test("sub307")).ok=((new com.ibm.math.BigDecimal("1.3")).subtract(new com.ibm.math.BigDecimal("0.3"),mcdef).toString()).equals("1.0"); (new com.ibm.math.DiagBigDecimal.Test("sub308")).ok=((new com.ibm.math.BigDecimal("1.25")).subtract(new com.ibm.math.BigDecimal("1.25"),mcdef).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("sub309")).ok=((new com.ibm.math.BigDecimal("1.23456789")).subtract(new com.ibm.math.BigDecimal("1.00000000"),mcdef).toString()).equals("0.23456789"); (new com.ibm.math.DiagBigDecimal.Test("sub310")).ok=((new com.ibm.math.BigDecimal("1.23456789")).subtract(new com.ibm.math.BigDecimal("1.00000089"),mcdef).toString()).equals("0.23456700"); (new com.ibm.math.DiagBigDecimal.Test("sub311")).ok=((new com.ibm.math.BigDecimal("0.5555555559")).subtract(new com.ibm.math.BigDecimal("0.0000000001"),mcdef).toString()).equals("0.555555556"); (new com.ibm.math.DiagBigDecimal.Test("sub312")).ok=((new com.ibm.math.BigDecimal("0.5555555559")).subtract(new com.ibm.math.BigDecimal("0.0000000005"),mcdef).toString()).equals("0.555555556"); (new com.ibm.math.DiagBigDecimal.Test("sub313")).ok=((new com.ibm.math.BigDecimal("0.4444444444")).subtract(new com.ibm.math.BigDecimal("0.1111111111"),mcdef).toString()).equals("0.333333333"); (new com.ibm.math.DiagBigDecimal.Test("sub314")).ok=((new com.ibm.math.BigDecimal("1.0000000000")).subtract(new com.ibm.math.BigDecimal("0.00000001"),mcdef).toString()).equals("0.99999999"); (new com.ibm.math.DiagBigDecimal.Test("sub315")).ok=((new com.ibm.math.BigDecimal("0.4444444444999")).subtract(new com.ibm.math.BigDecimal("0"),mcdef).toString()).equals("0.444444444"); (new com.ibm.math.DiagBigDecimal.Test("sub316")).ok=((new com.ibm.math.BigDecimal("0.4444444445000")).subtract(new com.ibm.math.BigDecimal("0"),mcdef).toString()).equals("0.444444445"); (new com.ibm.math.DiagBigDecimal.Test("sub317")).ok=((new com.ibm.math.BigDecimal("70")).subtract(new com.ibm.math.BigDecimal("10000e+9"),mcdef).toString()).equals("-1.00000000E+13"); (new com.ibm.math.DiagBigDecimal.Test("sub318")).ok=((new com.ibm.math.BigDecimal("700")).subtract(new com.ibm.math.BigDecimal("10000e+9"),mcdef).toString()).equals("-1.00000000E+13"); (new com.ibm.math.DiagBigDecimal.Test("sub319")).ok=((new com.ibm.math.BigDecimal("7000")).subtract(new com.ibm.math.BigDecimal("10000e+9"),mcdef).toString()).equals("-1.00000000E+13"); (new com.ibm.math.DiagBigDecimal.Test("sub320")).ok=((new com.ibm.math.BigDecimal("70000")).subtract(new com.ibm.math.BigDecimal("10000e+9"),mcdef).toString()).equals("-9.9999999E+12"); (new com.ibm.math.DiagBigDecimal.Test("sub321")).ok=((new com.ibm.math.BigDecimal("700000")).subtract(new com.ibm.math.BigDecimal("10000e+9"),mcdef).toString()).equals("-9.9999993E+12"); // symmetry: (new com.ibm.math.DiagBigDecimal.Test("sub322")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("70"),mcdef).toString()).equals("1.00000000E+13"); (new com.ibm.math.DiagBigDecimal.Test("sub323")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("700"),mcdef).toString()).equals("1.00000000E+13"); (new com.ibm.math.DiagBigDecimal.Test("sub324")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("7000"),mcdef).toString()).equals("1.00000000E+13"); (new com.ibm.math.DiagBigDecimal.Test("sub325")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("70000"),mcdef).toString()).equals("9.9999999E+12"); (new com.ibm.math.DiagBigDecimal.Test("sub326")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("700000"),mcdef).toString()).equals("9.9999993E+12"); // [same with fixed point arithmetic] (new com.ibm.math.DiagBigDecimal.Test("sub001")).ok=((new com.ibm.math.BigDecimal(2)).subtract(new com.ibm.math.BigDecimal(3)).toString()).equals("-1"); (new com.ibm.math.DiagBigDecimal.Test("sub002")).ok=((new com.ibm.math.BigDecimal("5.75")).subtract(new com.ibm.math.BigDecimal("3.3")).toString()).equals("2.45"); (new com.ibm.math.DiagBigDecimal.Test("sub003")).ok=((new com.ibm.math.BigDecimal("5")).subtract(new com.ibm.math.BigDecimal("-3")).toString()).equals("8"); (new com.ibm.math.DiagBigDecimal.Test("sub004")).ok=((new com.ibm.math.BigDecimal("-5")).subtract(new com.ibm.math.BigDecimal("-3")).toString()).equals("-2"); (new com.ibm.math.DiagBigDecimal.Test("sub005")).ok=((new com.ibm.math.BigDecimal("-7")).subtract(new com.ibm.math.BigDecimal("2.5")).toString()).equals("-9.5"); (new com.ibm.math.DiagBigDecimal.Test("sub006")).ok=((new com.ibm.math.BigDecimal("0.7")).subtract(new com.ibm.math.BigDecimal("0.3")).toString()).equals("0.4"); (new com.ibm.math.DiagBigDecimal.Test("sub007")).ok=((new com.ibm.math.BigDecimal("1.3")).subtract(new com.ibm.math.BigDecimal("0.3")).toString()).equals("1.0"); (new com.ibm.math.DiagBigDecimal.Test("sub008")).ok=((new com.ibm.math.BigDecimal("1.25")).subtract(new com.ibm.math.BigDecimal("1.25")).toString()).equals("0.00"); (new com.ibm.math.DiagBigDecimal.Test("sub009")).ok=((new com.ibm.math.BigDecimal("0.02")).subtract(new com.ibm.math.BigDecimal("0.02")).toString()).equals("0.00"); (new com.ibm.math.DiagBigDecimal.Test("sub010")).ok=((new com.ibm.math.BigDecimal("1.23456789")).subtract(new com.ibm.math.BigDecimal("1.00000000")).toString()).equals("0.23456789"); (new com.ibm.math.DiagBigDecimal.Test("sub011")).ok=((new com.ibm.math.BigDecimal("1.23456789")).subtract(new com.ibm.math.BigDecimal("1.00000089")).toString()).equals("0.23456700"); (new com.ibm.math.DiagBigDecimal.Test("sub012")).ok=((new com.ibm.math.BigDecimal("0.5555555559")).subtract(new com.ibm.math.BigDecimal("0.0000000001")).toString()).equals("0.5555555558"); (new com.ibm.math.DiagBigDecimal.Test("sub013")).ok=((new com.ibm.math.BigDecimal("0.5555555559")).subtract(new com.ibm.math.BigDecimal("0.0000000005")).toString()).equals("0.5555555554"); (new com.ibm.math.DiagBigDecimal.Test("sub014")).ok=((new com.ibm.math.BigDecimal("0.4444444444")).subtract(new com.ibm.math.BigDecimal("0.1111111111")).toString()).equals("0.3333333333"); (new com.ibm.math.DiagBigDecimal.Test("sub015")).ok=((new com.ibm.math.BigDecimal("1.0000000000")).subtract(new com.ibm.math.BigDecimal("0.00000001")).toString()).equals("0.9999999900"); (new com.ibm.math.DiagBigDecimal.Test("sub016")).ok=((new com.ibm.math.BigDecimal("0.4444444444999")).subtract(new com.ibm.math.BigDecimal("0")).toString()).equals("0.4444444444999"); (new com.ibm.math.DiagBigDecimal.Test("sub017")).ok=((new com.ibm.math.BigDecimal("0.4444444445000")).subtract(new com.ibm.math.BigDecimal("0")).toString()).equals("0.4444444445000"); (new com.ibm.math.DiagBigDecimal.Test("sub018")).ok=((new com.ibm.math.BigDecimal("70")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999999930"); (new com.ibm.math.DiagBigDecimal.Test("sub019")).ok=((new com.ibm.math.BigDecimal("700")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999999300"); (new com.ibm.math.DiagBigDecimal.Test("sub020")).ok=((new com.ibm.math.BigDecimal("7000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999993000"); (new com.ibm.math.DiagBigDecimal.Test("sub021")).ok=((new com.ibm.math.BigDecimal("70000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999930000"); (new com.ibm.math.DiagBigDecimal.Test("sub022")).ok=((new com.ibm.math.BigDecimal("700000")).subtract(new com.ibm.math.BigDecimal("10000e+9")).toString()).equals("-9999999300000"); // symmetry: (new com.ibm.math.DiagBigDecimal.Test("sub023")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("70")).toString()).equals("9999999999930"); (new com.ibm.math.DiagBigDecimal.Test("sub024")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("700")).toString()).equals("9999999999300"); (new com.ibm.math.DiagBigDecimal.Test("sub025")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("7000")).toString()).equals("9999999993000"); (new com.ibm.math.DiagBigDecimal.Test("sub026")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("70000")).toString()).equals("9999999930000"); (new com.ibm.math.DiagBigDecimal.Test("sub027")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("700000")).toString()).equals("9999999300000"); // MC (new com.ibm.math.DiagBigDecimal.Test("sub030")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("70000"),mcdef).toString()).equals("9.9999999E+12"); (new com.ibm.math.DiagBigDecimal.Test("sub031")).ok=((new com.ibm.math.BigDecimal("10000e+9")).subtract(new com.ibm.math.BigDecimal("70000"),mc6).toString()).equals("1.00000E+13"); // some of the next group are really constructor tests (new com.ibm.math.DiagBigDecimal.Test("sub040")).ok=((new com.ibm.math.BigDecimal("00.0")).subtract(new com.ibm.math.BigDecimal("0.0")).toString()).equals("0.0"); (new com.ibm.math.DiagBigDecimal.Test("sub041")).ok=((new com.ibm.math.BigDecimal("00.0")).subtract(new com.ibm.math.BigDecimal("0.00")).toString()).equals("0.00"); (new com.ibm.math.DiagBigDecimal.Test("sub042")).ok=((new com.ibm.math.BigDecimal("0.00")).subtract(new com.ibm.math.BigDecimal("00.0")).toString()).equals("0.00"); (new com.ibm.math.DiagBigDecimal.Test("sub043")).ok=((new com.ibm.math.BigDecimal("00.0")).subtract(new com.ibm.math.BigDecimal("0.00"),mcdef).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("sub044")).ok=((new com.ibm.math.BigDecimal("0.00")).subtract(new com.ibm.math.BigDecimal("00.0"),mcdef).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("sub045")).ok=((new com.ibm.math.BigDecimal("3")).subtract(new com.ibm.math.BigDecimal(".3"),mcdef).toString()).equals("2.7"); (new com.ibm.math.DiagBigDecimal.Test("sub046")).ok=((new com.ibm.math.BigDecimal("3.")).subtract(new com.ibm.math.BigDecimal(".3"),mcdef).toString()).equals("2.7"); (new com.ibm.math.DiagBigDecimal.Test("sub047")).ok=((new com.ibm.math.BigDecimal("3.0")).subtract(new com.ibm.math.BigDecimal(".3"),mcdef).toString()).equals("2.7"); (new com.ibm.math.DiagBigDecimal.Test("sub048")).ok=((new com.ibm.math.BigDecimal("3.00")).subtract(new com.ibm.math.BigDecimal(".3"),mcdef).toString()).equals("2.70"); (new com.ibm.math.DiagBigDecimal.Test("sub049")).ok=((new com.ibm.math.BigDecimal("3")).subtract(new com.ibm.math.BigDecimal("3"),mcdef).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("sub050")).ok=((new com.ibm.math.BigDecimal("3")).subtract(new com.ibm.math.BigDecimal("+3"),mcdef).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("sub051")).ok=((new com.ibm.math.BigDecimal("3")).subtract(new com.ibm.math.BigDecimal("-3"),mcdef).toString()).equals("6"); (new com.ibm.math.DiagBigDecimal.Test("sub052")).ok=((new com.ibm.math.BigDecimal("3")).subtract(new com.ibm.math.BigDecimal(".3")).toString()).equals("2.7"); (new com.ibm.math.DiagBigDecimal.Test("sub053")).ok=((new com.ibm.math.BigDecimal("3.")).subtract(new com.ibm.math.BigDecimal(".3")).toString()).equals("2.7"); (new com.ibm.math.DiagBigDecimal.Test("sub054")).ok=((new com.ibm.math.BigDecimal("3.0")).subtract(new com.ibm.math.BigDecimal(".3")).toString()).equals("2.7"); (new com.ibm.math.DiagBigDecimal.Test("sub055")).ok=((new com.ibm.math.BigDecimal("3.00")).subtract(new com.ibm.math.BigDecimal(".3")).toString()).equals("2.70"); (new com.ibm.math.DiagBigDecimal.Test("sub056")).ok=((new com.ibm.math.BigDecimal("3")).subtract(new com.ibm.math.BigDecimal("3")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("sub057")).ok=((new com.ibm.math.BigDecimal("3")).subtract(new com.ibm.math.BigDecimal("+3")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("sub058")).ok=((new com.ibm.math.BigDecimal("3")).subtract(new com.ibm.math.BigDecimal("-3")).toString()).equals("6"); // the above all from add; massaged and extended. Now some new ones... // [particularly important for comparisons] // NB: -1E-7 below were non-exponents pre-ANSI (new com.ibm.math.DiagBigDecimal.Test("sub080")).ok=("-1E-7").equals((new com.ibm.math.BigDecimal("10.23456784")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub081")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456785")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub082")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456786")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub083")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456787")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub084")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456788")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub085")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456789")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub086")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456790")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub087")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456791")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub088")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456792")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub089")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456793")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub090")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456794")).subtract(new com.ibm.math.BigDecimal("10.23456789"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub091")).ok=("-1E-7").equals((new com.ibm.math.BigDecimal("10.23456781")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub092")).ok=("-1E-7").equals((new com.ibm.math.BigDecimal("10.23456782")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub093")).ok=("-1E-7").equals((new com.ibm.math.BigDecimal("10.23456783")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub094")).ok=("-1E-7").equals((new com.ibm.math.BigDecimal("10.23456784")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub095")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456785")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub096")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456786")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub097")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456787")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub098")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456788")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub099")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456789")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub100")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456790")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub101")).ok="0".equals((new com.ibm.math.BigDecimal("10.23456791")).subtract(new com.ibm.math.BigDecimal("10.23456786"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub102")).ok="0".equals(com.ibm.math.BigDecimal.ONE.subtract(new com.ibm.math.BigDecimal("0.999999999"),mcdef).toString()); (new com.ibm.math.DiagBigDecimal.Test("sub103")).ok="0".equals((new com.ibm.math.BigDecimal("0.999999999")).subtract(com.ibm.math.BigDecimal.ONE,mcdef).toString()); alhs=new com.ibm.math.BigDecimal("12345678900000"); arhs=new com.ibm.math.BigDecimal("9999999999999"); (new com.ibm.math.DiagBigDecimal.Test("sub110")).ok=(alhs.subtract(arhs,mc3).toString()).equals("2.3E+12"); (new com.ibm.math.DiagBigDecimal.Test("sub111")).ok=(arhs.subtract(alhs,mc3).toString()).equals("-2.3E+12"); (new com.ibm.math.DiagBigDecimal.Test("sub112")).ok=(alhs.subtract(arhs).toString()).equals("2345678900001"); (new com.ibm.math.DiagBigDecimal.Test("sub113")).ok=(arhs.subtract(alhs).toString()).equals("-2345678900001"); // additional scaled arithmetic tests [0.97 problem] (new com.ibm.math.DiagBigDecimal.Test("sub120")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".1")).toString()).equals("-0.1"); (new com.ibm.math.DiagBigDecimal.Test("sub121")).ok=((new com.ibm.math.BigDecimal("00")).subtract(new com.ibm.math.BigDecimal(".97983")).toString()).equals("-0.97983"); (new com.ibm.math.DiagBigDecimal.Test("sub122")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".9")).toString()).equals("-0.9"); (new com.ibm.math.DiagBigDecimal.Test("sub123")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("0.102")).toString()).equals("-0.102"); (new com.ibm.math.DiagBigDecimal.Test("sub124")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".4")).toString()).equals("-0.4"); (new com.ibm.math.DiagBigDecimal.Test("sub125")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".307")).toString()).equals("-0.307"); (new com.ibm.math.DiagBigDecimal.Test("sub126")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".43822")).toString()).equals("-0.43822"); (new com.ibm.math.DiagBigDecimal.Test("sub127")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".911")).toString()).equals("-0.911"); (new com.ibm.math.DiagBigDecimal.Test("sub128")).ok=((new com.ibm.math.BigDecimal(".0")).subtract(new com.ibm.math.BigDecimal(".02")).toString()).equals("-0.02"); (new com.ibm.math.DiagBigDecimal.Test("sub129")).ok=((new com.ibm.math.BigDecimal("00")).subtract(new com.ibm.math.BigDecimal(".392")).toString()).equals("-0.392"); (new com.ibm.math.DiagBigDecimal.Test("sub130")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".26")).toString()).equals("-0.26"); (new com.ibm.math.DiagBigDecimal.Test("sub131")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("0.51")).toString()).equals("-0.51"); (new com.ibm.math.DiagBigDecimal.Test("sub132")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".2234")).toString()).equals("-0.2234"); (new com.ibm.math.DiagBigDecimal.Test("sub133")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal(".2")).toString()).equals("-0.2"); (new com.ibm.math.DiagBigDecimal.Test("sub134")).ok=((new com.ibm.math.BigDecimal(".0")).subtract(new com.ibm.math.BigDecimal(".0008")).toString()).equals("-0.0008"); // 0. on left (new com.ibm.math.DiagBigDecimal.Test("sub140")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.1")).toString()).equals("0.1"); (new com.ibm.math.DiagBigDecimal.Test("sub141")).ok=((new com.ibm.math.BigDecimal("0.00")).subtract(new com.ibm.math.BigDecimal("-.97983")).toString()).equals("0.97983"); (new com.ibm.math.DiagBigDecimal.Test("sub142")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.9")).toString()).equals("0.9"); (new com.ibm.math.DiagBigDecimal.Test("sub143")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-0.102")).toString()).equals("0.102"); (new com.ibm.math.DiagBigDecimal.Test("sub144")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.4")).toString()).equals("0.4"); (new com.ibm.math.DiagBigDecimal.Test("sub145")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.307")).toString()).equals("0.307"); (new com.ibm.math.DiagBigDecimal.Test("sub146")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.43822")).toString()).equals("0.43822"); (new com.ibm.math.DiagBigDecimal.Test("sub147")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.911")).toString()).equals("0.911"); (new com.ibm.math.DiagBigDecimal.Test("sub148")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.02")).toString()).equals("0.02"); (new com.ibm.math.DiagBigDecimal.Test("sub149")).ok=((new com.ibm.math.BigDecimal("0.00")).subtract(new com.ibm.math.BigDecimal("-.392")).toString()).equals("0.392"); (new com.ibm.math.DiagBigDecimal.Test("sub150")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.26")).toString()).equals("0.26"); (new com.ibm.math.DiagBigDecimal.Test("sub151")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-0.51")).toString()).equals("0.51"); (new com.ibm.math.DiagBigDecimal.Test("sub152")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.2234")).toString()).equals("0.2234"); (new com.ibm.math.DiagBigDecimal.Test("sub153")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.2")).toString()).equals("0.2"); (new com.ibm.math.DiagBigDecimal.Test("sub154")).ok=((new com.ibm.math.BigDecimal("0.0")).subtract(new com.ibm.math.BigDecimal("-.0008")).toString()).equals("0.0008"); // negatives of same (new com.ibm.math.DiagBigDecimal.Test("sub160")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.1")).toString()).equals("0.1"); (new com.ibm.math.DiagBigDecimal.Test("sub161")).ok=((new com.ibm.math.BigDecimal("00")).subtract(new com.ibm.math.BigDecimal("-.97983")).toString()).equals("0.97983"); (new com.ibm.math.DiagBigDecimal.Test("sub162")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.9")).toString()).equals("0.9"); (new com.ibm.math.DiagBigDecimal.Test("sub163")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-0.102")).toString()).equals("0.102"); (new com.ibm.math.DiagBigDecimal.Test("sub164")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.4")).toString()).equals("0.4"); (new com.ibm.math.DiagBigDecimal.Test("sub165")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.307")).toString()).equals("0.307"); (new com.ibm.math.DiagBigDecimal.Test("sub166")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.43822")).toString()).equals("0.43822"); (new com.ibm.math.DiagBigDecimal.Test("sub167")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.911")).toString()).equals("0.911"); (new com.ibm.math.DiagBigDecimal.Test("sub168")).ok=((new com.ibm.math.BigDecimal(".0")).subtract(new com.ibm.math.BigDecimal("-.02")).toString()).equals("0.02"); (new com.ibm.math.DiagBigDecimal.Test("sub169")).ok=((new com.ibm.math.BigDecimal("00")).subtract(new com.ibm.math.BigDecimal("-.392")).toString()).equals("0.392"); (new com.ibm.math.DiagBigDecimal.Test("sub170")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.26")).toString()).equals("0.26"); (new com.ibm.math.DiagBigDecimal.Test("sub171")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-0.51")).toString()).equals("0.51"); (new com.ibm.math.DiagBigDecimal.Test("sub172")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.2234")).toString()).equals("0.2234"); (new com.ibm.math.DiagBigDecimal.Test("sub173")).ok=((new com.ibm.math.BigDecimal("0")).subtract(new com.ibm.math.BigDecimal("-.2")).toString()).equals("0.2"); (new com.ibm.math.DiagBigDecimal.Test("sub174")).ok=((new com.ibm.math.BigDecimal(".0")).subtract(new com.ibm.math.BigDecimal("-.0008")).toString()).equals("0.0008"); // more fixed, LHS swaps [really same as testcases under add] (new com.ibm.math.DiagBigDecimal.Test("sub180")).ok=((new com.ibm.math.BigDecimal("-56267E-10")).subtract(zero).toString()).equals("-0.0000056267"); (new com.ibm.math.DiagBigDecimal.Test("sub181")).ok=((new com.ibm.math.BigDecimal("-56267E-5")).subtract(zero).toString()).equals("-0.56267"); (new com.ibm.math.DiagBigDecimal.Test("sub182")).ok=((new com.ibm.math.BigDecimal("-56267E-2")).subtract(zero).toString()).equals("-562.67"); (new com.ibm.math.DiagBigDecimal.Test("sub183")).ok=((new com.ibm.math.BigDecimal("-56267E-1")).subtract(zero).toString()).equals("-5626.7"); (new com.ibm.math.DiagBigDecimal.Test("sub185")).ok=((new com.ibm.math.BigDecimal("-56267E-0")).subtract(zero).toString()).equals("-56267"); try{checknull:do{ ten.subtract((com.ibm.math.BigDecimal)null); flag=false; }while(false);} catch (java.lang.NullPointerException $83){ flag=true; }/*checknull*/ (new com.ibm.math.DiagBigDecimal.Test("sub200")).ok=flag; try{checknull2:do{ ten.subtract(ten,(com.ibm.math.MathContext)null); flag=false; }while(false);} catch (java.lang.NullPointerException $84){ flag=true; }/*checknull2*/ (new com.ibm.math.DiagBigDecimal.Test("sub201")).ok=flag; try{checkdigits:do{ com.ibm.math.BigDecimal.ONE.subtract(tenlong,mcld); flag=false; }while(false);} catch (java.lang.ArithmeticException $85){ae=$85; flag=(ae.getMessage()).equals("Too many digits:"+" "+tenlong.toString()); }/*checkdigits*/ (new com.ibm.math.DiagBigDecimal.Test("sub202")).ok=flag; try{checkdigits:do{ tenlong.subtract(com.ibm.math.BigDecimal.ONE,mcld); flag=false; }while(false);} catch (java.lang.ArithmeticException $86){ae=$86; flag=(ae.getMessage()).equals("Too many digits:"+" "+tenlong.toString()); }/*checkdigits*/ (new com.ibm.math.DiagBigDecimal.Test("sub203")).ok=flag; summary("subtract"); return;}
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/9d7cfece10981dede4d5303274403593abc1a92d/DiagBigDecimal.java/clean/icu4j/src/com/ibm/icu/dev/test/bigdec/DiagBigDecimal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
15306,
373,
1575,
1435,
95,
225,
1250,
2982,
33,
5743,
31,
225,
532,
18,
10827,
18,
15949,
18,
29436,
524,
4487,
31,
225,
532,
18,
10827,
18,
15949,
18,
29436,
419,
4487,
31,
225,
2252,
18,
4936,
18,
686,
16368,
503,
14221,
33,
2011,
31,
565,
368,
306,
3645,
1041,
854,
296,
19525,
15588,
866,
3546,
225,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1717,
31831,
7923,
2934,
601,
33,
12443,
2704,
532,
18,
10827,
18,
15949,
18,
29436,
12,
22,
13,
2934,
1717,
1575,
12,
2704,
532,
18,
10827,
18,
15949,
18,
29436,
12,
23,
3631,
13952,
536,
2934,
10492,
1435,
2934,
14963,
2932,
17,
21,
8863,
225,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1717,
23,
3103,
7923,
2934,
601,
33,
12443,
2704,
532,
18,
10827,
18,
15949,
18,
29436,
2932,
25,
18,
5877,
7923,
2934,
1717,
1575,
12,
2704,
532,
18,
10827,
18,
15949,
18,
29436,
2932,
23,
18,
23,
6,
3631,
13952,
536,
2934,
10492,
1435,
2934,
14963,
2932,
22,
18,
7950,
8863,
225,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1717,
23,
4630,
7923,
2934,
601,
33,
12443,
2704,
532,
18,
10827,
18,
15949,
18,
29436,
2932,
25,
7923,
2934,
1717,
1575,
12,
2704,
532,
18,
10827,
18,
15949,
18,
29436,
2932,
17,
23,
6,
3631,
13952,
536,
2934,
10492,
1435,
2934,
14963,
2932,
28,
8863,
225,
261,
2704,
532,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
15306,
373,
1575,
1435,
95,
225,
1250,
2982,
33,
5743,
31,
225,
532,
18,
10827,
18,
15949,
18,
29436,
524,
4487,
31,
225,
532,
18,
10827,
18,
15949,
18,
29436,
419,
4487,
31,
225,
2252,
18,
4936,
18,
686,
16368,
503,
14221,
33,
2011,
31,
565,
368,
306,
3645,
1041,
854,
296,
19525,
15588,
866,
3546,
225,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1717,
31831,
7923,
2934,
601,
33,
12443,
2704,
532,
18,
10827,
18,
15949,
18,
29436,
12,
22,
13,
2934,
1717,
1575,
12,
2704,
532,
18,
10827,
18,
15949,
18,
29436,
12,
23,
3631,
13952,
536,
2934,
10492,
1435,
2934,
14963,
2932,
17,
21,
8863,
225,
261,
2
] |
Rectangle area = getClientArea();
|
Rectangle area = getClientArea();
|
void doAutoScroll(Event event) { Rectangle area = getClientArea(); if (event.y > area.height) { doAutoScroll(SWT.DOWN, event.y - area.height); } else if (event.y < 0) { doAutoScroll(SWT.UP, -event.y); } else if (event.x < leftMargin && !wordWrap) { doAutoScroll(ST.COLUMN_PREVIOUS, leftMargin - event.x); } else if (event.x > area.width - leftMargin - rightMargin && !wordWrap) { doAutoScroll(ST.COLUMN_NEXT, event.x - (area.width - leftMargin - rightMargin)); } else { endAutoScroll(); }}
|
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/9e630cdfff1efebad25cc2ad394dba564071d578/StyledText2.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
741,
4965,
6806,
12,
1133,
871,
13,
288,
202,
19463,
5091,
273,
7635,
5484,
5621,
9506,
202,
430,
261,
2575,
18,
93,
405,
5091,
18,
4210,
13,
288,
202,
202,
2896,
4965,
6806,
12,
55,
8588,
18,
12711,
16,
871,
18,
93,
300,
5091,
18,
4210,
1769,
202,
97,
202,
12107,
225,
202,
430,
261,
2575,
18,
93,
411,
374,
13,
288,
202,
202,
2896,
4965,
6806,
12,
55,
8588,
18,
3079,
16,
300,
2575,
18,
93,
1769,
202,
97,
202,
12107,
225,
202,
430,
261,
2575,
18,
92,
411,
2002,
9524,
597,
401,
1095,
2964,
13,
288,
202,
202,
2896,
4965,
6806,
12,
882,
18,
11009,
67,
3670,
4136,
21667,
16,
2002,
9524,
300,
871,
18,
92,
1769,
202,
97,
202,
12107,
225,
202,
430,
261,
2575,
18,
92,
405,
5091,
18,
2819,
300,
2002,
9524,
300,
2145,
9524,
597,
401,
1095,
2964,
13,
288,
202,
202,
2896,
4965,
6806,
12,
882,
18,
11009,
67,
25539,
16,
871,
18,
92,
300,
261,
5036,
18,
2819,
300,
2002,
9524,
300,
2145,
9524,
10019,
202,
97,
202,
12107,
288,
202,
202,
409,
4965,
6806,
5621,
202,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
741,
4965,
6806,
12,
1133,
871,
13,
288,
202,
19463,
5091,
273,
7635,
5484,
5621,
9506,
202,
430,
261,
2575,
18,
93,
405,
5091,
18,
4210,
13,
288,
202,
202,
2896,
4965,
6806,
12,
55,
8588,
18,
12711,
16,
871,
18,
93,
300,
5091,
18,
4210,
1769,
202,
97,
202,
12107,
225,
202,
430,
261,
2575,
18,
93,
411,
374,
13,
288,
202,
202,
2896,
4965,
6806,
12,
55,
8588,
18,
3079,
16,
300,
2575,
18,
93,
1769,
202,
97,
202,
12107,
225,
202,
430,
261,
2575,
18,
92,
411,
2002,
9524,
597,
401,
1095,
2964,
13,
288,
202,
202,
2896,
4965,
6806,
12,
882,
18,
11009,
67,
3670,
4136,
21667,
16,
2002,
9524,
300,
871,
18,
92,
2
] |
public IPathEntryContainer getPathEntryContainer(final IPath containerPath, final ICProject project) throws CModelException { IPathEntryContainer container = containerGet(project, containerPath, true); if (container instanceof PathEntryContainerLock) { boolean runInitializer = false; PathEntryContainerLock lock = (PathEntryContainerLock)container; synchronized (lock) { if (!lock.isContainerInitialize()) { runInitializer = true; lock.setContainerInitialize(runInitializer); } else if (! Thread.holdsLock(lock)){ while (containerGet(project, containerPath, true) instanceof PathEntryContainerLock) { try { lock.wait(); } catch (InterruptedException e) { } } } } if (runInitializer) { final PathEntryContainerInitializer initializer = getPathEntryContainerInitializer(containerPath.segment(0)); final boolean[] ok = {false}; if (initializer != null) { Platform.run(new ISafeRunnable() { public void handleException(Throwable exception) { IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, IStatus.ERROR, "Exception occurred in container initializer: " + initializer, exception); CCorePlugin.log(status); } public void run() throws Exception { initializer.initialize(containerPath, project); ok[0] = true; } }); } if (!ok[0]) { containerPut(project, containerPath, null); } } container = containerGet(project, containerPath, false); } return container;
|
public IPathEntryContainer getPathEntryContainer(IContainerEntry entry, ICProject cproject) throws CModelException { return getPathEntryContainer(entry.getPath(), cproject);
|
public IPathEntryContainer getPathEntryContainer(final IPath containerPath, final ICProject project) throws CModelException { // Try the cache. IPathEntryContainer container = containerGet(project, containerPath, true); if (container instanceof PathEntryContainerLock) { boolean runInitializer = false; PathEntryContainerLock lock = (PathEntryContainerLock)container; synchronized (lock) { if (!lock.isContainerInitialize()) { runInitializer = true; lock.setContainerInitialize(runInitializer); } else if (! Thread.holdsLock(lock)){ // FIXME: Use Thread.holdsLock(lock) to break the cycle. // This seem to happend when the container(say the auto discovery) // trigger a resource change, the CoreModel will try to get the pathentries .. deadlock. // Wait for the inialization to finish. while (containerGet(project, containerPath, true) instanceof PathEntryContainerLock) { try { lock.wait(); } catch (InterruptedException e) { //e.printStackTrace(); } } } } if (runInitializer) { // remove the lock. final PathEntryContainerInitializer initializer = getPathEntryContainerInitializer(containerPath.segment(0)); final boolean[] ok = {false}; if (initializer != null) { // wrap initializer call with Safe runnable in case // initializer would be // causing some grief Platform.run(new ISafeRunnable() { public void handleException(Throwable exception) { IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, IStatus.ERROR, "Exception occurred in container initializer: " + initializer, exception); //$NON-NLS-1$ CCorePlugin.log(status); } public void run() throws Exception { initializer.initialize(containerPath, project); ok[0] = true; } }); } if (!ok[0]) { containerPut(project, containerPath, null); // flush and // notify } } // retrieve new value container = containerGet(project, containerPath, false); } return container; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/53a18c3ddc09196bca30492d5cf4cc01457acdeb/PathEntryManager.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
743,
1622,
2170,
4339,
1622,
2170,
12,
6385,
467,
743,
1478,
743,
16,
727,
26899,
4109,
1984,
13,
1216,
385,
1488,
503,
288,
202,
202,
759,
6161,
326,
1247,
18,
202,
202,
45,
743,
1622,
2170,
1478,
273,
1478,
967,
12,
4406,
16,
1478,
743,
16,
638,
1769,
202,
202,
430,
261,
3782,
1276,
2666,
1622,
2170,
2531,
13,
288,
1082,
202,
6494,
1086,
14729,
273,
629,
31,
1082,
202,
743,
1622,
2170,
2531,
2176,
273,
261,
743,
1622,
2170,
2531,
13,
3782,
31,
1082,
202,
22043,
261,
739,
13,
288,
9506,
202,
430,
16051,
739,
18,
291,
2170,
7520,
10756,
288,
6862,
202,
2681,
14729,
273,
638,
31,
6862,
202,
739,
18,
542,
2170,
7520,
12,
2681,
14729,
1769,
9506,
202,
97,
469,
309,
16051,
4884,
18,
21056,
87,
2531,
12,
739,
3719,
95,
6862,
202,
759,
9852,
30,
2672,
4884,
18,
21056,
87,
2531,
12,
739,
13,
358,
898,
326,
8589,
18,
6862,
202,
759,
1220,
19264,
358,
5622,
1302,
1347,
326,
1478,
12,
87,
528,
326,
3656,
11030,
13,
6862,
202,
759,
3080,
279,
1058,
2549,
16,
326,
4586,
1488,
903,
775,
358,
336,
326,
589,
8219,
6116,
8363,
739,
18,
6862,
202,
759,
5838,
364,
326,
316,
649,
1588,
358,
4076,
18,
6862,
202,
17523,
261,
3782,
967,
12,
4406,
16,
1478,
743,
16,
638,
13,
1276,
2666,
1622,
2170,
2531,
13,
288,
25083,
202,
698,
288,
6862,
1082,
202,
739,
18,
7048,
5621,
25083,
202,
97,
1044,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
743,
1622,
2170,
4339,
1622,
2170,
12,
6385,
467,
743,
1478,
743,
16,
727,
26899,
4109,
1984,
13,
1216,
385,
1488,
503,
288,
202,
202,
759,
6161,
326,
1247,
18,
202,
202,
45,
743,
1622,
2170,
1478,
273,
1478,
967,
12,
4406,
16,
1478,
743,
16,
638,
1769,
202,
202,
430,
261,
3782,
1276,
2666,
1622,
2170,
2531,
13,
288,
1082,
202,
6494,
1086,
14729,
273,
629,
31,
1082,
202,
743,
1622,
2170,
2531,
2176,
273,
261,
743,
1622,
2170,
2531,
13,
3782,
31,
1082,
202,
22043,
261,
739,
13,
288,
9506,
202,
430,
16051,
739,
18,
291,
2170,
7520,
10756,
288,
6862,
202,
2681,
14729,
273,
638,
31,
6862,
202,
739,
18,
542,
2170,
2
] |
m_fileList = new ArrayList(); m_folderList = new ArrayList(); m_deletedFolderList = new ArrayList(); m_publishResource = directPublishResource; m_publishHistoryId = new CmsUUID();
|
this(null);
|
public CmsPublishList(CmsResource directPublishResource) { m_fileList = new ArrayList(); m_folderList = new ArrayList(); m_deletedFolderList = new ArrayList(); m_publishResource = directPublishResource; m_publishHistoryId = new CmsUUID(); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/3490d71abdd2f86b3a1412c7e7311ab55b31ba53/CmsPublishList.java/buggy/src/org/opencms/db/CmsPublishList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
6024,
682,
12,
4747,
1420,
2657,
6024,
1420,
13,
288,
3639,
312,
67,
768,
682,
273,
394,
2407,
5621,
3639,
312,
67,
5609,
682,
273,
394,
2407,
5621,
3639,
312,
67,
8600,
3899,
682,
273,
394,
2407,
5621,
3639,
312,
67,
6543,
1420,
273,
2657,
6024,
1420,
31,
3639,
312,
67,
6543,
5623,
548,
273,
394,
15792,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
6024,
682,
12,
4747,
1420,
2657,
6024,
1420,
13,
288,
3639,
312,
67,
768,
682,
273,
394,
2407,
5621,
3639,
312,
67,
5609,
682,
273,
394,
2407,
5621,
3639,
312,
67,
8600,
3899,
682,
273,
394,
2407,
5621,
3639,
312,
67,
6543,
1420,
273,
2657,
6024,
1420,
31,
3639,
312,
67,
6543,
5623,
548,
273,
394,
15792,
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
] |
log.debug("cert_password = " + this.cert_password);
|
if(log.isDebugEnabled()){ log.debug("cert_password = " + this.cert_password); }
|
public void setValue(Properties properties) { log.debug("setting values on X509Token1_5 object"); if(properties.containsKey(X509Token1_5.TOKEN_ATTR)){ this.token_attr = (String) properties.get(X509Token1_5.TOKEN_ATTR); properties.remove(X509Token1_5.TOKEN_ATTR); log.debug("token_attr = " + this.token_attr); } if(properties.containsKey(X509Token1_5.KEYSTORE_TYPE)){ this.keystore_type = (String) properties.get(X509Token1_5.KEYSTORE_TYPE); properties.remove(X509Token1_5.KEYSTORE_TYPE); log.debug("keystore_type = " + this.keystore_type); }else{ this.keystore_type = "JKS"; log.debug("keystore_type = " + this.keystore_type); } if(properties.containsKey(X509Token1_5.KEYSTORE_PATH)){ this.keystore_path = (String) properties.get(X509Token1_5.KEYSTORE_PATH); properties.remove(X509Token1_5.KEYSTORE_PATH); log.debug("keystore_path = " + this.keystore_path); } if(properties.containsKey(X509Token1_5.KEYSTORE_PASSWORD)){ this.keystore_password = ((String) properties.get(X509Token1_5.KEYSTORE_PASSWORD)).toCharArray(); properties.remove(X509Token1_5.KEYSTORE_PASSWORD); log.debug("keystore_password = " + this.keystore_password); } if(properties.containsKey(X509Token1_5.CERT_ALIAS)){ this.cert_alias = (String) properties.get(X509Token1_5.CERT_ALIAS); properties.remove(X509Token1_5.CERT_ALIAS); log.debug("cert_alias = " + this.cert_alias); } if(properties.containsKey(X509Token1_5.CERT_PASSWORD)){ this.cert_password = ((String) properties.get(X509Token1_5.CERT_PASSWORD)).toCharArray(); properties.remove(X509Token1_5.CERT_PASSWORD); log.debug("cert_password = " + this.cert_password); }else{ this.cert_password = this.keystore_password; log.debug("cert_password = " + this.cert_password); } if(properties.containsKey(X509Token1_5.CIPHER_TYPE)){ this.cipher_type = (String) properties.get(X509Token1_5.CIPHER_TYPE); properties.remove(X509Token1_5.CIPHER_TYPE); log.debug("cipher_type = " + this.cipher_type); }else{ this.cipher_type = "RSA"; log.debug("cipher_type = " + this.cipher_type); } if(getCertificate()){ this.valueSet = true; log.debug("X509Token1_5 created correctly"); } }
|
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/1a331854f75c50fd5c0bcab384704d7b0271e7c7/X509Token1_5.java/buggy/src/org/jgroups/auth/X509Token1_5.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
12,
2297,
1790,
13,
288,
3639,
613,
18,
4148,
2932,
8920,
924,
603,
1139,
5995,
1345,
21,
67,
25,
733,
8863,
3639,
309,
12,
4738,
18,
12298,
653,
12,
60,
5995,
1345,
21,
67,
25,
18,
8412,
67,
12043,
3719,
95,
5411,
333,
18,
2316,
67,
1747,
273,
261,
780,
13,
1790,
18,
588,
12,
60,
5995,
1345,
21,
67,
25,
18,
8412,
67,
12043,
1769,
5411,
1790,
18,
4479,
12,
60,
5995,
1345,
21,
67,
25,
18,
8412,
67,
12043,
1769,
5411,
613,
18,
4148,
2932,
2316,
67,
1747,
273,
315,
397,
333,
18,
2316,
67,
1747,
1769,
3639,
289,
3639,
309,
12,
4738,
18,
12298,
653,
12,
60,
5995,
1345,
21,
67,
25,
18,
3297,
13651,
67,
2399,
3719,
95,
5411,
333,
18,
856,
2233,
67,
723,
273,
261,
780,
13,
1790,
18,
588,
12,
60,
5995,
1345,
21,
67,
25,
18,
3297,
13651,
67,
2399,
1769,
5411,
1790,
18,
4479,
12,
60,
5995,
1345,
21,
67,
25,
18,
3297,
13651,
67,
2399,
1769,
5411,
613,
18,
4148,
2932,
856,
2233,
67,
723,
273,
315,
397,
333,
18,
856,
2233,
67,
723,
1769,
3639,
289,
12107,
95,
5411,
333,
18,
856,
2233,
67,
723,
273,
315,
19474,
55,
14432,
5411,
613,
18,
4148,
2932,
856,
2233,
67,
723,
273,
315,
397,
333,
18,
856,
2233,
67,
723,
1769,
3639,
289,
3639,
309,
12,
4738,
18,
12298,
653,
12,
60,
5995,
1345,
21,
67,
25,
18,
3297,
13651,
67,
4211,
3719,
95,
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,
5524,
12,
2297,
1790,
13,
288,
3639,
613,
18,
4148,
2932,
8920,
924,
603,
1139,
5995,
1345,
21,
67,
25,
733,
8863,
3639,
309,
12,
4738,
18,
12298,
653,
12,
60,
5995,
1345,
21,
67,
25,
18,
8412,
67,
12043,
3719,
95,
5411,
333,
18,
2316,
67,
1747,
273,
261,
780,
13,
1790,
18,
588,
12,
60,
5995,
1345,
21,
67,
25,
18,
8412,
67,
12043,
1769,
5411,
1790,
18,
4479,
12,
60,
5995,
1345,
21,
67,
25,
18,
8412,
67,
12043,
1769,
5411,
613,
18,
4148,
2932,
2316,
67,
1747,
273,
315,
397,
333,
18,
2316,
67,
1747,
1769,
3639,
289,
3639,
309,
12,
4738,
18,
12298,
653,
12,
60,
5995,
1345,
21,
67,
25,
2
] |
615, 19, 10, 542, 619, 311, 312, 544, 26, 346, 330, 16, 59, 269, 19, 630, 267, 337, 264, 41, 44, 41, 44, 10, 44, 268, 269, 566, 643, 47, 48, 49, 690, 41, 271, 53, 44, 41, 630, 61, 655, 61, 349, 350, 544, 545, 657, 662, 663, 263, 264, 59, 44, 668, 669, 41, 44, 125, 369, 370, 371, 319, 41, 678, 679, 565, 56, 57, 41, 91, 607, 91, 59, 32, 689, 330, 339, 330, 339, 579, 339, 93, 337, 741, 337, 339, 744, 105, 44, 107, 348, 41, 93, 10, 352, 353, 264, 712, 713, 714,
|
615, 19, 10, 542, 619, 268, 269, 544, 26, 371, 330, 16, 59, 44, 19, 630, 346, 337, 264, 41, 269, 41, 44, 10, 44, 349, 350, 566, 643, 47, 48, 49, 690, 41, 267, 53, 44, 41, 630, 61, 655, 61, 263, 264, 544, 545, 657, 662, 663, 56, 57, 59, 271, 668, 669, 44, 44, 41, 369, 370, 371, 319, 44, 678, 679, 565, 125, 41, 41, 91, 607, 91, 59, 32, 689, 330, 93, 330, 339, 579, 339, 44, 337, 741, 337, 339, 744, 105, 41, 107, 348, 339, 93, 10, 352, 353, 264, 712, 713, 714,
|
private static final short[] yyCheck1() { return new short[] { 15, 16, 215, 14, 19, 7, 247, 15, 16, 6, 378, 19, 15, 16, 21, 375, 19, 71, 6, 7, 392, 51, 27, 15, 16, 27, 342, 19, 43, 44, 10, 3, 398, 370, 49, 50, 10, 52, 53, 27, 44, 410, 50, 101, 21, 91, 292, 32, 47, 693, 296, 4, 5, 369, 10, 522, 523, 54, 50, 570, 571, 14, 10, 10, 106, 10, 54, 506, 507, 280, 41, 387, 11, 10, 11, 444, 666, 263, 693, 59, 695, 671, 10, 310, 58, 59, 402, 94, 44, 342, 61, 10, 342, 100, 10, 280, 10, 10, 51, 44, 361, 53, 2, 3, 4, 5, 113, 10, 8, 9, 10, 11, 59, 10, 14, 15, 16, 94, 310, 19, 15, 16, 32, 0, 19, 44, 26, 310, 93, 2, 58, 59, 71, 10, 10, 10, 310, 90, 454, 58, 59, 315, 44, 59, 371, 59, 10, 47, 48, 49, 361, 51, 10, 53, 49, 58, 59, 342, 10, 61, 125, 58, 59, 349, 218, 330, 41, 327, 269, 108, 271, 10, 337, 10, 47, 10, 361, 10, 125, 371, 308, 348, 59, 59, 10, 829, 369, 370, 371, 304, 90, 32, 44, 308, 91, 369, 370, 10, 358, 559, 58, 59, 10, 200, 41, 105, 41, 107, 545, 267, 377, 269, 200, 364, 829, 41, 231, 232, 233, 58, 59, 467, 590, 282, 59, 58, 59, 339, 565, 244, 41, 246, 247, 91, 107, 10, 244, 10, 246, 247, 10, 244, 681, 246, 247, 58, 59, 41, 339, 330, 61, 59, 244, 268, 246, 247, 337, 91, 91, 269, 41, 271, 41, 41, 263, 61, 41, 61, 41, 44, 737, 738, 783, 784, 61, 786, 256, 44, 91, 218, 61, 44, 61, 10, 330, 222, 223, 91, 269, 59, 271, 337, 262, 267, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 350, 264, 222, 223, 308, 310, 368, 342, 61, 301, 345, 346, 59, 348, 306, 59, 340, 352, 346, 267, 348, 91, 290, 291, 244, 856, 246, 247, 267, 244, 349, 246, 247, 341, 369, 279, 256, 339, 727, 725, 418, 419, 377, 263, 733, 302, 303, 304, 305, 377, 267, 91, 387, 388, 389, 390, 356, 279, 281, 394, 368, 439, 595, 256, 369, 370, 394, 402, 264, 630, 263, 406, 407, 345, 346, 410, 348, 350, 386, 414, 352, 301, 302, 303, 304, 305, 306, 307, 308, 267, 339, 414, 427, 401, 308, 407, 776, 432, 433, 434, 425, 340, 414, 425, 363, 340, 441, 799, 267, 444, 342, 799, 447, 330, 267, 772, 91, 425, 91, 454, 337, 44, 342, 431, 44, 345, 346, 342, 348, 349, 350, 269, 352, 271, 267, 330, 358, 361, 397, 398, 340, 341, 337, 343, 344, 453, 330, 280, 279, 369, 370, 371, 330, 337, 369, 319, 349, 319, 44, 337, 849, 319, 10, 383, 342, 279, 339, 387, 368, 826, 703, 391, 387, 393, 264, 553, 330, 330, 279, 269, 279, 340, 402, 337, 337, 385, 386, 402, 877, 516, 383, 526, 290, 291, 414, 290, 291, 330, 391, 835, 393, 401, 10, 41, 337, 91, 330, 10, 428, 342, 41, 59, 41, 337, 511, 44, 263, 264, 272, 516, 274, 275, 549, 311, 312, 522, 523, 358, 361, 290, 291, 431, 61, 93, 454, 428, 125, 554, 41, 454, 306, 44, 371, 10, 358, 340, 554, 313, 314, 574, 58, 59, 574, 453, 240, 44, 59, 358, 593, 358, 330, 794, 263, 264, 2, 3, 574, 337, 269, 308, 8, 9, 10, 11, 41, 371, 611, 15, 16, 310, 615, 19, 10, 542, 619, 311, 312, 544, 26, 346, 330, 16, 59, 269, 19, 630, 267, 337, 264, 41, 44, 41, 44, 10, 44, 268, 269, 566, 643, 47, 48, 49, 690, 41, 271, 53, 44, 41, 630, 61, 655, 61, 349, 350, 544, 545, 657, 662, 663, 263, 264, 59, 44, 668, 669, 41, 44, 125, 369, 370, 371, 319, 41, 678, 679, 565, 56, 57, 41, 91, 607, 91, 59, 32, 689, 330, 339, 330, 339, 579, 339, 93, 337, 741, 337, 339, 744, 105, 44, 107, 348, 41, 93, 10, 352, 353, 264, 712, 713, 714, 61, 44, 44, 91, 657, 720, 579, 607, 44, 44, 662, 663, 727, 279, 310, 304, 668, 732, 733, 304, 2, 3, 4, 5, 732, 340, 8, 263, 339, 732, 630, 339, 14, 633, 339, 630, 264, 264, 404, 93, 732, 269, 59, 271, 683, 10, 44, 627, 628, 702, 650, 44, 767, 310, 769, 91, 264, 657, 658, 349, 660, 661, 662, 663, 330, 47, 93, 44, 668, 51, 10, 337, 709, 369, 370, 371, 342, 650, 10, 267, 44, 796, 41, 798, 41, 658, 725, 660, 661, 804, 41, 93, 358, 808, 59, 2, 3, 812, 91, 125, 339, 8, 702, 264, 222, 223, 706, 14, 90, 709, 41, 264, 369, 370, 371, 767, 10, 339, 58, 59, 835, 721, 722, 723, 264, 107, 244, 59, 246, 247, 10, 264, 847, 706, 849, 41, 125, 358, 256, 244, 47, 246, 247, 264, 125, 263, 834, 264, 721, 722, 723, 91, 867, 41, 869, 847, 308, 279, 280, 279, 280, 44, 877, 44, 58, 59, 881, 767, 264, 264, 44, 771, 772, 41, 93, 262, 263, 264, 58, 59, 125, 264, 269, 301, 302, 303, 304, 305, 306, 307, 308, 279, 792, 264, 264, 44, 10, 91, 771, 125, 107, 2, 3, 4, 5, 6, 93, 8, 330, 271, 330, 91, 342, 14, 41, 337, 41, 337, 93, 792, 342, 93, 342, 125, 342, 44, 826, 345, 346, 41, 348, 349, 93, 125, 352, 835, 358, 837, 358, 361, 835, 361, 330, 279, 844, 59, 47, 41, 614, 337, 51, 369, 370, 371, 834, 264, 61, 5, 624, 293, 294, 295, 296, 297, 837, 383, 776, 10, 6, 387, 358, 844, 91, 391, 256, 393, 2, 3, 863, 10, 559, 263, 8, 657, 402, 78, 279, 304, 90, 90, 307, 308, 309, 836, 330, 247, 414, 0, 695, 264, 695, 337, 71, 268, 269, -1, 107, 304, -1, -1, 428, -1, -1, 330, -1, 58, 59, -1, -1, 301, 337, 47, 358, 310, 306, 342, -1, 267, 59, -1, 347, 348, 349, 350, -1, -1, 454, 330, 41, -1, 280, 9, 10, 11, 337, -1, -1, 310, 91, 256, 347, 348, 349, 350, -1, -1, 263, -1, 26, -1, 726, -1, 0, 729, 730, 358, 44, 349, 350, 49, -1, -1, 304, 267, -1, 307, 308, 309, -1, 0, 48, 107, 369, 370, 371, -1, 280, 267, 370, 10, 330, -1, -1, -1, 301, -1, -1, 337, 330, 306, -1, 383, 342, 41, -1, 337, 369, 370, 371, 391, 342, 393, -1, 91, -1, 347, 348, 349, 350, -1, 41, 361, 125, -1, -1, 304, 544, 545, 307, 308, 309, -1, 41, -1, -1, 44, 330, 105, 59, -1, -1, -1, 349, 337, 810, 811, 428, 565, 342, -1, 330, -1, 61, -1, -1, 256, -1, 337, -1, -1, 279, 579, 263, 370, -1, -1, -1, 361, 347, 348, 349, 350, -1, -1, -1, -1, 383, -1, -1, 845, 846, -1, 91, -1, 391, 851, 393, 125, -1, 607, 304, -1, -1, 307, 308, 309, -1, -1, -1, -1, 301, -1, 868, -1, 125, 306, -1, -1, 10, -1, 876, 330, 630, 879, -1, 633, 330, 883, 337, 306, 307, 428, 309, 337, 267, -1, 313, 314, 342, -1, 256, -1, 650, 347, 348, 349, 350, 263, -1, 358, 658, -1, 660, 661, 662, 663, -1, -1, 349, 350, 668, -1, -1, -1, 222, 223, -1, 59, -1, 262, 263, 264, -1, 545, -1, 268, 269, -1, 271, 370, -1, -1, -1, 304, -1, 301, 307, 308, 309, 319, 306, -1, 383, 565, 231, 232, -1, 330, 706, -1, 391, 709, 393, -1, 337, 335, 336, 579, 44, 330, -1, 279, 280, 721, 722, 723, 337, -1, 348, -1, 350, 342, 352, 353, 354, 355, 347, 348, 349, 350, -1, -1, -1, 349, 262, 263, 264, 428, -1, -1, 268, 269, -1, 271, 302, 303, 304, 305, 545, 307, 308, 262, 263, 264, 370, 91, -1, 268, 269, 767, 271, -1, 330, 771, 772, -1, -1, 383, 565, 337, -1, -1, 342, -1, 342, 391, -1, 393, 650, 651, 279, 280, 579, -1, 792, 657, 658, 319, 660, 661, 358, -1, -1, 361, -1, 41, -1, -1, 44, 369, -1, 44, -1, 335, 336, -1, -1, 377, 378, 346, -1, 348, 428, 371, -1, 61, 348, 387, 826, -1, 352, 353, 354, 355, -1, -1, -1, 835, -1, 837, 702, 330, 402, -1, 706, -1, 844, -1, 337, -1, 377, -1, -1, 342, -1, 91, -1, -1, 91, 721, 722, 723, -1, 650, 545, -1, 414, 394, 319, 358, 657, 658, 361, 660, 661, -1, -1, -1, -1, 406, 407, -1, -1, 410, 565, -1, -1, 414, -1, -1, -1, -1, 41, 41, 454, 44, 44, 348, 579, -1, -1, 352, 353, 354, 355, -1, -1, -1, 41, 771, 772, 44, 61, 61, 441, 702, -1, 444, -1, 706, 447, -1, 304, -1, -1, 307, 308, 309, 61, 10, 792, -1, -1, -1, 721, 722, 723, -1, -1, 545, -1, 41, 91, 91, 44, 505, 506, 507, 330, -1, -1, 511, -1, 279, 280, 337, -1, -1, 91, 565, 342, 61, 522, 523, 826, 347, 348, 349, 350, 650, -1, -1, -1, 579, -1, 837, 657, 658, 59, 660, 661, -1, 844, -1, 771, 772, 546, -1, -1, -1, -1, 91, -1, -1, -1, -1, 544, -1, -1, 526, -1, -1, -1, -1, 330, 792, -1, 10, -1, -1, -1, 337, -1, -1, -1, -1, 342, -1, 578, -1, 580, 702, 582, -1, -1, 706, -1, -1, -1, -1, 590, -1, 358, -1, -1, 361, -1, -1, -1, 826, 721, 722, 723, 279, 650, -1, 279, 280, -1, -1, 837, -1, 658, -1, 660, 661, 59, 844, -1, 607, -1, -1, -1, -1, -1, -1, 593, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 611, 633, -1, -1, 615, -1, 771, 772, 619, -1, 330, -1, -1, 330, -1, -1, 706, 337, -1, 630, 337, -1, 342, -1, 41, 342, 0, 792, -1, -1, -1, 721, 722, 723, -1, -1, 10, 681, 358, -1, -1, 358, 59, -1, 361, -1, 279, 279, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 826, 279, -1, -1, -1, -1, 41, 679, -1, 44, -1, 837, -1, -1, -1, -1, 709, 689, 844, -1, 771, 772, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, 737, 738, 279, -1, 330, 330, -1, -1, -1, 792, -1, 337, 337, -1, -1, 125, 720, -1, -1, -1, 330, -1, -1, 727, 91, -1, 93, 337, -1, 733, -1, 304, 358, 358, 307, 308, 309, -1, -1, -1, -1, -1, -1, 826, -1, -1, 304, -1, 358, 307, 308, 309, -1, 330, 837, -1, 0, -1, 125, -1, 337, 844, 799, -1, -1, 769, 10, -1, -1, 342, -1, -1, 330, -1, 347, 348, 349, 350, -1, 337, -1, 358, -1, -1, 342, -1, -1, -1, -1, 347, 348, 349, 350, -1, 798, -1, -1, 41, 835, -1, 44, -1, -1, -1, 808, 319, -1, -1, 812, -1, -1, -1, -1, -1, 58, 59, -1, 61, -1, 63, -1, 335, 336, 10, 304, -1, 863, 307, 308, 309, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, -1, 847, 358, 849, 360, 91, -1, 93, 330, -1, 262, 263, 264, -1, -1, 337, 268, 269, -1, 271, 342, 867, -1, 869, -1, 347, 348, 349, 350, -1, -1, 877, -1, -1, 63, 881, -1, -1, -1, 125, -1, 293, 294, 295, 296, 297, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, 63, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, 10, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 59, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 348, 44, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 307, 308, 309, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 330, 58, 59, -1, 61, -1, 63, 337, -1, -1, -1, -1, 342, -1, -1, -1, -1, 347, 348, 349, 350, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, -1, 91, -1, 93, 335, 336, -1, -1, -1, -1, -1, 44, -1, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, 63, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 58, 311, 312, 313, 314, 63, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, 63, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 348, 44, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, 0, 335, 336, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, 41, -1, -1, 44, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, 58, 59, 328, -1, -1, 63, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, 297, -1, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, 91, 360, 93, 362, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 58, 59, -1, 265, 266, 63, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, 91, -1, 93, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 0, -1, 318, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, 347, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, 358, -1, 44, -1, -1, 363, 364, 365, 366, 367, 368, 304, 305, -1, -1, 308, 58, 59, -1, -1, -1, 63, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, -1, 58, 59, 265, 266, -1, 63, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, 91, -1, 93, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 0, 318, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, 335, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 363, 364, 365, 366, 367, 368, 304, 305, -1, -1, 308, -1, 58, 59, -1, -1, -1, 63, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, -1, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, -1, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, 41, 324, 325, 44, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, 58, 59, -1, 61, -1, 63, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, 91, -1, 93, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, 0, 333, 334, 335, 336, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, 41, -1, -1, 44, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, 58, 59, 328, -1, -1, 63, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, 91, 360, 93, 362, 319, 320, 321, 322, 323, 324, 325, 326, -1, 328, 329, -1, -1, -1, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 125, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, }; }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/b1293eda8454686e846e2a9837b348e2983bb423/YyTables.java/clean/src/org/jruby/parser/YyTables.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
4711,
16,
282,
2872,
16,
225,
576,
3600,
16,
282,
5045,
16,
282,
5342,
16,
565,
2371,
16,
225,
29460,
16,
282,
4711,
16,
282,
2872,
16,
565,
1666,
16,
6647,
890,
8285,
16,
282,
5342,
16,
282,
4711,
16,
282,
2872,
16,
282,
9035,
16,
225,
890,
5877,
16,
282,
5342,
16,
282,
26465,
16,
565,
1666,
16,
565,
2371,
16,
6647,
890,
9975,
16,
282,
21119,
16,
282,
12732,
16,
282,
4711,
16,
282,
2872,
16,
282,
12732,
16,
225,
890,
9452,
16,
282,
5342,
16,
282,
21193,
16,
282,
13291,
16,
5411,
1728,
16,
565,
890,
16,
225,
890,
10689,
16,
225,
890,
7301,
16,
282,
17160,
16,
282,
6437,
16,
282,
1728,
16,
282,
18106,
16,
282,
15935,
16,
282,
12732,
16,
5411,
13291,
16,
225,
1059,
2163,
16,
282,
6437,
16,
225,
13822,
16,
282,
9035,
16,
282,
26936,
16,
225,
576,
9975,
16,
282,
3847,
16,
282,
17495,
16,
225,
1666,
11180,
16,
6647,
576,
10525,
16,
565,
1059,
16,
565,
1381,
16,
225,
6580,
29,
16,
282,
1728,
16,
225,
1381,
3787,
16,
225,
1381,
4366,
16,
282,
22431,
16,
282,
6437,
16,
225,
1381,
7301,
16,
6647,
1381,
11212,
16,
282,
5045,
16,
282,
1728,
16,
282,
1728,
16,
225,
1728,
26,
16,
282,
1728,
16,
282,
22431,
16,
225,
6437,
26,
16,
225,
6437,
27,
16,
225,
576,
3672,
16,
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,
760,
727,
3025,
8526,
9016,
1564,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
4711,
16,
282,
2872,
16,
225,
576,
3600,
16,
282,
5045,
16,
282,
5342,
16,
565,
2371,
16,
225,
29460,
16,
282,
4711,
16,
282,
2872,
16,
565,
1666,
16,
6647,
890,
8285,
16,
282,
5342,
16,
282,
4711,
16,
282,
2872,
16,
282,
9035,
16,
225,
890,
5877,
16,
282,
5342,
16,
282,
26465,
16,
565,
1666,
16,
565,
2371,
16,
6647,
890,
9975,
16,
282,
21119,
16,
282,
12732,
16,
282,
4711,
16,
282,
2872,
16,
282,
12732,
16,
225,
890,
9452,
16,
282,
5342,
16,
282,
21193,
16,
282,
13291,
16,
5411,
1728,
16,
565,
890,
16,
225,
2
] |
{ if (histogramDialog != null) histogramDialog.getManager().setInputWindowStart(value); }
|
{ if (histogramDialog != null) histogramDialog.getManager().setInputWindowStart(value); }
|
void setInputWindowStart(int value) { if (histogramDialog != null) histogramDialog.getManager().setInputWindowStart(value); }
|
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
21687,
3829,
1685,
12,
474,
460,
13,
202,
95,
202,
202,
430,
261,
22702,
6353,
480,
446,
13,
1082,
202,
22702,
6353,
18,
588,
1318,
7675,
542,
1210,
3829,
1685,
12,
1132,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
21687,
3829,
1685,
12,
474,
460,
13,
202,
95,
202,
202,
430,
261,
22702,
6353,
480,
446,
13,
1082,
202,
22702,
6353,
18,
588,
1318,
7675,
542,
1210,
3829,
1685,
12,
1132,
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
] |
if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED);
|
if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED);
|
static void terminate () throws VM_PragmaInterruptible { boolean terminateSystem = false; //VM_Scheduler.trace("VM_Thread", "terminate"); VM_Thread myThread = getCurrentThread(); // allow java.lang.Thread.exit() to remove this thread from ThreadGroup myThread.exit(); //-#if RVM_WITH_ADAPTIVE_SYSTEM if (VM.BuildForCpuMonitoring) VM_RuntimeMeasurements.monitorThreadExit();//-#endif synchronized (myThread) { // release anybody waiting on this thread - // begin critical section // VM_Scheduler.threadCreationMutex.lock(); VM_Processor.getCurrentProcessor().disableThreadSwitching(); // in particular, see java.lang.Thread.join() myThread.isAlive = false; myThread.notifyAll(); } // // if the thread terminated because of an exception, remove // the mark from the exception register object, or else the // garbage collector will attempt to relocate its ip field. myThread.hardwareExceptionRegisters.inuse = false; VM_Scheduler.numActiveThreads -= 1; if (myThread.isDaemon) VM_Scheduler.numDaemons -= 1; if (VM_Scheduler.numDaemons == VM_Scheduler.numActiveThreads) { // no non-daemon thread remains terminateSystem = true; } // end critical section // VM_Processor.getCurrentProcessor().enableThreadSwitching(); VM_Scheduler.threadCreationMutex.unlock(); if (VM.VerifyAssertions) VM.assert(VM_Processor.getCurrentProcessor().threadSwitchingEnabled()); if (terminateSystem) { VM.sysExit(0); if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); } //add Native Thread Virtual Processor to dead VP queue // check for native processor VM_Processor p = myThread.nativeAffinity; if ( p != null) { // put VP on dead queue VM_Scheduler.deadVPQueue.enqueue(p); myThread.nativeAffinity = null; // clear native processor myThread.processorAffinity = null; // clear processor affinity//-#if RVM_WITH_PURPLE_VPS VM_Processor.vpStatus[p.vpStatusIndex] = VM_Processor.RVM_VP_GOING_TO_WAIT;//-#endif } // become another thread // begin critical section // VM_Scheduler.threadCreationMutex.lock(); myThread.beingDispatched = true; VM_Scheduler.deadQueue.enqueue(myThread); VM_Scheduler.threadCreationMutex.unlock(); VM_Processor.getCurrentProcessor().dispatch(); if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); } /** * Get this thread's index in VM_Scheduler.threads[] */ public final int getIndex() { return threadSlot; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/a5a05b105574ec4e1a0bacfcc731385b09418803/VM_Thread.java/buggy/rvm/src/vm/scheduler/VM_Thread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
10850,
1832,
1216,
8251,
67,
2050,
9454,
14126,
1523,
288,
565,
1250,
10850,
3163,
273,
629,
31,
565,
368,
7397,
67,
11870,
18,
5129,
2932,
7397,
67,
3830,
3113,
315,
30017,
8863,
565,
8251,
67,
3830,
3399,
3830,
273,
5175,
3830,
5621,
565,
368,
1699,
2252,
18,
4936,
18,
3830,
18,
8593,
1435,
358,
1206,
333,
2650,
628,
4884,
1114,
565,
3399,
3830,
18,
8593,
5621,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
1880,
37,
1856,
5354,
67,
14318,
565,
309,
261,
7397,
18,
3116,
1290,
22142,
18410,
13,
8251,
67,
5576,
7197,
1346,
18,
10259,
3830,
6767,
5621,
759,
17,
7,
409,
430,
565,
3852,
261,
4811,
3830,
13,
288,
368,
3992,
1281,
3432,
7336,
603,
333,
2650,
300,
225,
202,
759,
2376,
11239,
2442,
3639,
368,
202,
7397,
67,
11870,
18,
5930,
9906,
11433,
18,
739,
5621,
202,
7397,
67,
5164,
18,
588,
3935,
5164,
7675,
8394,
3830,
10200,
310,
5621,
202,
202,
759,
316,
6826,
16,
2621,
2252,
18,
4936,
18,
3830,
18,
5701,
1435,
202,
4811,
3830,
18,
291,
10608,
273,
629,
31,
202,
4811,
3830,
18,
12336,
1595,
5621,
565,
289,
202,
565,
368,
565,
368,
309,
326,
2650,
14127,
2724,
434,
392,
1520,
16,
1206,
565,
368,
326,
2267,
628,
326,
1520,
1744,
733,
16,
578,
469,
326,
565,
368,
15340,
8543,
903,
4395,
358,
283,
25450,
2097,
2359,
652,
18,
565,
3399,
3830,
18,
25118,
503,
10277,
18,
267,
1202,
273,
629,
31,
3639,
8251,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
10850,
1832,
1216,
8251,
67,
2050,
9454,
14126,
1523,
288,
565,
1250,
10850,
3163,
273,
629,
31,
565,
368,
7397,
67,
11870,
18,
5129,
2932,
7397,
67,
3830,
3113,
315,
30017,
8863,
565,
8251,
67,
3830,
3399,
3830,
273,
5175,
3830,
5621,
565,
368,
1699,
2252,
18,
4936,
18,
3830,
18,
8593,
1435,
358,
1206,
333,
2650,
628,
4884,
1114,
565,
3399,
3830,
18,
8593,
5621,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
1880,
37,
1856,
5354,
67,
14318,
565,
309,
261,
7397,
18,
3116,
1290,
22142,
18410,
13,
8251,
67,
5576,
7197,
1346,
18,
10259,
3830,
6767,
5621,
759,
17,
7,
409,
430,
565,
3852,
261,
4811,
3830,
13,
288,
368,
3992,
1281,
2
] |
for (int j = 0; j < b.length; j++) { argh[j+i] = b[j]; } return argh;
|
public byte[] toNetwork() { // Ehm. (string.length+"H"+string).getBytes() is probably easier, // but may cause encoding problem (String.getBytes()). byte[] b = getContents(); String realLen = b.length + ""; int holLength = b.length + realLen.length() + 1; realLen = realLen + "H"; byte[] argh = new byte[holLength]; int i = 0; for (; i < realLen.length(); i++) { argh[i] = (byte) realLen.charAt(i); } for (int j = 0; j < b.length; j++) { argh[j+i] = b[j]; } return argh; }
|
49589 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49589/2940f2692c62e6d7de47e1146b19ab74fe12d9a8/Hollerith.java/buggy/nu/dll/lyskom/Hollerith.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
358,
3906,
1435,
288,
202,
759,
512,
76,
81,
18,
261,
1080,
18,
2469,
9078,
44,
6,
15,
1080,
2934,
588,
2160,
1435,
353,
8656,
15857,
16,
202,
759,
1496,
2026,
4620,
2688,
6199,
261,
780,
18,
588,
2160,
1435,
2934,
202,
7229,
8526,
324,
273,
15015,
5621,
202,
780,
2863,
2891,
273,
324,
18,
2469,
397,
1408,
31,
202,
474,
366,
355,
1782,
273,
324,
18,
2469,
397,
2863,
2891,
18,
2469,
1435,
397,
404,
31,
202,
7688,
2891,
273,
2863,
2891,
397,
315,
44,
14432,
202,
7229,
8526,
1501,
76,
273,
394,
1160,
63,
76,
355,
1782,
15533,
202,
474,
277,
273,
374,
31,
202,
1884,
261,
31,
277,
411,
2863,
2891,
18,
2469,
5621,
277,
27245,
288,
202,
565,
1501,
76,
63,
77,
65,
273,
261,
7229,
13,
2863,
2891,
18,
3001,
861,
12,
77,
1769,
202,
97,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
324,
18,
2469,
31,
525,
27245,
288,
202,
565,
1501,
76,
63,
78,
15,
77,
65,
273,
324,
63,
78,
15533,
202,
97,
202,
2463,
1501,
76,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1160,
8526,
358,
3906,
1435,
288,
202,
759,
512,
76,
81,
18,
261,
1080,
18,
2469,
9078,
44,
6,
15,
1080,
2934,
588,
2160,
1435,
353,
8656,
15857,
16,
202,
759,
1496,
2026,
4620,
2688,
6199,
261,
780,
18,
588,
2160,
1435,
2934,
202,
7229,
8526,
324,
273,
15015,
5621,
202,
780,
2863,
2891,
273,
324,
18,
2469,
397,
1408,
31,
202,
474,
366,
355,
1782,
273,
324,
18,
2469,
397,
2863,
2891,
18,
2469,
1435,
397,
404,
31,
202,
7688,
2891,
273,
2863,
2891,
397,
315,
44,
14432,
202,
7229,
8526,
1501,
76,
273,
394,
1160,
63,
76,
355,
1782,
15533,
202,
474,
277,
273,
374,
31,
202,
1884,
261,
31,
277,
411,
2863,
2891,
18,
2
] |
|
_context.jobQueue().addJob(r);
|
getContext().jobQueue().addJob(r);
|
private void requestParticipation(TunnelInfo participant) { // find the info about who we're looking for RouterInfo target = _context.netDb().lookupRouterInfoLocally(participant.getThisHop()); if (target == null) { if (_log.shouldLog(Log.ERROR)) _log.error("Error - no db info known for participant " + participant.getThisHop()); fail(); return; } if (target.getIdentity().getHash().equals(_context.routerHash())) { // short circuit the ok okLocalParticipation(participant); return; } // select send method [outbound tunnel or garlic through peers] TunnelId outboundTunnel = selectOutboundTunnel(); if (outboundTunnel == null) { if (_log.shouldLog(Log.WARN)) _log.warn("No outbound tunnels! unable to request a new tunnel!"); fail(); return; } // select reply peer [peer to which SourceRouteReply should be sent, and // from which the reply will be forwarded to an inbound tunnel] RouterInfo replyPeer = selectReplyPeer(participant); if (replyPeer == null) { if (_log.shouldLog(Log.WARN)) _log.warn("No reply peers available! unable to request a new tunnel!"); fail(); return; } // select inbound tunnel gateway TunnelGateway inboundGateway = selectInboundGateway(participant, replyPeer); if (inboundGateway == null) { if (_log.shouldLog(Log.ERROR)) _log.error("Unable to find an inbound gateway"); fail(); return; } SessionKey wrappedKey = new SessionKey(); Set wrappedTags = new HashSet(64); PublicKey wrappedTo = new PublicKey(); RequestState state = new RequestState(wrappedKey, wrappedTags, wrappedTo, participant, inboundGateway, replyPeer, outboundTunnel, target); Request r = new Request(state); _context.jobQueue().addJob(r); }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/e737e5c9507ed0d463dc9e45a8f63657f466b177/RequestTunnelJob.java/buggy/router/java/src/net/i2p/router/tunnelmanager/RequestTunnelJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
590,
1988,
24629,
367,
12,
20329,
966,
14188,
13,
288,
3639,
368,
1104,
326,
1123,
2973,
10354,
732,
4565,
7849,
364,
3639,
9703,
966,
1018,
273,
389,
2472,
18,
2758,
4331,
7675,
8664,
8259,
966,
1333,
1230,
12,
2680,
14265,
18,
588,
2503,
27461,
10663,
3639,
309,
261,
3299,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
668,
300,
1158,
1319,
1123,
4846,
364,
14188,
315,
397,
14188,
18,
588,
2503,
27461,
10663,
5411,
2321,
5621,
5411,
327,
31,
3639,
289,
3639,
309,
261,
3299,
18,
588,
4334,
7675,
588,
2310,
7675,
14963,
24899,
2472,
18,
10717,
2310,
1435,
3719,
288,
5411,
368,
3025,
12937,
326,
1529,
5411,
1529,
2042,
1988,
24629,
367,
12,
2680,
14265,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
2027,
1366,
707,
306,
659,
3653,
14825,
578,
314,
13007,
335,
3059,
10082,
65,
3639,
399,
8564,
548,
11663,
20329,
273,
2027,
17873,
20329,
5621,
3639,
309,
261,
659,
3653,
20329,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
7734,
389,
1330,
18,
8935,
2932,
2279,
11663,
14825,
87,
5,
225,
13496,
358,
590,
279,
394,
14825,
4442,
1769,
5411,
2321,
5621,
5411,
327,
31,
3639,
289,
7734,
368,
2027,
4332,
4261,
306,
12210,
358,
1492,
4998,
3255,
7817,
1410,
506,
3271,
16,
471,
540,
368,
628,
1492,
326,
4332,
903,
506,
19683,
358,
392,
13357,
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,
590,
1988,
24629,
367,
12,
20329,
966,
14188,
13,
288,
3639,
368,
1104,
326,
1123,
2973,
10354,
732,
4565,
7849,
364,
3639,
9703,
966,
1018,
273,
389,
2472,
18,
2758,
4331,
7675,
8664,
8259,
966,
1333,
1230,
12,
2680,
14265,
18,
588,
2503,
27461,
10663,
3639,
309,
261,
3299,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
668,
300,
1158,
1319,
1123,
4846,
364,
14188,
315,
397,
14188,
18,
588,
2503,
27461,
10663,
5411,
2321,
5621,
5411,
327,
31,
3639,
289,
3639,
309,
261,
3299,
18,
588,
4334,
7675,
588,
2310,
7675,
14963,
24899,
2472,
18,
10717,
2310,
1435,
3719,
288,
2
] |
if (document == newdoc)
|
if (oldDocument == newDocument)
|
public void setDocument(Document newdoc) { Document document = getDocument(); if (document == newdoc) return; setDocument(newdoc); firePropertyChange("document", document, newdoc); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/9e763280cf1369c9681ea91b32ae758840a76dc3/JFormattedTextField.java/buggy/core/src/classpath/javax/javax/swing/JFormattedTextField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
2519,
12,
2519,
394,
2434,
13,
225,
288,
565,
4319,
1668,
273,
9956,
5621,
565,
309,
261,
1673,
2519,
422,
26814,
13,
1377,
327,
31,
3639,
444,
2519,
12,
2704,
2434,
1769,
565,
4452,
1396,
3043,
2932,
5457,
3113,
1668,
16,
394,
2434,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
2519,
12,
2519,
394,
2434,
13,
225,
288,
565,
4319,
1668,
273,
9956,
5621,
565,
309,
261,
1673,
2519,
422,
26814,
13,
1377,
327,
31,
3639,
444,
2519,
12,
2704,
2434,
1769,
565,
4452,
1396,
3043,
2932,
5457,
3113,
1668,
16,
394,
2434,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (Character.isDigit(cline[parseStart])) return;
|
if (Character.isDigit(cline[parseStart])) return;
|
protected void processSequenceLine(String line, StreamParser parser) throws IllegalSymbolException, ParseException { char[] cline = line.toCharArray(); int parseStart = 0; int parseEnd = 0; while (parseStart < cline.length) { while (parseStart < cline.length && cline[parseStart] == ' ') ++parseStart; if (parseStart >= cline.length) break; if (Character.isDigit(cline[parseStart])) return; parseEnd = parseStart + 1; while (parseEnd < cline.length && cline[parseEnd] != ' ') ++parseEnd; // Got a segment of read sequence data parser.characters(cline, parseStart, parseEnd - parseStart); parseStart = parseEnd; } }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/2fd053162b0d8c1b080386e5a495cde4038b325b/EmblLikeFormat.java/buggy/src/org/biojava/bio/seq/io/EmblLikeFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
4021,
1670,
12,
780,
980,
16,
3961,
2678,
2082,
13,
3639,
1216,
2141,
5335,
503,
16,
10616,
565,
288,
202,
3001,
8526,
927,
558,
273,
980,
18,
869,
15936,
5621,
202,
474,
1109,
1685,
273,
374,
31,
202,
474,
1109,
1638,
282,
273,
374,
31,
202,
17523,
261,
2670,
1685,
411,
927,
558,
18,
2469,
13,
202,
95,
202,
565,
1323,
261,
2670,
1685,
411,
927,
558,
18,
2469,
597,
927,
558,
63,
2670,
1685,
65,
422,
296,
8624,
202,
202,
9904,
2670,
1685,
31,
202,
565,
309,
261,
2670,
1685,
1545,
927,
558,
18,
2469,
13,
202,
202,
8820,
31,
202,
565,
309,
261,
7069,
18,
291,
10907,
12,
830,
558,
63,
2670,
1685,
22643,
202,
202,
2463,
31,
202,
565,
1109,
1638,
273,
1109,
1685,
397,
404,
31,
202,
565,
1323,
261,
2670,
1638,
411,
927,
558,
18,
2469,
597,
927,
558,
63,
2670,
1638,
65,
480,
296,
8624,
202,
202,
9904,
2670,
1638,
31,
202,
565,
368,
19578,
279,
3267,
434,
855,
3102,
501,
202,
565,
2082,
18,
20558,
12,
830,
558,
16,
1109,
1685,
16,
1109,
1638,
300,
1109,
1685,
1769,
202,
565,
1109,
1685,
273,
1109,
1638,
31,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
1207,
4021,
1670,
12,
780,
980,
16,
3961,
2678,
2082,
13,
3639,
1216,
2141,
5335,
503,
16,
10616,
565,
288,
202,
3001,
8526,
927,
558,
273,
980,
18,
869,
15936,
5621,
202,
474,
1109,
1685,
273,
374,
31,
202,
474,
1109,
1638,
282,
273,
374,
31,
202,
17523,
261,
2670,
1685,
411,
927,
558,
18,
2469,
13,
202,
95,
202,
565,
1323,
261,
2670,
1685,
411,
927,
558,
18,
2469,
597,
927,
558,
63,
2670,
1685,
65,
422,
296,
8624,
202,
202,
9904,
2670,
1685,
31,
202,
565,
309,
261,
2670,
1685,
1545,
927,
558,
18,
2469,
13,
202,
202,
8820,
31,
202,
565,
309,
261,
7069,
18,
291,
10907,
12,
830,
558,
63,
2670,
1685,
2
] |
public void paintControl(PaintEvent pe) { Color cBlack = new Color(this.getDisplay(), 0, 0, 0); Color cWhite = new Color(this.getDisplay(), 255, 255, 255); GC gc = pe.gc; gc.setForeground(cBlack);
|
public void paintControl(PaintEvent pe) { Color cBlack = new Color(this.getDisplay(), 0, 0, 0); Color cWhite = new Color(this.getDisplay(), 255, 255, 255); GC gc = pe.gc; gc.setForeground(cBlack);
|
public void paintControl(PaintEvent pe) { Color cBlack = new Color(this.getDisplay(), 0, 0, 0); Color cWhite = new Color(this.getDisplay(), 255, 255, 255); GC gc = pe.gc; gc.setForeground(cBlack); int iCellWidth = this.getSize().x / 8; int iCellHeight = this.getSize().y / 5; for (int iR = 0; iR < 5; iR++) { for (int iC = 0; iC < 8; iC++) { try { gc.setBackground(colorMap[(iR * 8) + iC]); } catch (Throwable e ) { // TODO Auto-generated catch block e.printStackTrace(); } gc.fillRectangle(iC * iCellWidth, iR * iCellHeight, iCellWidth, iCellHeight); // Hilight currently selected color if it exists in this list if (colorSelection != null && colorSelection.equals(colorMap[(iR * 8) + iC])) { gc.drawRectangle(iC * iCellWidth, iR * iCellHeight, iCellWidth - 2, iCellHeight - 2); gc.setForeground(cWhite); gc.drawRectangle(iC * iCellWidth + 1, iR * iCellHeight + 1, iCellWidth - 3, iCellHeight - 3); gc.setForeground(cBlack); } } } cBlack.dispose(); cWhite.dispose(); gc.dispose(); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a913ff8af0f2b5b295b22dbb8880b014d596b568/FillChooserComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
3367,
12,
12699,
1133,
2804,
13,
565,
288,
3639,
5563,
276,
13155,
273,
394,
5563,
12,
2211,
18,
588,
4236,
9334,
374,
16,
374,
16,
374,
1769,
3639,
5563,
276,
13407,
273,
394,
5563,
12,
2211,
18,
588,
4236,
9334,
4561,
16,
4561,
16,
4561,
1769,
3639,
15085,
8859,
273,
2804,
18,
13241,
31,
3639,
8859,
18,
542,
23206,
12,
71,
13155,
1769,
3639,
509,
277,
4020,
2384,
273,
333,
18,
588,
1225,
7675,
92,
342,
1725,
31,
3639,
509,
277,
4020,
2686,
273,
333,
18,
588,
1225,
7675,
93,
342,
1381,
31,
3639,
364,
261,
474,
277,
54,
273,
374,
31,
277,
54,
411,
1381,
31,
277,
54,
27245,
3639,
288,
5411,
364,
261,
474,
277,
39,
273,
374,
31,
277,
39,
411,
1725,
31,
277,
39,
27245,
5411,
288,
7734,
775,
7734,
288,
10792,
8859,
18,
542,
8199,
12,
3266,
863,
63,
12,
77,
54,
380,
1725,
13,
397,
277,
39,
19226,
7734,
289,
7734,
1044,
261,
15155,
425,
262,
7734,
288,
10792,
368,
2660,
8064,
17,
11168,
1044,
1203,
10792,
425,
18,
1188,
6332,
5621,
7734,
289,
7734,
8859,
18,
5935,
19463,
12,
77,
39,
380,
277,
4020,
2384,
16,
277,
54,
380,
277,
4020,
2686,
16,
277,
4020,
2384,
16,
277,
4020,
2686,
1769,
7734,
368,
670,
330,
750,
4551,
3170,
2036,
309,
518,
1704,
316,
333,
666,
7734,
309,
261,
3266,
6233,
480,
446,
597,
2036,
6233,
18,
14963,
12,
3266,
863,
63,
12,
77,
54,
380,
1725,
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,
12574,
3367,
12,
12699,
1133,
2804,
13,
565,
288,
3639,
5563,
276,
13155,
273,
394,
5563,
12,
2211,
18,
588,
4236,
9334,
374,
16,
374,
16,
374,
1769,
3639,
5563,
276,
13407,
273,
394,
5563,
12,
2211,
18,
588,
4236,
9334,
4561,
16,
4561,
16,
4561,
1769,
3639,
15085,
8859,
273,
2804,
18,
13241,
31,
3639,
8859,
18,
542,
23206,
12,
71,
13155,
1769,
3639,
509,
277,
4020,
2384,
273,
333,
18,
588,
1225,
7675,
92,
342,
1725,
31,
3639,
509,
277,
4020,
2686,
273,
333,
18,
588,
1225,
7675,
93,
342,
1381,
31,
3639,
364,
261,
474,
277,
54,
273,
374,
31,
277,
54,
411,
1381,
31,
277,
54,
27245,
3639,
288,
5411,
364,
261,
2
] |
public boolean isSet(org.quickfix.field.SettlInstID field)
|
public boolean isSet(quickfix.field.SettlInstID field)
|
public boolean isSet(org.quickfix.field.SettlInstID field) { return isSetField(field); }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SettlementInstructions.java/clean/src/java/src/quickfix/fix41/SettlementInstructions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
694,
6172,
10773,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
694,
6172,
10773,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
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
] |
Color dc = new Color(darken(c.getRed()), darken(c.getGreen()), darken(c .getBlue())); Color lc = new Color(lighten(c.getRed()), lighten(c.getGreen()), lighten(c.getBlue())); g.setColor(c); g.fillRect(i * CELL, j * CELL, CELL - 1, CELL - 1); g.setColor(dc); g.drawLine(i * CELL, (j + 1) * CELL - 1, (i + 1) * CELL - 1, (j + 1) * CELL - 1); g.drawLine((i + 1) * CELL - 1, (j + 1) * CELL - 1, (i + 1) * CELL - 1, j * CELL); g.setColor(lc); g.drawLine(i * CELL, (j + 1) * CELL - 1, i * CELL, j * CELL); g.drawLine(i * CELL, j * CELL, (i + 1) * CELL - 1, j * CELL); }
|
Color dc = new Color(darken(c.getRed()), darken(c.getGreen()), darken(c .getBlue())); Color lc = new Color(lighten(c.getRed()), lighten(c.getGreen()), lighten(c.getBlue())); g.setColor(c); g.fillRect(i * CELL, j * CELL, CELL - 1, CELL - 1); g.setColor(dc); g.drawLine(i * CELL, (j + 1) * CELL - 1, (i + 1) * CELL - 1, (j + 1) * CELL - 1); g.drawLine((i + 1) * CELL - 1, (j + 1) * CELL - 1, (i + 1) * CELL - 1, j * CELL); g.setColor(lc); g.drawLine(i * CELL, (j + 1) * CELL - 1, i * CELL, j * CELL); g.drawLine(i * CELL, j * CELL, (i + 1) * CELL - 1, j * CELL); }
|
public void paintBox(Graphics g, int i, int j, Color c) { Color dc = new Color(darken(c.getRed()), darken(c.getGreen()), darken(c .getBlue())); Color lc = new Color(lighten(c.getRed()), lighten(c.getGreen()), lighten(c.getBlue())); g.setColor(c); g.fillRect(i * CELL, j * CELL, CELL - 1, CELL - 1); g.setColor(dc); g.drawLine(i * CELL, (j + 1) * CELL - 1, (i + 1) * CELL - 1, (j + 1) * CELL - 1); g.drawLine((i + 1) * CELL - 1, (j + 1) * CELL - 1, (i + 1) * CELL - 1, j * CELL); g.setColor(lc); g.drawLine(i * CELL, (j + 1) * CELL - 1, i * CELL, j * CELL); g.drawLine(i * CELL, j * CELL, (i + 1) * CELL - 1, j * CELL); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/46f36bc5b99721f81a929f1771c801358c710fa2/Tetris.java/clean/gui/src/test/org/jnode/test/gui/Tetris.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
3514,
12,
17558,
314,
16,
509,
277,
16,
509,
525,
16,
5563,
276,
13,
288,
202,
202,
2957,
6744,
273,
394,
5563,
12,
25045,
275,
12,
71,
18,
588,
3715,
1435,
3631,
23433,
275,
12,
71,
18,
588,
21453,
1435,
3631,
23433,
275,
12,
71,
9506,
202,
18,
588,
27986,
1435,
10019,
202,
202,
2957,
9109,
273,
394,
5563,
12,
5099,
275,
12,
71,
18,
588,
3715,
1435,
3631,
9052,
275,
12,
71,
18,
588,
21453,
1435,
3631,
9506,
202,
5099,
275,
12,
71,
18,
588,
27986,
1435,
10019,
202,
202,
75,
18,
542,
2957,
12,
71,
1769,
202,
202,
75,
18,
5935,
6120,
12,
77,
380,
385,
21943,
16,
525,
380,
385,
21943,
16,
385,
21943,
300,
404,
16,
385,
21943,
300,
404,
1769,
202,
202,
75,
18,
542,
2957,
12,
7201,
1769,
202,
202,
75,
18,
9446,
1670,
12,
77,
380,
385,
21943,
16,
261,
78,
397,
404,
13,
380,
385,
21943,
300,
404,
16,
261,
77,
397,
404,
13,
380,
385,
21943,
300,
404,
16,
261,
78,
397,
404,
13,
9506,
202,
14,
385,
21943,
300,
404,
1769,
202,
202,
75,
18,
9446,
1670,
12443,
77,
397,
404,
13,
380,
385,
21943,
300,
404,
16,
261,
78,
397,
404,
13,
380,
385,
21943,
300,
404,
16,
261,
77,
397,
404,
13,
380,
385,
21943,
300,
404,
16,
9506,
202,
78,
380,
385,
21943,
1769,
202,
202,
75,
18,
542,
2957,
12,
17704,
1769,
202,
202,
75,
18,
9446,
1670,
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,
12574,
3514,
12,
17558,
314,
16,
509,
277,
16,
509,
525,
16,
5563,
276,
13,
288,
202,
202,
2957,
6744,
273,
394,
5563,
12,
25045,
275,
12,
71,
18,
588,
3715,
1435,
3631,
23433,
275,
12,
71,
18,
588,
21453,
1435,
3631,
23433,
275,
12,
71,
9506,
202,
18,
588,
27986,
1435,
10019,
202,
202,
2957,
9109,
273,
394,
5563,
12,
5099,
275,
12,
71,
18,
588,
3715,
1435,
3631,
9052,
275,
12,
71,
18,
588,
21453,
1435,
3631,
9506,
202,
5099,
275,
12,
71,
18,
588,
27986,
1435,
10019,
202,
202,
75,
18,
542,
2957,
12,
71,
1769,
202,
202,
75,
18,
5935,
6120,
12,
77,
380,
385,
21943,
16,
525,
380,
385,
21943,
2
] |
matches = new Hashtable();
|
matches = new HashMap();
|
public NamespaceFilter(DumpWriter sink, String configString) { super(sink); invert = configString.startsWith("!"); matches = new Hashtable(); String[] namespaceKeys = { "NS_MAIN", "NS_TALK", "NS_USER", "NS_USER_TALK", "NS_PROJECT", "NS_PROJECT_TALK", "NS_IMAGE", "NS_IMAGE_TALK", "NS_MEDIAWIKI", "NS_MEDIAWIKI_TALK", "NS_TEMPLATE", "NS_TEMPLATE_TALK", "NS_HELP", "NS_HELP_TALK", "NS_CATEGORY", "NS_CATEGORY_TALK" }; String[] itemList = configString.trim().split(","); for (int i = 0; i < itemList.length; i++) { String keyString = itemList[i]; String trimmed = keyString.trim(); try { int key = Integer.parseInt(trimmed); matches.put(new Integer(key), trimmed); } catch (NumberFormatException e) { for (int key = 0; key < namespaceKeys.length; key++) { if (trimmed == namespaceKeys[key]) matches.put(new Integer(key), trimmed); } } } }
|
14299 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14299/e15653f7c55f644e06c117ba2a3205e75aac543d/NamespaceFilter.java/buggy/src/org/mediawiki/importer/NamespaceFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6005,
1586,
12,
10628,
2289,
9049,
16,
514,
642,
780,
13,
288,
202,
202,
9565,
12,
17074,
1769,
9506,
202,
267,
1097,
273,
642,
780,
18,
17514,
1190,
2932,
4442,
1769,
202,
202,
8436,
273,
394,
18559,
5621,
9506,
202,
780,
8526,
1981,
2396,
273,
288,
1082,
202,
6,
3156,
67,
19803,
3113,
1082,
202,
6,
3156,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
4714,
3113,
1082,
202,
6,
3156,
67,
4714,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
17147,
3113,
1082,
202,
6,
3156,
67,
17147,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
13603,
3113,
1082,
202,
6,
3156,
67,
13603,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
15971,
12999,
45,
47,
45,
3113,
1082,
202,
6,
3156,
67,
15971,
12999,
45,
47,
45,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
12205,
3113,
1082,
202,
6,
3156,
67,
12205,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
27396,
3113,
1082,
202,
6,
3156,
67,
27396,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
24847,
3113,
1082,
202,
6,
3156,
67,
24847,
67,
20849,
47,
6,
289,
31,
9506,
202,
780,
8526,
761,
682,
273,
642,
780,
18,
5290,
7675,
4939,
2932,
16,
8863,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
761,
682,
18,
2469,
31,
277,
27245,
288,
1082,
202,
780,
498,
780,
273,
761,
682,
63,
77,
15533,
1082,
202,
780,
12350,
273,
498,
780,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6005,
1586,
12,
10628,
2289,
9049,
16,
514,
642,
780,
13,
288,
202,
202,
9565,
12,
17074,
1769,
9506,
202,
267,
1097,
273,
642,
780,
18,
17514,
1190,
2932,
4442,
1769,
202,
202,
8436,
273,
394,
18559,
5621,
9506,
202,
780,
8526,
1981,
2396,
273,
288,
1082,
202,
6,
3156,
67,
19803,
3113,
1082,
202,
6,
3156,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
4714,
3113,
1082,
202,
6,
3156,
67,
4714,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
17147,
3113,
1082,
202,
6,
3156,
67,
17147,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
67,
13603,
3113,
1082,
202,
6,
3156,
67,
13603,
67,
20849,
47,
3113,
1082,
202,
6,
3156,
2
] |
private void resolvePushAttack(PhysicalResult pr, int lastEntityId) { final PushAttackAction paa = (PushAttackAction)pr.aaa; final Entity ae = game.getEntity(paa.getEntityId()); // PLEASE NOTE: buildings are *never* the target of a "push". final Entity te = game.getEntity(paa.getTargetId()); // get roll and ToHitData from the PhysicalResult int roll = pr.roll; final ToHitData toHit = pr.toHit; // was this push resolved earlier? if (pr.pushBackResolved) { return; } if (lastEntityId != paa.getEntityId()) { phaseReport.append("\nPhysical attacks for " ).append( ae.getDisplayName() ).append( "\n"); } phaseReport.append(" Pushing " ).append( te.getDisplayName());// // should we even bother?// if (te.isDestroyed() || te.isDoomed() || te.crew.isDead()) {// phaseReport.append(" but the target is already destroyed!\n");// return;// } if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append(", but the push is impossible (" ).append( toHit.getDesc() ).append( ")\n"); return; } phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); // report the roll phaseReport.append("rolls " ).append( roll ).append( " : "); // check if our target has a push against us, too, and get it PhysicalResult targetPushResult = null; for (Enumeration i = physicalResults.elements(); i.hasMoreElements();) { PhysicalResult tpr = (PhysicalResult)i.nextElement(); if (tpr.aaa.getEntityId() == te.getId() && tpr.aaa instanceof PushAttackAction && tpr.aaa.getTargetId() == ae.getId() ) { targetPushResult = tpr; } } // if our target has a push against us, we need to resolve both now if (targetPushResult != null) { // do both hit? if (targetPushResult.roll >= targetPushResult.toHit.getValue() && roll >= toHit.getValue()) { phaseReport.append("succeeds: but ") .append(te.getDisplayName()) .append(" pushed back!.\n") .append("\nPhysical attacks for " ) .append( te.getDisplayName() ).append( "\n") .append(" Pushing " ).append( ae.getDisplayName()) .append("; needs " ).append( toHit.getValue() ) .append( ", ") .append("rolls " ).append( roll ).append( " : ") .append("succeeds: but ") .append(ae.getDisplayName()) .append(" pushed back!.\n"); PilotingRollData targetPushPRD = new PilotingRollData(te.getId(), getKickPushPSRMod(ae, te, 0), "was pushed"); targetPushPRD.setCumulative(false); // see Bug# 811987 for more info PilotingRollData pushPRD = new PilotingRollData(ae.getId(), getKickPushPSRMod(ae, te, 0), "was pushed"); pushPRD.setCumulative(false); // see Bug# 811987 for more info game.addPSR(pushPRD); game.addPSR(targetPushPRD); targetPushResult.pushBackResolved = true; return; } } // do we hit? if (roll < toHit.getValue()) { phaseReport.append("misses.\n"); return; } // we hit... int direction = ae.getFacing(); Coords src = te.getPosition(); Coords dest = src.translated(direction); PilotingRollData pushPRD = new PilotingRollData(te.getId(), getKickPushPSRMod(ae, te, 0), "was pushed"); pushPRD.setCumulative(false); // see Bug# 811987 for more info if (Compute.isValidDisplacement(game, te.getId(), te.getPosition(), direction)) { phaseReport.append("succeeds: target is pushed "); if (game.board.contains(dest)) { phaseReport.append("into hex " ).append( dest.getBoardNum() ).append( "\n"); } else { phaseReport.append("off the board.\n"); } doEntityDisplacement(te, src, dest, pushPRD); // if push actually moved the target, attacker follows thru if (!te.getPosition().equals(src)) { ae.setPosition(src); } } else { phaseReport.append("succeeds, but target can't be moved.\n"); game.addPSR(pushPRD); } phaseReport.append("\n"); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c0328a2523132c39c873640fb6b92ffa1f64e7fc/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
7621,
3075,
484,
12,
18136,
1253,
846,
16,
509,
1142,
18029,
13,
288,
3639,
727,
8547,
3075,
484,
1803,
6790,
69,
273,
261,
7621,
3075,
484,
1803,
13,
683,
18,
26676,
31,
377,
202,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
84,
7598,
18,
588,
18029,
10663,
3639,
368,
453,
22357,
5219,
30,
1361,
899,
854,
380,
4644,
502,
14,
326,
1018,
434,
279,
315,
6206,
9654,
3639,
727,
3887,
6489,
273,
7920,
18,
588,
1943,
12,
84,
7598,
18,
588,
2326,
548,
10663,
3639,
368,
336,
5824,
471,
2974,
13616,
751,
628,
326,
19712,
1253,
3639,
509,
5824,
273,
846,
18,
2693,
31,
3639,
727,
2974,
13616,
751,
358,
13616,
273,
846,
18,
869,
13616,
31,
7734,
368,
1703,
333,
1817,
4640,
13805,
35,
3639,
309,
261,
683,
18,
6206,
2711,
12793,
13,
288,
540,
202,
2463,
31,
3639,
289,
7734,
309,
261,
2722,
18029,
480,
6790,
69,
18,
588,
18029,
10756,
288,
5411,
6855,
4820,
18,
6923,
31458,
82,
18136,
28444,
364,
315,
262,
18,
6923,
12,
14221,
18,
588,
20524,
1435,
262,
18,
6923,
12,
1548,
82,
8863,
3639,
289,
3639,
6855,
4820,
18,
6923,
2932,
565,
8547,
310,
315,
262,
18,
6923,
12,
6489,
18,
588,
20524,
10663,
759,
3639,
368,
1410,
732,
5456,
23440,
35,
759,
3639,
309,
261,
736,
18,
291,
28414,
1435,
747,
6489,
18,
291,
3244,
362,
329,
1435,
747,
6489,
18,
1793,
91,
18,
291,
11852,
10756,
288,
759,
5411,
6855,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
7621,
3075,
484,
12,
18136,
1253,
846,
16,
509,
1142,
18029,
13,
288,
3639,
727,
8547,
3075,
484,
1803,
6790,
69,
273,
261,
7621,
3075,
484,
1803,
13,
683,
18,
26676,
31,
377,
202,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
84,
7598,
18,
588,
18029,
10663,
3639,
368,
453,
22357,
5219,
30,
1361,
899,
854,
380,
4644,
502,
14,
326,
1018,
434,
279,
315,
6206,
9654,
3639,
727,
3887,
6489,
273,
7920,
18,
588,
1943,
12,
84,
7598,
18,
588,
2326,
548,
10663,
3639,
368,
336,
5824,
471,
2974,
13616,
751,
628,
326,
19712,
1253,
3639,
509,
5824,
273,
846,
18,
2693,
31,
3639,
727,
2974,
13616,
751,
358,
13616,
273,
2
] |
||
defaultLayout.addTrim(fastViewBar, side,
|
defaultLayout.addTrim(side, fastViewBar,
|
public void update(boolean changed) { IWindowTrim reference = null; int side = fastViewBar.getSide(); fastViewBar.getControl().setLayoutData( new TrimLayoutData(false, SWT.DEFAULT, SWT.DEFAULT)); if (side == SWT.BOTTOM && getWindowConfigurer().getShowStatusLine()) { reference = getStatusLineTrim(); } defaultLayout.addTrim(fastViewBar, side, reference); WorkbenchPage page = getActiveWorkbenchPage(); if (page != null) { Perspective persp = page.getActivePerspective(); IViewReference activeFastView = persp .getActiveFastView(); if (activeFastView != null) { persp.setActiveFastView(null); persp.setActiveFastView(activeFastView); } } LayoutUtil.resize(fastViewBar.getControl()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0a88114a4db76de6611663f5760e59600623bbd3/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1089,
12,
6494,
3550,
13,
288,
10792,
467,
3829,
14795,
2114,
273,
446,
31,
10792,
509,
4889,
273,
4797,
1767,
5190,
18,
588,
8895,
5621,
10792,
4797,
1767,
5190,
18,
588,
3367,
7675,
542,
3744,
751,
12,
18701,
394,
7105,
3744,
751,
12,
5743,
16,
348,
8588,
18,
5280,
16,
4766,
565,
348,
8588,
18,
5280,
10019,
10792,
309,
261,
5564,
422,
348,
8588,
18,
28891,
18701,
597,
26156,
809,
11278,
7675,
588,
5706,
1482,
1670,
10756,
288,
13491,
2114,
273,
5870,
1670,
14795,
5621,
10792,
289,
10792,
805,
3744,
18,
1289,
14795,
12,
5564,
16,
4797,
1767,
5190,
16,
18701,
2114,
1769,
10792,
4147,
22144,
1964,
1363,
273,
11960,
2421,
22144,
1964,
5621,
10792,
309,
261,
2433,
480,
446,
13,
288,
13491,
453,
414,
16772,
13508,
84,
273,
1363,
18,
588,
3896,
14781,
16772,
5621,
13491,
467,
1767,
2404,
2695,
12305,
1767,
273,
13508,
84,
27573,
263,
588,
3896,
12305,
1767,
5621,
13491,
309,
261,
3535,
12305,
1767,
480,
446,
13,
288,
18701,
13508,
84,
18,
542,
3896,
12305,
1767,
12,
2011,
1769,
18701,
13508,
84,
18,
542,
3896,
12305,
1767,
12,
3535,
12305,
1767,
1769,
13491,
289,
10792,
289,
10792,
9995,
1304,
18,
15169,
12,
8076,
1767,
5190,
18,
588,
3367,
10663,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1089,
12,
6494,
3550,
13,
288,
10792,
467,
3829,
14795,
2114,
273,
446,
31,
10792,
509,
4889,
273,
4797,
1767,
5190,
18,
588,
8895,
5621,
10792,
4797,
1767,
5190,
18,
588,
3367,
7675,
542,
3744,
751,
12,
18701,
394,
7105,
3744,
751,
12,
5743,
16,
348,
8588,
18,
5280,
16,
4766,
565,
348,
8588,
18,
5280,
10019,
10792,
309,
261,
5564,
422,
348,
8588,
18,
28891,
18701,
597,
26156,
809,
11278,
7675,
588,
5706,
1482,
1670,
10756,
288,
13491,
2114,
273,
5870,
1670,
14795,
5621,
10792,
289,
10792,
805,
3744,
18,
1289,
14795,
12,
5564,
16,
4797,
1767,
5190,
16,
18701,
2114,
1769,
10792,
4147,
22144,
1964,
1363,
273,
11960,
2421,
22144,
1964,
5621,
10792,
309,
2
] |
boolean r = interrupt_flag; interrupt_flag = false; return r;
|
return interrupt_flag;
|
public boolean isInterrupted () { boolean r = interrupt_flag; interrupt_flag = false; return r; }
|
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/9f3113e8a7b81eb35512df22ad15046b6d0ede75/Thread.java/buggy/libjava/java/lang/Thread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
24485,
1832,
225,
288,
565,
1250,
436,
273,
13123,
67,
6420,
31,
565,
13123,
67,
6420,
273,
629,
31,
565,
327,
436,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
24485,
1832,
225,
288,
565,
1250,
436,
273,
13123,
67,
6420,
31,
565,
13123,
67,
6420,
273,
629,
31,
565,
327,
436,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < cb.colspan; i++) cb.contentWidth += tableBox.columns[col + i];
|
for (int i = 0; (i < cb.colspan) && (col + i < tableBox.columns.length); i++) cb.contentWidth += tableBox.columns[col + i];
|
private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.contentWidth) { int extra = (tableBox.contentWidth - sum) / tableBox.columns.length; for (int i = 0; i < tableBox.columns.length; i++) tableBox.columns[i] += extra; } else { //if sum is greater, we probably screwed up earlier, just do something reasonable tableBox.contentWidth = sum; } for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc; int col = 0; int x = borderSpacingHorizontal; for (Iterator cbi = row.getChildIterator(); cbi.hasNext();) { while (tableBox.columnRows[col] != 0) { x += borderSpacingHorizontal + tableBox.columns[col]; col = col + 1; } CellBox cb = (CellBox) cbi.next(); cb.contentWidth = 0; for (int i = 0; i < cb.colspan; i++) cb.contentWidth += tableBox.columns[col + i]; cb.contentWidth += borderSpacingHorizontal * (cb.colspan - 1); cb.contentWidth -= cb.leftMBP + cb.rightMBP; cb.x = x; x += cb.getWidth() + borderSpacingHorizontal; for (int j = 0; j < cb.colspan; j++) { tableBox.columnRows[col + j] = cb.rowspan; } col += cb.colspan; } for (int j = 0; j < tableBox.columns.length; j++) { tableBox.columnRows[j]--; } } else XRLog.layout(Level.WARNING, "Can't fix widths of " + tc.getClass().getName() + " yet!"); } }
|
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1d6593b8d85db0ea8304a9b958d33cf8a275de3b/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2917,
22407,
12,
1388,
3514,
1014,
3514,
16,
509,
5795,
18006,
14457,
13,
288,
3639,
509,
2142,
273,
5795,
18006,
14457,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
3514,
18,
5112,
18,
2469,
31,
277,
27245,
2142,
1011,
1014,
3514,
18,
5112,
63,
77,
65,
397,
5795,
18006,
14457,
31,
3639,
309,
261,
1364,
411,
1014,
3514,
18,
1745,
2384,
13,
288,
5411,
509,
2870,
273,
261,
2121,
3514,
18,
1745,
2384,
300,
2142,
13,
342,
1014,
3514,
18,
5112,
18,
2469,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
3514,
18,
5112,
18,
2469,
31,
277,
27245,
1014,
3514,
18,
5112,
63,
77,
65,
1011,
2870,
31,
3639,
289,
469,
288,
5411,
368,
430,
2142,
353,
6802,
16,
732,
8656,
888,
16052,
329,
731,
13805,
16,
2537,
741,
5943,
23589,
5411,
1014,
3514,
18,
1745,
2384,
273,
2142,
31,
3639,
289,
3639,
364,
261,
3198,
1715,
77,
273,
1014,
3514,
18,
588,
1763,
3198,
5621,
1715,
77,
18,
5332,
2134,
5621,
13,
288,
5411,
1033,
1715,
273,
1715,
77,
18,
4285,
5621,
5411,
309,
261,
5111,
1276,
6556,
3514,
13,
288,
7734,
6556,
3514,
1027,
273,
261,
1999,
3514,
13,
1715,
31,
7734,
509,
645,
273,
374,
31,
7734,
509,
619,
273,
5795,
18006,
14457,
31,
7734,
364,
261,
3198,
2875,
77,
273,
1027,
18,
588,
1763,
3198,
5621,
2875,
77,
18,
5332,
2134,
5621,
13,
288,
10792,
1323,
261,
2121,
3514,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2917,
22407,
12,
1388,
3514,
1014,
3514,
16,
509,
5795,
18006,
14457,
13,
288,
3639,
509,
2142,
273,
5795,
18006,
14457,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
3514,
18,
5112,
18,
2469,
31,
277,
27245,
2142,
1011,
1014,
3514,
18,
5112,
63,
77,
65,
397,
5795,
18006,
14457,
31,
3639,
309,
261,
1364,
411,
1014,
3514,
18,
1745,
2384,
13,
288,
5411,
509,
2870,
273,
261,
2121,
3514,
18,
1745,
2384,
300,
2142,
13,
342,
1014,
3514,
18,
5112,
18,
2469,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
3514,
18,
5112,
18,
2469,
31,
277,
27245,
1014,
3514,
18,
5112,
63,
77,
65,
1011,
2
] |
IFile file = (IFile) part.getEditorInput() .getAdapter(IFile.class);
|
IFile file = ResourceUtil.getFile(part.getEditorInput());
|
public static boolean saveAllEditors(IResource[] resourceRoots, boolean confirm) { final IResource[] finalResources = resourceRoots; final boolean finalConfirm = confirm; final boolean[] result = new boolean[1]; result[0] = true; if (resourceRoots.length == 0) return result[0]; Platform.run(new SafeRunnable(IDEWorkbenchMessages.ErrorClosing) { public void run() { //Collect dirtyEditors ArrayList dirtyEditors = new ArrayList(); IWorkbenchWindow[] windows = PlatformUI.getWorkbench() .getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { IWorkbenchWindow window = windows[i]; IWorkbenchPage[] pages = window.getPages(); for (int j = 0; j < pages.length; j++) { IWorkbenchPage page = pages[j]; IEditorPart[] dirty = page.getDirtyEditors(); for (int k = 0; k < dirty.length; k++) { IEditorPart part = dirty[k]; IFile file = (IFile) part.getEditorInput() .getAdapter(IFile.class); if (file != null) { for (int l = 0; l < finalResources.length; l++) { IResource resource = finalResources[l]; if (resource.getFullPath() .isPrefixOf( file.getFullPath())) { dirtyEditors.add(part); break; } } } } } } if (dirtyEditors.size() > 0) { IWorkbenchWindow w = Workbench.getInstance() .getActiveWorkbenchWindow(); if (w == null) w = windows[0]; result[0] = EditorManager.saveAll(dirtyEditors, finalConfirm, w); } } }); return result[0]; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/35591c7d55a12520aa70b2436fcd06526a22de81/IDE.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
1923,
1595,
4666,
1383,
12,
45,
1420,
8526,
1058,
17540,
16,
5411,
1250,
6932,
13,
288,
3639,
727,
467,
1420,
8526,
727,
3805,
273,
1058,
17540,
31,
3639,
727,
1250,
727,
11269,
273,
6932,
31,
3639,
727,
1250,
8526,
563,
273,
394,
1250,
63,
21,
15533,
3639,
563,
63,
20,
65,
273,
638,
31,
3639,
309,
261,
3146,
17540,
18,
2469,
422,
374,
13,
5411,
327,
563,
63,
20,
15533,
3639,
11810,
18,
2681,
12,
2704,
14060,
20013,
12,
10385,
2421,
22144,
5058,
18,
668,
15745,
13,
288,
10792,
1071,
918,
1086,
1435,
288,
13491,
368,
10808,
9603,
4666,
1383,
13491,
2407,
9603,
4666,
1383,
273,
394,
2407,
5621,
13491,
467,
2421,
22144,
3829,
8526,
9965,
273,
11810,
5370,
18,
588,
2421,
22144,
1435,
27573,
263,
588,
2421,
22144,
10399,
5621,
13491,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9965,
18,
2469,
31,
277,
27245,
288,
18701,
467,
2421,
22144,
3829,
2742,
273,
9965,
63,
77,
15533,
18701,
467,
2421,
22144,
1964,
8526,
4689,
273,
2742,
18,
588,
5716,
5621,
18701,
364,
261,
474,
525,
273,
374,
31,
525,
411,
4689,
18,
2469,
31,
525,
27245,
288,
27573,
467,
2421,
22144,
1964,
1363,
273,
4689,
63,
78,
15533,
27573,
467,
6946,
1988,
8526,
9603,
273,
1363,
18,
588,
10785,
4666,
1383,
5621,
27573,
364,
261,
474,
417,
273,
374,
31,
417,
411,
9603,
18,
2469,
31,
417,
27245,
288,
4766,
565,
467,
6946,
1988,
1087,
273,
9603,
63,
79,
15533,
4766,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
1923,
1595,
4666,
1383,
12,
45,
1420,
8526,
1058,
17540,
16,
5411,
1250,
6932,
13,
288,
3639,
727,
467,
1420,
8526,
727,
3805,
273,
1058,
17540,
31,
3639,
727,
1250,
727,
11269,
273,
6932,
31,
3639,
727,
1250,
8526,
563,
273,
394,
1250,
63,
21,
15533,
3639,
563,
63,
20,
65,
273,
638,
31,
3639,
309,
261,
3146,
17540,
18,
2469,
422,
374,
13,
5411,
327,
563,
63,
20,
15533,
3639,
11810,
18,
2681,
12,
2704,
14060,
20013,
12,
10385,
2421,
22144,
5058,
18,
668,
15745,
13,
288,
10792,
1071,
918,
1086,
1435,
288,
13491,
368,
10808,
9603,
4666,
1383,
13491,
2407,
9603,
4666,
1383,
273,
394,
2407,
5621,
13491,
467,
2421,
22144,
3829,
8526,
2
] |
private IteratorRemoveVisitor(String iteratorName) { super(); this.iteratorName = iteratorName; }
|
private IteratorRemoveVisitor(@NotNull String iteratorName){ super(); this.iteratorName = iteratorName; }
|
private IteratorRemoveVisitor(String iteratorName) { super(); this.iteratorName = iteratorName; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/9b988832984f0e624cea3998a4bc58a17a3426e2/WhileCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/WhileCanBeForeachInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4498,
3288,
7413,
12,
780,
2775,
461,
13,
288,
1377,
2240,
5621,
1377,
333,
18,
9838,
461,
273,
2775,
461,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4498,
3288,
7413,
12,
780,
2775,
461,
13,
288,
1377,
2240,
5621,
1377,
333,
18,
9838,
461,
273,
2775,
461,
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
] |
} else if ((dir & WEST) != 0) {
|
} else if ((dir & WEST) != 0 && (snapOrientation & WEST) != 0) {
|
public int snapResizeRequest(ChangeBoundsRequest request, PrecisionRectangle baseRect, int snapOrientation) { int dir = request.getResizeDirection(); PrecisionDimension resize = new PrecisionDimension(request.getSizeDelta()); PrecisionPoint move = new PrecisionPoint(request.getMoveDelta()); IFigure fig = container.getContentPane(); if (rows == null || cols == null) { populateRowsAndCols(generateSnapPartsList(request.getEditParts(), false)); } baseRect.resize(resize); baseRect.translate(move); fig.translateToRelative(baseRect); fig.translateToRelative(resize); fig.translateToRelative(move); boolean change = false; if ((snapOrientation & EAST_WEST) != 0) if (request.isCenteredResize()) { double leftCorrection = getCorrectionFor(cols, request.getExtendedData(), true, baseRect.preciseX, -1); double rightCorrection = getCorrectionFor(cols, request.getExtendedData(), true, baseRect.preciseRight(), 1); if (Math.abs(leftCorrection) <= Math.abs(rightCorrection) && leftCorrection != THRESHOLD) { change = true; snapOrientation &= ~EAST_WEST; resize.preciseWidth -= (leftCorrection * 2); move.preciseX += leftCorrection; request.getExtendedData().remove(PROPERTY_EAST_ANCHOR); } else if (rightCorrection != THRESHOLD) { change = true; snapOrientation &= ~EAST_WEST; resize.preciseWidth += (rightCorrection * 2); move.preciseX -= rightCorrection; request.getExtendedData().remove(PROPERTY_WEST_ANCHOR); } } else if ((dir & EAST) != 0) { double rightCorrection = getCorrectionFor(cols, request.getExtendedData(), true, baseRect.preciseRight(), 1); if (rightCorrection != THRESHOLD) { change = true; snapOrientation &= ~EAST; resize.preciseWidth += rightCorrection; } } else if ((dir & WEST) != 0) { double leftCorrection = getCorrectionFor(cols, request.getExtendedData(), true, baseRect.preciseX, -1); if (leftCorrection != THRESHOLD) { change = true; snapOrientation &= ~WEST; resize.preciseWidth -= leftCorrection; move.preciseX += leftCorrection; } } if ((snapOrientation & NORTH_SOUTH) != 0) if (request.isCenteredResize()) { double topCorrection = getCorrectionFor(rows, request.getExtendedData(), false, baseRect.preciseY, -1); double bottom = getCorrectionFor(rows, request.getExtendedData(), false, baseRect.preciseBottom(), 1); if (Math.abs(topCorrection) <= Math.abs(bottom) && topCorrection != THRESHOLD) { change = true; snapOrientation &= ~NORTH_SOUTH; resize.preciseHeight -= (topCorrection * 2); move.preciseY += topCorrection; request.getExtendedData().remove(PROPERTY_SOUTH_ANCHOR); } else if (bottom != THRESHOLD) { change = true; snapOrientation &= ~NORTH_SOUTH; resize.preciseHeight += (bottom * 2); move.preciseY -= bottom; request.getExtendedData().remove(PROPERTY_NORTH_ANCHOR); } } else if ((dir & SOUTH) != 0) { double bottom = getCorrectionFor(rows, request.getExtendedData(), false, baseRect.preciseBottom(), 1); if (bottom != THRESHOLD) { change = true; snapOrientation &= ~SOUTH; resize.preciseHeight += bottom; } } else if ((dir & NORTH) != 0) { double topCorrection = getCorrectionFor(rows, request.getExtendedData(), false, baseRect.preciseY, -1); if (topCorrection != THRESHOLD) { change = true; snapOrientation &= ~NORTH; resize.preciseHeight -= topCorrection; move.preciseY += topCorrection; } } if (!change) return snapOrientation; fig.translateToAbsolute(resize); fig.translateToAbsolute(move); resize.updateInts(); move.updateInts(); request.setSizeDelta(resize); request.setMoveDelta(move); return snapOrientation;}
|
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/1ded5a3a56eceb49218be448bff58fff84611b07/SnapToGeometry.java/buggy/org.eclipse.gef/src/org/eclipse/gef/SnapToGeometry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
509,
10915,
12182,
691,
12,
3043,
5694,
691,
590,
16,
2962,
5156,
19463,
1026,
6120,
16,
11794,
509,
10915,
14097,
13,
288,
202,
474,
1577,
273,
590,
18,
588,
12182,
8212,
5621,
202,
15410,
8611,
7041,
273,
394,
2962,
5156,
8611,
12,
2293,
18,
588,
1225,
9242,
10663,
202,
15410,
2148,
3635,
273,
394,
2962,
5156,
2148,
12,
2293,
18,
588,
7607,
9242,
10663,
202,
5501,
15906,
4291,
273,
1478,
18,
588,
1350,
8485,
5621,
202,
430,
261,
3870,
422,
446,
747,
5347,
422,
446,
13,
288,
202,
202,
19936,
4300,
1876,
8011,
12,
7163,
24063,
4305,
682,
12,
2293,
18,
588,
4666,
4305,
9334,
629,
10019,
202,
97,
202,
1969,
6120,
18,
15169,
12,
15169,
1769,
202,
1969,
6120,
18,
13929,
12,
8501,
1769,
202,
202,
470,
18,
13929,
774,
8574,
12,
1969,
6120,
1769,
202,
470,
18,
13929,
774,
8574,
12,
15169,
1769,
202,
470,
18,
13929,
774,
8574,
12,
8501,
1769,
202,
202,
6494,
2549,
273,
629,
31,
202,
430,
14015,
28449,
14097,
473,
512,
9053,
67,
31285,
13,
480,
374,
13,
202,
202,
430,
261,
2293,
18,
291,
8449,
329,
12182,
10756,
288,
1082,
202,
9056,
2002,
20884,
273,
18399,
9329,
1290,
12,
6842,
16,
590,
18,
588,
11456,
751,
9334,
638,
16,
6862,
202,
1969,
6120,
18,
4036,
784,
60,
16,
300,
21,
1769,
1082,
202,
9056,
2145,
20884,
273,
18399,
9329,
1290,
12,
6842,
16,
590,
18,
588,
11456,
751,
9334,
638,
16,
6862,
202,
1969,
6120,
18,
4036,
784,
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,
509,
10915,
12182,
691,
12,
3043,
5694,
691,
590,
16,
2962,
5156,
19463,
1026,
6120,
16,
11794,
509,
10915,
14097,
13,
288,
202,
474,
1577,
273,
590,
18,
588,
12182,
8212,
5621,
202,
15410,
8611,
7041,
273,
394,
2962,
5156,
8611,
12,
2293,
18,
588,
1225,
9242,
10663,
202,
15410,
2148,
3635,
273,
394,
2962,
5156,
2148,
12,
2293,
18,
588,
7607,
9242,
10663,
202,
5501,
15906,
4291,
273,
1478,
18,
588,
1350,
8485,
5621,
202,
430,
261,
3870,
422,
446,
747,
5347,
422,
446,
13,
288,
202,
202,
19936,
4300,
1876,
8011,
12,
7163,
24063,
4305,
682,
12,
2293,
18,
588,
4666,
4305,
9334,
629,
10019,
202,
97,
202,
1969,
6120,
18,
15169,
12,
15169,
1769,
202,
2
] |
public TA_RetCode ADX( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int today, lookbackTotal, outIdx; double prevHigh, prevLow, prevClose; double prevMinusDM, prevPlusDM, prevTR; double tempReal, tempReal2, diffP, diffM; double minusDI, plusDI, sumDX, prevADX; int i; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( optInTimePeriod > 1 ) lookbackTotal = (2*optInTimePeriod) + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) - 1; else lookbackTotal = 2; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outIdx = 0; outBegIdx.value = today = startIdx; prevMinusDM = 0.0; prevPlusDM = 0.0; prevTR = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; i = optInTimePeriod-1; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR += tempReal; prevClose = inClose[today]; } sumDX = 0.0; i = optInTimePeriod; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) sumDX += (100.0 * ( Math.abs (minusDI-plusDI)/tempReal)) ; } } prevADX = (sumDX / optInTimePeriod) ; i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) ; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } } outReal[0] = prevADX; outIdx = 1; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } outReal[outIdx++] = prevADX; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
|
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/69e0567047ad75d101e30d35826ecbb51165ba43/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
1880,
60,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
3838,
382,
26540,
16,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
30064,
16,
7330,
823,
5269,
16,
659,
4223,
31,
9056,
10001,
8573,
16,
10001,
10520,
16,
10001,
4605,
31,
9056,
10001,
18434,
16125,
16,
10001,
13207,
16125,
16,
10001,
4349,
31,
2896,
440,
278,
30752,
6955,
16,
5814,
6955,
22,
16,
5413,
52,
16,
5413,
49,
31,
9056,
19601,
2565,
16,
10103,
2565,
16,
1364,
28826,
16,
10001,
1880,
60,
31,
474,
77,
31,
430,
12,
1937,
4223,
32,
20,
13,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
430,
12443,
409,
4223,
32,
20,
14047,
96,
12,
409,
4223,
32,
1937,
4223,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
430,
12443,
474,
13,
3838,
382,
26540,
631,
12,
4522,
18,
6236,
67,
4051,
3719,
3838,
382,
26540,
33,
3461,
31,
12107,
430,
12443,
12,
474,
13,
3838,
382,
26540,
32,
22,
14047,
96,
12443,
474,
13,
3838,
382,
26540,
34,
21,
11706,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
16234,
67,
8388,
31,
430,
12,
3838,
382,
26540,
34,
21,
13,
7330,
823,
5269,
28657,
22,
14,
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,
9833,
67,
7055,
1085,
1880,
60,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
3838,
382,
26540,
16,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
30064,
16,
7330,
823,
5269,
16,
659,
4223,
31,
9056,
10001,
8573,
16,
10001,
10520,
16,
10001,
4605,
31,
9056,
10001,
18434,
16125,
16,
10001,
13207,
16125,
16,
10001,
4349,
31,
2896,
440,
278,
30752,
6955,
16,
5814,
6955,
22,
16,
5413,
52,
16,
5413,
49,
31,
9056,
19601,
2565,
16,
10103,
2565,
16,
1364,
28826,
16,
10001,
1880,
60,
31,
474,
77,
31,
2
] |
||
String provMessage = "Submitted by" + item.getSubmitter().getFullName() + " (" + item.getSubmitter().getEmail() + "). DSpace accession date:" + d.toString() + "\n Submission has " + bitstreams.length + " bitstreams:\n";
|
String provMessage = "Submitted by" + item.getSubmitter().getFullName() + " (" + item.getSubmitter().getEmail() + "). DSpace accession date:" + d.toString() + "\n Submission has " + bitstreams.length + " bitstreams:\n";
|
public WorkflowItem startWorkflow() throws SQLException, AuthorizeException { // FIXME Check auth // Set accession date DCDate d = DCDate.getCurrent(); item.addDC("date", "accessioned", null, d.toString()); // Get non-internal format bitstreams Bitstream[] bitstreams = item.getNonInternalBitstreams(); // Create provenance description String provMessage = "Submitted by" + item.getSubmitter().getFullName() + " (" + item.getSubmitter().getEmail() + "). DSpace accession date:" + d.toString() + "\n Submission has " + bitstreams.length + " bitstreams:\n"; // Add sizes and checksums of bitstreams for (int j=0; j < bitstreams.length; j++) { provMessage = provMessage + bitstreams[j].getName() + ": " + bitstreams[j].getSize() + " bytes, checksum: " + bitstreams[j].getChecksum() + " (" + bitstreams[j].getChecksumAlgorithm()+ ")\n"; } // Add message to the DC item.addDC("description", "provenance", "en", provMessage); return null; }
|
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/85c7430ba7691f831fafc420459d280408310eb9/WorkspaceItem.java/clean/dspace/src/org/dspace/content/WorkspaceItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11363,
1180,
787,
8484,
1435,
3639,
1216,
6483,
16,
23859,
503,
565,
288,
3639,
368,
9852,
2073,
1357,
3639,
368,
1000,
2006,
285,
1509,
3639,
21533,
1626,
302,
273,
21533,
1626,
18,
588,
3935,
5621,
3639,
761,
18,
1289,
5528,
2932,
712,
3113,
315,
3860,
285,
329,
3113,
446,
16,
302,
18,
10492,
10663,
3639,
368,
968,
1661,
17,
7236,
740,
2831,
16320,
3639,
6539,
3256,
8526,
2831,
16320,
273,
761,
18,
588,
3989,
3061,
5775,
16320,
5621,
3639,
368,
1788,
24185,
2477,
3639,
514,
17197,
1079,
273,
315,
28882,
635,
6,
397,
761,
18,
588,
11620,
387,
7675,
588,
19223,
1435,
397,
5411,
315,
7566,
397,
761,
18,
588,
11620,
387,
7675,
588,
4134,
1435,
397,
5411,
315,
2934,
225,
463,
3819,
2006,
285,
1509,
2773,
397,
302,
18,
10492,
1435,
397,
5411,
1548,
82,
2592,
3951,
711,
315,
397,
2831,
16320,
18,
2469,
397,
315,
2831,
16320,
5581,
82,
14432,
3639,
368,
1436,
8453,
471,
26829,
434,
2831,
16320,
3639,
364,
261,
474,
525,
33,
20,
31,
525,
411,
2831,
16320,
18,
2469,
31,
525,
27245,
3639,
288,
5411,
17197,
1079,
273,
17197,
1079,
397,
2831,
16320,
63,
78,
8009,
17994,
1435,
397,
6398,
315,
397,
7734,
2831,
16320,
63,
78,
8009,
588,
1225,
1435,
397,
315,
1731,
16,
6697,
30,
315,
397,
7734,
2831,
16320,
63,
78,
8009,
588,
10723,
1435,
397,
315,
7566,
397,
1171,
2831,
16320,
63,
78,
8009,
588,
10723,
6801,
1435,
15,
315,
5153,
82,
14432,
3639,
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,
1071,
11363,
1180,
787,
8484,
1435,
3639,
1216,
6483,
16,
23859,
503,
565,
288,
3639,
368,
9852,
2073,
1357,
3639,
368,
1000,
2006,
285,
1509,
3639,
21533,
1626,
302,
273,
21533,
1626,
18,
588,
3935,
5621,
3639,
761,
18,
1289,
5528,
2932,
712,
3113,
315,
3860,
285,
329,
3113,
446,
16,
302,
18,
10492,
10663,
3639,
368,
968,
1661,
17,
7236,
740,
2831,
16320,
3639,
6539,
3256,
8526,
2831,
16320,
273,
761,
18,
588,
3989,
3061,
5775,
16320,
5621,
3639,
368,
1788,
24185,
2477,
3639,
514,
17197,
1079,
273,
315,
28882,
635,
6,
397,
761,
18,
588,
11620,
387,
7675,
588,
19223,
1435,
397,
5411,
315,
7566,
397,
761,
18,
588,
11620,
387,
7675,
588,
4134,
1435,
397,
2
] |
if (jj_3R_49()) return true; if (jj_3R_75()) return true; if (jj_scan_token(IDENTIFIER)) return true; if (jj_scan_token(COLON)) return true; if (jj_3R_73()) return true;
|
if (jj_scan_token(BIT_AND)) return true; if (jj_3R_265()) return true;
|
final private boolean jj_3R_291() { if (jj_3R_49()) return true; if (jj_3R_75()) return true; if (jj_scan_token(IDENTIFIER)) return true; if (jj_scan_token(COLON)) return true; if (jj_3R_73()) return true; return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5540,
21,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
7616,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5877,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4935,
673,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9036,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5540,
21,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
7616,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5877,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4935,
673,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9036,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
filterEnabledButton = createCheckbox(composite, Messages .getString("filtersDialog.onOff"),
|
filterEnabledButton = createCheckbox(composite, mnemonics.assign(Messages .getString("filtersDialog.onOff")),
|
protected void createOnOffArea(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); composite.setFont(font); composite.setLayout(new GridLayout()); filterEnabledButton = createCheckbox(composite, Messages .getString("filtersDialog.onOff"), //$NON-NLS-1$ false); filterEnabledButton.setFont(composite.getFont()); filterEnabledButton.setLayoutData(new GridData()); filterEnabledButton.addSelectionListener(selectionListener); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/14b34bbe55c42c152b126bf0f9c2de8931a0954f/DialogMarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
1398,
7210,
5484,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
3639,
9635,
18,
542,
5711,
12,
5776,
1769,
3639,
9635,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
3639,
1034,
1526,
3616,
273,
752,
21272,
12,
27676,
16,
4838,
7734,
263,
588,
780,
2932,
6348,
6353,
18,
265,
7210,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
629,
1769,
3639,
1034,
1526,
3616,
18,
542,
5711,
12,
27676,
18,
588,
5711,
10663,
3639,
1034,
1526,
3616,
18,
542,
3744,
751,
12,
2704,
7145,
751,
10663,
3639,
1034,
1526,
3616,
18,
1289,
6233,
2223,
12,
10705,
2223,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
1398,
7210,
5484,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
3639,
9635,
18,
542,
5711,
12,
5776,
1769,
3639,
9635,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
3639,
1034,
1526,
3616,
273,
752,
21272,
12,
27676,
16,
4838,
7734,
263,
588,
780,
2932,
6348,
6353,
18,
265,
7210,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
629,
1769,
3639,
1034,
1526,
3616,
18,
542,
5711,
12,
27676,
18,
588,
5711,
10663,
3639,
2
] |
public SimpleContentProposalProvider(Object[] proposals) {
|
public SimpleContentProposalProvider(String[] proposals) {
|
public SimpleContentProposalProvider(Object[] proposals) { super(); this.proposals = proposals; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/54f5816382677a87ac1d149868af2370808e4f06/SimpleContentProposalProvider.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/SimpleContentProposalProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4477,
1350,
14592,
2249,
12,
921,
8526,
450,
22536,
13,
288,
202,
202,
9565,
5621,
202,
202,
2211,
18,
685,
22536,
273,
450,
22536,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4477,
1350,
14592,
2249,
12,
921,
8526,
450,
22536,
13,
288,
202,
202,
9565,
5621,
202,
202,
2211,
18,
685,
22536,
273,
450,
22536,
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
] |
+ CCM_ATTR_DELIMITER.length(), index = line.indexOf( CCM_ATTR_DELIMITER, oldIndex), tokenIndex++) {
|
+ CCM_ATTR_DELIMITER.length(), index = line.indexOf(CCM_ATTR_DELIMITER, oldIndex), tokenIndex++) {
|
private String[] tokeniseEntry(String line, int maxTokens) { int minTokens = maxTokens - 1; // comment may be absent. String[] tokens = new String[maxTokens]; Arrays.fill(tokens, ""); int tokenIndex = 0; for (int oldIndex = 0, index = line.indexOf(CCM_ATTR_DELIMITER, 0); true; oldIndex = index + CCM_ATTR_DELIMITER.length(), index = line.indexOf( CCM_ATTR_DELIMITER, oldIndex), tokenIndex++) { if (tokenIndex > maxTokens) { LOG.debug("Too many tokens; skipping entry"); return null; } if (index == -1) { tokens[tokenIndex] = line.substring(oldIndex); break; } else { tokens[tokenIndex] = line.substring(oldIndex, index); } } if (tokenIndex < minTokens) { LOG.debug("Not enough tokens; skipping entry"); return null; } return tokens; }
|
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/7d4ef99b224eadd1cebb5bf337a5a151059005f2/CMSynergy.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/CMSynergy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8526,
1147,
784,
1622,
12,
780,
980,
16,
509,
943,
5157,
13,
288,
3639,
509,
1131,
5157,
273,
943,
5157,
300,
404,
31,
368,
2879,
2026,
506,
17245,
18,
3639,
514,
8526,
2430,
273,
394,
514,
63,
1896,
5157,
15533,
3639,
5647,
18,
5935,
12,
7860,
16,
1408,
1769,
3639,
509,
1147,
1016,
273,
374,
31,
3639,
364,
261,
474,
1592,
1016,
273,
374,
16,
770,
273,
980,
18,
31806,
12,
6743,
49,
67,
12043,
67,
19722,
16,
374,
1769,
638,
31,
1592,
1016,
273,
770,
7734,
397,
385,
9611,
67,
12043,
67,
19722,
18,
2469,
9334,
770,
273,
980,
18,
31806,
12,
7734,
385,
9611,
67,
12043,
67,
19722,
16,
1592,
1016,
3631,
1147,
1016,
27245,
288,
5411,
309,
261,
2316,
1016,
405,
943,
5157,
13,
288,
7734,
2018,
18,
4148,
2932,
10703,
4906,
2430,
31,
14195,
1241,
8863,
7734,
327,
446,
31,
5411,
289,
5411,
309,
261,
1615,
422,
300,
21,
13,
288,
7734,
2430,
63,
2316,
1016,
65,
273,
980,
18,
28023,
12,
1673,
1016,
1769,
7734,
898,
31,
5411,
289,
469,
288,
7734,
2430,
63,
2316,
1016,
65,
273,
980,
18,
28023,
12,
1673,
1016,
16,
770,
1769,
5411,
289,
3639,
289,
3639,
309,
261,
2316,
1016,
411,
1131,
5157,
13,
288,
5411,
2018,
18,
4148,
2932,
1248,
7304,
2430,
31,
14195,
1241,
8863,
5411,
327,
446,
31,
3639,
289,
3639,
327,
2430,
31,
565,
289,
2,
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,
1,
1,
1,
1,
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,
8526,
1147,
784,
1622,
12,
780,
980,
16,
509,
943,
5157,
13,
288,
3639,
509,
1131,
5157,
273,
943,
5157,
300,
404,
31,
368,
2879,
2026,
506,
17245,
18,
3639,
514,
8526,
2430,
273,
394,
514,
63,
1896,
5157,
15533,
3639,
5647,
18,
5935,
12,
7860,
16,
1408,
1769,
3639,
509,
1147,
1016,
273,
374,
31,
3639,
364,
261,
474,
1592,
1016,
273,
374,
16,
770,
273,
980,
18,
31806,
12,
6743,
49,
67,
12043,
67,
19722,
16,
374,
1769,
638,
31,
1592,
1016,
273,
770,
7734,
397,
385,
9611,
67,
12043,
67,
19722,
18,
2469,
9334,
770,
273,
980,
18,
31806,
12,
7734,
385,
9611,
67,
12043,
67,
19722,
16,
1592,
1016,
3631,
1147,
1016,
2
] |
showSystemMenu(pos); }
|
showSystemMenu(pos); }
|
public void handleEvent(Event event) { Point pos = new Point(event.x, event.y); showSystemMenu(pos); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1640,
1133,
12,
1133,
871,
13,
288,
5411,
4686,
949,
273,
394,
4686,
12,
2575,
18,
92,
16,
871,
18,
93,
1769,
5411,
2405,
3163,
4599,
12,
917,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1640,
1133,
12,
1133,
871,
13,
288,
5411,
4686,
949,
273,
394,
4686,
12,
2575,
18,
92,
16,
871,
18,
93,
1769,
5411,
2405,
3163,
4599,
12,
917,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AuxiliaryGraph gu = new AuxiliaryGraph(graph, edgeList, u);
|
AuxiliaryGraph gu = new AuxiliaryGraph(graph, u);
|
public Collection essentialCycles() { Collection result = new HashSet(); boolean[][] a = getCycleEdgeIncidenceMatrix(); boolean[][] ai = inverseBinaryMatrix(a, cycles.size()); for (int i=0; i<cycles.size(); i++) { // Construct kernel vector u boolean[] u = new boolean[edgeList.size()]; for (int j=0; j<cycles.size(); j++) { u[j] = ai[j][i]; } // Construct kernel vector u from a column of the inverse of a AuxiliaryGraph gu = new AuxiliaryGraph(graph, edgeList, u); boolean isEssential = true; Iterator vertexIterator = graph.vertexSet().iterator(); while (isEssential && vertexIterator.hasNext()) { Object vertex = vertexIterator.next(); Collection incidentEdges = graph.edgesOf(vertex); // check if the vertex is incident to an edge with u[edge] == 1 boolean shouldSearchCycle = false; for (Iterator it = incidentEdges.iterator(); it.hasNext();) { Edge edge = (Edge) it.next(); int index = getEdgeIndex(edge); if (u[index]) { shouldSearchCycle = true; break; } } if (shouldSearchCycle) { Object auxVertex0 = gu.auxVertex0(vertex); Object auxVertex1 = gu.auxVertex1(vertex); // Search for shortest paths for (Iterator minPaths = new MinimalPathIterator(gu, auxVertex0, auxVertex1); minPaths.hasNext();) { List auxPath = (List) minPaths.next(); List edgesOfNewCycle = new ArrayList(auxPath.size()); for (Iterator it = auxPath.iterator(); it.hasNext();) { Edge auxEdge = (Edge) it.next(); // Get the edge corresponding to the aux. edge Edge e = (Edge) gu.edge(auxEdge); edgesOfNewCycle.add(e); } SimpleCycle cycle = new SimpleCycle(graph, edgesOfNewCycle); if (cycle.weight() > ((SimpleCycle)cycles.get(i)).weight()) { break; } if (!cycle.equals((SimpleCycle)cycles.get(i))) { isEssential = false; break; } } } } if (isEssential) { result.add((SimpleCycle)cycles.get(i)); } } return result; }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/62b2e8b18d045a8937eb46b5692b7da726645ee4/SimpleCycleBasis.java/clean/src/org/openscience/cdk/ringsearch/cyclebasis/SimpleCycleBasis.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
18518,
2001,
17992,
9558,
1435,
288,
202,
202,
2532,
563,
273,
394,
6847,
5621,
9506,
202,
6494,
63,
6362,
65,
279,
273,
1927,
3409,
6098,
14559,
10328,
4635,
5621,
9506,
202,
6494,
63,
6362,
65,
14679,
273,
8322,
5905,
4635,
12,
69,
16,
15139,
18,
1467,
10663,
9506,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
23976,
18,
1467,
5621,
277,
27245,
288,
25083,
202,
759,
14291,
5536,
3806,
582,
1082,
202,
6494,
8526,
582,
273,
394,
1250,
63,
7126,
682,
18,
1467,
1435,
15533,
1082,
202,
1884,
261,
474,
525,
33,
20,
31,
525,
32,
23976,
18,
1467,
5621,
525,
27245,
288,
9506,
202,
89,
63,
78,
65,
273,
14679,
63,
78,
6362,
77,
15533,
1082,
202,
97,
25083,
202,
759,
14291,
5536,
3806,
582,
628,
279,
1057,
434,
326,
8322,
434,
279,
1082,
202,
21981,
20606,
4137,
3058,
273,
394,
432,
2616,
20606,
4137,
12,
4660,
16,
3591,
682,
16,
582,
1769,
25083,
202,
6494,
353,
41,
1049,
2001,
273,
638,
31,
25083,
202,
3198,
5253,
3198,
273,
2667,
18,
15281,
694,
7675,
9838,
5621,
1082,
202,
17523,
261,
291,
41,
1049,
2001,
597,
5253,
3198,
18,
5332,
2134,
10756,
288,
9506,
202,
921,
5253,
273,
5253,
3198,
18,
4285,
5621,
6862,
9506,
202,
2532,
22933,
10697,
273,
2667,
18,
8746,
951,
12,
15281,
1769,
6862,
9506,
202,
759,
866,
309,
326,
5253,
353,
22933,
358,
392,
3591,
598,
582,
63,
7126,
65,
422,
404,
9506,
202,
6494,
1410,
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,
2200,
18518,
2001,
17992,
9558,
1435,
288,
202,
202,
2532,
563,
273,
394,
6847,
5621,
9506,
202,
6494,
63,
6362,
65,
279,
273,
1927,
3409,
6098,
14559,
10328,
4635,
5621,
9506,
202,
6494,
63,
6362,
65,
14679,
273,
8322,
5905,
4635,
12,
69,
16,
15139,
18,
1467,
10663,
9506,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
23976,
18,
1467,
5621,
277,
27245,
288,
25083,
202,
759,
14291,
5536,
3806,
582,
1082,
202,
6494,
8526,
582,
273,
394,
1250,
63,
7126,
682,
18,
1467,
1435,
15533,
1082,
202,
1884,
261,
474,
525,
33,
20,
31,
525,
32,
23976,
18,
1467,
5621,
525,
27245,
288,
9506,
202,
89,
63,
78,
65,
273,
14679,
63,
78,
2
] |
public org.quickfix.field.IDSource getIDSource() throws FieldNotFound { org.quickfix.field.IDSource value = new org.quickfix.field.IDSource();
|
public quickfix.field.IDSource getIDSource() throws FieldNotFound { quickfix.field.IDSource value = new quickfix.field.IDSource();
|
public org.quickfix.field.IDSource getIDSource() throws FieldNotFound { org.quickfix.field.IDSource value = new org.quickfix.field.IDSource(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatusRequest.java/clean/src/java/src/quickfix/fix42/SecurityStatusRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
734,
1830,
14744,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
734,
1830,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
734,
1830,
14744,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
734,
1830,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void run() {
|
protected IStatus run(IProgressMonitor monitor) { setProperty(IProgressConstants.ICON_PROPERTY, TaskListImages.REPOSITORY_SYNCHRONIZE); repositoryQuery.clearHits(); TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( BugzillaPlugin.REPOSITORY_KIND, repositoryQuery.getRepositoryUrl()); if (repository == null) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() {
|
public void run() { MessageDialog .openInformation(Display.getDefault().getActiveShell(), IBugzillaConstants.TITLE_MESSAGE_DIALOG, "No task repository associated with this query. Open the query to associate it with a repository."); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f2525602d9a5ae9a3ba7ecaa18ac36c855d13712/BugzillaRepositoryConnector.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9944,
202,
482,
918,
1086,
1435,
288,
6862,
1082,
202,
1079,
6353,
6862,
6862,
202,
18,
3190,
5369,
12,
4236,
18,
588,
1868,
7675,
588,
3896,
13220,
9334,
6862,
6862,
1082,
202,
13450,
637,
15990,
2918,
18,
14123,
67,
8723,
67,
2565,
18683,
16,
6862,
6862,
1082,
202,
6,
2279,
1562,
3352,
3627,
598,
333,
843,
18,
3502,
326,
843,
358,
13251,
518,
598,
279,
3352,
1199,
1769,
25083,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9944,
202,
482,
918,
1086,
1435,
288,
6862,
1082,
202,
1079,
6353,
6862,
6862,
202,
18,
3190,
5369,
12,
4236,
18,
588,
1868,
7675,
588,
3896,
13220,
9334,
6862,
6862,
1082,
202,
13450,
637,
15990,
2918,
18,
14123,
67,
8723,
67,
2565,
18683,
16,
6862,
6862,
1082,
202,
6,
2279,
1562,
3352,
3627,
598,
333,
843,
18,
3502,
326,
843,
358,
13251,
518,
598,
279,
3352,
1199,
1769,
25083,
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
] |
synPredMatched531 = false; } rewind(_m531);
|
synPredMatched541 = false; } rewind(_m541);
|
public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; inAttributeContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: if ((LA(1)=='(') && (LA(2)==':') && ((LA(3) >= '\u0003' && LA(3) <= '\ufffe')) && ((LA(4) >= '\u0003' && LA(4) <= '\ufffe'))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { String comment = new String(text.getBuffer(),_begin,text.length()-_begin); for (int i = 0; i < comment.length(); i++) { if (comment.charAt(i) == '\n') newline(); } _ttype = Token.SKIP; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='-')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { String data = new String(text.getBuffer(),_begin,text.length()-_begin); parseLinefeeds(data); _ttype = XML_COMMENT; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='[')) { mXML_CDATA(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA; } } else { boolean synPredMatched522 = false; if (((_tokenSet_14.member(LA(1))) && (_tokenSet_15.member(LA(2))) && (_tokenSet_16.member(LA(3))) && (true))) { int _m522 = mark(); synPredMatched522 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched522 = false; } rewind(_m522); inputState.guessing--; } if ( synPredMatched522 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else { boolean synPredMatched531 = false; if (((_tokenSet_14.member(LA(1))) && (_tokenSet_15.member(LA(2))) && (_tokenSet_16.member(LA(3))) && (true))) { int _m531 = mark(); synPredMatched531 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_2.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched531 = false; } rewind(_m531); inputState.guessing--; } if ( synPredMatched531 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>') && (true)) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)==']') && (LA(2)==']') && (LA(3)=='>') && (true)) { mXML_CDATA_END(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA_END; } } else { boolean synPredMatched517 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m517 = mark(); synPredMatched517 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched517 = false; } rewind(_m517); inputState.guessing--; } if ( synPredMatched517 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='\'') && (LA(2)=='\'') && (true) && (true))&&( inAttributeContent && attrDelimChar == '\'' )) { mESCAPE_APOS(false); if ( inputState.guessing==0 ) { _ttype = ESCAPE_APOS; } } else if (((LA(1)=='"') && (LA(2)=='"') && (true) && (true))&&( inAttributeContent && attrDelimChar == '"' )) { mESCAPE_QUOT(false); if ( inputState.guessing==0 ) { _ttype = ESCAPE_QUOT; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched519 = false; if ((((LA(1)=='.') && (LA(2)=='.') && (true) && (true))&&( !(inAttributeContent || inElementContent) ))) { int _m519 = mark(); synPredMatched519 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched519 = false; } rewind(_m519); inputState.guessing--; } if ( synPredMatched519 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if (((LA(1)=='/') && (LA(2)=='/') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if (((LA(1)=='|') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if (((LA(1)=='&') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if (((LA(1)=='!') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if (((LA(1)=='>') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true) && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='(') && (LA(2)=='#') && (true) && (true)) { mPRAGMA_START(false); if ( inputState.guessing==0 ) { _ttype = PRAGMA_START; } } else if (((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' '||LA(1)=='#') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( inPragma )) { mPRAGMA_END(false); if ( inputState.guessing==0 ) { inPragma = false; _ttype = PRAGMA_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_8.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '"' )) { mQUOT_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = QUOT_ATTRIBUTE_CONTENT; } } else if (((_tokenSet_9.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '\'' )) { mAPOS_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = APOS_ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((LA(1)=='\'') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mAPOS(false); if ( inputState.guessing==0 ) { _ttype = APOS; } } else if (((_tokenSet_17.member(LA(1))) && (true) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if (((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true) && (true))&&( !inPragma )) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_18.member(LA(1))) && (true) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched524 = false; if (((_tokenSet_14.member(LA(1))) && (true) && (true) && (true))) { int _m524 = mark(); synPredMatched524 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched524 = false; } rewind(_m524); inputState.guessing--; } if ( synPredMatched524 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched526 = false; if (((LA(1)=='.') && (true) && (true) && (true))) { int _m526 = mark(); synPredMatched526 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched526 = false; } rewind(_m526); inputState.guessing--; } if ( synPredMatched526 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched533 = false; if (((_tokenSet_14.member(LA(1))) && (true) && (true) && (true))) { int _m533 = mark(); synPredMatched533 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched533 = false; } rewind(_m533); inputState.guessing--; } if ( synPredMatched533 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_2.member(LA(1))) && (true) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/68bb69fc2bc91cbece43dcdf563e1be3ba003e1b/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
267,
1499,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
26314,
31,
6862,
9506,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
9571,
30,
202,
202,
95,
1082,
202,
81,
11529,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
534,
26314,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
1082,
202,
430,
14015,
2534,
12,
21,
13,
18920,
2668,
13,
597,
261,
2534,
12,
22,
13,
18920,
2497,
13,
597,
14015,
2534,
12,
23,
13,
1545,
2337,
89,
30770,
11,
597,
2928,
12,
23,
13,
1648,
2337,
696,
1403,
73,
26112,
597,
14015,
2534,
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,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
2
] |
cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) );
|
cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) );
|
public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); double dLocation = ax.getAxisCoordinate( ); double dAngleInDegrees = ax.getLabel( ) .getCaption( ) .getFont( ) .getRotation( ); AutoScale sc = ax.getScale( ); IntersectionValue iv = ax.getIntersectionValue( ); int iMajorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MAJOR ); int iMinorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MINOR ); int iLabelLocation = ax.getLabelPosition( ); int iOrientation = ax.getOrientation( ); Label la = (Label) EcoreUtil.copy( ax.getLabel( ) ); final IDisplayServer xs = this.getDevice( ).getDisplayServer( ); double[] daEndPoints = sc.getEndPoints( ); double[] da = sc.getTickCordinates( ); double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; int iDimension = pwa.getDimension( ); double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); final double dStaggeredLabelOffset = sc.computeStaggeredAxisLabelOffset( xs, la, iOrientation ); final boolean bAxisLabelStaggered = sc.isAxisLabelStaggered( ); DecimalFormat df = null; LineAttributes lia = ax.getLineAttributes( ); LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); final boolean bRenderAxisTitle = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); // Prepare 3D rendering variables. final boolean bRendering3D = iDimension == IConstants.THREE_D; final boolean bRenderOrthogonal3DAxis = ( iWhatToDraw & IConstants.ORTHOGONAL_AXIS ) == IConstants.ORTHOGONAL_AXIS && bRendering3D; final boolean bRenderBase3DAxis = ( iWhatToDraw & IConstants.BASE_AXIS ) == IConstants.BASE_AXIS && bRendering3D; final boolean bRenderAncillary3DAxis = ( iWhatToDraw & IConstants.ANCILLARY_AXIS ) == IConstants.ANCILLARY_AXIS && bRendering3D; final DeferredCache dc = getDeferredCache( ); final int axisType = ax.getAxisType( ); final Bounds boPlot = getPlotBounds( ); double[] daEndPoints3D = null; double[] da3D = null; Location3D lo3d = null; Text3DRenderEvent t3dre = null; Line3DRenderEvent l3dre = null; double dXStart = 0; double dZStart = 0; double dXEnd = 0; double dZEnd = 0; if ( iDimension == IConstants.THREE_D ) { AllAxes aax = pwa.getAxes( ); dXEnd = aax.getPrimaryBase( ).getScale( ).getEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getStart( ); daEndPoints3D = sc.getEndPoints( ); da3D = sc.getTickCordinates( ); lo3d = Location3DImpl.create( 0, 0, 0 ); t3dre = (Text3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Text3DRenderEvent.class ); t3dre.setLabel( la ); t3dre.setAction( Text3DRenderEvent.RENDER_TEXT_AT_LOCATION ); t3dre.setTextPosition( iLabelLocation ); t3dre.setLocation3D( lo3d ); l3dre = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dre.setLineAttributes( lia ); l3dre.setStart3D( Location3DImpl.create( 0, 0, 0 ) ); l3dre.setEnd3D( Location3DImpl.create( 0, 0, 0 ) ); } if ( iOrientation == IConstants.VERTICAL ) { int y; int y3d = 0; double dX = dLocation; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dZ = l3d.getZ( ); } if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderOrthogonal3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); // center l3dre.setStart3D( dX, dStart, dZ ); l3dre.setEnd3D( dX, dEnd, dZ ); dc.addLine( l3dre ); // left l3dre.setStart3D( dX, dStart, dZEnd ); l3dre.setEnd3D( dX, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZ ); l3dre.setEnd3D( dXEnd, dEnd, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { ArrayList cachedTriggers = null; Location3D[] loaHotspot = new Location3D[4]; Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); // process center y-axis. loaHotspot[0] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( (Trigger) EcoreUtil.copy( tg ) ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process left y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( (Trigger) EcoreUtil.copy( tg ) ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) EcoreUtil.copy( (Trigger) cachedTriggers.get( t ) ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process right y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) cachedTriggers.get( t ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { final double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[1] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[2] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dEnd ); loaHotspot[3] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dOffset = 0; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = -dUnitSize / 2; } double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED dOffset = -dUnitSize / 2; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d + dOffset, dZEnd ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d + dOffset, dZ ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( bRendering3D ) { y3d = (int) da3D[da3D.length - 1]; } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // RENDER // LABELS // ONLY // IF // REQUESTED { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } la = (Label) EcoreUtil.copy( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + 30, bb.getWidth( ), bb.getHeight( ) ) ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) - bb.getWidth( ), cbo.getTop( ) + 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); if ( ax.getTitle( ).isVisible( ) ) { ipr.drawText( tre ); } } } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = (Label) EcoreUtil.copy( ax.getLabel( ) ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; int x3d = 0; int z3d = 0; double dY = dLocation; double dX = 0; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dY = l3d.getY( ); dZ = l3d.getZ( ); } double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderBase3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dStart, dY, dZ ); l3dre.setEnd3D( dEnd, dY, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dStart, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[1] = Location3DImpl.create( dStart, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[2] = Location3DImpl.create( dEnd, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[3] = Location3DImpl.create( dEnd, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else if ( bRenderAncillary3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dX, dY, dStart ); l3dre.setEnd3D( dX, dY, dEnd ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[1] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[2] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); loaHotspot[3] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { final double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { // Zero plane. final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dStart, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[1] = LocationImpl.create( dEnd, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[2] = LocationImpl.create( dEnd, dY + IConstants.LINE_EXPAND_SIZE ); loaHotspot[3] = LocationImpl.create( dStart, dY + IConstants.LINE_EXPAND_SIZE ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dOffset = 0; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = dUnitSize / 2; } double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), // step to next value. iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED dOffset = dUnitSize / 2; double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, sy ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } // RENDER THE AXIS TITLE la = (Label) EcoreUtil.copy( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); if ( axisType == IConstants.BASE_AXIS ) { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ), cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30, bb.getWidth( ), bb.getHeight( ) ) ); } else { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) * 2 / 3d + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); } tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } } la.getCaption( ).setValue( sRestoreValue ); // RESTORE ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = (Label) EcoreUtil.copy( ax.getLabel( ) ); // RESTORE BACK TO // AXIS LABEL if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/536b54a46b25aa99e427a2fbd8217e09108c905a/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
202,
202,
9056,
302,
2735,
273,
1740,
18,
588,
6558,
13503,
12,
11272,
202,
202,
9056,
302,
8467,
382,
24400,
273,
1740,
18,
588,
2224,
12,
262,
9506,
202,
18,
588,
21158,
12,
262,
9506,
202,
18,
588,
5711,
12,
262,
9506,
202,
18,
588,
14032,
12,
11272,
202,
202,
4965,
5587,
888,
273,
1740,
18,
588,
5587,
12,
11272,
202,
202,
23634,
620,
4674,
273,
1740,
18,
588,
23634,
620,
12,
11272,
202,
202,
474,
277,
17581,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
18,
588,
6264,
2885,
12,
467,
2918,
18,
26976,
916,
11272,
202,
202,
474,
277,
19549,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
18,
588,
6264,
2885,
12,
467,
2918,
18,
6236,
916,
11272,
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,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
2
] |
SystemUtils.getIdleTime() < 30*1000) {
|
SystemUtils.getIdleTime() < 30*1000 && !QuestionsHandler.NO_INTERNET.getValue()) {
|
public void noInternetConnection() { if(_automaticallyConnecting) { // Notify the HostCatcher that it should keep any hosts it has // already used instead of discarding them only if we're down to // a small number of hosts to try. // The HostCatcher can be null in testing. if(_catcher != null && (_catcher.getNumHosts() < 50)) { _catcher.recoverHosts(); } // We've already notified the user about their connection and we're // alread retrying, so just return. return; } // If the user has used the computer in the last 30 seconds, notify // them to reconnect. Otherwise, there may have been a temporary // hiccup in the network connection, and we'll keep automatically // trying to recover the connection. if(SystemUtils.supportsIdleTime() && SystemUtils.getIdleTime() < 30*1000) { // Notify the user that they have no internet connection. MessageService.showError("NO_INTERNET", QuestionsHandler.NO_INTERNET); } else { // Notify the user that they have no internet connection and that // we will automatically retry MessageService.showError("NO_INTERNET_RETRYING", QuestionsHandler.NO_INTERNET); // Try to reconnect in 10 seconds, and then every minute after // that. RouterService.schedule(new Runnable() { public void run() { // If the last time the user disconnected is more recent // than when we started automatically connecting, just // return without trying to connect. Note that the // disconnect time is reset if the user selects to connect. if(_automaticConnectTime < _disconnectTime) { return; } ConnectionManager cm = RouterService.getConnectionManager(); if(!cm.isConnected()) { cm.connect(); } } }, 10*1000, 60*1000); _automaticConnectTime = System.currentTimeMillis(); _automaticallyConnecting = true; } _noInternetConnection = true; // Kill all of the ConnectionFetchers. disconnect(); // Notify the HostCatcher that it should keep any hosts it has already // used instead of discarding them. // The HostCatcher can be null in testing. if(_catcher != null) { _catcher.recoverHosts(); } }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/c22e8e0818ff515930fd2c22f02c17cbcfc77ae7/ConnectionManager.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/ConnectionManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1158,
26562,
1952,
1435,
288,
7734,
309,
24899,
5854,
20271,
30049,
13,
288,
5411,
368,
10918,
326,
4893,
14842,
264,
716,
518,
1410,
3455,
1281,
7206,
518,
711,
2398,
368,
1818,
1399,
3560,
434,
10388,
310,
2182,
1338,
309,
732,
4565,
2588,
358,
5411,
368,
279,
5264,
1300,
434,
7206,
358,
775,
18,
2398,
368,
1021,
4893,
14842,
264,
848,
506,
446,
316,
7769,
18,
5411,
309,
24899,
14683,
264,
480,
446,
597,
261,
67,
14683,
264,
18,
588,
2578,
12172,
1435,
411,
6437,
3719,
288,
7734,
389,
14683,
264,
18,
266,
3165,
12172,
5621,
5411,
289,
17311,
368,
1660,
8081,
1818,
18791,
326,
729,
2973,
3675,
1459,
471,
732,
4565,
5411,
368,
524,
896,
21081,
16,
1427,
2537,
327,
18,
7734,
327,
31,
1850,
289,
7734,
368,
971,
326,
729,
711,
1399,
326,
26579,
316,
326,
1142,
5196,
3974,
16,
5066,
540,
368,
2182,
358,
11812,
18,
225,
5272,
16,
1915,
2026,
1240,
2118,
279,
6269,
540,
368,
366,
335,
71,
416,
316,
326,
2483,
1459,
16,
471,
732,
5614,
3455,
6635,
540,
368,
8374,
358,
5910,
326,
1459,
18,
3639,
309,
12,
3163,
1989,
18,
28064,
13834,
950,
1435,
597,
6647,
2332,
1989,
18,
588,
13834,
950,
1435,
411,
5196,
14,
18088,
597,
401,
30791,
1115,
1503,
18,
3417,
67,
706,
6519,
1584,
18,
24805,
10756,
288,
5411,
368,
10918,
326,
729,
716,
2898,
1240,
1158,
24264,
1459,
18,
5411,
2350,
1179,
18,
4500,
668,
2932,
3417,
67,
706,
6519,
1584,
3113,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1158,
26562,
1952,
1435,
288,
7734,
309,
24899,
5854,
20271,
30049,
13,
288,
5411,
368,
10918,
326,
4893,
14842,
264,
716,
518,
1410,
3455,
1281,
7206,
518,
711,
2398,
368,
1818,
1399,
3560,
434,
10388,
310,
2182,
1338,
309,
732,
4565,
2588,
358,
5411,
368,
279,
5264,
1300,
434,
7206,
358,
775,
18,
2398,
368,
1021,
4893,
14842,
264,
848,
506,
446,
316,
7769,
18,
5411,
309,
24899,
14683,
264,
480,
446,
597,
261,
67,
14683,
264,
18,
588,
2578,
12172,
1435,
411,
6437,
3719,
288,
7734,
389,
14683,
264,
18,
266,
3165,
12172,
5621,
5411,
289,
17311,
368,
1660,
8081,
1818,
18791,
326,
729,
2973,
3675,
1459,
471,
732,
4565,
5411,
368,
524,
896,
21081,
2
] |
if((!splitfile) && (documentType == SIMPLE_REDIRECT || documentType == ZIP_MANIFEST)) {
|
if((!splitfile) && ((documentType == SIMPLE_REDIRECT) || (documentType == ZIP_MANIFEST))) {
|
public void writeTo(DataOutputStream dos) throws IOException, MetadataUnresolvedException { dos.writeLong(FREENET_METADATA_MAGIC); dos.writeShort(0); // version dos.writeByte(documentType); if(documentType == SIMPLE_REDIRECT || documentType == MULTI_LEVEL_METADATA || documentType == ZIP_MANIFEST || documentType == ZIP_INTERNAL_REDIRECT) { short flags = 0; if(splitfile) flags |= FLAGS_SPLITFILE; if(dbr) flags |= FLAGS_DBR; if(noMIME) flags |= FLAGS_NO_MIME; if(compressedMIME) flags |= FLAGS_COMPRESSED_MIME; if(extraMetadata) flags |= FLAGS_EXTRA_METADATA; if(fullKeys) flags |= FLAGS_FULL_KEYS; if(splitUseLengths) flags |= FLAGS_SPLIT_USE_LENGTHS; if(compressionCodec >= 0) flags |= FLAGS_COMPRESSED; dos.writeShort(flags); } if(documentType == ZIP_MANIFEST) { dos.writeShort(archiveType); } if(splitfile) { dos.writeLong(dataLength); } if(compressionCodec >= 0) { dos.writeShort(compressionCodec); dos.writeLong(decompressedLength); } if(!noMIME) { if(compressedMIME) { int x = compressedMIMEValue; if(hasCompressedMIMEParams) x |= 32768; dos.writeShort((short)x); if(hasCompressedMIMEParams) dos.writeShort(compressedMIMEParams); } else { byte[] data = mimeType.getBytes("UTF-8"); if(data.length > 255) throw new Error("MIME type too long: "+data.length+" bytes: "+mimeType); dos.writeByte((byte)data.length); dos.write(data); } } if(dbr) throw new UnsupportedOperationException("No DBR support yet"); if(extraMetadata) throw new UnsupportedOperationException("No extra metadata support yet"); if((!splitfile) && (documentType == SIMPLE_REDIRECT || documentType == ZIP_MANIFEST)) { writeKey(dos, simpleRedirectKey); } else if(splitfile) { dos.writeShort(splitfileAlgorithm); if(splitfileParams != null) { dos.writeInt(splitfileParams.length); dos.write(splitfileParams); } else dos.writeInt(0); dos.writeInt(splitfileBlocks); dos.writeInt(splitfileCheckBlocks); for(int i=0;i<splitfileBlocks;i++) writeKey(dos, splitfileDataKeys[i]); for(int i=0;i<splitfileCheckBlocks;i++) writeKey(dos, splitfileCheckKeys[i]); } if(documentType == SIMPLE_MANIFEST) { dos.writeInt(manifestEntries.size()); boolean kill = false; LinkedList unresolvedMetadata = null; for(Iterator i=manifestEntries.keySet().iterator();i.hasNext();) { String name = (String) i.next(); byte[] nameData = name.getBytes("UTF-8"); if(nameData.length > Short.MAX_VALUE) throw new IllegalArgumentException("Manifest name too long"); dos.writeShort(nameData.length); dos.write(nameData); Metadata meta = (Metadata) manifestEntries.get(name); try { byte[] data = meta.writeToByteArray(); if(data.length > Short.MAX_VALUE) { FreenetURI uri = meta.resolvedURI; if(uri != null) { meta = new Metadata(SIMPLE_REDIRECT, uri, null); data = meta.writeToByteArray(); } else { kill = true; if(unresolvedMetadata == null) unresolvedMetadata = new LinkedList(); unresolvedMetadata.addLast(meta); } } dos.writeShort(data.length); dos.write(data); } catch (MetadataUnresolvedException e) { Metadata[] m = e.mustResolve; if(unresolvedMetadata == null) unresolvedMetadata = new LinkedList(); for(int j=0;j<m.length;j++) unresolvedMetadata.addFirst(m[j]); } } if(kill) { Metadata[] meta = (Metadata[]) unresolvedMetadata.toArray(new Metadata[unresolvedMetadata.size()]); throw new MetadataUnresolvedException(meta, "Manifest data too long and not resolved"); } } if(documentType == ZIP_INTERNAL_REDIRECT) { byte[] data = nameInArchive.getBytes("UTF-8"); if(data.length > Short.MAX_VALUE) throw new IllegalArgumentException("Zip internal redirect name too long"); dos.writeShort(data.length); dos.write(data); } }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Metadata.java/buggy/src/freenet/client/Metadata.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12870,
12,
751,
4632,
16153,
13,
1216,
1860,
16,
6912,
984,
11792,
503,
288,
202,
202,
19219,
18,
2626,
3708,
12,
42,
15878,
1584,
67,
22746,
67,
49,
22247,
1769,
202,
202,
19219,
18,
2626,
4897,
12,
20,
1769,
368,
1177,
202,
202,
19219,
18,
2626,
3216,
12,
5457,
559,
1769,
202,
202,
430,
12,
5457,
559,
422,
19098,
67,
25103,
747,
1668,
559,
422,
27125,
67,
10398,
67,
22746,
9506,
202,
20081,
1668,
559,
422,
18277,
67,
9560,
30050,
747,
1668,
559,
422,
18277,
67,
14005,
67,
25103,
13,
288,
1082,
202,
6620,
2943,
273,
374,
31,
1082,
202,
430,
12,
4939,
768,
13,
2943,
5626,
16993,
67,
17482,
3776,
31,
1082,
202,
430,
12,
1966,
86,
13,
2943,
5626,
16993,
67,
2290,
54,
31,
1082,
202,
430,
12,
2135,
18178,
13,
2943,
5626,
16993,
67,
3417,
67,
18178,
31,
1082,
202,
430,
12,
15385,
18178,
13,
2943,
5626,
16993,
67,
4208,
27388,
67,
18178,
31,
1082,
202,
430,
12,
7763,
2277,
13,
2943,
5626,
16993,
67,
22639,
67,
22746,
31,
1082,
202,
430,
12,
2854,
2396,
13,
2943,
5626,
16993,
67,
18111,
67,
16333,
31,
1082,
202,
430,
12,
4939,
3727,
22406,
13,
2943,
5626,
16993,
67,
17482,
67,
8001,
67,
7096,
55,
31,
1082,
202,
430,
12,
23766,
11008,
1545,
374,
13,
2943,
5626,
16993,
67,
4208,
27388,
31,
1082,
202,
19219,
18,
2626,
4897,
12,
7133,
1769,
202,
202,
97,
9506,
202,
430,
12,
5457,
559,
422,
18277,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12870,
12,
751,
4632,
16153,
13,
1216,
1860,
16,
6912,
984,
11792,
503,
288,
202,
202,
19219,
18,
2626,
3708,
12,
42,
15878,
1584,
67,
22746,
67,
49,
22247,
1769,
202,
202,
19219,
18,
2626,
4897,
12,
20,
1769,
368,
1177,
202,
202,
19219,
18,
2626,
3216,
12,
5457,
559,
1769,
202,
202,
430,
12,
5457,
559,
422,
19098,
67,
25103,
747,
1668,
559,
422,
27125,
67,
10398,
67,
22746,
9506,
202,
20081,
1668,
559,
422,
18277,
67,
9560,
30050,
747,
1668,
559,
422,
18277,
67,
14005,
67,
25103,
13,
288,
1082,
202,
6620,
2943,
273,
374,
31,
1082,
202,
430,
12,
4939,
768,
13,
2943,
5626,
16993,
67,
17482,
3776,
31,
1082,
202,
430,
2
] |
parameters = service.getParameterDefinitions( attrBean.getReportDesignHandle( request ), options, true );
|
parameters = service.getParameterDefinitions( attrBean .getReportDesignHandle( request ), options, true );
|
protected void doService( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { Collection fragments = new ArrayList( ); IViewerReportService service = getReportService( ); Collection parameters = null; InputOptions options = new InputOptions( ); options.setOption( InputOptions.OPT_REQUEST, request ); BaseAttributeBean attrBean = (BaseAttributeBean) request .getAttribute( "attributeBean" ); //$NON-NLS-1$ assert attrBean != null; try { parameters = service.getParameterDefinitions( attrBean.getReportDesignHandle( request ), options, true ); } catch ( ReportServiceException e ) { // TODO What to do here??? e.printStackTrace( ); } if ( parameters != null ) { Iterator iParameters = parameters.iterator( ); while ( iParameters != null && iParameters.hasNext( ) ) { Object parameter = iParameters.next( ); if ( parameter == null ) { continue; } IFragment fragment = null; if ( parameter instanceof ParameterGroupDefinition ) { fragment = new ParameterGroupFragment( (ParameterGroupDefinition) parameter ); } else if ( parameter instanceof ParameterDefinition ) { ParameterDefinition scalarParameter = (ParameterDefinition) parameter; if ( !scalarParameter.isHidden( ) ) { switch ( scalarParameter.getControlType( ) ) { case ParameterDefinition.TEXT_BOX : { fragment = new TextBoxParameterFragment( scalarParameter ); break; } case ParameterDefinition.LIST_BOX : { fragment = new ComboBoxParameterFragment( scalarParameter ); break; } case ParameterDefinition.RADIO_BUTTON : { fragment = new RadioButtonParameterFragment( scalarParameter ); break; } case ParameterDefinition.CHECK_BOX : { fragment = new CheckboxParameterFragment( scalarParameter ); break; } } } } if ( fragment != null ) { fragment.setJSPRootPath( JSPRootPath ); fragments.add( fragment ); } } } request.setAttribute( "fragments", fragments ); //$NON-NLS-1$ }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/6f200516dd6e313325dd2c5637ad596549bf99c5/ParameterDialogFragment.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/dialog/ParameterDialogFragment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
1179,
12,
9984,
590,
16,
1082,
202,
2940,
29910,
766,
262,
1216,
16517,
16,
1860,
202,
95,
202,
202,
2532,
14656,
273,
394,
2407,
12,
11272,
202,
202,
45,
18415,
4820,
1179,
1156,
273,
22452,
1179,
12,
11272,
202,
202,
2532,
1472,
273,
446,
31,
202,
202,
1210,
1320,
702,
273,
394,
2741,
1320,
12,
11272,
202,
202,
2116,
18,
542,
1895,
12,
2741,
1320,
18,
15620,
67,
5519,
16,
590,
11272,
202,
202,
2171,
1499,
3381,
1604,
3381,
273,
261,
2171,
1499,
3381,
13,
590,
9506,
202,
18,
588,
1499,
12,
315,
4589,
3381,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
11231,
1604,
3381,
480,
446,
31,
9506,
202,
698,
202,
202,
95,
1082,
202,
3977,
273,
1156,
18,
588,
1662,
7130,
12,
6862,
202,
1747,
3381,
18,
588,
4820,
15478,
3259,
12,
590,
262,
16,
702,
16,
638,
11272,
202,
202,
97,
202,
202,
14683,
261,
8706,
15133,
425,
262,
202,
202,
95,
1082,
202,
759,
2660,
18734,
358,
741,
2674,
14646,
35,
1082,
202,
73,
18,
1188,
6332,
12,
11272,
202,
202,
97,
202,
202,
430,
261,
1472,
480,
446,
262,
202,
202,
95,
1082,
202,
3198,
277,
2402,
273,
1472,
18,
9838,
12,
11272,
1082,
202,
17523,
261,
277,
2402,
480,
446,
597,
277,
2402,
18,
5332,
2134,
12,
262,
262,
1082,
202,
95,
9506,
202,
921,
1569,
273,
277,
2402,
18,
4285,
12,
11272,
9506,
202,
430,
261,
1569,
422,
446,
262,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
1179,
12,
9984,
590,
16,
1082,
202,
2940,
29910,
766,
262,
1216,
16517,
16,
1860,
202,
95,
202,
202,
2532,
14656,
273,
394,
2407,
12,
11272,
202,
202,
45,
18415,
4820,
1179,
1156,
273,
22452,
1179,
12,
11272,
202,
202,
2532,
1472,
273,
446,
31,
202,
202,
1210,
1320,
702,
273,
394,
2741,
1320,
12,
11272,
202,
202,
2116,
18,
542,
1895,
12,
2741,
1320,
18,
15620,
67,
5519,
16,
590,
11272,
202,
202,
2171,
1499,
3381,
1604,
3381,
273,
261,
2171,
1499,
3381,
13,
590,
9506,
202,
18,
588,
1499,
12,
315,
4589,
3381,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
11231,
1604,
3381,
480,
446,
31,
9506,
202,
2
] |
public String getStringValue(CmsObject cms, I_CmsXmlDocument document) { if (m_stringValue == null) { m_stringValue = createStringValue(cms, document); } return m_stringValue; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6544df384a08c2b3f4af8dd8d906cd9bfffe7189/CmsXmlHtmlValue.java/buggy/src/org/opencms/xml/types/CmsXmlHtmlValue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
27509,
12,
4747,
921,
6166,
16,
467,
67,
4747,
4432,
2519,
1668,
13,
288,
7734,
309,
261,
81,
67,
1080,
620,
422,
446,
13,
288,
5411,
312,
67,
1080,
620,
273,
752,
19733,
12,
6851,
16,
1668,
1769,
3639,
289,
7734,
327,
312,
67,
1080,
620,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
27509,
12,
4747,
921,
6166,
16,
467,
67,
4747,
4432,
2519,
1668,
13,
288,
7734,
309,
261,
81,
67,
1080,
620,
422,
446,
13,
288,
5411,
312,
67,
1080,
620,
273,
752,
19733,
12,
6851,
16,
1668,
1769,
3639,
289,
7734,
327,
312,
67,
1080,
620,
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
] |
||
return new String("");
|
return "";
|
public String getCatalogSeparator() throws SQLException { // PM Sep 29 97 - changed from "." as we don't support catalogs. return new String(""); }
|
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/7f171b599a50d471d4791c768b538978b4a2dc95/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1927,
4392,
6581,
1435,
1216,
6483,
225,
288,
565,
368,
23544,
18032,
12899,
16340,
300,
3550,
628,
4585,
487,
732,
2727,
1404,
2865,
26455,
18,
565,
327,
1408,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1927,
4392,
6581,
1435,
1216,
6483,
225,
288,
565,
368,
23544,
18032,
12899,
16340,
300,
3550,
628,
4585,
487,
732,
2727,
1404,
2865,
26455,
18,
565,
327,
1408,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
JobInfo info = getJobInfo(event.getJob()); refreshJobInfo(info); Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.incrementBusy(event.getJob()); } }
|
JobInfo info = getJobInfo(event.getJob()); refreshJobInfo(info); Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.incrementBusy(event.getJob()); } }
|
public void aboutToRun(IJobChangeEvent event) { JobInfo info = getJobInfo(event.getJob()); refreshJobInfo(info); Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.incrementBusy(event.getJob()); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
2973,
774,
1997,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
2278,
966,
1123,
273,
13024,
966,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
9144,
2278,
966,
12,
1376,
1769,
9506,
202,
3198,
787,
5583,
273,
21697,
5583,
1290,
2278,
12,
2575,
18,
588,
2278,
10756,
25083,
202,
18,
9838,
5621,
9506,
202,
17523,
261,
1937,
5583,
18,
5332,
2134,
10756,
288,
6862,
202,
45,
2278,
29289,
2223,
1024,
273,
261,
45,
2278,
29289,
2223,
13,
787,
5583,
6862,
1082,
202,
18,
4285,
5621,
6862,
202,
4285,
18,
15016,
29289,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
97,
1082,
202,
97,
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,
1875,
202,
482,
918,
2973,
774,
1997,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
2278,
966,
1123,
273,
13024,
966,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
9144,
2278,
966,
12,
1376,
1769,
9506,
202,
3198,
787,
5583,
273,
21697,
5583,
1290,
2278,
12,
2575,
18,
588,
2278,
10756,
25083,
202,
18,
9838,
5621,
9506,
202,
17523,
261,
1937,
5583,
18,
5332,
2134,
10756,
288,
6862,
202,
45,
2278,
29289,
2223,
1024,
273,
261,
45,
2278,
29289,
2223,
13,
787,
5583,
6862,
1082,
202,
18,
4285,
5621,
6862,
202,
4285,
18,
15016,
29289,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
97,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected void handleEntry(List historyEntry) { Modification mod = new Modification(); String nameAndDateLine = (String) historyEntry.get(2); mod.userName = parseUser(nameAndDateLine); mod.modifiedTime = parseDate(nameAndDateLine); String folderLine = (String) historyEntry.get(0); String fileLine = (String) historyEntry.get(3); if(!isInSsDir(folderLine)) { // We are only interested in modifications to files in the specified ssdir return; } else if (isBeforeLastBuild(mod.modifiedTime)) { // We are only interested in modifications since the last build return; } else if (fileLine.startsWith("Labeled")) { // We don't add labels. return; } else if (fileLine.startsWith("Checked in")) { mod.type = "checkin"; mod.comment = parseComment(historyEntry); mod.fileName = substringFromLastSlash(folderLine); mod.folderName = substringToLastSlash(folderLine); } else if (fileLine.indexOf(" renamed to ") > -1) { // TODO: This is a special case that is really two modifications: deleted and recovered. // For now I'll consider it a deleted to force a clean build. // I should really make this two modifications. mod.type = "delete"; mod.comment = parseComment(historyEntry); mod.fileName = fileLine.substring(0, fileLine.indexOf(" ")); mod.folderName = folderLine; } else if (fileLine.indexOf(" moved to ") > -1) { // TODO: This is a special case that is really two modifications: deleted and recovered. // For now I'll consider it a deleted to force a clean build. // I should really make this two modifications. mod.type = "delete"; mod.comment = parseComment(historyEntry); mod.fileName = fileLine.substring(0, fileLine.indexOf(" ")); mod.folderName = folderLine; } else { mod.folderName = folderLine; mod.fileName = fileLine.substring(0, fileLine.lastIndexOf(" ")); mod.comment = parseComment(historyEntry); if (fileLine.endsWith("added")) { mod.type = "add"; } else if (fileLine.endsWith("deleted")) { mod.type = "delete"; } else if (fileLine.endsWith("recovered")) { mod.type = "recover"; } else if (fileLine.endsWith("shared")) { mod.type = "branch"; } } if (_propertyOnDelete != null && "delete".equals(mod.type)) { getAntTask().getProject().setProperty(_propertyOnDelete, "true"); } if (_property != null) { getAntTask().getProject().setProperty(_property, "true"); } // Add the modification and the user's email _modifications.add(mod); _emails.add(mod.userName); logModification(mod); }
|
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/047b07a31036241d8148d69d7cc8c27c743e7da9/VssJournalElement.java/clean/main/src/net/sourceforge/cruisecontrol/element/VssJournalElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1622,
12,
682,
4927,
1622,
13,
288,
7734,
3431,
1480,
681,
273,
394,
3431,
1480,
5621,
3639,
514,
508,
1876,
1626,
1670,
273,
261,
780,
13,
4927,
1622,
18,
588,
12,
22,
1769,
3639,
681,
18,
1355,
461,
273,
1109,
1299,
12,
529,
1876,
1626,
1670,
1769,
3639,
681,
18,
7342,
950,
273,
29033,
12,
529,
1876,
1626,
1670,
1769,
7734,
514,
3009,
1670,
273,
261,
780,
13,
4927,
1622,
18,
588,
12,
20,
1769,
3639,
514,
585,
1670,
273,
261,
780,
13,
4927,
1622,
18,
588,
12,
23,
1769,
7734,
309,
12,
5,
291,
382,
55,
87,
1621,
12,
5609,
1670,
3719,
288,
5411,
368,
1660,
854,
1338,
20506,
316,
17953,
358,
1390,
316,
326,
1269,
5202,
1214,
5411,
327,
31,
3639,
289,
469,
309,
261,
291,
4649,
3024,
3116,
12,
1711,
18,
7342,
950,
3719,
288,
5411,
368,
1660,
854,
1338,
20506,
316,
17953,
3241,
326,
1142,
1361,
5411,
327,
31,
3639,
289,
469,
309,
261,
768,
1670,
18,
17514,
1190,
2932,
2224,
329,
6,
3719,
288,
5411,
368,
1660,
2727,
1404,
527,
3249,
18,
5411,
327,
31,
3639,
289,
469,
309,
261,
768,
1670,
18,
17514,
1190,
2932,
11454,
316,
6,
3719,
288,
5411,
681,
18,
723,
273,
315,
1893,
267,
14432,
5411,
681,
18,
3469,
273,
1109,
4469,
12,
8189,
1622,
1769,
5411,
681,
18,
17812,
273,
3019,
1265,
3024,
11033,
12,
5609,
1670,
1769,
5411,
681,
18,
5609,
461,
273,
3019,
774,
3024,
11033,
12,
5609,
1670,
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,
4750,
918,
1640,
1622,
12,
682,
4927,
1622,
13,
288,
7734,
3431,
1480,
681,
273,
394,
3431,
1480,
5621,
3639,
514,
508,
1876,
1626,
1670,
273,
261,
780,
13,
4927,
1622,
18,
588,
12,
22,
1769,
3639,
681,
18,
1355,
461,
273,
1109,
1299,
12,
529,
1876,
1626,
1670,
1769,
3639,
681,
18,
7342,
950,
273,
29033,
12,
529,
1876,
1626,
1670,
1769,
7734,
514,
3009,
1670,
273,
261,
780,
13,
4927,
1622,
18,
588,
12,
20,
1769,
3639,
514,
585,
1670,
273,
261,
780,
13,
4927,
1622,
18,
588,
12,
23,
1769,
7734,
309,
12,
5,
291,
382,
55,
87,
1621,
12,
5609,
1670,
3719,
288,
5411,
368,
1660,
854,
1338,
20506,
316,
17953,
358,
1390,
316,
2
] |
||
assertEqualString(lab, "TestSetupProject/src - org.test.Outer.foo(..).Local");
|
assertEqualString(lab, "TestSetupProject/src - org.test.Outer.foo(...).Local");
|
public void testTypeLabelLocal() throws Exception { IPackageFragmentRoot sourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src"); IPackageFragment pack1= sourceFolder.createPackageFragment("org.test", false, null); StringBuffer buf= new StringBuffer(); buf.append("package org.test;\n"); buf.append("import java.util.Vector;\n"); buf.append("public class Outer {\n"); buf.append(" public void foo(Vector vec) {\n"); buf.append(" public class Local {\n"); buf.append(" }\n"); buf.append(" }\n"); buf.append("}\n"); String content= buf.toString(); ICompilationUnit cu= pack1.createCompilationUnit("Outer.java", content, false, null); IJavaElement elem= cu.getElementAt(content.indexOf("Local")); String lab= JavaElementLabels.getTextLabel(elem, JavaElementLabels.T_FULLY_QUALIFIED); assertEqualString(lab, "org.test.Outer.foo(..).Local"); lab= JavaElementLabels.getTextLabel(elem, JavaElementLabels.T_CONTAINER_QUALIFIED); assertEqualString(lab, "Outer.foo(..).Local"); lab= JavaElementLabels.getTextLabel(elem, JavaElementLabels.T_POST_QUALIFIED); assertEqualString(lab, "Local - org.test.Outer.foo(..)"); lab= JavaElementLabels.getTextLabel(elem, JavaElementLabels.T_FULLY_QUALIFIED | JavaElementLabels.APPEND_ROOT_PATH); assertEqualString(lab, "org.test.Outer.foo(..).Local - TestSetupProject/src"); lab= JavaElementLabels.getTextLabel(elem, JavaElementLabels.T_FULLY_QUALIFIED | JavaElementLabels.PREPEND_ROOT_PATH); assertEqualString(lab, "TestSetupProject/src - org.test.Outer.foo(..).Local"); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/48f9adbfa03768846418ebab0b62371012592ec8/JavaElementLabelsTest.java/buggy/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/JavaElementLabelsTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
559,
2224,
2042,
1435,
1216,
1185,
288,
9506,
202,
45,
2261,
7456,
2375,
1084,
3899,
33,
5110,
4109,
2276,
18,
1289,
1830,
2170,
12,
74,
46,
4109,
21,
16,
315,
4816,
8863,
9506,
202,
45,
2261,
7456,
2298,
21,
33,
1084,
3899,
18,
2640,
2261,
7456,
2932,
3341,
18,
3813,
3113,
629,
16,
446,
1769,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
4385,
18,
6923,
2932,
5610,
2358,
18,
3813,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5666,
2252,
18,
1367,
18,
5018,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
482,
667,
2976,
264,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
1071,
918,
8431,
12,
5018,
7062,
13,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
1071,
667,
3566,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
289,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
289,
64,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
6280,
82,
8863,
1082,
202,
780,
913,
33,
1681,
18,
10492,
5621,
202,
202,
45,
19184,
2802,
15985,
33,
2298,
21,
18,
2640,
19184,
2802,
2932,
15040,
18,
6290,
3113,
913,
16,
629,
16,
446,
1769,
202,
202,
45,
5852,
1046,
3659,
33,
15985,
18,
21336,
861,
12,
1745,
18,
31806,
2932,
2042,
7923,
1769,
202,
202,
780,
11814,
33,
5110,
1046,
5888,
18,
588,
1528,
2224,
12,
10037,
16,
5110,
1046,
5888,
18,
56,
67,
18111,
61,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
559,
2224,
2042,
1435,
1216,
1185,
288,
9506,
202,
45,
2261,
7456,
2375,
1084,
3899,
33,
5110,
4109,
2276,
18,
1289,
1830,
2170,
12,
74,
46,
4109,
21,
16,
315,
4816,
8863,
9506,
202,
45,
2261,
7456,
2298,
21,
33,
1084,
3899,
18,
2640,
2261,
7456,
2932,
3341,
18,
3813,
3113,
629,
16,
446,
1769,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
4385,
18,
6923,
2932,
5610,
2358,
18,
3813,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5666,
2252,
18,
1367,
18,
5018,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
482,
667,
2976,
264,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
1071,
918,
2
] |
switch ( LA(1) )
|
switch ( la )
|
private void multiplicativeExpr() throws SAXPathException { unaryExpr(); int la = LA(1); while (la == STAR || la == DIV || la == MOD) { switch ( LA(1) ) { case STAR: { match( STAR ); getXPathHandler().startMultiplicativeExpr(); unaryExpr(); getXPathHandler().endMultiplicativeExpr( Operator.MULTIPLY ); break; } case DIV: { match( DIV ); getXPathHandler().startMultiplicativeExpr(); unaryExpr(); getXPathHandler().endMultiplicativeExpr( Operator.DIV ); break; } case MOD: { match( MOD ); getXPathHandler().startMultiplicativeExpr(); unaryExpr(); getXPathHandler().endMultiplicativeExpr( Operator.MOD ); break; } } la = LA(1); } }
|
47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/9fae5b4d11feeaf10d38b58bfad0788820621cae/XPathReader.java/buggy/src/java/main/org/jaxen/saxpath/base/XPathReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3309,
28884,
4742,
1435,
1216,
10168,
743,
503,
565,
288,
3639,
19017,
4742,
5621,
3639,
509,
7125,
273,
2928,
12,
21,
1769,
3639,
1323,
261,
11821,
422,
21807,
747,
7125,
422,
27355,
747,
7125,
422,
8663,
13,
3639,
288,
5411,
1620,
261,
7125,
262,
5411,
288,
7734,
648,
21807,
30,
7734,
288,
10792,
845,
12,
21807,
11272,
10792,
6538,
743,
1503,
7675,
1937,
5002,
28884,
4742,
5621,
10792,
19017,
4742,
5621,
10792,
6538,
743,
1503,
7675,
409,
5002,
28884,
4742,
12,
11097,
18,
24683,
7076,
11272,
10792,
898,
31,
7734,
289,
7734,
648,
27355,
30,
7734,
288,
10792,
845,
12,
27355,
11272,
10792,
6538,
743,
1503,
7675,
1937,
5002,
28884,
4742,
5621,
10792,
19017,
4742,
5621,
10792,
6538,
743,
1503,
7675,
409,
5002,
28884,
4742,
12,
11097,
18,
31901,
11272,
10792,
898,
31,
7734,
289,
7734,
648,
8663,
30,
7734,
288,
10792,
845,
12,
8663,
11272,
10792,
6538,
743,
1503,
7675,
1937,
5002,
28884,
4742,
5621,
10792,
19017,
4742,
5621,
10792,
6538,
743,
1503,
7675,
409,
5002,
28884,
4742,
12,
11097,
18,
6720,
11272,
10792,
898,
31,
7734,
289,
5411,
289,
5411,
7125,
273,
2928,
12,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3309,
28884,
4742,
1435,
1216,
10168,
743,
503,
565,
288,
3639,
19017,
4742,
5621,
3639,
509,
7125,
273,
2928,
12,
21,
1769,
3639,
1323,
261,
11821,
422,
21807,
747,
7125,
422,
27355,
747,
7125,
422,
8663,
13,
3639,
288,
5411,
1620,
261,
7125,
262,
5411,
288,
7734,
648,
21807,
30,
7734,
288,
10792,
845,
12,
21807,
11272,
10792,
6538,
743,
1503,
7675,
1937,
5002,
28884,
4742,
5621,
10792,
19017,
4742,
5621,
10792,
6538,
743,
1503,
7675,
409,
5002,
28884,
4742,
12,
11097,
18,
24683,
7076,
11272,
10792,
898,
31,
7734,
289,
7734,
648,
27355,
30,
7734,
288,
10792,
845,
12,
27355,
11272,
10792,
6538,
743,
1503,
7675,
1937,
5002,
28884,
4742,
5621,
10792,
19017,
4742,
5621,
2
] |
{ return false; }
|
{ return false; }
|
public boolean supportsSchemasInIndexDefinitions() throws SQLException { return false; }
|
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/0c8299478c05542a0f240973829223c7dae7e4dd/DatabaseMetaData.java/buggy/postgresql/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
16749,
382,
1016,
7130,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
16749,
382,
1016,
7130,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
createLabel(parent, toolkit); button = toolkit.createButton(parent, "", SWT.CHECK); GridData gd = new GridData(); gd.horizontalSpan = span - 1; button.setLayoutData(gd); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (!blockNotification) markDirty(); updateText(); } }); button.setEnabled(part.isEditable());
|
super.createContents(parent, toolkit, span); if (getUse()!=ISchemaAttribute.REQUIRED) combo.add(""); combo.add("true"); combo.add("false");
|
public void createContents(Composite parent, FormToolkit toolkit, int span) { createLabel(parent, toolkit); button = toolkit.createButton(parent, "", SWT.CHECK); //$NON-NLS-1$ GridData gd = new GridData(); //gd.horizontalIndent = 10; gd.horizontalSpan = span - 1; //gd.horizontalSpan = span; button.setLayoutData(gd); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (!blockNotification) markDirty(); updateText(); } }); button.setEnabled(part.isEditable()); }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/876c2ad9d8cda2d991ed752c2b50407f8f90ef31/BooleanAttributeRow.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/rows/BooleanAttributeRow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
6323,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
16,
509,
4548,
13,
288,
202,
202,
2640,
2224,
12,
2938,
16,
5226,
8691,
1769,
202,
202,
5391,
273,
5226,
8691,
18,
2640,
3616,
12,
2938,
16,
23453,
348,
8588,
18,
10687,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
5621,
202,
202,
759,
19016,
18,
18396,
7790,
273,
1728,
31,
202,
202,
19016,
18,
18396,
6952,
273,
4548,
300,
404,
31,
202,
202,
759,
19016,
18,
18396,
6952,
273,
4548,
31,
202,
202,
5391,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
5391,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1082,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
430,
16051,
2629,
4386,
13,
2267,
10785,
5621,
9506,
202,
2725,
1528,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
5391,
18,
542,
1526,
12,
2680,
18,
291,
15470,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
6323,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
16,
509,
4548,
13,
288,
202,
202,
2640,
2224,
12,
2938,
16,
5226,
8691,
1769,
202,
202,
5391,
273,
5226,
8691,
18,
2640,
3616,
12,
2938,
16,
23453,
348,
8588,
18,
10687,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
5621,
202,
202,
759,
19016,
18,
18396,
7790,
273,
1728,
31,
202,
202,
19016,
18,
18396,
6952,
273,
4548,
300,
404,
31,
202,
202,
759,
19016,
18,
18396,
6952,
273,
4548,
31,
202,
202,
5391,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
5391,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
2
] |
if ("Provider".equals(s.getType())) {
|
if ("Provider".equals(s.getType())) {
|
protected synchronized void putService(Provider.Service s) { if (s == null) { throw new NullPointerException(); } SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkSecurityAccess("putProviderProperty." + name); } if ("Provider".equals(s.getType())) { // Provider service type cannot be // added return; } servicesChanged(); if (serviceTable == null) { serviceTable = new TwoKeyHashMap<String, String, Service>(128); } serviceTable.put(s.type, s.algorithm.toUpperCase(), s); if (s.aliases != null) { if (aliasTable == null) { aliasTable = new TwoKeyHashMap<String, String, Service>(256); } for (Iterator<String> it = s.getAliases(); it.hasNext();) { aliasTable.put(s.type, (it.next()).toUpperCase(), s); } } serviceInfoToProperties(s); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c7fdc88348ff6da63262b6309c2810876f42c6d8/Provider.java/buggy/modules/security/src/main/java/common/java/security/Provider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1378,
1179,
12,
2249,
18,
1179,
272,
13,
288,
3639,
309,
261,
87,
422,
446,
13,
288,
5411,
604,
394,
10108,
5621,
3639,
289,
3639,
6036,
1318,
3029,
273,
2332,
18,
588,
4368,
1318,
5621,
3639,
309,
261,
4808,
480,
446,
13,
288,
5411,
3029,
18,
1893,
4368,
1862,
2932,
458,
2249,
1396,
1199,
397,
508,
1769,
3639,
289,
3639,
309,
7566,
2249,
9654,
14963,
12,
87,
18,
588,
559,
1435,
3719,
288,
368,
7561,
1156,
618,
2780,
506,
4766,
2868,
368,
3096,
5411,
327,
31,
3639,
289,
3639,
4028,
5033,
5621,
3639,
309,
261,
3278,
1388,
422,
446,
13,
288,
5411,
1156,
1388,
273,
394,
16896,
653,
8658,
32,
780,
16,
514,
16,
1956,
34,
12,
10392,
1769,
3639,
289,
3639,
1156,
1388,
18,
458,
12,
87,
18,
723,
16,
272,
18,
12743,
18,
869,
8915,
9334,
272,
1769,
3639,
309,
261,
87,
18,
13831,
480,
446,
13,
288,
5411,
309,
261,
4930,
1388,
422,
446,
13,
288,
7734,
2308,
1388,
273,
394,
16896,
653,
8658,
32,
780,
16,
514,
16,
1956,
34,
12,
5034,
1769,
5411,
289,
5411,
364,
261,
3198,
32,
780,
34,
518,
273,
272,
18,
588,
9667,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
7734,
2308,
1388,
18,
458,
12,
87,
18,
723,
16,
261,
305,
18,
4285,
1435,
2934,
869,
8915,
9334,
272,
1769,
5411,
289,
3639,
289,
3639,
1156,
966,
774,
2297,
12,
87,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1378,
1179,
12,
2249,
18,
1179,
272,
13,
288,
3639,
309,
261,
87,
422,
446,
13,
288,
5411,
604,
394,
10108,
5621,
3639,
289,
3639,
6036,
1318,
3029,
273,
2332,
18,
588,
4368,
1318,
5621,
3639,
309,
261,
4808,
480,
446,
13,
288,
5411,
3029,
18,
1893,
4368,
1862,
2932,
458,
2249,
1396,
1199,
397,
508,
1769,
3639,
289,
3639,
309,
7566,
2249,
9654,
14963,
12,
87,
18,
588,
559,
1435,
3719,
288,
368,
7561,
1156,
618,
2780,
506,
4766,
2868,
368,
3096,
5411,
327,
31,
3639,
289,
3639,
4028,
5033,
5621,
3639,
309,
261,
3278,
1388,
422,
446,
13,
288,
5411,
1156,
1388,
273,
394,
16896,
653,
8658,
32,
780,
16,
514,
16,
1956,
2
] |
return getPositiveEntryCount() + getNegativeEntryCount();
|
return positiveEntries.length + positiveEntries.length;
|
public int getEntryCount() { return getPositiveEntryCount() + getNegativeEntryCount(); }
|
48142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48142/2a4a4f417dd4193df9e0a3deae14aacd3f94ccb1/ACL.java/clean/src/JAVA/classes/org/openafs/jafs/ACL.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
15428,
1380,
1435,
225,
288,
565,
327,
6895,
5400,
18,
2469,
397,
6895,
5400,
18,
2469,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
509,
15428,
1380,
1435,
225,
288,
565,
327,
6895,
5400,
18,
2469,
397,
6895,
5400,
18,
2469,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return result;
|
String result = node.name(); Plugin plugin = Platform.getPlugin(result); if (plugin != null) return WorkbenchMessages.format("PreferencesExportDialog.PluginLabel", new String [] {plugin.getDescriptor().getLabel(), node.name()}); return node.name();
|
protected Control createDialogArea(Composite parent) { Control outerArea = super.createDialogArea(parent); createOutputSelectionArea((Composite) outerArea); viewer = new CheckboxTreeViewer((Composite) outerArea); viewer.setContentProvider(new PreferencesContentProvider()); viewer.setLabelProvider(new LabelProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) */ public String getText(Object obj) { String result = obj.toString(); if (obj instanceof IEclipsePreferences) { IEclipsePreferences node = (IEclipsePreferences) obj; result = node.name(); } return result; } /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object) */ public Image getImage(Object obj) { return PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_OBJ_FOLDER); } }); viewer.setInput(Platform.getPreferencesService().getRootNode()); GridData data = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL); viewer.getControl().setLayoutData(data); return outerArea; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d6651a6bb4516475595838923284f9669955bb76/PreferencesExportDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PreferencesExportDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
3367,
6390,
5484,
273,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
2640,
1447,
6233,
5484,
12443,
9400,
13,
6390,
5484,
1769,
202,
202,
25256,
273,
394,
29213,
2471,
18415,
12443,
9400,
13,
6390,
5484,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
2704,
28310,
1350,
2249,
10663,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
5287,
2249,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
45,
2224,
2249,
7,
588,
1528,
12,
6290,
18,
4936,
18,
921,
13,
9506,
1195,
1082,
202,
482,
514,
6701,
12,
921,
1081,
13,
288,
9506,
202,
780,
563,
273,
1081,
18,
10492,
5621,
9506,
202,
430,
261,
2603,
1276,
10897,
71,
10472,
12377,
13,
288,
6862,
202,
8732,
71,
10472,
12377,
756,
273,
261,
8732,
71,
10472,
12377,
13,
1081,
31,
6862,
202,
2088,
273,
756,
18,
529,
5621,
9506,
202,
97,
9506,
202,
2463,
563,
31,
1082,
202,
97,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
45,
2224,
2249,
7,
588,
2040,
12,
6290,
18,
4936,
18,
921,
13,
9506,
1195,
1082,
202,
482,
3421,
10567,
12,
921,
1081,
13,
288,
9506,
202,
2463,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
3367,
6390,
5484,
273,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
2640,
1447,
6233,
5484,
12443,
9400,
13,
6390,
5484,
1769,
202,
202,
25256,
273,
394,
29213,
2471,
18415,
12443,
9400,
13,
6390,
5484,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
2704,
28310,
1350,
2249,
10663,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
5287,
2249,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
45,
2224,
2249,
7,
588,
1528,
12,
6290,
18,
4936,
18,
921,
13,
9506,
1195,
2
] |
this.channel1.connect(ipAddr);
|
this.channel1.connect(ipAddr);
|
public void testWriteByteBuffer_NonBlock_BufNull() throws IOException { ByteBuffer writeBuf = ByteBuffer.allocateDirect(0); InetSocketAddress ipAddr = localAddr1; //$NON-NLS-1$ // non block mode this.channel1.configureBlocking(false); try { this.channel1.write((ByteBuffer) null); fail("Should throw NPE."); } catch (NullPointerException e) { // correct } this.channel1.connect(ipAddr); //$NON-NLS-1$ assertTrue(this.channel1.isConnected()); try { this.channel1.write((ByteBuffer) null); fail("Should throw NPE."); } catch (NullPointerException e) { // correct } assertEquals(0, this.channel1.write(writeBuf)); datagramSocket1.close(); try { this.channel1.write((ByteBuffer) null); fail("Should throw NPE."); } catch (NullPointerException e) { // correct } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/dd7d7186a3fd62e298a4a14d517dace20da8539c/DatagramChannelTest.java/buggy/modules/nio/src/test/java/org/apache/harmony/tests/java/nio/channels/DatagramChannelTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3067,
12242,
67,
3989,
1768,
67,
5503,
2041,
1435,
1216,
1860,
288,
3639,
7400,
1045,
5503,
273,
7400,
18,
16247,
5368,
12,
20,
1769,
3639,
17943,
2359,
3178,
273,
1191,
3178,
21,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
3639,
368,
1661,
1203,
1965,
3639,
333,
18,
4327,
21,
18,
14895,
8728,
12,
5743,
1769,
3639,
775,
288,
5411,
333,
18,
4327,
21,
18,
2626,
12443,
12242,
13,
446,
1769,
5411,
2321,
2932,
14309,
604,
423,
1423,
1199,
1769,
3639,
289,
1044,
261,
2041,
9992,
425,
13,
288,
5411,
368,
3434,
3639,
289,
3639,
333,
18,
4327,
21,
18,
3612,
12,
625,
3178,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1815,
5510,
12,
2211,
18,
4327,
21,
18,
291,
8932,
10663,
3639,
775,
288,
5411,
333,
18,
4327,
21,
18,
2626,
12443,
12242,
13,
446,
1769,
5411,
2321,
2932,
14309,
604,
423,
1423,
1199,
1769,
3639,
289,
1044,
261,
2041,
9992,
425,
13,
288,
5411,
368,
3434,
3639,
289,
3639,
1815,
8867,
12,
20,
16,
333,
18,
4327,
21,
18,
2626,
12,
2626,
5503,
10019,
3639,
1150,
17049,
4534,
21,
18,
4412,
5621,
3639,
775,
288,
5411,
333,
18,
4327,
21,
18,
2626,
12443,
12242,
13,
446,
1769,
5411,
2321,
2932,
14309,
604,
423,
1423,
1199,
1769,
3639,
289,
1044,
261,
2041,
9992,
425,
13,
288,
5411,
368,
3434,
3639,
289,
565,
289,
2,
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,
1,
1,
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,
3067,
12242,
67,
3989,
1768,
67,
5503,
2041,
1435,
1216,
1860,
288,
3639,
7400,
1045,
5503,
273,
7400,
18,
16247,
5368,
12,
20,
1769,
3639,
17943,
2359,
3178,
273,
1191,
3178,
21,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
3639,
368,
1661,
1203,
1965,
3639,
333,
18,
4327,
21,
18,
14895,
8728,
12,
5743,
1769,
3639,
775,
288,
5411,
333,
18,
4327,
21,
18,
2626,
12443,
12242,
13,
446,
1769,
5411,
2321,
2932,
14309,
604,
423,
1423,
1199,
1769,
3639,
289,
1044,
261,
2041,
9992,
425,
13,
288,
5411,
368,
3434,
3639,
289,
3639,
333,
18,
4327,
21,
18,
3612,
12,
625,
3178,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1815,
2
] |
public IResultSetMetaData getMetaData( ) throws OdaException { logger.logp( java.util.logging.Level.FINE, Statement.class.getName( ), "getMetaData", "Statement.getMetaData( )" ); assertNotNull( preStat ); java.sql.ResultSetMetaData resultmd = null; try { /* redirect the call to JDBC preparedStatement.getMetaData() */ resultmd = preStat.getMetaData( ); } catch ( Throwable e ) { // Some data base will throw error, such as AbstractMethodError of // DB2 7.2, so Throwable should be used to catch all possible // exceptions or errors. // // For some database, meta data of table can not be obtained // in prepared time. To solve this problem, query execution is // required to be executed first. resultmd = null; } IResultSetMetaData pstmtResultMetaData = null; if ( resultmd != null ) { try { // in the case of oracle 8.1.7, even if ResultMetaData can be // gotten prepare time, the getColumnCount function is // unavailable. resultmd.getColumnCount( ); } catch ( SQLException e ) { resultmd = null; } if ( resultmd != null ) { pstmtResultMetaData = new ResultSetMetaData( resultmd ); } } if ( pstmtResultMetaData == null ) { // If Jdbc driver throw an SQLexception or return null, when we get // MetaData from ResultSet IResultSet mdRs = executeQuery( ); if ( mdRs != null ) pstmtResultMetaData = mdRs.getMetaData( ); } return pstmtResultMetaData; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/50946212ec5b5afd021b8feda74ba005253ccd73/Statement.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/Statement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
13198,
6998,
23028,
12,
262,
1216,
531,
2414,
503,
202,
95,
202,
202,
4901,
18,
1330,
84,
12,
2252,
18,
1367,
18,
11167,
18,
2355,
18,
42,
3740,
16,
9506,
202,
3406,
18,
1106,
18,
17994,
12,
262,
16,
9506,
202,
6,
588,
6998,
3113,
9506,
202,
6,
3406,
18,
588,
6998,
12,
28796,
11272,
9506,
202,
11231,
5962,
12,
675,
5000,
11272,
202,
565,
2252,
18,
4669,
18,
13198,
6998,
563,
1264,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
20308,
3136,
326,
745,
358,
16364,
8208,
3406,
18,
588,
6998,
1435,
1195,
1082,
202,
2088,
1264,
273,
675,
5000,
18,
588,
6998,
12,
11272,
202,
202,
97,
202,
202,
14683,
261,
4206,
425,
262,
202,
202,
95,
1082,
202,
759,
10548,
501,
1026,
903,
604,
555,
16,
4123,
487,
4115,
1305,
668,
434,
1082,
202,
759,
2383,
22,
2371,
18,
22,
16,
1427,
4206,
1410,
506,
1399,
358,
1044,
777,
3323,
1082,
202,
759,
4798,
578,
1334,
18,
1082,
202,
759,
1875,
202,
759,
2457,
2690,
2063,
16,
2191,
501,
434,
1014,
848,
486,
506,
12700,
1082,
202,
759,
316,
8208,
813,
18,
2974,
12439,
333,
6199,
16,
843,
4588,
353,
1082,
202,
759,
1931,
358,
506,
7120,
1122,
18,
1082,
202,
2088,
1264,
273,
446,
31,
202,
202,
97,
202,
202,
45,
13198,
6998,
293,
10589,
1253,
6998,
273,
446,
31,
202,
202,
430,
261,
563,
1264,
480,
446,
262,
202,
202,
95,
1082,
202,
698,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
13198,
6998,
23028,
12,
262,
1216,
531,
2414,
503,
202,
95,
202,
202,
4901,
18,
1330,
84,
12,
2252,
18,
1367,
18,
11167,
18,
2355,
18,
42,
3740,
16,
9506,
202,
3406,
18,
1106,
18,
17994,
12,
262,
16,
9506,
202,
6,
588,
6998,
3113,
9506,
202,
6,
3406,
18,
588,
6998,
12,
28796,
11272,
9506,
202,
11231,
5962,
12,
675,
5000,
11272,
202,
565,
2252,
18,
4669,
18,
13198,
6998,
563,
1264,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
20308,
3136,
326,
745,
358,
16364,
8208,
3406,
18,
588,
6998,
1435,
1195,
1082,
202,
2088,
1264,
273,
675,
5000,
18,
588,
6998,
12,
11272,
202,
202,
97,
202,
202,
14683,
2
] |
||
log.warn("Only simple-page-masters are supported on page-sequences: " + reference);
|
log.warn("No simple-page-master could be determined!");
|
public void startPageSequence(PageSequence pageSeq) { try { if (bDefer) { return; } sect = docArea.newSection(); //read page size and margins, if specified String reference = pageSeq.getMasterReference(); this.pagemaster = pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(reference); //only simple-page-master supported, so pagemaster may be null if (pagemaster != null) { sect.getRtfAttributes().set( PageAttributesConverter.convertPageAttributes( pagemaster)); } else { log.warn("Only simple-page-masters are supported on page-sequences: " + reference); } builderContext.pushContainer(sect); bHeaderSpecified = false; bFooterSpecified = false; } catch (IOException ioe) { // TODO could we throw Exception in all FOEventHandler events? log.error("startPageSequence: " + ioe.getMessage()); //TODO throw new FOPException(ioe); } }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/dea76c009eabcaf7434372f3d23b585b4de9df8f/RTFHandler.java/clean/src/java/org/apache/fop/render/rtf/RTFHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1964,
4021,
12,
1964,
4021,
1363,
6926,
13,
225,
288,
3639,
775,
288,
5411,
309,
261,
70,
758,
586,
13,
288,
7734,
327,
31,
5411,
289,
5411,
29140,
273,
997,
5484,
18,
2704,
5285,
5621,
5411,
368,
896,
1363,
963,
471,
24889,
16,
309,
1269,
5411,
514,
2114,
273,
1363,
6926,
18,
588,
7786,
2404,
5621,
5411,
333,
18,
9095,
351,
2440,
10792,
273,
1363,
6926,
18,
588,
2375,
7675,
588,
3744,
7786,
694,
7675,
588,
5784,
1964,
7786,
12,
6180,
1769,
5411,
368,
3700,
4143,
17,
2433,
17,
7525,
3260,
16,
1427,
4262,
351,
2440,
2026,
506,
446,
5411,
309,
261,
9095,
351,
2440,
480,
446,
13,
288,
7734,
29140,
18,
588,
54,
6632,
2498,
7675,
542,
12,
10792,
3460,
2498,
5072,
18,
6283,
1964,
2498,
12,
18701,
4262,
351,
2440,
10019,
5411,
289,
469,
288,
7734,
613,
18,
8935,
2932,
2279,
4143,
17,
2433,
17,
7525,
3377,
506,
11383,
4442,
1769,
5411,
289,
5411,
2089,
1042,
18,
6206,
2170,
12,
5709,
1769,
5411,
324,
1864,
17068,
273,
629,
31,
5411,
324,
13787,
17068,
273,
629,
31,
3639,
289,
1044,
261,
14106,
10847,
13,
288,
5411,
368,
2660,
3377,
732,
604,
1185,
316,
777,
17634,
16402,
2641,
35,
5411,
613,
18,
1636,
2932,
1937,
1964,
4021,
30,
315,
397,
10847,
18,
24906,
10663,
5411,
368,
6241,
604,
394,
478,
3665,
503,
12,
1594,
73,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1964,
4021,
12,
1964,
4021,
1363,
6926,
13,
225,
288,
3639,
775,
288,
5411,
309,
261,
70,
758,
586,
13,
288,
7734,
327,
31,
5411,
289,
5411,
29140,
273,
997,
5484,
18,
2704,
5285,
5621,
5411,
368,
896,
1363,
963,
471,
24889,
16,
309,
1269,
5411,
514,
2114,
273,
1363,
6926,
18,
588,
7786,
2404,
5621,
5411,
333,
18,
9095,
351,
2440,
10792,
273,
1363,
6926,
18,
588,
2375,
7675,
588,
3744,
7786,
694,
7675,
588,
5784,
1964,
7786,
12,
6180,
1769,
5411,
368,
3700,
4143,
17,
2433,
17,
7525,
3260,
16,
1427,
4262,
351,
2440,
2026,
506,
446,
5411,
309,
261,
9095,
351,
2440,
480,
446,
13,
288,
7734,
29140,
18,
588,
54,
6632,
2
] |
String[] ls = s.split(":");
|
String[] ls = s.split(java.io.File.pathSeparator);
|
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : main.printUsage(); shouldRunInterpreter = false; break; case 'I' : String s = grabValue(" -I must be followed by a directory name to add to lib path"); String[] ls = s.split(":"); for(int i=0;i<ls.length;i++) { loadPaths.add(ls[i]); } break FOR; case 'r' : requiredLibraries.add(grabValue("-r must be followed by a package to require")); break FOR; case 'e' : inlineScript.append(grabValue(" -e must be followed by an expression to evaluate")); inlineScript.append('\n'); break FOR; case 'b' : benchmarking = true; break; case 'p' : assumePrinting = true; assumeLoop = true; break; case 'O' : objectSpaceEnabled = false; break; case 'C' : compilerEnabled = true; break; case 'n' : assumeLoop = true; break; case 'a' : split = true; break; case 'd' : debug = true; verbose = true; break; case 'l' : processLineEnds = true; break; case 'v' : verbose = true; setShowVersion(true); break; case 'w' : verbose = true; break; case 'K': // FIXME: No argument seems to work for -K in MRI plus this should not // siphon off additional args 'jruby -K ~/scripts/foo'. Also better error // processing. String eArg = grabValue("provide a value for -K"); if ("u".equals(eArg) || "U".equals(eArg) || "UTF8".equals(eArg)) { encoding = "UTF-8"; } break; case '-' : if (argument.equals("--version")) { setShowVersion(true); break FOR; } else if(argument.equals("--debug")) { debug = true; verbose = true; break; } else { if (argument.equals("--")) { // ruby interpreter compatibilty // Usage: ruby [switches] [--] [programfile] [arguments]) break FOR; } } default : throw new MainExitException(1, "unknown option " + argument.charAt(characterIndex)); } } }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/e4905982a81424922852e33d8165887ff6ada056/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1379,
1435,
288,
3639,
514,
1237,
273,
1775,
63,
3446,
1016,
15533,
3639,
12108,
294,
364,
261,
11560,
1016,
273,
404,
31,
3351,
1016,
411,
1237,
18,
2469,
5621,
3351,
1016,
27245,
288,
5411,
1620,
261,
3446,
18,
3001,
861,
12,
11560,
1016,
3719,
288,
7734,
648,
296,
76,
11,
294,
10792,
2774,
18,
1188,
5357,
5621,
10792,
1410,
1997,
30010,
273,
629,
31,
10792,
898,
31,
7734,
648,
296,
45,
11,
294,
10792,
514,
272,
273,
11086,
620,
2932,
300,
45,
1297,
506,
10860,
635,
279,
1867,
508,
358,
527,
358,
2561,
589,
8863,
10792,
514,
8526,
7180,
273,
272,
18,
4939,
12,
6290,
18,
1594,
18,
812,
18,
803,
6581,
1769,
10792,
364,
12,
474,
277,
33,
20,
31,
77,
32,
3251,
18,
2469,
31,
77,
27245,
288,
13491,
1262,
4466,
18,
1289,
12,
3251,
63,
77,
19226,
10792,
289,
10792,
898,
12108,
31,
7734,
648,
296,
86,
11,
294,
10792,
1931,
31909,
18,
1289,
12,
2752,
70,
620,
2932,
17,
86,
1297,
506,
10860,
635,
279,
2181,
358,
2583,
7923,
1769,
10792,
898,
12108,
31,
7734,
648,
296,
73,
11,
294,
10792,
6370,
3651,
18,
6923,
12,
2752,
70,
620,
2932,
300,
73,
1297,
506,
10860,
635,
392,
2652,
358,
5956,
7923,
1769,
10792,
6370,
3651,
18,
6923,
2668,
64,
82,
8284,
10792,
898,
12108,
31,
7734,
648,
296,
70,
11,
294,
10792,
14128,
310,
273,
638,
31,
10792,
898,
31,
7734,
648,
296,
84,
11,
294,
10792,
6750,
5108,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1379,
1435,
288,
3639,
514,
1237,
273,
1775,
63,
3446,
1016,
15533,
3639,
12108,
294,
364,
261,
11560,
1016,
273,
404,
31,
3351,
1016,
411,
1237,
18,
2469,
5621,
3351,
1016,
27245,
288,
5411,
1620,
261,
3446,
18,
3001,
861,
12,
11560,
1016,
3719,
288,
7734,
648,
296,
76,
11,
294,
10792,
2774,
18,
1188,
5357,
5621,
10792,
1410,
1997,
30010,
273,
629,
31,
10792,
898,
31,
7734,
648,
296,
45,
11,
294,
10792,
514,
272,
273,
11086,
620,
2932,
300,
45,
1297,
506,
10860,
635,
279,
1867,
508,
358,
527,
358,
2561,
589,
8863,
10792,
514,
8526,
7180,
273,
272,
18,
4939,
12,
6290,
18,
1594,
18,
812,
18,
803,
6581,
1769,
10792,
364,
2
] |
/* * ensure the workbench state gets saved when running with the Automated Testing Framework * TODO: remove when https: */ StackTraceElement[] elements= new Throwable().getStackTrace(); for (int i= 0; i < elements.length; i++) { StackTraceElement element= elements[i]; if (element.getClassName().equals("org.eclipse.test.EclipseTestRunner")) { PlatformUI.getWorkbench().close(); break; } }
|
protected void tearDown() throws Exception { // do nothing, the set up workspace will be used by the open editor tests /* * ensure the workbench state gets saved when running with the Automated Testing Framework * TODO: remove when https://bugs.eclipse.org/bugs/show_bug.cgi?id=71362 is fixed */ StackTraceElement[] elements= new Throwable().getStackTrace(); for (int i= 0; i < elements.length; i++) { StackTraceElement element= elements[i]; if (element.getClassName().equals("org.eclipse.test.EclipseTestRunner")) { PlatformUI.getWorkbench().close(); break; } } }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/fd849ea3324dab75008056f5fd87ea908b20943f/PerformanceTestSetup.java/clean/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/performance/PerformanceTestSetup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
268,
2091,
4164,
1435,
1216,
1185,
288,
202,
202,
759,
741,
5083,
16,
326,
444,
731,
6003,
903,
506,
1399,
635,
326,
1696,
4858,
7434,
9506,
202,
20308,
1875,
380,
3387,
326,
1440,
22144,
919,
5571,
5198,
1347,
3549,
598,
326,
11809,
362,
690,
7766,
310,
13472,
1171,
380,
2660,
30,
1206,
1347,
2333,
2207,
19381,
18,
20416,
18,
3341,
19,
19381,
19,
4500,
67,
925,
18,
19062,
35,
350,
33,
27,
3437,
8898,
353,
5499,
1171,
1195,
202,
202,
6332,
1046,
8526,
2186,
33,
225,
394,
4206,
7675,
588,
6332,
5621,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6332,
1046,
930,
33,
2186,
63,
77,
15533,
1082,
202,
430,
261,
2956,
18,
588,
3834,
7675,
14963,
2932,
3341,
18,
20416,
18,
3813,
18,
23057,
10472,
4709,
9709,
6,
3719,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
4412,
5621,
9506,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
268,
2091,
4164,
1435,
1216,
1185,
288,
202,
202,
759,
741,
5083,
16,
326,
444,
731,
6003,
903,
506,
1399,
635,
326,
1696,
4858,
7434,
9506,
202,
20308,
1875,
380,
3387,
326,
1440,
22144,
919,
5571,
5198,
1347,
3549,
598,
326,
11809,
362,
690,
7766,
310,
13472,
1171,
380,
2660,
30,
1206,
1347,
2333,
2207,
19381,
18,
20416,
18,
3341,
19,
19381,
19,
4500,
67,
925,
18,
19062,
35,
350,
33,
27,
3437,
8898,
353,
5499,
1171,
1195,
202,
202,
6332,
1046,
8526,
2186,
33,
225,
394,
4206,
7675,
588,
6332,
5621,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6332,
1046,
930,
2
] |
|
return cp != null && cp.hasChildren(element);
|
if(cp == null) return false; if(cp.hasChildren(element)){ if(getFilters().length > 0) return getFilteredChildren(element).length > 0; return true; } return false;
|
public boolean isExpandable(Object element) { ITreeContentProvider cp = (ITreeContentProvider) getContentProvider(); return cp != null && cp.hasChildren(element); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e9c726e7704d2674b41dfc5883c02a14a2ab499a/AbstractTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
12271,
429,
12,
921,
930,
13,
288,
202,
202,
1285,
992,
1350,
2249,
3283,
273,
261,
1285,
992,
1350,
2249,
13,
5154,
2249,
5621,
202,
202,
2463,
3283,
480,
446,
597,
3283,
18,
5332,
4212,
12,
2956,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
12271,
429,
12,
921,
930,
13,
288,
202,
202,
1285,
992,
1350,
2249,
3283,
273,
261,
1285,
992,
1350,
2249,
13,
5154,
2249,
5621,
202,
202,
2463,
3283,
480,
446,
597,
3283,
18,
5332,
4212,
12,
2956,
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
] |
if (revert) sourceEnc = "UTF-8";
|
private void determineSyntaxAndEncoding(String absFileName, JarFile jarFile, String jspConfigPageEnc) throws JasperException, IOException { isXml = false; /* * 'true' if the syntax (XML or standard) of the file is given * from external information: either via a JSP configuration element, * the ".jspx" suffix, or the enclosing file (for included resources) */ boolean isExternal = false; /* * Indicates whether we need to revert from temporary usage of * "ISO-8859-1" back to "UTF-8" */ boolean revert = false; JspConfig jspConfig = ctxt.getOptions().getJspConfig(); JspConfig.JspProperty jspProperty = jspConfig.findJspProperty( absFileName); if (jspProperty.isXml() != null) { // If <is-xml> is specified in a <jsp-property-group>, it is used. isXml = JspUtil.booleanValue(jspProperty.isXml()); isExternal = true; } else if (absFileName.endsWith(".jspx") || absFileName.endsWith(".tagx")) { isXml = true; isExternal = true; } if (isExternal && !isXml) { // JSP (standard) syntax. Use encoding specified in jsp-config // if provided. sourceEnc = jspConfigPageEnc; if (sourceEnc != null) { return; } // We don't know the encoding sourceEnc = "ISO-8859-1"; } else { // XML syntax or unknown, (auto)detect encoding ... Object[] ret = XMLEncodingDetector.getEncoding(absFileName, jarFile, ctxt, err); sourceEnc = (String) ret[0]; if (((Boolean) ret[1]).booleanValue()) { isEncodingSpecifiedInProlog = true; } if (!isXml && sourceEnc.equals("UTF-8")) { /* * We don't know if we're dealing with XML or standard syntax. * Therefore, we need to check to see if the page contains * a <jsp:root> element. * * We need to be careful, because the page may be encoded in * ISO-8859-1 (or something entirely different), and may * contain byte sequences that will cause a UTF-8 converter to * throw exceptions. * * It is safe to use a source encoding of ISO-8859-1 in this * case, as there are no invalid byte sequences in ISO-8859-1, * and the byte/character sequences we're looking for (i.e., * <jsp:root>) are identical in either encoding (both UTF-8 * and ISO-8859-1 are extensions of ASCII). */ sourceEnc = "ISO-8859-1"; revert = true; } } if (isXml) { // (This implies 'isExternal' is TRUE.) // We know we're dealing with a JSP document (via JSP config or // ".jspx" suffix), so we're done. return; } /* * At this point, 'isExternal' or 'isXml' is FALSE. * Search for jsp:root action, in order to determine if we're dealing * with XML or standard syntax (unless we already know what we're * dealing with, i.e., when 'isExternal' is TRUE and 'isXml' is FALSE). * No check for XML prolog, since nothing prevents a page from * outputting XML and still using JSP syntax (in this case, the * XML prolog is treated as template text). */ JspReader jspReader = null; try { jspReader = new JspReader(ctxt, absFileName, sourceEnc, jarFile, err); } catch (FileNotFoundException ex) { throw new JasperException(ex); } jspReader.setSingleFile(true); Mark startMark = jspReader.mark(); if (!isExternal) { jspReader.reset(startMark); if (hasJspRoot(jspReader)) { isXml = true; if (revert) sourceEnc = "UTF-8"; return; } else { isXml = false; } } /* * At this point, we know we're dealing with JSP syntax. * If an XML prolog is provided, it's treated as template text. * Determine the page encoding from the page directive, unless it's * specified via JSP config. */ sourceEnc = jspConfigPageEnc; if (sourceEnc == null) { sourceEnc = getPageEncodingForJspSyntax(jspReader, startMark); if (sourceEnc == null) { // Default to "ISO-8859-1" per JSP spec sourceEnc = "ISO-8859-1"; isDefaultPageEncoding = true; } } }
|
26330 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26330/7e55d59e7a32637ca63b2cec65835a56dd760a98/ParserController.java/clean/java/org/apache/jasper/compiler/ParserController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4199,
8070,
1876,
4705,
12,
780,
2417,
4771,
16,
25083,
565,
15644,
812,
22588,
16,
25083,
565,
514,
22535,
809,
1964,
4280,
13,
202,
3639,
1216,
804,
345,
457,
503,
16,
1860,
288,
202,
291,
4432,
273,
629,
31,
202,
20308,
202,
380,
296,
3767,
11,
309,
326,
6279,
261,
4201,
578,
4529,
13,
434,
326,
585,
353,
864,
202,
380,
628,
3903,
1779,
30,
3344,
3970,
279,
804,
3118,
1664,
930,
16,
202,
380,
326,
3552,
24926,
92,
6,
3758,
16,
578,
326,
16307,
585,
261,
1884,
5849,
2703,
13,
202,
1195,
202,
6494,
353,
6841,
273,
629,
31,
202,
20308,
202,
380,
18336,
2856,
732,
1608,
358,
15226,
628,
6269,
4084,
434,
202,
380,
315,
12609,
17,
17258,
17,
21,
6,
1473,
358,
315,
5159,
17,
28,
6,
202,
1195,
202,
6494,
15226,
273,
629,
31,
3639,
19300,
809,
22535,
809,
273,
14286,
18,
588,
1320,
7675,
588,
21796,
809,
5621,
3639,
19300,
809,
18,
21796,
1396,
22535,
1396,
273,
22535,
809,
18,
4720,
21796,
1396,
12,
4766,
27573,
2417,
4771,
1769,
3639,
309,
261,
24926,
1396,
18,
291,
4432,
1435,
480,
446,
13,
288,
5411,
368,
971,
411,
291,
17,
2902,
34,
353,
1269,
316,
279,
411,
24926,
17,
4468,
17,
1655,
20401,
518,
353,
1399,
18,
5411,
353,
4432,
273,
19300,
1304,
18,
6494,
620,
12,
24926,
1396,
18,
291,
4432,
10663,
202,
565,
353,
6841,
273,
638,
31,
202,
97,
469,
309,
261,
5113,
4771,
18,
5839,
1190,
2932,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4199,
8070,
1876,
4705,
12,
780,
2417,
4771,
16,
25083,
565,
15644,
812,
22588,
16,
25083,
565,
514,
22535,
809,
1964,
4280,
13,
202,
3639,
1216,
804,
345,
457,
503,
16,
1860,
288,
202,
291,
4432,
273,
629,
31,
202,
20308,
202,
380,
296,
3767,
11,
309,
326,
6279,
261,
4201,
578,
4529,
13,
434,
326,
585,
353,
864,
202,
380,
628,
3903,
1779,
30,
3344,
3970,
279,
804,
3118,
1664,
930,
16,
202,
380,
326,
3552,
24926,
92,
6,
3758,
16,
578,
326,
16307,
585,
261,
1884,
5849,
2703,
13,
202,
1195,
202,
6494,
353,
6841,
273,
629,
31,
202,
20308,
202,
380,
18336,
2856,
732,
1608,
358,
15226,
628,
6269,
4084,
434,
202,
380,
2
] |
|
{ iterator = formatter.formatToCharacterIterator(thisArg); }
|
iterator = formatter.formatToCharacterIterator(thisArg);
|
protected final StringBuffer formatInternal (Object arguments[], StringBuffer appendBuf, FieldPosition ignore, FormatCharacterIterator output_iterator) { appendBuf.append(leader); for (int i = 0; i < elements.length; ++i) { if (elements[i].argNumber >= arguments.length) throw new IllegalArgumentException (); Object thisArg = arguments[elements[i].argNumber]; AttributedCharacterIterator iterator = null; Format formatter = null; if (elements[i].setFormat != null) formatter = elements[i].setFormat; else if (elements[i].format != null) { if (elements[i].formatClass != null && ! elements[i].formatClass.isInstance(thisArg)) throw new IllegalArgumentException (); formatter = elements[i].format; } else if (thisArg instanceof Number) formatter = NumberFormat.getInstance(locale); else if (thisArg instanceof Date) formatter = DateFormat.getTimeInstance(DateFormat.DEFAULT, locale); else appendBuf.append(thisArg); if (formatter != null) { // Special-case ChoiceFormat. if (formatter instanceof ChoiceFormat) { StringBuffer buf = new StringBuffer (); formatter.format(thisArg, buf, ignore); MessageFormat mf = new MessageFormat (); mf.setLocale(locale); mf.applyPattern(buf.toString()); mf.format(arguments, appendBuf, ignore); } else { if (output_iterator != null) { iterator = formatter.formatToCharacterIterator(thisArg); } else formatter.format(thisArg, appendBuf, ignore); } elements[i].format = formatter; } if (output_iterator != null) { HashMap hash_argument = new HashMap(); int position = output_iterator.getEndIndex(); hash_argument.put (MessageFormat.Field.ARGUMENT, new Integer(elements[i].argNumber)); if (iterator != null) { output_iterator.append(iterator); if (position == 0) output_iterator.mergeAttributes (new HashMap[] { hash_argument}, new int[] { output_iterator.getEndIndex() }); else output_iterator.mergeAttributes (new HashMap[] {null, hash_argument}, new int[] { position, output_iterator.getEndIndex()}); } else output_iterator.append(thisArg.toString(), hash_argument); output_iterator.append(elements[i].trailer); } appendBuf.append(elements[i].trailer); } return appendBuf; }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/0f2b533d048aef35cc4080471527764373203875/MessageFormat.java/clean/libraries/javalib/java/text/MessageFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
6674,
740,
3061,
261,
921,
1775,
63,
6487,
6674,
714,
5503,
16,
25083,
4202,
2286,
2555,
2305,
16,
25083,
4202,
4077,
7069,
3198,
876,
67,
9838,
13,
225,
288,
565,
714,
5503,
18,
6923,
12,
27863,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
2469,
31,
965,
77,
13,
1377,
288,
202,
430,
261,
6274,
63,
77,
8009,
3175,
1854,
1545,
1775,
18,
2469,
13,
202,
225,
604,
394,
2754,
261,
1769,
202,
921,
20134,
273,
1775,
63,
6274,
63,
77,
8009,
3175,
1854,
15533,
202,
861,
11050,
7069,
3198,
2775,
273,
446,
31,
202,
1630,
4453,
273,
446,
31,
202,
430,
261,
6274,
63,
77,
8009,
542,
1630,
480,
446,
13,
202,
225,
4453,
273,
2186,
63,
77,
8009,
542,
1630,
31,
202,
12107,
309,
261,
6274,
63,
77,
8009,
2139,
480,
446,
13,
202,
225,
288,
202,
565,
309,
261,
6274,
63,
77,
8009,
2139,
797,
480,
446,
202,
202,
10,
10,
401,
2186,
63,
77,
8009,
2139,
797,
18,
291,
1442,
12,
2211,
4117,
3719,
202,
1377,
604,
394,
2754,
261,
1769,
202,
565,
4453,
273,
2186,
63,
77,
8009,
2139,
31,
202,
225,
289,
202,
12107,
309,
261,
2211,
4117,
1276,
3588,
13,
202,
225,
4453,
273,
29587,
18,
588,
1442,
12,
6339,
1769,
202,
12107,
309,
261,
2211,
4117,
1276,
2167,
13,
202,
225,
4453,
273,
18371,
18,
588,
950,
1442,
12,
11878,
18,
5280,
16,
2573,
1769,
202,
12107,
202,
225,
714,
5503,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
6674,
740,
3061,
261,
921,
1775,
63,
6487,
6674,
714,
5503,
16,
25083,
4202,
2286,
2555,
2305,
16,
25083,
4202,
4077,
7069,
3198,
876,
67,
9838,
13,
225,
288,
565,
714,
5503,
18,
6923,
12,
27863,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
2469,
31,
965,
77,
13,
1377,
288,
202,
430,
261,
6274,
63,
77,
8009,
3175,
1854,
1545,
1775,
18,
2469,
13,
202,
225,
604,
394,
2754,
261,
1769,
202,
921,
20134,
273,
1775,
63,
6274,
63,
77,
8009,
3175,
1854,
15533,
202,
861,
11050,
7069,
3198,
2775,
273,
446,
31,
202,
1630,
4453,
273,
446,
31,
202,
430,
261,
6274,
63,
77,
8009,
542,
1630,
480,
446,
2
] |
bridgeRegisterLocation = bridgeRegisterLocation.add(4); return bridgeRegisterLocation.sub(4);
|
bridgeRegisterLocation = bridgeRegisterLocation.add(BYTES_IN_ADDRESS); return bridgeRegisterLocation.sub(BYTES_IN_ADDRESS);
|
public VM_Address getNextReferenceAddress() { if (mapId < 0) mapOffset = maps.getNextJSRRef(mapOffset); else mapOffset = maps.getNextRef(mapOffset, mapId); if (VM.TraceStkMaps) { VM.sysWrite("VM_BaselineGCMapIterator getNextReferenceOffset = "); VM.sysWrite(mapOffset); VM.sysWrite(".\n"); if (mapId < 0) VM.sysWrite("Offset is a JSR return address ie internal pointer.\n"); } if (mapOffset != 0) { return (framePtr.add(mapOffset)); } else if (bridgeParameterMappingRequired) { if (VM.TraceStkMaps) { VM.sysWrite("getNextReferenceAddress: bridgeTarget="); VM.sysWrite(bridgeTarget); VM.sysWrite("\n"); } if (!bridgeRegistersLocationUpdated) { // point registerLocations[] to our callers stackframe // VM_Address location = framePtr.add(VM_Compiler.getFrameSize(currentMethod)); location = location.sub((LAST_NONVOLATILE_FPR - FIRST_VOLATILE_FPR + 1) * BYTES_IN_DOUBLE); // skip non-volatile and volatile fprs for (int i = LAST_NONVOLATILE_GPR; i >= FIRST_VOLATILE_GPR; --i) { location = location.sub(BYTES_IN_ADDRESS); registerLocations.set(i, location); } bridgeRegistersLocationUpdated = true; } // handle implicit "this" parameter, if any // if (bridgeParameterIndex == -1) { bridgeParameterIndex += 1; bridgeRegisterIndex += 1; bridgeRegisterLocation = bridgeRegisterLocation.add(4); return bridgeRegisterLocation.sub(4); } // now the remaining parameters // while (true) { if (bridgeParameterIndex == bridgeParameterTypes.length || bridgeRegisterIndex > LAST_VOLATILE_GPR) { bridgeParameterMappingRequired = false; break; } VM_TypeReference bridgeParameterType = bridgeParameterTypes[bridgeParameterIndex++]; if (bridgeParameterType.isReferenceType()) { bridgeRegisterIndex += 1; bridgeRegisterLocation = bridgeRegisterLocation.add(4); return bridgeRegisterLocation.sub(4); } else if (bridgeParameterType.isLongType()) { bridgeRegisterIndex += 2; bridgeRegisterLocation = bridgeRegisterLocation.add(8); } else if (bridgeParameterType.isDoubleType() || bridgeParameterType.isFloatType()) { // no gpr's used } else { // boolean, byte, char, short, int bridgeRegisterIndex += 1; bridgeRegisterLocation = bridgeRegisterLocation.add(4); } } } return VM_Address.zero(); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/954f79471b4446d9627946727ec7a88f58e9601c/VM_BaselineGCMapIterator.java/clean/rvm/src/vm/arch/powerPC/compilers/baseline/GCMap/VM_BaselineGCMapIterator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8251,
67,
1887,
6927,
2404,
1887,
1435,
288,
565,
309,
261,
1458,
548,
411,
374,
13,
1377,
852,
2335,
273,
7565,
18,
588,
2134,
6479,
54,
1957,
12,
1458,
2335,
1769,
565,
469,
1377,
852,
2335,
273,
7565,
18,
588,
2134,
1957,
12,
1458,
2335,
16,
852,
548,
1769,
565,
309,
261,
7397,
18,
3448,
510,
79,
8903,
13,
288,
1377,
8251,
18,
9499,
3067,
2932,
7397,
67,
16635,
15396,
863,
3198,
6927,
2404,
2335,
273,
315,
1769,
1377,
8251,
18,
9499,
3067,
12,
1458,
2335,
1769,
1377,
8251,
18,
9499,
3067,
2932,
8403,
82,
8863,
1377,
309,
261,
1458,
548,
411,
374,
13,
540,
8251,
18,
9499,
3067,
2932,
2335,
353,
279,
6756,
54,
327,
1758,
9228,
2713,
4407,
8403,
82,
8863,
565,
289,
565,
309,
261,
1458,
2335,
480,
374,
13,
288,
1377,
327,
261,
3789,
5263,
18,
1289,
12,
1458,
2335,
10019,
565,
289,
469,
309,
261,
18337,
1662,
3233,
3705,
13,
288,
1377,
309,
261,
7397,
18,
3448,
510,
79,
8903,
13,
288,
3639,
8251,
18,
9499,
3067,
2932,
588,
2134,
2404,
1887,
30,
10105,
2326,
1546,
1769,
8251,
18,
9499,
3067,
12,
18337,
2326,
1769,
8251,
18,
9499,
3067,
31458,
82,
8863,
1377,
289,
1377,
309,
16051,
18337,
10277,
2735,
7381,
13,
288,
3639,
368,
1634,
1744,
10985,
8526,
358,
3134,
19932,
2110,
3789,
3639,
368,
3639,
8251,
67,
1887,
2117,
273,
2623,
5263,
18,
1289,
12,
7397,
67,
9213,
18,
588,
3219,
1225,
12,
2972,
1305,
10019,
3639,
2117,
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,
8251,
67,
1887,
6927,
2404,
1887,
1435,
288,
565,
309,
261,
1458,
548,
411,
374,
13,
1377,
852,
2335,
273,
7565,
18,
588,
2134,
6479,
54,
1957,
12,
1458,
2335,
1769,
565,
469,
1377,
852,
2335,
273,
7565,
18,
588,
2134,
1957,
12,
1458,
2335,
16,
852,
548,
1769,
565,
309,
261,
7397,
18,
3448,
510,
79,
8903,
13,
288,
1377,
8251,
18,
9499,
3067,
2932,
7397,
67,
16635,
15396,
863,
3198,
6927,
2404,
2335,
273,
315,
1769,
1377,
8251,
18,
9499,
3067,
12,
1458,
2335,
1769,
1377,
8251,
18,
9499,
3067,
2932,
8403,
82,
8863,
1377,
309,
261,
1458,
548,
411,
374,
13,
540,
8251,
18,
9499,
3067,
2932,
2335,
353,
279,
6756,
54,
327,
1758,
2
] |
((TreeItem) node).setExpanded(expand); }
|
((TreeItem) node).setExpanded(expand); }
|
protected void setExpanded(Item node, boolean expand) { ((TreeItem) node).setExpanded(expand); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d94e309c616b79ca7e205fa94a5f9687ffcbe4f8/TreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
17957,
12,
1180,
756,
16,
1250,
4542,
13,
288,
3639,
14015,
2471,
1180,
13,
756,
2934,
542,
17957,
12,
12320,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
17957,
12,
1180,
756,
16,
1250,
4542,
13,
288,
3639,
14015,
2471,
1180,
13,
756,
2934,
542,
17957,
12,
12320,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (debug && DEBUG_LEVEL >= 2) { System.out.println(numLuts + " color table" + (numLuts == 1 ? "" : "s") + " present.");
|
if (debug && debugLevel >= 2) { debug(numLuts + " color table" + (numLuts == 1 ? "" : "s") + " present.");
|
protected void initFile(String id) throws FormatException, IOException { if (debug) System.out.println("calling BioRadReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(getMappedId(id)); in.order(true); // read header nx = in.readShort(); ny = in.readShort(); npic = in.readShort(); int ramp1min = in.readShort(); int ramp1max = in.readShort(); boolean notes = (in.read() | in.read() | in.read() | in.read()) != 0; byteFormat = in.readShort() != 0; int imageNumber = in.readShort(); byte[] s = new byte[32]; in.read(s); String name = new String(s); int merged = in.readShort(); int color1 = in.readShort(); int fileId = in.readShort(); int ramp2min = in.readShort(); int ramp2max = in.readShort(); int color2 = in.readShort(); int edited = in.readShort(); int lens = in.readShort(); float magFactor = in.readFloat(); // check validity of header if (fileId != PIC_FILE_ID) { throw new FormatException("Invalid file header : " + fileId); } // populate metadata fields metadata.put("nx", new Integer(nx)); metadata.put("ny", new Integer(ny)); metadata.put("npic", new Integer(npic)); metadata.put("ramp1_min", new Integer(ramp1min)); metadata.put("ramp1_max", new Integer(ramp1max)); metadata.put("notes", new Boolean(notes)); metadata.put("byte_format", new Boolean(byteFormat)); metadata.put("image_number", new Integer(imageNumber)); metadata.put("name", name); metadata.put("merged", MERGE_NAMES[merged]); metadata.put("color1", new Integer(color1)); metadata.put("file_id", new Integer(fileId)); metadata.put("ramp2_min", new Integer(ramp2min)); metadata.put("ramp2_max", new Integer(ramp2max)); metadata.put("color2", new Integer(color2)); metadata.put("edited", new Integer(edited)); metadata.put("lens", new Integer(lens)); metadata.put("mag_factor", new Float(magFactor)); // skip image data int imageLen = nx * ny; int bpp = byteFormat ? 1 : 2; in.skipBytes(bpp * npic * imageLen + 6); Vector pixelSize = new Vector(); int zSize = npic; int cSize = 1; int tSize = 1; orderCertain[0] = false; // read notes int noteCount = 0; while (notes) { // read in note int level = in.readShort(); notes = (in.read() | in.read() | in.read() | in.read()) != 0; int num = in.readShort(); int status = in.readShort(); int type = in.readShort(); int x = in.readShort(); int y = in.readShort(); s = new byte[80]; in.read(s); String text = new String(s); // be sure to remove binary data from the note text int ndx = text.length(); for (int i=0; i<text.length(); i++) { if (text.charAt(i) == 0) { ndx = i; i = text.length(); } } text = text.substring(0, ndx).trim(); // add note to list noteCount++; metadata.put("note" + noteCount, noteString(num, level, status, type, x, y, text)); // if the text of the note contains "AXIS", parse the text // more thoroughly (see pg. 21 of the BioRad specs) if (text.indexOf("AXIS") != -1) { // use StringTokenizer to break up the text StringTokenizer st = new StringTokenizer(text); String key = st.nextToken(); String noteType = ""; if (st.hasMoreTokens()) { noteType = st.nextToken(); } int axisType = Integer.parseInt(noteType); Vector params = new Vector(); while (st.hasMoreTokens()) { params.add(st.nextToken()); } if (params.size() > 1) { switch (axisType) { case 1: String dx = (String) params.get(0), dy = (String) params.get(1); metadata.put(key + " distance (X) in microns", dx); metadata.put(key + " distance (Y) in microns", dy); pixelSize.add(dy); break; case 2: if (text.indexOf("AXIS_4") != -1) { metadata.put(key + " time (X) in seconds", params.get(0)); metadata.put(key + " time (Y) in seconds", params.get(1)); zSize = 1; tSize = npic; orderCertain[0] = true; } break; case 3: metadata.put(key + " angle (X) in degrees", params.get(0)); metadata.put(key + " angle (Y) in degrees", params.get(1)); break; case 4: metadata.put(key + " intensity (X)", params.get(0)); metadata.put(key + " intensity (Y)", params.get(1)); break; case 6: metadata.put(key + " ratio (X)", params.get(0)); metadata.put(key + " ratio (Y)", params.get(1)); break; case 7: metadata.put(key + " log ratio (X)", params.get(0)); metadata.put(key + " log ratio (Y)", params.get(1)); break; case 9: metadata.put(key + " noncalibrated intensity min", params.get(0)); metadata.put(key + " noncalibrated intensity max", params.get(1)); metadata.put(key + " calibrated intensity min", params.get(2)); metadata.put(key + " calibrated intensity max", params.get(3)); break; case 11: metadata.put(key + " RGB type (X)", params.get(0)); metadata.put(key + " RGB type (Y)", params.get(1)); break; case 14: metadata.put(key + " time course type (X)", params.get(0)); metadata.put(key + " time course type (Y)", params.get(1)); break; case 15: metadata.put(key + " inverse sigmoid calibrated intensity (min)", params.get(0)); metadata.put(key + " inverse sigmoid calibrated intensity (max)", params.get(1)); metadata.put(key + " inverse sigmoid calibrated intensity (beta)", params.get(2)); metadata.put(key + " inverse sigmoid calibrated intensity (Kd)", params.get(3)); metadata.put(key + " inverse sigmoid calibrated intensity " + "(calibrated max)", params.get(0)); break; case 16: metadata.put(key + " log inverse sigmoid calibrated " + "intensity (min)", params.get(0)); metadata.put(key + " log inverse sigmoid calibrated " + "intensity (max)", params.get(1)); metadata.put(key + " log inverse sigmoid calibrated " + "intensity (beta)", params.get(2)); metadata.put(key + " log inverse sigmoid calibrated " + "intensity (Kd)", params.get(3)); metadata.put(key + " log inverse sigmoid calibrated " + "intensity (calibrated max)", params.get(0)); break; } } } } // read color tables int numLuts = 0; byte[][] lut = new byte[3][768]; boolean eof = false; while (!eof && numLuts < 3) { try { in.read(lut[numLuts]); numLuts++; } catch (Exception exc) { eof = true; if (debug) exc.printStackTrace(); } } if (debug && DEBUG_LEVEL >= 2) { System.out.println(numLuts + " color table" + (numLuts == 1 ? "" : "s") + " present."); } // convert color table bytes to floats float[][][] colors = new float[numLuts][3][256]; for (int i=0; i<numLuts; i++) { for (int l=0; l<256; l++) { int qr = 0x000000ff & lut[i][l]; int qg = 0x000000ff & lut[i][l + 256]; int qb = 0x000000ff & lut[i][l + 512]; colors[i][0][l] = (float) qr; colors[i][1][l] = (float) qg; colors[i][2][l] = (float) qb; } } String colorString = ""; for (int i=0; i<numLuts; i++) { for (int j=0; j<256; j++) { for (int k=0; k<3; k++) { colorString += (colors[i][k][j]); if (!(j == 255 && k == 2)) colorString += ","; } } colorString += "\n\n"; } metadata.put("luts", colorString); // Populate the metadata store // The metadata store we're working with. MetadataStore store = getMetadataStore(id); // populate Image element store.setImage(name, null, null, null); // populate Pixels element in.seek(14); //int type = DataTools.bytesToInt(header, 14, 2, LITTLE_ENDIAN); int type = in.readShort(); if (type == 1) pixelType[0] = FormatReader.UINT8; else pixelType[0] = FormatReader.UINT16; String dimOrder = "XY"; int[] dims = new int[] {zSize, cSize, tSize}; int max = 0; int min = Integer.MAX_VALUE; int median = 1; for (int i=0; i<dims.length; i++) { if (dims[i] < min) min = dims[i]; if (dims[i] > max) max = dims[i]; else median = dims[i]; } int[] orderedDims = new int[] {max, median, min}; for (int i=0; i<orderedDims.length; i++) { if (orderedDims[i] == zSize && dimOrder.indexOf("Z") == -1) { dimOrder += "Z"; } else if (orderedDims[i] == cSize && dimOrder.indexOf("C") == -1) { dimOrder += "C"; } else dimOrder += "T"; } nz = zSize; nt = tSize; order = dimOrder; sizeX[0] = nx; sizeY[0] = ny; sizeZ[0] = nz; sizeC[0] = 1; sizeT[0] = nt; currentOrder[0] = order; store.setPixels( new Integer(nx), // SizeX new Integer(ny), // SizeY new Integer(zSize), // SizeZ new Integer(cSize), // SizeC new Integer(tSize), // SizeT new Integer(pixelType[0]), // PixelType null, // BigEndian dimOrder, // DimensionOrder null); // Use index 0 // populate Dimensions element int size = pixelSize.size(); Float pixelSizeX = null, pixelSizeY = null, pixelSizeZ = null; if (size >= 1) pixelSizeX = new Float((String) pixelSize.get(0)); if (size >= 2) pixelSizeY = new Float((String) pixelSize.get(1)); if (size >= 3) pixelSizeZ = new Float((String) pixelSize.get(2)); store.setDimensions(pixelSizeX, pixelSizeY, pixelSizeZ, null, null, null); }
|
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/2c680a5618955854e02d652bc68024b9a011950a/BioRadReader.java/buggy/loci/formats/in/BioRadReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
309,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
31623,
21209,
6621,
2514,
18,
2738,
812,
2932,
397,
612,
397,
7310,
1769,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
1862,
1228,
12,
588,
12868,
548,
12,
350,
10019,
565,
316,
18,
1019,
12,
3767,
1769,
565,
368,
855,
1446,
565,
9264,
273,
316,
18,
896,
4897,
5621,
565,
15308,
273,
316,
18,
896,
4897,
5621,
565,
1130,
335,
273,
316,
18,
896,
4897,
5621,
565,
509,
436,
931,
21,
1154,
273,
316,
18,
896,
4897,
5621,
565,
509,
436,
931,
21,
1896,
273,
316,
18,
896,
4897,
5621,
565,
1250,
10913,
273,
261,
267,
18,
896,
1435,
571,
316,
18,
896,
1435,
571,
316,
18,
896,
1435,
571,
316,
18,
896,
10756,
480,
374,
31,
565,
1160,
1630,
273,
316,
18,
896,
4897,
1435,
480,
374,
31,
565,
509,
1316,
1854,
273,
316,
18,
896,
4897,
5621,
565,
1160,
8526,
272,
273,
394,
1160,
63,
1578,
15533,
565,
316,
18,
896,
12,
87,
1769,
565,
514,
508,
273,
394,
514,
12,
87,
1769,
565,
509,
5384,
273,
316,
18,
896,
4897,
5621,
565,
509,
2036,
21,
273,
316,
18,
896,
4897,
5621,
565,
509,
21223,
273,
316,
18,
896,
4897,
5621,
565,
509,
436,
931,
22,
1154,
273,
316,
18,
896,
4897,
5621,
565,
509,
436,
931,
22,
1896,
273,
316,
18,
896,
4897,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
309,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
31623,
21209,
6621,
2514,
18,
2738,
812,
2932,
397,
612,
397,
7310,
1769,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
1862,
1228,
12,
588,
12868,
548,
12,
350,
10019,
565,
316,
18,
1019,
12,
3767,
1769,
565,
368,
855,
1446,
565,
9264,
273,
316,
18,
896,
4897,
5621,
565,
15308,
273,
316,
18,
896,
4897,
5621,
565,
1130,
335,
273,
316,
18,
896,
4897,
5621,
565,
509,
436,
931,
21,
1154,
273,
316,
18,
896,
4897,
5621,
565,
509,
436,
931,
21,
1896,
273,
316,
18,
896,
2
] |
FolderNode fNode = fInfo.getFolderNode(); fNode.makeVisible(); Action a = fNode.getAction("file-open"); a.actionPerformed(new java.awt.event.ActionEvent(this, 0, "file-open"));
|
FolderNode fNode = fInfo.getFolderNode(); fNode.makeVisible(); Action a = fNode.getAction("file-open"); a.actionPerformed(new java.awt.event.ActionEvent(this, 0, "file-open"));
|
public void openSavedFolders(java.util.Vector folderList) { if (folderList != null && folderList.size() > 0) { net.suberic.pooka.FolderInfo fInfo = Pooka.getStoreManager().getFolderById((String)folderList.elementAt(0)); if (fInfo != null && fInfo.getFolderNode() != null) { FolderNode fNode = fInfo.getFolderNode(); fNode.makeVisible(); Action a = fNode.getAction("file-open"); a.actionPerformed(new java.awt.event.ActionEvent(this, 0, "file-open")); } } }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/PreviewContentPanel.java/buggy/src/net/suberic/pooka/gui/PreviewContentPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1696,
16776,
14885,
12,
6290,
18,
1367,
18,
5018,
3009,
682,
13,
288,
565,
309,
261,
5609,
682,
480,
446,
597,
3009,
682,
18,
1467,
1435,
405,
374,
13,
288,
1377,
2901,
18,
1717,
3036,
18,
84,
1184,
69,
18,
3899,
966,
284,
966,
273,
453,
1184,
69,
18,
588,
2257,
1318,
7675,
588,
3899,
5132,
12443,
780,
13,
5609,
682,
18,
2956,
861,
12,
20,
10019,
3639,
309,
261,
74,
966,
480,
446,
597,
284,
966,
18,
588,
3899,
907,
1435,
480,
446,
13,
288,
202,
3899,
907,
284,
907,
273,
284,
966,
18,
588,
3899,
907,
5621,
202,
74,
907,
18,
6540,
6207,
5621,
225,
202,
1803,
279,
273,
284,
907,
18,
588,
1803,
2932,
768,
17,
3190,
8863,
202,
69,
18,
1128,
13889,
12,
2704,
2252,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
12,
2211,
16,
374,
16,
315,
768,
17,
3190,
7923,
1769,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1696,
16776,
14885,
12,
6290,
18,
1367,
18,
5018,
3009,
682,
13,
288,
565,
309,
261,
5609,
682,
480,
446,
597,
3009,
682,
18,
1467,
1435,
405,
374,
13,
288,
1377,
2901,
18,
1717,
3036,
18,
84,
1184,
69,
18,
3899,
966,
284,
966,
273,
453,
1184,
69,
18,
588,
2257,
1318,
7675,
588,
3899,
5132,
12443,
780,
13,
5609,
682,
18,
2956,
861,
12,
20,
10019,
3639,
309,
261,
74,
966,
480,
446,
597,
284,
966,
18,
588,
3899,
907,
1435,
480,
446,
13,
288,
202,
3899,
907,
284,
907,
273,
284,
966,
18,
588,
3899,
907,
5621,
202,
74,
907,
18,
6540,
6207,
5621,
225,
202,
1803,
279,
273,
284,
907,
18,
588,
1803,
2
] |
public TreeViewer getViewer() {
|
public final TreeViewer getViewer() {
|
public TreeViewer getViewer() { return viewer; }
|
9108 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9108/b285e985045f40f358a5f8a02ff490c0ba010676/ShowReportView.java/buggy/csplugin/src/org/csapi/csplugin/views/ShowReportView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
4902,
18415,
8893,
264,
1435,
288,
3639,
327,
14157,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
4902,
18415,
8893,
264,
1435,
288,
3639,
327,
14157,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IViewDescriptor desc = reg.find(newID);
|
IViewDescriptor desc = reg.find(viewId);
|
public void addPlaceholder(String newID) { // Get the view label. IViewRegistry reg = WorkbenchPlugin.getDefault().getViewRegistry(); IViewDescriptor desc = reg.find(newID); if (desc == null) { // cannot safely open the dialog so log the problem WorkbenchPlugin.log("Unable to find view label: " + newID);//$NON-NLS-1$ return; } // Create the placeholder. LayoutPart newPart = new PartPlaceholder(newID); // Add it to the layout. String label = desc.getLabel(); folder.add(label, folder.getItemCount(), newPart);}
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c0af1544b5ec57401dd4ae96da6647fd73a74363/FolderLayout.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/FolderLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
527,
14038,
12,
780,
394,
734,
13,
288,
202,
759,
968,
326,
1476,
1433,
18,
202,
45,
1767,
4243,
960,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
1767,
4243,
5621,
202,
45,
1767,
3187,
3044,
273,
960,
18,
4720,
12,
2704,
734,
1769,
202,
430,
261,
5569,
422,
446,
13,
288,
202,
202,
759,
2780,
15303,
1696,
326,
6176,
1427,
613,
326,
6199,
202,
202,
2421,
22144,
3773,
18,
1330,
2932,
3370,
358,
1104,
1476,
1433,
30,
315,
397,
394,
734,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
2463,
31,
202,
97,
202,
759,
1788,
326,
6695,
18,
202,
3744,
1988,
394,
1988,
273,
394,
6393,
14038,
12,
2704,
734,
1769,
202,
202,
759,
1436,
518,
358,
326,
3511,
18,
202,
780,
1433,
273,
3044,
18,
588,
2224,
5621,
202,
5609,
18,
1289,
12,
1925,
16,
3009,
18,
588,
30687,
9334,
394,
1988,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
527,
14038,
12,
780,
394,
734,
13,
288,
202,
759,
968,
326,
1476,
1433,
18,
202,
45,
1767,
4243,
960,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
1767,
4243,
5621,
202,
45,
1767,
3187,
3044,
273,
960,
18,
4720,
12,
2704,
734,
1769,
202,
430,
261,
5569,
422,
446,
13,
288,
202,
202,
759,
2780,
15303,
1696,
326,
6176,
1427,
613,
326,
6199,
202,
202,
2421,
22144,
3773,
18,
1330,
2932,
3370,
358,
1104,
1476,
1433,
30,
315,
397,
394,
734,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
2463,
31,
202,
97,
202,
759,
1788,
326,
6695,
18,
202,
3744,
1988,
394,
1988,
273,
394,
6393,
14038,
12,
2704,
734,
1769,
2
] |
throws IOException, SQLException {
|
throws IOException, SQLException {
|
public int updateJobDetail(Connection conn, JobDetail job) throws IOException, SQLException { ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap()); byte[] data = baos.toByteArray(); PreparedStatement ps = null; PreparedStatement ps2 = null; ResultSet rs = null; try { ps = conn.prepareStatement(rtp(UPDATE_ORACLE_JOB_DETAIL)); ps.setString(1, job.getDescription()); ps.setString(2, job.getJobClass().getName()); ps.setBoolean(3, job.isDurable()); ps.setBoolean(4, job.isVolatile()); ps.setBoolean(5, job.isStateful()); ps.setBoolean(6, job.requestsRecovery()); ps.setString(7, job.getName()); ps.setString(8, job.getGroup()); ps.executeUpdate(); ps.close(); ps = conn .prepareStatement(rtp(UPDATE_ORACLE_JOB_DETAIL_EMPTY_BLOB)); ps.setString(1, job.getName()); ps.setString(2, job.getGroup()); ps.executeUpdate(); ps.close(); ps = conn.prepareStatement(rtp(SELECT_ORACLE_JOB_DETAIL_BLOB)); ps.setString(1, job.getName()); ps.setString(2, job.getGroup()); rs = ps.executeQuery(); int res = 0; if (rs.next()) { Blob dbBlob = writeDataToBlob(rs, 1, data); ps2 = conn.prepareStatement(rtp(UPDATE_ORACLE_JOB_DETAIL_BLOB)); ps2.setBlob(1, dbBlob); ps2.setString(2, job.getName()); ps2.setString(3, job.getGroup()); res = ps2.executeUpdate(); } if (res > 0) { deleteJobListeners(conn, job.getName(), job.getGroup()); String[] jobListeners = job.getJobListenerNames(); for (int i = 0; jobListeners != null && i < jobListeners.length; i++) insertJobListener(conn, job, jobListeners[i]); } return res; } finally { closeResultSet(rs); closeStatement(ps); closeStatement(ps2); } }
|
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/1e6bdfda6e50d824394e05ecab0cb915f673d9ab/OracleDelegate.java/clean/src/oracle/org/quartz/impl/jdbcjobstore/oracle/OracleDelegate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1089,
2278,
6109,
12,
1952,
1487,
16,
3956,
6109,
1719,
13,
5411,
1216,
1860,
16,
6483,
288,
540,
11559,
17548,
273,
4472,
2278,
751,
12,
4688,
18,
588,
2278,
31982,
10663,
3639,
1160,
8526,
501,
273,
17548,
18,
869,
8826,
5621,
3639,
16913,
4250,
273,
446,
31,
3639,
16913,
4250,
22,
273,
446,
31,
3639,
10842,
3597,
273,
446,
31,
3639,
775,
288,
5411,
4250,
273,
1487,
18,
9366,
3406,
12,
3797,
84,
12,
8217,
67,
916,
2226,
900,
67,
18321,
67,
40,
19810,
10019,
5411,
4250,
18,
542,
780,
12,
21,
16,
1719,
18,
588,
3291,
10663,
5411,
4250,
18,
542,
780,
12,
22,
16,
1719,
18,
588,
2278,
797,
7675,
17994,
10663,
5411,
4250,
18,
542,
5507,
12,
23,
16,
1719,
18,
291,
23073,
10663,
5411,
4250,
18,
542,
5507,
12,
24,
16,
1719,
18,
291,
17431,
20295,
10663,
5411,
4250,
18,
542,
5507,
12,
25,
16,
1719,
18,
291,
1119,
2706,
10663,
5411,
4250,
18,
542,
5507,
12,
26,
16,
1719,
18,
11420,
11548,
10663,
5411,
4250,
18,
542,
780,
12,
27,
16,
1719,
18,
17994,
10663,
5411,
4250,
18,
542,
780,
12,
28,
16,
1719,
18,
588,
1114,
10663,
5411,
4250,
18,
8837,
1891,
5621,
5411,
4250,
18,
4412,
5621,
5411,
4250,
273,
1487,
10792,
263,
9366,
3406,
12,
3797,
84,
12,
8217,
67,
916,
2226,
900,
67,
18321,
67,
40,
19810,
67,
13625,
67,
38,
6038,
10019,
5411,
4250,
18,
542,
780,
12,
21,
16,
1719,
18,
17994,
10663,
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,
1089,
2278,
6109,
12,
1952,
1487,
16,
3956,
6109,
1719,
13,
5411,
1216,
1860,
16,
6483,
288,
540,
11559,
17548,
273,
4472,
2278,
751,
12,
4688,
18,
588,
2278,
31982,
10663,
3639,
1160,
8526,
501,
273,
17548,
18,
869,
8826,
5621,
3639,
16913,
4250,
273,
446,
31,
3639,
16913,
4250,
22,
273,
446,
31,
3639,
10842,
3597,
273,
446,
31,
3639,
775,
288,
5411,
4250,
273,
1487,
18,
9366,
3406,
12,
3797,
84,
12,
8217,
67,
916,
2226,
900,
67,
18321,
67,
40,
19810,
10019,
5411,
4250,
18,
542,
780,
12,
21,
16,
1719,
18,
588,
3291,
10663,
5411,
4250,
18,
542,
780,
12,
22,
16,
1719,
18,
588,
2278,
797,
7675,
17994,
10663,
5411,
4250,
2
] |
System.err.println("ERROR Cell::refreshGroups() (Group: " + currGroup.getName() + ") -> " + e.getMessage());
|
e.printStackTrace();
|
protected void refreshGroups() throws AFSException { Group currGroup; int iterationId = getGroupsBegin( cellHandle ); groups = new ArrayList(); currGroup = new Group( this ); boolean authorized = false; int r = 1; while( r != 0 ) { try { if (authorized) { groups.add( currGroup ); currGroup = new Group( this ); } r = getGroupsNext( cellHandle, iterationId, currGroup ); authorized = true; } catch (AFSException e) { System.err.println("ERROR Cell::refreshGroups() (Group: " + currGroup.getName() + ") -> " + e.getMessage()); authorized = false; if (org.openafs.jafs.ErrorTable.isPermissionDenied(e.getErrorCode())) { if ( r++ > 25 ) r = 0; } } } Cell.getGroupsDone( iterationId ); }
|
9493 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9493/2a4a4f417dd4193df9e0a3deae14aacd3f94ccb1/Cell.java/buggy/src/JAVA/classes/org/openafs/jafs/Cell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4460,
3621,
1435,
1216,
432,
4931,
503,
225,
288,
565,
3756,
4306,
1114,
31,
565,
509,
6532,
548,
273,
22708,
8149,
12,
2484,
3259,
11272,
3639,
3252,
273,
394,
2407,
5621,
3639,
4306,
1114,
273,
394,
3756,
12,
333,
11272,
565,
1250,
10799,
273,
629,
31,
565,
509,
436,
273,
404,
31,
565,
1323,
12,
436,
480,
374,
262,
288,
1377,
775,
288,
3639,
309,
261,
8434,
13,
288,
1850,
3252,
18,
1289,
12,
4306,
1114,
11272,
1850,
4306,
1114,
273,
394,
3756,
12,
333,
11272,
3639,
289,
3639,
436,
273,
22708,
2134,
12,
2484,
3259,
16,
6532,
548,
16,
4306,
1114,
11272,
3639,
10799,
273,
638,
31,
1377,
289,
1044,
261,
37,
4931,
503,
425,
13,
288,
3639,
2332,
18,
370,
18,
8222,
2932,
3589,
8614,
2866,
9144,
3621,
1435,
261,
1114,
30,
315,
4697,
282,
397,
4306,
1114,
18,
17994,
1435,
397,
9369,
317,
315,
397,
425,
18,
24906,
10663,
3639,
10799,
273,
629,
31,
3639,
309,
261,
3341,
18,
3190,
1727,
87,
18,
78,
1727,
87,
18,
668,
1388,
18,
291,
5041,
10410,
12,
73,
18,
588,
12012,
1435,
3719,
288,
202,
225,
309,
261,
436,
9904,
405,
6969,
262,
436,
273,
374,
31,
202,
97,
1377,
289,
565,
289,
377,
8614,
18,
588,
3621,
7387,
12,
6532,
548,
11272,
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,
4750,
918,
4460,
3621,
1435,
1216,
432,
4931,
503,
225,
288,
565,
3756,
4306,
1114,
31,
565,
509,
6532,
548,
273,
22708,
8149,
12,
2484,
3259,
11272,
3639,
3252,
273,
394,
2407,
5621,
3639,
4306,
1114,
273,
394,
3756,
12,
333,
11272,
565,
1250,
10799,
273,
629,
31,
565,
509,
436,
273,
404,
31,
565,
1323,
12,
436,
480,
374,
262,
288,
1377,
775,
288,
3639,
309,
261,
8434,
13,
288,
1850,
3252,
18,
1289,
12,
4306,
1114,
11272,
1850,
4306,
1114,
273,
394,
3756,
12,
333,
11272,
3639,
289,
3639,
436,
273,
22708,
2134,
12,
2484,
3259,
16,
6532,
548,
16,
4306,
1114,
11272,
3639,
10799,
273,
638,
31,
1377,
289,
1044,
261,
37,
4931,
503,
425,
2
] |
setTileAt(tx,ty,selTile); if(selection == null) { selection = new Area(new Rectangle2D.Double(tx,ty,1,1)); }else{ if(!selection.contains(tx,ty)) { selection.add(new Area(new Rectangle2D.Double(tx,ty,1,1))); } } }
|
setTileAt(tx, ty, selTile); if (selection == null) { selection = new Area(new Rectangle2D.Double(tx, ty, 1, 1)); } else { if (!selection.contains(tx, ty)) { selection.add(new Area(new Rectangle2D.Double(tx, ty, 1, 1))); } } }
|
public void select(int tx, int ty) { setTileAt(tx,ty,selTile); if(selection == null) { selection = new Area(new Rectangle2D.Double(tx,ty,1,1)); }else{ if(!selection.contains(tx,ty)) { selection.add(new Area(new Rectangle2D.Double(tx,ty,1,1))); } } }
|
6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/8d5f7f1ff785030242a6637c83eaef349f361353/SelectionLayer.java/buggy/tiled/mapeditor/selection/SelectionLayer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2027,
12,
474,
2229,
16,
509,
13806,
13,
288,
202,
202,
542,
9337,
861,
12,
978,
16,
4098,
16,
1786,
9337,
1769,
202,
202,
430,
12,
10705,
422,
446,
13,
288,
1082,
202,
10705,
273,
394,
16668,
12,
2704,
13264,
22,
40,
18,
5265,
12,
978,
16,
4098,
16,
21,
16,
21,
10019,
202,
202,
97,
12107,
95,
1082,
202,
430,
12,
5,
10705,
18,
12298,
12,
978,
16,
4098,
3719,
288,
9506,
202,
10705,
18,
1289,
12,
2704,
16668,
12,
2704,
13264,
22,
40,
18,
5265,
12,
978,
16,
4098,
16,
21,
16,
21,
3719,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2027,
12,
474,
2229,
16,
509,
13806,
13,
288,
202,
202,
542,
9337,
861,
12,
978,
16,
4098,
16,
1786,
9337,
1769,
202,
202,
430,
12,
10705,
422,
446,
13,
288,
1082,
202,
10705,
273,
394,
16668,
12,
2704,
13264,
22,
40,
18,
5265,
12,
978,
16,
4098,
16,
21,
16,
21,
10019,
202,
202,
97,
12107,
95,
1082,
202,
430,
12,
5,
10705,
18,
12298,
12,
978,
16,
4098,
3719,
288,
9506,
202,
10705,
18,
1289,
12,
2704,
16668,
12,
2704,
13264,
22,
40,
18,
5265,
12,
978,
16,
4098,
16,
21,
16,
21,
3719,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
JavaProjectUtilities.updateClasspath(j2eeInfo.getJavaProject());
|
JemProjectUtilities.updateClasspath(j2eeInfo.getJavaProject());
|
public void initializeFromInfo(IJavaProjectInfo info) throws CoreException { //super.initializeFromInfo(info); J2EEJavaProjectInfo j2eeInfo = (J2EEJavaProjectInfo) info; // To do : Needs rework for flexibile project ModuleCore.getFirstArtifactEditForRead // J2EESettings settings = getJ2EESettings();// settings.setModuleVersion(j2eeInfo.getModuleVersion());// settings.write(); JavaProjectUtilities.updateClasspath(j2eeInfo.getJavaProject()); //lsr - no monitor, do not // update resources }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/668b89d2c5f4e8d55462fa9f1593eec8c0170482/J2EEModuleNature.java/buggy/plugins/org.eclipse.jst.j2ee/j2eecreation/org/eclipse/jst/j2ee/internal/project/J2EEModuleNature.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4046,
1265,
966,
12,
45,
5852,
4109,
966,
1123,
13,
1216,
30015,
288,
202,
202,
759,
9565,
18,
11160,
1265,
966,
12,
1376,
1769,
202,
202,
46,
22,
9383,
5852,
4109,
966,
525,
22,
1340,
966,
273,
261,
46,
22,
9383,
5852,
4109,
966,
13,
1123,
31,
202,
202,
759,
202,
202,
774,
741,
294,
29164,
283,
1252,
225,
364,
16600,
495,
398,
1984,
5924,
4670,
18,
588,
3759,
7581,
4666,
1290,
1994,
202,
202,
759,
202,
202,
46,
22,
9383,
2628,
1947,
273,
9285,
22,
9383,
2628,
5621,
759,
202,
202,
4272,
18,
542,
3120,
1444,
12,
78,
22,
1340,
966,
18,
588,
3120,
1444,
10663,
759,
202,
202,
4272,
18,
2626,
5621,
202,
202,
46,
351,
4109,
11864,
18,
2725,
17461,
12,
78,
22,
1340,
966,
18,
588,
5852,
4109,
10663,
368,
3251,
86,
300,
1158,
6438,
16,
741,
486,
202,
202,
759,
1089,
2703,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4046,
1265,
966,
12,
45,
5852,
4109,
966,
1123,
13,
1216,
30015,
288,
202,
202,
759,
9565,
18,
11160,
1265,
966,
12,
1376,
1769,
202,
202,
46,
22,
9383,
5852,
4109,
966,
525,
22,
1340,
966,
273,
261,
46,
22,
9383,
5852,
4109,
966,
13,
1123,
31,
202,
202,
759,
202,
202,
774,
741,
294,
29164,
283,
1252,
225,
364,
16600,
495,
398,
1984,
5924,
4670,
18,
588,
3759,
7581,
4666,
1290,
1994,
202,
202,
759,
202,
202,
46,
22,
9383,
2628,
1947,
273,
9285,
22,
9383,
2628,
5621,
759,
202,
202,
4272,
18,
542,
3120,
1444,
12,
78,
22,
1340,
966,
18,
588,
3120,
1444,
10663,
759,
202,
202,
4272,
18,
2626,
5621,
202,
2
] |
property = property.toLowerCase();
|
public String readProperty(CmsUser currentUser, CmsProject currentProject, String resource, String siteRoot, String property, boolean search) throws CmsException { // read the resource CmsResource res = readFileHeader(currentUser, currentProject, resource); // check the security if( ! accessRead(currentUser, currentProject, res) ) { throw new CmsException("[" + this.getClass().getName() + "] " + resource, CmsException.C_NO_ACCESS); } property = property.toLowerCase(); search = search && (siteRoot != null); // check if we have the result already cached String cacheKey = getCacheKey(property + search, null, new CmsProject(currentProject.getId(), -1), res.getResourceName()); String value = (String)m_propertyCache.get(cacheKey); if (value == null) { // check if the map of all properties for this resource is alreday cached String cacheKey2 = getCacheKey(C_CACHE_ALL_PROPERTIES + search, null, new CmsProject(currentProject.getId(), -1), res.getResourceName()); Map allProperties = (HashMap)m_propertyCache.get(cacheKey2); if (allProperties != null) { // map of properties already read, look up value there value = (String)allProperties.get(property); if (value == null) { // unfortunatly, the Map is case sentitive, so to make really sure we must // look up all the entries in the map manually, which should be faster // then a check in the DB nevertheless Iterator i = allProperties.keySet().iterator(); while (i.hasNext()) { String key = (String)i.next(); if (key.equalsIgnoreCase(property)) { value = (String)allProperties.get(key); break; } } } } else if (search) { // result not cached, look it up in the DB with search enabled String cacheKey3 = getCacheKey(property + false, null, new CmsProject(currentProject.getId(), -1), res.getResourceName()); value = (String)m_propertyCache.get(cacheKey3); if ((value == null) || (value == C_CACHE_NULL_PROPERTY_VALUE)) { boolean cont; siteRoot += "/"; do { value = readProperty(currentUser, currentProject, resource, siteRoot, property, false); cont = !((value != null) || siteRoot.equals(resource)); resource = CmsResource.getParent(resource); } while (cont); } } else { // result not cached, look it up in the DB without search value = m_dbAccess.readProperty(property, currentProject.getId(), res, res.getType()); } if (value == null) value = C_CACHE_NULL_PROPERTY_VALUE; // store the result in the cache m_propertyCache.put(cacheKey, value); } return (value == C_CACHE_NULL_PROPERTY_VALUE)?null:value; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/08388631e2948bfd330f9f3571cc156a10efe64b/CmsResourceBroker.java/buggy/src/com/opencms/file/genericSql/CmsResourceBroker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
855,
1396,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
514,
1058,
16,
514,
25512,
16,
514,
1272,
16,
1250,
1623,
13,
565,
1216,
11228,
288,
3639,
368,
855,
326,
1058,
3639,
7630,
400,
273,
10413,
1864,
12,
2972,
1299,
16,
783,
4109,
16,
1058,
1769,
3639,
368,
866,
326,
4373,
3639,
309,
12,
401,
2006,
1994,
12,
2972,
1299,
16,
783,
4109,
16,
400,
13,
262,
288,
2398,
604,
394,
11228,
2932,
9614,
397,
333,
18,
588,
797,
7675,
17994,
1435,
397,
9850,
315,
397,
1058,
16,
7734,
11228,
18,
39,
67,
3417,
67,
13204,
1769,
3639,
289,
15604,
1623,
273,
1623,
597,
261,
4256,
2375,
480,
446,
1769,
3639,
368,
866,
309,
732,
1240,
326,
563,
1818,
3472,
3639,
514,
9097,
273,
26528,
12,
4468,
397,
1623,
16,
446,
16,
394,
2149,
4109,
12,
2972,
4109,
18,
26321,
9334,
300,
21,
3631,
400,
18,
588,
19327,
10663,
3639,
514,
460,
273,
261,
780,
13,
81,
67,
4468,
1649,
18,
588,
12,
2493,
653,
1769,
7734,
309,
261,
1132,
422,
446,
13,
288,
13491,
368,
866,
309,
326,
852,
434,
777,
1790,
364,
333,
1058,
353,
524,
1118,
528,
3472,
5411,
514,
9097,
22,
273,
26528,
12,
39,
67,
8495,
67,
4685,
67,
17421,
397,
1623,
16,
446,
16,
394,
2149,
4109,
12,
2972,
4109,
18,
26321,
9334,
300,
21,
3631,
400,
18,
588,
19327,
10663,
5411,
1635,
777,
2297,
273,
261,
8658,
13,
81,
67,
4468,
1649,
18,
588,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
855,
1396,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
514,
1058,
16,
514,
25512,
16,
514,
1272,
16,
1250,
1623,
13,
565,
1216,
11228,
288,
3639,
368,
855,
326,
1058,
3639,
7630,
400,
273,
10413,
1864,
12,
2972,
1299,
16,
783,
4109,
16,
1058,
1769,
3639,
368,
866,
326,
4373,
3639,
309,
12,
401,
2006,
1994,
12,
2972,
1299,
16,
783,
4109,
16,
400,
13,
262,
288,
2398,
604,
394,
11228,
2932,
9614,
397,
333,
18,
588,
797,
7675,
17994,
1435,
397,
9850,
315,
397,
1058,
16,
7734,
11228,
18,
39,
67,
3417,
67,
13204,
1769,
3639,
289,
15604,
1623,
273,
1623,
597,
261,
4256,
2375,
480,
446,
1769,
3639,
368,
866,
309,
2
] |
|
ImportOperation op = new ImportOperation(target.getFullPath(), stores[0].getParent(), FileStoreStructureProvider.INSTANCE, query, Arrays .asList(stores));
|
ImportOperation op = new ImportOperation(target.getFullPath(), stores[0].getParent(), FileStoreStructureProvider.INSTANCE, query, Arrays.asList(stores));
|
private void performFileImport(IFileStore[] stores, IContainer target, IProgressMonitor monitor) { IOverwriteQuery query = new IOverwriteQuery() { public String queryOverwrite(String pathString) { if (alwaysOverwrite) return ALL; final String returnCode[] = { CANCEL }; final String msg = NLS .bind( IDEWorkbenchMessages.CopyFilesAndFoldersOperation_overwriteQuestion, pathString); final String[] options = { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }; parentShell.getDisplay().syncExec(new Runnable() { public void run() { MessageDialog dialog = new MessageDialog( parentShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_question, null, msg, MessageDialog.QUESTION, options, 0); dialog.open(); int returnVal = dialog.getReturnCode(); String[] returnCodes = { YES, ALL, NO, CANCEL }; returnCode[0] = returnVal == -1 ? CANCEL : returnCodes[returnVal]; } }); if (returnCode[0] == ALL) { alwaysOverwrite = true; } else if (returnCode[0] == CANCEL) { canceled = true; } return returnCode[0]; } }; ImportOperation op = new ImportOperation(target.getFullPath(), stores[0].getParent(), FileStoreStructureProvider.INSTANCE, query, Arrays .asList(stores)); op.setContext(parentShell); op.setCreateContainerStructure(false); try { op.run(monitor); } catch (InterruptedException e) { return; } catch (InvocationTargetException e) { if (e.getTargetException() instanceof CoreException) { final IStatus status = ((CoreException) e.getTargetException()) .getStatus(); parentShell.getDisplay().syncExec(new Runnable() { public void run() { ErrorDialog .openError( parentShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_importErrorDialogTitle, null, // no special message status); } }); } else { // CoreExceptions are handled above, but unexpected runtime // exceptions and errors may still occur. IDEWorkbenchPlugin .getDefault() .getLog() .log( StatusUtil .newStatus( IStatus.ERROR, MessageFormat .format( "Exception in {0}.performFileImport(): {1}", //$NON-NLS-1$ new Object[] { getClass() .getName(), e .getTargetException() }), null)); displayError(NLS .bind( IDEWorkbenchMessages.CopyFilesAndFoldersOperation_internalError, e.getTargetException().getMessage())); } return; } // Special case since ImportOperation doesn't throw a CoreException on // failure. IStatus status = op.getStatus(); if (!status.isOK()) { if (errorStatus == null) errorStatus = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.ERROR, getProblemsMessage(), null); errorStatus.merge(status); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/81668ae888a45daf0e57cd790b40dafaab7e36d2/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3073,
812,
5010,
12,
45,
812,
2257,
8526,
9064,
16,
467,
2170,
1018,
16,
1082,
202,
45,
5491,
7187,
6438,
13,
288,
202,
202,
4294,
502,
2626,
1138,
843,
273,
394,
1665,
502,
2626,
1138,
1435,
288,
1082,
202,
482,
514,
843,
20832,
12,
780,
29307,
13,
288,
9506,
202,
430,
261,
17737,
20832,
13,
6862,
202,
2463,
8061,
31,
9506,
202,
6385,
514,
24558,
8526,
273,
288,
29641,
289,
31,
9506,
202,
6385,
514,
1234,
273,
29117,
25083,
202,
18,
4376,
12,
6862,
9506,
202,
10385,
2421,
22144,
5058,
18,
2951,
2697,
1876,
14885,
2988,
67,
19274,
11665,
16,
6862,
9506,
202,
803,
780,
1769,
9506,
202,
6385,
514,
8526,
702,
273,
288,
1599,
3529,
2918,
18,
29081,
67,
13545,
16,
25083,
202,
734,
3529,
2918,
18,
29081,
67,
4296,
67,
4685,
67,
13545,
16,
25083,
202,
734,
3529,
2918,
18,
3417,
67,
13545,
16,
25083,
202,
734,
3529,
2918,
18,
25268,
67,
13545,
289,
31,
9506,
202,
2938,
13220,
18,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
288,
6862,
202,
482,
918,
1086,
1435,
288,
25083,
202,
1079,
6353,
6176,
273,
394,
2350,
6353,
12,
6862,
9506,
202,
2938,
13220,
16,
6862,
9506,
202,
10385,
2421,
22144,
5058,
18,
2951,
2697,
1876,
14885,
2988,
67,
4173,
16,
6862,
9506,
202,
2011,
16,
1234,
16,
2350,
6353,
18,
4740,
1146,
16,
702,
16,
374,
1769,
25083,
202,
12730,
18,
3190,
5621,
25083,
202,
474,
28702,
273,
6176,
18,
588,
990,
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,
3073,
812,
5010,
12,
45,
812,
2257,
8526,
9064,
16,
467,
2170,
1018,
16,
1082,
202,
45,
5491,
7187,
6438,
13,
288,
202,
202,
4294,
502,
2626,
1138,
843,
273,
394,
1665,
502,
2626,
1138,
1435,
288,
1082,
202,
482,
514,
843,
20832,
12,
780,
29307,
13,
288,
9506,
202,
430,
261,
17737,
20832,
13,
6862,
202,
2463,
8061,
31,
9506,
202,
6385,
514,
24558,
8526,
273,
288,
29641,
289,
31,
9506,
202,
6385,
514,
1234,
273,
29117,
25083,
202,
18,
4376,
12,
6862,
9506,
202,
10385,
2421,
22144,
5058,
18,
2951,
2697,
1876,
14885,
2988,
67,
19274,
11665,
16,
6862,
9506,
202,
803,
780,
1769,
9506,
202,
6385,
514,
8526,
702,
273,
288,
1599,
2
] |
if (wsContainsCaret) { return whiteSpace.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - whiteSpace.getTextRange().getStartOffset(), " \t"); } else { return offset - whiteSpace.getTextRange().getLength() + newWS.length();
|
if (wsContainsCaret) { return whiteSpace.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - whiteSpace.getTextRange().getStartOffset(), " \t"); } else { return offset - whiteSpace.getTextRange().getLength() + newWS.length(); } } else { WhiteSpace lastWS = processor.getLastWhiteSpace(); int lineStartOffset = getLineStartOffset(offset, lastWS, getText(documentModel)); final IndentInfo indent = new IndentInfo(0, 0, 0); final String newWS = lastWS.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(lastWS.getTextRange(), newWS, 0); return lastWS.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - lastWS.getTextRange().getStartOffset(), " \t"); } } finally { myIsActive--;
|
public int adjustLineIndent(final FormattingModel model, final CodeStyleSettings settings, final CodeStyleSettings.IndentOptions indentOptions, final int offset, final TextRange affectedRange) throws IncorrectOperationException { final FormattingDocumentModel documentModel = model.getDocumentModel(); final Block block = model.getRootBlock(); final FormatProcessor processor = new FormatProcessor(documentModel, block, settings, indentOptions, affectedRange); final LeafBlockWrapper blockAfterOffset = processor.getBlockBefore(offset); if (blockAfterOffset != null) { final WhiteSpace whiteSpace = blockAfterOffset.getWhiteSpace(); boolean wsContainsCaret = whiteSpace.getTextRange().getStartOffset() <= offset && whiteSpace.getTextRange().getEndOffset() > offset; final CharSequence text = getCharSequence(documentModel); int lineStartOffset = getLineStartOffset(offset, whiteSpace, text); processor.setAllWhiteSpacesAreReadOnly(); whiteSpace.setLineFeedsAreReadOnly(true); final IndentInfo indent; if (documentModel.getLineNumber(offset) == documentModel.getLineNumber(whiteSpace.getTextRange().getEndOffset())) { whiteSpace.setReadOnly(false); processor.formatWithoutRealModifications(); indent = new IndentInfo(0, whiteSpace.getIndentOffset(), whiteSpace.getSpaces()); } else { indent = processor.getIndentAt(offset); } final String newWS = whiteSpace.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(whiteSpace.getTextRange(), newWS, blockAfterOffset.getTextRange().getLength()); if (wsContainsCaret) { return whiteSpace.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - whiteSpace.getTextRange().getStartOffset(), " \t"); } else { return offset - whiteSpace.getTextRange().getLength() + newWS.length(); } } else { WhiteSpace lastWS = processor.getLastWhiteSpace(); int lineStartOffset = getLineStartOffset(offset, lastWS, getText(documentModel)); final IndentInfo indent = new IndentInfo(0, 0, 0); final String newWS = lastWS.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(lastWS.getTextRange(), newWS, 0); return lastWS.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - lastWS.getTextRange().getStartOffset(), " \t"); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/7a52f4da42ba88dd7975588bd16a0bb46effc9d2/FormatterImpl.java/buggy/source/com/intellij/newCodeFormatting/impl/FormatterImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5765,
1670,
7790,
12,
6385,
4077,
1787,
1488,
938,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1320,
3504,
1320,
16,
17311,
727,
509,
1384,
16,
17311,
727,
3867,
2655,
9844,
2655,
13,
1216,
657,
6746,
10602,
288,
565,
727,
4077,
1787,
2519,
1488,
1668,
1488,
273,
938,
18,
588,
2519,
1488,
5621,
565,
727,
3914,
1203,
273,
938,
18,
588,
2375,
1768,
5621,
565,
727,
4077,
5164,
6659,
273,
394,
4077,
5164,
12,
5457,
1488,
16,
1203,
16,
1947,
16,
3504,
1320,
16,
9844,
2655,
1769,
565,
727,
23383,
1768,
3611,
1203,
4436,
2335,
273,
6659,
18,
588,
1768,
4649,
12,
3348,
1769,
565,
309,
261,
2629,
4436,
2335,
480,
446,
13,
288,
1377,
727,
30233,
3819,
9578,
3819,
273,
1203,
4436,
2335,
18,
588,
23108,
5621,
1377,
1250,
4945,
10846,
39,
20731,
273,
9578,
3819,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
1435,
1648,
1384,
597,
9578,
3819,
18,
588,
1528,
2655,
7675,
588,
1638,
2335,
1435,
405,
1384,
31,
1377,
727,
9710,
977,
273,
23577,
4021,
12,
5457,
1488,
1769,
1377,
509,
29208,
2335,
273,
9851,
1685,
2335,
12,
3348,
16,
9578,
3819,
16,
977,
1769,
1377,
6659,
18,
542,
1595,
13407,
12077,
4704,
12066,
5621,
1377,
9578,
3819,
18,
542,
1670,
8141,
87,
4704,
12066,
12,
3767,
1769,
1377,
727,
28653,
966,
3504,
31,
1377,
309,
261,
5457,
1488,
18,
588,
31063,
12,
3348,
13,
422,
1668,
1488,
18,
588,
31063,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5765,
1670,
7790,
12,
6385,
4077,
1787,
1488,
938,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1320,
3504,
1320,
16,
17311,
727,
509,
1384,
16,
17311,
727,
3867,
2655,
9844,
2655,
13,
1216,
657,
6746,
10602,
288,
565,
727,
4077,
1787,
2519,
1488,
1668,
1488,
273,
938,
18,
588,
2519,
1488,
5621,
565,
727,
3914,
1203,
273,
938,
18,
588,
2375,
1768,
5621,
565,
727,
4077,
5164,
6659,
273,
394,
4077,
5164,
12,
5457,
1488,
16,
1203,
16,
1947,
16,
3504,
1320,
16,
9844,
2655,
1769,
565,
727,
23383,
1768,
3611,
1203,
4436,
2335,
273,
6659,
18,
588,
1768,
4649,
12,
3348,
1769,
565,
309,
261,
2629,
4436,
2
] |
c = '&';
|
c = 0x26;
|
private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = false; boolean entities = false; int inputStackSize = inputStack.size(); do { char c = literalReadCh(); if (c == delim && inputStackSize == inputStack.size()) break; switch (c) { case '\n': case '\r': if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0) c = ' '; // normalize to space break; case '\t': if ((flags & LIT_ATTRIBUTE) != 0) c = ' '; // normalize to space break; case '&': mark(2); c = readCh(); if (c == '#') { if ((flags & LIT_DISABLE_CREF) != 0) { reset(); c = '&'; } else { mark(1); c = readCh(); boolean hex = (c == 'x'); if (!hex) reset(); char[] ref = readCharacterRef(hex ? 16 : 10); for (int i = 0; i < ref.length; i++) { c = ref[i]; if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0 && (c == '\n' || c == '\r')) c = ' '; // normalize else if ((flags & LIT_ATTRIBUTE) != 0 && c == '\t') c = ' '; // normalize literalBuf.append(c); } entities = true; continue; } } else { if ((flags & LIT_DISABLE_EREF) != 0) { reset(); c = '&'; } else { reset(); if (replaceERefs || (flags & LIT_NORMALIZE) > 0) { String entityName = readNmtoken(true); require(';'); String text = (String) PREDEFINED_ENTITIES.get(entityName); if (text != null) literalBuf.append(text); else expandEntity(entityName, (flags & LIT_ATTRIBUTE) != 0); entities = true; continue; } else error("parser is configured not to replace entity " + "references"); } } break; case '<': if ((flags & LIT_ATTRIBUTE) != 0) error("attribute values may not contain '<'"); break; case '\uffff': if (inputStack.size() > 1) { popInput(); continue; } throw new EOFException(); } literalBuf.append(c); } while (true); expandPE = saved; if (entities) normalizeCRLF(literalBuf); if ((flags & LIT_NORMALIZE) > 0) literalBuf = normalize(literalBuf); return literalBuf.toString(); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/b91aa9e58f8db725da1b33461ffd38af23bedf33/XMLParser.java/buggy/gnu/xml/stream/XMLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
855,
6177,
12,
474,
2943,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1250,
5198,
273,
4542,
1423,
31,
565,
1149,
10508,
273,
855,
782,
5621,
565,
309,
261,
23822,
480,
15053,
597,
10508,
480,
4754,
13,
1377,
555,
2932,
3825,
2337,
5187,
578,
1239,
11,
2412,
3113,
394,
6577,
12,
23822,
10019,
565,
7158,
5503,
18,
542,
1782,
12,
20,
1769,
565,
309,
14015,
7133,
473,
511,
1285,
67,
13498,
2782,
67,
1423,
13,
480,
374,
13,
1377,
4542,
1423,
273,
629,
31,
565,
1250,
5140,
273,
629,
31,
565,
509,
810,
2624,
1225,
273,
810,
2624,
18,
1467,
5621,
565,
741,
1377,
288,
3639,
1149,
276,
273,
7158,
1994,
782,
5621,
3639,
309,
261,
71,
422,
10508,
597,
810,
2624,
1225,
422,
810,
2624,
18,
1467,
10756,
1850,
898,
31,
3639,
1620,
261,
71,
13,
1850,
288,
1850,
648,
2337,
82,
4278,
1850,
648,
2337,
86,
4278,
5411,
309,
14015,
7133,
473,
261,
15716,
67,
11616,
571,
511,
1285,
67,
17217,
734,
3719,
480,
374,
13,
2868,
276,
273,
296,
12386,
368,
3883,
358,
3476,
5411,
898,
31,
1850,
648,
2337,
88,
4278,
5411,
309,
14015,
7133,
473,
511,
1285,
67,
11616,
13,
480,
374,
13,
2868,
276,
273,
296,
12386,
368,
3883,
358,
3476,
5411,
898,
31,
1850,
648,
5183,
4278,
5411,
2267,
12,
22,
1769,
5411,
276,
273,
855,
782,
5621,
5411,
309,
261,
71,
422,
2946,
6134,
2868,
288,
7734,
309,
14015,
7133,
473,
511,
1285,
67,
13498,
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,
514,
855,
6177,
12,
474,
2943,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1250,
5198,
273,
4542,
1423,
31,
565,
1149,
10508,
273,
855,
782,
5621,
565,
309,
261,
23822,
480,
15053,
597,
10508,
480,
4754,
13,
1377,
555,
2932,
3825,
2337,
5187,
578,
1239,
11,
2412,
3113,
394,
6577,
12,
23822,
10019,
565,
7158,
5503,
18,
542,
1782,
12,
20,
1769,
565,
309,
14015,
7133,
473,
511,
1285,
67,
13498,
2782,
67,
1423,
13,
480,
374,
13,
1377,
4542,
1423,
273,
629,
31,
565,
1250,
5140,
273,
629,
31,
565,
509,
810,
2624,
1225,
273,
810,
2624,
18,
1467,
5621,
565,
741,
1377,
288,
3639,
1149,
276,
273,
7158,
1994,
782,
5621,
3639,
309,
2
] |
mechW.setSize(210, 320);
|
mechW.setSize(210, 340); mechW.setResizable(false);
|
public Client(Frame frame, String playername) { this.frame = frame; this.name = playername; gameListeners = new Vector(); serverName = null; max_players = -1; local_pn = -1; game = new Game(); bv = new BoardView1(game, frame);// bc = new BoardComponent(bv); cb = new ChatterBox(this); mechW = new Dialog(frame, "Mech Display", false); mechW.setSize(210, 320); mechD = new MechDisplay(); mechW.add(mechD); gameSettings = new GameSettings(); changePhase(Game.PHASE_UNKNOWN); // layout setLayout(new BorderLayout()); frame.setTitle(playername + " - MegaMek"); // report frame reportFrame = new Frame("MegaMek Reports"); reportFrame.setSize(400, 600); //reportFrame.setVisible(true); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/2d7f2261ffdd77dbc49aa14c0367b9e3097dc311/Client.java/clean/megamek/src/megamek/client/Client.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2445,
12,
3219,
2623,
16,
514,
7291,
529,
13,
288,
3639,
333,
18,
3789,
273,
2623,
31,
3639,
333,
18,
529,
273,
7291,
529,
31,
3639,
7920,
5583,
273,
394,
5589,
5621,
13491,
10926,
273,
446,
31,
3639,
943,
67,
1601,
414,
273,
300,
21,
31,
3639,
1191,
67,
7449,
273,
300,
21,
31,
13491,
7920,
273,
394,
14121,
5621,
3639,
18021,
273,
394,
17980,
1060,
1767,
21,
12,
13957,
16,
2623,
1769,
759,
3639,
6533,
273,
394,
17980,
1060,
1841,
12,
70,
90,
1769,
3639,
2875,
273,
394,
1680,
9293,
3514,
12,
2211,
1769,
3639,
1791,
343,
59,
273,
394,
17242,
12,
3789,
16,
315,
4667,
343,
9311,
3113,
629,
1769,
3639,
1791,
343,
59,
18,
542,
1225,
12,
22,
2163,
16,
890,
7132,
1769,
1791,
343,
59,
18,
542,
607,
6934,
12,
5743,
1769,
3639,
1791,
343,
40,
273,
394,
7499,
343,
4236,
5621,
3639,
1791,
343,
59,
18,
1289,
12,
3501,
343,
40,
1769,
10792,
7920,
2628,
273,
394,
14121,
2628,
5621,
3639,
2549,
11406,
12,
12496,
18,
8939,
4429,
67,
14737,
1769,
13491,
368,
3511,
3639,
18479,
12,
2704,
30814,
10663,
3639,
2623,
18,
542,
4247,
12,
14872,
529,
397,
315,
300,
490,
11061,
49,
3839,
8863,
7734,
368,
2605,
2623,
3639,
2605,
3219,
273,
394,
8058,
2932,
49,
11061,
49,
3839,
868,
4363,
8863,
3639,
2605,
3219,
18,
542,
1225,
12,
16010,
16,
14707,
1769,
3639,
368,
6006,
3219,
18,
542,
6207,
12,
3767,
1769,
565,
289,
2,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2445,
12,
3219,
2623,
16,
514,
7291,
529,
13,
288,
3639,
333,
18,
3789,
273,
2623,
31,
3639,
333,
18,
529,
273,
7291,
529,
31,
3639,
7920,
5583,
273,
394,
5589,
5621,
13491,
10926,
273,
446,
31,
3639,
943,
67,
1601,
414,
273,
300,
21,
31,
3639,
1191,
67,
7449,
273,
300,
21,
31,
13491,
7920,
273,
394,
14121,
5621,
3639,
18021,
273,
394,
17980,
1060,
1767,
21,
12,
13957,
16,
2623,
1769,
759,
3639,
6533,
273,
394,
17980,
1060,
1841,
12,
70,
90,
1769,
3639,
2875,
273,
394,
1680,
9293,
3514,
12,
2211,
1769,
3639,
1791,
343,
59,
273,
394,
17242,
12,
3789,
16,
315,
4667,
343,
9311,
3113,
629,
1769,
3639,
1791,
343,
59,
18,
2
] |
fillInElementNameCompletionProposals(javaProject, document, path, token, tokenOffset, _offset, completionProposalsList);
|
fillInElementNameCompletionProposals(javaProject, document, path, token, tokenOffset, _offset, completionProposalsSet);
|
public ICompletionProposal[] computeCompletionProposals(ITextViewer _viewer, int _offset) { List completionProposalsList = new LinkedList(); try { IDocument document = _viewer.getDocument(); IEditorInput input = myEditor.getEditorInput(); if (input instanceof IPathEditorInput) { IPathEditorInput pathInput = (IPathEditorInput) input; IPath path = pathInput.getPath(); IResource file = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(path); IJavaProject javaProject = JavaModelManager.getJavaModelManager().getJavaModel().getJavaProject(file); IRegion lineRegion = document.getLineInformationOfOffset(_offset); WODScanner scanner = WODScanner.newWODScanner(); scanner.setRange(document, lineRegion.getOffset(), lineRegion.getLength()); boolean foundToken = false; IRule matchingRule = null; while (!foundToken && (matchingRule = scanner.nextMatchingRule()) != null) { if (_offset == lineRegion.getOffset() && _offset == scanner.getTokenOffset()) { foundToken = true; } else { int tokenEndOffset = scanner.getTokenOffset() + scanner.getTokenLength(); if (_offset > scanner.getTokenOffset()) { if (_offset < tokenEndOffset) { foundToken = true; } else if (_offset == tokenEndOffset) { if (matchingRule instanceof OperatorRule) { foundToken = false; } else { foundToken = true; } } } } } int tokenOffset = scanner.getTokenOffset(); int tokenLength = scanner.getTokenLength(); // If you make a completion request in the middle of whitespace, we // don't want to select the whitespace, so zero out the // whitespace token offsets. if (matchingRule instanceof WhitespaceRule) { int partialOffset = (_offset - tokenOffset); _offset += partialOffset; tokenOffset += partialOffset; tokenLength = 0; } else { _viewer.setSelectedRange(_offset, tokenLength - (_offset - tokenOffset)); } String token = document.get(tokenOffset, tokenLength); String tokenType = null; if (foundToken) { if (matchingRule instanceof ElementNameRule) { tokenType = PreferenceConstants.ELEMENT_NAME; } else if (matchingRule instanceof ElementTypeRule) { tokenType = PreferenceConstants.ELEMENT_TYPE; } else if (matchingRule instanceof AssociationNameRule) { tokenType = PreferenceConstants.ASSOCIATION_NAME; } else if (matchingRule instanceof AssociationValueRule) { tokenType = PreferenceConstants.ASSOCIATION_VALUE; } else if (matchingRule instanceof OperatorRule) { tokenType = null;//PreferenceConstants.OPERATOR; } else { tokenType = null; } } if (tokenType == null) { int startOffset = tokenOffset; if (startOffset != 0 && startOffset == document.getLength()) { startOffset--; } int hintChar = -1; //for (int startOffset = tokenOffset - 1; tokenType == null && startOffset > 0; startOffset--) { for (; tokenType == null && startOffset > 0; startOffset--) { int ch = document.getChar(startOffset); if (ch == ':') { tokenType = PreferenceConstants.ELEMENT_TYPE; } else if (ch == '{' || ch == ';') { tokenType = PreferenceConstants.ASSOCIATION_NAME; } else if (ch == '=') { tokenType = PreferenceConstants.ASSOCIATION_VALUE; } else if (ch == '}') { tokenType = PreferenceConstants.ELEMENT_NAME; } } } if (tokenType == null) { tokenType = PreferenceConstants.ELEMENT_NAME; } if (tokenType == PreferenceConstants.ELEMENT_NAME) { fillInElementNameCompletionProposals(javaProject, document, path, token, tokenOffset, _offset, completionProposalsList); } else if (tokenType == PreferenceConstants.ELEMENT_TYPE) { fillInElementTypeCompletionProposals(javaProject, token, tokenOffset, _offset, completionProposalsList); } else if (tokenType == PreferenceConstants.ASSOCIATION_NAME) { IType componentType = findElementType(javaProject, document, scanner, tokenOffset); fillInAssociationNameCompletionProposals(javaProject, componentType, path, token, tokenOffset, _offset, completionProposalsList); } else if (tokenType == PreferenceConstants.ASSOCIATION_VALUE) { String associatedTypeName = path.removeFileExtension().lastSegment(); IType associatedType = findElementType(javaProject, associatedTypeName, true); fillInAssociationValueCompletionProposals(javaProject, associatedType, token, tokenOffset, _offset, completionProposalsList); } } } catch (JavaModelException e) { e.printStackTrace(); } catch (BadLocationException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (CoreException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } ICompletionProposal[] completionProposals = new ICompletionProposal[completionProposalsList.size()]; completionProposalsList.toArray(completionProposals); return completionProposals; }
|
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/0121c50c657e485c351b986b3b99a5c73cbbb9a3/WODCompletionProcessor.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/editors/WODCompletionProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
467,
11238,
14592,
8526,
3671,
11238,
626,
22536,
12,
1285,
408,
18415,
389,
25256,
16,
509,
389,
3348,
13,
288,
565,
987,
8364,
626,
22536,
682,
273,
394,
10688,
5621,
565,
775,
288,
1377,
1599,
504,
650,
1668,
273,
389,
25256,
18,
588,
2519,
5621,
1377,
467,
6946,
1210,
810,
273,
3399,
6946,
18,
588,
6946,
1210,
5621,
1377,
309,
261,
2630,
1276,
467,
743,
6946,
1210,
13,
288,
3639,
467,
743,
6946,
1210,
589,
1210,
273,
261,
45,
743,
6946,
1210,
13,
810,
31,
3639,
467,
743,
589,
273,
589,
1210,
18,
588,
743,
5621,
3639,
467,
1420,
585,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
7675,
29925,
1290,
2735,
12,
803,
1769,
3639,
467,
5852,
4109,
2252,
4109,
273,
5110,
1488,
1318,
18,
588,
5852,
1488,
1318,
7675,
588,
5852,
1488,
7675,
588,
5852,
4109,
12,
768,
1769,
3639,
467,
5165,
980,
5165,
273,
1668,
18,
588,
1670,
5369,
951,
2335,
24899,
3348,
1769,
3639,
678,
1212,
11338,
7683,
273,
678,
1212,
11338,
18,
2704,
59,
1212,
11338,
5621,
3639,
7683,
18,
542,
2655,
12,
5457,
16,
980,
5165,
18,
588,
2335,
9334,
980,
5165,
18,
588,
1782,
10663,
3639,
1250,
1392,
1345,
273,
629,
31,
3639,
467,
2175,
3607,
2175,
273,
446,
31,
3639,
1323,
16051,
7015,
1345,
597,
261,
16271,
2175,
273,
7683,
18,
4285,
9517,
2175,
10756,
480,
446,
13,
288,
1850,
309,
261,
67,
3348,
422,
980,
5165,
18,
588,
2335,
1435,
597,
389,
3348,
422,
7683,
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,
467,
11238,
14592,
8526,
3671,
11238,
626,
22536,
12,
1285,
408,
18415,
389,
25256,
16,
509,
389,
3348,
13,
288,
565,
987,
8364,
626,
22536,
682,
273,
394,
10688,
5621,
565,
775,
288,
1377,
1599,
504,
650,
1668,
273,
389,
25256,
18,
588,
2519,
5621,
1377,
467,
6946,
1210,
810,
273,
3399,
6946,
18,
588,
6946,
1210,
5621,
1377,
309,
261,
2630,
1276,
467,
743,
6946,
1210,
13,
288,
3639,
467,
743,
6946,
1210,
589,
1210,
273,
261,
45,
743,
6946,
1210,
13,
810,
31,
3639,
467,
743,
589,
273,
589,
1210,
18,
588,
743,
5621,
3639,
467,
1420,
585,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
7675,
29925,
1290,
2735,
12,
803,
1769,
3639,
2
] |
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVA_BUILD_PREFERENCE_PAGE);
|
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.COMPILER_PREFERENCE_PAGE);
|
public void createControl(Composite parent) { IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer) getContainer(); fConfigurationBlock= new JavaBuildConfigurationBlock(getNewStatusChangedListener(), getProject(), container); super.createControl(parent); if (isProjectPreferencePage()) { PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVA_BUILD_PROPERTY_PAGE); } else { PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVA_BUILD_PREFERENCE_PAGE); } }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/bb02bb3b47f6ec71e0734c49791d40e16acc64ea/JavaBuildPreferencePage.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBuildPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
45,
2421,
22144,
9624,
2170,
1478,
33,
261,
45,
2421,
22144,
9624,
2170,
13,
9272,
5621,
202,
202,
74,
1750,
1768,
33,
394,
5110,
3116,
1750,
1768,
12,
588,
1908,
1482,
5033,
2223,
9334,
11080,
9334,
1478,
1769,
9506,
202,
9565,
18,
2640,
3367,
12,
2938,
1769,
202,
202,
430,
261,
291,
4109,
9624,
1964,
10756,
288,
1082,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
588,
3367,
9334,
467,
5852,
6696,
1042,
2673,
18,
27264,
67,
20215,
67,
9900,
67,
11219,
1769,
202,
202,
97,
469,
288,
1082,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
588,
3367,
9334,
467,
5852,
6696,
1042,
2673,
18,
27264,
67,
20215,
67,
3670,
10830,
67,
11219,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
45,
2421,
22144,
9624,
2170,
1478,
33,
261,
45,
2421,
22144,
9624,
2170,
13,
9272,
5621,
202,
202,
74,
1750,
1768,
33,
394,
5110,
3116,
1750,
1768,
12,
588,
1908,
1482,
5033,
2223,
9334,
11080,
9334,
1478,
1769,
9506,
202,
9565,
18,
2640,
3367,
12,
2938,
1769,
202,
202,
430,
261,
291,
4109,
9624,
1964,
10756,
288,
1082,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
588,
3367,
9334,
467,
5852,
6696,
1042,
2673,
18,
27264,
67,
20215,
67,
9900,
67,
11219,
1769,
202,
202,
97,
469,
288,
1082,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
2
] |
case 44: break;
|
case 45: break;
|
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 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 31: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 32: break; case 21: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 33: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 34: 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 35: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 36: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 37: 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 38: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 39: break; case 19: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 40: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 41: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 42: break; case 23: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 43: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 44: 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 45: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 46: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 47: break; case 22: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } 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); 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"); } case 49: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 50: break; case 20: { 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 51: break; case 25: { // 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); 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); } } case 52: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 53: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 54: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 55: 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 56: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s); if(debug) log("Matched @media: "+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); } } } }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/0704f93643187b0aba45fa8c09ca25a3fa9173bb/CSSTokenizerFilter.java/clean/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
] |
public BrowserControlCanvas ()
|
protected BrowserControlCanvas ()
|
public BrowserControlCanvas () { nativeWindow = 0; webShell = null; initializeOK = false; boundsValid = false; hasFocus = false; try { BrowserControlMozillaShim.initialize(); } catch (Exception e) { System.out.println(e.toString()); }} // BrowserControlCanvas() ctor
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/f0c6611e7a4cdaa1d2901781c5866be97ff9bdb2/BrowserControlCanvas.java/clean/java/webclient/classes/org/mozilla/webclient/BrowserControlCanvas.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
15408,
3367,
12971,
1832,
288,
202,
13635,
3829,
273,
374,
31,
202,
4875,
13220,
273,
446,
31,
202,
11160,
3141,
273,
629,
31,
202,
10576,
1556,
273,
629,
31,
202,
5332,
9233,
273,
629,
31,
202,
202,
698,
288,
202,
202,
9132,
3367,
49,
11142,
10745,
1555,
381,
18,
11160,
5621,
202,
97,
1044,
261,
503,
425,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
12,
73,
18,
10492,
10663,
202,
9090,
368,
15408,
3367,
12971,
1435,
15120,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
15408,
3367,
12971,
1832,
288,
202,
13635,
3829,
273,
374,
31,
202,
4875,
13220,
273,
446,
31,
202,
11160,
3141,
273,
629,
31,
202,
10576,
1556,
273,
629,
31,
202,
5332,
9233,
273,
629,
31,
202,
202,
698,
288,
202,
202,
9132,
3367,
49,
11142,
10745,
1555,
381,
18,
11160,
5621,
202,
97,
1044,
261,
503,
425,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
12,
73,
18,
10492,
10663,
202,
9090,
368,
15408,
3367,
12971,
1435,
15120,
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
] |
enhancer.setCallback(this);
|
enhancer.setCallbacks( new Callback[] {NoOp.INSTANCE, this});
|
public Object getProxy() { Enhancer enhancer = new Enhancer(); enhancer.setSuperclass(targetclass);// enhancer.setCallbackFilter(new CallbackFilter() {//// public int accept(Method method) {// return method.getName().equals("get") ? 1// : 0;// }// }); enhancer.setCallback(this); return enhancer.create(); }
|
48218 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48218/0e98ce93b6c4870a579ff23d44eb64d1235038ed/RSACPeaProxyFactory.java/buggy/src/uk/org/ponder/rsac/RSACPeaProxyFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
18992,
1435,
288,
565,
1374,
25842,
2750,
570,
25842,
2750,
273,
394,
1374,
25842,
2750,
5621,
565,
570,
25842,
2750,
18,
542,
28471,
12,
3299,
1106,
1769,
759,
565,
570,
25842,
2750,
18,
542,
2428,
1586,
12,
2704,
8444,
1586,
1435,
288,
1307,
1377,
1071,
509,
2791,
12,
1305,
707,
13,
288,
759,
3639,
327,
707,
18,
17994,
7675,
14963,
2932,
588,
7923,
692,
404,
759,
5411,
294,
374,
31,
759,
1377,
289,
759,
565,
15549,
565,
570,
25842,
2750,
18,
542,
10617,
12,
394,
8444,
8526,
288,
2279,
3817,
18,
13341,
16,
333,
22938,
565,
327,
570,
25842,
2750,
18,
2640,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
1033,
18992,
1435,
288,
565,
1374,
25842,
2750,
570,
25842,
2750,
273,
394,
1374,
25842,
2750,
5621,
565,
570,
25842,
2750,
18,
542,
28471,
12,
3299,
1106,
1769,
759,
565,
570,
25842,
2750,
18,
542,
2428,
1586,
12,
2704,
8444,
1586,
1435,
288,
1307,
1377,
1071,
509,
2791,
12,
1305,
707,
13,
288,
759,
3639,
327,
707,
18,
17994,
7675,
14963,
2932,
588,
7923,
692,
404,
759,
5411,
294,
374,
31,
759,
1377,
289,
759,
565,
15549,
565,
570,
25842,
2750,
18,
542,
10617,
12,
394,
8444,
8526,
288,
2279,
3817,
18,
13341,
16,
333,
22938,
565,
327,
570,
25842,
2750,
18,
2640,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fUndoChange.initializeValidationData(new SubProgressMonitor(monitor, 1));
|
fUndoChange.initializeValidationData(new NotCancelableProgressMonitor( new SubProgressMonitor(monitor, 1)));
|
public void run(IProgressMonitor monitor) throws CoreException { boolean undoInitialized= false; try { monitor.beginTask("", 10); //$NON-NLS-1$ fValidationStatus= fChange.isValid(new SubProgressMonitor(monitor, 1)); if (fValidationStatus.hasFatalError()) return; if (fUndoManager != null) { ResourcesPlugin.getWorkspace().checkpoint(false); fUndoManager.aboutToPerformChange(fChange); } fChangeExecutionFailed= true; fUndoChange= fChange.perform(new SubProgressMonitor(monitor, 9)); fChangeExecutionFailed= false; fChangeExecuted= true; if (fUndoManager != null) { ResourcesPlugin.getWorkspace().checkpoint(false); fUndoManager.changePerformed(fChange); } fChange.dispose(); if (fUndoChange != null) { fUndoChange.initializeValidationData(new SubProgressMonitor(monitor, 1)); undoInitialized= true; } if (fUndoManager != null) { if (fUndoChange != null) { fUndoManager.addUndo(fUndoName, fUndoChange); } else { fUndoManager.flush(); } } } catch (CoreException e) { if (fUndoManager != null) fUndoManager.flush(); if (fUndoChange != null && undoInitialized) { Change ch= fUndoChange; fUndoChange= null; ch.dispose(); } fUndoChange= null; throw e; } catch (RuntimeException e) { if (fUndoManager != null) fUndoManager.flush(); if (fUndoChange != null && undoInitialized) { Change ch= fUndoChange; fUndoChange= null; ch.dispose(); } fUndoChange= null; throw e; } finally { monitor.done(); } }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/d8de20ac35aec10a3bdd551fd7cdbb61a452f4ff/PerformChangeOperation.java/clean/org.eclipse.ltk.core.refactoring/src/org/eclipse/ltk/core/refactoring/PerformChangeOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
6494,
15436,
11459,
33,
629,
31,
9506,
202,
698,
288,
6862,
202,
10259,
18,
10086,
2174,
2932,
3113,
1728,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
74,
4354,
1482,
33,
284,
3043,
18,
26810,
12,
2704,
2592,
5491,
7187,
12,
10259,
16,
404,
10019,
6862,
202,
430,
261,
74,
4354,
1482,
18,
5332,
19593,
668,
10756,
25083,
202,
2463,
31,
6862,
202,
430,
261,
74,
31224,
1318,
480,
446,
13,
288,
25083,
202,
3805,
3773,
18,
588,
8241,
7675,
25414,
12,
5743,
1769,
25083,
202,
74,
31224,
1318,
18,
21071,
774,
4990,
3043,
12,
74,
3043,
1769,
6862,
202,
97,
6862,
202,
74,
3043,
3210,
2925,
33,
638,
31,
6862,
202,
74,
31224,
3043,
33,
284,
3043,
18,
16092,
12,
2704,
2592,
5491,
7187,
12,
10259,
16,
2468,
10019,
6862,
202,
74,
3043,
3210,
2925,
33,
629,
31,
6862,
202,
74,
3043,
23839,
33,
638,
31,
6862,
202,
430,
261,
74,
31224,
1318,
480,
446,
13,
288,
25083,
202,
3805,
3773,
18,
588,
8241,
7675,
25414,
12,
5743,
1769,
25083,
202,
74,
31224,
1318,
18,
3427,
13889,
12,
74,
3043,
1769,
6862,
202,
97,
6862,
202,
74,
3043,
18,
2251,
4150,
5621,
6862,
202,
430,
261,
74,
31224,
3043,
480,
446,
13,
288,
25083,
202,
74,
31224,
3043,
18,
11160,
4354,
751,
12,
2704,
2592,
5491,
7187,
12,
10259,
16,
404,
10019,
25083,
202,
31226,
11459,
33,
638,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
6494,
15436,
11459,
33,
629,
31,
9506,
202,
698,
288,
6862,
202,
10259,
18,
10086,
2174,
2932,
3113,
1728,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
74,
4354,
1482,
33,
284,
3043,
18,
26810,
12,
2704,
2592,
5491,
7187,
12,
10259,
16,
404,
10019,
6862,
202,
430,
261,
74,
4354,
1482,
18,
5332,
19593,
668,
10756,
25083,
202,
2463,
31,
6862,
202,
430,
261,
74,
31224,
1318,
480,
446,
13,
288,
25083,
202,
3805,
3773,
18,
588,
8241,
7675,
25414,
12,
5743,
1769,
25083,
202,
74,
31224,
1318,
18,
21071,
774,
4990,
3043,
12,
74,
3043,
1769,
6862,
202,
97,
2
] |
System.out.println("in DefaultPersistenceDelegate initialize() " + e.getClass() + " :" + e.getMessage());
|
out.getExceptionListener().exceptionThrown(e);
|
protected void initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out) { try { PropertyDescriptor[] pds = Introspector.getBeanInfo(type) .getPropertyDescriptors(); for (int i = 0; i < pds.length; ++i) { PropertyDescriptor pd = pds[i]; if (!isTransient(pd)) { Method getter = pd.getReadMethod(); if (getter != null) { Method setter = pd.getWriteMethod(); if (setter != null) { Object oldValue = getter.invoke(oldInstance, (Object[]) null); Object newValue = getter.invoke(newInstance, (Object[]) null); if (oldValue != null && !oldValue.equals(newValue) || oldValue == null && newValue != null) { String setterName = setter.getName(); Statement s = new Statement(oldInstance, setterName, new Object[] { oldValue }); out.writeStatement(s); } } else { // commented since the process should be // continued even if no setter is found // throw new Exception("no setter for " + // pd.getName() + " property."); continue; } } } } } catch (Exception e) { System.out.println("in DefaultPersistenceDelegate initialize() " + e.getClass() + " :" + e.getMessage()); } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/881aae53b8504e33ada85dbb73c89d44a8eff679/DefaultPersistenceDelegate.java/buggy/modules/beans/src/main/java/java/beans/DefaultPersistenceDelegate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4046,
12,
797,
12880,
34,
618,
16,
1033,
1592,
1442,
16,
5411,
1033,
5984,
16,
13554,
596,
13,
288,
3639,
775,
288,
5411,
26761,
8526,
293,
2377,
273,
3094,
26170,
280,
18,
588,
3381,
966,
12,
723,
13,
10792,
263,
588,
1396,
12705,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
293,
2377,
18,
2469,
31,
965,
77,
13,
288,
7734,
26761,
4863,
273,
293,
2377,
63,
77,
15533,
7734,
309,
16051,
291,
19638,
12,
22353,
3719,
288,
10792,
2985,
7060,
273,
4863,
18,
588,
1994,
1305,
5621,
10792,
309,
261,
11990,
480,
446,
13,
288,
13491,
2985,
7794,
273,
4863,
18,
588,
3067,
1305,
5621,
13491,
309,
261,
18062,
480,
446,
13,
288,
18701,
1033,
11144,
273,
7060,
18,
14407,
12,
1673,
1442,
16,
4766,
565,
261,
921,
63,
5717,
446,
1769,
18701,
1033,
6129,
273,
7060,
18,
14407,
12,
2704,
1442,
16,
4766,
565,
261,
921,
63,
5717,
446,
1769,
18701,
309,
261,
1673,
620,
480,
446,
597,
401,
1673,
620,
18,
14963,
12,
2704,
620,
13,
4766,
565,
747,
11144,
422,
446,
597,
6129,
480,
446,
13,
288,
27573,
514,
7794,
461,
273,
7794,
18,
17994,
5621,
27573,
8056,
272,
273,
394,
8056,
12,
1673,
1442,
16,
4766,
3639,
7794,
461,
16,
394,
1033,
8526,
288,
11144,
15549,
27573,
596,
18,
2626,
3406,
12,
87,
1769,
18701,
289,
13491,
289,
469,
288,
18701,
368,
31813,
3241,
326,
1207,
1410,
506,
18701,
368,
17545,
5957,
5456,
309,
1158,
7794,
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,
4046,
12,
797,
12880,
34,
618,
16,
1033,
1592,
1442,
16,
5411,
1033,
5984,
16,
13554,
596,
13,
288,
3639,
775,
288,
5411,
26761,
8526,
293,
2377,
273,
3094,
26170,
280,
18,
588,
3381,
966,
12,
723,
13,
10792,
263,
588,
1396,
12705,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
293,
2377,
18,
2469,
31,
965,
77,
13,
288,
7734,
26761,
4863,
273,
293,
2377,
63,
77,
15533,
7734,
309,
16051,
291,
19638,
12,
22353,
3719,
288,
10792,
2985,
7060,
273,
4863,
18,
588,
1994,
1305,
5621,
10792,
309,
261,
11990,
480,
446,
13,
288,
13491,
2985,
7794,
273,
4863,
18,
588,
3067,
1305,
5621,
13491,
309,
261,
18062,
480,
446,
13,
2
] |
for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(gfx, visitor, comp);
|
if (applicable) visitChild(gfx, visitor, comp); }
|
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { // FIXME: do locking for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(gfx, visitor, comp); } }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/47b8a95e33f15f8f7f754a990349584fe4134b05/Container.java/clean/libjava/java/awt/Container.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3757,
4212,
12,
17558,
30940,
16,
611,
19595,
7413,
8000,
16,
11794,
1250,
9052,
4865,
3386,
13,
225,
288,
565,
368,
9852,
30,
741,
18887,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
8119,
31,
965,
77,
13,
1377,
288,
3639,
5435,
1161,
273,
1794,
63,
77,
15533,
3639,
1250,
12008,
273,
1161,
18,
291,
6207,
1435,
1850,
597,
261,
2919,
18,
291,
12128,
4865,
1435,
747,
401,
5099,
4865,
3386,
1769,
3639,
309,
261,
438,
10120,
13,
1850,
3757,
1763,
12,
75,
19595,
16,
8000,
16,
1161,
1769,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
3238,
918,
3757,
4212,
12,
17558,
30940,
16,
611,
19595,
7413,
8000,
16,
11794,
1250,
9052,
4865,
3386,
13,
225,
288,
565,
368,
9852,
30,
741,
18887,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
8119,
31,
965,
77,
13,
1377,
288,
3639,
5435,
1161,
273,
1794,
63,
77,
15533,
3639,
1250,
12008,
273,
1161,
18,
291,
6207,
1435,
1850,
597,
261,
2919,
18,
291,
12128,
4865,
1435,
747,
401,
5099,
4865,
3386,
1769,
3639,
309,
261,
438,
10120,
13,
1850,
3757,
1763,
12,
75,
19595,
16,
8000,
16,
1161,
1769,
1377,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Bundle[] bundles = item.getBundles();
|
if (relPath == null || (bitstream = getItemBitstreamByName(item, relPath)) == null) bitstream = getItemBitstreamByName(item, filename);
|
protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { Bitstream bitstream = null; // Get the ID from the URL String idString = request.getPathInfo(); String filename = ""; String handle = ""; if (idString != null) { // Remove leading slash if (idString.startsWith("/")) { idString = idString.substring(1); } // Get filename int slashIndex = idString.lastIndexOf('/'); if (slashIndex != -1) { filename = idString.substring(slashIndex + 1); filename = URLDecoder.decode(filename, Constants.DEFAULT_ENCODING); handle = idString.substring(0, slashIndex); } // If there's still a second slash, remove it and anything after it, // it might be a relative directory name slashIndex = handle.indexOf('/'); slashIndex = handle.indexOf('/', slashIndex + 1); if (slashIndex != -1) { handle = handle.substring(0, slashIndex); } // Find the corresponding bitstream try { boolean found = false; Item item = null; /* * If the original item doesn't have a Handle yet (because it's * in the workflow) what we actually have is a fake Handle in * the form: db-id/1234 where 1234 is the database ID of the * item. */ if (handle.startsWith("db-id")) { String dbIDString = handle .substring(handle.indexOf('/') + 1); int dbID = Integer.parseInt(dbIDString); item = Item.find(context, dbID); } else { item = (Item) HandleManager .resolveToObject(context, handle); } if (item == null) { log.info(LogManager.getHeader(context, "invalid_id", "path=" + handle)); JSPManager .showInvalidIDError(request, response, handle, -1); return; } Bundle[] bundles = item.getBundles(); for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); if (!found) { for (int k = 0; k < bitstreams.length; k++) { if (filename.equals(bitstreams[k].getName())) { bitstream = bitstreams[k]; found = true; } } } } } catch (NumberFormatException nfe) { // Invalid ID - this will be dealt with below } } // Did we get a bitstream? if (bitstream != null) { log.info(LogManager.getHeader(context, "view_bitstream", "bitstream_id=" + bitstream.getID())); // Set the response MIME type response.setContentType(bitstream.getFormat().getMIMEType()); // Response length response.setHeader("Content-Length", String.valueOf(bitstream .getSize())); // Pipe the bits InputStream is = bitstream.retrieve(); Utils.bufferedCopy(is, response.getOutputStream()); is.close(); response.getOutputStream().flush(); } else { // No bitstream - we got an invalid ID log.info(LogManager.getHeader(context, "view_bitstream", "invalid_bitstream_id=" + idString)); JSPManager.showInvalidIDError(request, response, idString, Constants.BITSTREAM); } }
|
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/257dfe454961dd081224cf1e4f1878b5d2cb8cf3/HTMLServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/HTMLServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3948,
967,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
6539,
3256,
28640,
273,
446,
31,
3639,
368,
968,
326,
1599,
628,
326,
1976,
3639,
514,
612,
780,
273,
590,
18,
588,
743,
966,
5621,
3639,
514,
1544,
273,
1408,
31,
3639,
514,
1640,
273,
1408,
31,
3639,
309,
261,
350,
780,
480,
446,
13,
3639,
288,
5411,
368,
3581,
7676,
9026,
5411,
309,
261,
350,
780,
18,
17514,
1190,
2932,
4898,
3719,
5411,
288,
7734,
612,
780,
273,
612,
780,
18,
28023,
12,
21,
1769,
5411,
289,
5411,
368,
968,
1544,
5411,
509,
9026,
1016,
273,
612,
780,
18,
2722,
31985,
2668,
2473,
1769,
5411,
309,
261,
12877,
1016,
480,
300,
21,
13,
5411,
288,
7734,
1544,
273,
612,
780,
18,
28023,
12,
12877,
1016,
397,
404,
1769,
7734,
1544,
273,
1976,
7975,
18,
3922,
12,
3459,
16,
13491,
5245,
18,
5280,
67,
14672,
1769,
7734,
1640,
273,
612,
780,
18,
28023,
12,
20,
16,
9026,
1016,
1769,
5411,
289,
5411,
368,
971,
1915,
1807,
4859,
279,
2205,
9026,
16,
1206,
518,
471,
6967,
1839,
518,
16,
5411,
368,
518,
4825,
506,
279,
3632,
1867,
508,
5411,
9026,
1016,
273,
1640,
18,
31806,
2668,
2473,
1769,
5411,
9026,
1016,
273,
1640,
18,
31806,
2668,
19,
2187,
9026,
1016,
397,
404,
1769,
5411,
309,
261,
12877,
1016,
480,
300,
21,
13,
5411,
288,
7734,
1640,
273,
1640,
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,
741,
3948,
967,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
6539,
3256,
28640,
273,
446,
31,
3639,
368,
968,
326,
1599,
628,
326,
1976,
3639,
514,
612,
780,
273,
590,
18,
588,
743,
966,
5621,
3639,
514,
1544,
273,
1408,
31,
3639,
514,
1640,
273,
1408,
31,
3639,
309,
261,
350,
780,
480,
446,
13,
3639,
288,
5411,
368,
3581,
7676,
9026,
5411,
309,
261,
350,
780,
18,
17514,
1190,
2932,
4898,
3719,
5411,
288,
7734,
612,
780,
273,
612,
780,
18,
28023,
12,
21,
1769,
5411,
289,
5411,
368,
968,
1544,
5411,
509,
9026,
1016,
273,
612,
780,
2
] |
if(updateJob == null) return; removedListeners.add(listener);
|
if(updatesPending()) removedListeners.add(listener);
|
void listenerRemoved(ILabelProviderListener listener) { if(updateJob == null) return; removedListeners.add(listener); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d206262120eb7dcd408223890a1e2ccc6c4b1431/DecorationScheduler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2991,
10026,
12,
45,
2224,
2249,
2223,
2991,
13,
288,
202,
202,
430,
12,
2725,
2278,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
14923,
5583,
18,
1289,
12,
12757,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2991,
10026,
12,
45,
2224,
2249,
2223,
2991,
13,
288,
202,
202,
430,
12,
2725,
2278,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
14923,
5583,
18,
1289,
12,
12757,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getModel().setDelayEvents(false);
|
public void processLowLevelEvent(String name, String[] values) { System.out.println("name = " + name); System.out.println("name = " + name); System.out.println("name = " + name); // is it for me ? /* if ( !name.startsWith(getComponentId()) ) { return; } */ getModel().setDelayEvents(true); for ( int i=0; i<values.length; i++ ) { try { setValue(Integer.parseInt(values[i])); } catch ( NumberFormatException ex ) { // ignore } } getModel().setDelayEvents(false); SForm.addArmedComponent(this); }
|
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/933c8b57d9fb87a4e1c64ec1c696946b9d5351f4/SAbstractAdjustable.java/clean/wings2/src/java/org/wings/SAbstractAdjustable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
10520,
2355,
1133,
12,
780,
508,
16,
514,
8526,
924,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
529,
273,
315,
397,
508,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
529,
273,
315,
397,
508,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
529,
273,
315,
397,
508,
1769,
3639,
368,
353,
518,
364,
1791,
692,
3639,
1748,
3639,
309,
261,
401,
529,
18,
17514,
1190,
12,
588,
1841,
548,
10756,
262,
288,
5411,
327,
31,
3639,
289,
3639,
1195,
3639,
7454,
7675,
542,
6763,
3783,
12,
3767,
1769,
3639,
364,
261,
509,
277,
33,
20,
31,
277,
32,
2372,
18,
2469,
31,
277,
9904,
262,
288,
5411,
775,
288,
7734,
5524,
12,
4522,
18,
2670,
1702,
12,
2372,
63,
77,
5717,
1769,
5411,
289,
1044,
261,
12100,
431,
262,
288,
7734,
368,
2305,
5411,
289,
3639,
289,
9079,
348,
1204,
18,
1289,
686,
2937,
1841,
12,
2211,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1207,
10520,
2355,
1133,
12,
780,
508,
16,
514,
8526,
924,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
529,
273,
315,
397,
508,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
529,
273,
315,
397,
508,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
529,
273,
315,
397,
508,
1769,
3639,
368,
353,
518,
364,
1791,
692,
3639,
1748,
3639,
309,
261,
401,
529,
18,
17514,
1190,
12,
588,
1841,
548,
10756,
262,
288,
5411,
327,
31,
3639,
289,
3639,
1195,
3639,
7454,
7675,
542,
6763,
3783,
12,
3767,
1769,
3639,
364,
261,
509,
277,
33,
20,
31,
277,
32,
2372,
18,
2469,
31,
277,
9904,
262,
288,
5411,
775,
288,
7734,
5524,
12,
2
] |
|
if( len[ t ][ i ] < minLen )
|
} if( len[ t ][ i ] < minLen ) {
|
private void sendMTFValues() throws IOException { char len[][] = new char[ N_GROUPS ][ MAX_ALPHA_SIZE ]; int v; int t; int i; int j; int gs; int ge; int totc; int bt; int bc; int iter; int nSelectors = 0; int alphaSize; int minLen; int maxLen; int selCtr; int nGroups; int nBytes; alphaSize = nInUse + 2; for( t = 0; t < N_GROUPS; t++ ) for( v = 0; v < alphaSize; v++ ) len[ t ][ v ] = (char)GREATER_ICOST; /* * Decide how many coding tables to use */ if( nMTF <= 0 ) panic(); if( nMTF < 200 ) nGroups = 2; else if( nMTF < 600 ) nGroups = 3; else if( nMTF < 1200 ) nGroups = 4; else if( nMTF < 2400 ) nGroups = 5; else nGroups = 6; { /* * Generate an initial set of coding tables */ int nPart; int remF; int tFreq; int aFreq; nPart = nGroups; remF = nMTF; gs = 0; while( nPart > 0 ) { tFreq = remF / nPart; ge = gs - 1; aFreq = 0; while( aFreq < tFreq && ge < alphaSize - 1 ) { ge++; aFreq += mtfFreq[ ge ]; } if( ge > gs && nPart != nGroups && nPart != 1 && ( ( nGroups - nPart ) % 2 == 1 ) ) { aFreq -= mtfFreq[ ge ]; ge--; } for( v = 0; v < alphaSize; v++ ) if( v >= gs && v <= ge ) len[ nPart - 1 ][ v ] = (char)LESSER_ICOST; else len[ nPart - 1 ][ v ] = (char)GREATER_ICOST; nPart--; gs = ge + 1; remF -= aFreq; } } int rfreq[][] = new int[ N_GROUPS ][ MAX_ALPHA_SIZE ]; int fave[] = new int[ N_GROUPS ]; short cost[] = new short[ N_GROUPS ]; /* * Iterate up to N_ITERS times to improve the tables. */ for( iter = 0; iter < N_ITERS; iter++ ) { for( t = 0; t < nGroups; t++ ) fave[ t ] = 0; for( t = 0; t < nGroups; t++ ) for( v = 0; v < alphaSize; v++ ) rfreq[ t ][ v ] = 0; nSelectors = 0; totc = 0; gs = 0; while( true ) { /* * Set group start & end marks. */ if( gs >= nMTF ) break; ge = gs + G_SIZE - 1; if( ge >= nMTF ) ge = nMTF - 1; /* * Calculate the cost of this group as coded * by each of the coding tables. */ for( t = 0; t < nGroups; t++ ) cost[ t ] = 0; if( nGroups == 6 ) { short cost0; short cost1; short cost2; short cost3; short cost4; short cost5; cost0 = cost1 = cost2 = cost3 = cost4 = cost5 = 0; for( i = gs; i <= ge; i++ ) { short icv = szptr[ i ]; cost0 += len[ 0 ][ icv ]; cost1 += len[ 1 ][ icv ]; cost2 += len[ 2 ][ icv ]; cost3 += len[ 3 ][ icv ]; cost4 += len[ 4 ][ icv ]; cost5 += len[ 5 ][ icv ]; } cost[ 0 ] = cost0; cost[ 1 ] = cost1; cost[ 2 ] = cost2; cost[ 3 ] = cost3; cost[ 4 ] = cost4; cost[ 5 ] = cost5; } else { for( i = gs; i <= ge; i++ ) { short icv = szptr[ i ]; for( t = 0; t < nGroups; t++ ) cost[ t ] += len[ t ][ icv ]; } } /* * Find the coding table which is best for this group, * and record its identity in the selector table. */ bc = 999999999; bt = -1; for( t = 0; t < nGroups; t++ ) if( cost[ t ] < bc ) { bc = cost[ t ]; bt = t; } ; totc += bc; fave[ bt ]++; selector[ nSelectors ] = (char)bt; nSelectors++; /* * Increment the symbol frequencies for the selected table. */ for( i = gs; i <= ge; i++ ) rfreq[ bt ][ szptr[ i ] ]++; gs = ge + 1; } /* * Recompute the tables based on the accumulated frequencies. */ for( t = 0; t < nGroups; t++ ) hbMakeCodeLengths( len[ t ], rfreq[ t ], alphaSize, 20 ); } rfreq = null; fave = null; cost = null; if( !( nGroups < 8 ) ) panic(); if( !( nSelectors < 32768 && nSelectors <= ( 2 + ( 900000 / G_SIZE ) ) ) ) panic(); { /* * Compute MTF values for the selectors. */ char pos[] = new char[ N_GROUPS ]; char ll_i; char tmp2; char tmp; for( i = 0; i < nGroups; i++ ) pos[ i ] = (char)i; for( i = 0; i < nSelectors; i++ ) { ll_i = selector[ i ]; j = 0; tmp = pos[ j ]; while( ll_i != tmp ) { j++; tmp2 = tmp; tmp = pos[ j ]; pos[ j ] = tmp2; } pos[ 0 ] = tmp; selectorMtf[ i ] = (char)j; } } int code[][] = new int[ N_GROUPS ][ MAX_ALPHA_SIZE ]; /* * Assign actual codes for the tables. */ for( t = 0; t < nGroups; t++ ) { minLen = 32; maxLen = 0; for( i = 0; i < alphaSize; i++ ) { if( len[ t ][ i ] > maxLen ) maxLen = len[ t ][ i ]; if( len[ t ][ i ] < minLen ) minLen = len[ t ][ i ]; } if( maxLen > 20 ) panic(); if( minLen < 1 ) panic(); hbAssignCodes( code[ t ], len[ t ], minLen, maxLen, alphaSize ); } { /* * Transmit the mapping table. */ boolean inUse16[] = new boolean[ 16 ]; for( i = 0; i < 16; i++ ) { inUse16[ i ] = false; for( j = 0; j < 16; j++ ) if( inUse[ i * 16 + j ] ) inUse16[ i ] = true; } nBytes = bytesOut; for( i = 0; i < 16; i++ ) if( inUse16[ i ] ) bsW( 1, 1 ); else bsW( 1, 0 ); for( i = 0; i < 16; i++ ) if( inUse16[ i ] ) for( j = 0; j < 16; j++ ) if( inUse[ i * 16 + j ] ) bsW( 1, 1 ); else bsW( 1, 0 ); } /* * Now the selectors. */ nBytes = bytesOut; bsW( 3, nGroups ); bsW( 15, nSelectors ); for( i = 0; i < nSelectors; i++ ) { for( j = 0; j < selectorMtf[ i ]; j++ ) bsW( 1, 1 ); bsW( 1, 0 ); } /* * Now the coding tables. */ nBytes = bytesOut; for( t = 0; t < nGroups; t++ ) { int curr = len[ t ][ 0 ]; bsW( 5, curr ); for( i = 0; i < alphaSize; i++ ) { while( curr < len[ t ][ i ] ) { bsW( 2, 2 ); curr++; /* * 10 */ } while( curr > len[ t ][ i ] ) { bsW( 2, 3 ); curr--; /* * 11 */ } bsW( 1, 0 ); } } /* * And finally, the block data proper */ nBytes = bytesOut; selCtr = 0; gs = 0; while( true ) { if( gs >= nMTF ) break; ge = gs + G_SIZE - 1; if( ge >= nMTF ) ge = nMTF - 1; for( i = gs; i <= ge; i++ ) { bsW( len[ selector[ selCtr ] ][ szptr[ i ] ], code[ selector[ selCtr ] ][ szptr[ i ] ] ); } gs = ge + 1; selCtr++; } if( !( selCtr == nSelectors ) ) panic(); }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/b95d90a13da3fb8d362982bc84652f1e03e8325e/CBZip2OutputStream.java/clean/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
6152,
42,
1972,
1435,
3639,
1216,
1860,
565,
288,
3639,
1149,
562,
63,
6362,
65,
273,
394,
1149,
63,
423,
67,
28977,
308,
63,
4552,
67,
26313,
67,
4574,
308,
31,
3639,
509,
331,
31,
3639,
509,
268,
31,
3639,
509,
277,
31,
3639,
509,
525,
31,
3639,
509,
10763,
31,
3639,
509,
8244,
31,
3639,
509,
9997,
71,
31,
3639,
509,
10921,
31,
3639,
509,
6533,
31,
3639,
509,
1400,
31,
3639,
509,
290,
19277,
273,
374,
31,
3639,
509,
4190,
1225,
31,
3639,
509,
1131,
2891,
31,
3639,
509,
29618,
31,
3639,
509,
357,
39,
313,
31,
3639,
509,
290,
3621,
31,
3639,
509,
290,
2160,
31,
3639,
4190,
1225,
273,
290,
15435,
397,
576,
31,
3639,
364,
12,
268,
273,
374,
31,
268,
411,
423,
67,
28977,
31,
268,
9904,
262,
5411,
364,
12,
331,
273,
374,
31,
331,
411,
4190,
1225,
31,
331,
9904,
262,
7734,
562,
63,
268,
308,
63,
331,
308,
273,
261,
3001,
13,
43,
18857,
67,
2871,
4005,
31,
3639,
1748,
540,
380,
3416,
831,
3661,
4906,
14848,
4606,
358,
999,
540,
1195,
3639,
309,
12,
290,
6152,
42,
1648,
374,
262,
5411,
3933,
5621,
3639,
309,
12,
290,
6152,
42,
411,
4044,
262,
5411,
290,
3621,
273,
576,
31,
3639,
469,
309,
12,
290,
6152,
42,
411,
14707,
262,
5411,
290,
3621,
273,
890,
31,
3639,
469,
309,
12,
290,
6152,
42,
411,
2593,
713,
262,
5411,
290,
3621,
273,
1059,
31,
3639,
469,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
6152,
42,
1972,
1435,
3639,
1216,
1860,
565,
288,
3639,
1149,
562,
63,
6362,
65,
273,
394,
1149,
63,
423,
67,
28977,
308,
63,
4552,
67,
26313,
67,
4574,
308,
31,
3639,
509,
331,
31,
3639,
509,
268,
31,
3639,
509,
277,
31,
3639,
509,
525,
31,
3639,
509,
10763,
31,
3639,
509,
8244,
31,
3639,
509,
9997,
71,
31,
3639,
509,
10921,
31,
3639,
509,
6533,
31,
3639,
509,
1400,
31,
3639,
509,
290,
19277,
273,
374,
31,
3639,
509,
4190,
1225,
31,
3639,
509,
1131,
2891,
31,
3639,
509,
29618,
31,
3639,
509,
357,
39,
313,
31,
3639,
509,
290,
3621,
31,
3639,
509,
290,
2160,
31,
3639,
4190,
1225,
273,
290,
15435,
2
] |
registerDeployableModuleFactory(IModuleConstants.JAVA_UTIL_MODULE);
|
registerDeployableModuleFactory(IModuleConstants.JST_UTILITY_MODULE);
|
public void startup() throws CoreException { super.startup(); //Have to do the next line immediately to fix timing problems with factory registration ArchiveInit.init(false); //ModuleMaps are the maps from modules in an ear project to the j2ee projects for the // modules org.eclipse.jst.j2ee.internal.earcreation.modulemap.ModulemapInit.init(false); ensureFactoryRegistration(); ValidatorManager.setResourceUtilClass(ResourceUtil.class); IAdapterManager manager = Platform.getAdapterManager(); manager.registerAdapters(new EarEditAdapterFactory(), ArtifactEditModel.class); registerDeployableModuleFactory(IModuleConstants.JAVA_UTIL_MODULE); }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/7d5427c73390fc82ab68782f3938c7293afaa6ac/J2EEPlugin.java/clean/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/J2EEPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11850,
1435,
1216,
30015,
288,
202,
202,
9565,
18,
23939,
5621,
202,
202,
759,
17944,
358,
741,
326,
1024,
980,
7636,
358,
2917,
15538,
9688,
598,
3272,
7914,
202,
202,
7465,
2570,
18,
2738,
12,
5743,
1769,
202,
202,
759,
3120,
8903,
854,
326,
7565,
628,
4381,
316,
392,
6897,
1984,
358,
326,
525,
22,
1340,
10137,
364,
326,
202,
202,
759,
4381,
202,
202,
3341,
18,
20416,
18,
78,
334,
18,
78,
22,
1340,
18,
7236,
18,
2091,
17169,
18,
2978,
1458,
18,
3120,
1458,
2570,
18,
2738,
12,
5743,
1769,
202,
202,
15735,
1733,
7843,
5621,
202,
202,
5126,
1318,
18,
542,
1420,
1304,
797,
12,
1420,
1304,
18,
1106,
1769,
202,
202,
45,
4216,
1318,
3301,
273,
11810,
18,
588,
4216,
1318,
5621,
202,
202,
4181,
18,
4861,
26620,
12,
2704,
512,
297,
4666,
4216,
1733,
9334,
14022,
4666,
1488,
18,
1106,
1769,
202,
202,
4861,
10015,
429,
3120,
1733,
12,
45,
3120,
2918,
18,
27264,
67,
1693,
2627,
67,
12194,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11850,
1435,
1216,
30015,
288,
202,
202,
9565,
18,
23939,
5621,
202,
202,
759,
17944,
358,
741,
326,
1024,
980,
7636,
358,
2917,
15538,
9688,
598,
3272,
7914,
202,
202,
7465,
2570,
18,
2738,
12,
5743,
1769,
202,
202,
759,
3120,
8903,
854,
326,
7565,
628,
4381,
316,
392,
6897,
1984,
358,
326,
525,
22,
1340,
10137,
364,
326,
202,
202,
759,
4381,
202,
202,
3341,
18,
20416,
18,
78,
334,
18,
78,
22,
1340,
18,
7236,
18,
2091,
17169,
18,
2978,
1458,
18,
3120,
1458,
2570,
18,
2738,
12,
5743,
1769,
202,
202,
15735,
1733,
7843,
5621,
202,
202,
5126,
1318,
18,
542,
1420,
1304,
797,
12,
1420,
1304,
18,
1106,
1769,
202,
202,
2
] |
FileUtils.rename(zipFile, renamedFile);
|
FileUtils.rename( zipFile, renamedFile );
|
private void createArchiveMain() throws ArchiverException, IOException { Map archiveEntries = getFiles(); if ( archiveEntries == null || archiveEntries.size() == 0 ) { new ArchiverException( "You must set at least one file." ); } File zipFile = getDestFile(); if ( zipFile == null ) { new ArchiverException( "You must set the destination " + archiveType + "file." ); } if ( zipFile.exists() && !zipFile.isFile() ) { new ArchiverException( zipFile + " isn't a file." ); } if ( zipFile.exists() && !zipFile.canWrite() ) { new ArchiverException( zipFile + " is read-only." ); } // Renamed version of original file, if it exists File renamedFile = null; // Whether or not an actual update is required - // we don't need to update if the original file doesn't exist addingNewFiles = true; if (doUpdate && !zipFile.exists()) { doUpdate = false; getLogger().debug( "ignoring update attribute as " + archiveType + " doesn't exist." ); } boolean success = false; try { if (doUpdate) { renamedFile = FileUtils.createTempFile("zip", ".tmp", zipFile.getParentFile()); renamedFile.deleteOnExit(); try { FileUtils.rename(zipFile, renamedFile); } catch (SecurityException e) { getLogger().debug( e.toString() ); throw new ArchiverException( "Not allowed to rename old file (" + zipFile.getAbsolutePath() + ") to temporary file", e); } catch (IOException e) { getLogger().debug( e.toString() ); throw new ArchiverException( "Unable to rename old file (" + zipFile.getAbsolutePath() + ") to temporary file", e); } } String action = doUpdate ? "Updating " : "Building "; getLogger().info( action + archiveType + ": " + zipFile.getAbsolutePath() ); ZipOutputStream zOut = null; try { if (!skipWriting) { zOut = new ZipOutputStream(zipFile); zOut.setEncoding(encoding); if (doCompress) { zOut.setMethod(ZipOutputStream.DEFLATED); } else { zOut.setMethod(ZipOutputStream.STORED); } } initZipOutputStream(zOut); // Add the new files to the archive. addResources( getResourcesToAdd( zipFile ), zOut ); if (doUpdate) { addResources( getResourcesToUpdate( zipFile ), zOut ); } finalizeZipOutputStream(zOut); // If we've been successful on an update, delete the // temporary file if (doUpdate) { if (!renamedFile.delete()) { getLogger().warn ("Warning: unable to delete temporary file " + renamedFile.getName()); } } success = true; } finally { // Close the output stream. try { if (zOut != null) { zOut.close(); } } catch (IOException ex) { // If we're in this finally clause because of an // exception, we don't really care if there's an // exception when closing the stream. E.g. if it // throws "ZIP file must have at least one entry", // because an exception happened before we added // any files, then we must swallow this // exception. Otherwise, the error that's reported // will be the close() error, which is not the // real cause of the problem. if (success) { throw ex; } } } } catch (IOException ioe) { String msg = "Problem creating " + archiveType + ": " + ioe.getMessage(); // delete a bogus ZIP file (but only if it's not the original one) if ( ( !doUpdate || renamedFile != null ) && !zipFile.delete() ) { msg += " (and the archive is probably corrupt but I could not " + "delete it)"; } if ( doUpdate && renamedFile != null ) { try { FileUtils.rename( renamedFile, zipFile ); } catch (IOException e) { msg += " (and I couldn't rename the temporary file " + renamedFile.getName() + " back)"; } } throw new ArchiverException(msg, ioe); } finally { cleanUp(); } }
|
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/AbstractZipArchiver.java/buggy/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
7465,
6376,
1435,
377,
202,
15069,
16959,
1667,
503,
16,
1860,
565,
288,
3639,
1635,
5052,
5400,
273,
18262,
5621,
7734,
309,
261,
5052,
5400,
422,
446,
747,
5052,
5400,
18,
1467,
1435,
422,
374,
262,
3639,
288,
5411,
394,
16959,
1667,
503,
12,
315,
6225,
1297,
444,
622,
4520,
1245,
585,
1199,
11272,
3639,
289,
7734,
1387,
19450,
273,
2343,
395,
812,
5621,
7734,
309,
261,
19450,
422,
446,
262,
3639,
288,
5411,
394,
16959,
1667,
503,
12,
315,
6225,
1297,
444,
326,
2929,
315,
397,
5052,
559,
397,
315,
768,
1199,
11272,
3639,
289,
7734,
309,
261,
19450,
18,
1808,
1435,
597,
401,
4450,
812,
18,
291,
812,
1435,
262,
3639,
288,
5411,
394,
16959,
1667,
503,
12,
19450,
397,
315,
5177,
1404,
279,
585,
1199,
11272,
3639,
289,
7734,
309,
261,
19450,
18,
1808,
1435,
597,
401,
4450,
812,
18,
4169,
3067,
1435,
262,
3639,
288,
5411,
394,
16959,
1667,
503,
12,
19450,
397,
315,
353,
855,
17,
3700,
1199,
11272,
3639,
289,
5411,
368,
25921,
2808,
1177,
434,
2282,
585,
16,
309,
518,
1704,
3639,
1387,
17657,
812,
273,
446,
31,
3639,
368,
17403,
578,
486,
392,
3214,
1089,
353,
1931,
300,
3639,
368,
732,
2727,
1404,
1608,
358,
1089,
309,
326,
2282,
585,
3302,
1404,
1005,
3639,
6534,
1908,
2697,
273,
638,
31,
7734,
309,
261,
2896,
1891,
597,
401,
4450,
812,
18,
1808,
10756,
3639,
288,
5411,
741,
1891,
273,
629,
31,
5411,
7156,
7675,
4148,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
7465,
6376,
1435,
377,
202,
15069,
16959,
1667,
503,
16,
1860,
565,
288,
3639,
1635,
5052,
5400,
273,
18262,
5621,
7734,
309,
261,
5052,
5400,
422,
446,
747,
5052,
5400,
18,
1467,
1435,
422,
374,
262,
3639,
288,
5411,
394,
16959,
1667,
503,
12,
315,
6225,
1297,
444,
622,
4520,
1245,
585,
1199,
11272,
3639,
289,
7734,
1387,
19450,
273,
2343,
395,
812,
5621,
7734,
309,
261,
19450,
422,
446,
262,
3639,
288,
5411,
394,
16959,
1667,
503,
12,
315,
6225,
1297,
444,
326,
2929,
315,
397,
5052,
559,
397,
315,
768,
1199,
11272,
3639,
289,
7734,
309,
261,
19450,
18,
1808,
1435,
597,
401,
4450,
812,
18,
291,
812,
1435,
262,
3639,
288,
5411,
2
] |
case M_OP_PLUS:
|
case FixnumDefinition.OP_PLUS:
|
public IRubyObject callIndexed(int index, IRubyObject[] args) { switch (index) { case M_TO_F: return to_f(); case M_TO_S: return to_s(); case M_OP_LSHIFT: return op_lshift(args[0]); case M_OP_RSHIFT: return op_rshift(args[0]); case M_OP_PLUS: return op_plus(args[0]); case M_OP_MINUS: return op_minus(args[0]); case M_OP_MUL: return op_mul(args[0]); case M_OP_DIV: return op_div(args[0]); case M_OP_MOD: return op_mod(args[0]); case M_OP_POW: return op_pow(args[0]); case M_EQUAL: return equal(args[0]); case M_OP_CMP: return op_cmp(args[0]); case M_OP_GT: return op_gt(args[0]); case M_OP_GE: return op_ge(args[0]); case M_OP_LT: return op_lt(args[0]); case M_OP_LE: return op_le(args[0]); case M_OP_AND: return op_and(args[0]); case M_SIZE: return size(); case M_HASH: return hash(); case M_ID2NAME: return id2name(); case M_INVERT: return invert(); case M_ID: return id(); } return super.callIndexed(index, args); }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/5f6bd2ce57ff6ed96fea5760d028882d8af6113c/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.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,
3639,
648,
490,
67,
4296,
67,
42,
30,
5411,
327,
358,
67,
74,
5621,
3639,
648,
490,
67,
4296,
67,
55,
30,
5411,
327,
358,
67,
87,
5621,
3639,
648,
490,
67,
3665,
67,
48,
23191,
30,
5411,
327,
1061,
67,
80,
4012,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
54,
23191,
30,
5411,
327,
1061,
67,
86,
4012,
12,
1968,
63,
20,
19226,
3639,
648,
12139,
2107,
1852,
18,
3665,
67,
6253,
3378,
30,
5411,
327,
1061,
67,
10103,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
6236,
3378,
30,
5411,
327,
1061,
67,
19601,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
49,
1506,
30,
5411,
327,
1061,
67,
16411,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
31901,
30,
5411,
327,
1061,
67,
2892,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
6720,
30,
5411,
327,
1061,
67,
1711,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
2419,
59,
30,
5411,
327,
1061,
67,
23509,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
12853,
30,
5411,
327,
3959,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
39,
4566,
30,
5411,
327,
1061,
67,
9625,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
16506,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
745,
15034,
12,
474,
770,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
1620,
261,
1615,
13,
288,
3639,
648,
490,
67,
4296,
67,
42,
30,
5411,
327,
358,
67,
74,
5621,
3639,
648,
490,
67,
4296,
67,
55,
30,
5411,
327,
358,
67,
87,
5621,
3639,
648,
490,
67,
3665,
67,
48,
23191,
30,
5411,
327,
1061,
67,
80,
4012,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
54,
23191,
30,
5411,
327,
1061,
67,
86,
4012,
12,
1968,
63,
20,
19226,
3639,
648,
12139,
2107,
1852,
18,
3665,
67,
6253,
3378,
30,
5411,
327,
1061,
67,
10103,
12,
1968,
63,
20,
19226,
3639,
648,
490,
67,
3665,
67,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.