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 |
---|---|---|---|---|---|---|
public TA_RetCode WCLPRICE( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int outIdx, 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; outIdx = 0; for( i= startIdx; i <= endIdx; i++ ) { outReal[outIdx++] = ( inHigh [i] + inLow [i] + (inClose[i]*2.0) ) / 4.0; } outNbElement.value = outIdx; outBegIdx.value = startIdx; 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,
59,
5017,
7698,
1441,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
659,
4223,
16,
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,
659,
4223,
33,
20,
31,
1884,
12,
77,
33,
1937,
4223,
31,
77,
32,
33,
409,
4223,
31,
77,
27245,
95,
659,
6955,
63,
659,
4223,
9904,
65,
28657,
267,
8573,
63,
77,
3737,
267,
10520,
63,
77,
3737,
12,
267,
4605,
63,
77,
5772,
22,
18,
20,
3719,
19,
24,
18,
20,
31,
97,
659,
22816,
1046,
18,
1132,
33,
659,
4223,
31,
659,
24059,
4223,
18,
1132,
33,
1937,
4223,
31,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
12778,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
59,
5017,
7698,
1441,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
659,
4223,
16,
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,
659,
4223,
33,
20,
2
] |
||
view.getTableSorter().sort(view.getViewer(), lastMarkers);
|
private void buildAllMarkers( IElementCollector collector, IProgressMonitor monitor) { int markerLimit = view.getMarkerLimit(); monitor.beginTask(MarkerMessages.MarkerView_19, markerLimit == -1 ? 60 : 100); try { monitor.subTask(MarkerMessages.MarkerView_waiting_on_changes); if (monitor.isCanceled()) { return; } monitor .subTask(MarkerMessages.MarkerView_searching_for_markers); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); lastMarkers = MarkerList.compute(view.getEnabledFilters(), subMonitor, true); if (monitor.isCanceled()) return; view.refreshMarkerCounts(monitor); } catch (CoreException e) { IDEWorkbenchPlugin.getDefault().getLog().log(e.getStatus()); lastMarkers = new MarkerList(); return; } if (monitor.isCanceled()) { return; } // Exit immediately if the markers have changed in the meantime. if (markerLimit != -1) { monitor.subTask(MarkerMessages.MarkerView_18); SubProgressMonitor mon = new SubProgressMonitor(monitor, 40); lastMarkers = SortUtil.getFirst(lastMarkers, (TableSorter) view .getViewer().getSorter(), markerLimit, mon); if (monitor.isCanceled()) return; } if(lastMarkers.getSize() == 0){ monitor.done(); return; } monitor.subTask(MarkerMessages.MarkerView_queueing_updates); SubProgressMonitor sub = new SubProgressMonitor(monitor, 50); if (view.isHierarchalMode()) { view.getTableSorter().sort(view.getViewer(), lastMarkers); MarkerCategory[] categories = buildHierarchy(lastMarkers, 0, lastMarkers.getSize() - 1, 0, null); if (categories == null)// Just add the markers collector.add(lastMarkers.toArray(), sub); else collector.add(categories, sub); } else collector.add(lastMarkers.toArray(), sub); if (monitor.isCanceled()) return; monitor.done(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/229c44b72ac5a176a7c4d6328bcc38d5cf41c6c3/MarkerAdapter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1361,
1595,
21644,
12,
1082,
202,
45,
1046,
7134,
8543,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
474,
5373,
3039,
273,
1476,
18,
588,
7078,
3039,
5621,
202,
202,
10259,
18,
10086,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3657,
16,
9506,
202,
11145,
3039,
422,
300,
21,
692,
4752,
294,
2130,
1769,
202,
202,
698,
288,
1082,
202,
10259,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
20241,
67,
265,
67,
6329,
1769,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
10259,
6862,
202,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3072,
310,
67,
1884,
67,
22807,
1769,
1082,
202,
1676,
5491,
7187,
720,
7187,
273,
394,
2592,
5491,
7187,
12,
10259,
16,
6862,
202,
2163,
1769,
1082,
202,
2722,
21644,
273,
14742,
682,
18,
9200,
12,
1945,
18,
588,
1526,
5422,
9334,
6862,
202,
1717,
7187,
16,
638,
1769,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
9506,
202,
2463,
31,
1082,
202,
1945,
18,
9144,
7078,
9211,
12,
10259,
1769,
202,
202,
97,
1044,
261,
25341,
425,
13,
288,
1082,
202,
10385,
2421,
22144,
3773,
18,
588,
1868,
7675,
588,
1343,
7675,
1330,
12,
73,
18,
588,
1482,
10663,
1082,
202,
2722,
21644,
273,
394,
14742,
682,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
1082,
202,
2463,
31,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1361,
1595,
21644,
12,
1082,
202,
45,
1046,
7134,
8543,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
474,
5373,
3039,
273,
1476,
18,
588,
7078,
3039,
5621,
202,
202,
10259,
18,
10086,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3657,
16,
9506,
202,
11145,
3039,
422,
300,
21,
692,
4752,
294,
2130,
1769,
202,
202,
698,
288,
1082,
202,
10259,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
20241,
67,
265,
67,
6329,
1769,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
10259,
6862,
202,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3072,
310,
67,
1884,
2
] |
|
String projectName = "<<unnamed project>>"; Project project = new Project(projectName);
|
String projectName = "<<unnamed project>>"; Project project = new Project(projectName);
|
private void newProjectItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newProjectItemActionPerformed String projectName = "<<unnamed project>>"; Project project = new Project(projectName); setProject(project); }//GEN-LAST:event_newProjectItemActionPerformed
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/a6faccf1f33035b730d9878d13d0da9fa199f1f8/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
394,
4109,
1180,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
2704,
4109,
1180,
19449,
202,
780,
17234,
273,
3532,
32,
318,
13188,
1984,
34,
2984,
31,
202,
4109,
1984,
273,
394,
5420,
12,
4406,
461,
1769,
3639,
25323,
12,
4406,
1769,
565,
289,
759,
16652,
17,
14378,
30,
2575,
67,
2704,
4109,
1180,
19449,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
394,
4109,
1180,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
2704,
4109,
1180,
19449,
202,
780,
17234,
273,
3532,
32,
318,
13188,
1984,
34,
2984,
31,
202,
4109,
1984,
273,
394,
5420,
12,
4406,
461,
1769,
3639,
25323,
12,
4406,
1769,
565,
289,
759,
16652,
17,
14378,
30,
2575,
67,
2704,
4109,
1180,
19449,
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
] |
itsLabelTable[theLabel].addFixup(fixupSite);
|
int top; if (itsFixupTable == null) { top = 0; itsFixupTable = new long[MIN_FIXUP_TABLE_SIZE]; }else { top = itsFixupTableTop; if (top == itsFixupTable.length) { long[] tmp = new long[top * 2]; System.arraycopy(itsFixupTable, 0, tmp, 0, top); itsFixupTable = tmp; } } itsFixupTableTop = top + 1; itsFixupTable[top] = ((long)theLabel << 32) | fixupSite;
|
public void addLabelFixup(int theLabel, int fixupSite) { itsLabelTable[theLabel].addFixup(fixupSite); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/47bb60c12ddad142b4aa20dbf1b7c3f9f05f3612/LabelTable.java/buggy/js/rhino/src/org/mozilla/javascript/LabelTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2224,
8585,
416,
12,
474,
326,
2224,
16,
509,
2917,
416,
4956,
13,
288,
3639,
509,
1760,
31,
309,
261,
1282,
8585,
416,
1388,
422,
446,
13,
288,
1760,
273,
374,
31,
2097,
8585,
416,
1388,
273,
394,
1525,
63,
6236,
67,
4563,
3079,
67,
7775,
67,
4574,
15533,
289,
12107,
288,
1760,
273,
2097,
8585,
416,
1388,
3401,
31,
309,
261,
3669,
422,
2097,
8585,
416,
1388,
18,
2469,
13,
288,
1525,
8526,
1853,
273,
394,
1525,
63,
3669,
380,
576,
15533,
2332,
18,
1126,
3530,
12,
1282,
8585,
416,
1388,
16,
374,
16,
1853,
16,
374,
16,
1760,
1769,
2097,
8585,
416,
1388,
273,
1853,
31,
289,
289,
2097,
8585,
416,
1388,
3401,
273,
1760,
397,
404,
31,
2097,
8585,
416,
1388,
63,
3669,
65,
273,
14015,
5748,
13,
5787,
2224,
2296,
3847,
13,
571,
2917,
416,
4956,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
527,
2224,
8585,
416,
12,
474,
326,
2224,
16,
509,
2917,
416,
4956,
13,
288,
3639,
509,
1760,
31,
309,
261,
1282,
8585,
416,
1388,
422,
446,
13,
288,
1760,
273,
374,
31,
2097,
8585,
416,
1388,
273,
394,
1525,
63,
6236,
67,
4563,
3079,
67,
7775,
67,
4574,
15533,
289,
12107,
288,
1760,
273,
2097,
8585,
416,
1388,
3401,
31,
309,
261,
3669,
422,
2097,
8585,
416,
1388,
18,
2469,
13,
288,
1525,
8526,
1853,
273,
394,
1525,
63,
3669,
380,
576,
15533,
2332,
18,
1126,
3530,
12,
1282,
8585,
416,
1388,
16,
374,
16,
1853,
16,
374,
16,
1760,
1769,
2097,
8585,
416,
1388,
273,
1853,
31,
289,
289,
2097,
8585,
416,
1388,
3401,
2
] |
public RubyClass newSubClass(String name, RubyModule parent) { return new ProcMetaClass(name, this, parent);
|
public RubyClass newSubClass(String name, SinglyLinkedList parentCRef) { return new ProcMetaClass(name, this, parentCRef);
|
public RubyClass newSubClass(String name, RubyModule parent) { return new ProcMetaClass(name, this, parent); }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/a1b8fc1d456e3d5c6e01579b88773383068aa85c/ProcMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/ProcMetaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
797,
394,
1676,
797,
12,
780,
508,
16,
19817,
3120,
982,
13,
288,
202,
202,
2463,
394,
18470,
2781,
797,
12,
529,
16,
333,
16,
982,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
797,
394,
1676,
797,
12,
780,
508,
16,
19817,
3120,
982,
13,
288,
202,
202,
2463,
394,
18470,
2781,
797,
12,
529,
16,
333,
16,
982,
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
] |
public void setFragment (IPerson person, ILayoutFragment fragment ) throws PortalException {
|
public synchronized void setFragment (IPerson person, ILayoutFragment fragment ) throws PortalException {
|
public void setFragment (IPerson person, ILayoutFragment fragment ) throws PortalException { int userId = person.getID(); String fragmentId = fragment.getId(); Connection con = RDBMServices.getConnection(); if ( !(fragment instanceof ALFragment) ) throw new PortalException("The user layout fragment must have "+ALFragment.class.getName()+" type!"); ALFragment layout = (ALFragment) fragment; try { RDBMServices.setAutoCommit(con, false); // May speed things up, can't hurt Statement stmt = con.createStatement(); boolean isOwner = false; boolean isNewFragment = false; // Check if the user was an owner ResultSet rs = stmt.executeQuery("SELECT OWNER_ID FROM UP_OWNER_FRAGMENT WHERE FRAGMENT_ID="+fragmentId); if ( rs.next() ) { if ( rs.getInt(1) == userId ) isOwner = true; } else isNewFragment = true; if ( rs != null ) rs.close(); if ( !isOwner && !isNewFragment ) throw new PortalException("The user "+userId+" is not an owner of the fragment with ID="+fragmentId); ALFolder rootNode = layout.getLayoutFolder(layout.getRootId()); String fragmentRootId = rootNode.getFirstChildNodeId(); // Check if the fragment is new if ( isNewFragment ) { String sqlInsert = "INSERT INTO UP_OWNER_FRAGMENT (FRAGMENT_ID,FRAGMENT_ROOT_ID,OWNER_ID,FRAGMENT_NAME,FRAGMENT_DESCRIPTION,PUSHED_FRAGMENT) "+ "VALUES (?,?,?,?,?,?)"; PreparedStatement ps = con.prepareStatement(sqlInsert); ps.setInt(1,CommonUtils.parseInt(fragmentId)); if ( fragmentRootId != null ) ps.setInt(2,CommonUtils.parseInt(fragmentRootId)); else ps.setNull(2,Types.INTEGER); ps.setInt(3,userId); ps.setString(4,layout.getName()); ps.setString(5,layout.getDescription()); ps.setString(6,(layout.isPushedFragment())?"Y":"N"); ps.executeUpdate(); ps.close(); } else { String sqlUpdate = "UPDATE UP_OWNER_FRAGMENT SET FRAGMENT_NAME=?,FRAGMENT_DESCRIPTION=?,PUSHED_FRAGMENT=?,FRAGMENT_ROOT_ID=? WHERE OWNER_ID=? AND FRAGMENT_ID=?"; PreparedStatement ps = con.prepareStatement(sqlUpdate); ps.setString(1,layout.getName()); ps.setString(2,layout.getDescription()); ps.setString(3,(layout.isPushedFragment())?"Y":"N"); if ( fragmentRootId != null ) ps.setInt(4,CommonUtils.parseInt(fragmentRootId)); else ps.setNull(4,Types.INTEGER); ps.setInt(5,userId); ps.setInt(6,CommonUtils.parseInt(fragmentId)); ps.executeUpdate(); ps.close(); } // Clear the previous data related to the user layout stmt.executeUpdate("DELETE FROM UP_FRAGMENTS WHERE FRAGMENT_ID="+fragmentId); // Deleting restrictions for fragment nodes stmt.executeUpdate("DELETE FROM UP_FRAGMENT_RESTRICTIONS WHERE FRAGMENT_ID="+fragmentId); // Add prepared statements PreparedStatement psAddFragmentNode = con.prepareStatement(FRAGMENT_ADD_SQL); PreparedStatement psAddFragmentRestriction = con.prepareStatement(FRAGMENT_RESTRICTION_ADD_SQL); // The loop for all the nodes from the layout for ( Enumeration nodeIds = layout.getNodeIds(); nodeIds.hasMoreElements() ;) { String strNodeId = nodeIds.nextElement().toString(); if ( !strNodeId.equals(IALFolderDescription.ROOT_FOLDER_ID) && !strNodeId.equals(IALFolderDescription.LOST_FOLDER_ID) ) { ALNode node = layout.getNode(strNodeId); int nodeId = CommonUtils.parseInt(node.getId()); // Setting the fragment ID node.getNodeDescription().setFragmentId(fragmentId); int fragmentNodeId = CommonUtils.parseInt(node.getFragmentNodeId()); if ( CommonUtils.parseInt(node.getFragmentId()) > 0 && fragmentNodeId <= 0 ) addUserLayoutNode(userId,0,node,psAddFragmentNode,psAddFragmentRestriction,null,null,stmt); } // End if } // End for if ( stmt != null ) stmt.close(); // Commit all the changes RDBMServices.commit(con); if ( psAddFragmentNode != null ) psAddFragmentNode.close(); if ( psAddFragmentRestriction != null ) psAddFragmentRestriction.close(); // Close the connection if ( con != null ) con.close(); } catch (Exception e) { e.printStackTrace(); String errorMessage = e.getMessage(); try { RDBMServices.rollback(con); } catch ( SQLException sqle ) { LogService.log(LogService.ERROR, sqle.toString() ); errorMessage += ":" + sqle.getMessage(); } throw new PortalException(errorMessage); } }
|
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/f0b0eddc8d70b9d0a9ae4d6b5406eb8db2af4470/AggregatedUserLayoutStore.java/buggy/source/org/jasig/portal/layout/AggregatedUserLayoutStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
3852,
918,
444,
7456,
261,
2579,
3565,
6175,
16,
467,
3744,
7456,
5481,
262,
1216,
25478,
503,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
565,
514,
5481,
548,
273,
5481,
18,
26321,
5621,
565,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
377,
309,
261,
401,
12,
11956,
1276,
7981,
7456,
13,
262,
4202,
604,
394,
25478,
503,
2932,
1986,
729,
3511,
5481,
1297,
1240,
13773,
1013,
7456,
18,
1106,
18,
17994,
1435,
9078,
618,
4442,
1769,
565,
7981,
7456,
3511,
273,
261,
1013,
7456,
13,
5481,
31,
282,
775,
288,
4202,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
629,
1769,
4202,
368,
16734,
8632,
9198,
731,
16,
848,
1404,
366,
295,
88,
4202,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
202,
377,
1250,
353,
5541,
273,
629,
31,
202,
377,
1250,
10783,
7456,
273,
629,
31,
1082,
368,
2073,
309,
326,
729,
1703,
392,
3410,
1082,
10842,
3597,
273,
3480,
18,
8837,
1138,
2932,
4803,
531,
22527,
67,
734,
4571,
7376,
67,
29602,
67,
9981,
26903,
4852,
14583,
26903,
67,
734,
1546,
15,
11956,
548,
1769,
1082,
309,
261,
3597,
18,
4285,
1435,
262,
288,
1082,
225,
309,
261,
3597,
18,
588,
1702,
12,
21,
13,
422,
6249,
262,
1082,
565,
353,
5541,
273,
638,
31,
1082,
289,
469,
1082,
565,
10783,
7456,
273,
638,
31,
1082,
309,
261,
3597,
480,
446,
262,
3597,
18,
4412,
5621,
1082,
309,
261,
401,
291,
5541,
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,
3852,
918,
444,
7456,
261,
2579,
3565,
6175,
16,
467,
3744,
7456,
5481,
262,
1216,
25478,
503,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
565,
514,
5481,
548,
273,
5481,
18,
26321,
5621,
565,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
377,
309,
261,
401,
12,
11956,
1276,
7981,
7456,
13,
262,
4202,
604,
394,
25478,
503,
2932,
1986,
729,
3511,
5481,
1297,
1240,
13773,
1013,
7456,
18,
1106,
18,
17994,
1435,
9078,
618,
4442,
1769,
565,
7981,
7456,
3511,
273,
261,
1013,
7456,
13,
5481,
31,
282,
775,
288,
4202,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
629,
1769,
4202,
368,
16734,
8632,
9198,
731,
2
] |
public static Font getFont(Context c, Node e) { //u.p("testing node: " + e); //Font f = c.getGraphics().getFont(); // if plain text then get the styling from the parent node if(e.getNodeType() == e.TEXT_NODE) { //u.p("it's a node"); Element el = (Element)e.getParentNode(); return getElementFont(c,el); } if(e.getNodeType() == e.ELEMENT_NODE) { Element el = (Element)e; return getElementFont(c,el); } u.p("big error in getFont(). Got a node that is neither txt nor element"); return null;}
|
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/26f5d912c90d7e3336b7d1b0aa076c1e30cf293e/FontUtil.java/buggy/src/java/org/joshy/html/util/FontUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
5711,
588,
5711,
12,
1042,
71,
16,
907,
73,
15329,
759,
89,
18,
84,
2932,
3813,
310,
2159,
2773,
15,
73,
1769,
759,
5711,
74,
33,
71,
18,
588,
17558,
7675,
588,
5711,
5621,
759,
430,
412,
10133,
15991,
588,
29201,
93,
2456,
2080,
451,
881,
817,
2159,
430,
12,
73,
18,
588,
15101,
1435,
631,
73,
18,
5151,
67,
8744,
15329,
759,
89,
18,
84,
2932,
305,
1807,
14085,
8863,
1046,
292,
28657,
1046,
13,
73,
18,
588,
3054,
907,
5621,
2463,
21336,
5711,
12,
71,
16,
292,
1769,
97,
430,
12,
73,
18,
588,
15101,
1435,
631,
73,
18,
10976,
67,
8744,
15329,
1046,
292,
28657,
1046,
13,
73,
31,
2463,
21336,
5711,
12,
71,
16,
292,
1769,
97,
89,
18,
84,
2932,
14002,
1636,
310,
278,
5711,
7675,
15617,
304,
369,
546,
270,
291,
4644,
2927,
978,
5088,
479,
806,
8863,
2463,
2011,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
5711,
588,
5711,
12,
1042,
71,
16,
907,
73,
15329,
759,
89,
18,
84,
2932,
3813,
310,
2159,
2773,
15,
73,
1769,
759,
5711,
74,
33,
71,
18,
588,
17558,
7675,
588,
5711,
5621,
759,
430,
412,
10133,
15991,
588,
29201,
93,
2456,
2080,
451,
881,
817,
2159,
430,
12,
73,
18,
588,
15101,
1435,
631,
73,
18,
5151,
67,
8744,
15329,
759,
89,
18,
84,
2932,
305,
1807,
14085,
8863,
1046,
292,
28657,
1046,
13,
73,
18,
588,
3054,
907,
5621,
2463,
21336,
5711,
12,
71,
16,
292,
1769,
97,
430,
12,
73,
18,
588,
15101,
1435,
631,
73,
18,
10976,
67,
8744,
15329,
1046,
292,
28657,
1046,
13,
73,
31,
2463,
21336,
5711,
12,
71,
2
] |
||
pn.setListenOnly(Fields.stringToBool(isListenOnlyString, true));
|
pn.setListenOnly(Fields.stringToBool(isListenOnlyString, false));
|
public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { String nodeIdentifier = fs.get("NodeIdentifier"); PeerNode pn = node.getPeerNode(nodeIdentifier); if(pn == null) { ProtocolErrorMessage msg = new ProtocolErrorMessage(ProtocolErrorMessage.NO_SUCH_NODE_IDENTIFIER, false, null, nodeIdentifier); handler.outputHandler.queue(msg); return; } String isDisabledString = fs.get("IsDisabled"); if(isDisabledString != null) { if(!isDisabledString.equals("")) { if(Fields.stringToBool(isDisabledString, false)) { pn.disablePeer(); } else { pn.enablePeer(); } } else { ProtocolErrorMessage msg = new ProtocolErrorMessage(ProtocolErrorMessage.MESSAGE_PARSE_ERROR, false, "IsDisabled had no value", nodeIdentifier); handler.outputHandler.queue(msg); return; } } String isListenOnlyString = fs.get("IsListenOnly"); if(isListenOnlyString != null) { if(!isListenOnlyString.equals("")) { pn.setListenOnly(Fields.stringToBool(isListenOnlyString, true)); } else { ProtocolErrorMessage msg = new ProtocolErrorMessage(ProtocolErrorMessage.MESSAGE_PARSE_ERROR, false, "IsListenOnly had no value", nodeIdentifier); handler.outputHandler.queue(msg); return; } } handler.outputHandler.queue(new Peer(pn, true, true)); }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/1122b87f9086af3408bb30fab201bf680e659cd9/ModifyPeer.java/buggy/src/freenet/node/fcp/ModifyPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
756,
3004,
273,
2662,
18,
588,
2932,
907,
3004,
8863,
202,
202,
6813,
907,
11059,
273,
756,
18,
588,
6813,
907,
12,
2159,
3004,
1769,
202,
202,
430,
12,
7449,
422,
446,
13,
288,
1082,
202,
5752,
14935,
1234,
273,
394,
4547,
14935,
12,
5752,
14935,
18,
3417,
67,
19958,
67,
8744,
67,
16606,
16,
629,
16,
446,
16,
756,
3004,
1769,
1082,
202,
4176,
18,
2844,
1503,
18,
4000,
12,
3576,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
780,
24517,
780,
273,
2662,
18,
588,
2932,
2520,
8853,
8863,
202,
202,
430,
12,
291,
8853,
780,
480,
446,
13,
288,
1082,
202,
430,
12,
5,
291,
8853,
780,
18,
14963,
2932,
6,
3719,
288,
9506,
202,
430,
12,
2314,
18,
1080,
774,
7464,
12,
291,
8853,
780,
16,
629,
3719,
288,
6862,
202,
7449,
18,
8394,
6813,
5621,
9506,
202,
97,
469,
288,
6862,
202,
7449,
18,
7589,
6813,
5621,
9506,
202,
97,
1082,
202,
97,
469,
288,
9506,
202,
5752,
14935,
1234,
273,
394,
4547,
14935,
12,
5752,
14935,
18,
8723,
67,
21045,
67,
3589,
16,
629,
16,
315,
2520,
8853,
9323,
1158,
460,
3113,
756,
3004,
1769,
9506,
202,
4176,
18,
2844,
1503,
18,
4000,
12,
3576,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
780,
353,
14750,
3386,
780,
273,
2662,
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,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
756,
3004,
273,
2662,
18,
588,
2932,
907,
3004,
8863,
202,
202,
6813,
907,
11059,
273,
756,
18,
588,
6813,
907,
12,
2159,
3004,
1769,
202,
202,
430,
12,
7449,
422,
446,
13,
288,
1082,
202,
5752,
14935,
1234,
273,
394,
4547,
14935,
12,
5752,
14935,
18,
3417,
67,
19958,
67,
8744,
67,
16606,
16,
629,
16,
446,
16,
756,
3004,
1769,
1082,
202,
4176,
18,
2844,
1503,
18,
4000,
12,
3576,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
780,
24517,
780,
273,
2662,
18,
588,
2932,
2520,
8853,
8863,
202,
202,
430,
2
] |
public static TimeZone getTimeZone (String ID)
|
public static synchronized TimeZone getTimeZone (String ID)
|
public static TimeZone getTimeZone (String ID) { return zoneGMT; // FIXME }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/3fef621bf06c5e2b2ea276cc51f8f39280458cfd/TimeZone.java/buggy/libjava/java/util/TimeZone.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
16491,
28556,
261,
780,
1599,
13,
225,
288,
565,
327,
4157,
25315,
31,
225,
368,
9852,
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,
760,
3852,
16491,
28556,
261,
780,
1599,
13,
225,
288,
565,
327,
4157,
25315,
31,
225,
368,
9852,
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
] |
String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 2))); break; } case 330: {
|
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= Commentsopt PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { Object comment = btParser.getSym(1); PackageNode a = (PackageNode) btParser.getSym(2); List b = (List) btParser.getSym(3), c = (List) btParser.getSym(4); Node n = nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c); if (comment != null) { n.setComment(comment.toString()); } btParser.setSym1(n); break; } // // Rule 45: Comments ::= Comment // case 45: { Object comment = comment(btParser.getToken(1)); btParser.setSym1(comment); break; } // // Rule 46: Comments ::= Comments Comment // case 46: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 47: ImportDeclarations ::= ImportDeclaration // case 47: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 48: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: TypeDeclarations ::= Commentsopt TypeDeclaration // case 49: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(2); if (a != null) l.add(a); if (comment != null) { a.setComment(comment.toString()); } btParser.setSym1(l); break; } // // Rule 50: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 50: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 51: PackageDeclaration ::= package PackageName SEMICOLON // case 51: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 52: ImportDeclaration ::= SingleTypeImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 53: break; // // Rule 54: ImportDeclaration ::= SingleStaticImportDeclaration // case 54: break; // // Rule 55: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 55: break; // // Rule 56: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 56: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 57: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 57: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 58: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 58: bad_rule = 58; break; // // Rule 59: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 59: bad_rule = 59; break; // // Rule 60: TypeDeclaration ::= ClassDeclaration // case 60: break; // // Rule 61: TypeDeclaration ::= InterfaceDeclaration // case 61: break; // // Rule 62: TypeDeclaration ::= SEMICOLON // case 62: { btParser.setSym1(null); break; } // // Rule 63: ClassDeclaration ::= NormalClassDeclaration // case 63: break; // // Rule 64: NormalClassDeclaration ::= Commentsopt ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 64: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(5); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); Node n = a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e); if (comment != null) n.setComment(comment.toString()); btParser.setSym1(n); break; } // // Rule 65: ClassModifiers ::= ClassModifier // case 65: break; // // Rule 66: ClassModifiers ::= ClassModifiers ClassModifier // case 66: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 67: ClassModifier ::= public // case 67: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 68: ClassModifier ::= protected // case 68: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 69: ClassModifier ::= private // case 69: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 70: ClassModifier ::= abstract // case 70: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 71: ClassModifier ::= static // case 71: { btParser.setSym1(Flags.STATIC); break; } // // Rule 72: ClassModifier ::= final // case 72: { btParser.setSym1(Flags.FINAL); break; } // // Rule 73: ClassModifier ::= strictfp // case 73: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 74: TypeParameters ::= LESS TypeParameterList GREATER // case 74: bad_rule = 74; break; // // Rule 75: TypeParameterList ::= TypeParameter // case 75: bad_rule = 75; break; // // Rule 76: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 76: bad_rule = 76; break; // // Rule 77: Super ::= extends ClassType // case 77: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 78: Interfaces ::= implements InterfaceTypeList // case 78: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 79: InterfaceTypeList ::= InterfaceType // case 79: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 80: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 80: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 81: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 81: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 82: ClassBodyDeclarations ::= ClassBodyDeclaration // case 82: break; // // Rule 83: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 83: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 84: ClassBodyDeclaration ::= ClassMemberDeclaration // case 84: break; // // Rule 85: ClassBodyDeclaration ::= InstanceInitializer // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 86: ClassBodyDeclaration ::= StaticInitializer // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 87: ClassBodyDeclaration ::= ConstructorDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= FieldDeclaration // case 88: break; // // Rule 89: ClassMemberDeclaration ::= MethodDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= ClassDeclaration // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 91: ClassMemberDeclaration ::= InterfaceDeclaration // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: ClassMemberDeclaration ::= SEMICOLON // case 92: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 93: FieldDeclaration ::= Commentsopt FieldModifiersopt Type VariableDeclarators SEMICOLON // case 93: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(2); TypeNode b = (TypeNode) btParser.getSym(3); List c = (List) btParser.getSym(4); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } if (comment != null) ((Node) l.get(0)).setComment(comment.toString()); btParser.setSym1(l); break; } // // Rule 94: VariableDeclarators ::= VariableDeclarator // case 94: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 95: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 95: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 96: VariableDeclarator ::= VariableDeclaratorId // case 96: break; // // Rule 97: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 98: VariableDeclaratorId ::= identifier // case 98: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 99: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 99: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 100: VariableInitializer ::= Expression // case 100: break; // // Rule 101: VariableInitializer ::= ArrayInitializer // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifier // case 102: break; // // Rule 103: FieldModifiers ::= FieldModifiers FieldModifier // case 103: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 104: FieldModifier ::= public // case 104: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 105: FieldModifier ::= protected // case 105: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 106: FieldModifier ::= private // case 106: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 107: FieldModifier ::= static // case 107: { btParser.setSym1(Flags.STATIC); break; } // // Rule 108: FieldModifier ::= final // case 108: { btParser.setSym1(Flags.FINAL); break; } // // Rule 109: FieldModifier ::= transient // case 109: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 110: FieldModifier ::= volatile // case 110: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 111: MethodDeclaration ::= Commentsopt MethodHeader MethodBody // case 111: { Object comment = btParser.getSym(1); MethodDecl a = (MethodDecl) btParser.getSym(2); Block b = (Block) btParser.getSym(3); if (comment != null) a.setComment(comment.toString()); btParser.setSym1(a.body(b)); break; } // // Rule 112: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 112: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 113: ResultType ::= Type // case 113: break; // // Rule 114: ResultType ::= void // case 114: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 115: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 115: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 116: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 116: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 117: FormalParameterList ::= LastFormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameter // case 119: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 120: FormalParameters ::= FormalParameters COMMA FormalParameter // case 120: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 121: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 121: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 123: VariableModifiers ::= VariableModifiers VariableModifier // case 123: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 124: VariableModifier ::= final // case 124: { btParser.setSym1(Flags.FINAL); break; } // // Rule 125: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 125: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 126: MethodModifiers ::= MethodModifier // case 126: break; // // Rule 127: MethodModifiers ::= MethodModifiers MethodModifier // case 127: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 128: MethodModifier ::= public // case 128: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 129: MethodModifier ::= protected // case 129: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 130: MethodModifier ::= private // case 130: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 131: MethodModifier ::= abstract // case 131: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 132: MethodModifier ::= static // case 132: { btParser.setSym1(Flags.STATIC); break; } // // Rule 133: MethodModifier ::= final // case 133: { btParser.setSym1(Flags.FINAL); break; } // // Rule 134: MethodModifier ::= synchronized // case 134: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 135: MethodModifier ::= native // case 135: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 136: MethodModifier ::= strictfp // case 136: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 137: Throws ::= throws ExceptionTypeList // case 137: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 138: ExceptionTypeList ::= ExceptionType // case 138: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 139: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 139: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 140: ExceptionType ::= ClassType // case 140: break; // // Rule 141: ExceptionType ::= TypeVariable // case 141: break; // // Rule 142: MethodBody ::= Block // case 142: break; // // Rule 143: MethodBody ::= SEMICOLON // case 143: btParser.setSym1(null); break; // // Rule 144: InstanceInitializer ::= Block // case 144: break; // // Rule 145: StaticInitializer ::= static Block // case 145: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 146: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 146: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 147: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 147: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 148: SimpleTypeName ::= identifier // case 148: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 149: ConstructorModifiers ::= ConstructorModifier // case 149: break; // // Rule 150: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 150: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 151: ConstructorModifier ::= public // case 151: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 152: ConstructorModifier ::= protected // case 152: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 153: ConstructorModifier ::= private // case 153: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 154: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 154: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 155: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 157: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 157: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 158: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 158: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 159: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 159: bad_rule = 159; break; // // Rule 160: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 160: bad_rule = 160; break; // // Rule 161: EnumConstants ::= EnumConstant // case 161: bad_rule = 161; break; // // Rule 162: EnumConstants ::= EnumConstants COMMA EnumConstant // case 162: bad_rule = 162; break; // // Rule 163: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 163: bad_rule = 163; break; // // Rule 164: Arguments ::= LPAREN ArgumentListopt RPAREN // case 164: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 165: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 165: bad_rule = 165; break; // // Rule 166: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 166: break; // // Rule 167: NormalInterfaceDeclaration ::= Commentsopt InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 167: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(5); ClassBody d = (ClassBody) btParser.getSym(6); Node n = nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d); if (comment != null) n.setComment( comment.toString() ); btParser.setSym1(n); break; } // // Rule 168: InterfaceModifiers ::= InterfaceModifier // case 168: break; // // Rule 169: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 169: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 170: InterfaceModifier ::= public // case 170: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 171: InterfaceModifier ::= protected // case 171: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 172: InterfaceModifier ::= private // case 172: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 173: InterfaceModifier ::= abstract // case 173: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 174: InterfaceModifier ::= static // case 174: { btParser.setSym1(Flags.STATIC); break; } // // Rule 175: InterfaceModifier ::= strictfp // case 175: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 176: ExtendsInterfaces ::= extends InterfaceType // case 176: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 177: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 177: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 178: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 178: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 179: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 180: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ConstantDeclaration // case 181: break; // // Rule 182: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ClassDeclaration // case 183: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 184: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 185: InterfaceMemberDeclaration ::= SEMICOLON // case 185: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 186: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 186: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 187: ConstantModifiers ::= ConstantModifier // case 187: break; // // Rule 188: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 188: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 189: ConstantModifier ::= public // case 189: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 190: ConstantModifier ::= static // case 190: { btParser.setSym1(Flags.STATIC); break; } // // Rule 191: ConstantModifier ::= final // case 191: { btParser.setSym1(Flags.FINAL); break; } // // Rule 192: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 192: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 193: AbstractMethodModifiers ::= AbstractMethodModifier // case 193: break; // // Rule 194: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 194: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 195: AbstractMethodModifier ::= public // case 195: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 196: AbstractMethodModifier ::= abstract // case 196: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 197: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 205: bad_rule = 205; break; // // Rule 206: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 206: bad_rule = 206; break; // // Rule 207: AnnotationTypeElementDeclaration ::= SEMICOLON // case 207: bad_rule = 207; break; // // Rule 208: DefaultValue ::= default ElementValue // case 208: bad_rule = 208; break; // // Rule 209: Annotations ::= Annotation // case 209: bad_rule = 209; break; // // Rule 210: Annotations ::= Annotations Annotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= NormalAnnotation // case 211: bad_rule = 211; break; // // Rule 212: Annotation ::= MarkerAnnotation // case 212: bad_rule = 212; break; // // Rule 213: Annotation ::= SingleElementAnnotation // case 213: bad_rule = 213; break; // // Rule 214: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePairs ::= ElementValuePair // case 215: bad_rule = 215; break; // // Rule 216: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 216: bad_rule = 216; break; // // Rule 217: ElementValuePair ::= SimpleName EQUAL ElementValue // case 217: bad_rule = 217; break; // // Rule 218: SimpleName ::= identifier // case 218: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 219: ElementValue ::= ConditionalExpression // case 219: bad_rule = 219; break; // // Rule 220: ElementValue ::= Annotation // case 220: bad_rule = 220; break; // // Rule 221: ElementValue ::= ElementValueArrayInitializer // case 221: bad_rule = 221; break; // // Rule 222: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 222: bad_rule = 222; break; // // Rule 223: ElementValues ::= ElementValue // case 223: bad_rule = 223; break; // // Rule 224: ElementValues ::= ElementValues COMMA ElementValue // case 224: bad_rule = 224; break; // // Rule 225: MarkerAnnotation ::= AT TypeName // case 225: bad_rule = 225; break; // // Rule 226: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 226: bad_rule = 226; break; // // Rule 227: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 227: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 228: VariableInitializers ::= VariableInitializer // case 228: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 229: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 229: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 230: Block ::= LBRACE BlockStatementsopt RBRACE // case 230: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 231: BlockStatements ::= BlockStatement // case 231: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 232: BlockStatements ::= BlockStatements BlockStatement // case 232: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= LocalVariableDeclarationStatement // case 233: break; // // Rule 234: BlockStatement ::= ClassDeclaration // case 234: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 235: BlockStatement ::= Statement // case 235: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 236: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 236: break; // // Rule 237: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 237: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 238: Statement ::= StatementWithoutTrailingSubstatement // case 238: break; // // Rule 239: Statement ::= LabeledStatement // case 239: break; // // Rule 240: Statement ::= IfThenStatement // case 240: break; // // Rule 241: Statement ::= IfThenElseStatement // case 241: break; // // Rule 242: Statement ::= WhileStatement // case 242: break; // // Rule 243: Statement ::= ForStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= Block // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= AssertStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= DoStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= BreakStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 253: break; // // Rule 254: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 254: break; // // Rule 255: StatementWithoutTrailingSubstatement ::= TryStatement // case 255: break; // // Rule 256: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 256: break; // // Rule 257: StatementNoShortIf ::= LabeledStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 258: break; // // Rule 259: StatementNoShortIf ::= WhileStatementNoShortIf // case 259: break; // // Rule 260: StatementNoShortIf ::= ForStatementNoShortIf // case 260: break; // // Rule 261: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 262: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 262: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 263: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 263: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 264: EmptyStatement ::= SEMICOLON // case 264: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 265: LabeledStatement ::= identifier COLON Statement // case 265: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 266: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 266: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 267: ExpressionStatement ::= StatementExpression SEMICOLON // case 267: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 268: StatementExpression ::= Assignment // case 268: break; // // Rule 269: StatementExpression ::= PreIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PreDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= PostIncrementExpression // case 271: break; // // Rule 272: StatementExpression ::= PostDecrementExpression // case 272: break; // // Rule 273: StatementExpression ::= MethodInvocation // case 273: break; // // Rule 274: StatementExpression ::= ClassInstanceCreationExpression // case 274: break; // // Rule 275: AssertStatement ::= assert Expression SEMICOLON // case 275: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 276: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 276: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 277: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 277: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 278: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 278: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 279: break; // // Rule 280: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 280: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 281: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 281: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 282: SwitchLabels ::= SwitchLabel // case 282: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 283: SwitchLabels ::= SwitchLabels SwitchLabel // case 283: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 284: SwitchLabel ::= case ConstantExpression COLON // case 284: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 285: SwitchLabel ::= case EnumConstant COLON // case 285: bad_rule = 285; break; // // Rule 286: SwitchLabel ::= default COLON // case 286: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 287: EnumConstant ::= identifier // case 287: bad_rule = 287; break; // // Rule 288: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 288: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 289: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 289: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 290: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 290: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 291: ForStatement ::= BasicForStatement // case 291: break; // // Rule 292: ForStatement ::= EnhancedForStatement // case 292: break; // // Rule 293: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 293: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 294: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 294: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 295: ForInit ::= StatementExpressionList // case 295: break; // // Rule 296: ForInit ::= LocalVariableDeclaration // case 296: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 297: ForUpdate ::= StatementExpressionList // case 297: break; // // Rule 298: StatementExpressionList ::= StatementExpression // case 298: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 299: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 299: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 300: BreakStatement ::= break identifieropt SEMICOLON // case 300: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 301: ContinueStatement ::= continue identifieropt SEMICOLON // case 301: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 302: ReturnStatement ::= return Expressionopt SEMICOLON // case 302: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 303: ThrowStatement ::= throw Expression SEMICOLON // case 303: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 304: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 304: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 305: TryStatement ::= try Block Catches // case 305: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 306: TryStatement ::= try Block Catchesopt Finally // case 306: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 307: Catches ::= CatchClause // case 307: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 308: Catches ::= Catches CatchClause // case 308: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 309: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 309: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 310: Finally ::= finally Block // case 310: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 311: Primary ::= PrimaryNoNewArray // case 311: break; // // Rule 312: Primary ::= ArrayCreationExpression // case 312: break; // // Rule 313: PrimaryNoNewArray ::= Literal // case 313: break; // // Rule 314: PrimaryNoNewArray ::= Type DOT class // case 314: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 315: PrimaryNoNewArray ::= void DOT class // case 315: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 316: PrimaryNoNewArray ::= this // case 316: { btParser.setSym1(nf.This(pos())); break; } // // Rule 317: PrimaryNoNewArray ::= ClassName DOT this // case 317: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 318: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 318: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 319: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 319: break; // // Rule 320: PrimaryNoNewArray ::= FieldAccess // case 320: break; // // Rule 321: PrimaryNoNewArray ::= MethodInvocation // case 321: break; // // Rule 322: PrimaryNoNewArray ::= ArrayAccess // case 322: break; // // Rule 323: Literal ::= IntegerLiteral // case 323: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 324: Literal ::= LongLiteral // case 324: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 325: Literal ::= FloatingPointLiteral // case 325: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 326: Literal ::= DoubleLiteral // case 326: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 327: Literal ::= BooleanLiteral // case 327: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 328: Literal ::= CharacterLiteral // case 328: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 329: Literal ::= StringLiteral // case 329: { String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 2))); break; } // // Rule 330: Literal ::= null // case 330: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 331: BooleanLiteral ::= true // case 331: break; // // Rule 332: BooleanLiteral ::= false // case 332: break; // // Rule 333: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 334: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 334: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 335: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 335: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 336: ArgumentList ::= Expression // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: ArgumentList ::= ArgumentList COMMA Expression // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 338: DimExprs ::= DimExpr // case 338: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 339: DimExprs ::= DimExprs DimExpr // case 339: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 340: DimExpr ::= LBRACKET Expression RBRACKET // case 340: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 341: Dims ::= LBRACKET RBRACKET // case 341: { btParser.setSym1(new Integer(1)); break; } // // Rule 342: Dims ::= Dims LBRACKET RBRACKET // case 342: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 343: FieldAccess ::= Primary DOT identifier // case 343: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 344: FieldAccess ::= super DOT identifier // case 344: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 345: FieldAccess ::= ClassName DOT super DOT identifier // case 345: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 346: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 346: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 347: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 347: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 348: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 348: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 349: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 350: PostfixExpression ::= Primary // case 350: break; // // Rule 351: PostfixExpression ::= ExpressionName // case 351: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 352: PostfixExpression ::= PostIncrementExpression // case 352: break; // // Rule 353: PostfixExpression ::= PostDecrementExpression // case 353: break; // // Rule 354: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 354: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 355: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 355: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 356: UnaryExpression ::= PreIncrementExpression // case 356: break; // // Rule 357: UnaryExpression ::= PreDecrementExpression // case 357: break; // // Rule 358: UnaryExpression ::= PLUS UnaryExpression // case 358: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 359: UnaryExpression ::= MINUS UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 361: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 362: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 363: break; // // Rule 364: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 365: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 367: MultiplicativeExpression ::= UnaryExpression // case 367: break; // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 369: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 369: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 371: AdditiveExpression ::= MultiplicativeExpression // case 371: break; // // Rule 372: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 373: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 374: ShiftExpression ::= AdditiveExpression // case 374: break; // // Rule 375: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 376: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 376: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 377: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 377: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 378: RelationalExpression ::= ShiftExpression // case 378: break; // // Rule 379: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 381: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 383: EqualityExpression ::= RelationalExpression // case 383: break; // // Rule 384: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 385: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 386: AndExpression ::= EqualityExpression // case 386: break; // // Rule 387: AndExpression ::= AndExpression AND EqualityExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 388: ExclusiveOrExpression ::= AndExpression // case 388: break; // // Rule 389: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 390: InclusiveOrExpression ::= ExclusiveOrExpression // case 390: break; // // Rule 391: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 392: ConditionalAndExpression ::= InclusiveOrExpression // case 392: break; // // Rule 393: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 394: ConditionalOrExpression ::= ConditionalAndExpression // case 394: break; // // Rule 395: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 396: ConditionalExpression ::= ConditionalOrExpression // case 396: break; // // Rule 397: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 398: AssignmentExpression ::= ConditionalExpression // case 398: break; // // Rule 399: AssignmentExpression ::= Assignment // case 399: break; // // Rule 400: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 400: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 401: LeftHandSide ::= ExpressionName // case 401: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 402: LeftHandSide ::= FieldAccess // case 402: break; // // Rule 403: LeftHandSide ::= ArrayAccess // case 403: break; // // Rule 404: AssignmentOperator ::= EQUAL // case 404: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 405: AssignmentOperator ::= MULTIPLY_EQUAL // case 405: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= DIVIDE_EQUAL // case 406: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= REMAINDER_EQUAL // case 407: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= PLUS_EQUAL // case 408: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= MINUS_EQUAL // case 409: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 410: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= GREATER GREATER EQUAL // case 411: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 412: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= AND_EQUAL // case 413: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= XOR_EQUAL // case 414: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= OR_EQUAL // case 415: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 416: Expression ::= AssignmentExpression // case 416: break; // // Rule 417: ConstantExpression ::= Expression // case 417: break; // // Rule 418: Dimsopt ::= // case 418: { btParser.setSym1(new Integer(0)); break; } // // Rule 419: Dimsopt ::= Dims // case 419: break; // // Rule 420: Catchesopt ::= // case 420: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 421: Catchesopt ::= Catches // case 421: break; // // Rule 422: identifieropt ::= // case 422: btParser.setSym1(null); break; // // Rule 423: identifieropt ::= identifier // case 423: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 424: ForUpdateopt ::= // case 424: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 425: ForUpdateopt ::= ForUpdate // case 425: break; // // Rule 426: Expressionopt ::= // case 426: btParser.setSym1(null); break; // // Rule 427: Expressionopt ::= Expression // case 427: break; // // Rule 428: ForInitopt ::= // case 428: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 429: ForInitopt ::= ForInit // case 429: break; // // Rule 430: SwitchLabelsopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 431: SwitchLabelsopt ::= SwitchLabels // case 431: break; // // Rule 432: SwitchBlockStatementGroupsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 433: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 433: break; // // Rule 434: VariableModifiersopt ::= // case 434: { btParser.setSym1(Flags.NONE); break; } // // Rule 435: VariableModifiersopt ::= VariableModifiers // case 435: break; // // Rule 436: VariableInitializersopt ::= // case 436: btParser.setSym1(null); break; // // Rule 437: VariableInitializersopt ::= VariableInitializers // case 437: break; // // Rule 438: ElementValuesopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuesopt ::= ElementValues // case 439: bad_rule = 439; break; // // Rule 440: ElementValuePairsopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuePairsopt ::= ElementValuePairs // case 441: bad_rule = 441; break; // // Rule 442: DefaultValueopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: DefaultValueopt ::= DefaultValue // case 443: break; // // Rule 444: AnnotationTypeElementDeclarationsopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 445: bad_rule = 445; break; // // Rule 446: AbstractMethodModifiersopt ::= // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 447: break; // // Rule 448: ConstantModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: ConstantModifiersopt ::= ConstantModifiers // case 449: break; // // Rule 450: InterfaceMemberDeclarationsopt ::= // case 450: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 451: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 451: break; // // Rule 452: ExtendsInterfacesopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 453: ExtendsInterfacesopt ::= ExtendsInterfaces // case 453: break; // // Rule 454: InterfaceModifiersopt ::= // case 454: { btParser.setSym1(Flags.NONE); break; } // // Rule 455: InterfaceModifiersopt ::= InterfaceModifiers // case 455: break; // // Rule 456: ClassBodyopt ::= // case 456: btParser.setSym1(null); break; // // Rule 457: ClassBodyopt ::= ClassBody // case 457: break; // // Rule 458: Argumentsopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: Argumentsopt ::= Arguments // case 459: bad_rule = 459; break; // // Rule 460: EnumBodyDeclarationsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 461: bad_rule = 461; break; // // Rule 462: ,opt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: ,opt ::= COMMA // case 463: break; // // Rule 464: EnumConstantsopt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: EnumConstantsopt ::= EnumConstants // case 465: bad_rule = 465; break; // // Rule 466: ArgumentListopt ::= // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 467: ArgumentListopt ::= ArgumentList // case 467: break; // // Rule 468: BlockStatementsopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 469: BlockStatementsopt ::= BlockStatements // case 469: break; // // Rule 470: ExplicitConstructorInvocationopt ::= // case 470: btParser.setSym1(null); break; // // Rule 471: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 471: break; // // Rule 472: ConstructorModifiersopt ::= // case 472: { btParser.setSym1(Flags.NONE); break; } // // Rule 473: ConstructorModifiersopt ::= ConstructorModifiers // case 473: break; // // Rule 474: ...opt ::= // case 474: btParser.setSym1(null); break; // // Rule 475: ...opt ::= ELLIPSIS // case 475: break; // // Rule 476: FormalParameterListopt ::= // case 476: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 477: FormalParameterListopt ::= FormalParameterList // case 477: break; // // Rule 478: Throwsopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 479: Throwsopt ::= Throws // case 479: break; // // Rule 480: MethodModifiersopt ::= // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: MethodModifiersopt ::= MethodModifiers // case 481: break; // // Rule 482: FieldModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: FieldModifiersopt ::= FieldModifiers // case 483: break; // // Rule 484: ClassBodyDeclarationsopt ::= // case 484: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 485: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 485: break; // // Rule 486: Interfacesopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 487: Interfacesopt ::= Interfaces // case 487: break; // // Rule 488: Superopt ::= // case 488: btParser.setSym1(null); break; // // Rule 489: Superopt ::= Super // case 489: break; // // Rule 490: TypeParametersopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: TypeParametersopt ::= TypeParameters // case 491: break; // // Rule 492: ClassModifiersopt ::= // case 492: { btParser.setSym1(Flags.NONE); break; } // // Rule 493: ClassModifiersopt ::= ClassModifiers // case 493: break; // // Rule 494: Annotationsopt ::= // case 494: btParser.setSym1(null); break; // // Rule 495: Annotationsopt ::= Annotations // case 495: bad_rule = 495; break; // // Rule 496: TypeDeclarationsopt ::= // case 496: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 497: TypeDeclarationsopt ::= TypeDeclarations // case 497: break; // // Rule 498: ImportDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 499: ImportDeclarationsopt ::= ImportDeclarations // case 499: break; // // Rule 500: PackageDeclarationopt ::= // case 500: btParser.setSym1(null); break; // // Rule 501: PackageDeclarationopt ::= PackageDeclaration // case 501: break; // // Rule 502: WildcardBoundsOpt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: WildcardBoundsOpt ::= WildcardBounds // case 503: bad_rule = 503; break; // // Rule 504: AdditionalBoundListopt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: AdditionalBoundListopt ::= AdditionalBoundList // case 505: bad_rule = 505; break; // // Rule 506: TypeBoundopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: TypeBoundopt ::= TypeBound // case 507: bad_rule = 507; break; // // Rule 508: TypeArgumentsopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeArgumentsopt ::= TypeArguments // case 509: bad_rule = 509; break; // // Rule 510: Commentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: Commentsopt ::= Comments // case 511: break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: break; // // Rule 522: PlaceType ::= activity // case 522: break; // // Rule 523: PlaceType ::= method // case 523: break; // // Rule 524: PlaceType ::= current // case 524: break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET RBRACKET ArrayInitializer // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET Expression // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, d)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET Expression // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 550: ArrayBaseType ::= PrimitiveType // case 550: break; // // Rule 551: ArrayBaseType ::= ClassOrInterfaceType // case 551: break; // // Rule 552: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 552: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 553: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 553: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 554: Statement ::= NowStatement // case 554: break; // // Rule 555: Statement ::= ClockedStatement // case 555: break; // // Rule 556: Statement ::= AsyncStatement // case 556: break; // // Rule 557: Statement ::= AtomicStatement // case 557: break; // // Rule 558: Statement ::= WhenStatement // case 558: break; // // Rule 559: Statement ::= ForEachStatement // case 559: break; // // Rule 560: Statement ::= AtEachStatement // case 560: break; // // Rule 561: Statement ::= FinishStatement // case 561: break; // // Rule 562: StatementWithoutTrailingSubstatement ::= NextStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 563: break; // // Rule 564: StatementNoShortIf ::= NowStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= ClockedStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= AsyncStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtomicStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= WhenStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= ForEachStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= AtEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= FinishStatementNoShortIf // case 571: break; // // Rule 572: NowStatement ::= now LPAREN Clock RPAREN Statement // case 572: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 573: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 573: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 574: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 574: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 575: AsyncStatement ::= async LPAREN here RPAREN Statement // case 575: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 576: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 576: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 577: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 577: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 578: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 578: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 579: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 579: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 580: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 580: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 581: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: FinishStatement ::= finish Statement // case 583: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 584: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 584: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 585: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 585: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 586: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 586: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 587: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 588: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 588: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 589: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 590: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 590: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 591: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 591: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 592: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 592: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 593: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 594: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 595: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 595: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 596: PlaceExpression ::= here // case 596: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 597: PlaceExpression ::= this // case 597: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 598: PlaceExpression ::= Expression // case 598: break; // // Rule 599: PlaceExpression ::= ArrayAccess // case 599: bad_rule = 599; break; // // Rule 600: NextStatement ::= next SEMICOLON // case 600: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 601: AwaitStatement ::= await Expression SEMICOLON // case 601: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 602: ClockList ::= Clock // case 602: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 603: ClockList ::= ClockList COMMA Clock // case 603: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 604: Clock ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 605: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 605: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 606: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 606: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 607: RelationalExpression ::= RelationalExpression instanceof Type // case 607: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 608: ExpressionName ::= here // case 608: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 609: Primary ::= FutureExpression // case 609: break; // // Rule 610: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 610: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 611: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 611: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 612: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: ConcreteDistributionopt ::= // case 631: btParser.setSym1(null); break; // // Rule 632: ConcreteDistributionopt ::= ConcreteDistribution // case 632: break; // // Rule 633: PlaceExpressionSingleListopt ::= // case 633: btParser.setSym1(null); break; // // Rule 634: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 634: break; // // Rule 635: ArgumentListopt ::= // case 635: btParser.setSym1(null); break; // // Rule 636: ArgumentListopt ::= ArgumentList // case 636: break; // // Rule 637: DepParametersopt ::= // case 637: btParser.setSym1(null); break; // // Rule 638: DepParametersopt ::= DepParameters // case 638: break; // // Rule 639: Unsafeopt ::= // case 639: btParser.setSym1(null); break; // // Rule 640: Unsafeopt ::= unsafe // case 640: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } default: break; } return; }
|
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/10b0c7616a7abbf0fc08b5455c9818b3be9b7cbc/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
2678,
7005,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1670,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
6153,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1494,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
1368,
392,
2756,
8863,
7734,
289,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
576,
30,
225,
14488,
559,
493,
33,
16980,
559,
5411,
368,
5411,
648,
576,
30,
7734,
898,
31,
2398,
368,
5411,
368,
6781,
890,
30,
225,
14488,
559,
493,
33,
1250,
5411,
368,
5411,
648,
890,
30,
288,
7734,
10921,
2678,
18,
542,
11901,
21,
12,
82,
74,
18,
15512,
559,
907,
12,
917,
9334,
3742,
18,
5507,
1435,
10019,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
2678,
7005,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
2
] |
|
message = newMessage;
|
setMessage(newMessage, NONE);
|
public void setMessage(String newMessage) { message = newMessage;}
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1cd66757cdb9d85a07442d00c13f94459a6e3077/DialogPage.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/dialogs/DialogPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
15227,
12,
780,
394,
1079,
13,
288,
202,
2150,
273,
394,
1079,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
15227,
12,
780,
394,
1079,
13,
288,
202,
2150,
273,
394,
1079,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try { ServiceUtils.executeService(getUserView(), "CreateNewUnit", argsToRead); } catch (FenixServiceException e) { setErrorMessage(e.getMessage()); return ""; } return "listAllUnits";
|
return executeCreateNewUnitService(argsToRead, "listAllUnits");
|
public String createTopUnit() throws FenixFilterException, FenixServiceException { if (verifyCostCenterCode()) { return ""; } PrepareDatesResult datesResult = prepareDates(this.getUnitBeginDate(), this.getUnitEndDate()); if (datesResult.isTest()) { return ""; } UnitType type = getUnitType(); CreateNewUnitParameters parameters = new CreateNewUnitParameters(departmentID, degreeID, this, 1); final Object[] argsToRead = { null, null, this.getUnitName(), this.getUnitCostCenter(), datesResult.getBeginDate(), datesResult.getEndDate(), type, parameters.getDepartmentID(), parameters.getDegreeID() }; try { ServiceUtils.executeService(getUserView(), "CreateNewUnit", argsToRead); } catch (FenixServiceException e) { setErrorMessage(e.getMessage()); return ""; } return "listAllUnits"; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/65823d223fed584e45de7385031a6325424fe632/OrganizationalStructureBackingBean.java/clean/src/net/sourceforge/fenixedu/presentationTier/backBeans/manager/organizationalStructureManagement/OrganizationalStructureBackingBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
752,
3401,
2802,
1435,
1216,
478,
275,
697,
1586,
503,
16,
478,
275,
697,
15133,
288,
3639,
309,
261,
8705,
8018,
8449,
1085,
10756,
288,
5411,
327,
1408,
31,
3639,
289,
3639,
7730,
15578,
1253,
7811,
1253,
273,
2911,
15578,
12,
2211,
18,
588,
2802,
8149,
1626,
9334,
333,
18,
588,
2802,
24640,
10663,
3639,
309,
261,
9683,
1253,
18,
291,
4709,
10756,
288,
5411,
327,
1408,
31,
3639,
289,
3639,
8380,
559,
618,
273,
19194,
559,
5621,
3639,
1788,
1908,
2802,
2402,
1472,
273,
394,
1788,
1908,
2802,
2402,
12,
323,
15750,
734,
16,
10782,
734,
16,
333,
16,
404,
1769,
3639,
727,
1033,
8526,
833,
23321,
273,
288,
446,
16,
446,
16,
333,
18,
588,
2802,
461,
9334,
333,
18,
588,
2802,
8018,
8449,
9334,
7734,
7811,
1253,
18,
588,
8149,
1626,
9334,
7811,
1253,
18,
588,
24640,
9334,
618,
16,
7734,
1472,
18,
588,
30358,
734,
9334,
1472,
18,
588,
22885,
734,
1435,
289,
31,
3639,
775,
288,
5411,
1956,
1989,
18,
8837,
1179,
12,
588,
1299,
1767,
9334,
315,
1684,
1908,
2802,
3113,
833,
23321,
1769,
3639,
289,
1044,
261,
42,
275,
697,
15133,
425,
13,
288,
5411,
9967,
1079,
12,
73,
18,
24906,
10663,
5411,
327,
1408,
31,
3639,
289,
3639,
327,
315,
1098,
1595,
7537,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
752,
3401,
2802,
1435,
1216,
478,
275,
697,
1586,
503,
16,
478,
275,
697,
15133,
288,
3639,
309,
261,
8705,
8018,
8449,
1085,
10756,
288,
5411,
327,
1408,
31,
3639,
289,
3639,
7730,
15578,
1253,
7811,
1253,
273,
2911,
15578,
12,
2211,
18,
588,
2802,
8149,
1626,
9334,
333,
18,
588,
2802,
24640,
10663,
3639,
309,
261,
9683,
1253,
18,
291,
4709,
10756,
288,
5411,
327,
1408,
31,
3639,
289,
3639,
8380,
559,
618,
273,
19194,
559,
5621,
3639,
1788,
1908,
2802,
2402,
1472,
273,
394,
1788,
1908,
2802,
2402,
12,
323,
15750,
734,
16,
10782,
734,
16,
333,
16,
404,
1769,
3639,
727,
1033,
8526,
833,
23321,
273,
288,
446,
16,
446,
16,
333,
18,
2
] |
public Patch createNewPatch()
|
public IPatch createNewPatch()
|
public Patch createNewPatch() { return super.createNewPatch(); }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/YamahaTX7PerformanceSingleDriver.java/buggy/JSynthLib/synthdrivers/YamahaTX7/YamahaTX7PerformanceSingleDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12042,
15291,
7332,
1435,
202,
95,
202,
202,
2463,
2240,
18,
2640,
1908,
7332,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12042,
15291,
7332,
1435,
202,
95,
202,
202,
2463,
2240,
18,
2640,
1908,
7332,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(hisBuf.length % 8 != 0 || hisBuf.length < 16) {
|
if((hisBuf.length % 8 != 0) || (hisBuf.length < 16)) {
|
public void run() { long uid = r.nextLong(); if(!lock()) return; try { startedSwaps++; // We can't lock friends_locations, so lets just // pretend that they're locked long random = r.nextLong(); double myLoc = loc.getValue(); double[] friendLocs = node.peers.getPeerLocationDoubles(); long[] myValueLong = new long[1+1+friendLocs.length]; myValueLong[0] = random; myValueLong[1] = Double.doubleToLongBits(myLoc); for(int i=0;i<friendLocs.length;i++) myValueLong[i+2] = Double.doubleToLongBits(friendLocs[i]); byte[] myValue = Fields.longsToBytes(myValueLong); MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw new Error(e); } byte[] myHash = md.digest(myValue); Message m = DMT.createFNPSwapRequest(uid, myHash, 6); PeerNode pn = node.peers.getRandomPeer(); if(pn == null) { // Nowhere to send return; } // Only 1 ID because we are sending; we won't receive item = addForwardedItem(uid, uid, null, pn); Logger.minor(this, "Sending SwapRequest "+uid+" to "+pn); MessageFilter filter1 = MessageFilter.create().setType(DMT.FNPSwapRejected).setField(DMT.UID, uid).setSource(pn); MessageFilter filter2 = MessageFilter.create().setType(DMT.FNPSwapReply).setField(DMT.UID, uid).setSource(pn); MessageFilter filter = filter1.or(filter2); // 60 seconds filter.setTimeout(TIMEOUT); node.usm.send(pn, m, null); Logger.minor(this, "Waiting for SwapReply/SwapRejected on "+uid); Message reply; try { reply = node.usm.waitFor(filter, null); } catch (DisconnectedException e) { Logger.minor(this, "Disconnected while waiting for SwapReply/SwapRejected for "+uid); return; } if(reply == null) { if(pn.isConnected() && System.currentTimeMillis() - pn.timeLastConnected() > TIMEOUT*2) { // Timed out! Abort... Logger.error(this, "Timed out waiting for SwapRejected/SwapReply on "+uid); } return; } if(reply.getSpec() == DMT.FNPSwapRejected) { // Failed. Abort. Logger.minor(this, "Swap rejected on "+uid); return; } // We have an FNPSwapReply, yay // FNPSwapReply is exactly the same format as FNPSwapRequest byte[] hisHash = ((ShortBuffer)reply.getObject(DMT.HASH)).getData(); Message confirm = DMT.createFNPSwapCommit(uid, myValue); filter1.clearOr(); MessageFilter filter3 = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPSwapComplete).setTimeout(TIMEOUT).setSource(pn); filter = filter1.or(filter3); node.usm.send(pn, confirm, null); Logger.minor(this, "Waiting for SwapComplete: uid = "+uid); try { reply = node.usm.waitFor(filter, null); } catch (DisconnectedException e) { Logger.minor(this, "Disconnected waiting for SwapComplete on "+uid); return; } if(reply == null) { if(pn.isConnected() && System.currentTimeMillis() - pn.timeLastConnected() > TIMEOUT*2) { // Hrrrm! Logger.error(this, "Timed out waiting for SwapComplete - malicious node?? on "+uid); } return; } if(reply.getSpec() == DMT.FNPSwapRejected) { Logger.error(this, "Got SwapRejected while waiting for SwapComplete. This can happen occasionally because of badly timed disconnects, but if it happens frequently it indicates a bug or an attack"); return; } byte[] hisBuf = ((ShortBuffer)reply.getObject(DMT.DATA)).getData(); if(hisBuf.length % 8 != 0 || hisBuf.length < 16) { Logger.error(this, "Bad content length in SwapComplete - malicious node? on "+uid); return; } // First does it verify? byte[] rehash = md.digest(hisBuf); if(!java.util.Arrays.equals(rehash, hisHash)) { Logger.error(this, "Bad hash in SwapComplete - malicious node? on "+uid); return; } // Now decode it long[] hisBufLong = Fields.bytesToLongs(hisBuf); long hisRandom = hisBufLong[0]; double hisLoc = Double.longBitsToDouble(hisBufLong[1]); if(hisLoc < 0.0 || hisLoc > 1.0) { Logger.error(this, "Bad loc: "+hisLoc+" on "+uid); return; } registerKnownLocation(hisLoc); double[] hisFriendLocs = new double[hisBufLong.length-2]; for(int i=0;i<hisFriendLocs.length;i++) { hisFriendLocs[i] = Double.longBitsToDouble(hisBufLong[i+2]); if(hisFriendLocs[i] < 0.0 || hisFriendLocs[i] > 1.0) { Logger.error(this, "Bad friend loc: "+hisFriendLocs[i]+" on "+uid); return; } registerLocationLink(hisLoc, hisFriendLocs[i]); registerKnownLocation(hisFriendLocs[i]); } if(shouldSwap(myLoc, friendLocs, hisLoc, hisFriendLocs, random ^ hisRandom)) { timeLastSuccessfullySwapped = System.currentTimeMillis(); // Swap loc.setValue(hisLoc); Logger.minor(this, "Swapped: "+myLoc+" <-> "+hisLoc+" - "+uid); swaps++; announceLocChange(); node.writeNodeFile(); } else { Logger.minor(this, "Didn't swap: "+myLoc+" <-> "+hisLoc+" - "+uid); noSwaps++; } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); } finally { unlock(); if(item != null) removeRecentlyForwardedItem(item); } }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/LocationManager.java/buggy/src/freenet/node/LocationManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1525,
4555,
273,
436,
18,
4285,
3708,
5621,
13491,
309,
12,
5,
739,
10756,
327,
31,
5411,
775,
288,
7734,
5746,
6050,
6679,
9904,
31,
7734,
368,
1660,
848,
1404,
2176,
284,
22259,
67,
12352,
16,
1427,
14557,
2537,
7734,
368,
675,
17445,
716,
2898,
4565,
8586,
7734,
1525,
2744,
273,
436,
18,
4285,
3708,
5621,
7734,
1645,
3399,
1333,
273,
1515,
18,
24805,
5621,
7734,
1645,
8526,
24271,
1333,
87,
273,
756,
18,
30502,
18,
588,
6813,
2735,
3244,
19314,
5621,
7734,
1525,
8526,
3399,
620,
3708,
273,
394,
1525,
63,
21,
15,
21,
15,
74,
7522,
1333,
87,
18,
2469,
15533,
7734,
3399,
620,
3708,
63,
20,
65,
273,
2744,
31,
7734,
3399,
620,
3708,
63,
21,
65,
273,
3698,
18,
9056,
30220,
6495,
12,
4811,
1333,
1769,
7734,
364,
12,
474,
277,
33,
20,
31,
77,
32,
74,
7522,
1333,
87,
18,
2469,
31,
77,
27245,
10792,
3399,
620,
3708,
63,
77,
15,
22,
65,
273,
3698,
18,
9056,
30220,
6495,
12,
74,
7522,
1333,
87,
63,
77,
19226,
7734,
1160,
8526,
3399,
620,
273,
7190,
18,
80,
7260,
21033,
12,
4811,
620,
3708,
1769,
27573,
22485,
3481,
31,
7734,
775,
288,
10792,
3481,
273,
22485,
18,
588,
1442,
2932,
8325,
17,
5034,
8863,
7734,
289,
1044,
261,
28341,
17293,
425,
13,
288,
10792,
604,
394,
1068,
12,
73,
1769,
7734,
289,
27573,
1160,
8526,
3399,
2310,
273,
3481,
18,
10171,
12,
4811,
620,
1769,
27573,
2350,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1525,
4555,
273,
436,
18,
4285,
3708,
5621,
13491,
309,
12,
5,
739,
10756,
327,
31,
5411,
775,
288,
7734,
5746,
6050,
6679,
9904,
31,
7734,
368,
1660,
848,
1404,
2176,
284,
22259,
67,
12352,
16,
1427,
14557,
2537,
7734,
368,
675,
17445,
716,
2898,
4565,
8586,
7734,
1525,
2744,
273,
436,
18,
4285,
3708,
5621,
7734,
1645,
3399,
1333,
273,
1515,
18,
24805,
5621,
7734,
1645,
8526,
24271,
1333,
87,
273,
756,
18,
30502,
18,
588,
6813,
2735,
3244,
19314,
5621,
7734,
1525,
8526,
3399,
620,
3708,
273,
394,
1525,
63,
21,
15,
21,
15,
74,
7522,
1333,
87,
18,
2469,
15533,
7734,
3399,
620,
3708,
63,
20,
65,
273,
2744,
2
] |
case '[': return true;
|
case '[': return false;
|
private static boolean isSchemeCharacter(char c) { switch(c) { case '+': return true; case ',': return false; case '-': return true; case '.': return true; case '/': return false; case '0': return true; case '1': return true; case '2': return true; case '3': return true; case '4': return true; case '5': return true; case '6': return true; case '7': return true; case '8': return true; case '9': return true; case ':': return false; case ';': return false; case '<': return false; case '=': return false; case '>': return false; case '?': return false; case '@': return false; case 'A': return true; case 'B': return true; case 'C': return true; case 'D': return true; case 'E': return true; case 'F': return true; case 'G': return true; case 'H': return true; case 'I': return true; case 'J': return true; case 'K': return true; case 'L': return true; case 'M': return true; case 'N': return true; case 'O': return true; case 'P': return true; case 'Q': return true; case 'R': return true; case 'S': return true; case 'T': return true; case 'U': return true; case 'V': return true; case 'W': return true; case 'X': return true; case 'Y': return true; case 'Z': return true; case '[': return true; case '\\': return false; case ']': return false; case '^': return false; case '_': return false; case '`': return false; case 'a': return true; case 'b': return true; case 'c': return true; case 'd': return true; case 'e': return true; case 'f': return true; case 'g': return true; case 'h': return true; case 'i': return true; case 'j': return true; case 'k': return true; case 'l': return true; case 'm': return true; case 'n': return true; case 'o': return true; case 'p': return true; case 'q': return true; case 'r': return true; case 's': return true; case 't': return true; case 'u': return true; case 'v': return true; case 'w': return true; case 'x': return true; case 'y': return true; case 'z': return true; } return false; }
|
626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/ee5475b690aceff1a5584d5bc4ab3806606ff142/Verifier.java/buggy/src/nu/xom/Verifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
9321,
7069,
12,
3001,
276,
13,
288,
3639,
1620,
12,
71,
13,
288,
5411,
648,
15126,
4278,
327,
638,
31,
5411,
648,
3316,
30,
327,
629,
31,
5411,
648,
4014,
30,
327,
638,
31,
5411,
648,
2611,
30,
327,
638,
31,
5411,
648,
2023,
30,
327,
629,
31,
5411,
648,
296,
20,
4278,
327,
638,
31,
5411,
648,
296,
21,
4278,
327,
638,
31,
5411,
648,
296,
22,
4278,
327,
638,
31,
5411,
648,
296,
23,
4278,
327,
638,
31,
5411,
648,
296,
24,
4278,
327,
638,
31,
5411,
648,
296,
25,
4278,
327,
638,
31,
5411,
648,
296,
26,
4278,
327,
638,
31,
5411,
648,
296,
27,
4278,
327,
638,
31,
5411,
648,
296,
28,
4278,
327,
638,
31,
5411,
648,
296,
29,
4278,
327,
638,
31,
5411,
648,
3921,
30,
327,
629,
31,
5411,
648,
12386,
4278,
327,
629,
31,
5411,
648,
2368,
4278,
327,
629,
31,
5411,
648,
5214,
30,
327,
629,
31,
5411,
648,
7481,
30,
327,
629,
31,
5411,
648,
13023,
4278,
327,
629,
31,
5411,
648,
4622,
4278,
327,
629,
31,
5411,
648,
296,
37,
4278,
327,
638,
31,
5411,
648,
296,
38,
4278,
327,
638,
31,
5411,
648,
296,
39,
4278,
327,
638,
31,
5411,
648,
296,
40,
4278,
327,
638,
31,
5411,
648,
296,
41,
4278,
327,
638,
31,
5411,
648,
296,
42,
4278,
327,
638,
31,
5411,
648,
296,
43,
4278,
327,
638,
31,
5411,
648,
296,
44,
4278,
327,
638,
31,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
9321,
7069,
12,
3001,
276,
13,
288,
3639,
1620,
12,
71,
13,
288,
5411,
648,
15126,
4278,
327,
638,
31,
5411,
648,
3316,
30,
327,
629,
31,
5411,
648,
4014,
30,
327,
638,
31,
5411,
648,
2611,
30,
327,
638,
31,
5411,
648,
2023,
30,
327,
629,
31,
5411,
648,
296,
20,
4278,
327,
638,
31,
5411,
648,
296,
21,
4278,
327,
638,
31,
5411,
648,
296,
22,
4278,
327,
638,
31,
5411,
648,
296,
23,
4278,
327,
638,
31,
5411,
648,
296,
24,
4278,
327,
638,
31,
5411,
648,
296,
25,
4278,
327,
638,
31,
5411,
648,
296,
26,
4278,
327,
638,
31,
5411,
648,
296,
27,
4278,
327,
638,
31,
5411,
648,
2
] |
AST __t1394 = _t; AST tmp677_AST_in = (AST)_t;
|
AST __t1399 = _t; AST tmp687_AST_in = (AST)_t;
|
public final void pseudfn(AST _t) throws RecognitionException { AST pseudfn_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FIXCODEPAGE: { AST __t1381 = _t; AST tmp664_AST_in = (AST)_t; match(_t,FIXCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1381; _t = _t.getNextSibling(); break; } case OVERLAY: { AST __t1382 = _t; AST tmp665_AST_in = (AST)_t; match(_t,OVERLAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1382; _t = _t.getNextSibling(); break; } case PUTBITS: { AST __t1383 = _t; AST tmp666_AST_in = (AST)_t; match(_t,PUTBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1383; _t = _t.getNextSibling(); break; } case PUTBYTE: { AST __t1384 = _t; AST tmp667_AST_in = (AST)_t; match(_t,PUTBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1384; _t = _t.getNextSibling(); break; } case PUTBYTES: { AST __t1385 = _t; AST tmp668_AST_in = (AST)_t; match(_t,PUTBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1385; _t = _t.getNextSibling(); break; } case PUTDOUBLE: { AST __t1386 = _t; AST tmp669_AST_in = (AST)_t; match(_t,PUTDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1386; _t = _t.getNextSibling(); break; } case PUTFLOAT: { AST __t1387 = _t; AST tmp670_AST_in = (AST)_t; match(_t,PUTFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1387; _t = _t.getNextSibling(); break; } case PUTLONG: { AST __t1388 = _t; AST tmp671_AST_in = (AST)_t; match(_t,PUTLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1388; _t = _t.getNextSibling(); break; } case PUTSHORT: { AST __t1389 = _t; AST tmp672_AST_in = (AST)_t; match(_t,PUTSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1389; _t = _t.getNextSibling(); break; } case PUTSTRING: { AST __t1390 = _t; AST tmp673_AST_in = (AST)_t; match(_t,PUTSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1390; _t = _t.getNextSibling(); break; } case PUTUNSIGNEDSHORT: { AST __t1391 = _t; AST tmp674_AST_in = (AST)_t; match(_t,PUTUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1391; _t = _t.getNextSibling(); break; } case SETBYTEORDER: { AST __t1392 = _t; AST tmp675_AST_in = (AST)_t; match(_t,SETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1392; _t = _t.getNextSibling(); break; } case SETPOINTERVALUE: { AST __t1393 = _t; AST tmp676_AST_in = (AST)_t; match(_t,SETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1393; _t = _t.getNextSibling(); break; } case SETSIZE: { AST __t1394 = _t; AST tmp677_AST_in = (AST)_t; match(_t,SETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1394; _t = _t.getNextSibling(); break; } case AAMSG: { AST tmp678_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getNextSibling(); break; } case CURRENTVALUE: { currentvaluefunc(_t); _t = _retTree; break; } case CURRENTWINDOW: { AST tmp679_AST_in = (AST)_t; match(_t,CURRENTWINDOW); _t = _t.getNextSibling(); break; } case DYNAMICCURRENTVALUE: { dynamiccurrentvaluefunc(_t); _t = _retTree; break; } case ENTRY: { entryfunc(_t); _t = _retTree; break; } case LENGTH: { lengthfunc(_t); _t = _retTree; break; } case NEXTVALUE: { nextvaluefunc(_t); _t = _retTree; break; } case RAW: { rawfunc(_t); _t = _retTree; break; } case SUBSTRING: { substringfunc(_t); _t = _retTree; break; } case Widget_ref: { widattr(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST tmp680_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getNextSibling(); break; } case LINECOUNTER: { AST tmp681_AST_in = (AST)_t; match(_t,LINECOUNTER); _t = _t.getNextSibling(); break; } case PAGENUMBER: { AST tmp682_AST_in = (AST)_t; match(_t,PAGENUMBER); _t = _t.getNextSibling(); break; } case FRAMECOL: { AST tmp683_AST_in = (AST)_t; match(_t,FRAMECOL); _t = _t.getNextSibling(); break; } case FRAMEDOWN: { AST tmp684_AST_in = (AST)_t; match(_t,FRAMEDOWN); _t = _t.getNextSibling(); break; } case FRAMELINE: { AST tmp685_AST_in = (AST)_t; match(_t,FRAMELINE); _t = _t.getNextSibling(); break; } case FRAMEROW: { AST tmp686_AST_in = (AST)_t; match(_t,FRAMEROW); _t = _t.getNextSibling(); break; } case USERID: { AST tmp687_AST_in = (AST)_t; match(_t,USERID); _t = _t.getNextSibling(); break; } case ETIME_KW: { AST tmp688_AST_in = (AST)_t; match(_t,ETIME_KW); _t = _t.getNextSibling(); break; } case DBNAME: { AST tmp689_AST_in = (AST)_t; match(_t,DBNAME); _t = _t.getNextSibling(); break; } case TIME: { AST tmp690_AST_in = (AST)_t; match(_t,TIME); _t = _t.getNextSibling(); break; } case OPSYS: { AST tmp691_AST_in = (AST)_t; match(_t,OPSYS); _t = _t.getNextSibling(); break; } case RETRY: { AST tmp692_AST_in = (AST)_t; match(_t,RETRY); _t = _t.getNextSibling(); break; } case AASERIAL: { AST tmp693_AST_in = (AST)_t; match(_t,AASERIAL); _t = _t.getNextSibling(); break; } case AACONTROL: { AST tmp694_AST_in = (AST)_t; match(_t,AACONTROL); _t = _t.getNextSibling(); break; } case MESSAGELINES: { AST tmp695_AST_in = (AST)_t; match(_t,MESSAGELINES); _t = _t.getNextSibling(); break; } case TERMINAL: { AST tmp696_AST_in = (AST)_t; match(_t,TERMINAL); _t = _t.getNextSibling(); break; } case PROPATH: { AST tmp697_AST_in = (AST)_t; match(_t,PROPATH); _t = _t.getNextSibling(); break; } case CURRENTLANGUAGE: { AST tmp698_AST_in = (AST)_t; match(_t,CURRENTLANGUAGE); _t = _t.getNextSibling(); break; } case PROMSGS: { AST tmp699_AST_in = (AST)_t; match(_t,PROMSGS); _t = _t.getNextSibling(); break; } case SCREENLINES: { AST tmp700_AST_in = (AST)_t; match(_t,SCREENLINES); _t = _t.getNextSibling(); break; } case LASTKEY: { AST tmp701_AST_in = (AST)_t; match(_t,LASTKEY); _t = _t.getNextSibling(); break; } case FRAMEFIELD: { AST tmp702_AST_in = (AST)_t; match(_t,FRAMEFIELD); _t = _t.getNextSibling(); break; } case FRAMEFILE: { AST tmp703_AST_in = (AST)_t; match(_t,FRAMEFILE); _t = _t.getNextSibling(); break; } case FRAMEVALUE: { AST tmp704_AST_in = (AST)_t; match(_t,FRAMEVALUE); _t = _t.getNextSibling(); break; } case GOPENDING: { AST tmp705_AST_in = (AST)_t; match(_t,GOPENDING); _t = _t.getNextSibling(); break; } case PROGRESS: { AST tmp706_AST_in = (AST)_t; match(_t,PROGRESS); _t = _t.getNextSibling(); break; } case FRAMEINDEX: { AST tmp707_AST_in = (AST)_t; match(_t,FRAMEINDEX); _t = _t.getNextSibling(); break; } case FRAMEDB: { AST tmp708_AST_in = (AST)_t; match(_t,FRAMEDB); _t = _t.getNextSibling(); break; } case FRAMENAME: { AST tmp709_AST_in = (AST)_t; match(_t,FRAMENAME); _t = _t.getNextSibling(); break; } case DATASERVERS: { AST tmp710_AST_in = (AST)_t; match(_t,DATASERVERS); _t = _t.getNextSibling(); break; } case NUMDBS: { AST tmp711_AST_in = (AST)_t; match(_t,NUMDBS); _t = _t.getNextSibling(); break; } case NUMALIASES: { AST tmp712_AST_in = (AST)_t; match(_t,NUMALIASES); _t = _t.getNextSibling(); break; } case ISATTRSPACE: { AST tmp713_AST_in = (AST)_t; match(_t,ISATTRSPACE); _t = _t.getNextSibling(); break; } case PROCSTATUS: { AST tmp714_AST_in = (AST)_t; match(_t,PROCSTATUS); _t = _t.getNextSibling(); break; } case PROCHANDLE: { AST tmp715_AST_in = (AST)_t; match(_t,PROCHANDLE); _t = _t.getNextSibling(); break; } case CURSOR: { AST tmp716_AST_in = (AST)_t; match(_t,CURSOR); _t = _t.getNextSibling(); break; } case OSERROR: { AST tmp717_AST_in = (AST)_t; match(_t,OSERROR); _t = _t.getNextSibling(); break; } case RETURNVALUE: { AST tmp718_AST_in = (AST)_t; match(_t,RETURNVALUE); _t = _t.getNextSibling(); break; } case OSDRIVES: { AST tmp719_AST_in = (AST)_t; match(_t,OSDRIVES); _t = _t.getNextSibling(); break; } case PROVERSION: { AST tmp720_AST_in = (AST)_t; match(_t,PROVERSION); _t = _t.getNextSibling(); break; } case TRANSACTION: { AST tmp721_AST_in = (AST)_t; match(_t,TRANSACTION); _t = _t.getNextSibling(); break; } case MACHINECLASS: { AST tmp722_AST_in = (AST)_t; match(_t,MACHINECLASS); _t = _t.getNextSibling(); break; } case AAPCONTROL: { AST tmp723_AST_in = (AST)_t; match(_t,AAPCONTROL); _t = _t.getNextSibling(); break; } case GETCODEPAGES: { AST tmp724_AST_in = (AST)_t; match(_t,GETCODEPAGES); _t = _t.getNextSibling(); break; } case COMSELF: { AST tmp725_AST_in = (AST)_t; match(_t,COMSELF); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
29606,
4293,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
29606,
4293,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
8563,
5572,
11219,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
11861,
273,
389,
88,
31,
1082,
202,
9053,
1853,
26,
1105,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4563,
5572,
11219,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3437,
11861,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
22577,
7868,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
11149,
273,
389,
88,
31,
1082,
202,
9053,
1853,
6028,
25,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
12959,
7868,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
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,
727,
918,
29606,
4293,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
29606,
4293,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
8563,
5572,
11219,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
11861,
273,
389,
88,
31,
1082,
202,
9053,
1853,
26,
1105,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4563,
5572,
11219,
1769,
1082,
202,
67,
88,
2
] |
public abstract BigInteger getCrtCoefficient();
|
BigInteger getCrtCoefficient();
|
public abstract BigInteger getCrtCoefficient();
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/79585526ec6d9f83b4d6cd24bf25c3d9da345f00/RSAPrivateCrtKey.java/buggy/core/src/classpath/java/java/security/interfaces/RSAPrivateCrtKey.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
10246,
1927,
3797,
4249,
25403,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
10246,
1927,
3797,
4249,
25403,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return EngineManager.getInstance("snipsnap").render(content, context);
|
return engine.render(content, context);
|
public String getXMLContent() { RenderContext context = new SnipRenderContext(snip, SnipSpaceFactory.getInstance()); context.setParameters(Application.get().getParameters()); return EngineManager.getInstance("snipsnap").render(content, context); }
|
6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/8fe0e46f919ae0de76a10024903980534c6b5295/RssSnip.java/buggy/src/org/snipsnap/semanticweb/rss/RssSnip.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
336,
4201,
1350,
1435,
288,
565,
6987,
1042,
819,
273,
394,
18961,
625,
3420,
1042,
12,
8134,
625,
16,
18961,
625,
3819,
1733,
18,
588,
1442,
10663,
565,
819,
18,
542,
2402,
12,
3208,
18,
588,
7675,
588,
2402,
10663,
565,
327,
4073,
18,
5902,
12,
1745,
16,
819,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
336,
4201,
1350,
1435,
288,
565,
6987,
1042,
819,
273,
394,
18961,
625,
3420,
1042,
12,
8134,
625,
16,
18961,
625,
3819,
1733,
18,
588,
1442,
10663,
565,
819,
18,
542,
2402,
12,
3208,
18,
588,
7675,
588,
2402,
10663,
565,
327,
4073,
18,
5902,
12,
1745,
16,
819,
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
] |
fileName = dialog.open( ); if ( fileName == null ) { return; } previewImageText.setText( fileName );
|
public void widgetSelected( SelectionEvent e ) { FileDialog dialog = new FileDialog( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ) ); dialog.setText( BROWSE_TITLE ); dialog.setFilterExtensions( IMAGE_FILEFILTERS ); String fileName = previewImageText.getText( ).trim( ); if(fileName.length( ) != 0) { File file = new File( fileName ); if ( fileName.indexOf( '/' ) < 0 && fileName.indexOf( '\\' ) < 0 ) { if ( ReportPlugin.getDefault( ).getTemplatePreference( ) != null && ReportPlugin.getDefault( ) .getTemplatePreference( ) .trim( ) .length( ) != 0 ) { String path = ReportPlugin.getDefault( ) .getTemplatePreference( ) .trim( ); file = new File( path, fileName ); if ( file.exists( ) && file.isFile( ) ) { dialog.setFileName( file.getPath( ) ); } } } else if ( file.exists( ) && file.isFile( ) ) { dialog.setFileName( fileName ); } } fileName = dialog.open( ); if ( fileName == null ) { return; } previewImageText.setText( fileName ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/60faf09fd42339bc5f8524dbfbec32bb27c69b0b/WizardReportSettingPage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardReportSettingPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
1082,
202,
95,
9506,
202,
812,
6353,
6176,
273,
394,
1387,
6353,
12,
11810,
5370,
18,
588,
2421,
22144,
12,
262,
25083,
202,
18,
588,
4236,
12,
262,
25083,
202,
18,
588,
3896,
13220,
12,
262,
11272,
9506,
202,
12730,
18,
542,
1528,
12,
605,
11226,
1090,
67,
14123,
11272,
9506,
202,
12730,
18,
542,
1586,
7513,
12,
10757,
67,
3776,
11126,
55,
11272,
9506,
202,
780,
3968,
273,
10143,
2040,
1528,
18,
588,
1528,
12,
262,
18,
5290,
12,
11272,
9506,
202,
430,
12,
17812,
18,
2469,
12,
262,
480,
374,
13,
9506,
202,
95,
6862,
202,
812,
585,
273,
394,
1387,
12,
3968,
11272,
6862,
202,
430,
261,
3968,
18,
31806,
12,
2023,
262,
411,
374,
6862,
1082,
202,
10,
10,
3968,
18,
31806,
12,
5282,
262,
411,
374,
262,
6862,
202,
95,
25083,
202,
430,
261,
8706,
3773,
18,
588,
1868,
12,
262,
18,
588,
2283,
9624,
12,
262,
480,
446,
6862,
9506,
202,
10,
10,
8706,
3773,
18,
588,
1868,
12,
262,
6862,
25083,
202,
18,
588,
2283,
9624,
12,
262,
6862,
25083,
202,
18,
5290,
12,
262,
6862,
25083,
202,
18,
2469,
12,
262,
480,
374,
262,
25083,
202,
95,
6862,
1082,
202,
780,
589,
273,
8706,
3773,
18,
588,
1868,
12,
262,
6862,
6862,
202,
18,
588,
2283,
9624,
12,
262,
6862,
6862,
202,
18,
5290,
12,
11272,
6862,
1082,
202,
768,
273,
394,
1387,
12,
589,
16,
3968,
11272,
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,
3604,
7416,
12,
12977,
1133,
425,
262,
1082,
202,
95,
9506,
202,
812,
6353,
6176,
273,
394,
1387,
6353,
12,
11810,
5370,
18,
588,
2421,
22144,
12,
262,
25083,
202,
18,
588,
4236,
12,
262,
25083,
202,
18,
588,
3896,
13220,
12,
262,
11272,
9506,
202,
12730,
18,
542,
1528,
12,
605,
11226,
1090,
67,
14123,
11272,
9506,
202,
12730,
18,
542,
1586,
7513,
12,
10757,
67,
3776,
11126,
55,
11272,
9506,
202,
780,
3968,
273,
10143,
2040,
1528,
18,
588,
1528,
12,
262,
18,
5290,
12,
11272,
9506,
202,
430,
12,
17812,
18,
2469,
12,
262,
480,
374,
13,
9506,
202,
95,
6862,
202,
812,
585,
273,
394,
1387,
12,
3968,
11272,
6862,
202,
2
] |
|
protected void dateSelected(boolean canceled, Calendar selectedDate) { if (!canceled) { if(selectedDate != null) { this.date = selectedDate; } updateDateText(); } notifyPickerListeners(); pickButton.setEnabled(true); dateText.setEnabled(true);// pickerShell.close(); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3795dbf159ca461ff46554eebd5d2ae042adc3f0/DatePicker.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/DatePicker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1509,
7416,
12,
6494,
17271,
16,
5542,
3170,
1626,
13,
288,
9506,
202,
430,
16051,
10996,
329,
13,
288,
1082,
202,
430,
12,
8109,
1626,
480,
446,
13,
288,
9506,
202,
2211,
18,
712,
273,
3170,
1626,
31,
1082,
202,
97,
1082,
202,
2725,
1626,
1528,
5621,
202,
202,
97,
9506,
202,
12336,
13194,
5583,
5621,
202,
202,
11503,
3616,
18,
542,
1526,
12,
3767,
1769,
202,
202,
712,
1528,
18,
542,
1526,
12,
3767,
1769,
759,
202,
202,
10569,
13220,
18,
4412,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1509,
7416,
12,
6494,
17271,
16,
5542,
3170,
1626,
13,
288,
9506,
202,
430,
16051,
10996,
329,
13,
288,
1082,
202,
430,
12,
8109,
1626,
480,
446,
13,
288,
9506,
202,
2211,
18,
712,
273,
3170,
1626,
31,
1082,
202,
97,
1082,
202,
2725,
1626,
1528,
5621,
202,
202,
97,
9506,
202,
12336,
13194,
5583,
5621,
202,
202,
11503,
3616,
18,
542,
1526,
12,
3767,
1769,
202,
202,
712,
1528,
18,
542,
1526,
12,
3767,
1769,
759,
202,
202,
10569,
13220,
18,
4412,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
this.registerVariant(variant);
|
registerVariant(variant);
|
protected void initVariantsInClassScope() {// Completion for extends keyword// position { final ElementFilter position = new AndFilter(new ElementFilter[]{ new NotFilter(CLASS_BODY), new NotFilter(new AfterElementFilter(new ContentFilter(new TextFilter(PsiKeyword.EXTENDS)))), new NotFilter(new AfterElementFilter(new ContentFilter(new TextFilter(PsiKeyword.IMPLEMENTS)))), new NotFilter(new LeftNeighbour(new LeftNeighbour(new TextFilter("<", ",")))), new NotFilter(new ScopeFilter(new EnumFilter())), new LeftNeighbour(new OrFilter( new ClassFilter(PsiIdentifier.class), new TextFilter(">"))), });// completion final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiClass.class, true); variant.addCompletion(PsiKeyword.EXTENDS); variant.excludeScopeClass(PsiAnonymousClass.class); variant.excludeScopeClass(PsiTypeParameter.class); this.registerVariant(variant); }// Completion for implements keyword// position { final ElementFilter position = new AndFilter(new ElementFilter[]{ new NotFilter(CLASS_BODY), new NotFilter(new BeforeElementFilter(new ContentFilter(new TextFilter(PsiKeyword.EXTENDS)))), new NotFilter(new AfterElementFilter(new ContentFilter(new TextFilter(PsiKeyword.IMPLEMENTS)))), new NotFilter(new LeftNeighbour(new LeftNeighbour(new TextFilter("<", ",")))), new LeftNeighbour(new OrFilter( new ClassFilter(PsiIdentifier.class), new TextFilter(">"))), new NotFilter(new ScopeFilter(new InterfaceFilter())) });// completion final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiClass.class, true); variant.addCompletion(PsiKeyword.IMPLEMENTS); variant.excludeScopeClass(PsiAnonymousClass.class); this.registerVariant(variant); }// Completion after extends in interface, type parameter and implements in class// position { final ElementFilter position = new AndFilter( new NotFilter(CLASS_BODY), new OrFilter( new ElementFilter [] { new AndFilter( new LeftNeighbour(new TextFilter(PsiKeyword.EXTENDS, ",")), new ScopeFilter(new InterfaceFilter()) ), new AndFilter( new LeftNeighbour(new TextFilter(PsiKeyword.EXTENDS, "&")), new ScopeFilter(new ClassFilter(PsiTypeParameter.class)) ), new LeftNeighbour(new TextFilter(PsiKeyword.IMPLEMENTS, ",")) } ) );// completion final OrFilter flags = new OrFilter(); flags.addFilter(new ThisOrAnyInnerFilter( new AndFilter(new ElementFilter[]{ new ClassFilter(PsiClass.class), new NotFilter(new AssignableFromContextFilter()), new InterfaceFilter() }) )); flags.addFilter(new ClassFilter(PsiPackage.class)); CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiClass.class, true); variant.excludeScopeClass(PsiAnonymousClass.class); variant.addCompletionFilterOnElement(flags); this.registerVariant(variant); }// Completion for classes in class extends// position { final ElementFilter position = new AndFilter( new NotFilter(CLASS_BODY), new AndFilter(new ElementFilter[]{ new LeftNeighbour(new TextFilter(PsiKeyword.EXTENDS)), new ScopeFilter(new NotFilter(new InterfaceFilter())) }) );// completion final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiClass.class, true); variant.excludeScopeClass(PsiAnonymousClass.class); variant.addCompletionFilterOnElement(new ThisOrAnyInnerFilter( new AndFilter(new ElementFilter[]{ new ClassFilter(PsiClass.class), new NotFilter(new AssignableFromContextFilter()), new NotFilter(new InterfaceFilter()), new ModifierFilter(PsiModifier.FINAL, false) }) )); variant.addCompletionFilterOnElement(new ClassFilter(PsiPackage.class)); this.registerVariant(variant); } {// declaration start// position final CompletionVariant variant = new CompletionVariant(PsiClass.class, new AndFilter( CLASS_BODY, new OrFilter( END_OF_BLOCK, new LeftNeighbour(new OrFilter( new TextFilter(MODIFIERS_LIST), new SuperParentFilter(new ClassFilter(PsiAnnotation.class)), new TokenTypeFilter(JavaTokenType.GT))) )));// completion addPrimitiveTypes(variant); variant.addCompletion(PsiKeyword.VOID); variant.addCompletionFilterOnElement(new ClassFilter(PsiClass.class)); variant.addCompletionFilterOnElement(new ClassFilter(PsiPackage.class)); this.registerVariant(variant); } { final CompletionVariant variant = new CompletionVariant(new LeftNeighbour(new LeftNeighbour(new TextFilter("<", ",")))); variant.includeScopeClass(PsiClass.class, true); variant.addCompletion(PsiKeyword.EXTENDS, TailType.SPACE); this.registerVariant(variant); } }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/3314476891c70f6e28a00beba3f4835933188dec/JavaCompletionData.java/buggy/codeInsight/impl/com/intellij/codeInsight/completion/JavaCompletionData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
21165,
382,
797,
3876,
1435,
288,
759,
20735,
364,
3231,
4932,
759,
1754,
565,
288,
1377,
727,
3010,
1586,
1754,
273,
394,
7835,
1586,
12,
2704,
3010,
1586,
63,
7073,
3639,
394,
2288,
1586,
12,
5237,
67,
16691,
3631,
3639,
394,
2288,
1586,
12,
2704,
7360,
1046,
1586,
12,
2704,
3697,
1586,
12,
2704,
3867,
1586,
12,
52,
7722,
8736,
18,
4142,
1157,
3948,
20349,
3631,
3639,
394,
2288,
1586,
12,
2704,
7360,
1046,
1586,
12,
2704,
3697,
1586,
12,
2704,
3867,
1586,
12,
52,
7722,
8736,
18,
9883,
7618,
55,
20349,
3631,
3639,
394,
2288,
1586,
12,
2704,
13338,
13577,
477,
12,
2704,
13338,
13577,
477,
12,
2704,
3867,
1586,
2932,
32,
3113,
5753,
20349,
3631,
3639,
394,
2288,
1586,
12,
2704,
5468,
1586,
12,
2704,
6057,
1586,
10756,
3631,
3639,
394,
13338,
13577,
477,
12,
2704,
2965,
1586,
12,
1850,
394,
1659,
1586,
12,
52,
7722,
3004,
18,
1106,
3631,
1850,
394,
3867,
1586,
2932,
2984,
3719,
3631,
1377,
15549,
759,
8364,
1377,
727,
20735,
9356,
5437,
273,
394,
20735,
9356,
12,
3276,
1769,
1377,
5437,
18,
6702,
3876,
797,
12,
52,
7722,
797,
18,
1106,
16,
638,
1769,
1377,
5437,
18,
1289,
11238,
12,
52,
7722,
8736,
18,
4142,
1157,
3948,
1769,
1377,
5437,
18,
10157,
3876,
797,
12,
52,
7722,
18792,
797,
18,
1106,
1769,
1377,
5437,
18,
10157,
3876,
797,
12,
52,
7722,
16920,
18,
1106,
1769,
1377,
1744,
9356,
12,
8688,
1769,
565,
289,
759,
20735,
364,
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,
21165,
382,
797,
3876,
1435,
288,
759,
20735,
364,
3231,
4932,
759,
1754,
565,
288,
1377,
727,
3010,
1586,
1754,
273,
394,
7835,
1586,
12,
2704,
3010,
1586,
63,
7073,
3639,
394,
2288,
1586,
12,
5237,
67,
16691,
3631,
3639,
394,
2288,
1586,
12,
2704,
7360,
1046,
1586,
12,
2704,
3697,
1586,
12,
2704,
3867,
1586,
12,
52,
7722,
8736,
18,
4142,
1157,
3948,
20349,
3631,
3639,
394,
2288,
1586,
12,
2704,
7360,
1046,
1586,
12,
2704,
3697,
1586,
12,
2704,
3867,
1586,
12,
52,
7722,
8736,
18,
9883,
7618,
55,
20349,
3631,
3639,
394,
2288,
1586,
12,
2704,
13338,
13577,
477,
12,
2704,
13338,
13577,
477,
12,
2704,
3867,
1586,
2932,
32,
3113,
5753,
2
] |
if (workbenchWindow != null) new AboutDialog(workbenchWindow.getShell()).open();
|
if (workbenchWindow != null) { new AboutDialog(workbenchWindow.getShell()).open(); }
|
public void run() { // make sure action is not disposed if (workbenchWindow != null) new AboutDialog(workbenchWindow.getShell()).open(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/AboutAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
368,
1221,
3071,
1301,
353,
486,
1015,
7423,
3639,
309,
261,
1252,
22144,
3829,
480,
446,
13,
5411,
394,
9771,
659,
6353,
12,
1252,
22144,
3829,
18,
588,
13220,
1435,
2934,
3190,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
368,
1221,
3071,
1301,
353,
486,
1015,
7423,
3639,
309,
261,
1252,
22144,
3829,
480,
446,
13,
5411,
394,
9771,
659,
6353,
12,
1252,
22144,
3829,
18,
588,
13220,
1435,
2934,
3190,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public GlslProgram(EffectiveAppearance eap, String prefix) { this.app = null; this.eApp = eap; pre = prefix+"::"+"glsl-"; if (!hasGlslProgram(eap, prefix)) throw new IllegalStateException("no program!"); source = (GlslSource) eap.getAttribute(pre+"source", EMPTY, Object.class);
|
public GlslProgram(Appearance app, String prefix, Input vertexProgram, Input fragmentProgram) throws IOException { this(app, prefix, new GlslSource(vertexProgram, fragmentProgram));
|
public GlslProgram(EffectiveAppearance eap, String prefix) { this.app = null; this.eApp = eap; pre = prefix+"::"+"glsl-"; if (!hasGlslProgram(eap, prefix)) throw new IllegalStateException("no program!"); source = (GlslSource) eap.getAttribute(pre+"source", EMPTY, Object.class); }
|
25560 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25560/ebefa80ebc57705657a2249820470c341a94948d/GlslProgram.java/buggy/src-core/de/jreality/shader/GlslProgram.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15157,
2069,
9459,
12,
28531,
1294,
27668,
425,
438,
16,
514,
1633,
13,
288,
565,
333,
18,
2910,
273,
446,
31,
565,
333,
18,
73,
3371,
273,
425,
438,
31,
565,
675,
273,
1633,
15,
6877,
2773,
9078,
7043,
2069,
10951,
31,
565,
309,
16051,
5332,
21308,
2069,
9459,
12,
73,
438,
16,
1633,
3719,
604,
394,
5477,
2932,
2135,
5402,
4442,
1769,
565,
1084,
273,
261,
21308,
2069,
1830,
13,
425,
438,
18,
588,
1499,
12,
1484,
9078,
3168,
3113,
8984,
16,
1033,
18,
1106,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15157,
2069,
9459,
12,
28531,
1294,
27668,
425,
438,
16,
514,
1633,
13,
288,
565,
333,
18,
2910,
273,
446,
31,
565,
333,
18,
73,
3371,
273,
425,
438,
31,
565,
675,
273,
1633,
15,
6877,
2773,
9078,
7043,
2069,
10951,
31,
565,
309,
16051,
5332,
21308,
2069,
9459,
12,
73,
438,
16,
1633,
3719,
604,
394,
5477,
2932,
2135,
5402,
4442,
1769,
565,
1084,
273,
261,
21308,
2069,
1830,
13,
425,
438,
18,
588,
1499,
12,
1484,
9078,
3168,
3113,
8984,
16,
1033,
18,
1106,
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
] |
selectAllAction = ActionFactory.SELECT_ALL.create(getWindow());
|
selectAllAction = ActionFactory.SELECT_ALL.create(window);
|
protected void makeActions(IWorkbenchWindow window) { // @issue should obtain from ConfigurationItemFactory statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$ newWizardAction = ActionFactory.NEW.create(getWindow()); register(newWizardAction); newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN .create(getWindow()); register(newWizardDropDownAction); importResourcesAction = ActionFactory.IMPORT.create(getWindow()); register(importResourcesAction); exportResourcesAction = ActionFactory.EXPORT.create(getWindow()); register(exportResourcesAction); buildAllAction = IDEActionFactory.BUILD.create(getWindow()); register(buildAllAction); cleanAction = IDEActionFactory.BUILD_CLEAN.create(getWindow()); register(cleanAction); toggleAutoBuildAction = IDEActionFactory.BUILD_AUTOMATICALLY .create(getWindow()); register(toggleAutoBuildAction); saveAction = ActionFactory.SAVE.create(getWindow()); register(saveAction); saveAsAction = ActionFactory.SAVE_AS.create(getWindow()); register(saveAsAction); saveAllAction = ActionFactory.SAVE_ALL.create(getWindow()); register(saveAllAction); undoAction = ActionFactory.UNDO.create(getWindow()); register(undoAction); redoAction = ActionFactory.REDO.create(getWindow()); register(redoAction); cutAction = ActionFactory.CUT.create(getWindow()); register(cutAction); copyAction = ActionFactory.COPY.create(getWindow()); register(copyAction); pasteAction = ActionFactory.PASTE.create(getWindow()); register(pasteAction); printAction = ActionFactory.PRINT.create(getWindow()); register(printAction); selectAllAction = ActionFactory.SELECT_ALL.create(getWindow()); register(selectAllAction); findAction = ActionFactory.FIND.create(getWindow()); register(findAction); closeAction = ActionFactory.CLOSE.create(getWindow()); register(closeAction); closeAllAction = ActionFactory.CLOSE_ALL.create(getWindow()); register(closeAllAction); closeAllSavedAction = ActionFactory.CLOSE_ALL_SAVED.create(getWindow()); register(closeAllSavedAction); helpContentsAction = ActionFactory.HELP_CONTENTS.create(getWindow()); register(helpContentsAction); aboutAction = ActionFactory.ABOUT.create(getWindow()); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD)); register(aboutAction); openPreferencesAction = ActionFactory.PREFERENCES.create(getWindow()); register(openPreferencesAction); addBookmarkAction = IDEActionFactory.BOOKMARK.create(getWindow()); register(addBookmarkAction); addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow()); register(addTaskAction); deleteAction = ActionFactory.DELETE.create(getWindow()); register(deleteAction); AboutInfo[] infos = IDEWorkbenchPlugin.getDefault().getFeatureInfos(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = IDEActionFactory.QUICK_START .create(getWindow()); register(quickStartAction); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = IDEActionFactory.TIPS_AND_TRICKS .create(getWindow()); register(tipsAndTricksAction); break; } } // Actions for invisible accelerators showViewMenuAction = ActionFactory.SHOW_VIEW_MENU.create(getWindow()); register(showViewMenuAction); showPartPaneMenuAction = ActionFactory.SHOW_PART_PANE_MENU .create(getWindow()); register(showPartPaneMenuAction); nextEditorAction = ActionFactory.NEXT_EDITOR.create(getWindow()); register(nextEditorAction); prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); register(prevEditorAction); ActionFactory.linkCycleActionPair(nextEditorAction, prevEditorAction); nextPartAction = ActionFactory.NEXT_PART.create(getWindow()); register(nextPartAction); prevPartAction = ActionFactory.PREVIOUS_PART.create(getWindow()); register(prevPartAction); ActionFactory.linkCycleActionPair(nextPartAction, prevPartAction); nextPerspectiveAction = ActionFactory.NEXT_PERSPECTIVE .create(getWindow()); register(nextPerspectiveAction); prevPerspectiveAction = ActionFactory.PREVIOUS_PERSPECTIVE .create(getWindow()); register(prevPerspectiveAction); ActionFactory.linkCycleActionPair(nextPerspectiveAction, prevPerspectiveAction); activateEditorAction = ActionFactory.ACTIVATE_EDITOR .create(getWindow()); register(activateEditorAction); maximizePartAction = ActionFactory.MAXIMIZE.create(getWindow()); register(maximizePartAction); minimizePartAction = ActionFactory.MINIMIZE.create(getWindow()); register(minimizePartAction); workbenchEditorsAction = ActionFactory.SHOW_OPEN_EDITORS .create(getWindow()); register(workbenchEditorsAction); workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(getWindow()); register(workbookEditorsAction); hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(getWindow()); register(hideShowEditorAction); savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE .create(getWindow()); register(savePerspectiveAction); editActionSetAction = ActionFactory.EDIT_ACTION_SETS .create(getWindow()); register(editActionSetAction); lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(getWindow()); register(lockToolBarAction); resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE .create(getWindow()); register(resetPerspectiveAction); closePerspAction = ActionFactory.CLOSE_PERSPECTIVE.create(getWindow()); register(closePerspAction); closeAllPerspsAction = ActionFactory.CLOSE_ALL_PERSPECTIVES .create(getWindow()); register(closeAllPerspsAction); forwardHistoryAction = ActionFactory.FORWARD_HISTORY .create(getWindow()); register(forwardHistoryAction); backwardHistoryAction = ActionFactory.BACKWARD_HISTORY .create(getWindow()); register(backwardHistoryAction); revertAction = ActionFactory.REVERT.create(getWindow()); register(revertAction); refreshAction = ActionFactory.REFRESH.create(getWindow()); register(refreshAction); propertiesAction = ActionFactory.PROPERTIES.create(getWindow()); register(propertiesAction); quitAction = ActionFactory.QUIT.create(getWindow()); register(quitAction); moveAction = ActionFactory.MOVE.create(getWindow()); register(moveAction); renameAction = ActionFactory.RENAME.create(getWindow()); register(renameAction); goIntoAction = ActionFactory.GO_INTO.create(getWindow()); register(goIntoAction); backAction = ActionFactory.BACK.create(getWindow()); register(backAction); forwardAction = ActionFactory.FORWARD.create(getWindow()); register(forwardAction); upAction = ActionFactory.UP.create(getWindow()); register(upAction); nextAction = ActionFactory.NEXT.create(getWindow()); nextAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV)); register(nextAction); previousAction = ActionFactory.PREVIOUS.create(getWindow()); previousAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV)); register(previousAction); buildProjectAction = IDEActionFactory.BUILD_PROJECT.create(getWindow()); register(buildProjectAction); openProjectAction = IDEActionFactory.OPEN_PROJECT.create(getWindow()); register(openProjectAction); closeProjectAction = IDEActionFactory.CLOSE_PROJECT.create(getWindow()); register(closeProjectAction); openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE .create(getWindow()); register(openWorkspaceAction); projectPropertyDialogAction = IDEActionFactory.OPEN_PROJECT_PROPERTIES .create(getWindow()); register(projectPropertyDialogAction); if (getWindow().getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); register(introAction); } String showInQuickMenuId = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$ showInQuickMenu = new QuickMenuAction(showInQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(ContributionItemFactory.VIEWS_SHOW_IN .create(getWindow())); } }; register(showInQuickMenu); final String newQuickMenuId = "org.eclipse.ui.file.newQuickMenu"; //$NON-NLS-1$ newQuickMenu = new QuickMenuAction(newQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(new NewWizardMenu(getWindow())); } }; register(newQuickMenu); pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR .create(getWindow()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1bde0643dd187b23bf57cd332e0997f6c371aaa1/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1221,
6100,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
3639,
368,
632,
13882,
1410,
7161,
628,
4659,
1180,
1733,
3639,
1267,
30038,
273,
394,
2685,
1670,
442,
4027,
1180,
2932,
2309,
442,
4027,
1180,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
394,
27130,
1803,
273,
4382,
1733,
18,
12917,
18,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
2704,
27130,
1803,
1769,
3639,
394,
27130,
7544,
4164,
1803,
273,
1599,
41,
1803,
1733,
18,
12917,
67,
59,
6867,
8085,
67,
18768,
67,
12711,
7734,
263,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
2704,
27130,
7544,
4164,
1803,
1769,
3639,
1930,
3805,
1803,
273,
4382,
1733,
18,
20445,
18,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
5666,
3805,
1803,
1769,
3639,
3359,
3805,
1803,
273,
4382,
1733,
18,
31275,
18,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
6530,
3805,
1803,
1769,
3639,
1361,
1595,
1803,
273,
1599,
41,
1803,
1733,
18,
20215,
18,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
3510,
1595,
1803,
1769,
3639,
2721,
1803,
273,
1599,
41,
1803,
1733,
18,
20215,
67,
39,
10439,
18,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
6200,
1803,
1769,
3639,
10486,
4965,
3116,
1803,
273,
1599,
41,
1803,
1733,
18,
20215,
67,
37,
1693,
1872,
11781,
4685,
61,
7734,
263,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
14401,
4965,
3116,
1803,
1769,
3639,
1923,
1803,
273,
4382,
1733,
18,
25242,
18,
2640,
12,
588,
3829,
10663,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1221,
6100,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
3639,
368,
632,
13882,
1410,
7161,
628,
4659,
1180,
1733,
3639,
1267,
30038,
273,
394,
2685,
1670,
442,
4027,
1180,
2932,
2309,
442,
4027,
1180,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
394,
27130,
1803,
273,
4382,
1733,
18,
12917,
18,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
2704,
27130,
1803,
1769,
3639,
394,
27130,
7544,
4164,
1803,
273,
1599,
41,
1803,
1733,
18,
12917,
67,
59,
6867,
8085,
67,
18768,
67,
12711,
7734,
263,
2640,
12,
588,
3829,
10663,
3639,
1744,
12,
2704,
27130,
7544,
4164,
1803,
1769,
3639,
1930,
3805,
1803,
273,
4382,
1733,
18,
20445,
18,
2640,
12,
588,
3829,
2
] |
public GroupMember(boolean usePullMode,int size) { setStateSize(size*MEGABYTE); setUsePullMode(usePullMode);
|
public GroupMember(boolean pullMode,boolean dispMode,int size) { setStateSize(size*MEGABYTE); setUsePullMode(pullMode); setUseDispatcher(dispMode);
|
public GroupMember(boolean usePullMode,int size) { setStateSize(size*MEGABYTE); //1GB setUsePullMode(usePullMode); }
|
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/b51242f9dc9c826be15806808a1e3f52fe77ac3a/StreamingStateTransferTest.java/clean/tests/junit/org/jgroups/tests/StreamingStateTransferTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
3756,
4419,
12,
6494,
999,
9629,
2309,
16,
474,
963,
13,
288,
6862,
1082,
202,
542,
1119,
1225,
12,
1467,
14,
958,
43,
2090,
61,
1448,
1769,
368,
21,
5887,
1082,
202,
542,
3727,
9629,
2309,
12,
1202,
9629,
2309,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
3756,
4419,
12,
6494,
999,
9629,
2309,
16,
474,
963,
13,
288,
6862,
1082,
202,
542,
1119,
1225,
12,
1467,
14,
958,
43,
2090,
61,
1448,
1769,
368,
21,
5887,
1082,
202,
542,
3727,
9629,
2309,
12,
1202,
9629,
2309,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String desc = provider.getProviderDescription(); if (desc != null) { sb.append(desc); sb.append(' ');
|
if (writeField) { String desc = provider.getProviderDescription(); if (desc != null) { sb.append(desc); sb.append(' '); } sb.append(provider.getProviderValue()); sb.append(" - ");
|
private static void handleMessage(String message, int severity, IEditorValidationProvider provider) { if (message != null) { StringBuffer sb = new StringBuffer(); String desc = provider.getProviderDescription(); if (desc != null) { sb.append(desc); sb.append(' '); } sb.append(provider.getProviderValue()); sb.append(" - "); //$NON-NLS-1$ sb.append(message); provider.getValidator().setMessage(sb.toString()); provider.getValidator().setSeverity(severity); } }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/fb8c4ef1d26d1835feb42f13714640021ce078d5/EditorUtilities.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/EditorUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1640,
1079,
12,
780,
883,
16,
509,
11426,
16,
467,
6946,
4354,
2249,
2893,
13,
288,
202,
202,
430,
261,
2150,
480,
446,
13,
288,
1082,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
1082,
202,
780,
3044,
273,
2893,
18,
588,
2249,
3291,
5621,
1082,
202,
430,
261,
5569,
480,
446,
13,
288,
9506,
202,
18366,
18,
6923,
12,
5569,
1769,
9506,
202,
18366,
18,
6923,
2668,
28005,
1082,
202,
97,
1082,
202,
18366,
18,
6923,
12,
6778,
18,
588,
2249,
620,
10663,
1082,
202,
18366,
18,
6923,
2932,
300,
315,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
18366,
18,
6923,
12,
2150,
1769,
1082,
202,
6778,
18,
588,
5126,
7675,
542,
1079,
12,
18366,
18,
10492,
10663,
1082,
202,
6778,
18,
588,
5126,
7675,
542,
21630,
12,
27341,
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,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1640,
1079,
12,
780,
883,
16,
509,
11426,
16,
467,
6946,
4354,
2249,
2893,
13,
288,
202,
202,
430,
261,
2150,
480,
446,
13,
288,
1082,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
1082,
202,
780,
3044,
273,
2893,
18,
588,
2249,
3291,
5621,
1082,
202,
430,
261,
5569,
480,
446,
13,
288,
9506,
202,
18366,
18,
6923,
12,
5569,
1769,
9506,
202,
18366,
18,
6923,
2668,
28005,
1082,
202,
97,
1082,
202,
18366,
18,
6923,
12,
6778,
18,
588,
2249,
620,
10663,
1082,
202,
18366,
18,
6923,
2932,
300,
315,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
18366,
18,
6923,
12,
2150,
1769,
1082,
202,
6778,
18,
588,
5126,
2
] |
if (_context.clock().now() > _expiration) {
|
if (getContext().clock().now() > _expiration) {
|
public void runJob() { if (_context.clock().now() > _expiration) { if (_log.shouldLog(Log.WARN)) _log.warn("Timeout reached building tunnel (timeout = " + _timeoutMs + " expiration = " + new Date(_expiration) + ")"); fail(); return; } TunnelInfo peer = null; synchronized (_toBeRequested) { if (_toBeRequested.size() > 0) { _pool.addPendingTunnel(_tunnelGateway); peer = (TunnelInfo)_toBeRequested.remove(0); if ( (peer == null) || (peer.getThisHop() == null) ) { return; } else { // jump out of the synchronized block to request } } } if (peer != null) requestParticipation(peer); }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/e737e5c9507ed0d463dc9e45a8f63657f466b177/RequestTunnelJob.java/clean/router/java/src/net/i2p/router/tunnelmanager/RequestTunnelJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
309,
261,
29120,
7675,
18517,
7675,
3338,
1435,
405,
389,
19519,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
7734,
389,
1330,
18,
8935,
2932,
2694,
8675,
10504,
14825,
261,
4538,
273,
315,
397,
389,
4538,
6947,
397,
315,
7686,
273,
315,
397,
394,
2167,
24899,
19519,
13,
397,
7310,
1769,
5411,
2321,
5621,
5411,
327,
31,
3639,
289,
3639,
399,
8564,
966,
4261,
273,
446,
31,
3639,
3852,
261,
67,
869,
1919,
11244,
13,
288,
5411,
309,
261,
67,
869,
1919,
11244,
18,
1467,
1435,
405,
374,
13,
288,
7734,
389,
6011,
18,
1289,
8579,
20329,
24899,
19878,
5197,
1769,
7734,
4261,
273,
261,
20329,
966,
13,
67,
869,
1919,
11244,
18,
4479,
12,
20,
1769,
7734,
309,
261,
261,
12210,
422,
446,
13,
747,
261,
12210,
18,
588,
2503,
27461,
1435,
422,
446,
13,
262,
288,
10792,
327,
31,
7734,
289,
469,
288,
10792,
368,
11833,
596,
434,
326,
3852,
1203,
358,
590,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
261,
12210,
480,
446,
13,
5411,
590,
1988,
24629,
367,
12,
12210,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
309,
261,
29120,
7675,
18517,
7675,
3338,
1435,
405,
389,
19519,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
7734,
389,
1330,
18,
8935,
2932,
2694,
8675,
10504,
14825,
261,
4538,
273,
315,
397,
389,
4538,
6947,
397,
315,
7686,
273,
315,
397,
394,
2167,
24899,
19519,
13,
397,
7310,
1769,
5411,
2321,
5621,
5411,
327,
31,
3639,
289,
3639,
399,
8564,
966,
4261,
273,
446,
31,
3639,
3852,
261,
67,
869,
1919,
11244,
13,
288,
5411,
309,
261,
67,
869,
1919,
11244,
18,
1467,
1435,
405,
374,
13,
288,
7734,
389,
6011,
18,
1289,
8579,
20329,
24899,
19878,
5197,
1769,
7734,
4261,
273,
2
] |
initializePath(p_path);
|
initializePath(p_path, 0);
|
public void setPath(String p_path) throws MalformedURIException { if (p_path == null) { m_path = null; m_queryString = null; m_fragment = null; } else { initializePath(p_path); } }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/efd4719813963644e65ed39eed73dfffea14467a/URI.java/clean/src/org/apache/xerces/util/URI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16475,
12,
780,
293,
67,
803,
13,
1216,
13311,
3098,
503,
288,
565,
309,
261,
84,
67,
803,
422,
446,
13,
288,
1377,
312,
67,
803,
273,
446,
31,
1377,
312,
67,
2271,
780,
273,
446,
31,
1377,
312,
67,
11956,
273,
446,
31,
565,
289,
565,
469,
288,
1377,
4046,
743,
12,
84,
67,
803,
16,
374,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16475,
12,
780,
293,
67,
803,
13,
1216,
13311,
3098,
503,
288,
565,
309,
261,
84,
67,
803,
422,
446,
13,
288,
1377,
312,
67,
803,
273,
446,
31,
1377,
312,
67,
2271,
780,
273,
446,
31,
1377,
312,
67,
11956,
273,
446,
31,
565,
289,
565,
469,
288,
1377,
4046,
743,
12,
84,
67,
803,
16,
374,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
yaccValue = stringToken.toString(); return Token.tSTRING; }
|
yaccValue = stringToken.toString(); return Token.tSTRING; }
|
private int parseSingleQuotedString(int closeQuote, int openQuote) { ISourcePosition position = support.getPosition(); int c; int nest = 0; // int strstart = ruby.getSourceLine(); StringBuffer stringToken = new StringBuffer(); while ((c = nextc()) != closeQuote || nest > 0) { if (c == -1) { // ruby.setSourceLine(strstart); errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : // fall through if (c == closeQuote || (openQuote != 0 && c == openQuote)) { stringToken.append((char) c); continue; } stringToken.append('\\'); } } if (openQuote != 0) { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } stringToken.append((char) c); } lexState = LexState.EXPR_END; yaccValue = stringToken.toString(); return Token.tSTRING; }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
5281,
15919,
780,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
474,
276,
31,
202,
202,
474,
15095,
273,
374,
31,
202,
202,
759,
509,
609,
1937,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
780,
1892,
533,
1345,
273,
394,
6674,
5621,
202,
202,
17523,
14015,
71,
273,
1024,
71,
10756,
480,
1746,
10257,
747,
15095,
405,
374,
13,
288,
1082,
202,
430,
261,
71,
422,
300,
21,
13,
288,
9506,
202,
759,
22155,
18,
542,
1830,
1670,
12,
701,
1937,
1769,
9506,
202,
1636,
1503,
18,
4110,
668,
12,
45,
4229,
18,
31075,
900,
67,
3589,
16,
1754,
16,
4838,
18,
588,
780,
2932,
318,
29133,
67,
1080,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
374,
31,
1082,
202,
97,
1082,
202,
430,
261,
71,
422,
5282,
13,
288,
9506,
202,
71,
273,
1024,
71,
5621,
9506,
202,
9610,
261,
71,
13,
288,
6862,
202,
3593,
2337,
82,
11,
294,
25083,
202,
17143,
31,
6862,
202,
3593,
5282,
294,
25083,
202,
71,
273,
5282,
31,
25083,
202,
8820,
31,
6862,
202,
1886,
294,
25083,
202,
759,
4159,
3059,
25083,
202,
430,
261,
71,
422,
1746,
10257,
747,
261,
3190,
10257,
480,
374,
597,
276,
422,
1696,
10257,
3719,
288,
6862,
1082,
202,
1080,
1345,
18,
6923,
12443,
3001,
13,
276,
1769,
6862,
1082,
202,
17143,
31,
25083,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
5281,
15919,
780,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
474,
276,
31,
202,
202,
474,
15095,
273,
374,
31,
202,
202,
759,
509,
609,
1937,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
780,
1892,
533,
1345,
273,
394,
6674,
5621,
202,
202,
17523,
14015,
71,
273,
1024,
71,
10756,
480,
1746,
10257,
747,
15095,
405,
374,
13,
288,
1082,
202,
430,
261,
71,
422,
300,
21,
13,
288,
9506,
202,
759,
22155,
18,
542,
1830,
1670,
12,
701,
1937,
1769,
9506,
202,
1636,
1503,
18,
4110,
668,
12,
45,
4229,
18,
31075,
900,
67,
2
] |
String query = wrap(new String[] {
|
String query = fold(new String[] {
|
public void testLinRegPointMonth() { String query = wrap(new String[] { "WITH MEMBER ", "[Measures].[Test] as ", " 'LinRegPoint(", " Rank(Time.CurrentMember, Time.CurrentMember.Level.Members),", " Descendants([Time].[1997], [Time].[Month]), ", " [Measures].[Store Sales], ", " Rank(Time.CurrentMember, Time.CurrentMember.Level.Members)", " )' ", "SELECT ", " {[Measures].[Test],[Measures].[Store Sales]} ON ROWS, ", " Descendants([Time].[1997], [Time].[Month]) ON COLUMNS ", "FROM Sales"}); String expected = wrap(new String[] { "Axis #0:", "{}", "Axis #1:", "{[Time].[1997].[Q1].[1]}", "{[Time].[1997].[Q1].[2]}", "{[Time].[1997].[Q1].[3]}", "{[Time].[1997].[Q2].[4]}", "{[Time].[1997].[Q2].[5]}", "{[Time].[1997].[Q2].[6]}", "{[Time].[1997].[Q3].[7]}", "{[Time].[1997].[Q3].[8]}", "{[Time].[1997].[Q3].[9]}", "{[Time].[1997].[Q4].[10]}", "{[Time].[1997].[Q4].[11]}", "{[Time].[1997].[Q4].[12]}", "Axis #2:", "{[Measures].[Test]}", "{[Measures].[Store Sales]}", "Row #0: 43,824.36", "Row #0: 44,420.51", "Row #0: 45,016.66", "Row #0: 45,612.81", "Row #0: 46,208.95", "Row #0: 46,805.10", "Row #0: 47,401.25", "Row #0: 47,997.40", "Row #0: 48,593.55", "Row #0: 49,189.70", "Row #0: 49,785.85", "Row #0: 50,382.00", "Row #1: 45,539.69", "Row #1: 44,058.79", "Row #1: 50,029.87", "Row #1: 42,878.25", "Row #1: 44,456.29", "Row #1: 45,331.73", "Row #1: 50,246.88", "Row #1: 46,199.04", "Row #1: 43,825.97", "Row #1: 42,342.27", "Row #1: 53,363.71", "Row #1: 56,965.64" + nl}); assertQueryReturns(query, expected); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/bb703add381acf854e2d5aed1045911b7ab143b4/FunctionTest.java/buggy/testsrc/main/mondrian/olap/fun/FunctionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
48,
267,
1617,
2148,
5445,
1435,
288,
3639,
514,
843,
273,
11590,
12,
2704,
514,
8526,
288,
5411,
315,
9147,
18990,
6271,
3104,
5411,
5158,
23177,
1823,
8009,
63,
4709,
65,
487,
3104,
5411,
315,
225,
296,
48,
267,
1617,
2148,
2932,
16,
5411,
315,
565,
534,
2304,
12,
950,
18,
3935,
4419,
16,
2647,
18,
3935,
4419,
18,
2355,
18,
6918,
3631,
3113,
5411,
315,
565,
13913,
409,
4388,
3816,
950,
8009,
63,
19818,
27,
6487,
306,
950,
8009,
63,
5445,
65,
3631,
3104,
5411,
315,
565,
306,
23177,
1823,
8009,
63,
2257,
25996,
6487,
3104,
5411,
315,
565,
534,
2304,
12,
950,
18,
3935,
4419,
16,
2647,
18,
3935,
4419,
18,
2355,
18,
6918,
2225,
16,
5411,
315,
225,
262,
11,
3104,
5411,
315,
4803,
3104,
5411,
315,
225,
288,
63,
23177,
1823,
8009,
63,
4709,
6487,
63,
23177,
1823,
8009,
63,
2257,
25996,
18322,
6229,
6525,
2651,
16,
3104,
5411,
315,
225,
13913,
409,
4388,
3816,
950,
8009,
63,
19818,
27,
6487,
306,
950,
8009,
63,
5445,
5717,
6229,
5597,
19639,
3104,
5411,
315,
11249,
25996,
6,
22938,
3639,
514,
2665,
273,
2193,
12,
2704,
514,
8526,
288,
5411,
315,
6558,
468,
20,
2773,
16,
5411,
13034,
16,
5411,
315,
6558,
468,
21,
2773,
16,
5411,
4144,
63,
950,
8009,
63,
19818,
27,
8009,
63,
53,
21,
8009,
63,
21,
20817,
16,
5411,
4144,
63,
950,
8009,
63,
19818,
27,
8009,
63,
53,
21,
8009,
63,
22,
20817,
16,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
48,
267,
1617,
2148,
5445,
1435,
288,
3639,
514,
843,
273,
11590,
12,
2704,
514,
8526,
288,
5411,
315,
9147,
18990,
6271,
3104,
5411,
5158,
23177,
1823,
8009,
63,
4709,
65,
487,
3104,
5411,
315,
225,
296,
48,
267,
1617,
2148,
2932,
16,
5411,
315,
565,
534,
2304,
12,
950,
18,
3935,
4419,
16,
2647,
18,
3935,
4419,
18,
2355,
18,
6918,
3631,
3113,
5411,
315,
565,
13913,
409,
4388,
3816,
950,
8009,
63,
19818,
27,
6487,
306,
950,
8009,
63,
5445,
65,
3631,
3104,
5411,
315,
565,
306,
23177,
1823,
8009,
63,
2257,
25996,
6487,
3104,
5411,
315,
565,
534,
2304,
12,
950,
18,
3935,
4419,
16,
2647,
18,
3935,
4419,
18,
2355,
18,
2
] |
if(corr != null) { corr.stop(); corr=null; } }
|
prot_adapter.acquireUpLock(); if (corr != null) { corr.stop(); corr = null; } }
|
public void stop() { if(corr != null) { corr.stop(); corr=null; } }
|
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/de11e563cde19970f8491cbb8d689fbc8fd53f0f/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
1435,
288,
3639,
309,
12,
17515,
480,
446,
13,
288,
5411,
19480,
18,
5681,
5621,
5411,
19480,
33,
2011,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
1435,
288,
3639,
309,
12,
17515,
480,
446,
13,
288,
5411,
19480,
18,
5681,
5621,
5411,
19480,
33,
2011,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.gbeanInstanceState = new GBeanInstanceState(objectName, kernel, dependencyManager, new GBeanLifecycleCallback(), lifecycleBroadcaster);
|
this.gbeanInstanceState = new GBeanInstanceState(objectName, kernel, dependencyManager, this, lifecycleBroadcaster);
|
public GBeanInstance(GBeanData gbeanData, Kernel kernel, DependencyManager dependencyManager, LifecycleBroadcaster lifecycleBroadcaster, ClassLoader classLoader) throws InvalidConfigurationException { this.objectName = gbeanData.getName(); this.kernel = kernel; this.lifecycleBroadcaster = lifecycleBroadcaster; this.gbeanInstanceState = new GBeanInstanceState(objectName, kernel, dependencyManager, new GBeanLifecycleCallback(), lifecycleBroadcaster); this.classLoader = classLoader; gbeanLifecycleController = new GBeanInstanceLifecycleController(this); GBeanInfo gbeanInfo = gbeanData.getGBeanInfo(); try { type = classLoader.loadClass(gbeanInfo.getClassName()); } catch (ClassNotFoundException e) { throw new InvalidConfigurationException("Could not load GBeanInfo class from classloader: " + " className=" + gbeanInfo.getClassName()); } name = gbeanInfo.getName(); // Set constructorArgs = new HashSet(gbeanInfo.getConstructor().getAttributeNames()); // attributes Map attributesMap = new HashMap(); for (Iterator iterator = gbeanInfo.getAttributes().iterator(); iterator.hasNext();) { GAttributeInfo attributeInfo = (GAttributeInfo) iterator.next(); attributesMap.put(attributeInfo.getName(), new GBeanAttribute(this, attributeInfo, constructorArgs.contains(attributeInfo.getName()))); } addManagedObjectAttributes(attributesMap); attributes = (GBeanAttribute[]) attributesMap.values().toArray(new GBeanAttribute[attributesMap.size()]); for (int i = 0; i < attributes.length; i++) { attributeIndex.put(attributes[i].getName(), new Integer(i)); } // references Set referencesSet = new HashSet(); for (Iterator iterator = gbeanInfo.getReferences().iterator(); iterator.hasNext();) { GReferenceInfo referenceInfo = (GReferenceInfo) iterator.next(); if (referenceInfo.getProxyType().equals(Collection.class.getName())) { referencesSet.add(new GBeanCollectionReference(this, referenceInfo, kernel, dependencyManager)); } else { referencesSet.add(new GBeanSingleReference(this, referenceInfo, kernel, dependencyManager)); } } references = (GBeanReference[]) referencesSet.toArray(new GBeanReference[gbeanInfo.getReferences().size()]); for (int i = 0; i < references.length; i++) { referenceIndex.put(references[i].getName(), new Integer(i)); } // operations Map operationsMap = new HashMap(); addManagedObjectOperations(operationsMap); for (Iterator iterator = gbeanInfo.getOperations().iterator(); iterator.hasNext();) { GOperationInfo operationInfo = (GOperationInfo) iterator.next(); GOperationSignature signature = new GOperationSignature(operationInfo.getName(), operationInfo.getParameterList()); // do not allow overriding of framework operations if (!operationsMap.containsKey(signature)) { GBeanOperation operation = new GBeanOperation(this, operationInfo); operationsMap.put(signature, operation); } } operations = new GBeanOperation[operationsMap.size()]; int opCounter = 0; for (Iterator iterator = operationsMap.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry)iterator.next(); operations[opCounter] = (GBeanOperation) entry.getValue(); operationIndex.put(entry.getKey(), new Integer(opCounter)); opCounter++; } // get the constructor List arguments = gbeanInfo.getConstructor().getAttributeNames(); Class[] parameterTypes = new Class[arguments.size()]; for (int i = 0; i < parameterTypes.length; i++) { String argumentName = (String) arguments.get(i); if (attributeIndex.containsKey(argumentName)) { Integer index = (Integer) attributeIndex.get(argumentName); GBeanAttribute attribute = attributes[index.intValue()]; parameterTypes[i] = attribute.getType(); } else if (referenceIndex.containsKey(argumentName)) { Integer index = (Integer) referenceIndex.get(argumentName); GBeanReference reference = references[index.intValue()]; parameterTypes[i] = reference.getProxyType(); } } try { constructor = type.getConstructor(parameterTypes); } catch (NoSuchMethodException e) { throw new InvalidConfigurationException("Could not find a valid constructor for GBean: " + gbeanInfo.getName()); } // rebuild the gbean info based on the current attributes, operations, and references because // the above code add new attributes and operations this.gbeanInfo = rebuildGBeanInfo(gbeanInfo.getConstructor(), gbeanInfo.getJ2eeType()); // create the raw invokers rawInvoker = new RawInvoker(this); // set the initial attribute values try { setGBeanData(gbeanData); } catch (Exception e) { throw new InvalidConfigurationException("GBeanData could not be loaded into the GBeanMBean", e); } for (int i = 0; i < references.length; i++) { references[i].online(); } lifecycleBroadcaster.fireLoadedEvent(); }
|
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/fdb31f0ed391724e584b6529964c8418bd55bf61/GBeanInstance.java/clean/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
611,
3381,
1442,
12,
43,
3381,
751,
314,
14496,
751,
16,
14556,
5536,
16,
11993,
1318,
4904,
1318,
16,
14283,
38,
26674,
6596,
38,
26674,
16,
9403,
11138,
13,
1216,
1962,
10737,
288,
3639,
333,
18,
1612,
461,
273,
314,
14496,
751,
18,
17994,
5621,
3639,
333,
18,
8111,
273,
5536,
31,
3639,
333,
18,
10256,
4578,
38,
26674,
273,
6596,
38,
26674,
31,
3639,
333,
18,
75,
14496,
30552,
273,
394,
611,
3381,
30552,
12,
1612,
461,
16,
5536,
16,
4904,
1318,
16,
333,
16,
6596,
38,
26674,
1769,
3639,
333,
18,
1106,
2886,
273,
11138,
31,
3639,
314,
14496,
9977,
2933,
273,
394,
611,
3381,
1442,
9977,
2933,
12,
2211,
1769,
3639,
611,
3381,
966,
314,
14496,
966,
273,
314,
14496,
751,
18,
588,
43,
3381,
966,
5621,
3639,
775,
288,
5411,
618,
273,
11138,
18,
945,
797,
12,
75,
14496,
966,
18,
588,
3834,
10663,
3639,
289,
1044,
261,
797,
3990,
425,
13,
288,
5411,
604,
394,
1962,
10737,
2932,
4445,
486,
1262,
611,
3381,
966,
667,
628,
20595,
30,
315,
397,
10792,
315,
2658,
1546,
397,
314,
14496,
966,
18,
588,
3834,
10663,
3639,
289,
3639,
508,
273,
314,
14496,
966,
18,
17994,
5621,
3639,
368,
3639,
1000,
3885,
2615,
273,
394,
6847,
12,
75,
14496,
966,
18,
588,
6293,
7675,
588,
26080,
10663,
3639,
368,
1677,
3639,
1635,
1677,
863,
273,
394,
4317,
5621,
3639,
364,
261,
3198,
2775,
273,
314,
14496,
966,
18,
588,
2498,
7675,
9838,
5621,
2775,
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,
611,
3381,
1442,
12,
43,
3381,
751,
314,
14496,
751,
16,
14556,
5536,
16,
11993,
1318,
4904,
1318,
16,
14283,
38,
26674,
6596,
38,
26674,
16,
9403,
11138,
13,
1216,
1962,
10737,
288,
3639,
333,
18,
1612,
461,
273,
314,
14496,
751,
18,
17994,
5621,
3639,
333,
18,
8111,
273,
5536,
31,
3639,
333,
18,
10256,
4578,
38,
26674,
273,
6596,
38,
26674,
31,
3639,
333,
18,
75,
14496,
30552,
273,
394,
611,
3381,
30552,
12,
1612,
461,
16,
5536,
16,
4904,
1318,
16,
333,
16,
6596,
38,
26674,
1769,
3639,
333,
18,
1106,
2886,
273,
11138,
31,
3639,
314,
14496,
9977,
2933,
273,
394,
611,
3381,
1442,
9977,
2933,
12,
2211,
1769,
3639,
611,
3381,
966,
2
] |
throw new GiveUpException();
|
throw new PasswordCallback.GiveUpException();
|
public Password getPasswordFirstAttempt(PasswordCallbackInfo info) throws GiveUpException { String pw = passwords.getProperty(info.getName()); if( pw == null ) { throw new GiveUpException(); } else { System.out.println("***FilePasswordCallback returns " + pw); return new Password(pw.toCharArray()); } }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/fe199405d1e9dc77ed9557a4b6d27af14962a022/FilePasswordCallback.java/buggy/security/jss/org/mozilla/jss/tests/FilePasswordCallback.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9234,
17397,
3759,
7744,
12,
3913,
2428,
966,
1123,
13,
202,
202,
15069,
22374,
1211,
503,
565,
288,
3639,
514,
8772,
273,
24210,
18,
588,
1396,
12,
1376,
18,
17994,
10663,
3639,
309,
12,
8772,
422,
446,
262,
288,
5411,
604,
394,
9234,
2428,
18,
43,
688,
1211,
503,
5621,
3639,
289,
469,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
14465,
812,
3913,
2428,
1135,
315,
397,
8772,
1769,
5411,
327,
394,
9234,
12,
14921,
18,
869,
15936,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9234,
17397,
3759,
7744,
12,
3913,
2428,
966,
1123,
13,
202,
202,
15069,
22374,
1211,
503,
565,
288,
3639,
514,
8772,
273,
24210,
18,
588,
1396,
12,
1376,
18,
17994,
10663,
3639,
309,
12,
8772,
422,
446,
262,
288,
5411,
604,
394,
9234,
2428,
18,
43,
688,
1211,
503,
5621,
3639,
289,
469,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
14465,
812,
3913,
2428,
1135,
315,
397,
8772,
1769,
5411,
327,
394,
9234,
12,
14921,
18,
869,
15936,
10663,
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
] |
super(ruby, rubyClass); }
|
super(ruby, rubyClass); }
|
public RubyException(Ruby ruby, RubyClass rubyClass) { super(ruby, rubyClass); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/buggy/org/jruby/RubyException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
503,
12,
54,
10340,
22155,
16,
19817,
797,
22155,
797,
13,
288,
202,
202,
9565,
12,
27768,
16,
22155,
797,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
19817,
503,
12,
54,
10340,
22155,
16,
19817,
797,
22155,
797,
13,
288,
202,
202,
9565,
12,
27768,
16,
22155,
797,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 1; i < elements.length; i++) { IRubyObject stackTraceLine = elements[i]; if (stackTraceLine instanceof RubyString) { printStackTraceLine(errorStream, stackTraceLine); }
|
for (int i = 1; i < elements.length; i++) { IRubyObject stackTraceLine = elements[i]; if (stackTraceLine instanceof RubyString) { printStackTraceLine(errorStream, stackTraceLine); }
|
public void printBacktrace(PrintStream errorStream) { IRubyObject[] elements = ((RubyArray) backtrace()).toJavaArray(); for (int i = 1; i < elements.length; i++) { IRubyObject stackTraceLine = elements[i]; if (stackTraceLine instanceof RubyString) { printStackTraceLine(errorStream, stackTraceLine); } if (i == RubyException.TRACE_HEAD && elements.length > RubyException.TRACE_MAX) { int hiddenLevels = elements.length - RubyException.TRACE_HEAD - RubyException.TRACE_TAIL; errorStream.print("\t ... " + hiddenLevels + " levels...\n"); i = elements.length - RubyException.TRACE_TAIL; } } }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/fe628a940467ceda783730ea34173dec3d365fa4/RubyException.java/buggy/src/org/jruby/RubyException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
2711,
5129,
12,
5108,
1228,
555,
1228,
13,
288,
202,
202,
7937,
10340,
921,
8526,
2186,
273,
14015,
54,
10340,
1076,
13,
13902,
1435,
2934,
869,
5852,
1076,
5621,
1082,
202,
1884,
261,
474,
277,
273,
404,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
1082,
565,
15908,
10340,
921,
22327,
1670,
273,
2186,
63,
77,
15533,
1082,
202,
430,
261,
3772,
3448,
1670,
1276,
19817,
780,
13,
288,
1082,
3639,
7973,
1670,
12,
1636,
1228,
16,
22327,
1670,
1769,
1082,
565,
289,
9506,
565,
309,
261,
77,
422,
19817,
503,
18,
23827,
67,
12458,
597,
2186,
18,
2469,
405,
19817,
503,
18,
23827,
67,
6694,
13,
288,
1082,
3639,
509,
5949,
12240,
273,
2186,
18,
2469,
300,
19817,
503,
18,
23827,
67,
12458,
300,
19817,
503,
18,
23827,
67,
56,
6575,
31,
9506,
202,
1636,
1228,
18,
1188,
31458,
88,
1372,
315,
397,
5949,
12240,
397,
315,
7575,
2777,
64,
82,
8863,
1082,
3639,
277,
273,
2186,
18,
2469,
300,
19817,
503,
18,
23827,
67,
56,
6575,
31,
1082,
565,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
2711,
5129,
12,
5108,
1228,
555,
1228,
13,
288,
202,
202,
7937,
10340,
921,
8526,
2186,
273,
14015,
54,
10340,
1076,
13,
13902,
1435,
2934,
869,
5852,
1076,
5621,
1082,
202,
1884,
261,
474,
277,
273,
404,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
1082,
565,
15908,
10340,
921,
22327,
1670,
273,
2186,
63,
77,
15533,
1082,
202,
430,
261,
3772,
3448,
1670,
1276,
19817,
780,
13,
288,
1082,
3639,
7973,
1670,
12,
1636,
1228,
16,
22327,
1670,
1769,
1082,
565,
289,
9506,
565,
309,
261,
77,
422,
19817,
503,
18,
23827,
67,
12458,
597,
2186,
18,
2469,
405,
19817,
503,
18,
23827,
67,
6694,
13,
288,
1082,
3639,
509,
5949,
2
] |
String redirectURLString = NetUtils.pathInfoParametersToRelativeURL(pathInfo, parameters);
|
public void sendRedirect(String pathInfo, Map parameters, boolean isServerSide, boolean isExitPortal) throws IOException { // Create URL String redirectURLString = NetUtils.pathInfoParametersToRelativeURL(pathInfo, parameters); if (isServerSide) { // Server-side redirect: do a forward javax.servlet.RequestDispatcher requestDispatcher = nativeRequest.getRequestDispatcher(redirectURLString); try { // Destroy the pipeline context before doing the forward. Nothing significant // should allowed on "this side" of the forward after the forward return. pipelineContext.destroy(true); // Execute the forward requestDispatcher.forward(nativeRequest, nativeResponse); } catch (ServletException e) { throw new OXFException(e); } } else { // Client-side redirect: send the redirect to the client if (redirectURLString.startsWith("/")) nativeResponse.sendRedirect(request.getContextPath() + redirectURLString); else nativeResponse.sendRedirect(redirectURLString); } }
|
10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/bc77586c7e2643601f26c7dc5c54bec11d87d3b2/ServletExternalContext.java/buggy/src/java/org/orbeon/oxf/servlet/ServletExternalContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1366,
5961,
12,
780,
17058,
16,
1635,
1472,
16,
1250,
353,
2081,
8895,
16,
1250,
353,
6767,
24395,
13,
1216,
1860,
288,
5411,
368,
1788,
1976,
15604,
309,
261,
291,
2081,
8895,
13,
288,
7734,
368,
3224,
17,
5564,
3136,
30,
741,
279,
5104,
7734,
6863,
18,
23231,
18,
691,
6681,
590,
6681,
273,
6448,
691,
18,
588,
691,
6681,
12,
7590,
1785,
780,
1769,
7734,
775,
288,
10792,
368,
15701,
326,
5873,
819,
1865,
9957,
326,
5104,
18,
13389,
14177,
10792,
368,
1410,
2935,
603,
315,
2211,
4889,
6,
434,
326,
5104,
1839,
326,
5104,
327,
18,
10792,
5873,
1042,
18,
11662,
12,
3767,
1769,
10792,
368,
7903,
326,
5104,
10792,
590,
6681,
18,
11565,
12,
13635,
691,
16,
6448,
1064,
1769,
7734,
289,
1044,
261,
4745,
503,
425,
13,
288,
10792,
604,
394,
531,
60,
42,
503,
12,
73,
1769,
7734,
289,
5411,
289,
469,
288,
7734,
368,
2445,
17,
5564,
3136,
30,
1366,
326,
3136,
358,
326,
1004,
7734,
309,
261,
7590,
1785,
780,
18,
17514,
1190,
2932,
4898,
3719,
10792,
6448,
1064,
18,
4661,
5961,
12,
2293,
18,
29120,
743,
1435,
397,
3136,
1785,
780,
1769,
7734,
469,
10792,
6448,
1064,
18,
4661,
5961,
12,
7590,
1785,
780,
1769,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1366,
5961,
12,
780,
17058,
16,
1635,
1472,
16,
1250,
353,
2081,
8895,
16,
1250,
353,
6767,
24395,
13,
1216,
1860,
288,
5411,
368,
1788,
1976,
15604,
309,
261,
291,
2081,
8895,
13,
288,
7734,
368,
3224,
17,
5564,
3136,
30,
741,
279,
5104,
7734,
6863,
18,
23231,
18,
691,
6681,
590,
6681,
273,
6448,
691,
18,
588,
691,
6681,
12,
7590,
1785,
780,
1769,
7734,
775,
288,
10792,
368,
15701,
326,
5873,
819,
1865,
9957,
326,
5104,
18,
13389,
14177,
10792,
368,
1410,
2935,
603,
315,
2211,
4889,
6,
434,
326,
5104,
1839,
326,
5104,
327,
18,
10792,
5873,
1042,
18,
11662,
12,
3767,
1769,
10792,
368,
7903,
326,
5104,
10792,
590,
6681,
18,
11565,
2
] |
|
public static GeoSampleCorrespondence findGSECorrespondence( GeoSeries series ) {
|
public GeoSampleCorrespondence findGSECorrespondence( GeoSeries series ) {
|
public static GeoSampleCorrespondence findGSECorrespondence( GeoSeries series ) { if ( series.getDatasets() != null && series.getDatasets().size() > 0 ) { return findGSECorrespondence( series.getDatasets() ); } LinkedHashMap<String, String> accToTitle = new LinkedHashMap<String, String>(); LinkedHashMap<String, String> accToPlatform = new LinkedHashMap<String, String>(); LinkedHashMap<String, String> accToOrganism = new LinkedHashMap<String, String>(); int numPlatforms = fillAccessionMaps( series, accToTitle, accToPlatform, accToOrganism ); return findCorrespondence( numPlatforms, accToTitle, accToPlatform, accToOrganism ); }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/a38ec5b62d473dbb459399b7f03a372b314f1d88/DatasetCombiner.java/buggy/gemma-core/src/main/java/ubic/gemma/loader/expression/geo/DatasetCombiner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9385,
8504,
6217,
17863,
802,
1104,
43,
1090,
6217,
17863,
802,
12,
9385,
6485,
4166,
262,
288,
3639,
309,
261,
4166,
18,
588,
14305,
2413,
1435,
480,
446,
597,
4166,
18,
588,
14305,
2413,
7675,
1467,
1435,
405,
374,
262,
288,
5411,
327,
1104,
43,
1090,
6217,
17863,
802,
12,
4166,
18,
588,
14305,
2413,
1435,
11272,
3639,
289,
3639,
13589,
32,
780,
16,
514,
34,
4078,
774,
4247,
273,
394,
13589,
32,
780,
16,
514,
34,
5621,
3639,
13589,
32,
780,
16,
514,
34,
4078,
774,
8201,
273,
394,
13589,
32,
780,
16,
514,
34,
5621,
3639,
13589,
32,
780,
16,
514,
34,
4078,
774,
6001,
304,
6228,
273,
394,
13589,
32,
780,
16,
514,
34,
5621,
3639,
509,
818,
8201,
87,
273,
3636,
1862,
285,
8903,
12,
4166,
16,
4078,
774,
4247,
16,
4078,
774,
8201,
16,
4078,
774,
6001,
304,
6228,
11272,
3639,
327,
1104,
6217,
17863,
802,
12,
818,
8201,
87,
16,
4078,
774,
4247,
16,
4078,
774,
8201,
16,
4078,
774,
6001,
304,
6228,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9385,
8504,
6217,
17863,
802,
1104,
43,
1090,
6217,
17863,
802,
12,
9385,
6485,
4166,
262,
288,
3639,
309,
261,
4166,
18,
588,
14305,
2413,
1435,
480,
446,
597,
4166,
18,
588,
14305,
2413,
7675,
1467,
1435,
405,
374,
262,
288,
5411,
327,
1104,
43,
1090,
6217,
17863,
802,
12,
4166,
18,
588,
14305,
2413,
1435,
11272,
3639,
289,
3639,
13589,
32,
780,
16,
514,
34,
4078,
774,
4247,
273,
394,
13589,
32,
780,
16,
514,
34,
5621,
3639,
13589,
32,
780,
16,
514,
34,
4078,
774,
8201,
273,
394,
13589,
32,
780,
16,
514,
34,
5621,
3639,
13589,
32,
780,
16,
514,
34,
4078,
774,
6001,
304,
6228,
273,
394,
13589,
32,
780,
16,
514,
34,
2
] |
return RubySymbol.getSymbol(runtime, value).convertToString();
|
return RubySymbol.getSymbol(getRuntime(), value).convertToString();
|
public IRubyObject id2name() { return RubySymbol.getSymbol(runtime, value).convertToString(); }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
612,
22,
529,
1435,
288,
3639,
327,
19817,
5335,
18,
588,
5335,
12,
588,
5576,
9334,
460,
2934,
6283,
5808,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
612,
22,
529,
1435,
288,
3639,
327,
19817,
5335,
18,
588,
5335,
12,
588,
5576,
9334,
460,
2934,
6283,
5808,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int nameOffset = storage.getOffset(); int nameLength = storage.getLength();
|
public void run() { final SelSearchNode selNode = getSelectedStringFromEditor(); if(selNode == null) { return; } final Storage storage = new Storage(); IRunnableWithProgress runnable = new IRunnableWithProgress() { // steps: // 1- parse and get the best selected name based on the offset/length into that TU // 2- based on the IASTName selected, find the best declaration of it in the TU // 3- if no IASTName is found for a declaration, then search the Index public void run(IProgressMonitor monitor) { int selectionStart = selNode.selStart; int selectionLength = selNode.selEnd - selNode.selStart; IASTName[] selectedNames = BLANK_NAME_ARRAY; IASTTranslationUnit tu=null; ParserLanguage lang=null; if (fEditor.getEditorInput() instanceof ExternalEditorInput) { ExternalEditorInput input = (ExternalEditorInput)fEditor.getEditorInput(); try { // get the project for the external editor input's translation unit ICElement project = input.getTranslationUnit(); while (!(project instanceof ICProject) && project != null) { project = project.getParent(); } if (project instanceof ICProject) { tu = CDOM.getInstance().getASTService().getTranslationUnit(input.getStorage(), ((ICProject)project).getProject()); lang = DOMSearchUtil.getLanguage(input.getStorage().getFullPath(), ((ICProject)project).getProject()); projectName = ((ICProject)project).getElementName(); } } catch (UnsupportedDialectException e) { operationNotAvailable(CSEARCH_OPERATION_OPERATION_UNAVAILABLE_MESSAGE); return; } } else { IFile resourceFile = null; resourceFile = fEditor.getInputFile(); try { tu = CDOM.getInstance().getASTService().getTranslationUnit( resourceFile, CDOM.getInstance().getCodeReaderFactory( CDOM.PARSE_WORKING_COPY_WHENEVER_POSSIBLE)); } catch (IASTServiceProvider.UnsupportedDialectException e) { operationNotAvailable(CSEARCH_OPERATION_OPERATION_UNAVAILABLE_MESSAGE); return; } lang = DOMSearchUtil.getLanguageFromFile(resourceFile); projectName = findProjectName(resourceFile); } // step 1 starts here selectedNames = DOMSearchUtil.getSelectedNamesFrom(tu, selectionStart, selectionLength, lang); if (selectedNames.length > 0 && selectedNames[0] != null) { // just right, only one name selected IASTName searchName = selectedNames[0]; // step 2 starts here IASTName[] domNames = DOMSearchUtil.getNamesFromDOM(searchName, ICSearchConstants.DECLARATIONS); // make sure the names are clean (fix for 95202) boolean modified=false; for(int i=0; i<domNames.length; i++) { if (domNames[i].toCharArray().length == 0) { domNames[i] = null; modified=true; } } if (modified) domNames = (IASTName[])ArrayUtil.removeNulls(IASTName.class, domNames); if (domNames != null && domNames.length > 0 && domNames[0] != null) { String fileName=null; int start=0; int end=0; if ( domNames[0].getTranslationUnit() != null ) { IASTFileLocation location = domNames[0].getTranslationUnit().flattenLocationsToFile( domNames[0].getNodeLocations() ); fileName = location.getFileName(); start = location.getNodeOffset(); end = location.getNodeOffset() + location.getNodeLength(); } if (fileName != null) { storage.setFileName(fileName); storage.setLength(end - start); storage.setOffset(start); storage.setResource(ParserUtil.getResourceForFilename( fileName )); } else { operationNotAvailable(CSEARCH_OPERATION_NO_DECLARATION_MESSAGE); } } else { // step 3 starts here ICElement[] scope = new ICElement[1]; scope[0] = new CProject(null, fEditor.getInputFile().getProject()); Set matches = DOMSearchUtil.getMatchesFromSearchEngine(SearchEngine.createCSearchScope(scope), searchName, ICSearchConstants.DECLARATIONS); if (matches != null && matches.size() > 0) { Iterator itr = matches.iterator(); while(itr.hasNext()) { Object match = itr.next(); if (match instanceof IMatch) { IMatch theMatch = (IMatch)match; storage.setFileName(theMatch.getLocation().toOSString()); IMatchLocatable searchLocatable = theMatch.getLocatable(); int startOffset=0; int length=0; if (searchLocatable instanceof IOffsetLocatable){ startOffset = ((IOffsetLocatable)searchLocatable).getNameStartOffset(); length = ((IOffsetLocatable)searchLocatable).getNameEndOffset() - startOffset; } else if (searchLocatable instanceof ILineLocatable){ int tempstartOffset = ((ILineLocatable)searchLocatable).getStartLine(); IDocument doc =fEditor.getDocumentProvider().getDocument(fEditor.getEditorInput()); try { startOffset = doc.getLineOffset(tempstartOffset); length=doc.getLineLength(tempstartOffset); } catch (BadLocationException e) {} //Check to see if an end offset is provided int tempendOffset = ((ILineLocatable)searchLocatable).getEndLine(); //Make sure that there is a real value for the end line if (tempendOffset>0 && tempendOffset>tempstartOffset){ try { int endOffset = doc.getLineOffset(tempendOffset); length=endOffset - startOffset; } catch (BadLocationException e) {} } } storage.setLength(length); storage.setOffset(startOffset); storage.setResource(ParserUtil.getResourceForFilename(theMatch.getLocation().toOSString())); break; } } } else { operationNotAvailable(CSEARCH_OPERATION_NO_DECLARATION_MESSAGE); } } } else if (selectedNames.length == 0){ operationNotAvailable(CSEARCH_OPERATION_NO_NAMES_SELECTED_MESSAGE); return; } else { operationNotAvailable(CSEARCH_OPERATION_TOO_MANY_NAMES_MESSAGE); return; } return; } private String findProjectName(IFile resourceFile) { if( resourceFile == null ) return ""; //$NON-NLS-1$ IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for( int i = 0; i < projects.length; ++i ) { if( projects[i].contains(resourceFile) ) return projects[i].getName(); } return ""; //$NON-NLS-1$ } }; try { ProgressMonitorDialog progressMonitor = new ProgressMonitorDialog(getShell()); progressMonitor.run(true, true, runnable); int nameOffset = storage.getOffset(); int nameLength = storage.getLength(); if( storage.getResource() != null ) { clearStatusLine(); open( storage.getResource(), nameOffset, nameLength ); return; } String fileName = storage.getFileName(); if (fileName != null){ clearStatusLine(); open( fileName, nameOffset, nameLength); } } catch(Exception x) { CUIPlugin.getDefault().log(x); } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/55f4eca137780a666f5cfbdc8a1a4f86f2c19224/OpenDeclarationsAction.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
6385,
4352,
2979,
907,
357,
907,
273,
16625,
780,
1265,
6946,
5621,
9506,
202,
430,
12,
1786,
907,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6385,
5235,
2502,
273,
394,
5235,
5621,
202,
202,
45,
20013,
1190,
5491,
14685,
273,
394,
467,
20013,
1190,
5491,
1435,
3196,
202,
95,
1082,
202,
759,
6075,
30,
1082,
202,
759,
404,
17,
1109,
471,
336,
326,
3796,
3170,
508,
2511,
603,
326,
1384,
19,
2469,
1368,
716,
399,
57,
1082,
202,
759,
576,
17,
2511,
603,
326,
467,
9053,
461,
3170,
16,
1104,
326,
3796,
8266,
434,
518,
316,
326,
399,
57,
1082,
202,
759,
890,
17,
309,
1158,
467,
9053,
461,
353,
1392,
364,
279,
8266,
16,
1508,
1623,
326,
3340,
1082,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
474,
4421,
1685,
273,
357,
907,
18,
1786,
1685,
31,
9506,
202,
474,
4421,
1782,
273,
357,
907,
18,
1786,
1638,
300,
357,
907,
18,
1786,
1685,
31,
27573,
467,
9053,
461,
8526,
3170,
1557,
273,
29727,
67,
1985,
67,
8552,
31,
7734,
467,
9053,
6717,
2802,
28325,
33,
2011,
31,
7734,
6783,
3779,
3303,
33,
2011,
31,
27573,
309,
261,
74,
6946,
18,
588,
6946,
1210,
1435,
1276,
11352,
6946,
1210,
13,
288,
10792,
11352,
6946,
1210,
810,
273,
261,
6841,
6946,
1210,
13,
74,
6946,
18,
588,
6946,
1210,
5621,
10792,
775,
288,
13491,
368,
336,
326,
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,
1086,
1435,
288,
202,
202,
6385,
4352,
2979,
907,
357,
907,
273,
16625,
780,
1265,
6946,
5621,
9506,
202,
430,
12,
1786,
907,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6385,
5235,
2502,
273,
394,
5235,
5621,
202,
202,
45,
20013,
1190,
5491,
14685,
273,
394,
467,
20013,
1190,
5491,
1435,
3196,
202,
95,
1082,
202,
759,
6075,
30,
1082,
202,
759,
404,
17,
1109,
471,
336,
326,
3796,
3170,
508,
2511,
603,
326,
1384,
19,
2469,
1368,
716,
399,
57,
1082,
202,
759,
576,
17,
2511,
603,
326,
467,
9053,
461,
3170,
16,
1104,
326,
3796,
8266,
434,
518,
316,
326,
399,
57,
1082,
202,
759,
890,
17,
2
] |
|
case IJavaElement.COMPILATION_UNIT:
|
protected int computeAdornmentFlags(Object obj) { try { if (obj instanceof IJavaElement) { IJavaElement element= (IJavaElement) obj; int type= element.getElementType(); switch (type) { case IJavaElement.JAVA_PROJECT: case IJavaElement.PACKAGE_FRAGMENT_ROOT: return getErrorTicksFromMarkers(element.getResource(), IResource.DEPTH_INFINITE, null); case IJavaElement.PACKAGE_FRAGMENT: case IJavaElement.CLASS_FILE: return getErrorTicksFromMarkers(element.getResource(), IResource.DEPTH_ONE, null); case IJavaElement.COMPILATION_UNIT: case IJavaElement.PACKAGE_DECLARATION: case IJavaElement.IMPORT_DECLARATION: case IJavaElement.IMPORT_CONTAINER: case IJavaElement.TYPE: case IJavaElement.INITIALIZER: case IJavaElement.METHOD: case IJavaElement.FIELD: case IJavaElement.LOCAL_VARIABLE: ICompilationUnit cu= (ICompilationUnit) element.getAncestor(IJavaElement.COMPILATION_UNIT); if (cu != null) { ISourceReference ref= (type == IJavaElement.COMPILATION_UNIT) ? null : (ISourceReference) element; // The assumption is that only source elements in compilation unit can have markers if (cu.isWorkingCopy()) { // working copy: look at annotation model return getErrorTicksFromWorkingCopy(cu, ref); } return getErrorTicksFromMarkers(cu.getResource(), IResource.DEPTH_ONE, ref); } break; default: } } else if (obj instanceof IResource) { return getErrorTicksFromMarkers((IResource) obj, IResource.DEPTH_INFINITE, null); } } catch (CoreException e) { if (e instanceof JavaModelException) { if (((JavaModelException) e).isDoesNotExist()) { return 0; } } if (e.getStatus().getCode() == IResourceStatus.MARKER_NOT_FOUND) { return 0; } JavaPlugin.log(e); } return 0; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/6431ffdaa2cd17212528fc849f43e01be6e20165/ProblemsLabelDecorator.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/ProblemsLabelDecorator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
3671,
1871,
14245,
475,
5094,
12,
921,
1081,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
2603,
1276,
467,
5852,
1046,
13,
288,
9506,
202,
45,
5852,
1046,
930,
33,
261,
45,
5852,
1046,
13,
1081,
31,
9506,
202,
474,
618,
33,
930,
18,
588,
17481,
5621,
9506,
202,
9610,
261,
723,
13,
288,
6862,
202,
3593,
467,
5852,
1046,
18,
27264,
67,
17147,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
9981,
26903,
67,
9185,
30,
25083,
202,
2463,
7926,
16610,
1265,
21644,
12,
2956,
18,
588,
1420,
9334,
467,
1420,
18,
27479,
67,
706,
7263,
5398,
16,
446,
1769,
6862,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
9981,
26903,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
5237,
67,
3776,
30,
25083,
202,
2463,
7926,
16610,
1265,
21644,
12,
2956,
18,
588,
1420,
9334,
467,
1420,
18,
27479,
67,
5998,
16,
446,
1769,
6862,
202,
3593,
467,
5852,
1046,
18,
31075,
48,
2689,
67,
15736,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
23956,
985,
2689,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
20445,
67,
23956,
985,
2689,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
20445,
67,
21395,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
2399,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
12919,
15154,
654,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
5327,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
6776,
30,
6862,
202,
3593,
467,
5852,
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,
509,
3671,
1871,
14245,
475,
5094,
12,
921,
1081,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
2603,
1276,
467,
5852,
1046,
13,
288,
9506,
202,
45,
5852,
1046,
930,
33,
261,
45,
5852,
1046,
13,
1081,
31,
9506,
202,
474,
618,
33,
930,
18,
588,
17481,
5621,
9506,
202,
9610,
261,
723,
13,
288,
6862,
202,
3593,
467,
5852,
1046,
18,
27264,
67,
17147,
30,
6862,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
9981,
26903,
67,
9185,
30,
25083,
202,
2463,
7926,
16610,
1265,
21644,
12,
2956,
18,
588,
1420,
9334,
467,
1420,
18,
27479,
67,
706,
7263,
5398,
16,
446,
1769,
6862,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
9981,
2
] |
|
return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs * 1.2f); } else if (value == ValueConstants.SMALLER_VALUE) { sm.putParentRelative(idx, true); CSSStylableElement p; p = CSSEngine.getParentCSSStylableElement(elt); float fs; if (p == null) { CSSContext ctx = engine.getCSSContext(); fs = ctx.getMediumFontSize(); } else { fs = engine.getComputedStyle(p, null, idx).getFloatValue(); } return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs / 1.2f);
|
return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs * scale);
|
public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) { switch (value.getPrimitiveType()) { case CSSPrimitiveValue.CSS_NUMBER: case CSSPrimitiveValue.CSS_PX: return value; case CSSPrimitiveValue.CSS_MM: CSSContext ctx = engine.getCSSContext(); float v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_CM: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 10f / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_IN: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 25.4f / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_PT: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 25.4f / (72f * ctx.getPixelUnitToMillimeter())); case CSSPrimitiveValue.CSS_PC: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, (v * 25.4f / (6f * ctx.getPixelUnitToMillimeter()))); case CSSPrimitiveValue.CSS_EMS: sm.putParentRelative(idx, true); v = value.getFloatValue(); CSSStylableElement p; p = CSSEngine.getParentCSSStylableElement(elt); float fs; if (p == null) { ctx = engine.getCSSContext(); fs = ctx.getMediumFontSize(); } else { fs = engine.getComputedStyle(p, null, idx).getFloatValue(); } return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * fs); case CSSPrimitiveValue.CSS_EXS: sm.putParentRelative(idx, true); v = value.getFloatValue(); p = CSSEngine.getParentCSSStylableElement(elt); if (p == null) { ctx = engine.getCSSContext(); fs = ctx.getMediumFontSize(); } else { fs = engine.getComputedStyle(p, null, idx).getFloatValue(); } return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * fs * 0.5f); // !!! x-height case CSSPrimitiveValue.CSS_PERCENTAGE: sm.putParentRelative(idx, true); v = value.getFloatValue(); p = CSSEngine.getParentCSSStylableElement(elt); if (p == null) { ctx = engine.getCSSContext(); fs = ctx.getMediumFontSize(); } else { fs = engine.getComputedStyle(p, null, idx).getFloatValue(); } return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * fs / 100f); } if (value == ValueConstants.LARGER_VALUE) { sm.putParentRelative(idx, true); CSSStylableElement p; p = CSSEngine.getParentCSSStylableElement(elt); float fs; if (p == null) { CSSContext ctx = engine.getCSSContext(); fs = ctx.getMediumFontSize(); } else { fs = engine.getComputedStyle(p, null, idx).getFloatValue(); } return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs * 1.2f); } else if (value == ValueConstants.SMALLER_VALUE) { sm.putParentRelative(idx, true); CSSStylableElement p; p = CSSEngine.getParentCSSStylableElement(elt); float fs; if (p == null) { CSSContext ctx = engine.getCSSContext(); fs = ctx.getMediumFontSize(); } else { fs = engine.getComputedStyle(p, null, idx).getFloatValue(); } return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs / 1.2f); } // absolute identifiers CSSContext ctx = engine.getCSSContext(); float fs = ctx.getMediumFontSize(); String s = value.getStringValue(); switch (s.charAt(0)) { case 'm': break; case 's': fs = (float)(fs / 1.2); break; case 'l': fs = (float)(fs * 1.2); break; default: // 'x' switch (s.charAt(1)) { case 'x': switch (s.charAt(3)) { case 's': fs = (float)(((fs / 1.2) / 1.2) / 1.2); break; default: // 'l' fs = (float)(fs * 1.2 * 1.2 * 1.2); } break; default: // '-' switch (s.charAt(2)) { case 's': fs = (float)((fs / 1.2) / 1.2); break; default: // 'l' fs = (float)(fs * 1.2 * 1.2); } } } return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs); }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/8d03ce5e4f1f836a7a182162a820e4f42e2f60de/FontSizeManager.java/clean/sources/org/apache/batik/css/engine/value/css2/FontSizeManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1445,
3671,
620,
12,
10276,
24273,
80,
429,
1046,
11572,
16,
17311,
514,
12454,
16,
17311,
6765,
4410,
4073,
16,
17311,
509,
2067,
16,
17311,
9767,
863,
3029,
16,
17311,
1445,
460,
13,
288,
3639,
1620,
261,
1132,
18,
588,
9840,
559,
10756,
288,
3639,
648,
6765,
9840,
620,
18,
10276,
67,
9931,
30,
3639,
648,
6765,
9840,
620,
18,
10276,
67,
52,
60,
30,
5411,
327,
460,
31,
3639,
648,
6765,
9840,
620,
18,
10276,
67,
8206,
30,
5411,
6765,
1042,
1103,
273,
4073,
18,
588,
10276,
1042,
5621,
5411,
1431,
331,
273,
460,
18,
588,
4723,
620,
5621,
5411,
327,
394,
5450,
620,
12,
10276,
9840,
620,
18,
10276,
67,
9931,
16,
21394,
331,
342,
1103,
18,
588,
9037,
2802,
774,
49,
737,
28051,
10663,
3639,
648,
6765,
9840,
620,
18,
10276,
67,
9611,
30,
5411,
1103,
273,
4073,
18,
588,
10276,
1042,
5621,
2398,
331,
273,
460,
18,
588,
4723,
620,
5621,
5411,
327,
394,
5450,
620,
12,
10276,
9840,
620,
18,
10276,
67,
9931,
16,
21394,
331,
380,
1728,
74,
342,
1103,
18,
588,
9037,
2802,
774,
49,
737,
28051,
10663,
3639,
648,
6765,
9840,
620,
18,
10276,
67,
706,
30,
5411,
1103,
273,
4073,
18,
588,
10276,
1042,
5621,
5411,
331,
273,
460,
18,
588,
4723,
620,
5621,
5411,
327,
394,
5450,
620,
12,
10276,
9840,
620,
18,
10276,
67,
9931,
16,
21394,
331,
380,
6969,
18,
24,
74,
342,
1103,
18,
588,
9037,
2802,
774,
49,
737,
28051,
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,
1445,
3671,
620,
12,
10276,
24273,
80,
429,
1046,
11572,
16,
17311,
514,
12454,
16,
17311,
6765,
4410,
4073,
16,
17311,
509,
2067,
16,
17311,
9767,
863,
3029,
16,
17311,
1445,
460,
13,
288,
3639,
1620,
261,
1132,
18,
588,
9840,
559,
10756,
288,
3639,
648,
6765,
9840,
620,
18,
10276,
67,
9931,
30,
3639,
648,
6765,
9840,
620,
18,
10276,
67,
52,
60,
30,
5411,
327,
460,
31,
3639,
648,
6765,
9840,
620,
18,
10276,
67,
8206,
30,
5411,
6765,
1042,
1103,
273,
4073,
18,
588,
10276,
1042,
5621,
5411,
1431,
331,
273,
460,
18,
588,
4723,
620,
5621,
5411,
327,
394,
5450,
620,
12,
10276,
9840,
620,
18,
10276,
67,
9931,
16,
21394,
331,
342,
2
] |
test that row is gone.
|
fail("test that row is gone.");
|
public void testAndHeresHowWeUnlinkThings() throws Exception { // Method 1: saveImage(); List updated = unlinkImage(); iUpdate.saveCollection( updated ); test that row is gone. // Method 2: saveImage(); updated = unlinkImage(); iPojos.udpateDataObjects( (IObject[]) updated.toArray(new IObject[updated.size()]), null); // Method 3: Dataset d = new Dataset(); Project p = new Project(); p = (Project) iPojos.createDataObject( p, null ); d = (Dataset) iPojos.createDataObject( d, null ); ProjectDatasetLink link = new ProjectDatasetLink(); link.setParent( p ); link.setChild( c ); }
|
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/219ccffc5a6aec003f33d7752f571d33549cce00/PojosServiceTest.java/buggy/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1876,
44,
11737,
44,
543,
3218,
984,
1232,
1315,
899,
1435,
1216,
1185,
565,
288,
3639,
368,
2985,
404,
30,
3639,
1923,
2040,
5621,
3639,
987,
3526,
273,
8255,
2040,
5621,
3639,
277,
1891,
18,
5688,
2532,
12,
3526,
11272,
7734,
2321,
2932,
3813,
716,
1027,
353,
22296,
1199,
1769,
7734,
368,
2985,
576,
30,
3639,
1923,
2040,
5621,
3639,
3526,
273,
8255,
2040,
5621,
3639,
277,
52,
6311,
538,
18,
26029,
340,
751,
4710,
12,
1171,
261,
45,
921,
63,
5717,
3526,
18,
31447,
12,
2704,
467,
921,
63,
7007,
18,
1467,
1435,
65,
3631,
446,
1769,
7734,
368,
2985,
890,
30,
3639,
10778,
302,
273,
394,
10778,
5621,
3639,
5420,
293,
273,
394,
5420,
5621,
3639,
293,
273,
261,
4109,
13,
277,
52,
6311,
538,
18,
2640,
21881,
12,
293,
16,
446,
11272,
3639,
302,
273,
261,
10656,
13,
277,
52,
6311,
538,
18,
2640,
21881,
12,
302,
16,
446,
11272,
1171,
5420,
10656,
2098,
1692,
273,
394,
5420,
10656,
2098,
5621,
3639,
1692,
18,
542,
3054,
12,
293,
11272,
3639,
1692,
18,
542,
1763,
12,
276,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1876,
44,
11737,
44,
543,
3218,
984,
1232,
1315,
899,
1435,
1216,
1185,
565,
288,
3639,
368,
2985,
404,
30,
3639,
1923,
2040,
5621,
3639,
987,
3526,
273,
8255,
2040,
5621,
3639,
277,
1891,
18,
5688,
2532,
12,
3526,
11272,
7734,
2321,
2932,
3813,
716,
1027,
353,
22296,
1199,
1769,
7734,
368,
2985,
576,
30,
3639,
1923,
2040,
5621,
3639,
3526,
273,
8255,
2040,
5621,
3639,
277,
52,
6311,
538,
18,
26029,
340,
751,
4710,
12,
1171,
261,
45,
921,
63,
5717,
3526,
18,
31447,
12,
2704,
467,
921,
63,
7007,
18,
1467,
1435,
65,
3631,
446,
1769,
7734,
368,
2985,
890,
30,
3639,
10778,
302,
273,
394,
10778,
5621,
3639,
5420,
293,
273,
394,
2
] |
int index = packageName.lastIndexOf('.'); packageName = index < 0 ? "" : packageName.substring(0, index); }
|
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if (list == null) return; while (! "".equals(packageName)) { for (int index = list.indexOf(packageName); index != -1; index = list.indexOf(packageName, index + 1)) { // Exploit package visibility for speed. int packageNameCount = packageName.length(); if (index + packageNameCount == list.length() || list.charAt(index + packageNameCount) == ',') { checkPermission(p); return; } } int index = packageName.lastIndexOf('.'); packageName = index < 0 ? "" : packageName.substring(0, index); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/65d557aae3161ec60d4823f7f7346efac0a8d663/SecurityManager.java/buggy/core/src/classpath/java/java/lang/SecurityManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
866,
2261,
682,
12,
780,
9929,
16,
514,
9318,
16,
13491,
514,
4132,
13,
225,
288,
3639,
368,
2672,
326,
1762,
1435,
11769,
358,
741,
326,
446,
866,
18,
565,
8509,
293,
273,
394,
2509,
5041,
12,
9827,
397,
9929,
18,
10492,
10663,
3639,
514,
666,
273,
6036,
18,
588,
1396,
2932,
5610,
1199,
397,
9318,
1769,
565,
309,
261,
1098,
422,
446,
13,
1377,
327,
31,
565,
1323,
16051,
1408,
18,
14963,
12,
5610,
461,
3719,
1377,
288,
3639,
364,
261,
474,
770,
273,
666,
18,
31806,
12,
5610,
461,
1769,
2398,
770,
480,
300,
21,
31,
770,
273,
666,
18,
31806,
12,
5610,
461,
16,
770,
397,
404,
3719,
1850,
288,
7734,
368,
7784,
383,
305,
2181,
9478,
364,
8632,
18,
7734,
509,
9929,
1380,
273,
9929,
18,
2469,
5621,
7734,
309,
261,
1615,
397,
9929,
1380,
422,
666,
18,
2469,
1435,
7734,
747,
666,
18,
3001,
861,
12,
1615,
397,
9929,
1380,
13,
422,
3316,
13,
2868,
288,
10792,
25300,
12,
84,
1769,
10792,
327,
31,
7734,
289,
5411,
289,
5411,
509,
770,
273,
9929,
18,
2722,
31985,
2668,
1093,
1769,
5411,
9929,
273,
770,
411,
374,
692,
1408,
294,
9929,
18,
28023,
12,
20,
16,
770,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
866,
2261,
682,
12,
780,
9929,
16,
514,
9318,
16,
13491,
514,
4132,
13,
225,
288,
3639,
368,
2672,
326,
1762,
1435,
11769,
358,
741,
326,
446,
866,
18,
565,
8509,
293,
273,
394,
2509,
5041,
12,
9827,
397,
9929,
18,
10492,
10663,
3639,
514,
666,
273,
6036,
18,
588,
1396,
2932,
5610,
1199,
397,
9318,
1769,
565,
309,
261,
1098,
422,
446,
13,
1377,
327,
31,
565,
1323,
16051,
1408,
18,
14963,
12,
5610,
461,
3719,
1377,
288,
3639,
364,
261,
474,
770,
273,
666,
18,
31806,
12,
5610,
461,
1769,
2398,
770,
480,
300,
21,
31,
770,
273,
666,
18,
31806,
12,
5610,
461,
16,
770,
397,
404,
3719,
1850,
288,
7734,
368,
7784,
383,
2
] |
|
if (viewerDescriptor.isVisibleExtension(descriptors[i].getId()))
|
if (viewerDescriptor.isVisibleContentExtension(descriptors[i].getId()))
|
public INavigatorContentDescriptor[] getVisibleExtensions() { List visibleDescriptors = new ArrayList(); NavigatorContentDescriptor[] descriptors = CONTENT_DESCRIPTOR_REGISTRY.getAllContentDescriptors(); for (int i = 0; i < descriptors.length; i++) { if (viewerDescriptor.isVisibleExtension(descriptors[i].getId())) visibleDescriptors.add(descriptors[i]); } if(visibleDescriptors.isEmpty()) return NO_DESCRIPTORS; return (INavigatorContentDescriptor[]) visibleDescriptors.toArray(new INavigatorContentDescriptor[visibleDescriptors.size()]); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/29acf4eb645f3ecd317c8b9efae2fa767f4c51bb/NavigatorContentService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/NavigatorContentService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2120,
13061,
1350,
3187,
8526,
31564,
7513,
1435,
288,
202,
202,
682,
6021,
12705,
273,
394,
2407,
5621,
9506,
202,
22817,
1350,
3187,
8526,
14215,
273,
12577,
67,
1639,
27689,
67,
5937,
25042,
18,
588,
1595,
1350,
12705,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
14215,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
25256,
3187,
18,
291,
6207,
1350,
3625,
12,
72,
8379,
63,
77,
8009,
26321,
1435,
3719,
4697,
202,
8613,
12705,
18,
1289,
12,
72,
8379,
63,
77,
19226,
202,
202,
97,
3196,
202,
430,
12,
8613,
12705,
18,
291,
1921,
10756,
1082,
202,
2463,
3741,
67,
1639,
10885,
14006,
31,
202,
202,
2463,
261,
706,
13061,
1350,
3187,
63,
5717,
6021,
12705,
18,
31447,
12,
2704,
2120,
13061,
1350,
3187,
63,
8613,
12705,
18,
1467,
1435,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2120,
13061,
1350,
3187,
8526,
31564,
7513,
1435,
288,
202,
202,
682,
6021,
12705,
273,
394,
2407,
5621,
9506,
202,
22817,
1350,
3187,
8526,
14215,
273,
12577,
67,
1639,
27689,
67,
5937,
25042,
18,
588,
1595,
1350,
12705,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
14215,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
25256,
3187,
18,
291,
6207,
1350,
3625,
12,
72,
8379,
63,
77,
8009,
26321,
1435,
3719,
4697,
202,
8613,
12705,
18,
1289,
12,
72,
8379,
63,
77,
19226,
202,
202,
97,
3196,
202,
430,
12,
8613,
12705,
18,
291,
1921,
10756,
1082,
202,
2463,
3741,
67,
1639,
10885,
14006,
31,
202,
202,
2463,
261,
706,
2
] |
Socket s = null;
|
Socket socket = new Socket(); InetSocketAddress endpoint = new InetSocketAddress(host, port); if (policy == null && PolicyProvider != null) { policy = PolicyProvider.getPolicy(); } if (policy != null) { int timeout = policy.getConnectTimeout(this, host, port); socket.connect(endpoint, timeout); } else { socket.connect(endpoint); }
|
public Socket createSocket(String host, int port) throws IOException, UnknownHostException { Socket s = null; if (use_ssl) { javax.net.SocketFactory socfac = getSSLSocketFactory(); s = socfac.createSocket(host, port); } else { s = new Socket(host, port); } return use_aspects ? AspectSupportImpl.attachRMISocketAspects(s) : s; }
|
7172 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7172/affd4020de8b974b6819d9c92064295df3f0ee30/SocketFactory.java/buggy/mtsstd/src/org/cougaar/mts/std/SocketFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8758,
752,
4534,
12,
780,
1479,
16,
509,
1756,
13,
225,
202,
15069,
1860,
16,
30592,
377,
288,
202,
4534,
272,
273,
446,
31,
202,
430,
261,
1202,
67,
8157,
13,
288,
202,
565,
6863,
18,
2758,
18,
4534,
1733,
30904,
11639,
273,
336,
1260,
25831,
1733,
5621,
202,
565,
272,
273,
30904,
11639,
18,
2640,
4534,
12,
2564,
16,
1756,
1769,
202,
97,
469,
288,
202,
565,
272,
273,
394,
8758,
12,
2564,
16,
1756,
1769,
202,
97,
225,
202,
2463,
999,
67,
23579,
87,
692,
2970,
1181,
6289,
2828,
18,
7331,
54,
7492,
4534,
17468,
87,
12,
87,
13,
294,
272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8758,
752,
4534,
12,
780,
1479,
16,
509,
1756,
13,
225,
202,
15069,
1860,
16,
30592,
377,
288,
202,
4534,
272,
273,
446,
31,
202,
430,
261,
1202,
67,
8157,
13,
288,
202,
565,
6863,
18,
2758,
18,
4534,
1733,
30904,
11639,
273,
336,
1260,
25831,
1733,
5621,
202,
565,
272,
273,
30904,
11639,
18,
2640,
4534,
12,
2564,
16,
1756,
1769,
202,
97,
469,
288,
202,
565,
272,
273,
394,
8758,
12,
2564,
16,
1756,
1769,
202,
97,
225,
202,
2463,
999,
67,
23579,
87,
692,
2970,
1181,
6289,
2828,
18,
7331,
54,
7492,
4534,
17468,
87,
12,
87,
13,
294,
272,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
XSLTUtils.addAttribute(model, "removed", "yes", property); }
|
XSLTUtils.addAttribute(model, "removed", "yes", property); }
|
private void addPropertyEntries(BeanWriterMetaInfoHolder metainf, Document model, Element rootElt, ArrayList propertyNames, Map typeMap, boolean isInherited) throws SchemaCompilationException { // go in the loop and add the part elements QName[] qName; String javaClassNameForElement; ArrayList missingQNames = new ArrayList(); ArrayList qNames = new ArrayList(); BeanWriterMetaInfoHolder parentMetaInf = metainf.getParent(); if (metainf.isOrdered()) { qName = metainf.getOrderedQNameArray(); } else { qName= metainf.getQNameArray(); } for (int i = 0; i < qName.length; i++) { qNames.add(qName[i]); } //adding missing QNames to the end, including elements & attributes. if (metainf.isRestriction()) { addMissingQNames(metainf, qNames, missingQNames); } QName name; for (int i = 0; i < qNames.size(); i++) { name = (QName) qNames.get(i); Element property = XSLTUtils.addChildElement(model, "property",rootElt); String xmlName = name.getLocalPart(); XSLTUtils.addAttribute(model, "name", xmlName, property); XSLTUtils.addAttribute(model, "nsuri", name.getNamespaceURI(),property); String javaName = makeUniqueJavaClassName(propertyNames, xmlName); XSLTUtils.addAttribute(model, "javaname", javaName, property); if (parentMetaInf != null && metainf.isRestriction() && missingQNames.contains(name)) { javaClassNameForElement = parentMetaInf.getClassNameForQName(name); } else { javaClassNameForElement = metainf.getClassNameForQName(name); } if (javaClassNameForElement == null) { javaClassNameForElement = SchemaCompiler.DEFAULT_CLASS_NAME; log.warn(SchemaCompilerMessages .getMessage("schema.typeMissing", name.toString())); } if (metainf.isRestriction() && typeChanged(name, missingQNames, metainf)) { XSLTUtils.addAttribute(model, "typeChanged", "yes", property); //XSLTUtils.addAttribute(model, "restricted", "yes", property); } XSLTUtils.addAttribute(model, "type", javaClassNameForElement,property); if (PrimitiveTypeFinder.isPrimitive(javaClassNameForElement)) { XSLTUtils.addAttribute(model, "primitive", "yes", property); } // add an attribute that says the type is default if (isDefault(javaClassNameForElement)) { XSLTUtils.addAttribute(model, "default", "yes", property); } if (typeMap.containsKey(metainf.getSchemaQNameForQName(name))) { XSLTUtils.addAttribute(model, "ours", "yes", property); } if (metainf.getAttributeStatusForQName(name)) { XSLTUtils.addAttribute(model, "attribute", "yes", property); } if (metainf.isNillable(name)) { XSLTUtils.addAttribute(model, "nillable", "yes", property); } if (metainf.getOptionalAttributeStatusForQName(name)) { XSLTUtils.addAttribute(model, "optional", "yes", property); } String shortTypeName; if (metainf.getSchemaQNameForQName(name) != null) { // see whether the QName is a basetype if (baseTypeMap.containsKey(metainf.getSchemaQNameForQName(name))) { shortTypeName = metainf.getSchemaQNameForQName(name).getLocalPart(); } else { shortTypeName = getShortTypeName(javaClassNameForElement); } } else { shortTypeName = getShortTypeName(javaClassNameForElement); } XSLTUtils.addAttribute(model, "shorttypename", shortTypeName,property); if (metainf.isRestriction() && missingQNames.contains(name)) { //XSLTUtils.addAttribute(model, "restricted", "yes", property); XSLTUtils.addAttribute(model, "removed", "yes", property); } if (isInherited) { XSLTUtils.addAttribute(model, "inherited", "yes", property); } if (metainf.getAnyStatusForQName(name)) { XSLTUtils.addAttribute(model, "any", "yes", property); } if (metainf.getBinaryStatusForQName(name)) { XSLTUtils.addAttribute(model, "binary", "yes", property); } if (metainf.getSimpleTypeStatusForQName(name)) { XSLTUtils.addAttribute(model, "simple", "yes", property); } // put the min occurs count irrespective of whether it's an array or // not long minOccurs = metainf.getMinOccurs(name); XSLTUtils.addAttribute(model, "minOccurs", minOccurs + "", property); //in the case the original element is an array but the derived one is not. if (parentMetaInf != null && metainf.isRestriction() && !missingQNames.contains(name) && (parentMetaInf.getArrayStatusForQName(name) && !metainf.getArrayStatusForQName(name))) { XSLTUtils.addAttribute(model, "rewrite", "yes", property); XSLTUtils.addAttribute(model, "occuranceChanged", "yes", property); } else if (metainf.isRestriction() && !missingQNames.contains(name) && (minOccursChanged(name, missingQNames, metainf) || maxOccursChanged(name, missingQNames, metainf))) { XSLTUtils.addAttribute(model, "restricted", "yes", property); XSLTUtils.addAttribute(model, "occuranceChanged", "yes", property); } if (metainf.getArrayStatusForQName(name)) { XSLTUtils.addAttribute(model, "array", "yes", property); XSLTUtils.addAttribute(model, "arrayBaseType",javaClassNameForElement.substring(0,javaClassNameForElement.indexOf("[")),property); long maxOccurs = metainf.getMaxOccurs(name); if (maxOccurs == Long.MAX_VALUE) { XSLTUtils.addAttribute(model, "unbound", "yes", property); } else { XSLTUtils.addAttribute(model, "maxOccurs", maxOccurs + "",property); } } if (metainf.isRestrictionBaseType(name)) { XSLTUtils.addAttribute(model, "restrictionBaseType", "yes", property); } if (metainf.isExtensionBaseType(name)) { XSLTUtils.addAttribute(model, "extensionBaseType", "yes", property); } if (metainf.isRestrictionBaseType(name) && metainf.getLengthFacet() != -1) { XSLTUtils.addAttribute(model, "lenFacet", metainf.getLengthFacet() + "", property); } if (metainf.isRestrictionBaseType(name) && metainf.getMaxLengthFacet() != -1) { XSLTUtils.addAttribute(model, "maxLenFacet", metainf.getMaxLengthFacet() + "", property); } if (metainf.isRestrictionBaseType(name) && metainf.getMinLengthFacet() != -1) { XSLTUtils.addAttribute(model, "minLenFacet", metainf.getMinLengthFacet() + "", property); } if (metainf.isRestrictionBaseType(name) && metainf.getMaxExclusiveFacet() != null) { XSLTUtils.addAttribute(model, "maxExFacet", metainf.getMaxExclusiveFacet() + "", property); } if (metainf.isRestrictionBaseType(name) && metainf.getMinExclusiveFacet() != null) { XSLTUtils.addAttribute(model, "minExFacet", metainf.getMinExclusiveFacet() + "", property); } if (metainf.isRestrictionBaseType(name) && metainf.getMaxInclusiveFacet() != null) { XSLTUtils.addAttribute(model, "maxInFacet", metainf.getMaxInclusiveFacet() + "", property); } if (metainf.isRestrictionBaseType(name) && metainf.getMinInclusiveFacet() != null) { XSLTUtils.addAttribute(model, "minInFacet", metainf.getMinInclusiveFacet() + "", property); } if (!metainf.getEnumFacet().isEmpty()) { boolean validJava = true; // Assume all enum values are valid ids Iterator iterator = metainf.getEnumFacet().iterator(); // Walk the values looking for invalid ids while(iterator.hasNext()) { String value = (String) iterator.next(); if (!JavaUtils.isJavaId(value)) { validJava = false; } } int id = 0; iterator = metainf.getEnumFacet().iterator(); while(iterator.hasNext()) { Element enumFacet = XSLTUtils.addChildElement(model, "enumFacet", property); String attribValue = (String) iterator.next(); XSLTUtils.addAttribute(model, "value", attribValue, enumFacet); if(validJava) { XSLTUtils.addAttribute(model, "id", attribValue , enumFacet); } else { id++; XSLTUtils.addAttribute(model, "id", "value" + id, enumFacet); } } } if (metainf.isRestrictionBaseType(name) && metainf.getPatternFacet() != null) { XSLTUtils.addAttribute(model, "patternFacet", metainf.getPatternFacet(), property); } } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9b1c24cca24a91bebcd12522f653b6e9a90ad0f1/JavaBeanWriter.java/clean/modules/adb-codegen/src/org/apache/axis2/schema/writer/JavaBeanWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
14324,
5400,
12,
3381,
2289,
2781,
966,
6064,
5100,
530,
74,
16,
4766,
565,
4319,
938,
16,
3010,
1365,
15899,
16,
2407,
26570,
16,
4766,
565,
1635,
25923,
16,
1250,
8048,
3721,
329,
13,
1216,
4611,
19184,
503,
288,
3639,
368,
1960,
316,
326,
2798,
471,
527,
326,
1087,
2186,
377,
202,
13688,
8526,
22914,
31,
377,
202,
780,
2252,
3834,
1290,
1046,
31,
3639,
2407,
3315,
53,
1557,
273,
394,
2407,
5621,
3639,
2407,
1043,
1557,
273,
394,
2407,
5621,
7734,
7704,
2289,
2781,
966,
6064,
982,
2781,
13149,
273,
5100,
530,
74,
18,
588,
3054,
5621,
7734,
309,
261,
10578,
530,
74,
18,
291,
16756,
10756,
288,
5411,
22914,
273,
5100,
530,
74,
18,
588,
16756,
13688,
1076,
5621,
3639,
289,
469,
288,
5411,
22914,
33,
5100,
530,
74,
18,
588,
13688,
1076,
5621,
3639,
289,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
22914,
18,
2469,
31,
277,
27245,
288,
540,
202,
85,
1557,
18,
1289,
12,
85,
461,
63,
77,
19226,
3639,
289,
3639,
368,
3439,
3315,
2238,
1557,
358,
326,
679,
16,
6508,
2186,
473,
1677,
18,
3639,
309,
261,
10578,
530,
74,
18,
291,
11670,
10756,
288,
540,
202,
1289,
4841,
53,
1557,
12,
10578,
530,
74,
16,
1043,
1557,
16,
3315,
53,
1557,
1769,
3639,
289,
3639,
16723,
508,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1043,
1557,
18,
1467,
5621,
277,
27245,
288,
540,
202,
529,
273,
261,
13688,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
14324,
5400,
12,
3381,
2289,
2781,
966,
6064,
5100,
530,
74,
16,
4766,
565,
4319,
938,
16,
3010,
1365,
15899,
16,
2407,
26570,
16,
4766,
565,
1635,
25923,
16,
1250,
8048,
3721,
329,
13,
1216,
4611,
19184,
503,
288,
3639,
368,
1960,
316,
326,
2798,
471,
527,
326,
1087,
2186,
377,
202,
13688,
8526,
22914,
31,
377,
202,
780,
2252,
3834,
1290,
1046,
31,
3639,
2407,
3315,
53,
1557,
273,
394,
2407,
5621,
3639,
2407,
1043,
1557,
273,
394,
2407,
5621,
7734,
7704,
2289,
2781,
966,
6064,
982,
2781,
13149,
273,
5100,
530,
74,
18,
588,
3054,
5621,
7734,
309,
261,
10578,
530,
74,
18,
291,
16756,
10756,
288,
5411,
22914,
273,
5100,
530,
74,
18,
2
] |
public IRubyObject method_missing(IRubyObject symbol, IRubyObject[] args) { throw new NameError(getRuntime(), "Undefined local variable or method '" + symbol.toId() + "' for " + inspect().getValue());
|
public IRubyObject method_missing(IRubyObject[] args) { if (args.length == 0) { throw new ArgumentError(getRuntime(), "no id given"); } String name = args[0].toId(); String description = callMethod("inspect").toString(); boolean noClass = description.charAt(0) == '#'; if (isNil()) { noClass = true; description = "nil"; } else if (this == ruby.getTrue()) { noClass = true; description = "true"; } else if (this == ruby.getFalse()) { noClass = true; description = "false"; } String format = "Undefined method '%s' for %s%s%s"; if (ruby.getLastCallStatus().isPrivate()) { format = "private method '%s' called for %s%s%s"; } else if (ruby.getLastCallStatus().isProtected()) { format = "protected method '%s' called for %s%s%s"; } else if (ruby.getLastCallStatus().isVariable()) { if (IdUtil.isLocal(name)) { format = "Undefined local variable or method '%s' for %s%s%s"; } } String msg = new PrintfFormat(format).sprintf( new Object[] { name, description, noClass ? "" : ":", noClass ? "" : getType().toName()}); ruby.getFrameStack().push(ruby.getFrameStack().getPrevious()); try { throw new NameError(getRuntime(), msg); } finally { ruby.getFrameStack().pop(); }
|
public IRubyObject method_missing(IRubyObject symbol, IRubyObject[] args) { throw new NameError(getRuntime(), "Undefined local variable or method '" + symbol.toId() + "' for " + inspect().getValue()); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/cfb1b4132c30e5186c41e9dbf0b92acca72fcf81/RubyObject.java/buggy/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
707,
67,
7337,
12,
7937,
10340,
921,
3273,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
604,
394,
25473,
12,
588,
5576,
9334,
18701,
315,
10317,
1191,
2190,
578,
707,
2119,
397,
3273,
18,
869,
548,
1435,
18701,
397,
2491,
364,
315,
397,
5334,
7675,
24805,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
707,
67,
7337,
12,
7937,
10340,
921,
3273,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
604,
394,
25473,
12,
588,
5576,
9334,
18701,
315,
10317,
1191,
2190,
578,
707,
2119,
397,
3273,
18,
869,
548,
1435,
18701,
397,
2491,
364,
315,
397,
5334,
7675,
24805,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return b.getValue(SymphonieWizardConstants.EWIZARD_TITLE);
|
return b.getValue(EWIZARD_TITLE);
|
public String getTitle() { return b.getValue(SymphonieWizardConstants.EWIZARD_TITLE); }
|
12633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12633/1bc787156ed79daad2f1612c3ecc7eb5d3b06938/WizardPanelFactory.java/clean/dupratcated/src/fr/umlv/symphonie/view/WizardPanelFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
514,
10786,
1435,
288,
3639,
327,
324,
18,
24805,
12,
7245,
6867,
8085,
67,
14123,
1769,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
514,
10786,
1435,
288,
3639,
327,
324,
18,
24805,
12,
7245,
6867,
8085,
67,
14123,
1769,
1377,
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
] |
case ModelPackage.CHART_WITH_AXES__SERIES_HINTS: setSeriesHints((SeriesHint) newValue); return;
|
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case ModelPackage.CHART_WITH_AXES__VERSION: setVersion((String) newValue); return; case ModelPackage.CHART_WITH_AXES__TYPE: setType((String) newValue); return; case ModelPackage.CHART_WITH_AXES__SUB_TYPE: setSubType((String) newValue); return; case ModelPackage.CHART_WITH_AXES__DESCRIPTION: setDescription((Text) newValue); return; case ModelPackage.CHART_WITH_AXES__BLOCK: setBlock((Block) newValue); return; case ModelPackage.CHART_WITH_AXES__DIMENSION: setDimension((ChartDimension) newValue); return; case ModelPackage.CHART_WITH_AXES__SCRIPT: setScript((String) newValue); return; case ModelPackage.CHART_WITH_AXES__UNITS: setUnits((String) newValue); return; case ModelPackage.CHART_WITH_AXES__SERIES_THICKNESS: setSeriesThickness(((Double) newValue).doubleValue()); return; case ModelPackage.CHART_WITH_AXES__SERIES_HINTS: setSeriesHints((SeriesHint) newValue); return; case ModelPackage.CHART_WITH_AXES__GRID_COLUMN_COUNT: setGridColumnCount(((Integer) newValue).intValue()); return; case ModelPackage.CHART_WITH_AXES__EXTENDED_PROPERTIES: getExtendedProperties().clear(); getExtendedProperties().addAll((Collection) newValue); return; case ModelPackage.CHART_WITH_AXES__SAMPLE_DATA: setSampleData((SampleData) newValue); return; case ModelPackage.CHART_WITH_AXES__AXES: getAxes().clear(); getAxes().addAll((Collection) newValue); return; case ModelPackage.CHART_WITH_AXES__WALL_FILL: setWallFill((Fill) newValue); return; case ModelPackage.CHART_WITH_AXES__FLOOR_FILL: setFloorFill((Fill) newValue); return; case ModelPackage.CHART_WITH_AXES__ORIENTATION: setOrientation((Orientation) newValue); return; case ModelPackage.CHART_WITH_AXES__UNIT_SPACING: setUnitSpacing(((Double) newValue).doubleValue()); return; } eDynamicSet(eFeature, newValue); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/869b9dc91ef4dd13d07f589c6394484a744642f0/ChartWithAxesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartWithAxesImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
5757,
30,
7734,
16770,
12443,
780,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
2399,
30,
7734,
8811,
12443,
780,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
8362,
67,
2399,
30,
7734,
19942,
559,
12443,
780,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
15911,
30,
7734,
13812,
12443,
1528,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
11403,
30,
7734,
444,
1768,
12443,
1768,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
2565,
958,
3156,
1146,
30,
7734,
444,
8611,
12443,
7984,
8611,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
10885,
30,
7734,
444,
3651,
12443,
780,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
24325,
30,
7734,
444,
7537,
12443,
780,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
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,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
5757,
30,
7734,
16770,
12443,
780,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
2399,
30,
7734,
8811,
12443,
780,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
8362,
67,
2399,
30,
7734,
19942,
559,
12443,
780,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
2
] |
|
Logger.error(this, "Could not read bytes "+written+" to "+(written + toRead)+" from file "+toReturn.filename+" which is supposed to be "+size+" bytes ("+toReturn.filename.length()+")");
|
Logger.error(this, "Could not read bytes "+written+" to "+(written + toRead)+" from file "+toReturn.filename+" which is supposed to be "+size+" bytes ("+toReturn.filename.length()+ ')');
|
public void sendLogByContainedDate(long time, OutputStream os) throws IOException { OldLogFile toReturn = null; synchronized(logFiles) { Iterator i = logFiles.iterator(); while(i.hasNext()) { OldLogFile olf = (OldLogFile) i.next(); boolean logMINOR = Logger.shouldLog(Logger.MINOR, this); if(logMINOR) Logger.minor(this, "Checking "+time+" against "+olf.filename+" : start="+olf.start+", end="+olf.end); if((time >= olf.start) && (time < olf.end)) { toReturn = olf; if(logMINOR) Logger.minor(this, "Found "+olf); break; } } if(toReturn == null) return; // couldn't find it } FileInputStream fis = new FileInputStream(toReturn.filename); DataInputStream dis = new DataInputStream(fis); long written = 0; long size = toReturn.size; byte[] buf = new byte[4096]; while(written < size) { int toRead = (int) Math.min(buf.length, (size - written)); try { dis.readFully(buf, 0, toRead); } catch (IOException e) { Logger.error(this, "Could not read bytes "+written+" to "+(written + toRead)+" from file "+toReturn.filename+" which is supposed to be "+size+" bytes ("+toReturn.filename.length()+")"); return; } os.write(buf, 0, toRead); written += toRead; } }
|
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FileLoggerHook.java/clean/src/freenet/support/FileLoggerHook.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1366,
1343,
858,
660,
8707,
1626,
12,
5748,
813,
16,
8962,
1140,
13,
1216,
1860,
288,
202,
202,
7617,
19103,
24029,
273,
446,
31,
202,
202,
22043,
12,
1330,
2697,
13,
288,
1082,
202,
3198,
277,
273,
613,
2697,
18,
9838,
5621,
1082,
202,
17523,
12,
77,
18,
5332,
2134,
10756,
288,
9506,
202,
7617,
19103,
8793,
74,
273,
261,
7617,
19103,
13,
277,
18,
4285,
5621,
1082,
377,
202,
6494,
613,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
1082,
377,
202,
430,
12,
1330,
6236,
916,
13,
1082,
377,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
14294,
13773,
957,
9078,
5314,
13773,
355,
74,
18,
3459,
9078,
294,
787,
1546,
15,
355,
74,
18,
1937,
15,
3113,
679,
1546,
15,
355,
74,
18,
409,
1769,
9506,
202,
430,
12443,
957,
1545,
8793,
74,
18,
1937,
13,
597,
261,
957,
411,
8793,
74,
18,
409,
3719,
288,
6862,
202,
869,
990,
273,
8793,
74,
31,
6862,
202,
430,
12,
1330,
6236,
916,
13,
4242,
18,
17364,
12,
2211,
16,
315,
2043,
13773,
355,
74,
1769,
6862,
202,
8820,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
430,
12,
869,
990,
422,
446,
13,
9506,
202,
2463,
31,
368,
17991,
1404,
1104,
518,
202,
202,
97,
202,
202,
812,
4348,
15324,
273,
394,
11907,
12,
869,
990,
18,
3459,
1769,
202,
202,
751,
4348,
1015,
273,
394,
29382,
12,
74,
291,
1769,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1366,
1343,
858,
660,
8707,
1626,
12,
5748,
813,
16,
8962,
1140,
13,
1216,
1860,
288,
202,
202,
7617,
19103,
24029,
273,
446,
31,
202,
202,
22043,
12,
1330,
2697,
13,
288,
1082,
202,
3198,
277,
273,
613,
2697,
18,
9838,
5621,
1082,
202,
17523,
12,
77,
18,
5332,
2134,
10756,
288,
9506,
202,
7617,
19103,
8793,
74,
273,
261,
7617,
19103,
13,
277,
18,
4285,
5621,
1082,
377,
202,
6494,
613,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
1082,
377,
202,
430,
12,
1330,
6236,
916,
13,
1082,
377,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
14294,
13773,
957,
9078,
5314,
13773,
355,
74,
2
] |
IWorkbenchWindow window = openTestWindow("org.eclipse.ui.resourcePerspective");
|
IWorkbenchWindow window = openTestWindow(IDE.RESOURCE_PERSPECTIVE_ID);
|
public void testViewerContributions() { IWorkbenchWindow window = openTestWindow("org.eclipse.ui.resourcePerspective"); IWorkbenchPart part = window.getActivePage().getActivePart(); MenuManager menu = new MenuManager(); resetViewerMenu(menu); ISelectionProvider provider = new ISelectionProvider() { public void addSelectionChangedListener(ISelectionChangedListener listener) { } public ISelection getSelection() { return new StructuredSelection(new Random()); } public void removeSelectionChangedListener(ISelectionChangedListener listener) { } public void setSelection(ISelection selection) { } }; PopupMenuExtender extender = new PopupMenuExtender(GROUP_ID, menu, provider, part); extender.menuAboutToShow(menu); assertNull(menu.find(VIEWER_ACTION_ID)); resetViewerMenu(menu); getBundle(); extender.menuAboutToShow(menu); assertNotNull(menu.find(VIEWER_ACTION_ID)); resetViewerMenu(menu); removeBundle(); extender.menuAboutToShow(menu); assertNull(menu.find(VIEWER_ACTION_ID)); extender.dispose(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4d666e237f4c0a747a465687415f6e680755827f/ObjectContributionTests.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ObjectContributionTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
18415,
442,
15326,
1435,
288,
202,
202,
45,
2421,
22144,
3829,
2742,
273,
1696,
4709,
3829,
2932,
3341,
18,
20416,
18,
4881,
18,
3146,
14781,
16772,
8863,
202,
202,
45,
2421,
22144,
1988,
1087,
273,
2742,
18,
588,
3896,
1964,
7675,
588,
3896,
1988,
5621,
202,
202,
4599,
1318,
3824,
273,
394,
9809,
1318,
5621,
202,
202,
6208,
18415,
4599,
12,
5414,
1769,
202,
202,
45,
6233,
2249,
2893,
273,
394,
467,
6233,
2249,
1435,
288,
1082,
202,
482,
918,
527,
6233,
5033,
2223,
12,
45,
6233,
5033,
2223,
2991,
13,
288,
6862,
1082,
202,
97,
1082,
202,
482,
467,
6233,
23204,
1435,
288,
9506,
202,
2463,
394,
7362,
2862,
6233,
12,
2704,
8072,
10663,
1082,
202,
97,
1082,
202,
482,
918,
1206,
6233,
5033,
2223,
12,
45,
6233,
5033,
2223,
2991,
13,
288,
1082,
202,
97,
1082,
202,
482,
918,
444,
6233,
12,
45,
6233,
4421,
13,
288,
1082,
202,
97,
6862,
202,
20451,
9506,
202,
13770,
4599,
2482,
2345,
2133,
264,
273,
394,
10264,
416,
4599,
2482,
2345,
12,
8468,
67,
734,
16,
3824,
16,
2893,
16,
1087,
1769,
202,
202,
408,
2345,
18,
5414,
24813,
774,
5706,
12,
5414,
1769,
6862,
1082,
202,
11231,
2041,
12,
5414,
18,
4720,
12,
12145,
654,
67,
12249,
67,
734,
10019,
202,
202,
6208,
18415,
4599,
12,
5414,
1769,
202,
202,
588,
3405,
5621,
9506,
202,
408,
2345,
18,
5414,
24813,
774,
5706,
12,
5414,
1769,
202,
202,
11231,
5962,
12,
5414,
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,
918,
1842,
18415,
442,
15326,
1435,
288,
202,
202,
45,
2421,
22144,
3829,
2742,
273,
1696,
4709,
3829,
2932,
3341,
18,
20416,
18,
4881,
18,
3146,
14781,
16772,
8863,
202,
202,
45,
2421,
22144,
1988,
1087,
273,
2742,
18,
588,
3896,
1964,
7675,
588,
3896,
1988,
5621,
202,
202,
4599,
1318,
3824,
273,
394,
9809,
1318,
5621,
202,
202,
6208,
18415,
4599,
12,
5414,
1769,
202,
202,
45,
6233,
2249,
2893,
273,
394,
467,
6233,
2249,
1435,
288,
1082,
202,
482,
918,
527,
6233,
5033,
2223,
12,
45,
6233,
5033,
2223,
2991,
13,
288,
6862,
1082,
202,
97,
1082,
202,
482,
467,
6233,
23204,
1435,
288,
9506,
202,
2463,
394,
7362,
2862,
6233,
12,
2704,
8072,
2
] |
if (verboseJNI) VM.sysWrite("JNI called: CallStaticObjectMethodA \n");
|
if (traceJNI) VM.sysWrite("JNI called: CallStaticObjectMethodA \n");
|
private static int CallStaticObjectMethodA(int envJREF, int classJREF, int methodID, VM_Address argAddress) throws Exception { if (verboseJNI) VM.sysWrite("JNI called: CallStaticObjectMethodA \n"); VM_JNIEnvironment env; try { Object returnObj = VM_JNIEnvironment.invokeWithJValue(methodID, argAddress, null); // this should be the object itself, insert into the side table and substitute with the JREF index env = VM_Thread.getCurrentThread().getJNIEnv(); return env.pushJNIRef(returnObj); } catch (Throwable unexpected) { env = VM_Thread.getCurrentThread().getJNIEnv(); env.recordException(unexpected); return 0; } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/09d8a822a8cf16e16c97ebb4496b4febb2e197a3/VM_JNIFunctions.java/clean/rvm/src/vm/jni/VM_JNIFunctions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
3049,
5788,
921,
1305,
37,
12,
474,
1550,
46,
10771,
16,
509,
667,
46,
10771,
16,
509,
707,
734,
16,
8251,
67,
1887,
1501,
1887,
13,
377,
1216,
1185,
288,
1377,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
3049,
5788,
921,
1305,
37,
225,
521,
82,
8863,
1377,
8251,
67,
46,
50,
45,
5494,
1550,
31,
1377,
775,
288,
3639,
1033,
327,
2675,
273,
8251,
67,
46,
50,
45,
5494,
18,
14407,
1190,
46,
620,
12,
2039,
734,
16,
1501,
1887,
16,
446,
1769,
5411,
368,
333,
1410,
506,
326,
733,
6174,
16,
2243,
1368,
326,
4889,
1014,
471,
14811,
598,
326,
804,
10771,
770,
3639,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
5411,
327,
1550,
18,
6206,
46,
50,
45,
1957,
12,
2463,
2675,
1769,
1171,
289,
1044,
261,
15155,
9733,
13,
288,
3639,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
3639,
1550,
18,
3366,
503,
12,
21248,
1769,
3639,
327,
374,
31,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
3049,
5788,
921,
1305,
37,
12,
474,
1550,
46,
10771,
16,
509,
667,
46,
10771,
16,
509,
707,
734,
16,
8251,
67,
1887,
1501,
1887,
13,
377,
1216,
1185,
288,
1377,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
3049,
5788,
921,
1305,
37,
225,
521,
82,
8863,
1377,
8251,
67,
46,
50,
45,
5494,
1550,
31,
1377,
775,
288,
3639,
1033,
327,
2675,
273,
8251,
67,
46,
50,
45,
5494,
18,
14407,
1190,
46,
620,
12,
2039,
734,
16,
1501,
1887,
16,
446,
1769,
5411,
368,
333,
1410,
506,
326,
733,
6174,
16,
2243,
1368,
326,
4889,
1014,
471,
14811,
598,
326,
804,
10771,
770,
2
] |
if (cx.hasFeature(Context.FEATURE_INTERPRETER_CONTINUATIONS)) { Continuation.init(cx, scope, sealed); }
|
Continuation.init(cx, scope, sealed);
|
public static ScriptableObject initStandardObjects(Context cx, ScriptableObject scope, boolean sealed) { if (scope == null) { scope = new NativeObject(); } scope.associateValue(LIBRARY_SCOPE_KEY, scope); ContextFactory factory = cx.getFactory(); if (factory == null) { // factory is null for Context asociated with the current thread // via Context.enter() factory = ContextFactory.getGlobal(); } scope.associateValue(CONTEXT_FACTORY_KEY, factory); (new ClassCache()).associate(scope); BaseFunction.init(cx, scope, sealed); NativeObject.init(cx, scope, sealed); Scriptable objectProto = ScriptableObject.getObjectPrototype(scope); // Function.prototype.__proto__ should be Object.prototype Scriptable functionProto = ScriptableObject.getFunctionPrototype(scope); functionProto.setPrototype(objectProto); // Set the prototype of the object passed in if need be if (scope.getPrototype() == null) scope.setPrototype(objectProto); // must precede NativeGlobal since it's needed therein NativeError.init(cx, scope, sealed); NativeGlobal.init(cx, scope, sealed); NativeArray.init(cx, scope, sealed); NativeString.init(cx, scope, sealed); NativeBoolean.init(cx, scope, sealed); NativeNumber.init(cx, scope, sealed); NativeDate.init(cx, scope, sealed); NativeMath.init(cx, scope, sealed); NativeWith.init(cx, scope, sealed); NativeCall.init(cx, scope, sealed); NativeScript.init(cx, scope, sealed); boolean withXml = cx.hasFeature(Context.FEATURE_E4X); for (int i = 0; i != lazilyNames.length; i += 2) { String topProperty = lazilyNames[i]; String className = lazilyNames[i + 1]; if (!withXml && className == XML_INIT_CLASS) { continue; } new LazilyLoadedCtor(scope, topProperty, className, sealed); } if (cx.hasFeature(Context.FEATURE_INTERPRETER_CONTINUATIONS)) { Continuation.init(cx, scope, sealed); } return scope; }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/f905f9d31c74bdb3208c5195cff3244f29533915/ScriptRuntime.java/buggy/src/org/mozilla/javascript/ScriptRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
921,
1208,
8336,
4710,
12,
1042,
9494,
16,
4766,
15604,
22780,
921,
2146,
16,
4766,
15604,
1250,
695,
18931,
13,
565,
288,
3639,
309,
261,
4887,
422,
446,
13,
288,
5411,
2146,
273,
394,
16717,
921,
5621,
3639,
289,
3639,
2146,
18,
11577,
620,
12,
2053,
28254,
67,
19444,
67,
3297,
16,
2146,
1769,
3639,
1772,
1733,
3272,
273,
9494,
18,
588,
1733,
5621,
3639,
309,
261,
6848,
422,
446,
13,
288,
5411,
368,
3272,
353,
446,
364,
1772,
487,
1882,
690,
598,
326,
783,
2650,
5411,
368,
3970,
1772,
18,
2328,
1435,
5411,
3272,
273,
1772,
1733,
18,
588,
5160,
5621,
3639,
289,
3639,
2146,
18,
11577,
620,
12,
13181,
67,
16193,
67,
3297,
16,
3272,
1769,
3639,
261,
2704,
1659,
1649,
1435,
2934,
11577,
12,
4887,
1769,
3639,
3360,
2083,
18,
2738,
12,
71,
92,
16,
2146,
16,
695,
18931,
1769,
3639,
16717,
921,
18,
2738,
12,
71,
92,
16,
2146,
16,
695,
18931,
1769,
3639,
22780,
733,
6262,
273,
22780,
921,
18,
588,
921,
15846,
12,
4887,
1769,
3639,
368,
4284,
18,
18541,
16186,
9393,
972,
1410,
506,
1033,
18,
18541,
3639,
22780,
445,
6262,
273,
22780,
921,
18,
588,
2083,
15846,
12,
4887,
1769,
3639,
445,
6262,
18,
542,
15846,
12,
1612,
6262,
1769,
3639,
368,
1000,
326,
4409,
434,
326,
733,
2275,
316,
309,
1608,
506,
3639,
309,
261,
4887,
18,
588,
15846,
1435,
422,
446,
13,
5411,
2146,
18,
542,
15846,
12,
1612,
6262,
1769,
3639,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
921,
1208,
8336,
4710,
12,
1042,
9494,
16,
4766,
15604,
22780,
921,
2146,
16,
4766,
15604,
1250,
695,
18931,
13,
565,
288,
3639,
309,
261,
4887,
422,
446,
13,
288,
5411,
2146,
273,
394,
16717,
921,
5621,
3639,
289,
3639,
2146,
18,
11577,
620,
12,
2053,
28254,
67,
19444,
67,
3297,
16,
2146,
1769,
3639,
1772,
1733,
3272,
273,
9494,
18,
588,
1733,
5621,
3639,
309,
261,
6848,
422,
446,
13,
288,
5411,
368,
3272,
353,
446,
364,
1772,
487,
1882,
690,
598,
326,
783,
2650,
5411,
368,
3970,
1772,
18,
2328,
1435,
5411,
3272,
273,
1772,
1733,
18,
588,
5160,
5621,
3639,
289,
3639,
2146,
18,
11577,
620,
12,
13181,
67,
16193,
67,
3297,
2
] |
} else if ( operator == Operator.LESS ) { return ArrayContainsEvaluator.INSTANCE;
|
public Evaluator getEvaluator(final Operator operator) { if ( operator == Operator.EQUAL ) { return ArrayEqualEvaluator.INSTANCE; } else if ( operator == Operator.NOT_EQUAL ) { return ArrayNotEqualEvaluator.INSTANCE; } else if ( operator == Operator.LESS ) { return ArrayContainsEvaluator.INSTANCE; } else if ( operator == Operator.CONTAINS ) { return ArrayContainsEvaluator.INSTANCE; } else { throw new RuntimeException( "Operator '" + operator + "' does not exist for ArrayEvaluator" ); } }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/0d8f348e034d124d5cbf23fa9be92822c1e67dbd/ArrayFactory.java/buggy/drools-core/src/main/java/org/drools/base/evaluators/ArrayFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
31956,
4774,
4531,
639,
12,
6385,
11097,
3726,
13,
288,
3639,
309,
261,
3726,
422,
11097,
18,
12853,
262,
288,
5411,
327,
1510,
5812,
15876,
18,
13341,
31,
3639,
289,
469,
309,
261,
3726,
422,
11097,
18,
4400,
67,
12853,
262,
288,
5411,
327,
1510,
1248,
5812,
15876,
18,
13341,
31,
3639,
289,
469,
309,
261,
3726,
422,
11097,
18,
26005,
262,
288,
5411,
327,
1510,
10846,
15876,
18,
13341,
31,
3639,
289,
469,
309,
261,
3726,
422,
11097,
18,
6067,
25838,
262,
288,
5411,
327,
1510,
10846,
15876,
18,
13341,
31,
3639,
289,
469,
288,
5411,
604,
394,
3235,
12,
315,
5592,
2119,
397,
3726,
397,
2491,
1552,
486,
1005,
364,
1510,
15876,
6,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
31956,
4774,
4531,
639,
12,
6385,
11097,
3726,
13,
288,
3639,
309,
261,
3726,
422,
11097,
18,
12853,
262,
288,
5411,
327,
1510,
5812,
15876,
18,
13341,
31,
3639,
289,
469,
309,
261,
3726,
422,
11097,
18,
4400,
67,
12853,
262,
288,
5411,
327,
1510,
1248,
5812,
15876,
18,
13341,
31,
3639,
289,
469,
309,
261,
3726,
422,
11097,
18,
26005,
262,
288,
5411,
327,
1510,
10846,
15876,
18,
13341,
31,
3639,
289,
469,
309,
261,
3726,
422,
11097,
18,
6067,
25838,
262,
288,
5411,
327,
1510,
10846,
15876,
18,
13341,
31,
3639,
289,
469,
288,
5411,
604,
394,
3235,
12,
315,
5592,
2119,
397,
3726,
397,
2491,
1552,
486,
1005,
364,
1510,
15876,
6,
11272,
3639,
2
] |
|
trackDatabase.setAutoDownload(count);
|
trackDatabase.setAutoDownload(acount.intValue());
|
public void createMenu() { Menu menubar = new Menu(shell, SWT.BAR); shell.setMenuBar(menubar); MenuItem item1 = new MenuItem(menubar, SWT.CASCADE); item1.setText("Action"); Menu menu1 = new Menu(item1); //Added for a nicer UI by Allen Tipper 14.9.03 menu1.addMenuListener(new MenuAdapter() { public void menuHidden(MenuEvent e) { update(); } }); //end add item1.setMenu(menu1); MenuItem item1_1 = new MenuItem(menu1, SWT.PUSH); item1_1.setText("Download"); item1_1.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { downloadThread.go(); } }); MenuItem item_undo = new MenuItem(menu1, SWT.PUSH); item_undo.setText("Undo Last Rating"); item_undo.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { undoLastRating(); } }); //Added for a nicer UI by Allen Tipper 16.9.03 item1_1.addArmListener(new ToolTipArmListener("Download a new track")); //end add MenuItem item1_4 = new MenuItem(menu1, SWT.PUSH); item1_4.setText("Quit"); item1_4.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { quit(); } }); //Added for a nicer UI by Allen Tipper 14.9.03 item1_4.addArmListener(new ToolTipArmListener("Quit iRATE radio")); //end add MenuItem item2 = new MenuItem(menubar, SWT.CASCADE); item2.setText("Settings"); Menu mSettings = new Menu(item2); //Added for a nicer UI by Allen Tipper 14.9.03 mSettings.addMenuListener(new MenuAdapter() { public void menuHidden(MenuEvent e) { update(); } }); //end add item2.setMenu(mSettings); MenuItem mDownload = new MenuItem(mSettings, SWT.CASCADE); mDownload.setText("Auto download"); //Added for a nicer UI by Allen Tipper 14.9.03 mDownload.addArmListener(new ToolTipArmListener("Automatically download")); //end add Menu menu2 = new Menu(mDownload); mDownload.setMenu(menu2); int[] counts = new int[] { 0, 5, 11, 17, 23, 29, 37 }; int autoDownload = trackDatabase.getAutoDownload(); for (int i = 0; i < counts.length; i++) { MenuItem mTimes = new MenuItem(menu2, SWT.CHECK, i); final int count = counts[i]; mTimes.setText(i == 0 ? "Disabled" : "< " + count + " unrated tracks"); mTimes.setSelection(count == autoDownload); mTimes.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { //stupid trick to make self the only selected item MenuItem self = (MenuItem) e.getSource(); uncheckSiblingMenuItems(self); self.setSelection(true); trackDatabase.setAutoDownload(count); downloadThread.checkAutoDownload(); } }); //Added for a nicer UI by Allen Tipper 14.9.03 mTimes.addArmListener( new ToolTipArmListener( "Automatically download when the number of unrated tracks is less than " + count)); //end add } MenuItem mPlayList = new MenuItem(mSettings, SWT.CASCADE); mPlayList.setText("Play list"); //Added for a nicer UI by Allen Tipper 14.9.03 mPlayList.addArmListener(new ToolTipArmListener("Set playlist length")); //end add Menu menuPlayList = new Menu(mPlayList); mPlayList.setMenu(menuPlayList); counts = new int[] { 13, 19, 31, 49 }; int playListLength = trackDatabase.getPlayListLength(); for (int i = 0; i < counts.length; i++) { MenuItem mTimes = new MenuItem(menuPlayList, SWT.CHECK, i); final int count = counts[i]; mTimes.setText(count + " tracks"); mTimes.setSelection(count == playListLength); mTimes.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { MenuItem self = (MenuItem) e.getSource(); uncheckSiblingMenuItems(self); self.setSelection(true); trackDatabase.setPlayListLength(count); } }); //Added for a nicer UI by Allen Tipper 14.9.03 mTimes.addArmListener( new ToolTipArmListener("Set songs in playlist to " + count)); //end add } /** * Added by Eric Dalquist - 11.09.2003 * * Allows the user to select the number of unrated tracks to add to each playlist generation */ MenuItem mNewUnrated = new MenuItem(mSettings, SWT.CASCADE); mNewUnrated.setText("Unrateds on List"); Menu menuNewUnrated = new Menu(mNewUnrated); mNewUnrated.setMenu(menuNewUnrated); int unratedPlayListRatio = trackDatabase.getUnratedPlayListRatio(); counts = new int[] { 0, 13, 29, 47, 63, 79, 97 }; for (int i = 0; i < counts.length; i++) { final Integer ratio = new Integer(counts[i]); MenuItem mRatio = new MenuItem(menuNewUnrated, SWT.CHECK, i); mRatio.setText(ratio + "%"); mRatio.setSelection(ratio.intValue() == unratedPlayListRatio); mRatio.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { MenuItem self = (MenuItem) e.getSource(); uncheckSiblingMenuItems(self); self.setSelection(true); trackDatabase.setUnratedPlayListRatio(ratio.intValue()); } }); //Added for a nicer UI by Allen Tipper 14.9.03 mRatio.addArmListener( new ToolTipArmListener( "Set percentage of unrated songs in playlist to " + ratio + "%.")); //end add } /****/ MenuItem mPlayers = new MenuItem(mSettings, SWT.CASCADE); mPlayers.setText("Player"); menu2 = new Menu(mPlayers); mPlayers.setMenu(menu2); //Added for a nicer UI by Allen Tipper 14.9.03 mPlayers.addArmListener(new ToolTipArmListener("Set mp3 player")); //end add Player players[] = playerList.getPlayers(); for (int i = 0; i < players.length; i++) { final String player = players[i].getName(); MenuItem mPlayer = new MenuItem(menu2, SWT.CHECK, i); mPlayer.setText(player); if (trackDatabase.getPlayer().equals(player)) mPlayer.setSelection(true); mPlayer.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { //stupid trick to make self the only selected item MenuItem self = (MenuItem) e.getSource(); uncheckSiblingMenuItems(self); self.setSelection(true); trackDatabase.setPlayer(player); downloadThread.checkAutoDownload(); } }); mPlayer.addArmListener( new ToolTipArmListener("Set mp3 player to " + player)); } MenuItem item2_1 = new MenuItem(mSettings, SWT.PUSH); item2_1.setText("Advanced"); item2_1.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { showSettingDialog(SettingDialog.PLUGIN_PAGE); } }); //Added for a nicer UI by Allen Tipper 14.9.03 item2_1.addArmListener(new ToolTipArmListener("Select Plugins")); //end add MenuItem item3 = new MenuItem(menubar, SWT.CASCADE); item3.setText("Info"); Menu menu3 = new Menu(item3); menu3.addMenuListener(new MenuAdapter() { public void menuHidden(MenuEvent e) { update(); } }); item3.setMenu(menu3); MenuItem item3_1 = new MenuItem(menu3, SWT.PUSH); item3_1.setText("Credits"); item3_1.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { actionAbout(); } }); item3_1.addArmListener(new ToolTipArmListener("Show the Credits")); }
|
11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/2dd31cadd51caaa9f2a17da85f75a61c3e5cbcf5/Client.java/clean/trunk/irate/irate/swt/Client.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
4599,
1435,
288,
565,
9809,
21247,
373,
297,
273,
394,
9809,
12,
10304,
16,
348,
8588,
18,
21908,
1769,
565,
5972,
18,
542,
4599,
5190,
12,
27617,
373,
297,
1769,
565,
25085,
761,
21,
273,
394,
25085,
12,
27617,
373,
297,
16,
348,
8588,
18,
3587,
25517,
1769,
565,
761,
21,
18,
542,
1528,
2932,
1803,
8863,
565,
9809,
3824,
21,
273,
394,
9809,
12,
1726,
21,
1769,
565,
368,
8602,
364,
279,
11562,
264,
6484,
635,
2262,
1897,
399,
625,
457,
5045,
18,
29,
18,
4630,
565,
3824,
21,
18,
1289,
4599,
2223,
12,
2704,
9809,
4216,
1435,
288,
1377,
1071,
918,
3824,
9345,
12,
4599,
1133,
425,
13,
288,
3639,
1089,
5621,
1377,
289,
565,
15549,
565,
368,
409,
527,
565,
761,
21,
18,
542,
4599,
12,
5414,
21,
1769,
565,
25085,
761,
21,
67,
21,
273,
394,
25085,
12,
5414,
21,
16,
348,
8588,
18,
30348,
1769,
565,
761,
21,
67,
21,
18,
542,
1528,
2932,
7109,
8863,
565,
761,
21,
67,
21,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1377,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
3639,
4224,
3830,
18,
3240,
5621,
1377,
289,
565,
15549,
565,
25085,
761,
67,
31226,
273,
394,
25085,
12,
5414,
21,
16,
348,
8588,
18,
30348,
1769,
565,
761,
67,
31226,
18,
542,
1528,
2932,
31224,
6825,
534,
1776,
8863,
565,
761,
67,
31226,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1377,
1071,
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,
752,
4599,
1435,
288,
565,
9809,
21247,
373,
297,
273,
394,
9809,
12,
10304,
16,
348,
8588,
18,
21908,
1769,
565,
5972,
18,
542,
4599,
5190,
12,
27617,
373,
297,
1769,
565,
25085,
761,
21,
273,
394,
25085,
12,
27617,
373,
297,
16,
348,
8588,
18,
3587,
25517,
1769,
565,
761,
21,
18,
542,
1528,
2932,
1803,
8863,
565,
9809,
3824,
21,
273,
394,
9809,
12,
1726,
21,
1769,
565,
368,
8602,
364,
279,
11562,
264,
6484,
635,
2262,
1897,
399,
625,
457,
5045,
18,
29,
18,
4630,
565,
3824,
21,
18,
1289,
4599,
2223,
12,
2704,
9809,
4216,
1435,
288,
1377,
1071,
918,
3824,
9345,
12,
4599,
1133,
425,
13,
288,
3639,
1089,
5621,
1377,
2
] |
public void recursive(String id) {
|
public void recursive(String id) {
|
public void recursive(String id) { _id = id; _ref = null; _indirection = true; }
|
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/TypeCode.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/TypeCode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5904,
12,
780,
612,
13,
288,
3639,
389,
350,
273,
612,
31,
3639,
389,
1734,
273,
446,
31,
3639,
389,
728,
2769,
273,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
918,
5904,
12,
780,
612,
13,
288,
3639,
389,
350,
273,
612,
31,
3639,
389,
1734,
273,
446,
31,
3639,
389,
728,
2769,
273,
638,
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
] |
o = new Clause(new Phrase(opt), c.isRequired(), c.isProhibited());
|
o = new Clause(new Phrase(opt), c.isRequired(), c.isProhibited(), getConf());
|
private static void addTerms(Query input, BooleanQuery output) { Clause[] clauses = input.getClauses(); for (int i = 0; i < clauses.length; i++) { Clause c = clauses[i]; if (!c.getField().equals(Clause.DEFAULT_FIELD)) continue; // skip non-default fields BooleanQuery out = new BooleanQuery(); for (int f = 0; f < FIELDS.length; f++) { Clause o = c; if (c.isPhrase()) { // optimize phrase clauses String[] opt = CommonGrams.optimizePhrase(c.getPhrase(), FIELDS[f]); if (opt.length==1) { o = new Clause(new Term(opt[0]), c.isRequired(), c.isProhibited()); } else { o = new Clause(new Phrase(opt), c.isRequired(), c.isProhibited()); } } out.add(o.isPhrase() ? exactPhrase(o.getPhrase(), FIELDS[f], FIELD_BOOSTS[f]) : termQuery(FIELDS[f], o.getTerm(), FIELD_BOOSTS[f]), false, false); } output.add(out, c.isRequired(), c.isProhibited()); } }
|
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/329ff64e9d7295aff108f85e9a8103f5e5f8f398/BasicQueryFilter.java/buggy/src/plugin/query-basic/src/java/org/apache/nutch/searcher/basic/BasicQueryFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
527,
11673,
12,
1138,
810,
16,
3411,
1138,
876,
13,
288,
565,
3905,
1579,
8526,
14093,
273,
810,
18,
588,
22434,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
14093,
18,
2469,
31,
277,
27245,
288,
1377,
3905,
1579,
276,
273,
14093,
63,
77,
15533,
1377,
309,
16051,
71,
18,
588,
974,
7675,
14963,
12,
7044,
18,
5280,
67,
6776,
3719,
3639,
1324,
31,
4766,
368,
2488,
1661,
17,
1886,
1466,
1377,
3411,
1138,
596,
273,
394,
3411,
1138,
5621,
1377,
364,
261,
474,
284,
273,
374,
31,
284,
411,
4011,
11608,
18,
2469,
31,
284,
27245,
288,
3639,
3905,
1579,
320,
273,
276,
31,
3639,
309,
261,
71,
18,
291,
12812,
10756,
288,
7682,
368,
10979,
13045,
14093,
1850,
514,
8526,
2153,
273,
5658,
43,
31454,
18,
29155,
12812,
12,
71,
18,
588,
12812,
9334,
4011,
11608,
63,
74,
19226,
1850,
309,
261,
3838,
18,
2469,
631,
21,
13,
288,
5411,
320,
273,
394,
3905,
1579,
12,
2704,
6820,
12,
3838,
63,
20,
65,
3631,
276,
18,
291,
3705,
9334,
276,
18,
291,
626,
29993,
10663,
1850,
289,
469,
288,
5411,
320,
273,
394,
3905,
1579,
12,
2704,
4360,
5648,
12,
3838,
3631,
276,
18,
291,
3705,
9334,
276,
18,
291,
626,
29993,
9334,
28836,
10663,
1850,
289,
3639,
289,
3639,
596,
18,
1289,
12,
83,
18,
291,
12812,
1435,
7734,
692,
5565,
12812,
12,
83,
18,
588,
12812,
9334,
4011,
11608,
63,
74,
6487,
9921,
67,
5315,
4005,
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,
527,
11673,
12,
1138,
810,
16,
3411,
1138,
876,
13,
288,
565,
3905,
1579,
8526,
14093,
273,
810,
18,
588,
22434,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
14093,
18,
2469,
31,
277,
27245,
288,
1377,
3905,
1579,
276,
273,
14093,
63,
77,
15533,
1377,
309,
16051,
71,
18,
588,
974,
7675,
14963,
12,
7044,
18,
5280,
67,
6776,
3719,
3639,
1324,
31,
4766,
368,
2488,
1661,
17,
1886,
1466,
1377,
3411,
1138,
596,
273,
394,
3411,
1138,
5621,
1377,
364,
261,
474,
284,
273,
374,
31,
284,
411,
4011,
11608,
18,
2469,
31,
284,
27245,
288,
3639,
3905,
1579,
320,
273,
276,
31,
3639,
309,
261,
71,
18,
291,
12812,
2
] |
protected void loadSystemColors(int systemColors[]) { }
|
protected void loadSystemColors(int systemColors[]) { }
|
protected void loadSystemColors(int systemColors[]) { // XXX Implement. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/Toolkit.java/buggy/core/src/classpath/java/java/awt/Toolkit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1262,
3163,
12570,
12,
474,
2619,
12570,
63,
5717,
225,
288,
565,
368,
11329,
10886,
18,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
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,
282,
4750,
918,
1262,
3163,
12570,
12,
474,
2619,
12570,
63,
5717,
225,
288,
565,
368,
11329,
10886,
18,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
boolean even = (rowIndex % 2 != 0); Element row = elem("row", parent); build(row, positions[rowIndex].members, even); return row; }
|
boolean even = (rowIndex % 2 != 0); Element row = elem("row", parent); build(row, positions[rowIndex].members, even); return row; }
|
Element build(int rowIndex) { boolean even = (rowIndex % 2 != 0); // counting starts at row 1 Element row = elem("row", parent); build(row, positions[rowIndex].members, even); return row; }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/DOMBuilder.java/clean/src/main/mondrian/web/taglib/DOMBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1046,
1361,
12,
474,
15361,
13,
288,
1082,
202,
6494,
5456,
273,
261,
492,
1016,
738,
576,
480,
374,
1769,
225,
368,
22075,
2542,
622,
1027,
404,
1082,
202,
1046,
1027,
273,
3659,
2932,
492,
3113,
982,
1769,
1082,
202,
3510,
12,
492,
16,
6865,
63,
492,
1016,
8009,
7640,
16,
5456,
1769,
1082,
202,
2463,
1027,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3196,
202,
1046,
1361,
12,
474,
15361,
13,
288,
1082,
202,
6494,
5456,
273,
261,
492,
1016,
738,
576,
480,
374,
1769,
225,
368,
22075,
2542,
622,
1027,
404,
1082,
202,
1046,
1027,
273,
3659,
2932,
492,
3113,
982,
1769,
1082,
202,
3510,
12,
492,
16,
6865,
63,
492,
1016,
8009,
7640,
16,
5456,
1769,
1082,
202,
2463,
1027,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
/* Skip past the entire function header to the next EOL. * Depends on how NAMEs are encoded. */ while (i < length && (source.charAt(i) != TokenStream.EOL || (i > 0 && source.charAt(i-1) == TokenStream.NAME))) {
|
skipLoop: for (;;) { token = source.charAt(i);
|
private static void decompile_r(NativeFunction f, int indent, boolean toplevel, boolean justbody, StringBuffer result) { String source = f.source; if (source == null) { if (!justbody) { result.append("function "); result.append(f.getFunctionName()); result.append("() {\n\t"); } result.append("[native code]\n"); if (!justbody) { result.append("}\n"); } return; } int length = source.length(); // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + length); for (int i = 0; i < length; ++i) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = TokenStream.tokenToName(source.charAt(i)); if (tokenname == null) tokenname = "---"; String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } int i = 0; if (length > 0) { /* special-case FUNCTION as the first token; if it is, * (and it's not followed by a NAME or LP) then we're * decompiling a function (and not the toplevel script.) * FUNCTION appearing elsewhere is an escape that means we'll * need to call toString of the given function (object). * If not at the top level, don't add an initial indent; * let the caller do it, so functions as expressions look * reasonable. */ if (toplevel) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } if (source.charAt(0) == TokenStream.FUNCTION // make sure it's not a script that begins with a // reference to a function definition. && length > 1 && (source.charAt(1) == TokenStream.NAME || source.charAt(1) == TokenStream.LP)) { if (!justbody) { result.append("function "); /* version != 1.2 Function constructor behavior - if * there's no function name in the source info, and * the names[0] entry is the empty string, then it must * have been created by the Function constructor; * print 'anonymous' as the function name if the * version (under which the function was compiled) is * less than 1.2... or if it's greater than 1.2, because * we need to be closer to ECMA. (ToSource, please?) */ if (nextIs(source, length, i, TokenStream.LP) && f.version != Context.VERSION_1_2 && f.functionName != null && f.functionName.equals("anonymous")) result.append("anonymous"); ++i; } else { /* Skip past the entire function header to the next EOL. * Depends on how NAMEs are encoded. */ while (i < length && (source.charAt(i) != TokenStream.EOL // the length char of a NAME sequence // can look like an EOL. || (i > 0 && source.charAt(i-1) == TokenStream.NAME))) { ++i; } // Skip past the EOL, too. ++i; } } } while (i < length) { int stop; switch(source.charAt(i)) { case TokenStream.NAME: case TokenStream.REGEXP: // re-wrapped in '/'s in parser... /* NAMEs are encoded as NAME, (char) length, string... * Note that lookahead for detecting labels depends on * this encoding; change there if this changes. * Also change function-header skipping code above, * used when decompling under decompileFunctionBody. */ ++i; stop = i + (int)source.charAt(i); result.append(source.substring(i + 1, stop + 1)); i = stop; break; case TokenStream.NUMBER: ++i; long lbits = 0; switch(source.charAt(i)) { case 'S': ++i; result.append((int)source.charAt(i)); break; case 'J': lbits |= (long)source.charAt(++i) << 48; lbits |= (long)source.charAt(++i) << 32; lbits |= (long)source.charAt(++i) << 16; lbits |= (long)source.charAt(++i); result.append(lbits); break; case 'D': lbits |= (long)source.charAt(++i) << 48; lbits |= (long)source.charAt(++i) << 32; lbits |= (long)source.charAt(++i) << 16; lbits |= (long)source.charAt(++i); double dval = Double.longBitsToDouble(lbits); result.append(ScriptRuntime.numberToString(dval, 10)); break; } break; case TokenStream.STRING: ++i; stop = i + (int)source.charAt(i); result.append('"'); result.append(ScriptRuntime.escapeString (source.substring(i + 1, stop + 1))); result.append('"'); i = stop; break; case TokenStream.PRIMARY: ++i; switch(source.charAt(i)) { case TokenStream.TRUE: result.append("true"); break; case TokenStream.FALSE: result.append("false"); break; case TokenStream.NULL: result.append("null"); break; case TokenStream.THIS: result.append("this"); break; case TokenStream.TYPEOF: result.append("typeof"); break; case TokenStream.VOID: result.append("void"); break; case TokenStream.UNDEFINED: result.append("undefined"); break; } break; case TokenStream.FUNCTION: { /* decompile a FUNCTION token as an escape; call * toString on the nth enclosed nested function, * where n is given by the byte that follows. */ ++i; int functionNumber = source.charAt(i); if (f.nestedFunctions == null || functionNumber > f.nestedFunctions.length) { String message; if (f.functionName != null && f.functionName.length() > 0) { message = Context.getMessage2 ("msg.no.function.ref.found.in", new Integer(functionNumber), f.functionName); } else { message = Context.getMessage1 ("msg.no.function.ref.found", new Integer(functionNumber)); } throw Context.reportRuntimeError(message); } decompile_r(f.nestedFunctions[functionNumber], indent, false, false, result); break; } case TokenStream.COMMA: result.append(", "); break; case TokenStream.LC: if (nextIs(source, length, i, TokenStream.EOL)) indent += OFFSET; result.append('{'); break; case TokenStream.RC: /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justbody && toplevel && i + 1 == length) break; if (nextIs(source, length, i, TokenStream.EOL)) indent -= OFFSET; if (nextIs(source, length, i, TokenStream.WHILE) || nextIs(source, length, i, TokenStream.ELSE)) { indent -= OFFSET; result.append("} "); } else result.append('}'); break; case TokenStream.LP: result.append('('); break; case TokenStream.RP: if (nextIs(source, length, i, TokenStream.LC)) result.append(") "); else result.append(')'); break; case TokenStream.LB: result.append('['); break; case TokenStream.RB: result.append(']'); break; case TokenStream.EOL: result.append('\n'); /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < length) { int less = 0; if (nextIs(source, length, i, TokenStream.CASE) || nextIs(source, length, i, TokenStream.DEFAULT)) less = SETBACK; else if (nextIs(source, length, i, TokenStream.RC)) less = OFFSET; /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. * Depends on how NAME is encoded. */ else if (nextIs(source, length, i, TokenStream.NAME)) { int skip = source.charAt(i + 2); if (source.charAt(i + skip + 3) == TokenStream.COLON) less = OFFSET; } for (; less < indent; less++) result.append(' '); } break; case TokenStream.DOT: result.append('.'); break; case TokenStream.NEW: result.append("new "); break; case TokenStream.DELPROP: result.append("delete "); break; case TokenStream.IF: result.append("if "); break; case TokenStream.ELSE: result.append("else "); break; case TokenStream.FOR: result.append("for "); break; case TokenStream.IN: result.append(" in "); break; case TokenStream.WITH: result.append("with "); break; case TokenStream.WHILE: result.append("while "); break; case TokenStream.DO: result.append("do "); break; case TokenStream.TRY: result.append("try "); break; case TokenStream.CATCH: result.append("catch "); break; case TokenStream.FINALLY: result.append("finally "); break; case TokenStream.THROW: result.append("throw "); break; case TokenStream.SWITCH: result.append("switch "); break; case TokenStream.BREAK: if (nextIs(source, length, i, TokenStream.NAME)) result.append("break "); else result.append("break"); break; case TokenStream.CONTINUE: if (nextIs(source, length, i, TokenStream.NAME)) result.append("continue "); else result.append("continue"); break; case TokenStream.CASE: result.append("case "); break; case TokenStream.DEFAULT: result.append("default"); break; case TokenStream.RETURN: if (nextIs(source, length, i, TokenStream.SEMI)) result.append("return"); else result.append("return "); break; case TokenStream.VAR: result.append("var "); break; case TokenStream.SEMI: if (nextIs(source, length, i, TokenStream.EOL)) // statement termination result.append(';'); else // separators in FOR result.append("; "); break; case TokenStream.ASSIGN: ++i; switch(source.charAt(i)) { case TokenStream.NOP: result.append(" = "); break; case TokenStream.ADD: result.append(" += "); break; case TokenStream.SUB: result.append(" -= "); break; case TokenStream.MUL: result.append(" *= "); break; case TokenStream.DIV: result.append(" /= "); break; case TokenStream.MOD: result.append(" %= "); break; case TokenStream.BITOR: result.append(" |= "); break; case TokenStream.BITXOR: result.append(" ^= "); break; case TokenStream.BITAND: result.append(" &= "); break; case TokenStream.LSH: result.append(" <<= "); break; case TokenStream.RSH: result.append(" >>= "); break; case TokenStream.URSH: result.append(" >>>= "); break; } break; case TokenStream.HOOK: result.append(" ? "); break; case TokenStream.OBJLIT: // pun OBJLIT to mean colon in objlit property initialization. // this needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case TokenStream.COLON: if (nextIs(source, length, i, TokenStream.EOL)) // it's the end of a label result.append(':'); else // it's the middle part of a ternary result.append(" : "); break; case TokenStream.OR: result.append(" || "); break; case TokenStream.AND: result.append(" && "); break; case TokenStream.BITOR: result.append(" | "); break; case TokenStream.BITXOR: result.append(" ^ "); break; case TokenStream.BITAND: result.append(" & "); break; case TokenStream.EQOP: ++i; switch(source.charAt(i)) { case TokenStream.SHEQ: /* * Emulate the C engine; if we're under version * 1.2, then the == operator behaves like the === * operator (and the source is generated by * decompiling a === opcode), so print the === * operator as ==. */ result.append(f.version == Context.VERSION_1_2 ? " == " : " === "); break; case TokenStream.SHNE: result.append(f.version == Context.VERSION_1_2 ? " != " : " !== "); break; case TokenStream.EQ: result.append(" == "); break; case TokenStream.NE: result.append(" != "); break; } break; case TokenStream.RELOP: ++i; switch(source.charAt(i)) { case TokenStream.LE: result.append(" <= "); break; case TokenStream.LT: result.append(" < "); break; case TokenStream.GE: result.append(" >= "); break; case TokenStream.GT: result.append(" > "); break; case TokenStream.INSTANCEOF: result.append(" instanceof "); break; } break; case TokenStream.SHOP: ++i; switch(source.charAt(i)) { case TokenStream.LSH: result.append(" << "); break; case TokenStream.RSH: result.append(" >> "); break; case TokenStream.URSH: result.append(" >>> "); break; } break; case TokenStream.UNARYOP: ++i; switch(source.charAt(i)) { case TokenStream.TYPEOF: result.append("typeof "); break; case TokenStream.VOID: result.append("void "); break; case TokenStream.NOT: result.append('!'); break; case TokenStream.BITNOT: result.append('~'); break; case TokenStream.ADD: result.append('+'); break; case TokenStream.SUB: result.append('-'); break; } break; case TokenStream.INC: result.append("++"); break; case TokenStream.DEC: result.append("--"); break; case TokenStream.ADD: result.append(" + "); break; case TokenStream.SUB: result.append(" - "); break; case TokenStream.MUL: result.append(" * "); break; case TokenStream.DIV: result.append(" / "); break; case TokenStream.MOD: result.append(" % "); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException(); } ++i; } // add that trailing newline if it's an outermost function. if (toplevel && !justbody) result.append('\n'); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/b9df1f20fc5192b6e50fca2006608ab88d68161f/NativeFunction.java/clean/src/org/mozilla/javascript/NativeFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
284,
18,
3168,
31,
3639,
309,
261,
3168,
422,
446,
13,
288,
5411,
309,
16051,
3732,
3432,
13,
288,
7734,
563,
18,
6923,
2932,
915,
315,
1769,
7734,
563,
18,
6923,
12,
74,
18,
588,
25258,
10663,
7734,
563,
18,
6923,
2932,
1435,
18890,
82,
64,
88,
8863,
5411,
289,
5411,
563,
18,
6923,
2932,
63,
13635,
981,
13944,
82,
8863,
5411,
309,
16051,
3732,
3432,
13,
288,
7734,
563,
18,
6923,
2932,
6280,
82,
8863,
5411,
289,
5411,
327,
31,
3639,
289,
3639,
509,
769,
273,
1084,
18,
2469,
5621,
3639,
368,
348,
347,
91,
2430,
316,
1084,
16,
364,
10450,
18,
3639,
368,
487,
3463,
1300,
1149,
3639,
309,
261,
1188,
1830,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
2469,
2773,
397,
769,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
965,
77,
13,
288,
7734,
368,
3609,
716,
1147,
774,
461,
903,
2321,
3308,
1772,
18,
1188,
26590,
7734,
368,
353,
638,
18,
7734,
514,
1147,
529,
273,
3155,
1228,
18,
2316,
774,
461,
12,
3168,
18,
3001,
861,
12,
77,
10019,
7734,
309,
261,
2316,
529,
422,
446,
13,
10792,
1147,
529,
273,
5238,
10951,
31,
7734,
514,
4627,
273,
1147,
529,
18,
2469,
1435,
405,
2371,
10792,
692,
1548,
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,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
284,
18,
3168,
31,
3639,
309,
261,
3168,
422,
446,
13,
288,
5411,
309,
16051,
3732,
3432,
13,
288,
7734,
563,
18,
6923,
2932,
915,
315,
1769,
7734,
563,
18,
6923,
12,
74,
18,
588,
25258,
10663,
7734,
563,
18,
6923,
2932,
1435,
18890,
82,
64,
88,
8863,
5411,
289,
5411,
563,
18,
6923,
2932,
63,
13635,
981,
13944,
82,
8863,
5411,
309,
16051,
3732,
3432,
13,
288,
7734,
563,
18,
6923,
2932,
6280,
82,
8863,
5411,
289,
5411,
327,
31,
3639,
289,
2
] |
return new SharedLocation(name, property, ++currentTimestamp);
|
return new SharedLocation(name, property, currentTimestamp);
|
NamedLocation newLocation (Symbol name, Object property) { if ((flags & THREAD_SAFE) != 0) return new SharedLocation(name, property, ++currentTimestamp); else return new PlainLocation(name, property); }
|
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/eece4e6c38184d885c4bdafa8be2788518498080/SimpleEnvironment.java/buggy/gnu/mapping/SimpleEnvironment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
9796,
2735,
394,
2735,
261,
5335,
508,
16,
1033,
1272,
13,
225,
288,
565,
309,
14015,
7133,
473,
7662,
6949,
67,
22219,
13,
480,
374,
13,
1377,
327,
394,
10314,
2735,
12,
529,
16,
1272,
16,
783,
4921,
1769,
565,
469,
1377,
327,
394,
17367,
2735,
12,
529,
16,
1272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
9796,
2735,
394,
2735,
261,
5335,
508,
16,
1033,
1272,
13,
225,
288,
565,
309,
14015,
7133,
473,
7662,
6949,
67,
22219,
13,
480,
374,
13,
1377,
327,
394,
10314,
2735,
12,
529,
16,
1272,
16,
783,
4921,
1769,
565,
469,
1377,
327,
394,
17367,
2735,
12,
529,
16,
1272,
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
] |
if (correspondingTask instanceof AbstractRepositoryTask && ((AbstractRepositoryTask)correspondingTask).isSynchronizing()) { decoration.addOverlay(TaskListImages.OVERLAY_SYNCHRONIZING, IDecoration.TOP_LEFT); }
|
decorate(correspondingTask, decoration);
|
public void decorate(Object element, IDecoration decoration) { if (element instanceof AbstractRepositoryQuery) { AbstractRepositoryQuery query = (AbstractRepositoryQuery)element; String repositoryUrl = query.getRepositoryUrl(); if (repositoryUrl != null) { try { URL url = new URL(repositoryUrl); decoration.addSuffix(" [" + url.getHost() + "]"); } catch (MalformedURLException e) { decoration.addSuffix(" [ <unknown host> ]"); } } if (query.isSynchronizing()) { decoration.addOverlay(TaskListImages.OVERLAY_SYNCHRONIZING, IDecoration.TOP_LEFT); } } else if (element instanceof AbstractRepositoryTask) { AbstractRepositoryTask task = (AbstractRepositoryTask)element; if (task.hasServerContext()) { decoration.addOverlay(TaskListImages.OVERLAY_REPOSITORY_CONTEXT, IDecoration.BOTTOM_LEFT); } else { decoration.addOverlay(TaskListImages.OVERLAY_REPOSITORY, IDecoration.BOTTOM_LEFT); } if (task.isSynchronizing()) { decoration.addOverlay(TaskListImages.OVERLAY_SYNCHRONIZING, IDecoration.TOP_LEFT); } } else if (element instanceof AbstractQueryHit) { decoration.addOverlay(TaskListImages.OVERLAY_REPOSITORY, IDecoration.BOTTOM_LEFT); ITask correspondingTask = ((AbstractQueryHit)element).getCorrespondingTask(); if (correspondingTask instanceof AbstractRepositoryTask && ((AbstractRepositoryTask)correspondingTask).isSynchronizing()) { decoration.addOverlay(TaskListImages.OVERLAY_SYNCHRONIZING, IDecoration.TOP_LEFT); } } else if (element instanceof ITask) { String url = ((ITask)element).getUrl(); if (url != null && !url.trim().equals("") && !url.equals("http://")) { decoration.addOverlay(TaskListImages.OVERLAY_WEB, IDecoration.BOTTOM_LEFT); } } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/f8673002c716fcd74f89e0aa0a6f7ab2ccc7adbe/RepositoryTaskDecorator.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/RepositoryTaskDecorator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15752,
12,
921,
930,
16,
1599,
557,
22226,
29217,
13,
288,
202,
202,
430,
261,
2956,
1276,
4115,
3305,
1138,
13,
288,
1082,
202,
7469,
3305,
1138,
843,
273,
261,
7469,
3305,
1138,
13,
2956,
31,
1082,
202,
780,
3352,
1489,
273,
843,
18,
588,
3305,
1489,
5621,
1082,
202,
430,
261,
9071,
1489,
480,
446,
13,
288,
9506,
202,
698,
288,
6862,
202,
1785,
880,
273,
394,
1976,
12,
9071,
1489,
1769,
6862,
202,
11880,
367,
18,
1289,
5791,
2932,
282,
8247,
397,
880,
18,
588,
2594,
1435,
397,
9870,
1769,
9506,
202,
97,
1044,
261,
18695,
20160,
425,
13,
288,
6862,
202,
11880,
367,
18,
1289,
5791,
2932,
282,
306,
411,
8172,
1479,
34,
308,
8863,
9506,
202,
97,
1082,
202,
97,
1875,
202,
430,
261,
2271,
18,
291,
19298,
6894,
10756,
288,
9506,
202,
11880,
367,
18,
1289,
11627,
12,
2174,
682,
8946,
18,
12959,
7868,
67,
7474,
50,
1792,
19359,
6867,
1360,
16,
1599,
557,
22226,
18,
10462,
67,
10066,
1769,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
2956,
1276,
4115,
3305,
2174,
13,
288,
1875,
202,
7469,
3305,
2174,
1562,
273,
261,
7469,
3305,
2174,
13,
2956,
31,
1082,
202,
430,
261,
4146,
18,
5332,
2081,
1042,
10756,
288,
4697,
202,
11880,
367,
18,
1289,
11627,
12,
2174,
682,
8946,
18,
12959,
7868,
67,
862,
30986,
67,
13181,
16,
1599,
557,
22226,
18,
28891,
67,
10066,
1769,
1082,
202,
97,
469,
288,
9506,
202,
11880,
367,
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,
15752,
12,
921,
930,
16,
1599,
557,
22226,
29217,
13,
288,
202,
202,
430,
261,
2956,
1276,
4115,
3305,
1138,
13,
288,
1082,
202,
7469,
3305,
1138,
843,
273,
261,
7469,
3305,
1138,
13,
2956,
31,
1082,
202,
780,
3352,
1489,
273,
843,
18,
588,
3305,
1489,
5621,
1082,
202,
430,
261,
9071,
1489,
480,
446,
13,
288,
9506,
202,
698,
288,
6862,
202,
1785,
880,
273,
394,
1976,
12,
9071,
1489,
1769,
6862,
202,
11880,
367,
18,
1289,
5791,
2932,
282,
8247,
397,
880,
18,
588,
2594,
1435,
397,
9870,
1769,
9506,
202,
97,
1044,
261,
18695,
20160,
425,
13,
288,
6862,
202,
11880,
367,
18,
1289,
5791,
2932,
282,
306,
411,
8172,
1479,
2
] |
IFile file = importFile("test.c", code);
|
IFile file = importFile("testSimpleOpenDeclaration2.c", code);
|
public void testSimpleOpenDeclaration2() throws Exception { String header = "int x;\r\n // comment \r\n int y() { return 1; } /* comment */ \r\n int z; \r\n"; //$NON-NLS-1$ importFile("test.h", header); //$NON-NLS-1$ String code = "int foo() { \n return y();\n}\n"; //$NON-NLS-1$ IFile file = importFile("test.c", code); int offset = code.indexOf("y();\n}\n"); IASTNode def = testCtrl_F3(file, offset); assertTrue(def instanceof IASTName); assertEquals(((ASTNode)def).getOffset(), header.indexOf("y")); //$NON-NLS-1$ assertEquals(((ASTNode)def).getLength(), "y".length()); //$NON-NLS-1$ IASTNode decl = testF3(file, offset); assertTrue(decl instanceof IASTName); assertEquals(((ASTNode)decl).getOffset(), header.indexOf("y")); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getLength(), "y".length()); //$NON-NLS-1$ }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1c13ce92c033f142e965141522bad019dd902bee/CSelectionTestsDOMIndexer.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsDOMIndexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5784,
3678,
6094,
22,
1435,
1216,
1185,
288,
202,
202,
780,
1446,
273,
315,
474,
619,
9747,
86,
64,
82,
368,
2879,
521,
86,
64,
82,
509,
677,
1435,
288,
327,
404,
31,
289,
1748,
2879,
1195,
521,
86,
64,
82,
509,
998,
31,
521,
86,
64,
82,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
5666,
812,
2932,
3813,
18,
76,
3113,
1446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
981,
273,
315,
474,
8431,
1435,
288,
521,
82,
327,
677,
5621,
64,
82,
6280,
82,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
45,
812,
585,
273,
1930,
812,
2932,
3813,
18,
71,
3113,
981,
1769,
9506,
202,
474,
1384,
273,
981,
18,
31806,
2932,
93,
5621,
64,
82,
6280,
82,
8863,
202,
202,
45,
9053,
907,
1652,
273,
1842,
12418,
67,
42,
23,
12,
768,
16,
1384,
1769,
202,
202,
11231,
5510,
12,
536,
1276,
467,
9053,
461,
1769,
202,
202,
11231,
8867,
12443,
12,
9053,
907,
13,
536,
2934,
588,
2335,
9334,
1446,
18,
31806,
2932,
93,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
11231,
8867,
12443,
12,
9053,
907,
13,
536,
2934,
588,
1782,
9334,
315,
93,
9654,
2469,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
45,
9053,
907,
3496,
273,
1842,
42,
23,
12,
768,
16,
1384,
1769,
202,
202,
11231,
5510,
12,
8840,
1276,
467,
9053,
461,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5784,
3678,
6094,
22,
1435,
1216,
1185,
288,
202,
202,
780,
1446,
273,
315,
474,
619,
9747,
86,
64,
82,
368,
2879,
521,
86,
64,
82,
509,
677,
1435,
288,
327,
404,
31,
289,
1748,
2879,
1195,
521,
86,
64,
82,
509,
998,
31,
521,
86,
64,
82,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
5666,
812,
2932,
3813,
18,
76,
3113,
1446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
981,
273,
315,
474,
8431,
1435,
288,
521,
82,
327,
677,
5621,
64,
82,
6280,
82,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
45,
812,
585,
273,
1930,
812,
2932,
3813,
18,
71,
3113,
2
] |
List<FeeView> feeViewList=new ArrayList<FeeView>(); FeeBO periodicFee = TestObjectFactory.createPeriodicAmountFee("Periodic Fee", FeeCategory.LOAN, "100", MeetingFrequency.WEEKLY, Short .valueOf("3"));
|
List<FeeView> feeViewList = new ArrayList<FeeView>(); FeeBO periodicFee = TestObjectFactory.createPeriodicAmountFee( "Periodic Fee", FeeCategory.LOAN, "100", MeetingFrequency.WEEKLY, Short.valueOf("3"));
|
public void testCreateLoanAccountWithPrincipalDueInLastPayment() throws NumberFormatException, InvalidUserException, PropertyNotFoundException, SystemException, ApplicationException { MeetingBO meeting = TestObjectFactory.createMeeting(TestObjectFactory .getMeetingHelper(1, 2, 4, 2)); center = TestObjectFactory.createCenter("Center", Short.valueOf("13"), "1.1", meeting, new Date(System.currentTimeMillis())); group = TestObjectFactory.createGroup("Group", Short.valueOf("9"), "1.1.1", center, new Date(System.currentTimeMillis())); LoanOfferingBO loanOffering = TestObjectFactory.createLoanOffering( "Loan", Short.valueOf("2"), new Date(System.currentTimeMillis()), Short.valueOf("1"), 300.0, 1.2, Short.valueOf("3"), Short.valueOf("1"), Short .valueOf("1"), Short.valueOf("1"), Short.valueOf("1"), Short.valueOf("1"), center.getCustomerMeeting().getMeeting()); List<FeeView> feeViewList=new ArrayList<FeeView>(); FeeBO periodicFee = TestObjectFactory.createPeriodicAmountFee("Periodic Fee", FeeCategory.LOAN, "100", MeetingFrequency.WEEKLY, Short .valueOf("3")); feeViewList.add(new FeeView(periodicFee)); FeeBO upfrontFee = TestObjectFactory.createOneTimeRateFee("Upfront Fee", FeeCategory.LOAN, Double.valueOf("20"),FeeFormula.AMOUNT, FeePayment.UPFRONT); feeViewList.add(new FeeView(upfrontFee)); FeeBO disbursementFee = TestObjectFactory.createOneTimeAmountFee("Disbursment Fee", FeeCategory.LOAN,"30", FeePayment.TIME_OF_DISBURSMENT); feeViewList.add(new FeeView(disbursementFee)); accountBO=new LoanBO(TestObjectFactory.getUserContext(), loanOffering, group, AccountState.getStatus(Short.valueOf("5")), new Money("300.0"), Short.valueOf("6"),new Date(System.currentTimeMillis()),false,1.2,(short) 0, new Fund(),feeViewList); new TestObjectPersistence().persist(accountBO); assertEquals(6,accountBO.getAccountActionDates().size()); for(AccountActionDateEntity accountActionDateEntity : accountBO.getAccountActionDates()){ if(accountActionDateEntity.getInstallmentId().equals(Short.valueOf("6"))){ assertEquals(DateUtils.getDateWithoutTimeStamp(incrementCurrentDate(14*6).getTime()),DateUtils.getDateWithoutTimeStamp(((LoanScheduleEntity)accountActionDateEntity).getActionDate().getTime())); assertEquals(((LoanBO)accountBO).getLoanSummary().getOriginalPrincipal(),((LoanScheduleEntity)accountActionDateEntity).getPrincipal()); assertEquals(1,((LoanScheduleEntity)accountActionDateEntity).getAccountFeesActionDetails().size()); for(AccountFeesActionDetailEntity accountFeesActionDetailEntity : ((LoanScheduleEntity)accountActionDateEntity).getAccountFeesActionDetails()){ assertEquals("Periodic Fee",accountFeesActionDetailEntity.getFee().getFeeName()); assertEquals(new Money("100.0"),accountFeesActionDetailEntity.getFeeAmount()); } } else if(accountActionDateEntity.getInstallmentId().equals(Short.valueOf("2")) ||accountActionDateEntity.getInstallmentId().equals(Short.valueOf("5"))){ assertEquals(new Money("0.0"),((LoanScheduleEntity)accountActionDateEntity).getPrincipal()); assertEquals(0,((LoanScheduleEntity)accountActionDateEntity).getAccountFeesActionDetails().size()); }else if(accountActionDateEntity.getInstallmentId().equals(Short.valueOf("1"))){ assertEquals(new Money("0.0"),((LoanScheduleEntity)accountActionDateEntity).getPrincipal()); assertEquals(2,((LoanScheduleEntity)accountActionDateEntity).getAccountFeesActionDetails().size()); for(AccountFeesActionDetailEntity accountFeesActionDetailEntity : ((LoanScheduleEntity)accountActionDateEntity).getAccountFeesActionDetails()){ if(accountFeesActionDetailEntity.getFee().getFeeName().equalsIgnoreCase("Periodic Fee")) assertEquals(new Money("100.0"),accountFeesActionDetailEntity.getFeeAmount()); else assertEquals(new Money("60.0"),accountFeesActionDetailEntity.getFeeAmount()); } }else{ assertEquals(new Money("0.0"),((LoanScheduleEntity)accountActionDateEntity).getPrincipal()); assertEquals(1,((LoanScheduleEntity)accountActionDateEntity).getAccountFeesActionDetails().size()); for(AccountFeesActionDetailEntity accountFeesActionDetailEntity : ((LoanScheduleEntity)accountActionDateEntity).getAccountFeesActionDetails()){ assertEquals("Periodic Fee",accountFeesActionDetailEntity.getFee().getFeeName()); assertEquals(new Money("100.0"),accountFeesActionDetailEntity.getFeeAmount()); } } assertEquals(new Money("0.1"),((LoanScheduleEntity)accountActionDateEntity).getInterest()); } assertEquals(3,accountBO.getAccountFees().size()); for(AccountFeesEntity accountFeesEntity : accountBO.getAccountFees()){ if(accountFeesEntity.getFees().getFeeName().equals("Upfront Fee")){ assertEquals(new Money("60.0"),accountFeesEntity.getAccountFeeAmount()); assertEquals(new Double("20.0"),accountFeesEntity.getFeeAmount()); }else if(accountFeesEntity.getFees().getFeeName().equals("Disbursment Fee")){ assertEquals(new Money("30.0"),accountFeesEntity.getAccountFeeAmount()); assertEquals(new Double("30.0"),accountFeesEntity.getFeeAmount()); }else{ assertEquals(new Money("100.0"),accountFeesEntity.getAccountFeeAmount()); assertEquals(new Double("100.0"),accountFeesEntity.getFeeAmount()); } } LoanSummaryEntity loanSummaryEntity = ((LoanBO)accountBO).getLoanSummary(); assertEquals(new Money("300.0"),loanSummaryEntity.getOriginalPrincipal()); assertEquals(new Money("0.6"),loanSummaryEntity.getOriginalInterest()); assertEquals(new Money("490.0"),loanSummaryEntity.getOriginalFees()); assertEquals(new Money("0.0"),loanSummaryEntity.getOriginalPenalty()); }
|
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/8b7a0cdb79f363f8ac3f82d8f06e16d5166a08ed/TestLoanBO.java/clean/mifos/test/org/mifos/application/accounts/loan/business/TestLoanBO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1684,
1504,
304,
3032,
1190,
9155,
30023,
382,
3024,
6032,
1435,
1216,
12100,
16,
1962,
1299,
503,
16,
4276,
3990,
16,
26731,
16,
28816,
288,
202,
202,
4667,
21747,
5315,
18721,
310,
273,
7766,
921,
1733,
18,
2640,
4667,
21747,
12,
4709,
921,
1733,
9506,
202,
18,
588,
4667,
21747,
2276,
12,
21,
16,
576,
16,
1059,
16,
576,
10019,
202,
202,
5693,
273,
7766,
921,
1733,
18,
2640,
8449,
2932,
8449,
3113,
7925,
18,
1132,
951,
2932,
3437,
6,
3631,
9506,
202,
6,
21,
18,
21,
3113,
18721,
310,
16,
394,
2167,
12,
3163,
18,
2972,
28512,
1435,
10019,
202,
202,
1655,
273,
7766,
921,
1733,
18,
2640,
1114,
2932,
1114,
3113,
7925,
18,
1132,
951,
2932,
29,
6,
3631,
9506,
202,
6,
21,
18,
21,
18,
21,
3113,
4617,
16,
394,
2167,
12,
3163,
18,
2972,
28512,
1435,
10019,
202,
202,
1504,
304,
17800,
5315,
28183,
17800,
273,
7766,
921,
1733,
18,
2640,
1504,
304,
17800,
12,
9506,
202,
6,
1504,
304,
3113,
7925,
18,
1132,
951,
2932,
22,
6,
3631,
9506,
202,
2704,
2167,
12,
3163,
18,
2972,
28512,
1435,
3631,
7925,
18,
1132,
951,
2932,
21,
6,
3631,
9506,
202,
19249,
18,
20,
16,
404,
18,
22,
16,
7925,
18,
1132,
951,
2932,
23,
6,
3631,
7925,
18,
1132,
951,
2932,
21,
6,
3631,
7925,
25083,
202,
18,
1132,
951,
2932,
21,
6,
3631,
7925,
18,
1132,
951,
2932,
21,
6,
3631,
7925,
18,
1132,
951,
2932,
21,
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,
1684,
1504,
304,
3032,
1190,
9155,
30023,
382,
3024,
6032,
1435,
1216,
12100,
16,
1962,
1299,
503,
16,
4276,
3990,
16,
26731,
16,
28816,
288,
202,
202,
4667,
21747,
5315,
18721,
310,
273,
7766,
921,
1733,
18,
2640,
4667,
21747,
12,
4709,
921,
1733,
9506,
202,
18,
588,
4667,
21747,
2276,
12,
21,
16,
576,
16,
1059,
16,
576,
10019,
202,
202,
5693,
273,
7766,
921,
1733,
18,
2640,
8449,
2932,
8449,
3113,
7925,
18,
1132,
951,
2932,
3437,
6,
3631,
9506,
202,
6,
21,
18,
21,
3113,
18721,
310,
16,
394,
2167,
12,
3163,
18,
2972,
28512,
1435,
10019,
202,
202,
1655,
273,
7766,
921,
1733,
18,
2640,
1114,
2932,
1114,
3113,
7925,
2
] |
logger.fine("Delegating the call to the target Restlet");
|
logger.fine("Delegating the call to the target handler");
|
public void handle(Request request, Response response) { String remainingRef = request.getRelativePart(); Matcher matcher = getPattern().matcher(remainingRef); boolean matched = matcher.lookingAt(); if(logger.isLoggable(Level.FINER)) { logger.finer("Attempting to match this pattern: " + getPattern().toString() + " >> " + matched); } if(matched) { // Updates the context String matchedPart = remainingRef.substring(0, matcher.end()); Reference baseRef = request.getBaseRef(); if(baseRef == null) { baseRef = new Reference(matchedPart); } else { baseRef = new Reference(baseRef.toString(false, false) + matchedPart); } request.setBaseRef(baseRef); if(logger.isLoggable(Level.FINE)) { logger.fine("New base URI: " + request.getBaseRef()); logger.fine("New relative part: " + request.getRelativePart()); } if(logger.isLoggable(Level.FINE)) { logger.fine("Delegating the call to the target Restlet"); } // Invoke the call restlet super.handle(request, response); } else { response.setStatus(Status.CLIENT_ERROR_NOT_FOUND); } }
|
14172 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14172/bc8269f9daadd917e4080d49d15d7b75a0a49dcd/PatternScorer.java/buggy/plugins/internal/com.noelios.restlet/src/com/noelios/restlet/impl/PatternScorer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
12,
691,
590,
16,
2306,
766,
13,
202,
95,
202,
202,
780,
4463,
1957,
273,
590,
18,
588,
8574,
1988,
5621,
202,
202,
6286,
4546,
273,
23420,
7675,
22761,
12,
17956,
1957,
1769,
1377,
1250,
4847,
273,
4546,
18,
7330,
310,
861,
5621,
9079,
309,
12,
4901,
18,
291,
1343,
8455,
12,
2355,
18,
7263,
654,
3719,
1377,
288,
4202,
202,
4901,
18,
926,
264,
2932,
23089,
358,
845,
333,
1936,
30,
315,
397,
23420,
7675,
10492,
1435,
397,
315,
1671,
315,
397,
4847,
1769,
1377,
289,
1377,
309,
12,
11073,
13,
1377,
288,
202,
1377,
368,
15419,
326,
819,
202,
1377,
514,
4847,
1988,
273,
4463,
1957,
18,
28023,
12,
20,
16,
4546,
18,
409,
10663,
202,
1377,
6268,
1026,
1957,
273,
590,
18,
588,
2171,
1957,
5621,
1082,
1377,
309,
12,
1969,
1957,
422,
446,
13,
202,
1377,
288,
202,
4202,
202,
1969,
1957,
273,
394,
6268,
12,
11073,
1988,
1769,
202,
1377,
289,
202,
1377,
469,
202,
1377,
288,
202,
4202,
202,
1969,
1957,
273,
394,
6268,
12,
1969,
1957,
18,
10492,
12,
5743,
16,
629,
13,
397,
4847,
1988,
1769,
202,
1377,
289,
202,
4202,
202,
1377,
590,
18,
542,
2171,
1957,
12,
1969,
1957,
1769,
1082,
1377,
309,
12,
4901,
18,
291,
1343,
8455,
12,
2355,
18,
42,
3740,
3719,
202,
1377,
288,
202,
4202,
202,
4901,
18,
74,
558,
2932,
1908,
1026,
3699,
30,
315,
397,
590,
18,
588,
2171,
1957,
10663,
202,
4202,
202,
4901,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
12,
691,
590,
16,
2306,
766,
13,
202,
95,
202,
202,
780,
4463,
1957,
273,
590,
18,
588,
8574,
1988,
5621,
202,
202,
6286,
4546,
273,
23420,
7675,
22761,
12,
17956,
1957,
1769,
1377,
1250,
4847,
273,
4546,
18,
7330,
310,
861,
5621,
9079,
309,
12,
4901,
18,
291,
1343,
8455,
12,
2355,
18,
7263,
654,
3719,
1377,
288,
4202,
202,
4901,
18,
926,
264,
2932,
23089,
358,
845,
333,
1936,
30,
315,
397,
23420,
7675,
10492,
1435,
397,
315,
1671,
315,
397,
4847,
1769,
1377,
289,
1377,
309,
12,
11073,
13,
1377,
288,
202,
1377,
368,
15419,
326,
819,
202,
1377,
514,
4847,
1988,
273,
4463,
1957,
18,
28023,
12,
20,
16,
4546,
2
] |
if (! (op instanceof OPT_RegisterOperand)) {
|
if (!(op instanceof OPT_RegisterOperand)) {
|
private void unSSAGuardsInit(OPT_IR ir) { guardPhis = null; OPT_InstructionEnumeration e = ir.forwardInstrEnumerator(); // visit all instructions, looking for guard phis while (e.hasMoreElements()) { OPT_Instruction inst = e.next(); if (! Phi.conforms (inst)) continue; OPT_Operand res = Phi.getResult(inst); if (! (res instanceof OPT_RegisterOperand)) continue; OPT_Register r = res.asRegister().register; if (!r.isValidation()) continue; // force all operands of Phis into registers. inst.scratchObject = guardPhis; guardPhis = inst; int values = Phi.getNumberOfValues (inst); for (int i = 0; i < values; ++i) { OPT_Operand op = Phi.getValue (inst, i); if (! (op instanceof OPT_RegisterOperand)) { if (op instanceof OPT_TrueGuardOperand) { OPT_BasicBlock bb = Phi.getPred (inst, i).block; OPT_Instruction move = Move.create (GUARD_MOVE, res.asRegister().copyD2D(), new OPT_TrueGuardOperand()); move.position = ir.gc.inlineSequence; move.bcIndex = SSA_SYNTH_BCI; bb.appendInstructionRespectingTerminalBranchOrPEI (move); } else { if (VM.VerifyAssertions) VM.assert (false); } } } } // visit all guard registers, init union/find for (OPT_Register r=ir.regpool.getFirstRegister(); r != null; r = r.next) { if (!r.isValidation()) continue; r.scratch = 1; r.scratchObject = r; } } /** * Determine target register for guard phi operands */ private void unSSAGuardsDetermineReg(OPT_IR ir) { OPT_Instruction inst = guardPhis; while (inst != null) { OPT_Register r = Phi.getResult (inst).asRegister().register; int values = Phi.getNumberOfValues (inst); for (int i = 0; i < values; ++i) { OPT_Operand op = Phi.getValue (inst, i); if (op instanceof OPT_RegisterOperand) { guardUnion (op.asRegister().register, r); } else { if (VM.VerifyAssertions) VM.assert (op instanceof OPT_TrueGuardOperand); } } inst = (OPT_Instruction) inst.scratchObject; } } /** * Rename registers and delete Phis. */ private void unSSAGuardsFinalize(OPT_IR ir) { OPT_DefUse.computeDU(ir); for (OPT_Register r=ir.regpool.getFirstRegister(); r != null; r = r.next) { if (!r.isValidation()) continue; OPT_Register nreg = guardFind(r); OPT_RegisterOperandEnumeration uses = OPT_DefUse.uses(r); while (uses.hasMoreElements()) { OPT_RegisterOperand use = uses.next(); use.register = nreg; } OPT_RegisterOperandEnumeration defs = OPT_DefUse.defs(r); while (defs.hasMoreElements()) { OPT_RegisterOperand def = defs.next(); def.register = nreg; } } OPT_Instruction inst = guardPhis; while (inst != null) { inst.remove(); inst = (OPT_Instruction) inst.scratchObject; } }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/2e9b63f891bf3203890d643c92ec568aec4c55c6/OPT_LeaveSSA.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/global/ssa/builder/OPT_LeaveSSA.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
640,
1260,
1781,
89,
14727,
2570,
12,
15620,
67,
7937,
9482,
13,
288,
565,
11026,
3731,
291,
273,
446,
31,
565,
16456,
67,
11983,
21847,
425,
273,
9482,
18,
11565,
382,
701,
3572,
7385,
5621,
565,
368,
3757,
777,
12509,
16,
7849,
364,
11026,
1844,
291,
565,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
1377,
16456,
67,
11983,
1804,
273,
425,
18,
4285,
5621,
1377,
309,
16051,
4360,
77,
18,
591,
9741,
261,
8591,
3719,
1324,
31,
1377,
16456,
67,
10265,
400,
273,
4360,
77,
18,
588,
1253,
12,
8591,
1769,
1377,
309,
16051,
261,
455,
1276,
16456,
67,
3996,
10265,
3719,
1324,
31,
1377,
16456,
67,
3996,
436,
273,
400,
18,
345,
3996,
7675,
4861,
31,
1377,
309,
16051,
86,
18,
291,
4354,
10756,
1324,
31,
1377,
368,
2944,
777,
14883,
434,
4360,
291,
1368,
10285,
18,
1377,
1804,
18,
24638,
505,
921,
273,
11026,
3731,
291,
31,
1377,
11026,
3731,
291,
273,
1804,
31,
1377,
509,
924,
273,
4360,
77,
18,
588,
9226,
1972,
261,
8591,
1769,
1377,
364,
261,
474,
277,
273,
374,
31,
225,
277,
411,
924,
31,
225,
965,
77,
13,
288,
3639,
16456,
67,
10265,
1061,
273,
4360,
77,
18,
24805,
261,
8591,
16,
277,
1769,
3639,
309,
16051,
12,
556,
1276,
16456,
67,
3996,
10265,
3719,
288,
1850,
309,
261,
556,
1276,
16456,
67,
5510,
16709,
10265,
13,
288,
5411,
16456,
67,
8252,
1768,
7129,
273,
4360,
77,
18,
588,
10391,
261,
8591,
16,
277,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
640,
1260,
1781,
89,
14727,
2570,
12,
15620,
67,
7937,
9482,
13,
288,
565,
11026,
3731,
291,
273,
446,
31,
565,
16456,
67,
11983,
21847,
425,
273,
9482,
18,
11565,
382,
701,
3572,
7385,
5621,
565,
368,
3757,
777,
12509,
16,
7849,
364,
11026,
1844,
291,
565,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
1377,
16456,
67,
11983,
1804,
273,
425,
18,
4285,
5621,
1377,
309,
16051,
4360,
77,
18,
591,
9741,
261,
8591,
3719,
1324,
31,
1377,
16456,
67,
10265,
400,
273,
4360,
77,
18,
588,
1253,
12,
8591,
1769,
1377,
309,
16051,
261,
455,
1276,
16456,
67,
3996,
10265,
3719,
1324,
31,
1377,
16456,
67,
3996,
436,
273,
400,
18,
345,
3996,
2
] |
OUTER: while (fCurrentEntity.position < fCurrentEntity.count) { c = fCurrentEntity.ch[fCurrentEntity.position++]; if (c == charAt0) { int delimOffset = fCurrentEntity.position - 1; for (int i = 1; i < delimLen; i++) { if (fCurrentEntity.position == fCurrentEntity.count) { fCurrentEntity.position -= i; break OUTER;
|
if (external) { OUTER: while (fCurrentEntity.position < fCurrentEntity.count) { c = fCurrentEntity.ch[fCurrentEntity.position++]; if (c == charAt0) { int delimOffset = fCurrentEntity.position - 1; for (int i = 1; i < delimLen; i++) { if (fCurrentEntity.position == fCurrentEntity.count) { fCurrentEntity.position -= i; break OUTER; } c = fCurrentEntity.ch[fCurrentEntity.position++]; if (delimiter.charAt(i) != c) { fCurrentEntity.position--; break; } } if (fCurrentEntity.position == delimOffset + delimLen) { done = true; break; } } else if (c == '\n' || c == '\r' || c == 0x85 || c == 0x2028) { fCurrentEntity.position--; break; } else if (!XML11Char.isXML11ValidLiteral(c)) { fCurrentEntity.position--; int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; buffer.append(fCurrentEntity.ch, offset, length); return true; } } } else { OUTER: while (fCurrentEntity.position < fCurrentEntity.count) { c = fCurrentEntity.ch[fCurrentEntity.position++]; if (c == charAt0) { int delimOffset = fCurrentEntity.position - 1; for (int i = 1; i < delimLen; i++) { if (fCurrentEntity.position == fCurrentEntity.count) { fCurrentEntity.position -= i; break OUTER; } c = fCurrentEntity.ch[fCurrentEntity.position++]; if (delimiter.charAt(i) != c) { fCurrentEntity.position--; break; }
|
public boolean scanData(String delimiter, XMLStringBuffer buffer) throws IOException { boolean done = false; int delimLen = delimiter.length(); char charAt0 = delimiter.charAt(0); boolean external = fCurrentEntity.isExternal(); do { // load more characters, if needed if (fCurrentEntity.position == fCurrentEntity.count) { load(0, true); } boolean bNextEntity = false; while ((fCurrentEntity.position >= fCurrentEntity.count - delimLen) && (!bNextEntity)) { System.arraycopy(fCurrentEntity.ch, fCurrentEntity.position, fCurrentEntity.ch, 0, fCurrentEntity.count - fCurrentEntity.position); bNextEntity = load(fCurrentEntity.count - fCurrentEntity.position, false); fCurrentEntity.position = 0; } if (fCurrentEntity.position >= fCurrentEntity.count - delimLen) { // something must be wrong with the input: e.g., file ends an unterminated comment int length = fCurrentEntity.count - fCurrentEntity.position; buffer.append (fCurrentEntity.ch, fCurrentEntity.position, length); fCurrentEntity.columnNumber += fCurrentEntity.count; fCurrentEntity.position = fCurrentEntity.count; load(0,true); return false; } // normalize newlines int offset = fCurrentEntity.position; int c = fCurrentEntity.ch[offset]; int newlines = 0; if (c == '\n' || ((c == '\r' || c == 0x85 || c == 0x2028) && external)) { do { c = fCurrentEntity.ch[fCurrentEntity.position++]; if ((c == '\r' ) && external) { newlines++; fCurrentEntity.lineNumber++; fCurrentEntity.columnNumber = 1; if (fCurrentEntity.position == fCurrentEntity.count) { offset = 0; fCurrentEntity.position = newlines; if (load(newlines, false)) { break; } } int cc = fCurrentEntity.ch[fCurrentEntity.position]; if (cc == '\n' || cc == 0x85) { fCurrentEntity.position++; offset++; } /*** NEWLINE NORMALIZATION ***/ else { newlines++; } } else if (c == '\n' || ((c == 0x85 || c == 0x2028) && external)) { newlines++; fCurrentEntity.lineNumber++; fCurrentEntity.columnNumber = 1; if (fCurrentEntity.position == fCurrentEntity.count) { offset = 0; fCurrentEntity.position = newlines; fCurrentEntity.count = newlines; if (load(newlines, false)) { break; } } } else { fCurrentEntity.position--; break; } } while (fCurrentEntity.position < fCurrentEntity.count - 1); for (int i = offset; i < fCurrentEntity.position; i++) { fCurrentEntity.ch[i] = '\n'; } int length = fCurrentEntity.position - offset; if (fCurrentEntity.position == fCurrentEntity.count - 1) { buffer.append(fCurrentEntity.ch, offset, length); return true; } } // iterate over buffer looking for delimiter OUTER: while (fCurrentEntity.position < fCurrentEntity.count) { c = fCurrentEntity.ch[fCurrentEntity.position++]; if (c == charAt0) { // looks like we just hit the delimiter int delimOffset = fCurrentEntity.position - 1; for (int i = 1; i < delimLen; i++) { if (fCurrentEntity.position == fCurrentEntity.count) { fCurrentEntity.position -= i; break OUTER; } c = fCurrentEntity.ch[fCurrentEntity.position++]; if (delimiter.charAt(i) != c) { fCurrentEntity.position--; break; } } if (fCurrentEntity.position == delimOffset + delimLen) { done = true; break; } } else if (c == '\n' || (external && (c == '\r' || c == 0x85 || c == 0x2028))) { fCurrentEntity.position--; break; } // note that we should not skip over control characters! else if (!XML11Char.isXML11ValidLiteral(c)) { fCurrentEntity.position--; int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; buffer.append(fCurrentEntity.ch, offset, length); return true; } } int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; if (done) { length -= delimLen; } buffer.append(fCurrentEntity.ch, offset, length); // return true if string was skipped } while (!done); return !done; } // scanData(String,XMLString)
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/d8db096e90c0de345ae957da67f23a25543e0eae/XML11EntityScanner.java/clean/src/org/apache/xerces/impl/XML11EntityScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
4135,
751,
12,
780,
5654,
16,
3167,
780,
1892,
1613,
13,
3639,
1216,
1860,
288,
3639,
1250,
2731,
273,
629,
31,
3639,
509,
10508,
2891,
273,
5654,
18,
2469,
5621,
3639,
1149,
4459,
20,
273,
5654,
18,
3001,
861,
12,
20,
1769,
3639,
1250,
3903,
273,
284,
3935,
1943,
18,
291,
6841,
5621,
3639,
741,
288,
5411,
368,
1262,
1898,
3949,
16,
309,
3577,
2398,
309,
261,
74,
3935,
1943,
18,
3276,
422,
284,
3935,
1943,
18,
1883,
13,
288,
7734,
1262,
12,
20,
16,
638,
1769,
5411,
289,
5411,
1250,
324,
2134,
1943,
273,
629,
31,
5411,
1323,
14015,
74,
3935,
1943,
18,
3276,
1545,
284,
3935,
1943,
18,
1883,
300,
10508,
2891,
13,
7734,
597,
16051,
70,
2134,
1943,
3719,
5411,
288,
2868,
2332,
18,
1126,
3530,
12,
74,
3935,
1943,
18,
343,
16,
1171,
9079,
284,
3935,
1943,
18,
3276,
16,
1171,
9079,
284,
3935,
1943,
18,
343,
16,
1171,
9079,
374,
16,
1171,
9079,
284,
3935,
1943,
18,
1883,
300,
284,
3935,
1943,
18,
3276,
1769,
2868,
324,
2134,
1943,
273,
1262,
12,
74,
3935,
1943,
18,
1883,
300,
284,
3935,
1943,
18,
3276,
16,
629,
1769,
2868,
284,
3935,
1943,
18,
3276,
273,
374,
31,
5411,
289,
5411,
309,
261,
74,
3935,
1943,
18,
3276,
1545,
284,
3935,
1943,
18,
1883,
300,
10508,
2891,
13,
288,
7734,
368,
5943,
1297,
506,
7194,
598,
326,
810,
30,
225,
425,
18,
75,
12990,
585,
3930,
225,
392,
640,
29133,
2879,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
4135,
751,
12,
780,
5654,
16,
3167,
780,
1892,
1613,
13,
3639,
1216,
1860,
288,
3639,
1250,
2731,
273,
629,
31,
3639,
509,
10508,
2891,
273,
5654,
18,
2469,
5621,
3639,
1149,
4459,
20,
273,
5654,
18,
3001,
861,
12,
20,
1769,
3639,
1250,
3903,
273,
284,
3935,
1943,
18,
291,
6841,
5621,
3639,
741,
288,
5411,
368,
1262,
1898,
3949,
16,
309,
3577,
2398,
309,
261,
74,
3935,
1943,
18,
3276,
422,
284,
3935,
1943,
18,
1883,
13,
288,
7734,
1262,
12,
20,
16,
638,
1769,
5411,
289,
5411,
1250,
324,
2134,
1943,
273,
629,
31,
5411,
1323,
14015,
74,
3935,
1943,
18,
3276,
1545,
284,
3935,
1943,
18,
1883,
300,
10508,
2891,
13,
7734,
2
] |
this.ranges = ranges; cachedTriangleIndices = null; }
|
this.ranges = ranges; cachedTriangleIndices = null; }
|
public void setIndexRanges(IndexRange[] ranges) { this.ranges = ranges; cachedTriangleIndices = null; }
|
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/d4ce5a219c06ba2f6a3775367ace1459c0d40d3f/CompositeMesh.java/buggy/src/com/jme/scene/CompositeMesh.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24860,
9932,
12,
1016,
2655,
8526,
7322,
13,
288,
3639,
333,
18,
14530,
273,
7322,
31,
3639,
3472,
31506,
8776,
273,
446,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24860,
9932,
12,
1016,
2655,
8526,
7322,
13,
288,
3639,
333,
18,
14530,
273,
7322,
31,
3639,
3472,
31506,
8776,
273,
446,
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
] |
public WorkspaceResolver(ResolverModel model) { super(ResourcesPlugin.getWorkspace().getRoot()); fModel = model;
|
public WorkspaceResolver() { this(ResolverModel.getDefault());
|
public WorkspaceResolver(ResolverModel model) { super(ResourcesPlugin.getWorkspace().getRoot()); fModel = model; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/87f24bfe30b15ee07c8f83065fedfa28ceb08b01/WorkspaceResolver.java/buggy/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/internal/filetype/WorkspaceResolver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14396,
4301,
12,
4301,
1488,
938,
13,
288,
202,
202,
9565,
12,
3805,
3773,
18,
588,
8241,
7675,
588,
2375,
10663,
202,
202,
74,
1488,
273,
938,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14396,
4301,
12,
4301,
1488,
938,
13,
288,
202,
202,
9565,
12,
3805,
3773,
18,
588,
8241,
7675,
588,
2375,
10663,
202,
202,
74,
1488,
273,
938,
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
] |
EventExpander.expandEvent(event); try { eventWriter.persistEvent(m_eventLog.getHeader(), event); EventIpcManagerFactory.getIpcManager().broadcastNow(event); } catch (SQLException sqle) { log.warn("Unable to add event to database", sqle); } catch (Throwable t) { log.warn("Unknown exception processing event", t);
|
Enumeration en = events.enumerateEvent(); while (en.hasMoreElements()) { Event event = (Event) en.nextElement(); if (log.isDebugEnabled()) { String uuid = event.getUuid(); log.debug("Event {"); log.debug(" uuid = " + (uuid != null && uuid.length() > 0 ? uuid : "<not-set>")); log.debug(" uei = " + event.getUei()); log.debug(" src = " + event.getSource()); log.debug(" iface = " + event.getInterface()); log.debug(" time = " + event.getTime()); Parm[] parms = (event.getParms() == null ? null : event.getParms().getParm()); if (parms != null) { log.debug(" parms {"); for (int x = 0; x < parms.length; x++) { if ((parms[x].getParmName() != null) && (parms[x].getValue().getContent() != null)) { log.debug(" (" + parms[x].getParmName().trim() + ", " + parms[x].getValue().getContent().trim() + ")"); } } log.debug(" }"); } log.debug("}"); } EventExpander.expandEvent(event); try { eventWriter.persistEvent(m_eventLog.getHeader(), event); EventIpcManagerFactory.getIpcManager().broadcastNow(event); } catch (SQLException sqle) { log.warn("Unable to add event to database", sqle); } catch (Throwable t) { log.warn("Unknown exception processing event", t); } try { alarmWriter.persistAlarm(m_eventLog.getHeader(), event); } catch (SQLException sqle) { log.warn("Unable to add alarm to database", sqle); }
|
public void run() { // check to see if the event log is hooked up // if (m_eventLog == null) return; // open up a logger // Category log = ThreadCategory.getInstance(getClass()); Events events = m_eventLog.getEvents(); if (events == null || events.getEventCount() <= 0) { // no events to process return; } // create an EventWriters EventWriter eventWriter = null; AlarmWriter alarmWriter = null; try { eventWriter = new EventWriter(m_getNextEventIdStr); alarmWriter = new AlarmWriter(m_getNextAlarmIdStr); } catch (Throwable t) { log.warn("Exception creating EventWriter", t); log.warn("Event(s) CANNOT be inserted into the database"); return; } Enumeration en = events.enumerateEvent(); while (en.hasMoreElements()) { Event event = (Event) en.nextElement(); if (log.isDebugEnabled()) { // print out the eui, source, and other // important aspects // String uuid = event.getUuid(); log.debug("Event {"); log.debug(" uuid = " + (uuid != null && uuid.length() > 0 ? uuid : "<not-set>")); log.debug(" uei = " + event.getUei()); log.debug(" src = " + event.getSource()); log.debug(" iface = " + event.getInterface()); log.debug(" time = " + event.getTime()); Parm[] parms = (event.getParms() == null ? null : event.getParms().getParm()); if (parms != null) { log.debug(" parms {"); for (int x = 0; x < parms.length; x++) { if ((parms[x].getParmName() != null) && (parms[x].getValue().getContent() != null)) { log.debug(" (" + parms[x].getParmName().trim() + ", " + parms[x].getValue().getContent().trim() + ")"); } } log.debug(" }"); } log.debug("}"); } // look up eventconf match and expand event EventExpander.expandEvent(event); try { // add to database eventWriter.persistEvent(m_eventLog.getHeader(), event); // send event to interested listeners EventIpcManagerFactory.getIpcManager().broadcastNow(event); } catch (SQLException sqle) { log.warn("Unable to add event to database", sqle); } catch (Throwable t) { log.warn("Unknown exception processing event", t); } try { alarmWriter.persistAlarm(m_eventLog.getHeader(), event); } catch (SQLException sqle) { log.warn("Unable to add alarm to database", sqle); } } // close database related stuff in the eventwriter eventWriter.close(); alarmWriter.close(); }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/28c2a8901ce87815f04f2ec58c0fa215f6dbe08b/EventHandler.java/clean/src/services/org/opennms/netmgt/eventd/EventHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
368,
866,
358,
2621,
309,
326,
871,
613,
353,
3953,
329,
731,
3639,
368,
3639,
309,
261,
81,
67,
2575,
1343,
422,
446,
13,
5411,
327,
31,
3639,
368,
1696,
731,
279,
1194,
3639,
368,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
3639,
9043,
2641,
273,
312,
67,
2575,
1343,
18,
588,
3783,
5621,
3639,
309,
261,
5989,
422,
446,
747,
2641,
18,
588,
1133,
1380,
1435,
1648,
374,
13,
288,
5411,
368,
1158,
2641,
358,
1207,
5411,
327,
31,
3639,
289,
3639,
368,
752,
392,
2587,
27508,
3639,
2587,
2289,
871,
2289,
273,
446,
31,
3639,
2262,
4610,
2289,
13721,
2289,
273,
446,
31,
3639,
775,
288,
5411,
871,
2289,
273,
394,
2587,
2289,
12,
81,
67,
588,
2134,
21973,
1585,
1769,
5411,
13721,
2289,
273,
394,
2262,
4610,
2289,
12,
81,
67,
588,
2134,
16779,
548,
1585,
1769,
3639,
289,
1044,
261,
15155,
268,
13,
288,
5411,
613,
18,
8935,
2932,
503,
4979,
2587,
2289,
3113,
268,
1769,
5411,
613,
18,
8935,
2932,
1133,
12,
87,
13,
385,
16791,
506,
9564,
1368,
326,
2063,
8863,
5411,
327,
31,
3639,
289,
3639,
13864,
570,
273,
2641,
18,
7924,
12600,
1133,
5621,
3639,
1323,
261,
275,
18,
5332,
7417,
3471,
10756,
288,
5411,
2587,
871,
273,
261,
1133,
13,
570,
18,
4285,
1046,
5621,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
7734,
368,
1172,
596,
326,
425,
4881,
16,
1084,
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,
377,
1071,
918,
1086,
1435,
288,
3639,
368,
866,
358,
2621,
309,
326,
871,
613,
353,
3953,
329,
731,
3639,
368,
3639,
309,
261,
81,
67,
2575,
1343,
422,
446,
13,
5411,
327,
31,
3639,
368,
1696,
731,
279,
1194,
3639,
368,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
3639,
9043,
2641,
273,
312,
67,
2575,
1343,
18,
588,
3783,
5621,
3639,
309,
261,
5989,
422,
446,
747,
2641,
18,
588,
1133,
1380,
1435,
1648,
374,
13,
288,
5411,
368,
1158,
2641,
358,
1207,
5411,
327,
31,
3639,
289,
3639,
368,
752,
392,
2587,
27508,
3639,
2587,
2289,
871,
2289,
273,
446,
31,
3639,
2262,
4610,
2289,
13721,
2289,
273,
446,
31,
3639,
2
] |
tuple[0] = "".getBytes(); tuple[1] = "".getBytes(); tuple[2] = r.getBytes(2); tuple[3] = r.getBytes(3);
|
java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0];
|
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { // the field descriptors for the new ResultSet Field f[] = new Field[18]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid,4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); // Added by Stefan Andreasen <[email protected]> // If the pattern are null then set them to % if (tableNamePattern == null) tableNamePattern="%"; if (columnNamePattern == null) columnNamePattern="%"; // Now form the query String query = "select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid" : "a.oid") + ",c.relname,a.attname,a.atttypid," + "a.attnum,a.attnotnull,a.attlen,a.atttypmod,d.adsrc " + "from (pg_class c inner join pg_attribute a " + "on (c.oid=a.attrelid) ) " + "left outer join pg_attrdef d " + "on (c.oid=d.adrelid and d.adnum=a.attnum) " + "where " + "c.relname like '"+tableNamePattern.toLowerCase()+"' and " + "a.attname like '"+columnNamePattern.toLowerCase()+"' and " + "a.attnum>0 " + "order by c.relname,a.attnum"; r = connection.ExecSQL(query); while(r.next()) { byte[][] tuple = new byte[18][0]; // Fetch the description for the table (if any) String getDescriptionStatement = connection.haveMinimumServerVersion("7.2") ? "select col_description(" + r.getInt(1) + "," + r.getInt(5) + ")" : "select description from pg_description where objoid=" + r.getInt(1); java.sql.ResultSet dr = connection.ExecSQL(getDescriptionStatement); if(((org.postgresql.ResultSet)dr).getTupleCount()==1) { dr.next(); tuple[11] = dr.getBytes(1); } else tuple[11] = null; dr.close(); tuple[0] = "".getBytes(); // Catalog name tuple[1] = "".getBytes(); // Schema name tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name dr = connection.ExecSQL("select typname from pg_type where oid = "+r.getString(4)); dr.next(); String typname=dr.getString(1); dr.close(); tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else tuple[6] = r.getBytes(7); tuple[7] = null; // Buffer length tuple[8] = "0".getBytes(); // Decimal Digits - how to get this? tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal // tuple[10] is below // tuple[11] is above tuple[12] = r.getBytes(9); // column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position String nullFlag = r.getString(6); tuple[10] = Integer.toString(nullFlag.equals("f")?java.sql.DatabaseMetaData.columnNullable:java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[17] = (nullFlag.equals("f")?"YES":"NO").getBytes(); // is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); }
|
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/07ce9fe61dd6cb7399d76f4a9cbcbe191b988ff2/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
368,
326,
652,
14215,
364,
326,
394,
10842,
565,
2286,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
565,
2252,
18,
4669,
18,
13198,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
565,
5589,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
565,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
565,
284,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
4574,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
565,
284,
63,
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,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
368,
326,
652,
14215,
364,
326,
394,
10842,
565,
2286,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
565,
2252,
18,
4669,
18,
13198,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
565,
5589,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
565,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
2
] |
defineMethod("center", Arity.singleArgument());
|
defineMethod("center", Arity.optional());
|
protected void initializeClass() { includeModule(getRuntime().getModule("Comparable")); includeModule(getRuntime().getModule("Enumerable")); addMethod("<=>", op_cmp); addMethod("==", equal); addMethod("===", veryEqual); addMethod("+", op_plus); addMethod("*", op_mul); addMethod("%", format); addMethod("hash", hash); addMethod("to_s", to_s); defineMethod("[]", Arity.optional(), "aref"); defineMethod("[]=", Arity.optional(), "aset"); defineMethod("=~", Arity.singleArgument(), "match"); defineMethod("~", Arity.noArguments(), "match2"); defineMethod("capitalize", Arity.noArguments()); defineMethod("capitalize!", Arity.noArguments(), "capitalize_bang"); defineMethod("casecmp", Arity.singleArgument()); defineMethod("center", Arity.singleArgument()); defineMethod("chop", Arity.noArguments()); defineMethod("chop!", Arity.noArguments(), "chop_bang"); defineMethod("chomp", Arity.optional()); defineMethod("chomp!", Arity.optional(), "chomp_bang"); defineMethod("clone", Arity.noArguments(), "rbClone"); defineMethod("concat", Arity.singleArgument()); defineMethod("count", Arity.optional()); defineMethod("delete", Arity.optional()); defineMethod("delete!", Arity.optional(), "delete_bang"); defineMethod("downcase", Arity.noArguments()); defineMethod("downcase!", Arity.noArguments(), "downcase_bang"); defineMethod("dump", Arity.noArguments()); defineMethod("dup", Arity.noArguments()); defineMethod("each_line", Arity.optional()); defineMethod("each_byte", Arity.noArguments()); defineMethod("empty?", Arity.noArguments(), "empty"); defineMethod("gsub", Arity.optional()); defineMethod("gsub!", Arity.optional(), "gsub_bang"); defineMethod("hex", Arity.noArguments()); defineMethod("include?", Arity.singleArgument(), "include"); defineMethod("index", Arity.optional()); defineMethod("initialize", Arity.optional(), "initialize"); defineMethod("initialize_copy", Arity.singleArgument(), "replace"); defineMethod("inspect", Arity.noArguments()); defineMethod("length", Arity.noArguments()); defineMethod("ljust", Arity.singleArgument()); defineMethod("lstrip", Arity.noArguments()); defineMethod("lstrip!", Arity.noArguments(), "lstrip_bang"); defineMethod("match", Arity.singleArgument(), "match3"); defineMethod("oct", Arity.noArguments()); defineMethod("replace", Arity.singleArgument()); defineMethod("reverse", Arity.noArguments()); defineMethod("reverse!", Arity.noArguments(), "reverse_bang"); defineMethod("rindex", Arity.optional()); defineMethod("rjust", Arity.singleArgument()); defineMethod("rstrip", Arity.noArguments()); defineMethod("rstrip!", Arity.noArguments(), "rstrip_bang"); defineMethod("scan", Arity.singleArgument()); defineMethod("slice!", Arity.optional(), "slice_bang"); defineMethod("split", Arity.optional()); defineMethod("strip", Arity.noArguments()); defineMethod("strip!", Arity.noArguments(), "strip_bang"); defineMethod("succ", Arity.noArguments()); defineMethod("succ!", Arity.noArguments(), "succ_bang"); defineMethod("squeeze", Arity.optional()); defineMethod("squeeze!", Arity.optional(), "squeeze_bang"); defineMethod("sub", Arity.optional()); defineMethod("sub!", Arity.optional(), "sub_bang"); defineMethod("sum", Arity.optional()); defineMethod("swapcase", Arity.noArguments()); defineMethod("swapcase!", Arity.noArguments(), "swapcase_bang"); defineMethod("to_f", Arity.noArguments()); defineMethod("to_i", Arity.noArguments()); defineMethod("to_str", Arity.noArguments()); defineMethod("to_sym", Arity.noArguments()); defineMethod("tr", Arity.twoArguments()); defineMethod("tr!", Arity.twoArguments(), "tr_bang"); defineMethod("tr_s", Arity.twoArguments()); defineMethod("tr_s!", Arity.twoArguments(), "tr_s_bang"); defineMethod("unpack", Arity.singleArgument()); defineMethod("upcase", Arity.noArguments()); defineMethod("upcase!", Arity.noArguments(), "upcase_bang"); defineMethod("upto", Arity.singleArgument()); defineAlias("<<", "concat"); defineAlias("each", "each_line"); defineAlias("eql?", "=="); defineAlias("intern", "to_sym"); defineAlias("next", "succ"); defineAlias("next!", "succ!"); defineAlias("size", "length"); defineAlias("slice", "[]"); }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/9f2efc63a858fa0507245b207025eab027840a04/StringMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/StringMetaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
4750,
918,
4046,
797,
1435,
288,
202,
3639,
2341,
3120,
12,
588,
5576,
7675,
588,
3120,
2932,
799,
10207,
7923,
1769,
202,
3639,
2341,
3120,
12,
588,
5576,
7675,
588,
3120,
2932,
3572,
25121,
7923,
1769,
202,
5411,
18223,
2932,
32,
33,
2984,
16,
1061,
67,
9625,
1769,
5411,
18223,
2932,
631,
3113,
3959,
1769,
5411,
18223,
2932,
631,
1546,
16,
8572,
5812,
1769,
5411,
18223,
2932,
15,
3113,
1061,
67,
10103,
1769,
5411,
18223,
2932,
14,
3113,
1061,
67,
16411,
1769,
5411,
18223,
27188,
3113,
740,
1769,
5411,
18223,
2932,
2816,
3113,
1651,
1769,
5411,
18223,
2932,
869,
67,
87,
3113,
358,
67,
87,
1769,
2398,
202,
3639,
4426,
1305,
2932,
8526,
3113,
1201,
560,
18,
10444,
9334,
315,
834,
74,
8863,
202,
3639,
4426,
1305,
2932,
8526,
1546,
16,
1201,
560,
18,
10444,
9334,
315,
2759,
8863,
202,
3639,
4426,
1305,
2932,
33,
98,
3113,
1201,
560,
18,
7526,
1379,
9334,
315,
1916,
8863,
202,
3639,
4426,
1305,
2932,
98,
3113,
1201,
560,
18,
2135,
4628,
9334,
315,
1916,
22,
8863,
202,
3639,
4426,
1305,
2932,
5909,
7053,
554,
3113,
1201,
560,
18,
2135,
4628,
10663,
202,
3639,
4426,
1305,
2932,
5909,
7053,
554,
5,
3113,
1201,
560,
18,
2135,
4628,
9334,
315,
5909,
7053,
554,
67,
70,
539,
8863,
202,
3639,
4426,
1305,
2932,
20901,
3113,
1201,
560,
18,
7526,
1379,
10663,
202,
3639,
4426,
1305,
2932,
5693,
3113,
1201,
560,
18,
7526,
1379,
10663,
202,
3639,
4426,
1305,
2932,
343,
556,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
4750,
918,
4046,
797,
1435,
288,
202,
3639,
2341,
3120,
12,
588,
5576,
7675,
588,
3120,
2932,
799,
10207,
7923,
1769,
202,
3639,
2341,
3120,
12,
588,
5576,
7675,
588,
3120,
2932,
3572,
25121,
7923,
1769,
202,
5411,
18223,
2932,
32,
33,
2984,
16,
1061,
67,
9625,
1769,
5411,
18223,
2932,
631,
3113,
3959,
1769,
5411,
18223,
2932,
631,
1546,
16,
8572,
5812,
1769,
5411,
18223,
2932,
15,
3113,
1061,
67,
10103,
1769,
5411,
18223,
2932,
14,
3113,
1061,
67,
16411,
1769,
5411,
18223,
27188,
3113,
740,
1769,
5411,
18223,
2932,
2816,
3113,
1651,
1769,
5411,
18223,
2932,
869,
67,
87,
3113,
358,
67,
87,
1769,
2398,
202,
3639,
4426,
1305,
2932,
8526,
3113,
1201,
560,
18,
2
] |
if (SanityManager.DEBUG && server.debugOutput && sqlcode < 0) { trace("handle SQLException here"); trace("reason is: "+e.getMessage()); trace("SQLState is: "+e.getSQLState()); trace("vendorCode is: "+e.getErrorCode()); trace("nextException is: "+e.getNextException()); server.consoleExceptionPrint(e); trace("wrapping SQLException into SQLCARD..."); }
|
if (SanityManager.DEBUG && server.debugOutput && sqlcode < 0) { trace("handle SQLException here"); trace("reason is: "+e.getMessage()); trace("SQLState is: "+e.getSQLState()); trace("vendorCode is: "+e.getErrorCode()); trace("nextException is: "+e.getNextException()); server.consoleExceptionPrint(e); trace("wrapping SQLException into SQLCARD..."); }
|
private void writeSQLCAGRP(SQLException e, int sqlcode, int updateCount, long rowCount) throws DRDAProtocolException { if (e == null) { // Forwarding to the optimized version when there is no // exception object writeSQLCAGRP(nullSQLState, sqlcode, updateCount, rowCount); return; } if (rowCount < 0 && updateCount < 0) { writer.writeByte(CodePoint.NULLDATA); return; } if (SanityManager.DEBUG && server.debugOutput && sqlcode < 0) { trace("handle SQLException here"); trace("reason is: "+e.getMessage()); trace("SQLState is: "+e.getSQLState()); trace("vendorCode is: "+e.getErrorCode()); trace("nextException is: "+e.getNextException()); server.consoleExceptionPrint(e); trace("wrapping SQLException into SQLCARD..."); } //null indicator writer.writeByte(0); // SQLCODE writer.writeInt(sqlcode); // SQLSTATE writer.writeString(e.getSQLState()); // SQLERRPROC // Write the byte[] constant rather than the string, for efficiency writer.writeBytes(server.prdIdBytes_); // SQLCAXGRP writeSQLCAXGRP(updateCount, rowCount, buildSqlerrmc(e), e.getNextException()); }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/d2989b7c8e85d8e5237ca2f36344eb4f163a426b/DRDAConnThread.java/clean/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
3997,
39,
1781,
54,
52,
12,
23116,
425,
16,
509,
1847,
710,
16,
509,
1089,
1380,
16,
9506,
4202,
1525,
14888,
13,
1216,
16801,
9793,
5752,
503,
565,
288,
3639,
309,
261,
73,
422,
446,
13,
288,
5411,
368,
17206,
310,
358,
326,
15411,
1177,
1347,
1915,
353,
1158,
5411,
368,
1520,
733,
5411,
1045,
3997,
39,
1781,
54,
52,
12,
2011,
3997,
1119,
16,
1847,
710,
16,
1089,
1380,
16,
14888,
1769,
5411,
327,
31,
3639,
289,
202,
430,
261,
492,
1380,
411,
374,
597,
1089,
1380,
411,
374,
13,
202,
565,
288,
202,
202,
6299,
18,
2626,
3216,
12,
31536,
18,
8560,
4883,
1769,
202,
202,
2463,
31,
202,
565,
289,
9506,
3639,
309,
261,
55,
10417,
1318,
18,
9394,
597,
1438,
18,
4148,
1447,
597,
1847,
710,
411,
374,
13,
288,
5411,
2606,
2932,
4110,
6483,
2674,
8863,
5411,
2606,
2932,
10579,
353,
30,
13773,
73,
18,
24906,
10663,
5411,
2606,
2932,
3997,
1119,
353,
30,
13773,
73,
18,
588,
3997,
1119,
10663,
5411,
2606,
2932,
10645,
1085,
353,
30,
13773,
73,
18,
588,
12012,
10663,
5411,
2606,
2932,
4285,
503,
353,
30,
13773,
73,
18,
588,
2134,
503,
10663,
5411,
1438,
18,
8698,
503,
5108,
12,
73,
1769,
5411,
2606,
2932,
4113,
1382,
6483,
1368,
3063,
28760,
7070,
1769,
3639,
289,
1082,
202,
759,
2011,
10664,
202,
6299,
18,
2626,
3216,
12,
20,
1769,
202,
759,
3063,
5572,
202,
6299,
18,
2626,
1702,
12,
4669,
710,
1769,
202,
759,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
3997,
39,
1781,
54,
52,
12,
23116,
425,
16,
509,
1847,
710,
16,
509,
1089,
1380,
16,
9506,
4202,
1525,
14888,
13,
1216,
16801,
9793,
5752,
503,
565,
288,
3639,
309,
261,
73,
422,
446,
13,
288,
5411,
368,
17206,
310,
358,
326,
15411,
1177,
1347,
1915,
353,
1158,
5411,
368,
1520,
733,
5411,
1045,
3997,
39,
1781,
54,
52,
12,
2011,
3997,
1119,
16,
1847,
710,
16,
1089,
1380,
16,
14888,
1769,
5411,
327,
31,
3639,
289,
202,
430,
261,
492,
1380,
411,
374,
597,
1089,
1380,
411,
374,
13,
202,
565,
288,
202,
202,
6299,
18,
2626,
3216,
12,
31536,
18,
8560,
4883,
1769,
202,
202,
2463,
31,
202,
565,
289,
9506,
3639,
2
] |
newRubyClass.defineMethod(methodName, new JavaReflectionMethod(methods[i]));
|
if (Modifier.isStatic(methods[i].getModifiers())) { if (singletonMethodMap.get(methods[i].getName()) == null) { singletonMethodMap.put(methods[i].getName(), new LinkedList()); } ((List)singletonMethodMap.get(methods[i].getName())).add(methods[i]); } else { if (methodMap.get(methods[i].getName()) == null) { methodMap.put(methods[i].getName(), new LinkedList()); } ((List)methodMap.get(methods[i].getName())).add(methods[i]); }
|
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getString(); } try { final Class c = Class.forName(javaName); final RubyClass newRubyClass = ruby.defineClass(rubyName, (RubyClass)ruby.getRubyClass("JavaObject")); Method[] methods = c.getMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if (methods[i].getDeclaringClass() != Object.class) { newRubyClass.defineMethod(methodName, new JavaReflectionMethod(methods[i])); } } newRubyClass.defineSingletonMethod("new", new RubyCallbackMethod() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { try { Object value = c.newInstance(); RubyJavaObject javaObject = new RubyJavaObject(ruby, (RubyModule)recv, value); javaObject.callInit(args); return javaObject; } catch (Exception excptn) { } return ruby.getNil(); } }); return newRubyClass; } catch (ClassNotFoundException cnfExcptn) { throw new RubyNameException("cannot found Java class: " + javaName); } catch (SecurityException sExcptn) { } return ruby.getNil(); }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/241a0fe060c8d239aa9e5d2519e98cf44d69a201/RubyJavaObject.java/clean/org/jruby/RubyJavaObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
312,
67,
945,
67,
1106,
12,
54,
10340,
22155,
16,
19817,
3120,
22155,
797,
16,
19817,
780,
2658,
16,
19817,
921,
8526,
833,
13,
288,
3639,
514,
2252,
461,
273,
2658,
18,
588,
780,
5621,
3639,
514,
22155,
461,
273,
2252,
461,
18,
28023,
12,
6290,
461,
18,
2722,
31985,
2668,
1093,
13,
397,
404,
1769,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
22155,
461,
273,
14015,
54,
10340,
780,
13,
1968,
63,
20,
65,
2934,
588,
780,
5621,
3639,
289,
7734,
775,
288,
5411,
727,
1659,
276,
273,
1659,
18,
1884,
461,
12,
6290,
461,
1769,
13491,
727,
19817,
797,
394,
54,
10340,
797,
273,
22155,
18,
11255,
797,
12,
27768,
461,
16,
261,
54,
10340,
797,
13,
27768,
18,
588,
54,
10340,
797,
2932,
5852,
921,
7923,
1769,
13491,
2985,
8526,
2590,
273,
276,
18,
588,
4712,
5621,
13491,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
277,
27245,
288,
7734,
514,
4918,
273,
2590,
63,
77,
8009,
17994,
5621,
7734,
309,
261,
5163,
63,
77,
8009,
588,
3456,
14682,
1435,
480,
1033,
18,
1106,
13,
288,
10792,
309,
261,
9829,
18,
291,
5788,
12,
5163,
63,
77,
8009,
588,
11948,
1435,
3719,
288,
309,
261,
24487,
1305,
863,
18,
588,
12,
5163,
63,
77,
8009,
17994,
10756,
422,
446,
13,
288,
6396,
1305,
863,
18,
458,
12,
5163,
63,
77,
8009,
17994,
9334,
394,
10688,
10663,
289,
14015,
682,
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,
1071,
760,
19817,
921,
312,
67,
945,
67,
1106,
12,
54,
10340,
22155,
16,
19817,
3120,
22155,
797,
16,
19817,
780,
2658,
16,
19817,
921,
8526,
833,
13,
288,
3639,
514,
2252,
461,
273,
2658,
18,
588,
780,
5621,
3639,
514,
22155,
461,
273,
2252,
461,
18,
28023,
12,
6290,
461,
18,
2722,
31985,
2668,
1093,
13,
397,
404,
1769,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
22155,
461,
273,
14015,
54,
10340,
780,
13,
1968,
63,
20,
65,
2934,
588,
780,
5621,
3639,
289,
7734,
775,
288,
5411,
727,
1659,
276,
273,
1659,
18,
1884,
461,
12,
6290,
461,
1769,
13491,
727,
19817,
797,
394,
54,
10340,
797,
273,
22155,
18,
11255,
797,
2
] |
case RELATION_CHILD:
|
case LockssRepository.BELOW:
|
static boolean isAllowedOnCus(int newActivity, int curActivity, int relation) { switch (curActivity) { case BACKGROUND_CRAWL: case REPAIR_CRAWL: switch (relation) { case RELATION_SAME: // only one action on a CUS at a time except for name polls // (resuming after repair crawl) return (newActivity==STANDARD_NAME_POLL); case RELATION_PARENT: // if this CUS is a parent, any action allowed return true; case RELATION_CHILD: return ((newActivity==BACKGROUND_CRAWL) || (newActivity==REPAIR_CRAWL)); default: return true; } case STANDARD_CONTENT_POLL: case STANDARD_NAME_POLL: switch (relation) { case RELATION_SAME: // only one action on a CUS at a time unless it's a name poll or // a repair crawl return ((newActivity==STANDARD_NAME_POLL) || (newActivity==REPAIR_CRAWL)); case RELATION_PARENT: // if this CUS is a parent, allow content polls and repair crawls on // sub-nodes (PollManager should have blocked any truly illegal ones) return ((newActivity==STANDARD_CONTENT_POLL) || (newActivity==REPAIR_CRAWL)); case RELATION_CHILD: // if this CUS is a child, only crawls allowed, and single node // content polls return ((newActivity==BACKGROUND_CRAWL) || (newActivity==REPAIR_CRAWL) || (newActivity==SINGLE_NODE_CONTENT_POLL)); default: return true; } case SINGLE_NODE_CONTENT_POLL: switch (relation) { case RELATION_SAME: // only one action on a CUS at a time unless it's a name poll return (newActivity==REPAIR_CRAWL); case RELATION_PARENT: // if this CUS is a parent, allow anything below return true; case RELATION_CHILD: // if this CUS is a child, only crawls allowed return ((newActivity==BACKGROUND_CRAWL) || (newActivity==REPAIR_CRAWL)); default: return true; } case NO_ACTIVITY: default: return true; } }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ea16bccf9107b0f96d84dbed3da2cacd546a2c4d/ActivityRegulator.java/clean/src/org/lockss/daemon/ActivityRegulator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
21956,
1398,
39,
407,
12,
474,
394,
6193,
16,
509,
662,
6193,
16,
509,
2533,
13,
288,
565,
1620,
261,
1397,
6193,
13,
288,
1377,
648,
29226,
67,
39,
10821,
48,
30,
1377,
648,
2438,
4066,
7937,
67,
39,
10821,
48,
30,
3639,
1620,
261,
5488,
13,
288,
1850,
648,
31595,
67,
29080,
30,
5411,
368,
1338,
1245,
1301,
603,
279,
385,
3378,
622,
279,
813,
1335,
364,
508,
2952,
3251,
5411,
368,
261,
455,
21249,
1839,
20994,
23182,
13,
5411,
327,
261,
2704,
6193,
631,
882,
18264,
67,
1985,
67,
14232,
48,
1769,
1850,
648,
31595,
67,
14943,
30,
5411,
368,
309,
333,
385,
3378,
353,
279,
982,
16,
1281,
1301,
2935,
5411,
327,
638,
31,
1850,
648,
3488,
1049,
3305,
18,
5948,
4130,
30,
5411,
327,
14015,
2704,
6193,
631,
8720,
20166,
67,
39,
10821,
48,
13,
747,
10792,
261,
2704,
6193,
631,
862,
4066,
7937,
67,
39,
10821,
48,
10019,
1850,
805,
30,
5411,
327,
638,
31,
3639,
289,
1377,
648,
23255,
67,
9689,
67,
14232,
48,
30,
1377,
648,
23255,
67,
1985,
67,
14232,
48,
30,
3639,
1620,
261,
5488,
13,
288,
1850,
648,
31595,
67,
29080,
30,
5411,
368,
1338,
1245,
1301,
603,
279,
385,
3378,
622,
279,
813,
3308,
518,
1807,
279,
508,
7672,
578,
5411,
368,
279,
20994,
23182,
5411,
327,
14015,
2704,
6193,
631,
882,
18264,
67,
1985,
67,
14232,
48,
13,
747,
10792,
261,
2704,
6193,
631,
862,
4066,
7937,
67,
39,
10821,
48,
10019,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
21956,
1398,
39,
407,
12,
474,
394,
6193,
16,
509,
662,
6193,
16,
509,
2533,
13,
288,
565,
1620,
261,
1397,
6193,
13,
288,
1377,
648,
29226,
67,
39,
10821,
48,
30,
1377,
648,
2438,
4066,
7937,
67,
39,
10821,
48,
30,
3639,
1620,
261,
5488,
13,
288,
1850,
648,
31595,
67,
29080,
30,
5411,
368,
1338,
1245,
1301,
603,
279,
385,
3378,
622,
279,
813,
1335,
364,
508,
2952,
3251,
5411,
368,
261,
455,
21249,
1839,
20994,
23182,
13,
5411,
327,
261,
2704,
6193,
631,
882,
18264,
67,
1985,
67,
14232,
48,
1769,
1850,
648,
31595,
67,
14943,
30,
5411,
368,
309,
333,
385,
3378,
353,
279,
982,
16,
1281,
1301,
2935,
5411,
327,
638,
2
] |
if (actionHandlers != null) actionHandlers.clear(); if (menuMgr != null) { menuMgr.dispose(); menuMgr.disposeManager(); } if (statusLineMgr != null) statusLineMgr.disposeManager(); if (toolBarMgr != null) toolBarMgr.disposeManager(); clearListeners(); }
|
clearGlobalActionHandlers(); if (menuMgr != null) { menuMgr.dispose(); menuMgr.disposeManager(); } if (statusLineMgr != null) statusLineMgr.disposeManager(); if (toolBarMgr != null) toolBarMgr.disposeManager(); clearListeners(); }
|
public void dispose() { if (actionHandlers != null) actionHandlers.clear(); if (menuMgr != null) { menuMgr.dispose(); menuMgr.disposeManager(); } if (statusLineMgr != null) statusLineMgr.disposeManager(); if (toolBarMgr != null) toolBarMgr.disposeManager(); clearListeners(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/f1c8b0aa355c00a6c82a289c808984de6778bfca/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
309,
261,
1128,
6919,
480,
446,
13,
5411,
1301,
6919,
18,
8507,
5621,
3639,
309,
261,
5414,
9455,
480,
446,
13,
288,
5411,
3824,
9455,
18,
2251,
4150,
5621,
5411,
3824,
9455,
18,
2251,
4150,
1318,
5621,
3639,
289,
3639,
309,
261,
2327,
1670,
9455,
480,
446,
13,
5411,
1267,
1670,
9455,
18,
2251,
4150,
1318,
5621,
3639,
309,
261,
6738,
5190,
9455,
480,
446,
13,
5411,
5226,
5190,
9455,
18,
2251,
4150,
1318,
5621,
3639,
2424,
5583,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
309,
261,
1128,
6919,
480,
446,
13,
5411,
1301,
6919,
18,
8507,
5621,
3639,
309,
261,
5414,
9455,
480,
446,
13,
288,
5411,
3824,
9455,
18,
2251,
4150,
5621,
5411,
3824,
9455,
18,
2251,
4150,
1318,
5621,
3639,
289,
3639,
309,
261,
2327,
1670,
9455,
480,
446,
13,
5411,
1267,
1670,
9455,
18,
2251,
4150,
1318,
5621,
3639,
309,
261,
6738,
5190,
9455,
480,
446,
13,
5411,
5226,
5190,
9455,
18,
2251,
4150,
1318,
5621,
3639,
2424,
5583,
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
] |
IdFunction f = newIdFunction(name, id);
|
IdFunction f = newIdFunction(id);
|
protected void addIdFunctionProperty (Scriptable obj, String name, int id, boolean sealed) { IdFunction f = newIdFunction(name, id); if (sealed) { f.sealObject(); } defineProperty(obj, name, f, DONTENUM); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/IdScriptable.java/buggy/js/rhino/org/mozilla/javascript/IdScriptable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
548,
2083,
1396,
3639,
261,
3651,
429,
1081,
16,
514,
508,
16,
509,
612,
16,
1250,
695,
18931,
13,
565,
288,
3639,
3124,
2083,
284,
273,
27598,
2083,
12,
350,
1769,
3639,
309,
261,
307,
18931,
13,
288,
284,
18,
307,
287,
921,
5621,
289,
3639,
14007,
12,
2603,
16,
508,
16,
284,
16,
463,
10079,
16509,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
548,
2083,
1396,
3639,
261,
3651,
429,
1081,
16,
514,
508,
16,
509,
612,
16,
1250,
695,
18931,
13,
565,
288,
3639,
3124,
2083,
284,
273,
27598,
2083,
12,
350,
1769,
3639,
309,
261,
307,
18931,
13,
288,
284,
18,
307,
287,
921,
5621,
289,
3639,
14007,
12,
2603,
16,
508,
16,
284,
16,
463,
10079,
16509,
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
] |
((ClasspathToolkit) Toolkit.getDefaultToolkit()).iterateNativeQueue(this);
|
tk.iterateNativeQueue(this, true); lastNativeQueueAccess = System.currentTimeMillis();
|
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); while (next_in == next_out) { // Only the EventDispatchThread associated with the top of the stack is // allowed to get events from the native source; everyone else just // waits on the head of the queue. if (isDispatchThread()) { // We are not allowed to return null from this method, yet it // is possible that we actually have run out of native events // in the enclosing while() loop, and none of the native events // happened to cause AWT events. We therefore ought to check // the isShutdown() condition here, before risking a "native // wait". If we check it before entering this function we may // wait forever for events after the shutdown condition has // arisen. if (isShutdown()) throw new InterruptedException(); ((ClasspathToolkit) Toolkit.getDefaultToolkit()).iterateNativeQueue(this); } else { try { wait(); } catch (InterruptedException ie) { } } } AWTEvent res = queue[next_out]; if (++next_out == queue.length) next_out = 0; return res; }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/8bd87ebd8b9d5c951f1ed92ae2cd4408280fb0b7/EventQueue.java/buggy/libraries/javalib/java/awt/EventQueue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
432,
8588,
1133,
6927,
1133,
1435,
565,
1216,
7558,
225,
288,
565,
309,
261,
4285,
480,
446,
13,
1377,
327,
1024,
18,
588,
2134,
1133,
5621,
565,
1323,
261,
4285,
67,
267,
422,
1024,
67,
659,
13,
1377,
288,
3639,
368,
5098,
326,
2587,
5325,
3830,
3627,
598,
326,
1760,
434,
326,
2110,
353,
3639,
368,
2935,
358,
336,
2641,
628,
326,
6448,
1084,
31,
3614,
476,
469,
2537,
3639,
368,
16248,
603,
326,
910,
434,
326,
2389,
18,
3639,
309,
261,
291,
5325,
3830,
10756,
1850,
288,
5411,
368,
1660,
854,
486,
2935,
358,
327,
446,
628,
333,
707,
16,
4671,
518,
5411,
368,
353,
3323,
716,
732,
6013,
1240,
1086,
596,
434,
6448,
2641,
5411,
368,
316,
326,
16307,
1323,
1435,
2798,
16,
471,
6555,
434,
326,
6448,
2641,
5411,
368,
17497,
358,
4620,
432,
8588,
2641,
18,
1660,
13526,
320,
9540,
358,
866,
5411,
368,
326,
353,
10961,
1435,
2269,
2674,
16,
1865,
18404,
310,
279,
315,
13635,
5411,
368,
2529,
9654,
971,
732,
866,
518,
1865,
19014,
333,
445,
732,
2026,
5411,
368,
2529,
21238,
364,
2641,
1839,
326,
5731,
2269,
711,
5411,
368,
419,
291,
275,
18,
5411,
309,
261,
291,
10961,
10756,
2868,
604,
394,
7558,
5621,
5411,
13030,
18,
18793,
9220,
3183,
12,
2211,
16,
638,
1769,
1142,
9220,
3183,
1862,
273,
2332,
18,
2972,
28512,
5621,
1850,
289,
3639,
469,
1850,
288,
5411,
775,
2868,
288,
7734,
2529,
5621,
2868,
289,
5411,
1044,
261,
24485,
503,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
432,
8588,
1133,
6927,
1133,
1435,
565,
1216,
7558,
225,
288,
565,
309,
261,
4285,
480,
446,
13,
1377,
327,
1024,
18,
588,
2134,
1133,
5621,
565,
1323,
261,
4285,
67,
267,
422,
1024,
67,
659,
13,
1377,
288,
3639,
368,
5098,
326,
2587,
5325,
3830,
3627,
598,
326,
1760,
434,
326,
2110,
353,
3639,
368,
2935,
358,
336,
2641,
628,
326,
6448,
1084,
31,
3614,
476,
469,
2537,
3639,
368,
16248,
603,
326,
910,
434,
326,
2389,
18,
3639,
309,
261,
291,
5325,
3830,
10756,
1850,
288,
5411,
368,
1660,
854,
486,
2935,
358,
327,
446,
628,
333,
707,
16,
4671,
518,
5411,
368,
353,
3323,
716,
732,
6013,
1240,
1086,
596,
434,
6448,
2641,
2
] |
return schedule;
|
initSchedule = InitSchedule.getInitSchedule(partitioner.topTraces);
|
public LinkedList schedule() { //sort traces... Trace[] tempArray = (Trace[])partitioner.getTraceGraph().clone(); Arrays.sort(tempArray, new CompareTraceBNWork(partitioner)); LinkedList sortedTraces = new LinkedList(Arrays.asList(tempArray)); //remove predefined filters for (int i = 0; i < partitioner.io.length; i++) { sortedTraces.remove(partitioner.io[i]); } //reverse the list Collections.reverse(sortedTraces); //set all the available times to zero tileAvail = new int[rawChip.getTotalTiles()]; for (int i = 0; i < rawChip.getTotalTiles(); i++) tileAvail[i] = 0; //start to schedule the traces currentTime = 0; while (!sortedTraces.isEmpty()) { Trace trace = (Trace)sortedTraces.get(0); System.out.println("Trying to schedule " + trace); while (true) { HashMap layout = canScheduleTrace(trace); //if we cannot schedule this trace... if (layout == null) { //try to schedule other traces that will fit before the //room becomes available for this trace while (scheduleSmallerTrace(sortedTraces, trace)) {} //increment current time to next smallest avail time currentTime = nextTime(currentTime); } else { scheduleTrace(layout, trace, sortedTraces); break; } } } //set up dependencies setupDepends(); return schedule; }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/720e4c6f6578f50ffd0fcfcec2e39a4837883e9e/SimpleScheduler.java/clean/streams/src/at/dms/kjc/spacetime/SimpleScheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10688,
4788,
1435,
377,
288,
202,
759,
3804,
19649,
2777,
202,
3448,
8526,
1906,
1076,
273,
261,
3448,
63,
5717,
10534,
264,
18,
588,
3448,
4137,
7675,
14056,
5621,
202,
12726,
18,
3804,
12,
5814,
1076,
16,
1875,
565,
394,
11051,
3448,
15388,
2421,
12,
10534,
264,
10019,
202,
13174,
682,
3115,
29773,
273,
394,
10688,
12,
12726,
18,
345,
682,
12,
5814,
1076,
10019,
202,
759,
4479,
19555,
3415,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3590,
264,
18,
1594,
18,
2469,
31,
277,
27245,
288,
202,
565,
3115,
29773,
18,
4479,
12,
10534,
264,
18,
1594,
63,
77,
19226,
202,
97,
1082,
202,
759,
9845,
326,
666,
202,
15150,
18,
9845,
12,
10350,
29773,
1769,
202,
759,
542,
777,
326,
2319,
4124,
358,
3634,
202,
15368,
3769,
671,
273,
394,
509,
63,
1899,
782,
625,
18,
588,
5269,
27669,
1435,
15533,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1831,
782,
625,
18,
588,
5269,
27669,
5621,
277,
27245,
202,
565,
4769,
3769,
671,
63,
77,
65,
273,
374,
31,
202,
759,
1937,
358,
4788,
326,
19649,
202,
2972,
950,
273,
374,
31,
202,
17523,
16051,
10350,
29773,
18,
291,
1921,
10756,
288,
202,
565,
2677,
2606,
273,
261,
3448,
13,
10350,
29773,
18,
588,
12,
20,
1769,
202,
565,
2332,
18,
659,
18,
8222,
2932,
18038,
358,
4788,
315,
397,
2606,
1769,
202,
565,
1323,
261,
3767,
13,
288,
202,
202,
8658,
3511,
273,
848,
6061,
3448,
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,
10688,
4788,
1435,
377,
288,
202,
759,
3804,
19649,
2777,
202,
3448,
8526,
1906,
1076,
273,
261,
3448,
63,
5717,
10534,
264,
18,
588,
3448,
4137,
7675,
14056,
5621,
202,
12726,
18,
3804,
12,
5814,
1076,
16,
1875,
565,
394,
11051,
3448,
15388,
2421,
12,
10534,
264,
10019,
202,
13174,
682,
3115,
29773,
273,
394,
10688,
12,
12726,
18,
345,
682,
12,
5814,
1076,
10019,
202,
759,
4479,
19555,
3415,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3590,
264,
18,
1594,
18,
2469,
31,
277,
27245,
288,
202,
565,
3115,
29773,
18,
4479,
12,
10534,
264,
18,
1594,
63,
77,
19226,
202,
97,
1082,
202,
759,
9845,
326,
666,
202,
15150,
18,
9845,
12,
2
] |
private void releaseStatement() {
|
private void releaseStatement(PreparedStatement ps) {
|
private void releaseStatement() { if (statementCache!=null) { statementCache.closeRemovedStatements(); } params.clear(); IOUtils.closeSilently(converter); //closing resources opened by converter }
|
55401 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55401/35cd5c4492513aff2d2a4c3bacdfcdfc2b4eb9c6/SQLSupport.java/buggy/core/src/java/scriptella/jdbc/SQLSupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3992,
3406,
12,
29325,
4250,
13,
288,
5411,
309,
261,
11516,
1649,
5,
33,
2011,
13,
288,
7734,
3021,
1649,
18,
4412,
10026,
14663,
5621,
5411,
289,
5411,
859,
18,
8507,
5621,
5411,
18044,
18,
4412,
55,
8125,
715,
12,
15747,
1769,
368,
19506,
2703,
10191,
635,
6027,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3992,
3406,
12,
29325,
4250,
13,
288,
5411,
309,
261,
11516,
1649,
5,
33,
2011,
13,
288,
7734,
3021,
1649,
18,
4412,
10026,
14663,
5621,
5411,
289,
5411,
859,
18,
8507,
5621,
5411,
18044,
18,
4412,
55,
8125,
715,
12,
15747,
1769,
368,
19506,
2703,
10191,
635,
6027,
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
] |
setFieldValue(period, value);
|
setFieldValue(period, iFieldType, value);
|
public int parseInto(ReadWritablePeriod period, String text, int position) { boolean mustParse = (iPrintZeroSetting == PRINT_ZERO_ALWAYS); // Shortcut test. if (position >= text.length()) { return mustParse ? ~position : position; } if (iPrefix != null) { position = iPrefix.parse(text, position); if (position >= 0) { // If prefix is found, then the parse must finish. mustParse = true; } else { // Prefix not found, so bail. if (!mustParse) { // It's okay because parsing of this field is not // required. Don't return an error. Fields down the // chain can continue on, trying to parse. return ~position; } return position; } } int suffixPos = -1; if (iSuffix != null && !mustParse) { // Pre-scan the suffix, to help determine if this field must be // parsed. suffixPos = iSuffix.scan(text, position); if (suffixPos >= 0) { // If suffix is found, then parse must finish. mustParse = true; } else { // Suffix not found, so bail. if (!mustParse) { // It's okay because parsing of this field is not // required. Don't return an error. Fields down the // chain can continue on, trying to parse. return ~suffixPos; } return suffixPos; } } if (!mustParse && !isSupported(period.getPeriodType())) { // If parsing is not required and the field is not supported, // exit gracefully so that another parser can continue on. return position; } int limit; if (suffixPos > 0) { limit = Math.min(iMaxParsedDigits, suffixPos - position); } else { limit = Math.min(iMaxParsedDigits, text.length() - position); } boolean negative = false; int length = 0; while (length < limit) { char c = text.charAt(position + length); if (length == 0 && (c == '-' || c == '+') && !iRejectSignedValues) { negative = c == '-'; if (negative) { length++; } else { // Skip the '+' for parseInt to succeed. position++; } // Expand the limit to disregard the sign character. limit = Math.min(limit + 1, text.length() - position); continue; } if (c < '0' || c > '9') { break; } length++; } if (length == 0) { return ~position; } if (position + length != suffixPos) { // If there are additional non-digit characters before the // suffix is reached, then assume that the suffix found belongs // to a field not yet reached. Return original position so that // another parser can continue on. return position; } int value; if (length >= 9) { // Since value may exceed max, use stock parser which checks // for this. value = Integer.parseInt (text.substring(position, position += length)); } else { int i = position; if (negative) { i++; } value = text.charAt(i++) - '0'; position += length; while (i < position) { value = ((value << 3) + (value << 1)) + text.charAt(i++) - '0'; } if (negative) { value = -value; } } setFieldValue(period, value); if (position >= 0 && iSuffix != null) { position = iSuffix.parse(text, position); } return position; }
|
52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/5fd28fcd3425461dfcff1800753513f94807f652/PeriodFormatterBuilder.java/clean/JodaTime/src/java/org/joda/time/format/PeriodFormatterBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
1109,
5952,
12,
1994,
12061,
5027,
3879,
16,
11794,
514,
977,
16,
509,
1754,
13,
288,
5411,
1250,
1297,
3201,
273,
261,
77,
5108,
7170,
5568,
422,
11770,
3217,
67,
24968,
67,
1013,
29295,
1769,
5411,
368,
7925,
5150,
1842,
18,
5411,
309,
261,
3276,
1545,
977,
18,
2469,
10756,
288,
7734,
327,
1297,
3201,
692,
4871,
3276,
294,
1754,
31,
5411,
289,
5411,
309,
261,
77,
2244,
480,
446,
13,
288,
7734,
1754,
273,
277,
2244,
18,
2670,
12,
955,
16,
1754,
1769,
7734,
309,
261,
3276,
1545,
374,
13,
288,
10792,
368,
971,
1633,
353,
1392,
16,
1508,
326,
1109,
1297,
4076,
18,
10792,
1297,
3201,
273,
638,
31,
7734,
289,
469,
288,
10792,
368,
10139,
486,
1392,
16,
1427,
18422,
18,
10792,
309,
16051,
11926,
3201,
13,
288,
13491,
368,
2597,
1807,
21194,
2724,
5811,
434,
333,
652,
353,
486,
13491,
368,
1931,
18,
7615,
1404,
327,
392,
555,
18,
7190,
2588,
326,
13491,
368,
2687,
848,
1324,
603,
16,
8374,
358,
1109,
18,
13491,
327,
4871,
3276,
31,
10792,
289,
10792,
327,
1754,
31,
7734,
289,
5411,
289,
5411,
509,
3758,
1616,
273,
300,
21,
31,
5411,
309,
261,
77,
5791,
480,
446,
597,
401,
11926,
3201,
13,
288,
7734,
368,
2962,
17,
9871,
326,
3758,
16,
358,
2809,
4199,
309,
333,
652,
1297,
506,
7734,
368,
2707,
18,
7734,
3758,
1616,
273,
277,
5791,
18,
9871,
12,
955,
16,
1754,
1769,
7734,
309,
261,
8477,
1616,
1545,
374,
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,
540,
1071,
509,
1109,
5952,
12,
1994,
12061,
5027,
3879,
16,
11794,
514,
977,
16,
509,
1754,
13,
288,
5411,
1250,
1297,
3201,
273,
261,
77,
5108,
7170,
5568,
422,
11770,
3217,
67,
24968,
67,
1013,
29295,
1769,
5411,
368,
7925,
5150,
1842,
18,
5411,
309,
261,
3276,
1545,
977,
18,
2469,
10756,
288,
7734,
327,
1297,
3201,
692,
4871,
3276,
294,
1754,
31,
5411,
289,
5411,
309,
261,
77,
2244,
480,
446,
13,
288,
7734,
1754,
273,
277,
2244,
18,
2670,
12,
955,
16,
1754,
1769,
7734,
309,
261,
3276,
1545,
374,
13,
288,
10792,
368,
971,
1633,
353,
1392,
16,
1508,
326,
1109,
1297,
4076,
18,
10792,
1297,
3201,
273,
638,
31,
7734,
289,
469,
288,
10792,
2
] |
ISourceLocator locator = javaValue.getLaunch().getSourceLocator(); Object sourceElement = null; if (locator instanceof ISourceLookupDirector) { if (type instanceof JDIReferenceType) { String[] sourcePaths = ((JDIReferenceType) type) .getSourcePaths(null); if (sourcePaths != null && sourcePaths.length > 0) { sourceElement = ((ISourceLookupDirector) locator) .getSourceElement(sourcePaths[0]); } } if (!(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { sourceElement = ((IAdaptable) sourceElement) .getAdapter(IJavaElement.class); } } if (sourceElement == null) { sourceElement = locator.getSourceElement(stackFrame); if (!(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { sourceElement = ((IAdaptable) sourceElement) .getAdapter(IJavaElement.class); } } IJavaProject project = null; if (sourceElement instanceof IJavaElement) { project = ((IJavaElement) sourceElement).getJavaProject(); } else if (sourceElement instanceof IResource) { IJavaProject resourceProject = JavaCore .create(((IResource) sourceElement).getProject()); if (resourceProject.exists()) { project = resourceProject; } }
|
ISourceLocator locator= javaValue.getLaunch().getSourceLocator(); Object sourceElement= null; if (locator instanceof ISourceLookupDirector) { String[] sourcePaths = ((IJavaClassType) type).getSourcePaths(null); if (sourcePaths != null && sourcePaths.length > 0) { sourceElement = ((ISourceLookupDirector) locator).getSourceElement(sourcePaths[0]); } if (!(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { sourceElement = ((IAdaptable) sourceElement).getAdapter(IJavaElement.class); } } if (sourceElement == null) { sourceElement = locator.getSourceElement(stackFrame); if (!(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { Object newSourceElement = ((IAdaptable) sourceElement).getAdapter(IJavaElement.class); if (newSourceElement != null) { sourceElement = newSourceElement; } } } IJavaProject project = null; if (sourceElement instanceof IJavaElement) { project = ((IJavaElement) sourceElement).getJavaProject(); } else if (sourceElement instanceof IResource) { IJavaProject resourceProject = JavaCore.create(((IResource) sourceElement).getProject()); if (resourceProject.exists()) { project = resourceProject; } }
|
public static IValue getValueByExpression(String expression, IValue value) { if (!(value instanceof IJavaObject)) { return null; } IJavaObject javaValue = (IJavaObject) value; try { IJavaType type = javaValue.getJavaType(); if (!(type instanceof IJavaClassType)) { return null; } IJavaStackFrame stackFrame = getStackFrame(javaValue); if (stackFrame == null) { return null; } // find the project the snippets will be compiled in. ISourceLocator locator = javaValue.getLaunch().getSourceLocator(); Object sourceElement = null; if (locator instanceof ISourceLookupDirector) { if (type instanceof JDIReferenceType) { String[] sourcePaths = ((JDIReferenceType) type) .getSourcePaths(null); if (sourcePaths != null && sourcePaths.length > 0) { sourceElement = ((ISourceLookupDirector) locator) .getSourceElement(sourcePaths[0]); } } if (!(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { sourceElement = ((IAdaptable) sourceElement) .getAdapter(IJavaElement.class); } } if (sourceElement == null) { sourceElement = locator.getSourceElement(stackFrame); if (!(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { sourceElement = ((IAdaptable) sourceElement) .getAdapter(IJavaElement.class); } } IJavaProject project = null; if (sourceElement instanceof IJavaElement) { project = ((IJavaElement) sourceElement).getJavaProject(); } else if (sourceElement instanceof IResource) { IJavaProject resourceProject = JavaCore .create(((IResource) sourceElement).getProject()); if (resourceProject.exists()) { project = resourceProject; } } if (project == null) { return null; } IAstEvaluationEngine evaluationEngine = JDIDebugPlugin.getDefault() .getEvaluationEngine(project, (IJavaDebugTarget) stackFrame.getDebugTarget()); EvaluationBlock evaluationBlock = new EvaluationBlock(javaValue, (IJavaReferenceType) type, (IJavaThread) stackFrame.getThread(), evaluationEngine); return evaluationBlock.evaluate(expression); } catch (CoreException e) { DroolsIDEPlugin.log(e); } return null; }
|
56149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56149/eee32a85b57718a7130e381062fb9d92a9e0334f/DebugUtil.java/buggy/drools-ide/src/main/java/org/drools/ide/debug/DebugUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
467,
620,
2366,
858,
2300,
12,
780,
2652,
16,
467,
620,
460,
13,
288,
3639,
309,
16051,
12,
1132,
1276,
467,
5852,
921,
3719,
288,
5411,
327,
446,
31,
3639,
289,
3639,
467,
5852,
921,
2252,
620,
273,
261,
45,
5852,
921,
13,
460,
31,
3639,
775,
288,
5411,
467,
31819,
618,
273,
2252,
620,
18,
588,
31819,
5621,
5411,
309,
16051,
12,
723,
1276,
467,
5852,
18328,
3719,
288,
7734,
327,
446,
31,
5411,
289,
5411,
467,
5852,
2624,
3219,
2110,
3219,
273,
18457,
3219,
12,
6290,
620,
1769,
5411,
309,
261,
3772,
3219,
422,
446,
13,
288,
7734,
327,
446,
31,
5411,
289,
5411,
368,
1104,
326,
1984,
326,
24613,
903,
506,
7743,
316,
18,
5411,
467,
1830,
5786,
8871,
273,
2252,
620,
18,
588,
9569,
7675,
588,
1830,
5786,
5621,
5411,
1033,
1084,
1046,
273,
446,
31,
5411,
309,
261,
20048,
1276,
467,
1830,
6609,
28280,
13,
288,
7734,
309,
261,
723,
1276,
804,
2565,
2404,
559,
13,
288,
10792,
514,
8526,
1084,
4466,
273,
14015,
46,
2565,
2404,
559,
13,
618,
13,
18701,
263,
588,
1830,
4466,
12,
2011,
1769,
10792,
309,
261,
3168,
4466,
480,
446,
597,
1084,
4466,
18,
2469,
405,
374,
13,
288,
13491,
1084,
1046,
273,
14015,
45,
1830,
6609,
28280,
13,
8871,
13,
27573,
263,
588,
1830,
1046,
12,
3168,
4466,
63,
20,
19226,
10792,
289,
7734,
289,
7734,
309,
16051,
12,
3168,
1046,
1276,
467,
5852,
1046,
13,
13491,
597,
1084,
1046,
1276,
467,
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,
467,
620,
2366,
858,
2300,
12,
780,
2652,
16,
467,
620,
460,
13,
288,
3639,
309,
16051,
12,
1132,
1276,
467,
5852,
921,
3719,
288,
5411,
327,
446,
31,
3639,
289,
3639,
467,
5852,
921,
2252,
620,
273,
261,
45,
5852,
921,
13,
460,
31,
3639,
775,
288,
5411,
467,
31819,
618,
273,
2252,
620,
18,
588,
31819,
5621,
5411,
309,
16051,
12,
723,
1276,
467,
5852,
18328,
3719,
288,
7734,
327,
446,
31,
5411,
289,
5411,
467,
5852,
2624,
3219,
2110,
3219,
273,
18457,
3219,
12,
6290,
620,
1769,
5411,
309,
261,
3772,
3219,
422,
446,
13,
288,
7734,
327,
446,
31,
5411,
289,
5411,
368,
1104,
326,
1984,
326,
24613,
903,
506,
7743,
316,
2
] |
for (Iterator it = newButtons.iterator();
|
for (final Iterator it = newButtons.iterator();
|
public void changeButtonsInTheToolbar(Object modifier, Vector newButtons) { JToolBar newToolBar; Logger.debug(this, "Called by "+modifier.getClass().getName()); if (lastToolBarModifier == null || newButtons != null || lastToolBarModifier == modifier) { lastToolBarModifier = modifier; } else { /* Only the modifer who added the buttons can remove them */ return; } newToolBar = new JToolBar(I18n.getMessage("thaw.toolbar.title")); newToolBar.add(this.connectButton); newToolBar.add(this.disconnectButton); newToolBar.addSeparator(); newToolBar.add(this.settingsButton); newToolBar.addSeparator(); if (newButtons != null) { for (Iterator it = newButtons.iterator(); it.hasNext();) { JButton button = (JButton)it.next(); if (button != null) newToolBar.add(button); else newToolBar.addSeparator(); } newToolBar.addSeparator(); } newToolBar.add(this.quitButton); newToolBar.setFloatable(false); if (this.toolBar != null) this.mainWindow.getContentPane().remove(this.toolBar); this.toolBar = newToolBar; this.mainWindow.getContentPane().add(this.toolBar, BorderLayout.NORTH); this.updateToolBar(); }
|
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/MainWindow.java/clean/src/thaw/core/MainWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2549,
14388,
382,
1986,
17907,
12,
921,
9606,
16,
5589,
394,
14388,
13,
288,
202,
202,
46,
6364,
5190,
394,
6364,
5190,
31,
202,
202,
3328,
18,
4148,
12,
2211,
16,
315,
8185,
635,
13773,
20597,
18,
588,
797,
7675,
17994,
10663,
202,
202,
430,
261,
2722,
6364,
5190,
9829,
422,
446,
747,
394,
14388,
480,
446,
747,
1142,
6364,
5190,
9829,
422,
9606,
13,
288,
1082,
202,
2722,
6364,
5190,
9829,
273,
9606,
31,
202,
202,
97,
469,
288,
1082,
202,
20308,
5098,
326,
681,
21549,
10354,
3096,
326,
9502,
848,
1206,
2182,
1195,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2704,
6364,
5190,
273,
394,
804,
6364,
5190,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
18849,
18,
2649,
7923,
1769,
202,
202,
2704,
6364,
5190,
18,
1289,
12,
2211,
18,
3612,
3616,
1769,
202,
202,
2704,
6364,
5190,
18,
1289,
12,
2211,
18,
20177,
3616,
1769,
202,
202,
2704,
6364,
5190,
18,
1289,
6581,
5621,
202,
202,
2704,
6364,
5190,
18,
1289,
12,
2211,
18,
4272,
3616,
1769,
202,
202,
2704,
6364,
5190,
18,
1289,
6581,
5621,
202,
202,
430,
261,
2704,
14388,
480,
446,
13,
288,
1082,
202,
1884,
261,
3198,
518,
273,
394,
14388,
18,
9838,
5621,
9506,
377,
518,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
46,
3616,
3568,
273,
261,
46,
3616,
13,
305,
18,
4285,
5621,
9506,
202,
430,
261,
5391,
480,
446,
13,
6862,
202,
2704,
6364,
5190,
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,
918,
2549,
14388,
382,
1986,
17907,
12,
921,
9606,
16,
5589,
394,
14388,
13,
288,
202,
202,
46,
6364,
5190,
394,
6364,
5190,
31,
202,
202,
3328,
18,
4148,
12,
2211,
16,
315,
8185,
635,
13773,
20597,
18,
588,
797,
7675,
17994,
10663,
202,
202,
430,
261,
2722,
6364,
5190,
9829,
422,
446,
747,
394,
14388,
480,
446,
747,
1142,
6364,
5190,
9829,
422,
9606,
13,
288,
1082,
202,
2722,
6364,
5190,
9829,
273,
9606,
31,
202,
202,
97,
469,
288,
1082,
202,
20308,
5098,
326,
681,
21549,
10354,
3096,
326,
9502,
848,
1206,
2182,
1195,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2704,
6364,
5190,
273,
394,
804,
6364,
5190,
12,
45,
2643,
2
] |
jj_la1[68] = jj_gen;
|
jj_la1[69] = jj_gen;
|
final public void EqualityExpression() throws ParseException { /*@bgen(jjtree) EqualityExpression */ ASTEqualityExpression jjtn000 = new ASTEqualityExpression(this, JJTEQUALITYEXPRESSION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { InstanceOfExpression(); checkForDiscard(jjtn000); label_29: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EQ: case NE: ; break; default: jj_la1[67] = jj_gen; break label_29; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EQ: jj_consume_token(EQ); jjtn000.setImage("==");jjtn000.setUnDiscardable(); break; case NE: jj_consume_token(NE); jjtn000.setImage("!=");jjtn000.setUnDiscardable(); break; default: jj_la1[68] = jj_gen; jj_consume_token(-1); throw new ParseException(); } InstanceOfExpression(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/a180e9b19197c7613f1e73c6ec8a574a17011e5e/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
9057,
560,
2300,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
9057,
560,
2300,
1195,
225,
9183,
20273,
2300,
10684,
5088,
3784,
273,
394,
9183,
20273,
2300,
12,
2211,
16,
804,
46,
1448,
8729,
4107,
19111,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
5180,
951,
2300,
5621,
12900,
13855,
14185,
12,
78,
78,
5088,
3784,
1769,
1377,
1433,
67,
5540,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
22426,
30,
3639,
648,
12901,
30,
1850,
274,
1850,
898,
31,
3639,
805,
30,
1850,
10684,
67,
11821,
21,
63,
9599,
65,
273,
10684,
67,
4507,
31,
1850,
898,
1433,
67,
5540,
31,
3639,
289,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
22426,
30,
1850,
10684,
67,
21224,
67,
2316,
12,
27247,
1769,
4766,
1171,
9079,
10684,
5088,
3784,
18,
542,
2040,
2932,
631,
8863,
78,
78,
5088,
3784,
18,
542,
984,
14185,
429,
5621,
1850,
898,
31,
3639,
648,
12901,
30,
1850,
10684,
67,
21224,
67,
2316,
12,
5407,
1769,
28524,
4766,
18701,
10684,
5088,
3784,
18,
542,
2040,
2932,
5,
1546,
1769,
78,
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,
727,
1071,
918,
9057,
560,
2300,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
9057,
560,
2300,
1195,
225,
9183,
20273,
2300,
10684,
5088,
3784,
273,
394,
9183,
20273,
2300,
12,
2211,
16,
804,
46,
1448,
8729,
4107,
19111,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
5180,
951,
2300,
5621,
12900,
13855,
14185,
12,
78,
78,
5088,
3784,
1769,
1377,
1433,
67,
5540,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
2
] |
return new Boolean(getBoolean(columnIndex));
|
return getBoolean(columnIndex) ? Boolean.TRUE : Boolean.FALSE;
|
public Object getObject(int columnIndex) throws SQLException { Field field; if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); field = fields[columnIndex - 1]; // some fields can be null, mainly from those returned by MetaData methods if (field == null) { wasNullFlag = true; return null; } switch (field.getSQLType()) { case Types.BIT: return new Boolean(getBoolean(columnIndex)); case Types.SMALLINT: return new Short((short)getInt(columnIndex)); case Types.INTEGER: return new Integer(getInt(columnIndex)); case Types.BIGINT: return new Long(getLong(columnIndex)); case Types.NUMERIC: return getBigDecimal(columnIndex, ((field.getMod() - 4) & 0xffff)); case Types.REAL: return new Float(getFloat(columnIndex)); case Types.DOUBLE: return new Double(getDouble(columnIndex)); case Types.CHAR: case Types.VARCHAR: return getString(columnIndex); case Types.DATE: return getDate(columnIndex); case Types.TIME: return getTime(columnIndex); case Types.TIMESTAMP: return getTimestamp(columnIndex); case Types.BINARY: case Types.VARBINARY: return getBytes(columnIndex); default: String type = field.getPGType(); // if the backend doesn't know the type then coerce to String if (type.equals("unknown")) { return getString(columnIndex); } else { return connection.getObject(field.getPGType(), getString(columnIndex)); } } }
|
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/99aa2f8ef90a6164c33c2557af3385f54621473a/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
6455,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
974,
652,
31,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
455,
18,
1293,
3676,
8863,
202,
202,
1518,
273,
1466,
63,
2827,
1016,
300,
404,
15533,
202,
202,
759,
2690,
1466,
848,
506,
446,
16,
31457,
628,
5348,
2106,
635,
27512,
2590,
202,
202,
430,
261,
1518,
422,
446,
13,
202,
202,
95,
1082,
202,
17416,
2041,
4678,
273,
638,
31,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
9610,
261,
1518,
18,
588,
3997,
559,
10756,
202,
202,
95,
1082,
202,
3593,
7658,
18,
15650,
30,
9506,
202,
2463,
394,
3411,
12,
588,
5507,
12,
2827,
1016,
10019,
1082,
202,
3593,
7658,
18,
23882,
3217,
30,
9506,
202,
2463,
394,
7925,
12443,
6620,
13,
588,
1702,
12,
2827,
1016,
10019,
1082,
202,
3593,
7658,
18,
14217,
30,
9506,
202,
2463,
394,
2144,
12,
588,
1702,
12,
2827,
1016,
10019,
1082,
202,
3593,
7658,
18,
19044,
3217,
30,
9506,
202,
2463,
394,
3407,
12,
588,
3708,
12,
2827,
1016,
10019,
1082,
202,
3593,
7658,
18,
22998,
30,
9506,
202,
2463,
2882,
360,
5749,
12,
2827,
1016,
16,
14015,
1518,
18,
588,
1739,
1435,
300,
1059,
13,
473,
374,
20431,
10019,
1082,
202,
3593,
7658,
18,
31052,
30,
9506,
202,
2463,
394,
5450,
12,
588,
4723,
12,
2827,
1016,
10019,
1082,
202,
3593,
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,
1033,
6455,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
974,
652,
31,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
455,
18,
1293,
3676,
8863,
202,
202,
1518,
273,
1466,
63,
2827,
1016,
300,
404,
15533,
202,
202,
759,
2690,
1466,
848,
506,
446,
16,
31457,
628,
5348,
2106,
635,
27512,
2590,
202,
202,
430,
261,
1518,
422,
446,
13,
202,
202,
95,
1082,
202,
17416,
2041,
4678,
273,
638,
31,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
9610,
261,
1518,
18,
588,
3997,
559,
10756,
202,
202,
95,
1082,
202,
3593,
7658,
2
] |
Composition compFrame = new Composition (); compFrame.show();
|
Composition compFrame = new Composition (); compFrame.show();
|
public static void main(String[] args) { //check arguments if (2 != args.length) { System.out.println ("Usage: composition mail_server_name user_name"); System.exit(0); } Composition compFrame = new Composition (); compFrame.show(); }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/264c49540f4adde3913fd846135e6c8166029cd9/Composition.java/buggy/grendel/composition/Composition.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
368,
1893,
1775,
3639,
309,
261,
22,
480,
833,
18,
2469,
13,
288,
5411,
2332,
18,
659,
18,
8222,
7566,
5357,
30,
16919,
4791,
67,
3567,
67,
529,
729,
67,
529,
8863,
5411,
2332,
18,
8593,
12,
20,
1769,
3639,
289,
3639,
1286,
3276,
1161,
3219,
273,
394,
1286,
3276,
261,
1769,
3639,
1161,
3219,
18,
4500,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
368,
1893,
1775,
3639,
309,
261,
22,
480,
833,
18,
2469,
13,
288,
5411,
2332,
18,
659,
18,
8222,
7566,
5357,
30,
16919,
4791,
67,
3567,
67,
529,
729,
67,
529,
8863,
5411,
2332,
18,
8593,
12,
20,
1769,
3639,
289,
3639,
1286,
3276,
1161,
3219,
273,
394,
1286,
3276,
261,
1769,
3639,
1161,
3219,
18,
4500,
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
] |
System.err.println("WARNING: Ignoring \"" + buf.toString() + "\" at \"" + filename() + "\" line " + lineNumber() + ": Unable to handle definition to non-constant");
|
private void handleDefine() throws IOException { // Next token is the name of the #define String name = nextWord(); //System.err.println("IN HANDLE_DEFINE: '" + name + "' (line " + lineNumber() + " file " + filename() + ")"); // (Note that this is not actually proper handling for multi-line #defines) List values = new ArrayList(); while (nextToken(true) != StreamTokenizer.TT_EOL) { values.add(curTokenAsString()); } // if we're not within an active block of code (like inside an "#ifdef // FOO" where FOO isn't defined), then don't actually alter the definition // map. debugPrint(true, "#define " + name); if (enabled()) { boolean emitDefine = true; // Handle #definitions to nothing or to a constant value int sz = values.size(); if (sz == 0) { // definition to nothing, like "#define FOO" String oldDef = (String)defineMap.put(name, ""); if (oldDef != null) { System.err.println("WARNING: \"" + name + "\" redefined from \"" + oldDef + "\" to \"\""); } // We don't want to emit the define, because it would serve no purpose // and cause GlueGen errors (confuse the GnuCParser) emitDefine = false; //System.out.println("//---DEFINED: " + name + "to \"\""); } else if (sz == 1) { // See whether the value is a constant String value = (String) values.get(0); if (isConstant(value)) { // Value is numeric constant like "#define FOO 5". // Put it in the #define map String oldDef = (String)defineMap.put(name, value); if (oldDef != null) { System.err.println("WARNING: \"" + name + "\" redefined from \"" + oldDef + "\" to \"" + value + "\""); } //System.out.println("//---DEFINED: " + name + " to \"" + value + "\""); } else { // Value is a symbolic constant like "#define FOO BAR". // Try to look up the symbol's value String newValue = (String) defineMap.get(value); if (newValue != null) { // Set the value to the value of the symbol. // // TO DO: Is this correct? Why not output the symbol unchanged? // I think that it's a good thing to see that some symbols are // defined in terms of others. -chris values.set(0, newValue); } else { // Still perform textual replacement defineMap.put(name, value); emitDefine = false; } } } else { // can't handle definitions that aren't constants or empty emitDefine = false; StringBuffer buf = new StringBuffer("#define "); buf.append(name); for (int i = 0; i < sz; ++i) { buf.append(" "); buf.append(values.get(i)); } System.err.println("WARNING: Ignoring \"" + buf.toString() + "\" at \"" + filename() + "\" line " + lineNumber() + ": Unable to handle definition to non-constant"); if (defineMap.get(name) != null) { // This is probably something the user should investigate. throw new RuntimeException("Cannot redefine symbol \"" + name + " from \"" + defineMap.get(name) + "\" to non-constant " + " definition \"" + buf.toString() + "\""); } } if (emitDefine) { // Print name and value print("# define "); print(name); for (Iterator iter = values.iterator(); iter.hasNext(); ) { print(" "); print((String) iter.next()); } println(); } } // end if (enabled()) //System.err.println("OUT HANDLE_DEFINE: " + name); }
|
46278 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46278/9512c9fa62ece3960472b6ab2cd6ce5244da8501/PCPP.java/clean/src/net/java/games/gluegen/pcpp/PCPP.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
11644,
1435,
1216,
1860,
288,
565,
368,
4804,
1147,
353,
326,
508,
434,
326,
468,
11255,
565,
514,
508,
273,
1024,
3944,
5621,
565,
368,
3163,
18,
370,
18,
8222,
2932,
706,
24166,
900,
67,
12904,
3740,
30,
2119,
397,
508,
397,
2491,
225,
261,
1369,
315,
397,
13629,
1435,
397,
315,
585,
315,
397,
1544,
1435,
397,
7310,
1769,
565,
368,
261,
8067,
716,
333,
353,
486,
6013,
5338,
5057,
364,
3309,
17,
1369,
468,
536,
1465,
13,
565,
987,
924,
273,
394,
2407,
5621,
565,
1323,
261,
4285,
1345,
12,
3767,
13,
480,
3961,
10524,
18,
1470,
67,
5842,
13,
288,
1377,
924,
18,
1289,
12,
1397,
1345,
8092,
10663,
565,
289,
565,
368,
309,
732,
4565,
486,
3470,
392,
2695,
1203,
434,
981,
261,
5625,
4832,
392,
6619,
430,
536,
565,
368,
17634,
51,
6,
1625,
17634,
51,
5177,
1404,
2553,
3631,
1508,
2727,
1404,
6013,
10182,
326,
2379,
565,
368,
852,
18,
565,
1198,
5108,
12,
3767,
16,
6619,
11255,
315,
397,
508,
1769,
565,
309,
261,
5745,
10756,
565,
288,
1377,
1250,
3626,
11644,
273,
638,
31,
6647,
368,
5004,
468,
13314,
358,
5083,
578,
358,
279,
5381,
460,
1377,
509,
11262,
273,
924,
18,
1467,
5621,
1377,
309,
261,
24575,
422,
374,
13,
288,
3639,
368,
2379,
358,
5083,
16,
3007,
6619,
11255,
17634,
51,
6,
3639,
514,
1592,
3262,
273,
261,
780,
13,
11255,
863,
18,
458,
12,
529,
16,
1408,
1769,
3639,
309,
261,
1673,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
11644,
1435,
1216,
1860,
288,
565,
368,
4804,
1147,
353,
326,
508,
434,
326,
468,
11255,
565,
514,
508,
273,
1024,
3944,
5621,
565,
368,
3163,
18,
370,
18,
8222,
2932,
706,
24166,
900,
67,
12904,
3740,
30,
2119,
397,
508,
397,
2491,
225,
261,
1369,
315,
397,
13629,
1435,
397,
315,
585,
315,
397,
1544,
1435,
397,
7310,
1769,
565,
368,
261,
8067,
716,
333,
353,
486,
6013,
5338,
5057,
364,
3309,
17,
1369,
468,
536,
1465,
13,
565,
987,
924,
273,
394,
2407,
5621,
565,
1323,
261,
4285,
1345,
12,
3767,
13,
480,
3961,
10524,
18,
1470,
67,
5842,
13,
288,
1377,
924,
18,
1289,
12,
1397,
1345,
8092,
10663,
565,
289,
565,
2
] |
|
frameSetName = (String) getParameter("frame-set"); frameCache = new ArrayList(); newFramesPresent = false; String specFileName = (String) getParameter("spec-file"); File xml_file = ConfigFinder.getInstance().locateFile(specFileName); pluginDisplay = new DisplayWindow(xml_file); super.start();
|
frameSetName = (String) getParameter("frame-set"); frameCache = new ArrayList(); newFramesPresent = false; String specFileName = (String) getParameter("spec-file"); File xml_file = ConfigFinder.getInstance().locateFile(specFileName); pluginDisplay = new DisplayWindow(xml_file); super.start();
|
public void start() { frameSetName = (String) getParameter("frame-set"); frameCache = new ArrayList(); newFramesPresent = false; String specFileName = (String) getParameter("spec-file"); File xml_file = ConfigFinder.getInstance().locateFile(specFileName); pluginDisplay = new DisplayWindow(xml_file); //SwingUtilities.invokeLater(new CreateWindowHelper(xml_file)); super.start(); }
|
7173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7173/0b5a2fb99eb98589d8a9af0a6dd19d7236b37220/FrameVisualizerPlugin.java/buggy/qos/src/org/cougaar/core/qos/frame/visualizer/FrameVisualizerPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
565,
288,
202,
3789,
11924,
273,
261,
780,
13,
5575,
2932,
3789,
17,
542,
8863,
202,
202,
3789,
1649,
273,
394,
2407,
5621,
202,
2704,
15162,
6351,
273,
629,
31,
202,
202,
780,
857,
4771,
273,
261,
780,
13,
5575,
2932,
2793,
17,
768,
8863,
202,
812,
2025,
67,
768,
273,
1903,
8441,
18,
588,
1442,
7675,
25450,
812,
12,
2793,
4771,
1769,
202,
4094,
4236,
273,
394,
9311,
3829,
12,
2902,
67,
768,
1769,
202,
759,
6050,
310,
11864,
18,
14407,
20607,
12,
2704,
1788,
3829,
2276,
12,
2902,
67,
768,
10019,
282,
202,
9565,
18,
1937,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
565,
288,
202,
3789,
11924,
273,
261,
780,
13,
5575,
2932,
3789,
17,
542,
8863,
202,
202,
3789,
1649,
273,
394,
2407,
5621,
202,
2704,
15162,
6351,
273,
629,
31,
202,
202,
780,
857,
4771,
273,
261,
780,
13,
5575,
2932,
2793,
17,
768,
8863,
202,
812,
2025,
67,
768,
273,
1903,
8441,
18,
588,
1442,
7675,
25450,
812,
12,
2793,
4771,
1769,
202,
4094,
4236,
273,
394,
9311,
3829,
12,
2902,
67,
768,
1769,
202,
759,
6050,
310,
11864,
18,
14407,
20607,
12,
2704,
1788,
3829,
2276,
12,
2902,
67,
768,
10019,
282,
202,
9565,
18,
1937,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getDocument(), new BoundNodeInstanceWalker(pipelineContext, xformsControls) {
|
XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() {
|
public void performDefaultAction(final PipelineContext pipelineContext, XFormsEvent event) { final String eventName = event.getEventName(); if (XFormsEvents.XXFORMS_INITIALIZE_STATE.equals(eventName)) { // Internal event to restore state loadSchemasIfNeeded(pipelineContext); applyComputedExpressionBinds(pipelineContext, false); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(this, false)); clearInstanceDataEventState(); } else if (XFormsEvents.XFORMS_MODEL_CONSTRUCT.equals(eventName)) { // 4.2.1 The xforms-model-construct Event // Bubbles: Yes / Cancelable: No / Context Info: None final Element modelElement = modelDocument.getRootElement(); // 1. All XML Schemas loaded (throws xforms-link-exception) // TODO: support multiple schemas // Get schema URI loadSchemasIfNeeded(pipelineContext); // TODO: throw exception event // 2. Create XPath data model from instance (inline or external) (throws xforms-link-exception) // Instance may not be specified. if (instances == null) { // Build initial instance document List instanceContainers = modelElement.elements(new QName("instance", XFormsConstants.XFORMS_NAMESPACE)); if (instanceContainers.size() > 0) { // Support multiple instances int instancePosition = 0; for (Iterator i = instanceContainers.iterator(); i.hasNext(); instancePosition++) { final Element instanceContainer = (Element) i.next(); final String srcAttribute = instanceContainer.attributeValue("src"); final Document instanceDocument; //= ProcessorUtils.createDocumentFromEmbeddedOrHref(Element element, String urlString) { if (srcAttribute == null) { // Inline instance final List children = instanceContainer.elements(); if (children == null || children.size() == 0) throw new OXFException("xforms:instance element must contain exactly one child element");// TODO: Throw XForms event? instanceDocument = Dom4jUtils.createDocumentCopyParentNamespaces((Element) children.get(0)); } else { // External instance // TODO: Handle relative URLs// if (serverSideRelative) {//// } else {//// }////// xxx final LocationData locationData = (LocationData) instanceContainer.getData(); final URL srcURL = ProcessorUtils.createRelativeURL(locationData, srcAttribute); final URLGenerator urlGenerator = new URLGenerator(srcURL); final DOMSerializer domSerializer = new DOMSerializer(); PipelineUtils.connect(urlGenerator, ProcessorImpl.OUTPUT_DATA, domSerializer, ProcessorImpl.INPUT_DATA); domSerializer.start(pipelineContext); instanceDocument = domSerializer.getDocument(pipelineContext); } setInstanceDocument(pipelineContext, instancePosition, instanceDocument); } } } // TODO: throw exception event // Call special listener to update instance if (instanceConstructListener != null) { for (Iterator i = getInstances().iterator(); i.hasNext();) { instanceConstructListener.updateInstance((XFormsInstance) i.next()); } } // 3. P3P (N/A) // 4. Instance data is constructed. Evaluate binds: // a. Evaluate nodeset // b. Apply model item properties on nodes // c. Throws xforms-binding-exception if the node has already model item property with same name // TODO: a, b, c xxx // 5. xforms-rebuild, xforms-recalculate, xforms-revalidate containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(this)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(this, false)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(this, false));// clearInstanceDataEventState(); } else if (XFormsEvents.XFORMS_MODEL_CONSTRUCT_DONE.equals(eventName)) { // 4.2.2 The xforms-model-construct-done Event // Bubbles: Yes / Cancelable: No / Context Info: None // TODO: if instance exists (for now it does!), check that controls can bind, otherwise control must be "irrelevant" // TODO: implicit lazy instance construction } else if (XFormsEvents.XFORMS_REBUILD.equals(eventName)) { // 4.3.7 The xforms-rebuild Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // TODO: rebuild computational dependency data structures } else if (XFormsEvents.XFORMS_RECALCULATE.equals(eventName)) { // 4.3.6 The xforms-recalculate Event // Bubbles: Yes / Cancelable: Yes / Context Info: None if (instances != null) { // Update computed expression binds applyComputedExpressionBinds(pipelineContext, true); } } else if (XFormsEvents.XFORMS_REVALIDATE.equals(eventName)) { // 4.3.5 The xforms-revalidate Event // Bubbles: Yes / Cancelable: Yes / Context Info: None if (instances != null) { // Clear validation state for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() { public void walk(Node node, InstanceData localInstanceData, InstanceData inheritedInstanceData) { if (localInstanceData != null) { localInstanceData.clearValidationState(); } } }); } // Run validation applySchemasIfNeeded(); applyBinds(new BindRunner() { public void applyBind(ModelBind modelBind, DocumentWrapper documentWrapper) { handleValidationBind(pipelineContext, modelBind, documentWrapper, this); } }); } } else if (XFormsEvents.XFORMS_REFRESH.equals(eventName)) { // 4.3.4 The xforms-refresh Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // "1. All UI bindings should be reevaluated as necessary." // "2. A node can be changed by confirmed user input to a form control, by // xforms-recalculate (section 4.3.6) or by the setvalue (section 10.1.9) action. If the // value of an instance data node was changed, then the node must be marked for // dispatching the xforms-value-changed event." // "3. If the xforms-value-changed event is marked for dispatching, then all of the // appropriate model item property notification events must also be marked for // dispatching (xforms-optional or xforms-required, xforms-readwrite or xforms-readonly, // and xforms-enabled or xforms-disabled)." // "4. For each form control, each notification event that is marked for dispatching on // the bound node must be dispatched (xforms-value-changed, xforms-valid, // xforms-invalid, xforms-optional, xforms-required, xforms-readwrite, xforms-readonly, // and xforms-enabled, xforms-disabled). The notification events xforms-out-of-range or // xforms-in-range must also be dispatched as appropriate. This specification does not // specify an ordering for the events." final XFormsControls xformsControls = containingDocument.getXFormsControls(); if (xformsControls != null) { // Build list of events to send final List eventsToDispatch = new ArrayList(); for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getDocument(), new BoundNodeInstanceWalker(pipelineContext, xformsControls) { public void walk(Node node, InstanceData localInstanceData, InstanceData inheritedInstanceData) { setNode(node); // Check if value has changed final boolean valueChanged = inheritedInstanceData.isValueChanged(); // Dispatch xforms-optional/xforms-required { final boolean previousRequiredState = inheritedInstanceData.getPreviousRequiredState(); final boolean newRequiredState = inheritedInstanceData.getRequired().get(); if ((valueChanged || previousRequiredState) && !newRequiredState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsOptionalEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRequiredState) && newRequiredState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsRequiredEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-enabled/xforms-disabled { final boolean previousRelevantState = inheritedInstanceData.getPreviousRelevantState(); final boolean newRelevantState = inheritedInstanceData.getRelevant().get(); if ((valueChanged || previousRelevantState) && !newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsDisabledEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRelevantState) && newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsEnabledEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-readonly/xforms-readwrite { final boolean previousReadonlyState = inheritedInstanceData.getPreviousReadonlyState(); final boolean newReadonlyState = inheritedInstanceData.getReadonly().get(); if ((valueChanged || previousReadonlyState) && !newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadwriteEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousReadonlyState) && newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadonlyEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-valid/xforms-invalid // NOTE: There is no mention in the spec that these events should be // displatched automatically when the value has changed, contrary to the // other events above. { final boolean previousValidState = inheritedInstanceData.getPreviousValidState(); final boolean newValidState = inheritedInstanceData.getValid().get(); if ((valueChanged || previousValidState) && !newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsInvalidEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousValidState) && newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValidEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-value-changed // NOTE: deferred behavior is broken in XForms 1.0; 1.1 should // introduce better behavior; howver, with the 1.0 behavior, it works // better for us for now to send xforms-value-changed last if (valueChanged) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValueChangeEvent((XFormsEventTarget) i.next())); } } }); } // Clear InstanceData event state clearInstanceDataEventState(); // Send events for (Iterator i = eventsToDispatch.iterator(); i.hasNext();) { containingDocument.dispatchEvent(pipelineContext, (XFormsEvent) i.next()); } // "5. The user interface reflects the state of the model, which means that all forms // controls reflect for their corresponding bound instance data:" if (xformsControls != null) { containingDocument.getXFormsControls().refreshForModel(pipelineContext, this); } } } else if (XFormsEvents.XFORMS_RESET.equals(eventName)) { // 4.3.8 The xforms-reset Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // TODO // "The instance data is reset to the tree structure and values it had immediately // after having processed the xforms-ready event." // "Then, the events xforms-rebuild, xforms-recalculate, xforms-revalidate and // xforms-refresh are dispatched to the model element in sequence." containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(XFormsModel.this)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(XFormsModel.this, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(XFormsModel.this, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(XFormsModel.this)); } else if (XFormsEvents.XFORMS_COMPUTE_EXCEPTION.equals(eventName)) { // 4.5.4 The xforms-compute-exception Event // Bubbles: Yes / Cancelable: No / Context Info: Implementation-specific error string. // The default action for this event results in the following: Fatal error. // TODO } }
|
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/08765f5dfa47c92ad95accd37caf0de0bfbf351e/XFormsModel.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3073,
1868,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
5619,
4983,
55,
67,
28497,
15641,
67,
7998,
18,
14963,
12,
2575,
461,
3719,
288,
5411,
368,
3186,
871,
358,
5217,
919,
5411,
1262,
16749,
18299,
12,
14511,
1042,
1769,
5411,
2230,
17934,
2300,
17856,
12,
14511,
1042,
16,
629,
1769,
5411,
4191,
2519,
18,
10739,
1133,
12,
14511,
1042,
16,
394,
1139,
18529,
426,
5662,
1133,
12,
2211,
16,
629,
10019,
5411,
2424,
1442,
751,
1133,
1119,
5621,
3639,
289,
469,
309,
261,
60,
18529,
3783,
18,
60,
4983,
55,
67,
17391,
67,
26935,
18,
14963,
12,
2575,
461,
3719,
288,
5411,
368,
1059,
18,
22,
18,
21,
1021,
619,
9741,
17,
2284,
17,
10062,
2587,
5411,
368,
605,
22298,
1040,
30,
19925,
342,
10347,
429,
30,
2631,
342,
1772,
3807,
30,
599,
5411,
727,
3010,
938,
1046,
273,
938,
2519,
18,
588,
2375,
1046,
5621,
5411,
368,
404,
18,
4826,
3167,
348,
7753,
4203,
261,
15069,
619,
9741,
17,
1232,
17,
4064,
13,
5411,
368,
2660,
30,
2865,
3229,
12783,
5411,
368,
968,
1963,
3699,
5411,
1262,
16749,
18299,
12,
14511,
1042,
1769,
5411,
368,
2660,
30,
604,
1520,
871,
5411,
368,
576,
18,
1788,
10172,
501,
938,
628,
791,
261,
10047,
578,
3903,
13,
261,
15069,
619,
9741,
17,
1232,
17,
4064,
13,
5411,
368,
565,
5180,
2026,
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,
3073,
1868,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
5619,
4983,
55,
67,
28497,
15641,
67,
7998,
18,
14963,
12,
2575,
461,
3719,
288,
5411,
368,
3186,
871,
358,
5217,
919,
5411,
1262,
16749,
18299,
12,
14511,
1042,
1769,
5411,
2230,
17934,
2300,
17856,
12,
14511,
1042,
16,
629,
1769,
5411,
4191,
2519,
18,
10739,
1133,
12,
14511,
1042,
16,
394,
1139,
18529,
426,
5662,
1133,
12,
2211,
16,
629,
10019,
5411,
2424,
1442,
751,
1133,
1119,
5621,
3639,
289,
469,
309,
261,
60,
18529,
3783,
18,
60,
4983,
55,
67,
17391,
2
] |
return false;
|
settingsTransfers.add(element); return true;
|
protected boolean readElement(IConfigurationElement element) { if (!element.getName().equals( IWorkbenchRegistryConstants.TAG_SETTINGS_TRANSFER)) { return false; } settingsTransfers.add(element); return true; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ab09b13394fce4f7e9d17b1f5d49e2a6273e4a45/SettingsTransferRegistryReader.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/SettingsTransferRegistryReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
855,
1046,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
430,
16051,
2956,
18,
17994,
7675,
14963,
12,
9506,
202,
45,
2421,
22144,
4243,
2918,
18,
7927,
67,
19428,
67,
16596,
6553,
3719,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
4272,
1429,
18881,
18,
1289,
12,
2956,
1769,
202,
202,
2463,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
855,
1046,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
430,
16051,
2956,
18,
17994,
7675,
14963,
12,
9506,
202,
45,
2421,
22144,
4243,
2918,
18,
7927,
67,
19428,
67,
16596,
6553,
3719,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
4272,
1429,
18881,
18,
1289,
12,
2956,
1769,
202,
202,
2463,
638,
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
] |
newBackingArray = (Object[])vm.getWrappedModel().getValue(); assertNotSame("change should not have been commited back to original array", newBackingArray, backingArray);
|
newBackingArray = (Object[])vm.getWrappedValueModel().getValue(); assertNotSame("change should not have been committed back to original array", newBackingArray, backingArray);
|
public void testChangesToListListModelWithBackingArray() { Object[] backingArray = getArray(100); BufferedCollectionValueModel vm = getBufferedCollectionValueModel(backingArray); ListListModel llm = (ListListModel)vm.getValue(); llm.clear(); assertEquals("changes to ListListModel should be not be made to backing array unless commit is called", vm .getWrappedModel().getValue(), backingArray); backingArray = getArray(101); vm.getWrappedModel().setValue(backingArray); Object newValue = new Double(1); llm.set(1, newValue); vm.commit(); Object[] newBackingArray = (Object[])vm.getWrappedModel().getValue(); assertNotSame("change should not have been commited back to original array", newBackingArray, backingArray); llm.add(newValue); vm.commit(); newBackingArray = (Object[])vm.getWrappedModel().getValue(); assertNotSame("change should not have been commited back to original array", newBackingArray, backingArray); assertTrue(newBackingArray.length == backingArray.length + 1); assertEquals(newBackingArray[newBackingArray.length - 1], newValue); llm.clear(); vm.commit(); newBackingArray = (Object[])vm.getWrappedModel().getValue(); assertEquals(newBackingArray.length, 0); vm.getWrappedModel().setValue(null); llm.clear(); vm.commit(); assertEquals("if backingCollection is NULL then a commit of an empty LLM should also be NULL", vm .getWrappedModel().getValue(), null); llm.add(newValue); vm.commit(); newBackingArray = (Object[])vm.getWrappedModel().getValue(); assertEquals(newBackingArray.length, 1); assertEquals(newBackingArray[0], newValue); }
|
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/5ec19649d881a3bcff846f9ee381f25c8ee1943f/BufferedCollectionValueModelTest.java/clean/test/org/springframework/richclient/forms/BufferedCollectionValueModelTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7173,
25772,
682,
1488,
1190,
2711,
310,
1076,
1435,
288,
3639,
1033,
8526,
15394,
1076,
273,
12634,
12,
6625,
1769,
3639,
5987,
2532,
620,
1488,
4268,
273,
336,
17947,
2532,
620,
1488,
12,
823,
310,
1076,
1769,
3639,
987,
682,
1488,
6579,
81,
273,
261,
682,
682,
1488,
13,
3489,
18,
24805,
5621,
3639,
6579,
81,
18,
8507,
5621,
3639,
1815,
8867,
2932,
6329,
358,
987,
682,
1488,
1410,
506,
486,
506,
7165,
358,
15394,
526,
3308,
3294,
353,
2566,
3113,
4268,
7734,
263,
588,
17665,
1488,
7675,
24805,
9334,
15394,
1076,
1769,
3639,
15394,
1076,
273,
12634,
12,
15168,
1769,
3639,
4268,
18,
588,
17665,
1488,
7675,
542,
620,
12,
823,
310,
1076,
1769,
3639,
1033,
6129,
273,
394,
3698,
12,
21,
1769,
3639,
6579,
81,
18,
542,
12,
21,
16,
6129,
1769,
3639,
4268,
18,
7371,
5621,
3639,
1033,
8526,
394,
2711,
310,
1076,
273,
261,
921,
63,
5717,
3489,
18,
588,
17665,
1488,
7675,
24805,
5621,
3639,
1815,
1248,
8650,
2932,
3427,
1410,
486,
1240,
2118,
3294,
329,
1473,
358,
2282,
526,
3113,
394,
2711,
310,
1076,
16,
15394,
1076,
1769,
3639,
6579,
81,
18,
1289,
12,
2704,
620,
1769,
3639,
4268,
18,
7371,
5621,
3639,
394,
2711,
310,
1076,
273,
261,
921,
63,
5717,
3489,
18,
588,
17665,
1488,
7675,
24805,
5621,
3639,
1815,
1248,
8650,
2932,
3427,
1410,
486,
1240,
2118,
3294,
329,
1473,
358,
2282,
526,
3113,
394,
2711,
310,
1076,
16,
15394,
1076,
1769,
3639,
1815,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7173,
25772,
682,
1488,
1190,
2711,
310,
1076,
1435,
288,
3639,
1033,
8526,
15394,
1076,
273,
12634,
12,
6625,
1769,
3639,
5987,
2532,
620,
1488,
4268,
273,
336,
17947,
2532,
620,
1488,
12,
823,
310,
1076,
1769,
3639,
987,
682,
1488,
6579,
81,
273,
261,
682,
682,
1488,
13,
3489,
18,
24805,
5621,
3639,
6579,
81,
18,
8507,
5621,
3639,
1815,
8867,
2932,
6329,
358,
987,
682,
1488,
1410,
506,
486,
506,
7165,
358,
15394,
526,
3308,
3294,
353,
2566,
3113,
4268,
7734,
263,
588,
17665,
1488,
7675,
24805,
9334,
15394,
1076,
1769,
3639,
15394,
1076,
273,
12634,
12,
15168,
1769,
3639,
4268,
18,
588,
17665,
1488,
7675,
542,
620,
12,
823,
310,
1076,
1769,
2
] |
if(null == m_ExcludeResultPrefixs)
|
if (null == m_ExcludeResultPrefixs)
|
public boolean containsExcludeResultPrefix(String prefix) { if(null == m_ExcludeResultPrefixs) return false; if (prefix.length() == 0) prefix = Constants.ATTRVAL_DEFAULT_PREFIX; return m_ExcludeResultPrefixs.contains(prefix); }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/Stylesheet.java/buggy/src/org/apache/xalan/templates/Stylesheet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
12689,
1253,
2244,
12,
780,
1633,
13,
225,
288,
377,
309,
261,
2011,
422,
312,
67,
12689,
1253,
2244,
87,
13,
1377,
327,
629,
31,
565,
309,
261,
3239,
18,
2469,
1435,
422,
374,
13,
1377,
1633,
273,
5245,
18,
12043,
2669,
67,
5280,
67,
6307,
31,
565,
327,
312,
67,
12689,
1253,
2244,
87,
18,
12298,
12,
3239,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
12689,
1253,
2244,
12,
780,
1633,
13,
225,
288,
377,
309,
261,
2011,
422,
312,
67,
12689,
1253,
2244,
87,
13,
1377,
327,
629,
31,
565,
309,
261,
3239,
18,
2469,
1435,
422,
374,
13,
1377,
1633,
273,
5245,
18,
12043,
2669,
67,
5280,
67,
6307,
31,
565,
327,
312,
67,
12689,
1253,
2244,
87,
18,
12298,
12,
3239,
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
] |
f.delete();
|
if (f.isDirectory()) { project.log("Directory: " + f.getAbsolutePath() + " cannot be removed with delete. Use Deltree instead."); } else { project.log("Deleting: " + f.getAbsolutePath()); f.delete(); }
|
public void execute() throws BuildException { project.log("Deleting: " + f.getAbsolutePath()); if (f.exists()) { f.delete(); } }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/f400b0cf338360c34fcd87f54cfeee60fc00158f/Delete.java/clean/src/main/org/apache/tools/ant/taskdefs/Delete.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
1984,
18,
1330,
2932,
20433,
30,
315,
397,
284,
18,
588,
10368,
743,
10663,
3639,
309,
261,
74,
18,
1808,
10756,
288,
5411,
309,
261,
74,
18,
291,
2853,
10756,
288,
1984,
18,
1330,
2932,
2853,
30,
315,
397,
284,
18,
588,
10368,
743,
1435,
397,
315,
2780,
506,
3723,
598,
1430,
18,
225,
2672,
6603,
3413,
3560,
1199,
1769,
289,
469,
288,
1984,
18,
1330,
2932,
20433,
30,
315,
397,
284,
18,
588,
10368,
743,
10663,
284,
18,
3733,
5621,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1836,
1435,
1216,
18463,
288,
3639,
1984,
18,
1330,
2932,
20433,
30,
315,
397,
284,
18,
588,
10368,
743,
10663,
3639,
309,
261,
74,
18,
1808,
10756,
288,
5411,
309,
261,
74,
18,
291,
2853,
10756,
288,
1984,
18,
1330,
2932,
2853,
30,
315,
397,
284,
18,
588,
10368,
743,
1435,
397,
315,
2780,
506,
3723,
598,
1430,
18,
225,
2672,
6603,
3413,
3560,
1199,
1769,
289,
469,
288,
1984,
18,
1330,
2932,
20433,
30,
315,
397,
284,
18,
588,
10368,
743,
10663,
284,
18,
3733,
5621,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
lo3d.set( x, y3d, dZEnd );
|
lo3d.set( sx, y3d, dZEnd );
|
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( ); 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( ); 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( ) ) ); } Label la = ax.getLabel( ); final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); 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( ); 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( ).getNormalizedEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getNormalizedEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getNormalizedStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getNormalizedStart( ); daEndPoints3D = sc.getNormalizedEndPoints( ); da3D = sc.getNormalizedTickCoordinates( ); 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( dXStart, dStart, dZEnd ); l3dre.setEnd3D( dXStart, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZStart ); l3dre.setEnd3D( dXEnd, dEnd, dZStart ); dc.addLine( l3dre ); } 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 ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dAngleInRadians = ( -dAngleInDegrees * Math.PI ) / 180; double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dOffset = 0, dW, dH, dHCosTheta; 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( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHCosTheta = dH * dCosTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { 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 ) ) { if ( bRendering3D ) { // Left wall lo3d.set( x, y3d + dOffset, dZEnd ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( dXEnd, y3d + dOffset, dZ ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); 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 ) // RENDER LABELS ONLY IF // REQUESTED { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { // Left wall lo3d.set( x, 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( dXEnd, 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( x, 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( ).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 ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { // Left wall lo3d.set( x, 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( dXEnd, 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( x, 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( ).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 ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { // Left wall lo3d.set( x, 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( dXEnd, 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( x, 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( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } la = ax.getTitle( ); // TEMPORARILY USE FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisLabels ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la ); 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 ( 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( null ); 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( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = 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 ) ? ( dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? 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 ); } 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 ); } 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 ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dAngleInRadians = ( -dAngleInDegrees * Math.PI ) / 180; double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dOffset = 0, dW, dH, dHSineTheta; 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 ) ? dYTick1 - 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 ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? 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( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHSineTheta = dH * dSineTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - ( dW * dCosTheta + dHSineTheta ) / 2 + dHSineTheta; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = dUnitSize + dHSineTheta - ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2 - dHSineTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - dHSineTheta / 2 + ( dW * dCosTheta + dHSineTheta ) / 2; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = dUnitSize / 2; } if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, y, dZEnd ); } else { lo3d.set( dXEnd, y, z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, y ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); 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 ) ? dYTick1 - 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 ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? 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 ) // 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( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, y, dZEnd ); } else { lo3d.set( dXEnd, y, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, 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( ).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 ) ? dYTick1 - 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 ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? 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 ) // 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( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, y, dZEnd ); } else { lo3d.set( dXEnd, y, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, 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( ).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 ) ? dYTick1 - 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 ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? 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 ) // 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( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, y, dZEnd ); } else { lo3d.set( dXEnd, y, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, 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( ).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 = ax.getTitle( ); // TEMPORARILY USE FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisLabels ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la ); 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 ( 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( null ); 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( null ); 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( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = 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 ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/80924662e5927eac5b3e28e6cc9516f0ee88c721/AxesRenderer.java/buggy/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
] |
return match.isNil() ? match : ((RubyMatchData) match).group(n);
|
IRubyObject nil = match.getRuntime().getNil(); if (match.isNil()) { return nil; } RubyMatchData rmd = (RubyMatchData) match; if (n > rmd.getSize()) { return nil; } if (n < 0) { n += rmd.getSize(); if (n <= 0) { return nil; } } return rmd.group(n);
|
public static IRubyObject nth_match(int n, IRubyObject match) { return match.isNil() ? match : ((RubyMatchData) match).group(n); }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/ccaba8b36154afea86c2482886e84c7df5ddad99/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
20196,
67,
1916,
12,
474,
290,
16,
15908,
10340,
921,
845,
13,
288,
3639,
15908,
10340,
921,
515,
273,
845,
18,
588,
5576,
7675,
588,
12616,
5621,
309,
261,
1916,
18,
291,
12616,
10756,
288,
327,
515,
31,
289,
225,
19817,
2060,
751,
28960,
273,
261,
54,
10340,
2060,
751,
13,
845,
31,
225,
309,
261,
82,
405,
28960,
18,
588,
1225,
10756,
288,
327,
515,
31,
289,
225,
309,
261,
82,
411,
374,
13,
288,
290,
1011,
28960,
18,
588,
1225,
5621,
309,
261,
82,
1648,
374,
13,
288,
327,
515,
31,
289,
289,
327,
28960,
18,
1655,
12,
82,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
20196,
67,
1916,
12,
474,
290,
16,
15908,
10340,
921,
845,
13,
288,
3639,
15908,
10340,
921,
515,
273,
845,
18,
588,
5576,
7675,
588,
12616,
5621,
309,
261,
1916,
18,
291,
12616,
10756,
288,
327,
515,
31,
289,
225,
19817,
2060,
751,
28960,
273,
261,
54,
10340,
2060,
751,
13,
845,
31,
225,
309,
261,
82,
405,
28960,
18,
588,
1225,
10756,
288,
327,
515,
31,
289,
225,
309,
261,
82,
411,
374,
13,
288,
290,
1011,
28960,
18,
588,
1225,
5621,
309,
261,
82,
1648,
374,
13,
288,
327,
515,
31,
289,
289,
327,
28960,
18,
1655,
12,
82,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (contentDescriptors[i].isEnabledByDefault())
|
if (contentDescriptors[i].isActiveByDefault())
|
private Set revertExtensionActivations(String aViewerId) { Preferences preferences = NavigatorPlugin.getDefault() .getPluginPreferences(); Set activatedExtensions = new HashSet(); String activatedExtensionsString = preferences .getString(getPreferenceKey(aViewerId)); if (activatedExtensionsString != null && activatedExtensionsString.length() > 0) { String activatedExtensionKey = null; StringTokenizer tokenizer = new StringTokenizer( activatedExtensionsString, ";"); //$NON-NLS-1$ while (tokenizer.hasMoreTokens()) { activatedExtensionKey = tokenizer.nextToken(); if (activatedExtensionKey.length() > 0) activatedExtensions.add(activatedExtensionKey); } } else { INavigatorContentDescriptor[] contentDescriptors = CONTENT_DESCRIPTOR_REGISTRY .getAllContentDescriptors(); for (int i = 0; i < contentDescriptors.length; i++) if (contentDescriptors[i].isEnabledByDefault()) activatedExtensions .add(getExtensionActivationPreferenceKey(contentDescriptors[i] .getId())); } return activatedExtensions; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1869fb0f66846c5ed765b0677f0e3907b2d6a068/NavigatorActivationService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/NavigatorActivationService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1000,
15226,
3625,
12241,
1012,
12,
780,
279,
18415,
548,
13,
288,
202,
202,
12377,
12750,
273,
423,
13061,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
3773,
12377,
5621,
202,
202,
694,
14892,
7513,
273,
394,
6847,
5621,
202,
202,
780,
14892,
7513,
780,
273,
12750,
9506,
202,
18,
588,
780,
12,
588,
9624,
653,
12,
69,
18415,
548,
10019,
202,
202,
430,
261,
18836,
7513,
780,
480,
446,
9506,
202,
10,
10,
14892,
7513,
780,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
780,
14892,
3625,
653,
273,
446,
31,
1082,
202,
780,
10524,
10123,
273,
394,
16370,
12,
6862,
202,
18836,
7513,
780,
16,
11430,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
17523,
261,
2316,
1824,
18,
5332,
7417,
5157,
10756,
288,
9506,
202,
18836,
3625,
653,
273,
10123,
18,
4285,
1345,
5621,
9506,
202,
430,
261,
18836,
3625,
653,
18,
2469,
1435,
405,
374,
13,
6862,
202,
18836,
7513,
18,
1289,
12,
18836,
3625,
653,
1769,
1082,
202,
97,
202,
202,
97,
469,
288,
1082,
202,
706,
13061,
1350,
3187,
8526,
913,
12705,
273,
12577,
67,
1639,
27689,
67,
5937,
25042,
6862,
202,
18,
588,
1595,
1350,
12705,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
913,
12705,
18,
2469,
31,
277,
27245,
9506,
202,
430,
261,
1745,
12705,
63,
77,
8009,
291,
1526,
858,
1868,
10756,
6862,
202,
18836,
7513,
6862,
1082,
202,
18,
1289,
12,
588,
3625,
14857,
9624,
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,
1000,
15226,
3625,
12241,
1012,
12,
780,
279,
18415,
548,
13,
288,
202,
202,
12377,
12750,
273,
423,
13061,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
3773,
12377,
5621,
202,
202,
694,
14892,
7513,
273,
394,
6847,
5621,
202,
202,
780,
14892,
7513,
780,
273,
12750,
9506,
202,
18,
588,
780,
12,
588,
9624,
653,
12,
69,
18415,
548,
10019,
202,
202,
430,
261,
18836,
7513,
780,
480,
446,
9506,
202,
10,
10,
14892,
7513,
780,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
780,
14892,
3625,
653,
273,
446,
31,
1082,
202,
780,
10524,
10123,
273,
394,
16370,
12,
6862,
202,
18836,
7513,
780,
16,
11430,
1769,
4329,
3993,
17,
5106,
17,
2
] |
return ( List<Gene> ) qr.query( conn, query, params, new ResultSetHandler() {
|
return ( Collection<Gene> ) qr.query( conn, query, params, new ResultSetHandler() {
|
private List<Gene> findRNAs( final String chromosome, Long regionStart, Long regionEnd ) { String searchChrom = SequenceManipulation.blatFormatChromosomeName( chromosome ); String query = "SELECT mrna.qName, mrna.qName, mrna.tStart, mrna.tEnd, mrna.strand, mrna.blockSizes, mrna.tStarts " + " FROM all_mrna as mrna WHERE " + "((mrna.tStart > ? AND mrna.tEnd < ?) OR (mrna.tStart < ? AND mrna.tEnd > ?) OR " + "(mrna.tStart > ? AND mrna.tStart < ?) OR (mrna.tEnd > ? AND mrna.tEnd < ? )) and mrna.tName = ? "; query = query + " order by mrna.tStart "; Object[] params = new Object[] { regionStart, regionEnd, regionStart, regionEnd, regionStart, regionEnd, regionStart, regionEnd, searchChrom }; try { return ( List<Gene> ) qr.query( conn, query, params, new ResultSetHandler() { @SuppressWarnings("synthetic-access") public Object handle( ResultSet rs ) throws SQLException { List<Gene> r = new ArrayList<Gene>(); while ( rs.next() ) { Gene gene = Gene.Factory.newInstance(); gene.setNcbiId( rs.getString( 1 ) ); gene.setOfficialSymbol( rs.getString( 2 ) ); gene.setId( new Long( gene.getNcbiId().hashCode() ) ); PhysicalLocation pl = PhysicalLocation.Factory.newInstance(); pl.setNucleotide( rs.getLong( 3 ) ); pl.setNucleotideLength( rs.getInt( 4 ) - rs.getInt( 3 ) ); pl.setStrand( rs.getString( 5 ) ); Chromosome c = Chromosome.Factory.newInstance(); c.setName( SequenceManipulation.deBlatFormatChromosomeName( chromosome ) ); pl.setChromosome( c ); // note that we aren't setting the chromosome here; we already know that. gene.setPhysicalLocation( pl ); r.add( gene ); Blob blockSizes = rs.getBlob( 6 ); Blob blockStarts = rs.getBlob( 7 ); setBlocks( gene, blockSizes, blockStarts ); } return r; } } ); } catch ( SQLException e ) { throw new RuntimeException( e ); } }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/f95984592ab6cae0a89b2e6264c7a318aad6a040/GoldenPathSequenceAnalysis.java/clean/gemma-core/src/main/java/ubic/gemma/externalDb/GoldenPathSequenceAnalysis.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
32,
24442,
34,
1104,
54,
50,
1463,
12,
727,
514,
22674,
16,
3407,
3020,
1685,
16,
3407,
3020,
1638,
262,
288,
3639,
514,
1623,
30761,
273,
8370,
19308,
6234,
18,
3083,
270,
1630,
30761,
16958,
461,
12,
22674,
11272,
3639,
514,
843,
273,
315,
4803,
9752,
6582,
18,
85,
461,
16,
9752,
6582,
18,
85,
461,
16,
9752,
6582,
18,
88,
1685,
16,
9752,
6582,
18,
88,
1638,
16,
9752,
6582,
18,
701,
464,
16,
9752,
6582,
18,
2629,
11923,
16,
9752,
6582,
18,
88,
11203,
225,
315,
7734,
397,
315,
4571,
777,
67,
21387,
6582,
487,
9752,
6582,
225,
4852,
315,
7734,
397,
7751,
12,
21387,
6582,
18,
88,
1685,
405,
692,
4116,
9752,
6582,
18,
88,
1638,
411,
692,
13,
4869,
261,
21387,
6582,
18,
88,
1685,
411,
692,
4116,
9752,
6582,
18,
88,
1638,
405,
692,
13,
4869,
315,
7734,
397,
7751,
21387,
6582,
18,
88,
1685,
405,
692,
225,
4116,
9752,
6582,
18,
88,
1685,
411,
692,
13,
4869,
225,
261,
21387,
6582,
18,
88,
1638,
405,
692,
4116,
225,
9752,
6582,
18,
88,
1638,
411,
692,
8623,
471,
9752,
6582,
18,
88,
461,
273,
692,
13636,
3639,
843,
273,
843,
397,
315,
1353,
635,
9752,
6582,
18,
88,
1685,
13636,
3639,
1033,
8526,
859,
273,
394,
1033,
8526,
288,
3020,
1685,
16,
3020,
1638,
16,
3020,
1685,
16,
3020,
1638,
16,
3020,
1685,
16,
3020,
1638,
16,
7734,
3020,
1685,
16,
3020,
1638,
16,
1623,
30761,
289,
31,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
32,
24442,
34,
1104,
54,
50,
1463,
12,
727,
514,
22674,
16,
3407,
3020,
1685,
16,
3407,
3020,
1638,
262,
288,
3639,
514,
1623,
30761,
273,
8370,
19308,
6234,
18,
3083,
270,
1630,
30761,
16958,
461,
12,
22674,
11272,
3639,
514,
843,
273,
315,
4803,
9752,
6582,
18,
85,
461,
16,
9752,
6582,
18,
85,
461,
16,
9752,
6582,
18,
88,
1685,
16,
9752,
6582,
18,
88,
1638,
16,
9752,
6582,
18,
701,
464,
16,
9752,
6582,
18,
2629,
11923,
16,
9752,
6582,
18,
88,
11203,
225,
315,
7734,
397,
315,
4571,
777,
67,
21387,
6582,
487,
9752,
6582,
225,
4852,
315,
7734,
397,
7751,
12,
21387,
6582,
18,
88,
1685,
405,
692,
4116,
9752,
6582,
2
] |
manager.addRepository(repository);
|
manager.addRepository(repository, TasksUiPlugin.getDefault().getRepositoriesFilePath());
|
protected void init(String url, Version version) { Credentials credentials = MylarTestUtils.readCredentials(PrivilegeLevel.USER); repository = new TaskRepository(TracUiPlugin.REPOSITORY_KIND, url); repository.setAuthenticationCredentials(credentials.username, credentials.password); repository.setTimeZoneId(ITracClient.TIME_ZONE); repository.setCharacterEncoding(ITracClient.CHARSET); repository.setVersion(version.name()); manager.addRepository(repository); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/38084d17211d43d5e9d6fa4b76deec1145d5b2e5/RepositorySearchQueryTest.java/clean/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/RepositorySearchQueryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
12,
780,
880,
16,
4049,
1177,
13,
288,
202,
202,
6163,
4448,
273,
8005,
7901,
4709,
1989,
18,
896,
6163,
12,
24308,
2355,
18,
4714,
1769,
202,
202,
9071,
273,
394,
3837,
3305,
12,
1609,
71,
13943,
3773,
18,
862,
30986,
67,
47,
2356,
16,
880,
1769,
202,
202,
9071,
18,
542,
6492,
6163,
12,
11687,
18,
5053,
16,
4448,
18,
3664,
1769,
202,
202,
9071,
18,
542,
16760,
548,
12,
1285,
8836,
1227,
18,
4684,
67,
20725,
1769,
202,
202,
9071,
18,
542,
7069,
4705,
12,
1285,
8836,
1227,
18,
26977,
1769,
202,
202,
9071,
18,
542,
1444,
12,
1589,
18,
529,
10663,
202,
202,
4181,
18,
1289,
3305,
12,
9071,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
12,
780,
880,
16,
4049,
1177,
13,
288,
202,
202,
6163,
4448,
273,
8005,
7901,
4709,
1989,
18,
896,
6163,
12,
24308,
2355,
18,
4714,
1769,
202,
202,
9071,
273,
394,
3837,
3305,
12,
1609,
71,
13943,
3773,
18,
862,
30986,
67,
47,
2356,
16,
880,
1769,
202,
202,
9071,
18,
542,
6492,
6163,
12,
11687,
18,
5053,
16,
4448,
18,
3664,
1769,
202,
202,
9071,
18,
542,
16760,
548,
12,
1285,
8836,
1227,
18,
4684,
67,
20725,
1769,
202,
202,
9071,
18,
542,
7069,
4705,
12,
1285,
8836,
1227,
18,
26977,
1769,
202,
202,
9071,
18,
542,
1444,
12,
1589,
18,
529,
10663,
202,
202,
4181,
18,
1289,
3305,
12,
9071,
1769,
202,
2
] |
protected void addSelfToCC(Composite composite) { // if they aren't already on the cc list create an add self check box FormToolkit toolkit = getManagedForm().getToolkit(); final RepositoryTaskData taskData = getRepositoryTaskData(); RepositoryTaskAttribute owner = taskData.getAttribute(RepositoryTaskAttribute.USER_ASSIGNED); if (repository.getUserName() == null) { return; } if (owner != null && owner.getValue().indexOf(repository.getUserName()) != -1) { return; } RepositoryTaskAttribute reporter = taskData.getAttribute(RepositoryTaskAttribute.USER_REPORTER); if (reporter != null && reporter.getValue().indexOf(repository.getUserName()) != -1) { return; } // Don't add addselfcc if already there RepositoryTaskAttribute ccAttribute = taskData.getAttribute(RepositoryTaskAttribute.USER_CC); if (ccAttribute != null && ccAttribute.getValues().contains(repository.getUserName())) { return; } toolkit.createLabel(composite, ""); final Button addSelfButton = toolkit.createButton(composite, "Add me to CC", SWT.CHECK); addSelfButton.setImage(TaskListImages.getImage(TaskListImages.PERSON)); addSelfButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (addSelfButton.getSelection()) { taskData.setAttributeValue(RepositoryTaskAttribute.ADD_SELF_CC, "1"); } else { taskData.setAttributeValue(RepositoryTaskAttribute.ADD_SELF_CC, "0"); } markDirty(true); } }); // GridDataFactory.fillDefaults().span(2, // SWT.DEFAULT).applyTo(addSelfButton); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/34738ae14dfea99f415f0b6f7ee4df58a8d4da89/AbstractRepositoryTaskEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6459,
1289,
10084,
774,
6743,
12,
799,
1724,
30433,
4974,
15329,
202,
202,
759,
430,
451,
402,
7892,
1404,
17583,
2152,
557,
830,
376,
2640,
304,
1289,
2890,
12017,
202,
202,
1204,
6364,
8691,
6738,
8691,
33,
588,
10055,
1204,
7675,
588,
6364,
8691,
5621,
202,
202,
6385,
3305,
2174,
5139,
270,
835,
751,
33,
588,
3305,
2174,
751,
5621,
202,
202,
3305,
2174,
1499,
8443,
33,
4146,
751,
18,
588,
1499,
12,
3305,
2174,
1499,
18,
4714,
67,
23289,
2056,
1769,
202,
202,
430,
12,
9071,
18,
588,
15296,
1435,
631,
2011,
15329,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
12,
8443,
5,
33,
2011,
10,
10,
8443,
18,
24805,
7675,
31806,
12,
9071,
18,
588,
15296,
10756,
5,
29711,
21,
15329,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
3305,
2174,
12399,
322,
822,
7988,
33,
4146,
751,
18,
588,
1499,
12,
3305,
2174,
1499,
18,
4714,
67,
28879,
916,
2560,
1769,
202,
202,
430,
12,
266,
7988,
5,
33,
2011,
10,
10,
266,
7988,
18,
24805,
7675,
31806,
12,
9071,
18,
588,
15296,
10756,
5,
29711,
21,
15329,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
22293,
1404,
1289,
1289,
2890,
952,
430,
17583,
18664,
202,
202,
3305,
2174,
12399,
322,
24410,
1499,
33,
4146,
751,
18,
588,
1499,
12,
3305,
2174,
1499,
18,
4714,
67,
6743,
1769,
202,
202,
430,
12,
952,
1499,
5,
33,
2011,
10,
10,
952,
1499,
18,
588,
1972,
7675,
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,
6459,
1289,
10084,
774,
6743,
12,
799,
1724,
30433,
4974,
15329,
202,
202,
759,
430,
451,
402,
7892,
1404,
17583,
2152,
557,
830,
376,
2640,
304,
1289,
2890,
12017,
202,
202,
1204,
6364,
8691,
6738,
8691,
33,
588,
10055,
1204,
7675,
588,
6364,
8691,
5621,
202,
202,
6385,
3305,
2174,
5139,
270,
835,
751,
33,
588,
3305,
2174,
751,
5621,
202,
202,
3305,
2174,
1499,
8443,
33,
4146,
751,
18,
588,
1499,
12,
3305,
2174,
1499,
18,
4714,
67,
23289,
2056,
1769,
202,
202,
430,
12,
9071,
18,
588,
15296,
1435,
631,
2011,
15329,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
12,
8443,
5,
33,
2011,
10,
10,
8443,
18,
24805,
7675,
31806,
2
] |
||
decompiler.addToken(Token.NEW); decompiler.addToken(Token.DOT);
|
private Node xmlInitializer() throws IOException { int tt = ts.getFirstXMLToken(); if (tt != Token.XML && tt != Token.XMLEND) { reportError("msg.syntax"); return null; } /* Make a NEW node to append to. */ Node pnXML = nf.createLeaf(Token.NEW); decompiler.addToken(Token.NEW); decompiler.addToken(Token.DOT); String xml = ts.getString(); boolean fAnonymous = xml.trim().startsWith("<>"); decompiler.addName(fAnonymous ? "XMLList" : "XML"); Node pn = nf.createName(fAnonymous ? "XMLList" : "XML"); nf.addChildToBack(pnXML, pn); pn = null; Node expr; for (;;tt = ts.getNextXMLToken()) { switch (tt) { case Token.XML: xml = ts.getString(); decompiler.addString(xml); mustMatchToken(Token.LC, "msg.syntax"); decompiler.addToken(Token.LC); expr = (peekToken() == Token.RC) ? nf.createString("") : expr(false); mustMatchToken(Token.RC, "msg.syntax"); decompiler.addToken(Token.RC); if (pn == null) { pn = nf.createString(xml); } else { pn = nf.createBinary(Token.ADD, pn, nf.createString(xml)); } int nodeType; if (ts.isXMLAttribute()) { nodeType = Token.ESCXMLATTR; } else { nodeType = Token.ESCXMLTEXT; } expr = nf.createUnary(nodeType, expr); pn = nf.createBinary(Token.ADD, pn, expr); break; case Token.XMLEND: xml = ts.getString(); decompiler.addString(xml); if (pn == null) { pn = nf.createString(xml); } else { pn = nf.createBinary(Token.ADD, pn, nf.createString(xml)); } nf.addChildToBack(pnXML, pn); return pnXML; default: reportError("msg.syntax"); return null; } } }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/04ddc56768b4808149781bb1f415450e7805513d/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
2025,
14729,
1435,
1216,
1860,
565,
288,
3639,
509,
3574,
273,
3742,
18,
588,
3759,
4201,
1345,
5621,
3639,
309,
261,
748,
480,
3155,
18,
4201,
597,
3574,
480,
3155,
18,
60,
9687,
2908,
13,
288,
5411,
17887,
2932,
3576,
18,
14308,
8863,
5411,
327,
446,
31,
3639,
289,
3639,
1748,
4344,
279,
12887,
756,
358,
714,
358,
18,
1195,
3639,
2029,
11059,
4201,
273,
13958,
18,
2640,
9858,
12,
1345,
18,
12917,
1769,
3639,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
12917,
1769,
3639,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
17591,
1769,
3639,
514,
2025,
273,
3742,
18,
588,
780,
5621,
3639,
1250,
284,
18792,
273,
2025,
18,
5290,
7675,
17514,
1190,
2932,
32,
2984,
1769,
3639,
443,
9576,
18,
1289,
461,
12,
74,
18792,
692,
315,
4201,
682,
6,
294,
315,
4201,
8863,
3639,
2029,
11059,
273,
13958,
18,
2640,
461,
12,
74,
18792,
692,
315,
4201,
682,
6,
294,
315,
4201,
8863,
3639,
13958,
18,
1289,
1763,
774,
2711,
12,
7449,
4201,
16,
11059,
1769,
3639,
11059,
273,
446,
31,
3639,
2029,
3065,
31,
3639,
364,
261,
25708,
748,
273,
3742,
18,
588,
2134,
4201,
1345,
10756,
288,
5411,
1620,
261,
748,
13,
288,
5411,
648,
3155,
18,
4201,
30,
7734,
2025,
273,
3742,
18,
588,
780,
5621,
7734,
443,
9576,
18,
1289,
780,
12,
2902,
1769,
7734,
1297,
2060,
1345,
12,
1345,
18,
13394,
16,
315,
3576,
18,
14308,
8863,
7734,
443,
9576,
18,
1289,
1345,
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,
2029,
2025,
14729,
1435,
1216,
1860,
565,
288,
3639,
509,
3574,
273,
3742,
18,
588,
3759,
4201,
1345,
5621,
3639,
309,
261,
748,
480,
3155,
18,
4201,
597,
3574,
480,
3155,
18,
60,
9687,
2908,
13,
288,
5411,
17887,
2932,
3576,
18,
14308,
8863,
5411,
327,
446,
31,
3639,
289,
3639,
1748,
4344,
279,
12887,
756,
358,
714,
358,
18,
1195,
3639,
2029,
11059,
4201,
273,
13958,
18,
2640,
9858,
12,
1345,
18,
12917,
1769,
3639,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
12917,
1769,
3639,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
17591,
1769,
3639,
514,
2025,
273,
3742,
18,
588,
780,
5621,
3639,
1250,
284,
18792,
273,
2025,
18,
5290,
7675,
17514,
1190,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.