rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
return c1.compareTo(c2);
|
if (c1 != null) { if (c2 == null) { return 1; } return c1.compareTo(c2); } else if (c2 != null) { return -1; } return 0;
|
public Comparator getComparator(final String columnId, final Locale locale) { return new Comparator() { /** * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ public int compare(Object o1, Object o2) { CmsListColumnDefinition col = ((CmsListItem)o1).getMetadata().getColumnDefinition(columnId); if (col.getDirectActions().size()>0) { I_CmsListDirectAction action = (I_CmsListDirectAction)col.getDirectActions().get(0); CmsListItem tmp = action.getItem(); action.setItem((CmsListItem)o1); String i1 = action.getIconPath(); action.setItem((CmsListItem)o2); String i2 = action.getIconPath(); action.setItem(tmp); return i1.compareTo(i2); } else { Comparable c1 = (Comparable)((CmsListItem)o1).get(columnId); Comparable c2 = (Comparable)((CmsListItem)o2).get(columnId); return c1.compareTo(c2); } } }; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/dd1de739e472ad91ca1cf2a12f1f0e99ddff5d6d/CmsListItemActionIconComparator.java/buggy/src/org/opencms/workplace/list/CmsListItemActionIconComparator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13359,
336,
5559,
12,
6385,
514,
1057,
548,
16,
727,
6458,
2573,
13,
288,
7734,
327,
394,
13359,
1435,
288,
5411,
1783,
2398,
380,
632,
5946,
2252,
18,
1367,
18,
5559,
7,
9877,
12,
6290,
18,
4936,
18,
921,
16,
2252,
18,
4936,
18,
921,
13,
2398,
1195,
5411,
1071,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
7734,
2149,
682,
1494,
1852,
645,
273,
14015,
4747,
13575,
13,
83,
21,
2934,
588,
2277,
7675,
588,
1494,
1852,
12,
2827,
548,
1769,
7734,
309,
261,
1293,
18,
588,
5368,
6100,
7675,
1467,
1435,
34,
20,
13,
288,
10792,
467,
67,
4747,
682,
5368,
1803,
1301,
273,
261,
45,
67,
4747,
682,
5368,
1803,
13,
1293,
18,
588,
5368,
6100,
7675,
588,
12,
20,
1769,
10792,
2149,
13575,
1853,
273,
1301,
18,
588,
1180,
5621,
10792,
1301,
18,
542,
1180,
12443,
4747,
13575,
13,
83,
21,
1769,
10792,
514,
277,
21,
273,
1301,
18,
588,
5554,
743,
5621,
10792,
1301,
18,
542,
1180,
12443,
4747,
13575,
13,
83,
22,
1769,
10792,
514,
277,
22,
273,
1301,
18,
588,
5554,
743,
5621,
10792,
1301,
18,
542,
1180,
12,
5645,
1769,
10792,
327,
277,
21,
18,
9877,
774,
12,
77,
22,
1769,
7734,
289,
469,
288,
10792,
13633,
276,
21,
273,
261,
799,
10207,
13,
12443,
4747,
13575,
13,
83,
21,
2934,
588,
12,
2827,
548,
1769,
10792,
13633,
276,
22,
273,
261,
799,
10207,
13,
12443,
4747,
13575,
13,
83,
22,
2934,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13359,
336,
5559,
12,
6385,
514,
1057,
548,
16,
727,
6458,
2573,
13,
288,
7734,
327,
394,
13359,
1435,
288,
5411,
1783,
2398,
380,
632,
5946,
2252,
18,
1367,
18,
5559,
7,
9877,
12,
6290,
18,
4936,
18,
921,
16,
2252,
18,
4936,
18,
921,
13,
2398,
1195,
5411,
1071,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
7734,
2149,
682,
1494,
1852,
645,
273,
14015,
4747,
13575,
13,
83,
21,
2934,
588,
2277,
7675,
588,
1494,
1852,
12,
2827,
548,
1769,
7734,
309,
261,
1293,
18,
588,
5368,
6100,
7675,
1467,
1435,
34,
20,
13,
288,
10792,
467,
67,
4747,
682,
5368,
1803,
1301,
273,
261,
45,
67,
4747,
682,
5368,
1803,
2
] |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.err.println ("Error parsing XML specification for processing."); System.err.println (e.toString ()); return false; } if (! this.spec.hasChildren ()) return false; for (Iterator job_it = this.spec.getChildrenNamed("job").iterator(); job_it.hasNext(); ) { XMLElement job_el = (XMLElement)job_it.next (); // first check OS constraints - skip jobs not suited for this OS List constraints = OsConstraint.getOsList (job_el); if (OsConstraint.oneMatchesCurrentSystem(constraints)) { List ef_list = new ArrayList (); String job_name = job_el.getAttribute("name", ""); for (Iterator ef_it = job_el.getChildrenNamed("executefile").iterator (); ef_it.hasNext(); ) { XMLElement ef = (XMLElement)ef_it.next(); String ef_name = ef.getAttribute("name"); if ((ef_name == null) || (ef_name.length() == 0)) { System.err.println ("missing \"name\" attribute for <executefile>"); return false; } List args = new ArrayList (); for (Iterator arg_it = ef.getChildrenNamed("arg").iterator(); arg_it.hasNext();) { XMLElement arg_el = (XMLElement)arg_it.next(); String arg_val = arg_el.getContent(); args.add (arg_val); } ef_list.add (new ExecutableFile (ef_name, args)); } this.jobs.add (new ProcessingJob (job_name, ef_list)); } } return true; }
|
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/47db88bfea6b64e47a33aa3c937b2ce6e8640d56/ProcessPanelWorker.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
855,
1990,
1832,
225,
288,
202,
202,
4348,
810,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
2630,
273,
2591,
1318,
18,
588,
1442,
7675,
588,
4348,
261,
13847,
67,
11395,
67,
1985,
1769,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1082,
202,
73,
18,
1188,
6332,
5621,
1377,
327,
629,
31,
202,
202,
97,
565,
6276,
4201,
2678,
2082,
273,
394,
6276,
4201,
2678,
261,
1769,
565,
2082,
18,
542,
1263,
261,
2704,
6276,
4201,
1263,
1832,
1769,
565,
2082,
18,
542,
5126,
261,
2704,
3858,
5126,
1832,
1769,
377,
202,
202,
698,
202,
202,
95,
1082,
202,
4288,
18,
542,
2514,
261,
2704,
6276,
4201,
2514,
261,
2630,
10019,
25083,
202,
2211,
18,
2793,
273,
261,
15223,
13,
2082,
18,
2670,
5621,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1377,
2332,
18,
370,
18,
8222,
7566,
668,
5811,
3167,
7490,
364,
4929,
1199,
1769,
1377,
2332,
18,
370,
18,
8222,
261,
73,
18,
10492,
1832,
1769,
1377,
327,
629,
31,
202,
202,
97,
565,
309,
16051,
333,
18,
2793,
18,
5332,
4212,
1832,
13,
1377,
327,
629,
31,
565,
364,
261,
3198,
1719,
67,
305,
273,
333,
18,
2793,
18,
588,
4212,
7604,
2932,
4688,
20387,
9838,
5621,
1719,
67,
305,
18,
5332,
2134,
5621,
262,
565,
288,
1377,
1139,
11155,
1719,
67,
292,
273,
261,
15223,
13,
4688,
67,
305,
18,
4285,
261,
1769,
5411,
368,
1122,
866,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
855,
1990,
1832,
225,
288,
202,
202,
4348,
810,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
2630,
273,
2591,
1318,
18,
588,
1442,
7675,
588,
4348,
261,
13847,
67,
11395,
67,
1985,
1769,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1082,
202,
73,
18,
1188,
6332,
5621,
1377,
327,
629,
31,
202,
202,
97,
565,
6276,
4201,
2678,
2082,
273,
394,
6276,
4201,
2678,
261,
1769,
565,
2082,
18,
542,
1263,
261,
2704,
6276,
4201,
1263,
1832,
1769,
565,
2082,
18,
542,
5126,
261,
2704,
3858,
5126,
1832,
1769,
377,
202,
202,
698,
202,
202,
95,
1082,
202,
4288,
18,
542,
2514,
261,
2704,
6276,
4201,
2514,
261,
2
] |
||
StringBuffer sb = new StringBuffer("AspectManager@");
|
StringBuffer sb = new StringBuffer("AspectManager::");
|
public String toString() { StringBuffer sb = new StringBuffer("AspectManager@"); sb.append(this.hashCode()); sb.append("[").append(m_definition.getUuid()); sb.append(" @ ").append(Util.classLoaderToString(m_system.getDefiningClassLoader())); sb.append("]"); return sb.toString(); }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/d5e197ef8f75f0727fecb1a5da61a9df81c6b2db/AspectManager.java/buggy/aspectwerkz3/src/main/org/codehaus/aspectwerkz/aspect/management/AspectManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
6674,
2393,
273,
394,
6674,
2932,
17468,
1318,
30,
2773,
1769,
3639,
2393,
18,
6923,
12,
2211,
18,
2816,
1085,
10663,
3639,
2393,
18,
6923,
2932,
9614,
2934,
6923,
12,
81,
67,
6907,
18,
588,
5897,
10663,
3639,
2393,
18,
6923,
2932,
632,
315,
2934,
6923,
12,
1304,
18,
1106,
2886,
5808,
12,
81,
67,
4299,
18,
588,
6443,
310,
7805,
1435,
10019,
3639,
2393,
18,
6923,
2932,
4279,
1769,
3639,
327,
2393,
18,
10492,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
6674,
2393,
273,
394,
6674,
2932,
17468,
1318,
30,
2773,
1769,
3639,
2393,
18,
6923,
12,
2211,
18,
2816,
1085,
10663,
3639,
2393,
18,
6923,
2932,
9614,
2934,
6923,
12,
81,
67,
6907,
18,
588,
5897,
10663,
3639,
2393,
18,
6923,
2932,
632,
315,
2934,
6923,
12,
1304,
18,
1106,
2886,
5808,
12,
81,
67,
4299,
18,
588,
6443,
310,
7805,
1435,
10019,
3639,
2393,
18,
6923,
2932,
4279,
1769,
3639,
327,
2393,
18,
10492,
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
] |
{ return 0; }
|
{ Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first = 0; int last = lastTabInRun(tabCount, currRun); for (int j = first; j <= last; j++) { if (getTabBounds(pane, j).contains(p)) return j; } currRun = getNextTabRun(currRun); } return -1; }
|
public int tabForCoordinate(JTabbedPane pane, int x, int y) { return 0; }
|
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/14511e3ad21013e92c6399b2bd2ec09a8263e33a/BasicTabbedPaneUI.java/clean/libjava/javax/swing/plaf/basic/BasicTabbedPaneUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
3246,
1290,
13503,
12,
46,
5661,
2992,
8485,
13618,
16,
509,
619,
16,
509,
677,
13,
565,
288,
202,
2463,
374,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
3246,
1290,
13503,
12,
46,
5661,
2992,
8485,
13618,
16,
509,
619,
16,
509,
677,
13,
565,
288,
202,
2463,
374,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return ruby.getRubyClass("JavaObject");
|
return null;
|
public static RubyModule getRubyClass(Ruby ruby, Class javaClass) { Map classMap = (Map)loadedClassMap.get(ruby); if (classMap != null) { RubyModule rubyClass = (RubyModule)classMap.get(javaClass); return rubyClass != null ? rubyClass : ruby.getRubyClass("JavaObject"); } return ruby.getRubyClass("JavaObject"); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/4dd998b9c4d1045cac5a54d7601156dae6301fae/RubyJavaObject.java/buggy/org/jruby/RubyJavaObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
3120,
4170,
10340,
797,
12,
54,
10340,
22155,
16,
1659,
2252,
797,
13,
288,
3639,
1635,
29835,
273,
261,
863,
13,
4230,
797,
863,
18,
588,
12,
27768,
1769,
3639,
309,
261,
1106,
863,
480,
446,
13,
288,
5411,
19817,
3120,
22155,
797,
273,
261,
54,
10340,
3120,
13,
1106,
863,
18,
588,
12,
6290,
797,
1769,
5411,
327,
22155,
797,
480,
446,
692,
22155,
797,
294,
22155,
18,
588,
54,
10340,
797,
2932,
5852,
921,
8863,
3639,
289,
3639,
327,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
3120,
4170,
10340,
797,
12,
54,
10340,
22155,
16,
1659,
2252,
797,
13,
288,
3639,
1635,
29835,
273,
261,
863,
13,
4230,
797,
863,
18,
588,
12,
27768,
1769,
3639,
309,
261,
1106,
863,
480,
446,
13,
288,
5411,
19817,
3120,
22155,
797,
273,
261,
54,
10340,
3120,
13,
1106,
863,
18,
588,
12,
6290,
797,
1769,
5411,
327,
22155,
797,
480,
446,
692,
22155,
797,
294,
22155,
18,
588,
54,
10340,
797,
2932,
5852,
921,
8863,
3639,
289,
3639,
327,
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
] |
Symbol symbol = (Symbol) symbolTable.get(name);
|
Symbol symbol = symbolTable.get(name);
|
private void dumpComponentAsHTML(PrintStream out, String name) { Symbol symbol = (Symbol) symbolTable.get(name); out.println("<table border=1>"); // out.println("<table border=1 width=\"%80\">"); out.print(" <tr><th bgcolor=\"#CCCCFF\" colspan=2>"); // out.print("<a href="") out.print(name); out.print("</a>"); out.println("</td></tr>"); out .println(" <tr><th bgcolor=\"#CCCCFF\">Property</th><th bgcolor=\"#CCCCFF\"> Value</th></tr>"); Registry registry = symbol.getRegistry(); Collection propertyNames = registry.getRegisteredProperties(); PropertySheet properties = symbol.getPropertySheet(); for (Iterator j = propertyNames.iterator(); j.hasNext();) { String propName = (String) j.next(); out.print(" <tr><th align=\"leftt\">" + propName + "</th>"); Object obj; try { obj = properties.getRaw(propName); } catch (PropertyException e) { // this exception can occcur if a global name // can't be resolved ... obj = "[Unresolved!]"; out.println("<td>" + obj + "</td></tr>"); } if (obj instanceof String) { out.println("<td>" + obj + "</td></tr>"); } else if (obj instanceof List) { List l = (List) obj; out.println(" <td><ul>"); for (Iterator k = l.iterator(); k.hasNext();) { out.println(" <li>" + k.next() + "</li>"); } out.println(" </ul></td>"); } else { out.println("<td>DEFAULT</td></tr>"); } } out.println("</table><br>"); }
|
47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/13ad140ab718f86203f8e83ff9849b83b918dd82/ConfigurationManager.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/ConfigurationManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4657,
1841,
1463,
4870,
12,
5108,
1228,
596,
16,
514,
508,
13,
288,
3639,
8565,
3273,
273,
26086,
18,
588,
12,
529,
1769,
3639,
596,
18,
8222,
2932,
32,
2121,
5795,
33,
21,
2984,
1769,
3639,
368,
3639,
596,
18,
8222,
2932,
32,
2121,
5795,
33,
21,
1835,
5189,
9,
3672,
21121,
1769,
3639,
596,
18,
1188,
2932,
565,
411,
313,
4438,
451,
31509,
5189,
7,
6743,
6743,
2246,
2412,
20856,
33,
22,
2984,
1769,
3639,
368,
4202,
596,
18,
1188,
2932,
32,
69,
3897,
1546,
7923,
3639,
596,
18,
1188,
12,
529,
1769,
3639,
596,
18,
1188,
2932,
1757,
69,
2984,
1769,
3639,
596,
18,
8222,
2932,
1757,
4465,
4695,
313,
2984,
1769,
3639,
596,
7734,
263,
8222,
2932,
565,
411,
313,
4438,
451,
31509,
5189,
7,
6743,
6743,
2246,
24735,
1396,
1757,
451,
4438,
451,
31509,
5189,
7,
6743,
6743,
2246,
24735,
1445,
1757,
451,
4695,
313,
2984,
1769,
3639,
5438,
4023,
273,
3273,
18,
588,
4243,
5621,
3639,
2200,
26570,
273,
4023,
18,
588,
10868,
2297,
5621,
3639,
4276,
8229,
1790,
273,
3273,
18,
588,
1396,
8229,
5621,
3639,
364,
261,
3198,
525,
273,
26570,
18,
9838,
5621,
525,
18,
5332,
2134,
5621,
13,
288,
5411,
514,
9994,
273,
261,
780,
13,
525,
18,
4285,
5621,
5411,
596,
18,
1188,
2932,
565,
411,
313,
4438,
451,
5689,
5189,
298,
74,
748,
21121,
397,
9994,
397,
6823,
451,
2984,
1769,
5411,
1033,
1081,
31,
5411,
775,
288,
7734,
1081,
273,
1790,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4657,
1841,
1463,
4870,
12,
5108,
1228,
596,
16,
514,
508,
13,
288,
3639,
8565,
3273,
273,
26086,
18,
588,
12,
529,
1769,
3639,
596,
18,
8222,
2932,
32,
2121,
5795,
33,
21,
2984,
1769,
3639,
368,
3639,
596,
18,
8222,
2932,
32,
2121,
5795,
33,
21,
1835,
5189,
9,
3672,
21121,
1769,
3639,
596,
18,
1188,
2932,
565,
411,
313,
4438,
451,
31509,
5189,
7,
6743,
6743,
2246,
2412,
20856,
33,
22,
2984,
1769,
3639,
368,
4202,
596,
18,
1188,
2932,
32,
69,
3897,
1546,
7923,
3639,
596,
18,
1188,
12,
529,
1769,
3639,
596,
18,
1188,
2932,
1757,
69,
2984,
1769,
3639,
596,
18,
8222,
2932,
1757,
4465,
4695,
313,
2984,
1769,
3639,
596,
2
] |
throw new UnsupportedOperationException("Method 'getSubClasses' is not supported by implementation");
|
return this.subClasses;
|
public Set getSubClasses() { throw new UnsupportedOperationException("Method 'getSubClasses' is not supported by implementation"); }
|
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/a6a41108e646da8f8b6d8ad210df68ab7657320c/GrailsHibernateDomainClass.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/GrailsHibernateDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
7040,
4818,
1435,
288,
202,
202,
12849,
394,
13172,
2932,
1305,
296,
588,
1676,
4818,
11,
353,
486,
3260,
635,
4471,
8863,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
7040,
4818,
1435,
288,
202,
202,
12849,
394,
13172,
2932,
1305,
296,
588,
1676,
4818,
11,
353,
486,
3260,
635,
4471,
8863,
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
] |
boolean manualViewControl = manualControl(); if (!manualViewControl && hasBinding("manualViewControl")) { manualViewControl = ((Boolean)valueForBinding("manualViewControl")).booleanValue(); } return manualViewControl; }
|
boolean manualViewControl = manualControl(); if (!manualViewControl && hasBinding("manualViewControl")) { manualViewControl = ((Boolean) valueForBinding("manualViewControl")).booleanValue(); } return manualViewControl; }
|
public boolean manualViewControl() { boolean manualViewControl = manualControl(); if (!manualViewControl && hasBinding("manualViewControl")) { manualViewControl = ((Boolean)valueForBinding("manualViewControl")).booleanValue(); } return manualViewControl; }
|
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/18cd1e043ec46b2050d90832a89d9f0a7a16da82/AjaxInPlace.java/clean/Ajax/Ajax/Sources/er/ajax/AjaxInPlace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
11297,
1767,
3367,
1435,
288,
202,
225,
1250,
11297,
1767,
3367,
273,
11297,
3367,
5621,
202,
225,
309,
16051,
19840,
1767,
3367,
597,
711,
5250,
2932,
19840,
1767,
3367,
6,
3719,
288,
1082,
225,
11297,
1767,
3367,
273,
14015,
5507,
13,
1132,
1290,
5250,
2932,
19840,
1767,
3367,
7923,
2934,
6494,
620,
5621,
202,
225,
289,
202,
225,
327,
11297,
1767,
3367,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
11297,
1767,
3367,
1435,
288,
202,
225,
1250,
11297,
1767,
3367,
273,
11297,
3367,
5621,
202,
225,
309,
16051,
19840,
1767,
3367,
597,
711,
5250,
2932,
19840,
1767,
3367,
6,
3719,
288,
1082,
225,
11297,
1767,
3367,
273,
14015,
5507,
13,
1132,
1290,
5250,
2932,
19840,
1767,
3367,
7923,
2934,
6494,
620,
5621,
202,
225,
289,
202,
225,
327,
11297,
1767,
3367,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_log.info("Client " + _dest + " is no longer local, so no more republishing their leaseSet");
|
if (_log.shouldLog(Log.INFO)) _log.info("Client " + _dest + " is no longer local, so no more republishing their leaseSet");
|
public void runJob() { try { if (getContext().clientManager().isLocal(_dest)) { LeaseSet ls = _facade.lookupLeaseSetLocally(_dest); if (ls != null) { _log.warn("Client " + _dest + " is local, so we're republishing it"); if (!ls.isCurrent(Router.CLOCK_FUDGE_FACTOR)) { _log.warn("Not publishing a LOCAL lease that isn't current - " + _dest, new Exception("Publish expired LOCAL lease?")); } else { getContext().jobQueue().addJob(new StoreJob(getContext(), _facade, _dest, ls, new OnSuccess(getContext()), new OnFailure(getContext()), REPUBLISH_LEASESET_TIMEOUT)); } } else { _log.warn("Client " + _dest + " is local, but we can't find a valid LeaseSet? perhaps its being rebuilt?"); } requeue(REPUBLISH_LEASESET_DELAY); return; } else { _log.info("Client " + _dest + " is no longer local, so no more republishing their leaseSet"); } _facade.stopPublishing(_dest); } catch (RuntimeException re) { _log.error("Uncaught error republishing the leaseSet", re); _facade.stopPublishing(_dest); throw re; } }
|
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/bc626ece2d2f61e1246a0c597f733962ed58b0db/RepublishLeaseSetJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/RepublishLeaseSetJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
775,
288,
5411,
309,
261,
29120,
7675,
2625,
1318,
7675,
291,
2042,
24899,
10488,
3719,
288,
7734,
23175,
694,
7180,
273,
389,
507,
5065,
18,
8664,
17746,
694,
1333,
1230,
24899,
10488,
1769,
7734,
309,
261,
3251,
480,
446,
13,
288,
10792,
389,
1330,
18,
8935,
2932,
1227,
315,
397,
389,
10488,
397,
315,
353,
1191,
16,
1427,
732,
4565,
2071,
2394,
310,
518,
8863,
10792,
309,
16051,
3251,
18,
291,
3935,
12,
8259,
18,
39,
6589,
67,
42,
12587,
7113,
67,
26835,
3719,
288,
13491,
389,
1330,
18,
8935,
2932,
1248,
23636,
279,
15234,
11863,
716,
5177,
1404,
783,
300,
315,
397,
389,
10488,
16,
394,
1185,
2932,
6024,
7708,
15234,
11863,
7225,
10019,
10792,
289,
469,
288,
13491,
6474,
7675,
4688,
3183,
7675,
1289,
2278,
12,
2704,
4994,
2278,
12,
29120,
9334,
389,
507,
5065,
16,
389,
10488,
16,
7180,
16,
394,
2755,
4510,
12,
29120,
1435,
3631,
394,
2755,
5247,
12,
29120,
1435,
3631,
2438,
22224,
67,
22357,
4043,
67,
9503,
10019,
10792,
289,
7734,
289,
469,
288,
10792,
389,
1330,
18,
8935,
2932,
1227,
315,
397,
389,
10488,
397,
315,
353,
1191,
16,
1496,
732,
848,
1404,
1104,
279,
923,
23175,
694,
35,
225,
26282,
2097,
3832,
283,
12406,
7225,
1769,
7734,
289,
7734,
1111,
1455,
12,
862,
22224,
67,
22357,
4043,
67,
26101,
1769,
7734,
327,
31,
5411,
289,
469,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
775,
288,
5411,
309,
261,
29120,
7675,
2625,
1318,
7675,
291,
2042,
24899,
10488,
3719,
288,
7734,
23175,
694,
7180,
273,
389,
507,
5065,
18,
8664,
17746,
694,
1333,
1230,
24899,
10488,
1769,
7734,
309,
261,
3251,
480,
446,
13,
288,
10792,
389,
1330,
18,
8935,
2932,
1227,
315,
397,
389,
10488,
397,
315,
353,
1191,
16,
1427,
732,
4565,
2071,
2394,
310,
518,
8863,
10792,
309,
16051,
3251,
18,
291,
3935,
12,
8259,
18,
39,
6589,
67,
42,
12587,
7113,
67,
26835,
3719,
288,
13491,
389,
1330,
18,
8935,
2932,
1248,
23636,
279,
15234,
11863,
716,
5177,
1404,
783,
300,
315,
397,
389,
10488,
16,
394,
1185,
2932,
6024,
7708,
2
] |
}
|
}
|
public void publishProject(CmsUser user, int projectId, CmsProject onlineProject) throws CmsException{ CmsAccessFilesystem discAccess = new CmsAccessFilesystem(m_exportpointStorage); CmsFolder currentFolder = null; CmsFile currentFile = null; CmsFolder newFolder = null; Vector offlineFolders; Vector offlineFiles; Vector deletedFolders = new Vector(); // folderIdIndex: offlinefolderId | onlinefolderId Hashtable folderIdIndex = new Hashtable(); // read all folders in offlineProject offlineFolders = readFolders(projectId); for (int i = 0; i < offlineFolders.size(); i++) { currentFolder = ((CmsFolder) offlineFolders.elementAt(i)); // C_STATE_DELETE if (currentFolder.getState() == C_STATE_DELETED) { deletedFolders.addElement(currentFolder); // C_STATE_NEW } else if (currentFolder.getState() == C_STATE_NEW) { // export to filesystem if necessary String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null) { discAccess.createFolder(currentFolder.getAbsolutePath(), exportKey); } // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder and insert its id in the folderindex try { newFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); newFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, newFolder, false); } catch (CmsException e) { if (e.getType() == CmsException.C_FILE_EXISTS) { // the folder already exists CmsFolder onlineFolder = null; try { onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (CmsException exc) { throw exc; } // end of catch PreparedStatement statement = null; Connection con = null; try { con = DriverManager.getConnection(m_poolName); // update the onlineFolder with data from offlineFolder statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE); statement.setInt(1, currentFolder.getType()); statement.setInt(2, currentFolder.getFlags()); statement.setInt(3, currentFolder.getOwnerId()); statement.setInt(4, currentFolder.getGroupId()); statement.setInt(5, onlineFolder.getProjectId()); statement.setInt(6, currentFolder.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFolder.isLockedBy()); statement.setInt(9, currentFolder.getLauncherType()); statement.setString(10, currentFolder.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFolder.getResourceLastModifiedBy()); statement.setInt(13, 0); statement.setInt(14, currentFolder.getFileId()); statement.setInt(15, onlineFolder.getResourceId()); statement.executeUpdate(); newFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (SQLException sqle) { throw new CmsException("[" + this.getClass().getName() + "] " + sqle.getMessage(), CmsException.C_SQL_ERROR, sqle); } finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } } else { throw e; } } folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(newFolder.getResourceId())); // copy properties try { Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, newFolder.getResourceId(), newFolder.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + newFolder.toString() + " Message= " + exc.getMessage()); } } // C_STATE_CHANGED } else if (currentFolder.getState() == C_STATE_CHANGED) { // export to filesystem if necessary String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null) { discAccess.createFolder(currentFolder.getAbsolutePath(), exportKey); } CmsFolder onlineFolder = null; try { onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (CmsException exc) { // if folder does not exist create it if (exc.getType() == CmsException.C_NOT_FOUND) { // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder onlineFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); onlineFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, onlineFolder, false); } else { throw exc; } } // end of catch PreparedStatement statement = null; Connection con = null; try { con = DriverManager.getConnection(m_poolName); // update the onlineFolder with data from offlineFolder statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE); statement.setInt(1, currentFolder.getType()); statement.setInt(2, currentFolder.getFlags()); statement.setInt(3, currentFolder.getOwnerId()); statement.setInt(4, currentFolder.getGroupId()); statement.setInt(5, onlineFolder.getProjectId()); statement.setInt(6, currentFolder.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFolder.isLockedBy()); statement.setInt(9, currentFolder.getLauncherType()); statement.setString(10, currentFolder.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFolder.getResourceLastModifiedBy()); statement.setInt(13, 0); statement.setInt(14, currentFolder.getFileId()); statement.setInt(15, onlineFolder.getResourceId()); statement.executeUpdate(); } catch (SQLException e) { throw new CmsException("[" + this.getClass().getName() + "] " + e.getMessage(), CmsException.C_SQL_ERROR, e); } finally { // close all db-resources if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(onlineFolder.getResourceId())); // copy properties try { deleteAllProperties(onlineFolder.getResourceId()); Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, onlineFolder.getResourceId(), currentFolder.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + onlineFolder.toString() + " Message= " + exc.getMessage()); } } // C_STATE_UNCHANGED } else if (currentFolder.getState() == C_STATE_UNCHANGED) { CmsFolder onlineFolder = null; try { onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (CmsException exc) { if (exc.getType() == CmsException.C_NOT_FOUND) { // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder onlineFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); onlineFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, onlineFolder, false); // copy properties try { Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, onlineFolder.getResourceId(), onlineFolder.getType()); } catch (CmsException exc2) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + onlineFolder.toString() + " Message= " + exc.getMessage()); } } } else { throw exc; } } // end of catch folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(onlineFolder.getResourceId())); } // end of else if } // end of for(... // now read all FILES in offlineProject offlineFiles = readFiles(projectId); for (int i = 0; i < offlineFiles.size(); i++) { currentFile = ((CmsFile) offlineFiles.elementAt(i)); if (currentFile.getName().startsWith(C_TEMP_PREFIX)) { removeFile(projectId, currentFile.getAbsolutePath()); // C_STATE_DELETE } else if (currentFile.getState() == C_STATE_DELETED) { // delete in filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null) { try { discAccess.removeResource(currentFile.getAbsolutePath(), exportKey); } catch (Exception ex) { } } try { CmsFile currentOnlineFile = readFile(onlineProject.getId(), onlineProject.getId(), currentFile.getAbsolutePath()); try { deleteAllProperties(currentOnlineFile.getResourceId()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + currentOnlineFile.toString() + " Message= " + exc.getMessage()); } } try { deleteResource(currentOnlineFile.getResourceId()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting resource for " + currentOnlineFile.toString() + " Message= " + exc.getMessage()); } } } catch (Exception ex) { // this exception is thrown when the file does not exist in the // online project anymore. This is OK, so do nothing. } // C_STATE_CHANGED } else if (currentFile.getState() == C_STATE_CHANGED) { // export to filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null) { discAccess.writeFile(currentFile.getAbsolutePath(), exportKey, readFileContent(currentFile.getFileId())); } CmsFile onlineFile = null; try { onlineFile = readFileHeader(onlineProject.getId(), currentFile.getAbsolutePath()); } catch (CmsException exc) { if (exc.getType() == CmsException.C_NOT_FOUND) { // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFile.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFile.getParentId()), parentId); } // create a new File currentFile.setState(C_STATE_UNCHANGED); onlineFile = createFile(onlineProject, onlineProject, currentFile, user.getId(), parentId.intValue(), currentFile.getAbsolutePath(), false); } } // end of catch PreparedStatement statement = null; Connection con = null; try { con = DriverManager.getConnection(m_poolName); // update the onlineFile with data from offlineFile statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE_FILE); statement.setInt(1, currentFile.getType()); statement.setInt(2, currentFile.getFlags()); statement.setInt(3, currentFile.getOwnerId()); statement.setInt(4, currentFile.getGroupId()); statement.setInt(5, onlineFile.getProjectId()); statement.setInt(6, currentFile.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFile.isLockedBy()); statement.setInt(9, currentFile.getLauncherType()); statement.setString(10, currentFile.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFile.getResourceLastModifiedBy()); statement.setInt(13, currentFile.getLength()); statement.setInt(14, currentFile.getFileId()); statement.setInt(15, onlineFile.getResourceId()); statement.executeUpdate(); } catch (SQLException e) { throw new CmsException("[" + this.getClass().getName() + "] " + e.getMessage(), CmsException.C_SQL_ERROR, e); } finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } // copy properties try { deleteAllProperties(onlineFile.getResourceId()); Hashtable props = readAllProperties(currentFile.getResourceId(), currentFile.getType()); writeProperties(props, onlineFile.getResourceId(), currentFile.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + onlineFile.toString() + " Message= " + exc.getMessage()); } } // C_STATE_NEW } else if (currentFile.getState() == C_STATE_NEW) { // export to filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null) { discAccess.writeFile(currentFile.getAbsolutePath(), exportKey, readFileContent(currentFile.getFileId())); } // get parentId for onlineFile either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFile.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFile.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFile.getParentId()), parentId); } // create the new file removeFile(onlineProject.getId(), currentFile.getAbsolutePath()); CmsFile newFile = createFile(onlineProject, onlineProject, currentFile, user.getId(), parentId.intValue(), currentFile.getAbsolutePath(), false); newFile.setState(C_STATE_UNCHANGED); writeFile(onlineProject, onlineProject, newFile, false); // copy properties try { Hashtable props = readAllProperties(currentFile.getResourceId(), currentFile.getType()); writeProperties(props, newFile.getResourceId(), newFile.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + newFile.toString() + " Message= " + exc.getMessage()); } } } } // end of for(... // now delete the "deleted" folders for (int i = deletedFolders.size() - 1; i > -1; i--) { currentFolder = ((CmsFolder) deletedFolders.elementAt(i)); String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null) { discAccess.removeResource(currentFolder.getAbsolutePath(), exportKey); } try { deleteAllProperties(currentFolder.getResourceId()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + currentFolder.toString() + " Message= " + exc.getMessage()); } } removeFolderForPublish(onlineProject, currentFolder.getAbsolutePath()); } // end of for //clearFilesTable();}
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/1c4f51af8cccb2147e196bff34d85fbc8178f8b3/CmsDbAccess.java/buggy/src/com/opencms/file/mySql/CmsDbAccess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
3808,
4109,
12,
4747,
1299,
729,
16,
509,
9882,
16,
2149,
4109,
12365,
4109,
13,
1216,
11228,
95,
202,
4747,
1862,
12861,
19169,
1862,
273,
394,
2149,
1862,
12861,
12,
81,
67,
6530,
1153,
3245,
1769,
202,
4747,
3899,
783,
3899,
273,
446,
31,
202,
4747,
812,
22650,
273,
446,
31,
202,
4747,
3899,
394,
3899,
273,
446,
31,
202,
5018,
13493,
14885,
31,
202,
5018,
13493,
2697,
31,
202,
5018,
4282,
14885,
273,
394,
5589,
5621,
202,
759,
31996,
1016,
30,
565,
13493,
5609,
548,
282,
571,
282,
12365,
5609,
548,
282,
202,
5582,
14544,
31996,
1016,
273,
394,
18559,
5621,
202,
759,
855,
777,
9907,
316,
13493,
4109,
202,
23787,
14885,
273,
855,
14885,
12,
4406,
548,
1769,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
13493,
14885,
18,
1467,
5621,
277,
27245,
202,
95,
202,
202,
2972,
3899,
273,
14015,
4747,
3899,
13,
13493,
14885,
18,
2956,
861,
12,
77,
10019,
202,
202,
759,
385,
67,
7998,
67,
6460,
202,
202,
430,
261,
2972,
3899,
18,
588,
1119,
1435,
422,
385,
67,
7998,
67,
27392,
13,
202,
202,
95,
1082,
202,
8600,
14885,
18,
1289,
1046,
12,
2972,
3899,
1769,
1082,
202,
759,
385,
67,
7998,
67,
12917,
1082,
202,
97,
202,
202,
12107,
1082,
202,
430,
261,
2972,
3899,
18,
588,
1119,
1435,
422,
385,
67,
7998,
67,
12917,
13,
1082,
202,
95,
9506,
202,
759,
3359,
358,
6496,
309,
4573,
9506,
202,
780,
3359,
653,
273,
866,
6144,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
3808,
4109,
12,
4747,
1299,
729,
16,
509,
9882,
16,
2149,
4109,
12365,
4109,
13,
1216,
11228,
95,
202,
4747,
1862,
12861,
19169,
1862,
273,
394,
2149,
1862,
12861,
12,
81,
67,
6530,
1153,
3245,
1769,
202,
4747,
3899,
783,
3899,
273,
446,
31,
202,
4747,
812,
22650,
273,
446,
31,
202,
4747,
3899,
394,
3899,
273,
446,
31,
202,
5018,
13493,
14885,
31,
202,
5018,
13493,
2697,
31,
202,
5018,
4282,
14885,
273,
394,
5589,
5621,
202,
759,
31996,
1016,
30,
565,
13493,
5609,
548,
282,
571,
282,
12365,
5609,
548,
282,
202,
5582,
14544,
31996,
1016,
273,
394,
18559,
5621,
202,
759,
855,
777,
9907,
316,
13493,
4109,
202,
23787,
14885,
273,
855,
14885,
12,
2
] |
if(log.isDebugEnabled()) {
|
if(log.isInfoEnabled()) {
|
public void processResults() { boolean modified = false; int n = ULThreads.length; for (int i = 0; i < n; i++) { JCheckBox cb = (JCheckBox)ULThreadCheckBoxes.get(i); Boolean b = (Boolean)originalThreadSelected.get(i); if (b.booleanValue() == cb.isSelected()) continue; if (!modified) { if (!cloneExperiment()) return; // user cancelled modifications modified = true; } ExperimentDB.setULThreadSelected(trialId, ULDBThreads[i], cb.isSelected()); } n = groupCheckBoxes.size(); for (int i = 0; i < n; i++) { String groupName = groupNames[i]; JCheckBox cb = (JCheckBox)groupCheckBoxes.get(i); Boolean b = (Boolean)originalGroupSelected.get(i); if (b.booleanValue() != cb.isSelected()) { if (!modified) { if (!cloneExperiment()) return; // user cancelled modifications modified = true; } ExperimentDB.setGroupSelected(trialId, groupName, cb.isSelected()); } JTextField multiplierField = (JTextField)multiplierFields.get(i); int multiplier = ((Integer)originalGroupMultiplier.get(i)).intValue(); try { int newMultiplier = Integer.parseInt(multiplierField.getText()); if (multiplier == newMultiplier) continue; if (!modified) { if (!cloneExperiment()) return; // user cancelled modifications modified = true; } ExperimentDB.setMultiplier(trialId, groupName, newMultiplier); } catch (NumberFormatException e) { } } if(forceRecomputeBox.isSelected()) { if(log.isDebugEnabled()) { log.info("Force Recompute Checked"); } ExperimentDB.deleteCMTAssembly(experimentId); modified = true; } if (modified) { String newCMTasb = ExperimentDB.updateCMTAssembly(experimentId); if (forceRecomputeBox.isSelected()) { if(log.isDebugEnabled()) { log.info("new CMTasb is: "+newCMTasb); } ExperimentDB.deleteCMTAssembly(experimentId); newCMTasb = ExperimentDB.updateCMTAssembly(experimentId); if(log.isDebugEnabled()) { log.info("new CMTasb is: "+newCMTasb); } } trialId = ExperimentDB.getTrialId(experimentId); } }
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/b834738cf32732ed97f2111671ffca9d14e901da/CMTDialog.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/CMTDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
3447,
1435,
288,
565,
1250,
4358,
273,
629,
31,
565,
509,
290,
273,
587,
48,
13233,
18,
2469,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
277,
27245,
288,
1377,
804,
19174,
2875,
273,
261,
46,
19174,
13,
1506,
3830,
19174,
281,
18,
588,
12,
77,
1769,
1377,
3411,
324,
273,
261,
5507,
13,
8830,
3830,
7416,
18,
588,
12,
77,
1769,
1377,
309,
261,
70,
18,
6494,
620,
1435,
422,
2875,
18,
291,
7416,
10756,
3639,
1324,
31,
1377,
309,
16051,
7342,
13,
288,
3639,
309,
16051,
14056,
22338,
10756,
1850,
327,
31,
368,
729,
13927,
17953,
3639,
4358,
273,
638,
31,
1377,
289,
1377,
22844,
2290,
18,
542,
1506,
3830,
7416,
12,
17493,
548,
16,
587,
48,
2290,
13233,
63,
77,
6487,
4766,
3639,
2875,
18,
291,
7416,
10663,
565,
289,
565,
290,
273,
1041,
19174,
281,
18,
1467,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
277,
27245,
288,
1377,
514,
11619,
273,
1041,
1557,
63,
77,
15533,
1377,
804,
19174,
2875,
273,
261,
46,
19174,
13,
1655,
19174,
281,
18,
588,
12,
77,
1769,
1377,
3411,
324,
273,
261,
5507,
13,
8830,
1114,
7416,
18,
588,
12,
77,
1769,
1377,
309,
261,
70,
18,
6494,
620,
1435,
480,
2875,
18,
291,
7416,
10756,
288,
3639,
309,
16051,
7342,
13,
288,
1850,
309,
16051,
14056,
22338,
10756,
5411,
327,
31,
368,
729,
13927,
17953,
1850,
4358,
273,
638,
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,
282,
1071,
918,
1207,
3447,
1435,
288,
565,
1250,
4358,
273,
629,
31,
565,
509,
290,
273,
587,
48,
13233,
18,
2469,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
277,
27245,
288,
1377,
804,
19174,
2875,
273,
261,
46,
19174,
13,
1506,
3830,
19174,
281,
18,
588,
12,
77,
1769,
1377,
3411,
324,
273,
261,
5507,
13,
8830,
3830,
7416,
18,
588,
12,
77,
1769,
1377,
309,
261,
70,
18,
6494,
620,
1435,
422,
2875,
18,
291,
7416,
10756,
3639,
1324,
31,
1377,
309,
16051,
7342,
13,
288,
3639,
309,
16051,
14056,
22338,
10756,
1850,
327,
31,
368,
729,
13927,
17953,
3639,
4358,
273,
638,
31,
1377,
289,
1377,
22844,
2290,
18,
542,
2
] |
following.push(FOLLOW_salience_in_rule_attribute753);
|
following.push(FOLLOW_salience_in_rule_attribute799);
|
public AttributeDescr rule_attribute() throws RecognitionException { AttributeDescr d; AttributeDescr a = null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:270:25: (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group | a= auto_focus ) int alt29=6; switch ( input.LA(1) ) { case 33: alt29=1; break; case 34: alt29=2; break; case 37: alt29=3; break; case 38: alt29=4; break; case 36: alt29=5; break; case 35: alt29=6; break; default: NoViableAltException nvae = new NoViableAltException("265:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group | a= auto_focus );", 29, 0, input); throw nvae; } switch (alt29) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:270:25: a= salience { following.push(FOLLOW_salience_in_rule_attribute753); a=salience(); following.pop(); d = a; } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:271:25: a= no_loop { following.push(FOLLOW_no_loop_in_rule_attribute763); a=no_loop(); following.pop(); d = a; } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:272:25: a= agenda_group { following.push(FOLLOW_agenda_group_in_rule_attribute774); a=agenda_group(); following.pop(); d = a; } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:273:25: a= duration { following.push(FOLLOW_duration_in_rule_attribute787); a=duration(); following.pop(); d = a; } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:274:25: a= xor_group { following.push(FOLLOW_xor_group_in_rule_attribute801); a=xor_group(); following.pop(); d = a; } break; case 6 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:275:25: a= auto_focus { following.push(FOLLOW_auto_focus_in_rule_attribute812); a=auto_focus(); following.pop(); d = a; } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1720,
67,
4589,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3601,
16198,
279,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5324,
20,
30,
2947,
30,
261,
69,
33,
12814,
6254,
571,
279,
33,
1158,
67,
6498,
571,
279,
33,
28809,
67,
1655,
571,
279,
33,
3734,
571,
279,
33,
17586,
67,
1655,
571,
279,
33,
3656,
67,
13923,
262,
5411,
509,
3770,
5540,
33,
26,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
13159,
30,
7734,
3770,
5540,
33,
21,
31,
7734,
898,
31,
5411,
648,
13438,
30,
7734,
3770,
5540,
33,
22,
31,
7734,
898,
31,
5411,
648,
18091,
30,
7734,
3770,
5540,
33,
23,
31,
7734,
898,
31,
5411,
648,
18012,
30,
7734,
3770,
5540,
33,
24,
31,
7734,
898,
31,
5411,
648,
6580,
30,
7734,
3770,
5540,
33,
25,
31,
7734,
898,
31,
5411,
648,
13191,
30,
7734,
3770,
5540,
33,
26,
31,
7734,
898,
31,
5411,
805,
30,
7734,
17114,
15077,
273,
10792,
394,
17114,
2932,
30281,
30,
21,
30,
1720,
67,
4589,
1135,
306,
1499,
16198,
302,
65,
294,
261,
69,
33,
12814,
6254,
571,
279,
33,
1158,
67,
6498,
571,
279,
33,
28809,
67,
1655,
571,
279,
33,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1720,
67,
4589,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3601,
16198,
279,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5324,
20,
30,
2947,
30,
261,
69,
33,
12814,
6254,
571,
279,
33,
1158,
67,
6498,
571,
279,
33,
28809,
67,
1655,
571,
279,
33,
3734,
571,
279,
33,
17586,
67,
1655,
571,
279,
33,
3656,
67,
13923,
262,
5411,
509,
3770,
5540,
33,
26,
31,
5411,
1620,
261,
810,
18,
2534,
2
] |
stringBuffer.append(TEXT_290); stringBuffer.append(TEXT_291);
|
stringBuffer.append(TEXT_292); stringBuffer.append(TEXT_293);
|
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenDiagram genDiagram = (GenDiagram) ((Object[]) argument)[0];final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];final GenEditorGenerator editorGen = genDiagram.getEditorGen();final GenModel genModel = editorGen.getDomainGenModel();final String pluginActivatorClass = importManager.getImportedName(editorGen.getPlugin().getActivatorQualifiedClassName());final boolean isRichClientPlatform = genDiagram.getEditorGen().getDomainGenModel().isRichClientPlatform(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } importManager.emitPackageStatement(stringBuffer);importManager.markImportLocation(stringBuffer);importManager.registerInnerClass("RootElementSelectorPage");if (isRichClientPlatform) { importManager.registerInnerClass("URISelectorPage"); importManager.registerInnerClass("SourceURISelectorPage"); importManager.registerInnerClass("DiagramURISelectorPage");} stringBuffer.append(TEXT_4); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_5); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_6); } if (needsCastToEObject) { stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_8); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_9); } stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_11); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_12); if (needsCastToResultType) { stringBuffer.append(TEXT_13); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_14); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_15); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_16); } stringBuffer.append(TEXT_17); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_18); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_19); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.Wizard")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_22); if (isRichClientPlatform) { stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_24); } else { stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_29); } stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_31); if (isRichClientPlatform) { stringBuffer.append(TEXT_32); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_43); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_44); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_45); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_46); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_47); } stringBuffer.append(TEXT_48); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_49); if (isRichClientPlatform) { stringBuffer.append(TEXT_50); } else { stringBuffer.append(TEXT_51); } stringBuffer.append(TEXT_52); if (isRichClientPlatform) { stringBuffer.append(TEXT_53); } else { stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_55); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IContainer")); stringBuffer.append(TEXT_58); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_61); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_62); } stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet")); stringBuffer.append(TEXT_64); if (isRichClientPlatform) { stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_67); } else { stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_71); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_74); } stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_78); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_82); if (editorGen.isSameFileForDiagramAndModel()) { stringBuffer.append(TEXT_83); } stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_86); if (isRichClientPlatform) { stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_89); } else { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.ide.IDE")); stringBuffer.append(TEXT_92); } stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_95); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_97); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_103); if (isRichClientPlatform) { stringBuffer.append(TEXT_104); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_105); } else { stringBuffer.append(TEXT_106); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_108); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_109); } stringBuffer.append(TEXT_110); stringBuffer.append(TEXT_111); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_113); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_114); if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.NaiveViewService")); stringBuffer.append(TEXT_116); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); final Comparator<GenContainerBase> comparator = new Comparator<GenContainerBase>() { public int compare(GenContainerBase o1, GenContainerBase o2) { return o1.getVisualID() - o2.getVisualID(); }};TreeSet<GenContainerBase> containers2Generate = new TreeSet<GenContainerBase>(comparator);for (Iterator containers = genDiagram.getAllContainers().iterator(); containers.hasNext();) { GenContainerBase nextContainer = (GenContainerBase) containers.next(); if (!nextContainer.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenDiagram) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenNode) { //May need to generate if contains compartments with children for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); break; } } }}for (Iterator<GenContainerBase> containers = containers2Generate.iterator(); containers.hasNext();) { GenContainerBase nextContainer = containers.next(); stringBuffer.append(TEXT_119); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_121); if (nextContainer instanceof GenNode) { boolean shouldIterateOverCompartments = false; for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { shouldIterateOverCompartments = true; break; } } if (shouldIterateOverCompartments) { stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_126); for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (nextCompartment.getContainedNodes().isEmpty()) { continue; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(nextCompartment.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_128); stringBuffer.append(nextCompartment.getUniqueIdentifier()); stringBuffer.append(TEXT_129); } stringBuffer.append(TEXT_130); } } stringBuffer.append(TEXT_131); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_132); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_134); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_137); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_138); boolean shouldIterateToGenerate = false; for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_140); for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_142); stringBuffer.append(nextNode.getUniqueIdentifier()); stringBuffer.append(TEXT_143); } } stringBuffer.append(TEXT_144); } stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_146); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_148); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); stringBuffer.append(TEXT_149); if (childNodes.size() == 0) { stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_151); } else { stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_154); Map genFeature2genNodeMap = new LinkedHashMap(); for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) { GenNode nextNode = (GenNode) childNodes.get(nodeIndex); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } GenFeature childMetaFeature = typeModelFacet.getChildMetaFeature(); if (!genFeature2genNodeMap.containsKey(childMetaFeature)) { genFeature2genNodeMap.put(childMetaFeature, new ArrayList()); } ((Collection) genFeature2genNodeMap.get(childMetaFeature)).add(nextNode); } Set entrySet = genFeature2genNodeMap.entrySet(); if (entrySet.size() > 0) { stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_156); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_159); } for (Iterator entries = entrySet.iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature childMetaFeature = (GenFeature) nextEntry.getKey(); Collection genNodesCollection = (Collection) nextEntry.getValue(); if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_161); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_163); } else { stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_165); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false); stringBuffer.append(TEXT_166); } stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_168); boolean generateSwitch = genNodesCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_169); } for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) { GenNode nextNode = (GenNode) genNodesIterator.next(); if (generateSwitch) { stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_171); } else { stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_173); } stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_175); if (generateSwitch) { stringBuffer.append(TEXT_176); } else { stringBuffer.append(TEXT_177); } } if (generateSwitch) { stringBuffer.append(TEXT_178); } if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_179); }} stringBuffer.append(TEXT_180); } } stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_182); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_184); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_185); { String _parentNode = "parentView"; List childNodes = nextContainer.getContainedNodes(); boolean isListLayout; if (nextContainer instanceof GenNode) { isListLayout = !org.eclipse.gmf.codegen.gmfgen.util.ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions((GenNode) nextContainer); } else if (nextContainer instanceof GenCompartment) { isListLayout = ((GenCompartment) nextContainer).isListLayout(); } else if (nextContainer instanceof GenDiagram) { isListLayout = false; } else { throw new RuntimeException("Unexpected container"); } stringBuffer.append(TEXT_186); stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_188); for (Iterator it = childNodes.iterator(); it.hasNext(); ) { GenNode nextNode = (GenNode) it.next(); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName()); stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_190); stringBuffer.append(childNodeInterfaceName); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); stringBuffer.append(TEXT_192); stringBuffer.append(_parentNode); stringBuffer.append(TEXT_193); if (!isListLayout) { int defaultWidth = 40; int defaultHeight = 40; DefaultSizeAttributes defSizeAttrs = (DefaultSizeAttributes) nextNode.getViewmap().find(DefaultSizeAttributes.class); if (defSizeAttrs != null) { defaultWidth = defSizeAttrs.getWidth(); defaultHeight = defSizeAttrs.getHeight(); } stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_195); stringBuffer.append(defaultWidth); stringBuffer.append(TEXT_196); stringBuffer.append(defaultHeight); stringBuffer.append(TEXT_197); } else { stringBuffer.append(TEXT_198); } stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_200); } stringBuffer.append(TEXT_201); } stringBuffer.append(TEXT_202); }class LinksCollection { private Collection<GenLink> myTypeModelFacetLinks = new LinkedList<GenLink>(); private Collection<GenLink> myFeatureModelFacetLinks = new LinkedList<GenLink>(); public void add(GenLink link) { if (link.getModelFacet() instanceof TypeLinkModelFacet) { myTypeModelFacetLinks.add(link); } else if (link.getModelFacet() instanceof FeatureLinkModelFacet) { myFeatureModelFacetLinks.add(link); } } public Iterator<GenLink> getContainedTypeModelFacetLinks() { return myTypeModelFacetLinks.iterator(); } public Iterator<GenLink> getContainedFeatureModelFacetLinks() { return myFeatureModelFacetLinks.iterator(); }}class CreateChildLinkElements { private TreeMap<GenContainerBase, LinksCollection> myElements; public CreateChildLinkElements() { myElements = new TreeMap<GenContainerBase, LinksCollection>(comparator); } public void add(GenContainerBase o, GenLink link) { buildAncestors(o); myElements.get(o).add(link); } private void buildAncestors(GenContainerBase o) { if (!myElements.containsKey(o)) { LinksCollection elements = new LinksCollection(); myElements.put(o, elements); addAncestors(o); } } private void addAncestors(GenContainerBase o) { if (o instanceof GenCompartment) { GenCompartment compartment = (GenCompartment) o; buildAncestors(compartment.getNode()); } else if (o instanceof GenTopLevelNode) { GenTopLevelNode node = (GenTopLevelNode) o; buildAncestors(node.getDiagram()); } else if (o instanceof GenChildNode) { GenChildNode node = (GenChildNode) o; for(Iterator it = node.getContainers().iterator(); it.hasNext(); ) { GenContainerBase next = (GenContainerBase) it.next(); buildAncestors(next); } } } public boolean contains(GenContainerBase o) { return myElements.containsKey(o); } public Iterator<Map.Entry<GenContainerBase, LinksCollection>> iterator() { return myElements.entrySet().iterator(); }}if (!genDiagram.getLinks().isEmpty()) { CreateChildLinkElements linkContainers2Generate = new CreateChildLinkElements(); //No need to explicitly add diagram, since we build the whole hierarchy up. for(Iterator links = genDiagram.getLinks().iterator(); links.hasNext(); ) { GenLink next = (GenLink) links.next(); GenClass containerClass; LinkModelFacet nextModelFacet = next.getModelFacet(); if (nextModelFacet instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) next.getModelFacet(); if (modelFacet.getSourceMetaFeature() == null && modelFacet.getTargetMetaFeature() == null) { //if one link feature is null, the element is treated as this end of the link. If both are null, we cannot do anything about such a link. containerClass = null; } else { containerClass = modelFacet.getContainmentMetaFeature().getGenClass(); } } else if (nextModelFacet instanceof FeatureLinkModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) next.getModelFacet()).getMetaFeature(); containerClass = metaFeature.getGenClass(); } else { continue; } for (Iterator nodes = genDiagram.getAllNodes().iterator(); nodes.hasNext(); ) { GenNode nextNode = (GenNode) nodes.next(); if (containerClass.getEcoreClass().isSuperTypeOf(nextNode.getDomainMetaClass().getEcoreClass())) { linkContainers2Generate.add(nextNode, next); } } } for(Iterator<Map.Entry<GenContainerBase, LinksCollection>> entryIt = linkContainers2Generate.iterator(); entryIt.hasNext(); ) { Map.Entry<GenContainerBase, LinksCollection> next = entryIt.next(); GenContainerBase nextContainer = next.getKey(); LinksCollection linksCollection = next.getValue(); Iterator<GenLink> typeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks(); Iterator<GenLink> featureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks(); stringBuffer.append(TEXT_203); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_207); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_212); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_213); } boolean shouldIterateToGenerate = false; Collection childElements = new ArrayList(nextContainer.getContainedNodes()); if (nextContainer instanceof GenNode) { childElements.addAll(((GenNode) nextContainer).getCompartments()); } for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (linkContainers2Generate.contains(nextChild)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_218); for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (!linkContainers2Generate.contains(nextChild)) { continue; } stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName(nextChild.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_220); stringBuffer.append(nextChild.getUniqueIdentifier()); stringBuffer.append(TEXT_221); } stringBuffer.append(TEXT_222); } stringBuffer.append(TEXT_223); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_225); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_227); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_228); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_230); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_231); Map genFeature2genLinkMap = new LinkedHashMap();for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature metaFeature = modelFacet.getChildMetaFeature(); if (!genFeature2genLinkMap.containsKey(metaFeature)) { genFeature2genLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2genLinkMap.get(metaFeature)).add(genLink);}Map genFeature2featureGenLinkMap = new LinkedHashMap();for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); if (!genFeature2featureGenLinkMap.containsKey(metaFeature)) { genFeature2featureGenLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2featureGenLinkMap.get(metaFeature)).add(genLink);}if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) { stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_233); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_235); }if (!genFeature2genLinkMap.isEmpty()) { stringBuffer.append(TEXT_236); }for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_238); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_240); } else { stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_242); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_243); } stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_245); boolean generateSwitch = genLinksCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_246); } for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (generateSwitch) { stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_248); } else { stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_250); } if (modelFacet.getSourceMetaFeature() != null) { stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_253); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false); stringBuffer.append(TEXT_254); } else { stringBuffer.append(TEXT_255); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_256); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_257); } if (modelFacet.getTargetMetaFeature() != null) { stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_260); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false); stringBuffer.append(TEXT_261); } else { stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_263); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_264); } stringBuffer.append(TEXT_265); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_266); if (generateSwitch) { stringBuffer.append(TEXT_267); } else { stringBuffer.append(TEXT_268); } } //iterate over genLinksCollection if (generateSwitch) { stringBuffer.append(TEXT_269); } if (metaFeature.isListType()) { stringBuffer.append(TEXT_270); }}for (Iterator entries = genFeature2featureGenLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_272); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_274); } else { stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_276); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_277); } stringBuffer.append(TEXT_278); for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); stringBuffer.append(TEXT_279); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_280); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_281); } stringBuffer.append(TEXT_282); if (metaFeature.isListType()) { stringBuffer.append(TEXT_283); }} stringBuffer.append(TEXT_284); } stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_286); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_287); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_289); { String _diagramCode = "parentView.getDiagram()"; Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_290); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator")); stringBuffer.append(TEXT_294); for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (modelFacet == null) { continue; } stringBuffer.append(TEXT_295); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_298); } for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_301); } stringBuffer.append(TEXT_302); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand")); stringBuffer.append(TEXT_303); stringBuffer.append(_diagramCode); stringBuffer.append(TEXT_304); } stringBuffer.append(TEXT_305); } }}if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_307); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_308); } stringBuffer.append(TEXT_309); if (isRichClientPlatform) { stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_311); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_312); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_318); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_319); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_321); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_322); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_324); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_325); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_327); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_328); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_333); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_334); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_337); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_338); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_341); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_344); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionAdapter")); stringBuffer.append(TEXT_345); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionEvent")); stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_349); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_350); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyEvent")); stringBuffer.append(TEXT_351); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_352); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_353); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_354); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_355); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_356); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_357); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_358); stringBuffer.append(editorGen.getDomainFileExtension()); stringBuffer.append(TEXT_359); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_360); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_361); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_362); stringBuffer.append(editorGen.getDomainGenModel().getModelName()); stringBuffer.append(TEXT_363); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_364); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_365); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_366); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_367); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_368); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_370); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_371); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_372); } stringBuffer.append(TEXT_373); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.ISelectionChangedListener")); stringBuffer.append(TEXT_375); if (isRichClientPlatform) { stringBuffer.append(TEXT_376); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_377); } stringBuffer.append(TEXT_378); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_381); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_382); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_383); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_384); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_385); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_386); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_387); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_388); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_390); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_391); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_392); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_393); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_395); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_396); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_397); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_398); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_399); final String treeViewer = isRichClientPlatform ? "myTreeViewer" : "treeViewer"; stringBuffer.append(TEXT_400); if (!isRichClientPlatform){ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_401); } stringBuffer.append(treeViewer); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_404); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_405); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_406); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_410); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_411); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider")); stringBuffer.append(TEXT_413); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_414); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider")); stringBuffer.append(TEXT_416); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_417); if (!isRichClientPlatform) { stringBuffer.append(TEXT_418); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_419); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_421); } stringBuffer.append(TEXT_422); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_423); if (isRichClientPlatform) { stringBuffer.append(TEXT_424); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_425); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_426); } stringBuffer.append(TEXT_427); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.SelectionChangedEvent")); stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_431); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_432); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_435); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_438); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_439); importManager.emitSortedImports(); stringBuffer.append(TEXT_440); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/88670058e3792eb12387f6a2bac58d878ca8f3f6/NewDiagramFileWizardGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/NewDiagramFileWizardGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
14058,
1940,
3157,
14058,
1940,
273,
261,
7642,
14058,
1940,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
6385,
10938,
6946,
3908,
4858,
7642,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
5621,
6385,
10938,
1488,
3157,
1488,
273,
4858,
7642,
18,
588,
3748,
7642,
1488,
5621,
6385,
514,
1909,
12241,
639,
797,
273,
1930,
1318,
18,
588,
24934,
461,
12,
9177,
7642,
18,
588,
3773,
7675,
588,
12241,
639,
8708,
3834,
10663,
6385,
1250,
353,
22591,
1227,
8201,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
3748,
7642,
1488,
7675,
291,
22591,
1227,
8201,
5621,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
514,
22245,
1528,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
2951,
4083,
1528,
5621,
430,
261,
29187,
1528,
480,
446,
597,
22245,
1528,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
288,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
1769,
565,
533,
1892,
18,
6923,
12,
29187,
1528,
18,
2079,
1595,
31458,
82,
3113,
1548,
82,
380,
9369,
1769,
565,
533,
1892,
18,
6923,
12,
5151,
67,
23,
1769,
565,
289,
565,
1930,
1318,
18,
18356,
2261,
3406,
12,
1080,
1892,
1769,
5666,
1318,
18,
3355,
5010,
2735,
12,
1080,
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,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
14058,
1940,
3157,
14058,
1940,
273,
261,
7642,
14058,
1940,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
6385,
10938,
6946,
3908,
4858,
7642,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
5621,
6385,
10938,
1488,
3157,
1488,
273,
4858,
7642,
18,
588,
3748,
7642,
1488,
5621,
6385,
514,
1909,
12241,
639,
797,
273,
1930,
1318,
18,
588,
24934,
461,
12,
9177,
7642,
18,
588,
3773,
7675,
588,
12241,
639,
8708,
3834,
10663,
6385,
1250,
353,
2
] |
else childItems[0].dispose();
|
childItems[0].dispose();
|
private void createChildren(Widget widget) { // get the current child items TableTreeItem[] childItems; if (widget == tableTree) childItems = tableTree.getItems(); else { childItems = ((TableTreeItem) widget).getItems(); } if (childItems.length > 0) { Object data = childItems[0].getData(); if (data != null) // children already there! return; else // remove the dummy childItems[0].dispose(); } // get the children and create their table tree items Object node = widget.getData(); List children = getChildren(node); if (children.isEmpty()) // this item does't actually have any children return; for (int i = 0; i < children.size(); i++) { // create a new table tree item createItem(children.get(i), widget, i); } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3fe46568fedba60643e0be03da922f6da9a1bdb3/PropertySheetViewer.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
4212,
12,
4609,
3604,
13,
288,
202,
202,
759,
336,
326,
783,
1151,
1516,
202,
202,
1388,
2471,
1180,
8526,
1151,
3126,
31,
202,
202,
430,
261,
6587,
422,
1014,
2471,
13,
1082,
202,
3624,
3126,
273,
1014,
2471,
18,
588,
3126,
5621,
202,
202,
12107,
288,
1082,
202,
3624,
3126,
273,
14015,
1388,
2471,
1180,
13,
3604,
2934,
588,
3126,
5621,
202,
202,
97,
202,
202,
430,
261,
3624,
3126,
18,
2469,
405,
374,
13,
288,
1082,
202,
921,
501,
273,
1151,
3126,
63,
20,
8009,
588,
751,
5621,
1082,
202,
430,
261,
892,
480,
446,
13,
9506,
202,
759,
2325,
1818,
1915,
5,
9506,
202,
2463,
31,
1082,
202,
12107,
9506,
202,
759,
1206,
326,
9609,
9506,
202,
3624,
3126,
63,
20,
8009,
2251,
4150,
5621,
202,
202,
97,
202,
202,
759,
336,
326,
2325,
471,
752,
3675,
1014,
2151,
1516,
202,
202,
921,
756,
273,
3604,
18,
588,
751,
5621,
202,
202,
682,
2325,
273,
10268,
12,
2159,
1769,
202,
202,
430,
261,
5906,
18,
291,
1921,
10756,
1082,
202,
759,
333,
761,
1552,
1404,
6013,
1240,
1281,
2325,
1082,
202,
2463,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
18,
1467,
5621,
277,
27245,
288,
1082,
202,
759,
752,
279,
394,
1014,
2151,
761,
1082,
202,
2640,
1180,
12,
5906,
18,
588,
12,
77,
3631,
3604,
16,
277,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
4212,
12,
4609,
3604,
13,
288,
202,
202,
759,
336,
326,
783,
1151,
1516,
202,
202,
1388,
2471,
1180,
8526,
1151,
3126,
31,
202,
202,
430,
261,
6587,
422,
1014,
2471,
13,
1082,
202,
3624,
3126,
273,
1014,
2471,
18,
588,
3126,
5621,
202,
202,
12107,
288,
1082,
202,
3624,
3126,
273,
14015,
1388,
2471,
1180,
13,
3604,
2934,
588,
3126,
5621,
202,
202,
97,
202,
202,
430,
261,
3624,
3126,
18,
2469,
405,
374,
13,
288,
1082,
202,
921,
501,
273,
1151,
3126,
63,
20,
8009,
588,
751,
5621,
1082,
202,
430,
261,
892,
480,
446,
13,
9506,
202,
759,
2325,
1818,
1915,
5,
9506,
202,
2463,
31,
1082,
202,
12107,
9506,
202,
2
] |
return quotient (x, y, TRUNCATE);
|
IntNum quotient = new IntNum (); divide (x, y, quotient, null, rounding_mode); return quotient.canonicalize ();
|
public static IntNum quotient (IntNum x, IntNum y) { return quotient (x, y, TRUNCATE); }
|
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/2f567fadceb74b9bb8c9ee224a088b49518f716b/IntNum.java/buggy/gnu/math/IntNum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3094,
2578,
26708,
261,
1702,
2578,
619,
16,
3094,
2578,
677,
13,
225,
288,
565,
3094,
2578,
26708,
273,
394,
3094,
2578,
261,
1769,
12326,
261,
92,
16,
677,
16,
26708,
16,
446,
16,
13885,
67,
3188,
1769,
327,
26708,
18,
18288,
554,
261,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3094,
2578,
26708,
261,
1702,
2578,
619,
16,
3094,
2578,
677,
13,
225,
288,
565,
3094,
2578,
26708,
273,
394,
3094,
2578,
261,
1769,
12326,
261,
92,
16,
677,
16,
26708,
16,
446,
16,
13885,
67,
3188,
1769,
327,
26708,
18,
18288,
554,
261,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (double) event.minSuccessfulBlocks;
|
return event.minSuccessfulBlocks;
|
public double getMinBlocks() { return (double) event.minSuccessfulBlocks; }
|
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SimpleProgressMessage.java/buggy/src/freenet/node/fcp/SimpleProgressMessage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1645,
9555,
6450,
1435,
288,
202,
202,
2463,
261,
9056,
13,
871,
18,
1154,
14277,
6450,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
1645,
9555,
6450,
1435,
288,
202,
202,
2463,
261,
9056,
13,
871,
18,
1154,
14277,
6450,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
alive_flag = true;
|
init ();
|
public NativeThread (ThreadGroup g, String name) { super (g, null, name); alive_flag = true; }
|
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/d11e7ddccca863b840db0bb43795c647f6f0dc8f/NativeThread.java/clean/libjava/gnu/gcj/jni/NativeThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16717,
3830,
261,
3830,
1114,
314,
16,
514,
508,
13,
225,
288,
565,
2240,
261,
75,
16,
446,
16,
508,
1769,
565,
1208,
261,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16717,
3830,
261,
3830,
1114,
314,
16,
514,
508,
13,
225,
288,
565,
2240,
261,
75,
16,
446,
16,
508,
1769,
565,
1208,
261,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (foundItem instanceof ToolBarContributionItem) {
|
if ((foundItem instanceof ToolBarContributionItem)) {
|
public IToolBarManager getToolBarManager() { // by pass the sub coolBar and use the real cool bar. ICoolBarManager coolBarManager = getCastedParent().getCoolBarManager(); if (coolBarManager == null) { return null; } if (toolBarContributionItem == null) { IContributionItem foundItem = coolBarManager.find(type); if (foundItem instanceof ToolBarContributionItem) { toolBarContributionItem = (ToolBarContributionItem) foundItem; coolItemToolBarMgr = toolBarContributionItem.getToolBarManager(); } else { coolItemToolBarMgr = new ToolBarManager(coolBarManager.getStyle()); toolBarContributionItem = new ToolBarContributionItem(coolItemToolBarMgr, type); // Add editor item to group coolBarManager.prependToGroup(IWorkbenchActionConstants.GROUP_EDITOR, toolBarContributionItem); } ((ToolBarManager) coolItemToolBarMgr).setOverrides(new Overrides()); toolBarContributionItem.setVisible(getActive()); coolItemToolBarMgr.markDirty(); } return coolItemToolBarMgr; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/60f093c30a903b0477168ff34eb420af6c20a4fc/EditorActionBars.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorActionBars.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
6364,
5190,
1318,
336,
6364,
5190,
1318,
1435,
288,
3639,
368,
635,
1342,
326,
720,
27367,
5190,
471,
999,
326,
2863,
27367,
4653,
18,
3639,
26899,
1371,
5190,
1318,
27367,
5190,
1318,
273,
1927,
689,
329,
3054,
7675,
588,
39,
1371,
5190,
1318,
5621,
3639,
309,
261,
71,
1371,
5190,
1318,
422,
446,
13,
288,
327,
446,
31,
289,
3639,
309,
261,
6738,
5190,
442,
4027,
1180,
422,
446,
13,
288,
5411,
467,
442,
4027,
1180,
1392,
1180,
273,
27367,
5190,
1318,
18,
4720,
12,
723,
1769,
5411,
309,
14015,
7015,
1180,
1276,
13288,
5190,
442,
4027,
1180,
3719,
288,
7734,
5226,
5190,
442,
4027,
1180,
273,
261,
6364,
5190,
442,
4027,
1180,
13,
1392,
1180,
31,
7734,
27367,
1180,
6364,
5190,
9455,
273,
5226,
5190,
442,
4027,
1180,
18,
588,
6364,
5190,
1318,
5621,
5411,
289,
469,
288,
7734,
27367,
1180,
6364,
5190,
9455,
273,
394,
13288,
5190,
1318,
12,
71,
1371,
5190,
1318,
18,
588,
2885,
10663,
7734,
5226,
5190,
442,
4027,
1180,
273,
394,
13288,
5190,
442,
4027,
1180,
12,
71,
1371,
1180,
6364,
5190,
9455,
16,
618,
1769,
7734,
368,
1436,
4858,
761,
358,
1041,
7734,
27367,
5190,
1318,
18,
23100,
774,
1114,
12,
45,
2421,
22144,
1803,
2918,
18,
8468,
67,
13208,
16,
13491,
5226,
5190,
442,
4027,
1180,
1769,
5411,
289,
5411,
14015,
6364,
5190,
1318,
13,
27367,
1180,
6364,
5190,
9455,
2934,
542,
13084,
12,
2704,
531,
9857,
10663,
5411,
5226,
5190,
442,
4027,
1180,
18,
542,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
6364,
5190,
1318,
336,
6364,
5190,
1318,
1435,
288,
3639,
368,
635,
1342,
326,
720,
27367,
5190,
471,
999,
326,
2863,
27367,
4653,
18,
3639,
26899,
1371,
5190,
1318,
27367,
5190,
1318,
273,
1927,
689,
329,
3054,
7675,
588,
39,
1371,
5190,
1318,
5621,
3639,
309,
261,
71,
1371,
5190,
1318,
422,
446,
13,
288,
327,
446,
31,
289,
3639,
309,
261,
6738,
5190,
442,
4027,
1180,
422,
446,
13,
288,
5411,
467,
442,
4027,
1180,
1392,
1180,
273,
27367,
5190,
1318,
18,
4720,
12,
723,
1769,
5411,
309,
14015,
7015,
1180,
1276,
13288,
5190,
442,
4027,
1180,
3719,
288,
7734,
5226,
5190,
442,
4027,
1180,
273,
261,
6364,
5190,
442,
4027,
1180,
13,
1392,
1180,
2
] |
m_destinationFilename = ((CSVResultListener)exp.getResultListener()).getOutputFile().toString();
|
m_destinationFilename = ((CSVResultListener)exp.getResultListener()).outputFileName();
|
public boolean setExperiment(Experiment exp) { m_userHasBeenAskedAboutConversion = false; m_Exp = null; // hold off until we are sure we want conversion m_SaveBut.setEnabled(true); if (exp.getResultListener() instanceof DatabaseResultListener) { m_ResultsDestinationCBox.setSelectedItem(DEST_DATABASE_TEXT); m_ResultsDestinationPathLabel.setText("URL:"); m_destinationDatabaseURL = ((DatabaseResultListener)exp.getResultListener()).getDatabaseURL(); m_ResultsDestinationPathTField.setText(m_destinationDatabaseURL); m_BrowseDestinationButton.setEnabled(true); } else if (exp.getResultListener() instanceof InstancesResultListener) { m_ResultsDestinationCBox.setSelectedItem(DEST_ARFF_TEXT); m_ResultsDestinationPathLabel.setText("Filename:"); m_destinationFilename = ((InstancesResultListener)exp.getResultListener()).getOutputFile().toString(); m_ResultsDestinationPathTField.setText(m_destinationFilename); m_BrowseDestinationButton.setEnabled(true); } else if (exp.getResultListener() instanceof CSVResultListener) { m_ResultsDestinationCBox.setSelectedItem(DEST_CSV_TEXT); m_ResultsDestinationPathLabel.setText("Filename:"); m_destinationFilename = ((CSVResultListener)exp.getResultListener()).getOutputFile().toString(); m_ResultsDestinationPathTField.setText(m_destinationFilename); m_BrowseDestinationButton.setEnabled(true); } else { // unrecognised result listener System.out.println("SimpleSetup incompatibility: unrecognised result destination"); if (userWantsToConvert()) { m_ResultsDestinationCBox.setSelectedItem(DEST_ARFF_TEXT); m_ResultsDestinationPathLabel.setText("Filename:"); m_destinationFilename = "-"; m_ResultsDestinationPathTField.setText(m_destinationFilename); m_BrowseDestinationButton.setEnabled(true); } else { return false; } } m_ResultsDestinationCBox.setEnabled(true); m_ResultsDestinationPathLabel.setEnabled(true); m_ResultsDestinationPathTField.setEnabled(true); if (exp.getResultProducer() instanceof CrossValidationResultProducer) { CrossValidationResultProducer cvrp = (CrossValidationResultProducer) exp.getResultProducer(); m_numFolds = cvrp.getNumFolds(); m_ExperimentParameterTField.setText("" + m_numFolds); if (cvrp.getSplitEvaluator() instanceof ClassifierSplitEvaluator) { m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else if (cvrp.getSplitEvaluator() instanceof RegressionSplitEvaluator) { m_ExpClassificationRBut.setSelected(false); m_ExpRegressionRBut.setSelected(true); } else { // unknown split evaluator System.out.println("SimpleSetup incompatibility: unrecognised split evaluator"); if (userWantsToConvert()) { m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else { return false; } } m_ExperimentTypeCBox.setSelectedItem(TYPE_CROSSVALIDATION_TEXT); } else if (exp.getResultProducer() instanceof RandomSplitResultProducer) { RandomSplitResultProducer rsrp = (RandomSplitResultProducer) exp.getResultProducer(); if (rsrp.getRandomizeData()) { m_ExperimentTypeCBox.setSelectedItem(TYPE_RANDOMSPLIT_TEXT); } else { m_ExperimentTypeCBox.setSelectedItem(TYPE_FIXEDSPLIT_TEXT); } if (rsrp.getSplitEvaluator() instanceof ClassifierSplitEvaluator) { m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else if (rsrp.getSplitEvaluator() instanceof RegressionSplitEvaluator) { m_ExpClassificationRBut.setSelected(false); m_ExpRegressionRBut.setSelected(true); } else { // unknown split evaluator System.out.println("SimpleSetup incompatibility: unrecognised split evaluator"); if (userWantsToConvert()) { m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else { return false; } } m_trainPercent = rsrp.getTrainPercent(); m_ExperimentParameterTField.setText("" + m_trainPercent); } else { // unknown experiment type System.out.println("SimpleSetup incompatibility: unrecognised resultProducer"); if (userWantsToConvert()) { m_ExperimentTypeCBox.setSelectedItem(TYPE_CROSSVALIDATION_TEXT); m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else { return false; } } m_ExperimentTypeCBox.setEnabled(true); m_ExperimentParameterLabel.setEnabled(true); m_ExperimentParameterTField.setEnabled(true); m_ExpClassificationRBut.setEnabled(true); m_ExpRegressionRBut.setEnabled(true); if (exp.getRunLower() == 1) { m_numRepetitions = exp.getRunUpper(); m_NumberOfRepetitionsTField.setText("" + m_numRepetitions); } else { // unsupported iterations System.out.println("SimpleSetup incompatibility: runLower is not 1"); if (userWantsToConvert()) { exp.setRunLower(1); if (m_ExperimentTypeCBox.getSelectedItem() == TYPE_FIXEDSPLIT_TEXT) { exp.setRunUpper(1); m_NumberOfRepetitionsTField.setEnabled(false); m_NumberOfRepetitionsTField.setText("1"); } else { exp.setRunUpper(10); m_numRepetitions = 10; m_NumberOfRepetitionsTField.setText("" + m_numRepetitions); } } else { return false; } } m_NumberOfRepetitionsTField.setEnabled(true); m_OrderDatasetsFirstRBut.setSelected(exp.getAdvanceDataSetFirst()); m_OrderAlgorithmsFirstRBut.setSelected(!exp.getAdvanceDataSetFirst()); m_OrderDatasetsFirstRBut.setEnabled(true); m_OrderAlgorithmsFirstRBut.setEnabled(true); m_NotesText.setText(exp.getNotes()); m_NotesText.setEnabled(true); if (!exp.getUsePropertyIterator() || !(exp.getPropertyArray() instanceof Classifier[])) { // unknown property iteration System.out.println("SimpleSetup incompatibility: unrecognised property iteration"); if (userWantsToConvert()) { exp.setPropertyArray(new Classifier[0]); exp.setUsePropertyIterator(true); } else { return false; } } m_DatasetListPanel.setExperiment(exp); m_AlgorithmListPanel.setExperiment(exp); m_Exp = exp; expTypeChanged(); // recreate experiment m_Support.firePropertyChange("", null, null); return true; }
|
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/9e9be5a3bb81a0b1c1c70f48f224f1da177da9c9/SimpleSetupPanel.java/buggy/gui/experiment/SimpleSetupPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
444,
22338,
12,
22338,
1329,
13,
288,
3639,
312,
67,
1355,
5582,
25931,
23663,
329,
24813,
6814,
273,
629,
31,
565,
312,
67,
2966,
273,
446,
31,
368,
6887,
3397,
3180,
732,
854,
3071,
732,
2545,
4105,
565,
312,
67,
4755,
31167,
18,
542,
1526,
12,
3767,
1769,
565,
309,
261,
2749,
18,
588,
1253,
2223,
1435,
1276,
5130,
1253,
2223,
13,
288,
1377,
312,
67,
3447,
5683,
39,
3514,
18,
542,
7416,
1180,
12,
1639,
882,
67,
22366,
67,
5151,
1769,
1377,
312,
67,
3447,
5683,
743,
2224,
18,
542,
1528,
2932,
1785,
2773,
1769,
1377,
312,
67,
10590,
4254,
1785,
273,
14015,
4254,
1253,
2223,
13,
2749,
18,
588,
1253,
2223,
1435,
2934,
588,
4254,
1785,
5621,
1377,
312,
67,
3447,
5683,
743,
56,
974,
18,
542,
1528,
12,
81,
67,
10590,
4254,
1785,
1769,
1377,
312,
67,
27304,
5683,
3616,
18,
542,
1526,
12,
3767,
1769,
565,
289,
469,
309,
261,
2749,
18,
588,
1253,
2223,
1435,
1276,
18357,
1253,
2223,
13,
288,
1377,
312,
67,
3447,
5683,
39,
3514,
18,
542,
7416,
1180,
12,
1639,
882,
67,
985,
2246,
67,
5151,
1769,
1377,
312,
67,
3447,
5683,
743,
2224,
18,
542,
1528,
2932,
5359,
2773,
1769,
1377,
312,
67,
10590,
5359,
273,
14015,
5361,
1253,
2223,
13,
2749,
18,
588,
1253,
2223,
1435,
2934,
588,
1447,
812,
7675,
10492,
5621,
1377,
312,
67,
3447,
5683,
743,
56,
974,
18,
542,
1528,
12,
81,
67,
10590,
5359,
1769,
1377,
312,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
444,
22338,
12,
22338,
1329,
13,
288,
3639,
312,
67,
1355,
5582,
25931,
23663,
329,
24813,
6814,
273,
629,
31,
565,
312,
67,
2966,
273,
446,
31,
368,
6887,
3397,
3180,
732,
854,
3071,
732,
2545,
4105,
565,
312,
67,
4755,
31167,
18,
542,
1526,
12,
3767,
1769,
565,
309,
261,
2749,
18,
588,
1253,
2223,
1435,
1276,
5130,
1253,
2223,
13,
288,
1377,
312,
67,
3447,
5683,
39,
3514,
18,
542,
7416,
1180,
12,
1639,
882,
67,
22366,
67,
5151,
1769,
1377,
312,
67,
3447,
5683,
743,
2224,
18,
542,
1528,
2932,
1785,
2773,
1769,
1377,
312,
67,
10590,
4254,
1785,
273,
14015,
4254,
1253,
2223,
13,
2749,
18,
588,
1253,
2223,
1435,
2934,
588,
2
] |
System.out.println(
|
System.out.println(System.currentTimeMillis() + ": " +
|
public static int staticGetStopBits( String port ) throws UnsupportedCommOperationException { if ( debug ) System.out.println( "RXTXPort:staticGetStopBits( " + port + " )"); return(nativeStaticGetStopBits( port ) ); }
|
5329 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5329/b0fcbe4f1133e8969e69a9ffc3d9994bcd41ed58/RXTXPort.java/clean/src/gnu/io/RXTXPort.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
760,
967,
4947,
6495,
12,
514,
1756,
262,
202,
202,
15069,
7221,
12136,
10602,
202,
95,
202,
202,
430,
261,
1198,
262,
1082,
202,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
54,
3983,
60,
2617,
30,
3845,
967,
4947,
6495,
12,
315,
397,
1756,
397,
315,
262,
8863,
1082,
202,
2463,
12,
13635,
5788,
967,
4947,
6495,
12,
1756,
262,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
760,
967,
4947,
6495,
12,
514,
1756,
262,
202,
202,
15069,
7221,
12136,
10602,
202,
95,
202,
202,
430,
261,
1198,
262,
1082,
202,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
54,
3983,
60,
2617,
30,
3845,
967,
4947,
6495,
12,
315,
397,
1756,
397,
315,
262,
8863,
1082,
202,
2463,
12,
13635,
5788,
967,
4947,
6495,
12,
1756,
262,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
List<String> testClasses = (List<String>) cmdLineArgs .get(TestNGCommandLineArgs.TESTCLASS_COMMAND_OPT);
|
List<String> testClasses = (List<String>) cmdLineArgs.get(TestNGCommandLineArgs.TESTCLASS_COMMAND_OPT);
|
public static TestNG privateMain(String[] argv, ITestListener listener) { Map cmdLineArgs = TestNGCommandLineArgs.parseCommandLine(argv); setTestNGVersion(); TestNG result = new TestNG(); if (null != listener) { result.addListener(listener); } try { checkConditions(cmdLineArgs); { Integer verbose = (Integer) cmdLineArgs.get(TestNGCommandLineArgs.LOG); if (null != verbose) { result.setVerbose(verbose.intValue()); } } result.setOutputDirectory((String) cmdLineArgs.get(TestNGCommandLineArgs.OUTDIR_COMMAND_OPT)); result.setSourcePath((String) cmdLineArgs.get(TestNGCommandLineArgs.SRC_COMMAND_OPT)); List<String> testClasses = (List<String>) cmdLineArgs .get(TestNGCommandLineArgs.TESTCLASS_COMMAND_OPT); if (null != testClasses) { Class[] classes = (Class[]) testClasses.toArray(new Class[testClasses.size()]); result.setTestClasses(classes); } List<String> testNgXml = (List<String>) cmdLineArgs.get(TestNGCommandLineArgs.SUITE_DEF_OPT); if (null != testNgXml) { result.setTestSuites(testNgXml); } result.setGroups((String) cmdLineArgs.get(TestNGCommandLineArgs.GROUPS_COMMAND_OPT)); result.setExcludedGroups((String) cmdLineArgs.get(TestNGCommandLineArgs.EXCLUDED_GROUPS_COMMAND_OPT)); result.setTarget((String) cmdLineArgs.get(TestNGCommandLineArgs.TARGET_COMMAND_OPT)); result.setTestJar((String) cmdLineArgs.get(TestNGCommandLineArgs.TESTJAR_COMMAND_OPT)); result.setJUnit((Boolean) cmdLineArgs.get(TestNGCommandLineArgs.JUNIT_DEF_OPT)); result.setHostFile((String) cmdLineArgs.get(TestNGCommandLineArgs.HOSTFILE_OPT)); String threadCount = (String) cmdLineArgs.get(TestNGCommandLineArgs.THREAD_COUNT); if (threadCount != null) { result.setThreadCount(Integer.parseInt(threadCount)); } String client = (String) cmdLineArgs.get(TestNGCommandLineArgs.SLAVE_OPT); if (client != null) { result.setClientPort(Integer.parseInt(client)); } List<Class> listenerClasses = (List<Class>) cmdLineArgs.get(TestNGCommandLineArgs.LISTENER_COMMAND_OPT); if (null != listenerClasses) { result.setListenerClasses(listenerClasses); } result.run(); } catch(TestNGException ex) { if (TestRunner.getVerbose() > 1) { ex.printStackTrace(System.out); } else { System.err.println("[ERROR]: " + ex.getMessage()); } System.exit(1); } return result; }
|
50994 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50994/b75a6679665013f047f910c141d44ac8212eb311/TestNG.java/buggy/src/main/org/testng/TestNG.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
7766,
4960,
3238,
6376,
12,
780,
8526,
5261,
16,
467,
4709,
2223,
2991,
13,
288,
565,
1635,
1797,
1670,
2615,
273,
7766,
4960,
21391,
2615,
18,
2670,
21391,
12,
19485,
1769,
565,
444,
4709,
4960,
1444,
5621,
565,
7766,
4960,
563,
273,
394,
7766,
4960,
5621,
565,
309,
261,
2011,
480,
2991,
13,
288,
1377,
563,
18,
1289,
2223,
12,
12757,
1769,
565,
289,
565,
775,
288,
1377,
866,
8545,
12,
4172,
1670,
2615,
1769,
5411,
288,
3639,
2144,
3988,
273,
261,
4522,
13,
1797,
1670,
2615,
18,
588,
12,
4709,
4960,
21391,
2615,
18,
4842,
1769,
3639,
309,
261,
2011,
480,
3988,
13,
288,
1850,
563,
18,
542,
14489,
12,
11369,
18,
474,
620,
10663,
3639,
289,
1377,
289,
5411,
563,
18,
542,
1447,
2853,
12443,
780,
13,
1797,
1670,
2615,
18,
588,
12,
4709,
4960,
21391,
2615,
18,
5069,
4537,
67,
19104,
67,
15620,
10019,
1377,
563,
18,
542,
1830,
743,
12443,
780,
13,
1797,
1670,
2615,
18,
588,
12,
4709,
4960,
21391,
2615,
18,
28413,
67,
19104,
67,
15620,
10019,
1377,
987,
32,
780,
34,
1842,
4818,
273,
261,
682,
32,
780,
23429,
1797,
1670,
2615,
3639,
263,
588,
12,
4709,
4960,
21391,
2615,
18,
16961,
5237,
67,
19104,
67,
15620,
1769,
1377,
309,
261,
2011,
480,
1842,
4818,
13,
288,
3639,
1659,
8526,
3318,
273,
261,
797,
63,
5717,
1842,
4818,
18,
31447,
12,
2704,
1659,
63,
3813,
4818,
18,
1467,
1435,
19226,
3639,
563,
18,
542,
4709,
4818,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
7766,
4960,
3238,
6376,
12,
780,
8526,
5261,
16,
467,
4709,
2223,
2991,
13,
288,
565,
1635,
1797,
1670,
2615,
273,
7766,
4960,
21391,
2615,
18,
2670,
21391,
12,
19485,
1769,
565,
444,
4709,
4960,
1444,
5621,
565,
7766,
4960,
563,
273,
394,
7766,
4960,
5621,
565,
309,
261,
2011,
480,
2991,
13,
288,
1377,
563,
18,
1289,
2223,
12,
12757,
1769,
565,
289,
565,
775,
288,
1377,
866,
8545,
12,
4172,
1670,
2615,
1769,
5411,
288,
3639,
2144,
3988,
273,
261,
4522,
13,
1797,
1670,
2615,
18,
588,
12,
4709,
4960,
21391,
2615,
18,
4842,
1769,
3639,
309,
261,
2011,
480,
3988,
13,
288,
1850,
563,
18,
542,
14489,
12,
11369,
18,
474,
620,
10663,
2
] |
private SVNExternalInfo addExternal(SVNDirectory dir, String path, String url, long revision) { if (myExternals == null) { myExternals = new TreeMap(); } SVNExternalInfo info = (SVNExternalInfo) myExternals.get(path); if (info == null) { // this means adding new external, either during report or during update, info = new SVNExternalInfo(dir.getPath(), new File(getAnchor().getRoot(), path), path, null, -1); myExternals.put(path, info); } // set it as new, report will also set old values, update will left it as is. info.setNewExternal(url, revision); return info; }
|
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/92aa3d5dc26311ee30e919b7aac6099a6a05695c/SVNWCAccess.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNWCAccess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29537,
50,
6841,
966,
527,
6841,
12,
23927,
50,
2853,
1577,
16,
514,
589,
16,
514,
880,
16,
1525,
6350,
13,
288,
3639,
309,
261,
4811,
29764,
1031,
422,
446,
13,
288,
5411,
3399,
29764,
1031,
273,
394,
16381,
5621,
3639,
289,
7734,
29537,
50,
6841,
966,
1123,
273,
261,
23927,
50,
6841,
966,
13,
3399,
29764,
1031,
18,
588,
12,
803,
1769,
3639,
309,
261,
1376,
422,
446,
13,
288,
5411,
368,
333,
4696,
6534,
394,
3903,
16,
3344,
4982,
2605,
578,
4982,
1089,
16,
5411,
1123,
273,
394,
29537,
50,
6841,
966,
12,
1214,
18,
588,
743,
9334,
394,
1387,
12,
588,
11605,
7675,
588,
2375,
9334,
589,
3631,
589,
16,
446,
16,
300,
21,
1769,
5411,
3399,
29764,
1031,
18,
458,
12,
803,
16,
1123,
1769,
3639,
289,
540,
368,
444,
518,
487,
394,
16,
2605,
903,
2546,
444,
1592,
924,
16,
1089,
903,
2002,
518,
487,
353,
18,
3639,
1123,
18,
542,
1908,
6841,
12,
718,
16,
6350,
1769,
3639,
327,
1123,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29537,
50,
6841,
966,
527,
6841,
12,
23927,
50,
2853,
1577,
16,
514,
589,
16,
514,
880,
16,
1525,
6350,
13,
288,
3639,
309,
261,
4811,
29764,
1031,
422,
446,
13,
288,
5411,
3399,
29764,
1031,
273,
394,
16381,
5621,
3639,
289,
7734,
29537,
50,
6841,
966,
1123,
273,
261,
23927,
50,
6841,
966,
13,
3399,
29764,
1031,
18,
588,
12,
803,
1769,
3639,
309,
261,
1376,
422,
446,
13,
288,
5411,
368,
333,
4696,
6534,
394,
3903,
16,
3344,
4982,
2605,
578,
4982,
1089,
16,
5411,
1123,
273,
394,
29537,
50,
6841,
966,
12,
1214,
18,
588,
743,
9334,
394,
1387,
12,
588,
11605,
7675,
588,
2375,
9334,
589,
3631,
589,
16,
446,
16,
300,
21,
2
] |
||
{
|
public synchronized void commit() throws SQLException { if (isClosed()) { throw new SQLException("You cannot commit a closed connection."); } if (getAutoCommit()) { throw new SQLException("commit called with AutoCommit true!"); } // end of if () try { if (inTransaction()) { getLocalTransaction().internalCommit(); } // end of if () // getLocalTransaction().begin(); } catch(GDSException ge) { throw new FBSQLException(ge); } }
|
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/8c02e4f62c8aa4f6e43ae6314a75f51e848d74de/FBConnection.java/buggy/src/main/org/firebirdsql/jdbc/FBConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
3294,
1435,
1216,
6483,
3639,
309,
261,
291,
7395,
10756,
10402,
604,
394,
6483,
2932,
6225,
2780,
3294,
279,
4375,
1459,
1199,
1769,
3639,
289,
3639,
309,
261,
588,
4965,
5580,
10756,
10402,
604,
394,
6483,
2932,
7371,
2566,
598,
8064,
5580,
638,
4442,
1769,
3639,
289,
368,
679,
434,
309,
1832,
3639,
775,
5411,
309,
261,
267,
3342,
10756,
21821,
6993,
3342,
7675,
7236,
5580,
5621,
5411,
289,
368,
679,
434,
309,
1832,
5411,
368,
6993,
3342,
7675,
10086,
5621,
3639,
289,
1044,
12,
43,
3948,
503,
8244,
13,
5411,
604,
394,
478,
38,
23116,
12,
908,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
3294,
1435,
1216,
6483,
3639,
309,
261,
291,
7395,
10756,
10402,
604,
394,
6483,
2932,
6225,
2780,
3294,
279,
4375,
1459,
1199,
1769,
3639,
289,
3639,
309,
261,
588,
4965,
5580,
10756,
10402,
604,
394,
6483,
2932,
7371,
2566,
598,
8064,
5580,
638,
4442,
1769,
3639,
289,
368,
679,
434,
309,
1832,
3639,
775,
5411,
309,
261,
267,
3342,
10756,
21821,
6993,
3342,
7675,
7236,
5580,
5621,
5411,
289,
368,
679,
434,
309,
1832,
5411,
368,
6993,
3342,
7675,
10086,
5621,
3639,
289,
1044,
12,
43,
3948,
503,
8244,
13,
5411,
604,
394,
478,
38,
23116,
12,
908,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
public org.quickfix.field.Side getSide() throws FieldNotFound { org.quickfix.field.Side value = new org.quickfix.field.Side();
|
public quickfix.field.Side getSide() throws FieldNotFound { quickfix.field.Side value = new quickfix.field.Side();
|
public org.quickfix.field.Side getSide() throws FieldNotFound { org.quickfix.field.Side value = new org.quickfix.field.Side(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/clean/src/java/src/quickfix/fix42/ExecutionReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8895,
1322,
831,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8895,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8895,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8895,
1322,
831,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8895,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8895,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
XMLAttributeList attributeList = new XMLAttributeList() .addAttribute("type", type) .addAttribute("priority", String.valueOf(priority)); BugPattern pattern = getBugPattern(); if (pattern != null) { attributeList.addAttribute("abbrev", pattern.getAbbrev()); attributeList.addAttribute("category", pattern.getCategory()); } if (getUniqueId() != null) { attributeList.addAttribute("uid", getUniqueId()); } if (activeIntervalCollection != null) { attributeList.addAttribute("active", activeIntervalCollection); } xmlOutput.openTag(ELEMENT_NAME, attributeList); if (!annotationText.equals("")) { xmlOutput.openTag("UserAnnotation"); xmlOutput.writeCDATA(annotationText); xmlOutput.closeTag("UserAnnotation"); } XMLOutputUtil.writeCollection(xmlOutput, annotationList); if (propertyListHead != null) { BugProperty prop = propertyListHead; while (prop != null) { prop.writeXML(xmlOutput); prop = prop.getNext(); } } xmlOutput.closeTag(ELEMENT_NAME);
|
writeXML(xmlOutput, false);
|
public void writeXML(XMLOutput xmlOutput) throws IOException { XMLAttributeList attributeList = new XMLAttributeList() .addAttribute("type", type) .addAttribute("priority", String.valueOf(priority)); BugPattern pattern = getBugPattern(); if (pattern != null) { // The bug abbreviation and pattern category are // emitted into the XML for informational purposes only. // (The information is redundant, but might be useful // for processing tools that want to make sense of // bug instances without looking at the plugin descriptor.) attributeList.addAttribute("abbrev", pattern.getAbbrev()); attributeList.addAttribute("category", pattern.getCategory()); } // Add a uid attribute, if we have a unique id. if (getUniqueId() != null) { attributeList.addAttribute("uid", getUniqueId()); } // Add active interval collection. if (activeIntervalCollection != null) { attributeList.addAttribute("active", activeIntervalCollection); } xmlOutput.openTag(ELEMENT_NAME, attributeList); if (!annotationText.equals("")) { xmlOutput.openTag("UserAnnotation"); xmlOutput.writeCDATA(annotationText); xmlOutput.closeTag("UserAnnotation"); } XMLOutputUtil.writeCollection(xmlOutput, annotationList); if (propertyListHead != null) { BugProperty prop = propertyListHead; while (prop != null) { prop.writeXML(xmlOutput); prop = prop.getNext(); } } xmlOutput.closeTag(ELEMENT_NAME); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/cd37a4572ffcb9dac0e9fdb8767645d60f262bf8/BugInstance.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/BugInstance.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
4201,
12,
4201,
1447,
2025,
1447,
13,
1216,
1860,
288,
202,
202,
4201,
1499,
682,
1566,
682,
273,
394,
3167,
1499,
682,
1435,
1082,
202,
18,
1289,
1499,
2932,
723,
3113,
618,
13,
1082,
202,
18,
1289,
1499,
2932,
8457,
3113,
514,
18,
1132,
951,
12,
8457,
10019,
202,
202,
19865,
3234,
1936,
273,
2882,
637,
3234,
5621,
202,
202,
430,
261,
4951,
480,
446,
13,
288,
1082,
202,
759,
1021,
7934,
28148,
471,
1936,
3150,
854,
1082,
202,
759,
17826,
1368,
326,
3167,
364,
1779,
287,
13694,
1338,
18,
1082,
202,
759,
261,
1986,
1779,
353,
19530,
16,
1496,
4825,
506,
5301,
1082,
202,
759,
364,
4929,
8513,
716,
2545,
358,
1221,
12764,
434,
1082,
202,
759,
7934,
3884,
2887,
7849,
622,
326,
1909,
4950,
12998,
1082,
202,
4589,
682,
18,
1289,
1499,
2932,
378,
27216,
3113,
1936,
18,
588,
5895,
27216,
10663,
1082,
202,
4589,
682,
18,
1289,
1499,
2932,
4743,
3113,
1936,
18,
588,
4457,
10663,
202,
202,
97,
9506,
202,
759,
1436,
279,
4555,
1566,
16,
309,
732,
1240,
279,
3089,
612,
18,
202,
202,
430,
261,
588,
24174,
1435,
480,
446,
13,
288,
1082,
202,
4589,
682,
18,
1289,
1499,
2932,
1911,
3113,
16076,
548,
10663,
202,
202,
97,
9506,
202,
759,
1436,
2695,
3673,
1849,
18,
202,
202,
430,
261,
3535,
4006,
2532,
480,
446,
13,
288,
1082,
202,
4589,
682,
18,
1289,
1499,
2932,
3535,
3113,
2695,
4006,
2532,
1769,
202,
202,
97,
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,
1045,
4201,
12,
4201,
1447,
2025,
1447,
13,
1216,
1860,
288,
202,
202,
4201,
1499,
682,
1566,
682,
273,
394,
3167,
1499,
682,
1435,
1082,
202,
18,
1289,
1499,
2932,
723,
3113,
618,
13,
1082,
202,
18,
1289,
1499,
2932,
8457,
3113,
514,
18,
1132,
951,
12,
8457,
10019,
202,
202,
19865,
3234,
1936,
273,
2882,
637,
3234,
5621,
202,
202,
430,
261,
4951,
480,
446,
13,
288,
1082,
202,
759,
1021,
7934,
28148,
471,
1936,
3150,
854,
1082,
202,
759,
17826,
1368,
326,
3167,
364,
1779,
287,
13694,
1338,
18,
1082,
202,
759,
261,
1986,
1779,
353,
19530,
16,
1496,
4825,
506,
5301,
1082,
202,
759,
364,
4929,
8513,
716,
2545,
358,
1221,
12764,
2
] |
public DialPattern() { this("", 0);
|
public DialPattern(String prefix, int digits) { setPrefix(prefix); m_digits = digits;
|
public DialPattern() { this("", 0); }
|
12962 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12962/28002f68e380e1b29cc92405df7ff1ff0307134a/DialPattern.java/buggy/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/admin/dialplan/DialPattern.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9402,
3234,
1435,
288,
3639,
333,
2932,
3113,
374,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9402,
3234,
1435,
288,
3639,
333,
2932,
3113,
374,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 isTheme = false; if ( preHandle instanceof LibraryElementsToolHandleExtends && template instanceof Object[] )
|
boolean isTheme = checkTheme( preHandle, (DesignElementHandle) getSingleTransferData( template ) ); if ( isTheme )
|
protected void handleDrop( ) { final Object template = TemplateTransfer.getInstance( ).getTemplate( ); Assert.isNotNull( template ); Assert.isTrue( handleValidateDrag( template ) ); updateTargetRequest( ); updateTargetEditPart( ); AbstractToolHandleExtends preHandle = null; String transName = null; if ( template instanceof String ) { transName = TRANS_LABEL_CREATE_ELEMENT; preHandle = BasePaletteFactory.getAbstractToolHandleExtendsFromPaletteName( template ); } else if ( handleValidateInsert( template ) ) { transName = InsertInLayoutAction.DISPLAY_TEXT; Object objectType = getFactory( template ).getObjectType( ); if ( objectType instanceof DataSetHandle ) { preHandle = new DataSetToolExtends( ); } else if ( objectType instanceof DataSetItemModel || objectType instanceof ResultSetColumnHandle ) { preHandle = new DataSetColumnToolExtends( ); } else if ( objectType instanceof ScalarParameterHandle ) { preHandle = new ParameterToolExtends( ); } } else if ( handleValidateLibrary( template ) ) { preHandle = new LibraryElementsToolHandleExtends( (DesignElementHandle) getSingleTransferData( template ) ); } if ( preHandle != null ) { SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getCommandStack( ) .startTrans( transName ); preHandle.setRequest( this.getCreateRequest( ) ); preHandle.setTargetEditPart( getTargetEditPart( ) ); Command command = this.getCommand( ); if ( command != null && command.canExecute( ) ) { if ( !( preHandle.preHandleMouseUp( ) ) ) { SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getCommandStack( ) .rollback( ); return; } } boolean isTheme = false; if ( preHandle instanceof LibraryElementsToolHandleExtends && template instanceof Object[] ) { Object[] objs = (Object[]) template; if ( objs.length == 1 && objs[0] instanceof ThemeHandle ) { isTheme = true; } } if ( isTheme == false ) { super.handleDrop( ); // fix bugzilla#145284 if ( !preHandle.postHandleCreation( ) ) { SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getCommandStack( ) .rollback( ); return; } } SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getCommandStack( ) .commit( ); if ( isTheme == false ) { selectAddedObject( ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/54eda6c3b6f77d919dc1a641b2a8139491aeb6f5/ReportTemplateTransferDropTargetListener.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/palette/ReportTemplateTransferDropTargetListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
7544,
12,
262,
202,
95,
202,
202,
6385,
1033,
1542,
273,
5035,
5912,
18,
588,
1442,
12,
262,
18,
588,
2283,
12,
11272,
202,
202,
8213,
18,
291,
5962,
12,
1542,
11272,
202,
202,
8213,
18,
291,
5510,
12,
1640,
4270,
11728,
12,
1542,
262,
11272,
202,
202,
2725,
2326,
691,
12,
11272,
202,
202,
2725,
2326,
4666,
1988,
12,
11272,
202,
202,
7469,
6364,
3259,
19581,
675,
3259,
273,
446,
31,
202,
202,
780,
906,
461,
273,
446,
31,
202,
202,
430,
261,
1542,
1276,
514,
262,
202,
202,
95,
1082,
202,
2338,
461,
273,
28093,
67,
13545,
67,
9344,
67,
10976,
31,
1082,
202,
1484,
3259,
273,
3360,
25863,
1733,
18,
588,
7469,
6364,
3259,
19581,
1265,
25863,
461,
12,
1542,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
1640,
4270,
4600,
12,
1542,
262,
262,
202,
202,
95,
1082,
202,
2338,
461,
273,
8040,
382,
3744,
1803,
18,
17463,
67,
5151,
31,
1082,
202,
921,
16400,
273,
19352,
12,
1542,
262,
18,
588,
17610,
12,
11272,
1082,
202,
430,
261,
16400,
1276,
14065,
3259,
262,
1082,
202,
95,
9506,
202,
1484,
3259,
273,
394,
14065,
6364,
19581,
12,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
16400,
1276,
14065,
1180,
1488,
6862,
202,
20081,
16400,
1276,
10842,
1494,
3259,
262,
1082,
202,
95,
9506,
202,
1484,
3259,
273,
394,
14065,
1494,
6364,
19581,
12,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
16400,
1276,
15791,
1662,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
7544,
12,
262,
202,
95,
202,
202,
6385,
1033,
1542,
273,
5035,
5912,
18,
588,
1442,
12,
262,
18,
588,
2283,
12,
11272,
202,
202,
8213,
18,
291,
5962,
12,
1542,
11272,
202,
202,
8213,
18,
291,
5510,
12,
1640,
4270,
11728,
12,
1542,
262,
11272,
202,
202,
2725,
2326,
691,
12,
11272,
202,
202,
2725,
2326,
4666,
1988,
12,
11272,
202,
202,
7469,
6364,
3259,
19581,
675,
3259,
273,
446,
31,
202,
202,
780,
906,
461,
273,
446,
31,
202,
202,
430,
261,
1542,
1276,
514,
262,
202,
202,
95,
1082,
202,
2338,
461,
273,
28093,
67,
13545,
67,
9344,
67,
10976,
31,
1082,
202,
1484,
3259,
273,
3360,
25863,
1733,
18,
588,
2
] |
return (X509Certificate) cert;
|
return cert;
|
public Certificate generateCertificate(UserDataVO subject, PublicKey publicKey, int keyusage, long validity, CertificateProfile certProfile) throws Exception{ final String sigAlg = getCAToken().getCATokenInfo().getSignatureAlgorithm(); Date firstDate = new Date(); // Set back startdate ten minutes to avoid some problems with wrongly set clocks. firstDate.setTime(firstDate.getTime() - 10 * 60 * 1000); Date lastDate = new Date(); // validity in days = validity*24*60*60*1000 milliseconds long val = validity; if(val == -1) val = certProfile.getValidity(); lastDate.setTime(lastDate.getTime() + ( val * 24 * 60 * 60 * 1000)); X509V3CertificateGenerator certgen = new X509V3CertificateGenerator(); // Serialnumber is random bits, where random generator is initialized by the // serno generator. BigInteger serno = SernoGenerator.instance().getSerno(); certgen.setSerialNumber(serno); certgen.setNotBefore(firstDate); certgen.setNotAfter(lastDate); certgen.setSignatureAlgorithm(sigAlg); // Make DNs String dn = subject.getDN(); String altName = subject.getSubjectAltName(); certgen.setSubjectDN(CertTools.stringToBcX509Name(dn)); X509Name caname = getSubjectDNAsX509Name(); certgen.setIssuerDN(caname); certgen.setPublicKey(publicKey); // Basic constranits, all subcerts are NOT CAs if (certProfile.getUseBasicConstraints() == true) { boolean isCA = false; if ((certProfile.getType() == CertificateProfile.TYPE_SUBCA) || (certProfile.getType() == CertificateProfile.TYPE_ROOTCA)) isCA = true; BasicConstraints bc = new BasicConstraints(isCA); certgen.addExtension( X509Extensions.BasicConstraints.getId(), certProfile.getBasicConstraintsCritical(), bc); } // Key usage int newKeyUsage = -1; if (certProfile.getAllowKeyUsageOverride() && (keyusage >= 0)) { newKeyUsage = keyusage; } else { newKeyUsage = CertTools.sunKeyUsageToBC(certProfile.getKeyUsage()); } if ( (certProfile.getUseKeyUsage() == true) && (newKeyUsage >=0) ){ X509KeyUsage ku = new X509KeyUsage(newKeyUsage); certgen.addExtension( X509Extensions.KeyUsage.getId(), certProfile.getKeyUsageCritical(), ku); } // Extended Key usage if (certProfile.getUseExtendedKeyUsage() == true) { // Get extended key usage from certificate profile Collection c = certProfile.getExtendedKeyUsageAsOIDStrings(); Vector usage = new Vector(); Iterator iter = c.iterator(); while (iter.hasNext()) { usage.add(new DERObjectIdentifier((String)iter.next())); } ExtendedKeyUsage eku = new ExtendedKeyUsage(usage); // Extended Key Usage may be either critical or non-critical certgen.addExtension( X509Extensions.ExtendedKeyUsage.getId(), certProfile.getExtendedKeyUsageCritical(), eku); } // Subject key identifier if (certProfile.getUseSubjectKeyIdentifier() == true) { SubjectPublicKeyInfo spki = new SubjectPublicKeyInfo( (ASN1Sequence) new ASN1InputStream(new ByteArrayInputStream(publicKey.getEncoded())).readObject()); SubjectKeyIdentifier ski = new SubjectKeyIdentifier(spki); certgen.addExtension( X509Extensions.SubjectKeyIdentifier.getId(), certProfile.getSubjectKeyIdentifierCritical(), ski); } // Authority key identifier if (certProfile.getUseAuthorityKeyIdentifier() == true) { SubjectPublicKeyInfo apki = null; try{ apki = new SubjectPublicKeyInfo( (ASN1Sequence) new ASN1InputStream(new ByteArrayInputStream(getCAToken().getPublicKey(SecConst.CAKEYPURPOSE_CERTSIGN).getEncoded())).readObject()); }catch(CATokenOfflineException e){ log.debug("X509CA : Setting STATUS OFFLINE " + this.getName()); this.setStatus(SecConst.CA_OFFLINE); log.debug("X509CA : New STATUS " + this.getStatus()); throw new CATokenOfflineException(e.getMessage()); } AuthorityKeyIdentifier aki = new AuthorityKeyIdentifier(apki); certgen.addExtension( X509Extensions.AuthorityKeyIdentifier.getId(), certProfile.getAuthorityKeyIdentifierCritical(), aki); } // Subject Alternative name if ( (certProfile.getUseSubjectAlternativeName() == true) && (altName != null) && (altName.length() > 0) ) { String email = CertTools.getEmailFromDN(altName); DEREncodableVector vec = new DEREncodableVector(); if (email != null) { GeneralName gn = new GeneralName(1, new DERIA5String(email)); vec.add(gn); } String dns = CertTools.getPartFromDN(altName, CertTools.DNS); if (dns != null) { GeneralName gn = new GeneralName(2, new DERIA5String(dns)); vec.add(gn); } String uri = CertTools.getPartFromDN(altName, CertTools.URI); if (uri == null){ uri = CertTools.getPartFromDN(altName, CertTools.URI1); } if (uri != null) { GeneralName gn = new GeneralName(6, new DERIA5String(uri)); vec.add(gn); } String ipstr = CertTools.getPartFromDN(altName, CertTools.IPADDR); if (ipstr != null) { byte[] ipoctets = StringTools.ipStringToOctets(ipstr); GeneralName gn = new GeneralName(7, new DEROctetString(ipoctets)); vec.add(gn); } String upn = CertTools.getPartFromDN(altName, CertTools.UPN); if (upn != null) { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(new DERObjectIdentifier(CertTools.UPN_OBJECTID)); v.add(new DERTaggedObject(true, 0, new DERUTF8String(upn))); //GeneralName gn = new GeneralName(new DERSequence(v), 0); DERObject gn = new DERTaggedObject(false, 0, new DERSequence(v)); vec.add(gn); } String guid = CertTools.getPartFromDN(altName, CertTools.GUID); if (guid != null) { ASN1EncodableVector v = new ASN1EncodableVector(); byte[] guidbytes = Hex.decode(guid); if (guidbytes != null) { v.add(new DERObjectIdentifier(CertTools.GUID_OBJECTID)); v.add(new DERTaggedObject(true, 0, new DEROctetString(guidbytes))); DERObject gn = new DERTaggedObject(false, 0, new DERSequence(v)); vec.add(gn); } else { log.error("Cannot decode hexadecimal guid: "+guid); } } if (vec.size() > 0) { GeneralNames san = new GeneralNames(new DERSequence(vec)); certgen.addExtension(X509Extensions.SubjectAlternativeName.getId(), certProfile.getSubjectAlternativeNameCritical(), san); } } // Certificate Policies if (certProfile.getUseCertificatePolicies() == true) { PolicyInformation pi = new PolicyInformation(new DERObjectIdentifier(certProfile.getCertificatePolicyId())); DERSequence seq = new DERSequence(pi); certgen.addExtension(X509Extensions.CertificatePolicies.getId(), certProfile.getCertificatePoliciesCritical(), seq); } // CRL Distribution point URI if (certProfile.getUseCRLDistributionPoint() == true) { // Multiple CDPs are spearated with the ';' sign StringTokenizer tokenizer = new StringTokenizer(certProfile.getCRLDistributionPointURI(), ";", false); ArrayList distpoints = new ArrayList(); while (tokenizer.hasMoreTokens()) { // 6 is URI String uri = tokenizer.nextToken(); GeneralName gn = new GeneralName(6, new DERIA5String(uri)); log.debug("Added CRL distpoint: "+uri); ASN1EncodableVector vec = new ASN1EncodableVector(); vec.add(gn); GeneralNames gns = new GeneralNames(new DERSequence(vec)); DistributionPointName dpn = new DistributionPointName(0, gns); distpoints.add(new DistributionPoint(dpn, null, null)); } if (distpoints.size() > 0) { CRLDistPoint ext = new CRLDistPoint((DistributionPoint[])distpoints.toArray(new DistributionPoint[0])); certgen.addExtension(X509Extensions.CRLDistributionPoints.getId(), certProfile.getCRLDistributionPointCritical(), ext); } } // Authority Information Access (OCSP url) if (certProfile.getUseOCSPServiceLocator() == true) { String ocspUrl = certProfile.getOCSPServiceLocatorURI(); // OCSP access location is a URL (GeneralName no 6) GeneralName ocspLocation = new GeneralName(6, new DERIA5String(ocspUrl)); certgen.addExtension(X509Extensions.AuthorityInfoAccess.getId(), false, new AuthorityInformationAccess(X509ObjectIdentifiers.ocspAccessMethod, ocspLocation)); } // Microsoft Template if (certProfile.getUseMicrosoftTemplate() == true) { String mstemplate = certProfile.getMicrosoftTemplate(); DERObjectIdentifier oid = new DERObjectIdentifier(OID_MSTEMPLATE); certgen.addExtension(oid, false, new DERIA5String(mstemplate)); } X509Certificate cert; try{ cert = certgen.generateX509Certificate(getCAToken().getPrivateKey(SecConst.CAKEYPURPOSE_CERTSIGN), getCAToken().getProvider()); }catch(CATokenOfflineException e){ log.debug("X509CA : Setting STATUS OFFLINE"); this.setStatus(SecConst.CA_OFFLINE); throw e; } // Verify before returning cert.verify(getCAToken().getPublicKey(SecConst.CAKEYPURPOSE_CERTSIGN)); log.debug(">X509CA: generate certificate, CA "+ this.getCAId() + " for DN=" + subject.getDN()); return (X509Certificate) cert; }
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/b1998ab23fc30f8dbd82bbca26f9201c35e2fbef/X509CA.java/clean/src/java/se/anatom/ejbca/ca/caadmin/X509CA.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6660,
2103,
4719,
12,
19265,
16169,
3221,
16,
4766,
5411,
11951,
12085,
16,
4766,
5411,
509,
498,
9167,
16,
4766,
5411,
1525,
13800,
16,
4766,
6647,
6660,
4029,
3320,
4029,
13,
1216,
1185,
95,
4766,
10792,
202,
377,
202,
3639,
727,
514,
3553,
21883,
273,
1927,
789,
969,
7675,
588,
14130,
969,
966,
7675,
588,
5374,
6801,
5621,
3639,
2167,
1122,
1626,
273,
394,
2167,
5621,
3639,
368,
1000,
1473,
787,
712,
19572,
6824,
358,
4543,
2690,
9688,
598,
7194,
715,
444,
7268,
87,
18,
3639,
1122,
1626,
18,
542,
950,
12,
3645,
1626,
18,
588,
950,
1435,
300,
1728,
380,
4752,
380,
4336,
1769,
3639,
2167,
1142,
1626,
273,
394,
2167,
5621,
3639,
368,
13800,
316,
4681,
273,
13800,
14,
3247,
14,
4848,
14,
4848,
14,
18088,
10993,
3639,
1525,
1244,
273,
13800,
31,
3639,
309,
12,
1125,
422,
300,
21,
13,
1850,
1244,
273,
3320,
4029,
18,
588,
19678,
5621,
7734,
1142,
1626,
18,
542,
950,
12,
2722,
1626,
18,
588,
950,
1435,
397,
261,
1244,
380,
4248,
380,
4752,
380,
4752,
380,
4336,
10019,
3639,
1139,
5995,
58,
23,
4719,
3908,
3320,
4507,
273,
394,
1139,
5995,
58,
23,
4719,
3908,
5621,
3639,
368,
7366,
2696,
353,
2744,
4125,
16,
1625,
2744,
4456,
353,
6454,
635,
326,
3639,
368,
703,
2135,
4456,
18,
3639,
10246,
703,
2135,
273,
1275,
2135,
3908,
18,
1336,
7675,
588,
827,
2135,
5621,
3639,
3320,
4507,
18,
542,
6342,
1854,
12,
550,
2135,
1769,
3639,
3320,
4507,
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,
6660,
2103,
4719,
12,
19265,
16169,
3221,
16,
4766,
5411,
11951,
12085,
16,
4766,
5411,
509,
498,
9167,
16,
4766,
5411,
1525,
13800,
16,
4766,
6647,
6660,
4029,
3320,
4029,
13,
1216,
1185,
95,
4766,
10792,
202,
377,
202,
3639,
727,
514,
3553,
21883,
273,
1927,
789,
969,
7675,
588,
14130,
969,
966,
7675,
588,
5374,
6801,
5621,
3639,
2167,
1122,
1626,
273,
394,
2167,
5621,
3639,
368,
1000,
1473,
787,
712,
19572,
6824,
358,
4543,
2690,
9688,
598,
7194,
715,
444,
7268,
87,
18,
3639,
1122,
1626,
18,
542,
950,
12,
3645,
1626,
18,
588,
950,
1435,
300,
1728,
380,
4752,
380,
4336,
1769,
3639,
2167,
1142,
1626,
273,
394,
2167,
5621,
3639,
368,
13800,
316,
2
] |
private IPersistentMap createListMap(Object key, Object val){
|
IPersistentMap createListMap(Object key, Object val){
|
private IPersistentMap createListMap(Object key, Object val){ return PersistentListMap.create(key,val);}
|
49600 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49600/1b7ed50694b64f33303145d1c78d8f07481a9560/PersistentHashtableMap.java/buggy/src/org/clojure/runtime/PersistentHashtableMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
2971,
6572,
863,
752,
682,
863,
12,
921,
498,
16,
1033,
1244,
15329,
202,
2463,
11049,
682,
863,
18,
2640,
12,
856,
16,
1125,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
2971,
6572,
863,
752,
682,
863,
12,
921,
498,
16,
1033,
1244,
15329,
202,
2463,
11049,
682,
863,
18,
2640,
12,
856,
16,
1125,
1769,
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
] |
externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword });
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { boolean advancedDarknetOutputEnabled = core.getToadletContainer().isAdvancedDarknetEnabled(); HTTPRequest request = new HTTPRequest(uri); if (request.getParam("newbookmark").length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Add a Bookmark"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("Confirm Bookmark Addition")); HTMLNode addForm = ctx.getPageMaker().getContentNode(infobox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); addForm.addChild("#", "Please confirm that you want to add the key " + request.getParam("newbookmark") + " to your bookmarks and enter the description that you would prefer:"); addForm.addChild("br"); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", request.getParam("newbookmark") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "text", "name", request.getParam("desc") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "addbookmark", "Add bookmark" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.getParam(GenericReadFilterCallback.magicHTTPEscapeString).length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Link to external resources"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode warnbox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-warning", "External link")); HTMLNode externalLinkForm = ctx.getPageMaker().getContentNode(warnbox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); // FIXME: has request.getParam(GenericReadFilterCallback.magicHTTPEscapeString) been sanityzed ? final String target = request.getParam(GenericReadFilterCallback.magicHTTPEscapeString); externalLinkForm.addChild("#", "Please confirm that you want to go to " + target + ". WARNING: You are leaving FREENET! Clicking on this link WILL seriously jeopardize your anonymity!. It is strongly recommended not to do so!"); externalLinkForm.addChild("br"); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", GenericReadFilterCallback.magicHTTPEscapeString, target }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "Go", "Go to the specified link" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.isParameterSet("managebookmarks")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Bookmark Manager"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { infoboxContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode manageForm = infoboxContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); HTMLNode bookmarkList = manageForm.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); HTMLNode bookmark = bookmarkList.addChild("li", "style", "clear: right;"); /* TODO */ bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "delete_" + b.hashCode(), "Delete", "float: right;" }); bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "edit_" + b.hashCode(), "Edit", "float: right;" }); bookmark.addChild("a", "href", '/' + b.getKey(), b.getDesc()); } manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "managebookmarks", "yes" }); } contentNode.addChild(createBookmarkEditForm(ctx.getPageMaker(), MODE_ADD, null, "", "")); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("exit")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Shutdown"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Shutdown")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to shut down your Freenet node?"); HTMLNode shutdownForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "shutdownconfirm", "Shut down" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("restart")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Restart"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Restart")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you want to restart your Freenet node?"); HTMLNode restartForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restartconfirm", "Restart" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Freenet FProxy Homepage of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); if(node.isTestnetEnabled()) { HTMLNode testnetBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Testnet Mode!")); HTMLNode testnetContent = ctx.getPageMaker().getContentNode(testnetBox); testnetContent.addChild("#", "This node runs in testnet mode. This WILL seriously jeopardize your anonymity!"); } String useragent = (String)ctx.getHeaders().get("user-agent"); if (useragent != null) { useragent = useragent.toLowerCase(); if ((useragent.indexOf("msie") > -1) && (useragent.indexOf("opera") == -1)) { HTMLNode browserWarningBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Security Risk!")); HTMLNode browserWarningContent = ctx.getPageMaker().getContentNode(browserWarningBox); browserWarningContent.addChild("#", "You appear to be using Microsoft Internet Explorer. This means that some sites within Freenet may be able to compromise your anonymity!"); } } // Alerts contentNode.addChild(core.alerts.createAlerts()); // Fetch-a-key box HTMLNode fetchKeyBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "Fetch a Key")); HTMLNode fetchKeyContent = ctx.getPageMaker().getContentNode(fetchKeyBox); fetchKeyContent.addAttribute("id", "keyfetchbox"); HTMLNode fetchKeyForm = fetchKeyContent.addChild("form", new String[] { "action", "method" }, new String[] { "/", "get" }); fetchKeyForm.addChild("#", "Key: "); fetchKeyForm.addChild("input", new String[] { "type", "size", "name" }, new String[] { "text", "80", "key" }); fetchKeyForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Fetch" }); // Bookmarks HTMLNode bookmarkBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode bookmarkContent = ctx.getPageMaker().getContentNode(bookmarkBox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { bookmarkContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode bookmarkList = bookmarkContent.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); bookmarkList.addChild("li").addChild("a", "href", '/' + b.getKey(), b.getDesc()); } } bookmarkContent.addChild("div", "id", "bookmarkedit").addChild("a", new String[] { "href", "class" }, new String[] { "?managebookmarks", "interfacelink" }, "Edit my bookmarks"); // Version info and Quit Form HTMLNode versionBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Version Information & Node Control")); HTMLNode versionContent = ctx.getPageMaker().getContentNode(versionBox); versionContent.addChild("#", "Freenet " + Version.nodeVersion + " Build #" + Version.buildNumber() + " r" + Version.cvsRevision); versionContent.addChild("br"); if(NodeStarter.extBuildNumber < NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER) { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + '(' + NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER + ") r" + NodeStarter.extRevisionNumber); } else { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + " r" + NodeStarter.extRevisionNumber); } versionContent.addChild("br"); HTMLNode shutdownForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); shutdownForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "exit" }); shutdownForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Shutdown the node" }); if(node.isUsingWrapper()){ HTMLNode restartForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); restartForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "restart" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restart2", "Restart the node" }); } // Activity HTMLNode activityBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Current Activity")); HTMLNode activityContent = ctx.getPageMaker().getContentNode(activityBox); HTMLNode activityList = activityContent.addChild("ul", "id", "activity"); activityList.addChild("li", "Inserts: " + node.getNumInserts()); activityList.addChild("li", "Requests: " + node.getNumRequests()); activityList.addChild("li", "Transferring Requests: " + node.getNumTransferringRequests()); if (advancedDarknetOutputEnabled) { activityList.addChild("li", "ARK Fetch Requests: " + node.getNumARKFetchers()); } this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/WelcomeToadlet.java/buggy/src/freenet/clients/http/WelcomeToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
6494,
16111,
40,
1313,
2758,
1447,
1526,
273,
2922,
18,
588,
774,
361,
1810,
2170,
7675,
291,
23618,
40,
1313,
2758,
1526,
5621,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
1769,
202,
202,
430,
261,
2293,
18,
588,
786,
2932,
2704,
3618,
3355,
20387,
2469,
1435,
405,
374,
13,
288,
1082,
202,
4870,
907,
1363,
907,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1964,
907,
2932,
986,
279,
20258,
3355,
8863,
1082,
202,
4870,
907,
913,
907,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1350,
907,
12,
2433,
907,
1769,
1082,
202,
4870,
907,
1123,
2147,
273,
913,
907,
18,
1289,
1763,
12,
5900,
18,
588,
1964,
12373,
7675,
588,
966,
2147,
2932,
11269,
20258,
3355,
1436,
608,
7923,
1769,
1082,
202,
4870,
907,
527,
1204,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1350,
907,
12,
1376,
2147,
2934,
1289,
1763,
2932,
687,
3113,
394,
514,
8526,
288,
315,
1128,
3113,
315,
2039,
6,
19879,
394,
514,
8526,
288,
2206,
3113,
315,
2767,
6,
15549,
1082,
202,
1289,
1204,
18,
1289,
1763,
2932,
7,
3113,
315,
8496,
6932,
716,
1846,
2545,
358,
527,
326,
498,
315,
397,
590,
18,
588,
786,
2932,
2704,
3618,
3355,
7923,
397,
315,
358,
3433,
13696,
87,
471,
6103,
326,
2477,
716,
1846,
4102,
13256,
2773,
1769,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
6494,
16111,
40,
1313,
2758,
1447,
1526,
273,
2922,
18,
588,
774,
361,
1810,
2170,
7675,
291,
23618,
40,
1313,
2758,
1526,
5621,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
1769,
202,
202,
430,
261,
2293,
18,
588,
786,
2932,
2704,
3618,
3355,
20387,
2469,
1435,
405,
374,
13,
288,
1082,
202,
4870,
907,
1363,
907,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1964,
907,
2932,
986,
279,
20258,
3355,
8863,
1082,
202,
4870,
907,
913,
907,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1350,
907,
12,
2
] |
|
cx.interpreterSecurityDomain = fnOrScript.securityDomain;
|
cx.interpreterSecurityDomain = ifun.securityDomain;
|
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, InterpretedFunction fnOrScript) { if (cx.interpreterSecurityDomain != fnOrScript.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = fnOrScript.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = fnOrScript.securityDomain; try { return fnOrScript.securityController.callWithDomain( fnOrScript.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } InterpreterData idata = fnOrScript.idata; final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int LOCAL_SHFT = idata.itsMaxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[0 <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for local temporaries// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[i] = arg; if (arg == DBL_MRK) { sDbl[i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != idata.itsMaxVars; ++i) { stack[i] = undefined; } DebugFrame debuggerFrame = null; boolean useActivationVars = false; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); useActivationVars = (debuggerFrame != null); } if (idata.itsNeedsActivation || useActivationVars) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } } if (idata.itsFunctionType != 0) { if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation || useActivationVars) { scope = ScriptRuntime.enterActivationFunction(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(fnOrScript, thisObj, cx, scope, fnOrScript.evalScriptFlag); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { initFunction(cx, scope, fnOrScript, i); } } } Scriptable[] scriptRegExps = null; if (idata.itsRegExpLiterals != null) { // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution if (idata.itsFunctionType != 0) { scriptRegExps = fnOrScript.functionRegExps; } else { scriptRegExps = fnOrScript.createRegExpWraps(cx, scope); } } if (debuggerFrame != null) { debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; int savedLineIndex = cx.interpreterLineIndex; cx.interpreterData = idata; cx.interpreterLineIndex = idata.firstLinePC; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final boolean instructionCounting = (cx.instructionThreshold != 0); // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; int indexReg = 0; Loop: for (;;) { try { int op = iCode[pc++]; jumplessRun: { // Back indent to ease imlementation readingswitch (op) { case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pc = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pc = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pc >= 0) { // Has catch block doCatch = true; } } if (pc < 0) { pc = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pc < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; if (instructionCounting) { // 500: catch cost cx.addInstructionCount(500); pcPrevBranch = pc; } continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : case Token.LE : case Token.GT : case Token.LT : stackTop = do_cmp(stack, sDbl, stackTop, op); continue Loop; case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, cx, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, cx, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : case Token.NE : stackTop = do_eq(stack, sDbl, stackTop, op); continue Loop; case Token.SHEQ : case Token.SHNE : stackTop = do_sheq(stack, sDbl, stackTop, op); continue Loop; case Token.IFNE : if (stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } break jumplessRun; case Token.IFEQ : if (!stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } break jumplessRun; case Icode_IFEQ_POP : if (!stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } stack[stackTop--] = null; break jumplessRun; case Token.GOTO : break jumplessRun; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; break jumplessRun; case Icode_RETSUB : { // indexReg: local to store return address if (instructionCounting) { cx.addInstructionCount(pc - pcPrevBranch); } Object value = stack[LOCAL_SHFT + indexReg]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pc = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pc = (int)sDbl[LOCAL_SHFT + indexReg]; pcPrevBranch = pc; } continue Loop; } case Icode_POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_POP_RESULT : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUP2 : stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stack[stackTop + 2] = stack[stackTop]; sDbl[stackTop + 2] = sDbl[stackTop]; stackTop += 2; continue Loop; case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_RESULT : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.ADD : stackTop = do_add(stack, sDbl, stackTop, cx); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(cx, scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, cx, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getObjectProp(lhs, stringReg, cx, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setObjectProp(lhs, stringReg, rhs, cx, scope); continue Loop; } case Icode_PROP_INC_DEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.propIncrDecr(lhs, stringReg, scope, iCode[pc]); ++pc; continue Loop; } case Token.GETELEM : stackTop = do_getElem(stack, sDbl, stackTop, cx, scope); continue Loop; case Token.SETELEM : stackTop = do_setElem(stack, sDbl, stackTop, cx, scope); continue Loop; case Icode_ELEM_INC_DEC: { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.elemIncrDecr(lhs, rhs, cx, scope, iCode[pc]); ++pc; continue Loop; } case Token.GET_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getReference(lhs); continue Loop; } case Token.SET_REF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setReference(lhs, rhs); continue Loop; } case Token.DEL_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.deleteReference(lhs); continue Loop; } case Icode_REF_INC_DEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.referenceIncrDecr(lhs, iCode[pc]); ++pc; continue Loop; } case Token.LOCAL_SAVE : stack[LOCAL_SHFT + indexReg] = stack[stackTop]; sDbl[LOCAL_SHFT + indexReg] = sDbl[stackTop]; --stackTop; continue Loop; case Token.LOCAL_LOAD : ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + indexReg]; sDbl[stackTop] = sDbl[LOCAL_SHFT + indexReg]; continue Loop; case Icode_NAME_AND_THIS : // stringReg: name ++stackTop; stack[stackTop] = ScriptRuntime.getNameFunctionAndThis(stringReg, cx, scope); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; case Icode_PROP_AND_THIS: { Object obj = stack[stackTop]; if (obj == DBL_MRK) obj = doubleWrap(sDbl[stackTop]); // stringReg: property stack[stackTop] = ScriptRuntime.getPropFunctionAndThis(obj, stringReg, cx, scope); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_ELEM_AND_THIS: { Object obj = stack[stackTop - 1]; if (obj == DBL_MRK) obj = doubleWrap(sDbl[stackTop - 1]); Object id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); stack[stackTop - 1] = ScriptRuntime.getElemFunctionAndThis(obj, id, cx, scope); stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_VALUE_AND_THIS : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getValueFunctionAndThis(value, cx); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_CALLSPECIAL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); stackTop -= indexReg; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg); if (isNew) { Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.newSpecial( cx, function, outArgs, scope, callType); } else { // Call code generation ensure that stack here // is ... Function Scriptable Scriptable functionThis = (Scriptable)stack[stackTop]; --stackTop; Function function = (Function)stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, function, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); } pc += 4; continue Loop; } case Token.CALL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; // CALL generation ensures that funThisObj and fun // are already Scriptable and Function objects respectively Scriptable funThisObj = (Scriptable)stack[stackTop]; --stackTop; Function fun = (Function)stack[stackTop]; Scriptable funScope = scope; if (idata.itsNeedsActivation) { funScope = ScriptableObject.getTopLevelScope(scope); } if (fun instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction ifun = (InterpretedFunction)fun; stack[stackTop] = interpret(cx, funScope, funThisObj, stack, sDbl, calleeArgShft, indexReg, ifun); } else { Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = fun.call(cx, funScope, funThisObj, outArgs); } continue Loop; } case Token.REF_CALL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; // REF_CALL generation ensures that funThisObj and fun // are already Scriptable and Function objects respectively Scriptable funThisObj = (Scriptable)stack[stackTop]; --stackTop; Function fun = (Function)stack[stackTop]; Scriptable funScope = scope; if (idata.itsNeedsActivation) { funScope = ScriptableObject.getTopLevelScope(scope); } Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = ScriptRuntime.referenceCall(fun, funThisObj, outArgs, cx, funScope); continue Loop; } case Token.NEW : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, indexReg, f); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); throw notAFunction(lhs, idata, pc); } pc += 2; // skip debug name index continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[indexReg]; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(cx, scope, stringReg); continue Loop; case Icode_NAME_INC_DEC : stack[++stackTop] = ScriptRuntime.nameIncrDecr(scope, stringReg, iCode[pc]); ++pc; continue Loop; case Icode_SETVAR1: indexReg = iCode[pc++]; // fallthrough case Token.SETVAR : if (!useActivationVars) { stack[indexReg] = stack[stackTop]; sDbl[indexReg] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, indexReg, val); } continue Loop; case Icode_GETVAR1: indexReg = iCode[pc++]; // fallthrough case Token.GETVAR : ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[indexReg]; sDbl[stackTop] = sDbl[indexReg]; } else { stack[stackTop] = activationGet(fnOrScript, scope, indexReg); } continue Loop; case Icode_VAR_INC_DEC : { // indexReg : varindex ++stackTop; int incrDecrMask = iCode[pc]; if (!useActivationVars) { stack[stackTop] = DBL_MRK; Object varValue = stack[indexReg]; double d; if (varValue == DBL_MRK) { d = sDbl[indexReg]; } else { d = ScriptRuntime.toNumber(varValue); stack[indexReg] = DBL_MRK; } double d2 = ((incrDecrMask & Node.DECR_FLAG) == 0) ? d + 1.0 : d - 1.0; sDbl[indexReg] = d2; sDbl[stackTop] = ((incrDecrMask & Node.POST_FLAG) == 0) ? d2 : d; } else { String varName = fnOrScript.argNames[indexReg]; stack[stackTop] = ScriptRuntime.nameIncrDecr(scope, varName, incrDecrMask); } ++pc; continue Loop; } case Icode_ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Icode_ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Icode_UNDEF : stack[++stackTop] = undefined; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT_KEYS : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumInit(lhs, scope); continue Loop; } case Token.ENUM_INIT_VALUES : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumValuesInit(lhs, scope); continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { Object val = stack[LOCAL_SHFT + indexReg]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val, cx); continue Loop; } case Token.SPECIAL_REF : { //stringReg: name of special property Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.specialReference(lhs, stringReg, cx, scope); continue Loop; } case Token.XML_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.xmlReference(lhs, cx, scope); continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE_EXPR : stack[++stackTop] = InterpretedFunction.createFunction(cx, scope, fnOrScript, indexReg); continue Loop; case Icode_CLOSURE_STMT : initFunction(cx, scope, fnOrScript, indexReg); continue Loop; case Token.REGEXP : stack[++stackTop] = scriptRegExps[indexReg]; continue Loop; case Icode_LITERAL_NEW : // indexReg: number of values in the literal ++stackTop; stack[stackTop] = new Object[indexReg]; sDbl[stackTop] = 0; continue Loop; case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Icode_SPARE_ARRAYLIT : case Token.OBJECTLIT : { Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.OBJECTLIT) { Object[] ids = (Object[])idata.literalIds[indexReg]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } else { int[] skipIndexces = null; if (op == Icode_SPARE_ARRAYLIT) { skipIndexces = (int[])idata.literalIds[indexReg]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } stack[stackTop] = val; continue Loop; } case Icode_ENTERDQ : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterDotQuery(lhs, scope); ++withDepth; continue Loop; } case Icode_LEAVEDQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); Object x = ScriptRuntime.updateDotQuery(valBln, scope); if (x != null) { stack[stackTop] = x; scope = ScriptRuntime.leaveDotQuery(scope); --withDepth; pc += 2; continue Loop; } // reset stack and PC to code after ENTERDQ --stackTop; break jumplessRun; } case Token.DEFAULTNAMESPACE : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setDefaultNamespace(value, cx); continue Loop; } case Token.ESCXMLATTR : { Object value = stack[stackTop]; if (value != DBL_MRK) { stack[stackTop] = ScriptRuntime.escapeAttributeValue(value, cx); } continue Loop; } case Token.ESCXMLTEXT : { Object value = stack[stackTop]; if (value != DBL_MRK) { stack[stackTop] = ScriptRuntime.escapeTextValue(value, cx); } continue Loop; } case Token.TOATTRNAME : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.toAttributeName(value, cx); continue Loop; } case Token.DESCENDANTS : { Object value = stack[stackTop]; if(value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.toDescendantsName(value, cx); continue Loop; } case Token.COLONCOLON : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); // stringReg contains namespace stack[stackTop] = ScriptRuntime.toQualifiedName(stringReg, value, cx, scope); continue Loop; } case Icode_LINE : cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; case Icode_REG_IND_C0: indexReg = 0; continue Loop; case Icode_REG_IND_C1: indexReg = 1; continue Loop; case Icode_REG_IND_C2: indexReg = 2; continue Loop; case Icode_REG_IND_C3: indexReg = 3; continue Loop; case Icode_REG_IND_C4: indexReg = 4; continue Loop; case Icode_REG_IND_C5: indexReg = 5; continue Loop; case Icode_REG_IND1: indexReg = 0xFF & iCode[pc]; ++pc; continue Loop; case Icode_REG_IND2: indexReg = getIndex(iCode, pc); pc += 2; continue Loop; case Icode_REG_IND4: indexReg = getInt(iCode, pc); pc += 4; continue Loop; case Icode_REG_STR_C0: stringReg = strings[0]; continue Loop; case Icode_REG_STR_C1: stringReg = strings[1]; continue Loop; case Icode_REG_STR_C2: stringReg = strings[2]; continue Loop; case Icode_REG_STR_C3: stringReg = strings[3]; continue Loop; case Icode_REG_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_REG_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_REG_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; default : dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1));} // end of interpreter switch } // end of jumplessRun label block // This should be reachable only for jump implementation // when pc points to encoded target offset if (instructionCounting) { cx.addInstructionCount(pc + 2 - pcPrevBranch); } int offset = getShort(iCode, pc); if (offset != 0) { // -1 accounts for pc pointing to jump opcode + 1 pc += offset - 1; } else { pc = idata.longJumps.getExistingInt(pc); } pcPrevBranch = pc; continue Loop; } // end of interpreter try catch (Throwable ex) { if (instructionCounting) { // Can not call addInstructionCount as it may trigger // exception cx.instructionCount += pc - pcPrevBranch; } javaException = ex; exceptionPC = pc - 1; pc = getJavaCatchPC(iCode); continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; cx.interpreterLineIndex = savedLineIndex; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsFunctionType != 0) { if (idata.itsNeedsActivation || useActivationVars) { ScriptRuntime.exitActivationFunction(cx); } } if (javaException != null) { if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/0103da48e6e58ebf7674bbea96418aac1f2b34e0/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
5294,
15089,
329,
2083,
2295,
1162,
3651,
13,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
2295,
1162,
3651,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
2295,
1162,
3651,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
309,
318,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
2295,
1162,
3651,
18,
7462,
2933,
18,
1991,
1190,
3748,
12,
13491,
2295,
1162,
3651,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
2146,
16,
13491,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
5294,
11599,
751,
612,
396,
273,
2295,
1162,
3651,
18,
350,
396,
31,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
5294,
15089,
329,
2083,
2295,
1162,
3651,
13,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
2295,
1162,
3651,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
2295,
1162,
3651,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
2
] |
return RubyFixnum.newFixnum(getRuntime(), 0);
|
return getRuntime().newFixnum(0);
|
public RubyFixnum op_cmp(IRubyObject other) { if (! (other instanceof JavaClass)) { throw new TypeError(getRuntime(), "<=> requires JavaClass (" + other.getType() + " given)"); } JavaClass otherClass = (JavaClass) other; if (this.javaClass == otherClass.javaClass) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (otherClass.javaClass.isAssignableFrom(this.javaClass)) { return RubyFixnum.newFixnum(getRuntime(), -1); } return RubyFixnum.newFixnum(getRuntime(), 1); }
|
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaClass.java/buggy/src/org/jruby/javasupport/JavaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
16051,
261,
3011,
1276,
29491,
3719,
288,
5411,
604,
394,
3580,
12,
588,
5576,
9334,
3532,
9207,
4991,
29491,
7566,
397,
1308,
18,
588,
559,
1435,
397,
315,
864,
2225,
1769,
3639,
289,
3639,
29491,
1308,
797,
273,
261,
5852,
797,
13,
1308,
31,
3639,
309,
261,
2211,
18,
6290,
797,
422,
1308,
797,
18,
6290,
797,
13,
288,
5411,
327,
18814,
7675,
2704,
8585,
2107,
12,
20,
1769,
3639,
289,
3639,
309,
261,
3011,
797,
18,
6290,
797,
18,
291,
7961,
1265,
12,
2211,
18,
6290,
797,
3719,
288,
5411,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
5576,
9334,
300,
21,
1769,
3639,
289,
3639,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
5576,
9334,
404,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
16051,
261,
3011,
1276,
29491,
3719,
288,
5411,
604,
394,
3580,
12,
588,
5576,
9334,
3532,
9207,
4991,
29491,
7566,
397,
1308,
18,
588,
559,
1435,
397,
315,
864,
2225,
1769,
3639,
289,
3639,
29491,
1308,
797,
273,
261,
5852,
797,
13,
1308,
31,
3639,
309,
261,
2211,
18,
6290,
797,
422,
1308,
797,
18,
6290,
797,
13,
288,
5411,
327,
18814,
7675,
2704,
8585,
2107,
12,
20,
1769,
3639,
289,
3639,
309,
261,
3011,
797,
18,
6290,
797,
18,
291,
7961,
1265,
12,
2211,
18,
6290,
797,
3719,
288,
5411,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
5576,
2
] |
public String getDisplayName() {
|
public String getDisplayName(){
|
public String getDisplayName() { return "Utility class without private constructor"; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/bd57f07c33c419f20715b114b71a7e93425b34c9/UtilityClassWithoutPrivateConstructorInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/classlayout/UtilityClassWithoutPrivateConstructorInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22055,
1435,
95,
3639,
327,
315,
6497,
667,
2887,
3238,
3885,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22055,
1435,
95,
3639,
327,
315,
6497,
667,
2887,
3238,
3885,
14432,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (eastBorder &&
|
if (eastBorder &&
|
private void paintDottedBorders(Graphics g, int x, int y, int width, int height) { if (northBorder && northBorderType == HSSFCellStyle.BORDER_DOTTED) { int thickness = getThickness(northBorderType); g.setColor(northColor); for (int k=0; k < thickness; k++) { for (int xc = x; xc < width; xc=xc+2) { g.drawLine(xc,y+k,xc,y+k); } } } if (eastBorder && eastBorderType == HSSFCellStyle.BORDER_DOTTED ) { int thickness = getThickness(eastBorderType); thickness++; //need for dotted borders to show up east g.setColor(eastColor); for (int k=0; k < thickness; k++) { for (int yc=y;yc < height; yc=yc+2) { g.drawLine(width-k,yc,width-k,yc); } } } if (southBorder && southBorderType == HSSFCellStyle.BORDER_DOTTED ) { int thickness = getThickness(southBorderType); thickness++; g.setColor(southColor); for (int k=0; k < thickness; k++) { for (int xc = x; xc < width; xc=xc+2) { g.drawLine(xc,height-k,xc,height-k); } } } if (westBorder && westBorderType == HSSFCellStyle.BORDER_DOTTED ) { int thickness = getThickness(westBorderType);// thickness++; g.setColor(westColor); for (int k=0; k < thickness; k++) { for (int yc=y;yc < height; yc=yc+2) { g.drawLine(x+k,yc,x+k,yc); } } } }
|
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/f17a8bdf43e9f96005f3e20ce5c31c89a36575ea/SVBorder.java/buggy/src/contrib/src/org/apache/poi/hssf/contrib/view/SVBorder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
12574,
10412,
2344,
21621,
12,
17558,
314,
16,
509,
619,
16,
509,
677,
16,
509,
1835,
16,
4766,
282,
509,
2072,
13,
288,
1377,
309,
261,
82,
7825,
8107,
597,
2868,
21435,
8107,
559,
422,
670,
1260,
42,
4020,
2885,
18,
38,
7954,
67,
17591,
6404,
13,
288,
3639,
509,
27199,
273,
336,
1315,
19517,
12,
82,
7825,
8107,
559,
1769,
4202,
202,
75,
18,
542,
2957,
12,
82,
7825,
2957,
1769,
540,
364,
261,
474,
417,
33,
20,
31,
417,
411,
27199,
31,
417,
27245,
288,
6647,
364,
261,
474,
15192,
273,
619,
31,
15192,
411,
1835,
31,
15192,
33,
6511,
15,
22,
13,
288,
2398,
314,
18,
9446,
1670,
12,
6511,
16,
93,
15,
79,
16,
6511,
16,
93,
15,
79,
1769,
6647,
289,
3639,
289,
1377,
289,
1377,
309,
261,
30318,
8107,
597,
9079,
19720,
8107,
559,
422,
670,
1260,
42,
4020,
2885,
18,
38,
7954,
67,
17591,
6404,
540,
262,
288,
3639,
509,
27199,
273,
336,
1315,
19517,
12,
30318,
8107,
559,
1769,
3639,
27199,
9904,
31,
368,
14891,
364,
20965,
24028,
358,
2405,
731,
19720,
4202,
202,
75,
18,
542,
2957,
12,
30318,
2957,
1769,
540,
364,
261,
474,
417,
33,
20,
31,
417,
411,
27199,
31,
417,
27245,
288,
6647,
364,
261,
474,
27495,
33,
93,
31,
93,
71,
411,
2072,
31,
27495,
33,
93,
71,
15,
22,
13,
288,
7734,
314,
18,
9446,
1670,
12,
2819,
17,
79,
16,
93,
71,
16,
2819,
17,
79,
16,
93,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
12574,
10412,
2344,
21621,
12,
17558,
314,
16,
509,
619,
16,
509,
677,
16,
509,
1835,
16,
4766,
282,
509,
2072,
13,
288,
1377,
309,
261,
82,
7825,
8107,
597,
2868,
21435,
8107,
559,
422,
670,
1260,
42,
4020,
2885,
18,
38,
7954,
67,
17591,
6404,
13,
288,
3639,
509,
27199,
273,
336,
1315,
19517,
12,
82,
7825,
8107,
559,
1769,
4202,
202,
75,
18,
542,
2957,
12,
82,
7825,
2957,
1769,
540,
364,
261,
474,
417,
33,
20,
31,
417,
411,
27199,
31,
417,
27245,
288,
6647,
364,
261,
474,
15192,
273,
619,
31,
15192,
411,
1835,
31,
15192,
33,
6511,
15,
22,
13,
288,
2398,
314,
18,
9446,
1670,
12,
6511,
16,
93,
15,
2
] |
configParam = context.getRealPath("/WEB-INF/application.conf");
|
configParaInitiam = context.getRealPath("/WEB-INF/application.conf");
|
public void init(ServletConfig servletConfig) throws ServletException { ServletContext context = servletConfig.getServletContext(); // check servlet context and then local servlet parameter or assume WEB-INF String configParam = (String) context.getAttribute(ServerConfiguration.INIT_PARAM); if (null == configParam) { BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream("/defaults/copyright.txt"))); try { String line; while (null != (line = br.readLine())) { System.out.println(line); } } catch (IOException e) { // create copyright output if the copyrights file was not found System.out.println("SnipSnap (unknown version)"); System.out.println("Copyright (c) 2003 Fraunhofer Gesellschaft"); System.out.println("Fraunhofer Institute for Computer Architecture and Software Technology"); System.out.println("All Rights Reserved. See License Agreement for terms and conditions of use."); } configParam = context.getRealPath(context.getInitParameter(ServerConfiguration.INIT_PARAM)); } if (null == configParam) { configParam = context.getRealPath("/WEB-INF/application.conf"); } // create new configuration instance try { Configuration config = ConfigurationProxy.newInstance(); config.setWebInfDir(new File(context.getRealPath("/WEB-INF"))); File configFile = new File(configParam); if (configFile.exists()) { // load initial config (containing the jdbc url/user/pass) config.load(new FileInputStream(configFile)); } if (!config.isInstalled()) { System.out.println("Unconfigured SnipSnap. Please visit the following web site"); System.out.println("and finish the installation procedure."); System.out.println(">> " + config.getUrl()); } else { SnipSpace space = (SnipSpace) Components.getComponent(SnipSpace.class); if (space.exists(Configuration.SNIPSNAP_CONFIG)) { Snip configSnip = space.load(Configuration.SNIPSNAP_CONFIG); String configContent = configSnip.getContent(); config.load(new ByteArrayInputStream(configContent.getBytes())); } } try { Logger.setHandler((LogHandler) Class.forName(config.getLogger()).newInstance()); } catch (Exception e) { System.err.println("InitServlet: LogHandler not found: " + config.getLogger()); } if (config.allow(Configuration.APP_PERM_WEBLOGSPING)) { System.out.println("WARNING: " + config.getName() + ": Weblogs ping is enabled.\n" + "This means that SnipSnap sends notifications to hosts on the internet\n" + "when your weblog changes. To turn this off take a look at the FAQ at\n" + ">> http://snipsnap.org/space/faq <<\n"); } } catch (IOException e) { e.printStackTrace(); System.err.println("InitServlet: Unable to load configuration for this application: " + e); } }
|
6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/dfe80e4ed3627b1f639b5f83fac918c5da2ebbb1/InitServlet.java/clean/src/org/snipsnap/net/InitServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
12,
4745,
809,
8100,
809,
13,
1216,
16517,
288,
565,
22717,
819,
273,
8100,
809,
18,
588,
4745,
1042,
5621,
565,
368,
866,
8100,
819,
471,
1508,
1191,
8100,
1569,
578,
6750,
19877,
17,
19212,
565,
514,
642,
786,
273,
261,
780,
13,
819,
18,
588,
1499,
12,
2081,
1750,
18,
12919,
67,
8388,
1769,
565,
309,
261,
2011,
422,
642,
786,
13,
288,
1377,
10633,
5186,
273,
394,
10633,
12,
2704,
15322,
12,
588,
797,
7675,
588,
1420,
17052,
2932,
19,
7606,
19,
29187,
18,
5830,
6,
3719,
1769,
1377,
775,
288,
3639,
514,
980,
31,
3639,
1323,
261,
2011,
480,
261,
1369,
273,
5186,
18,
896,
1670,
1435,
3719,
288,
1850,
2332,
18,
659,
18,
8222,
12,
1369,
1769,
3639,
289,
1377,
289,
1044,
261,
14106,
425,
13,
288,
3639,
368,
752,
22245,
876,
309,
326,
22245,
87,
585,
1703,
486,
1392,
3639,
2332,
18,
659,
18,
8222,
2932,
10461,
625,
24063,
261,
8172,
1177,
2225,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
2951,
4083,
261,
71,
13,
4044,
23,
478,
354,
318,
15008,
586,
611,
281,
1165,
87,
8838,
1222,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
42,
354,
318,
15008,
586,
657,
17207,
364,
14169,
264,
16959,
18123,
471,
24199,
30960,
4676,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
1595,
534,
10730,
16237,
18,
2164,
16832,
5495,
10606,
364,
6548,
471,
4636,
434,
999,
1199,
1769,
1377,
289,
1377,
642,
786,
273,
819,
18,
588,
6955,
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,
1208,
12,
4745,
809,
8100,
809,
13,
1216,
16517,
288,
565,
22717,
819,
273,
8100,
809,
18,
588,
4745,
1042,
5621,
565,
368,
866,
8100,
819,
471,
1508,
1191,
8100,
1569,
578,
6750,
19877,
17,
19212,
565,
514,
642,
786,
273,
261,
780,
13,
819,
18,
588,
1499,
12,
2081,
1750,
18,
12919,
67,
8388,
1769,
565,
309,
261,
2011,
422,
642,
786,
13,
288,
1377,
10633,
5186,
273,
394,
10633,
12,
2704,
15322,
12,
588,
797,
7675,
588,
1420,
17052,
2932,
19,
7606,
19,
29187,
18,
5830,
6,
3719,
1769,
1377,
775,
288,
3639,
514,
980,
31,
3639,
1323,
261,
2011,
480,
261,
1369,
273,
5186,
18,
896,
1670,
1435,
3719,
288,
1850,
2332,
18,
2
] |
throw new NotImplementedError("Random values larger than Integer.MAX_VALUE not supported");
|
throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported");
|
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError("Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/76d37f709db398798e5b6a889937559a9e75e062/KernelModule.java/clean/org/jruby/KernelModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
9902,
5605,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
1645,
563,
273,
10665,
18,
588,
5576,
7675,
9188,
18,
4285,
5265,
5621,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
18334,
18,
588,
5576,
9334,
563,
1769,
3639,
289,
469,
309,
261,
1968,
18,
2469,
422,
404,
13,
288,
5411,
19817,
4522,
3571,
39,
73,
330,
273,
261,
54,
10340,
4522,
13,
833,
63,
20,
8009,
6283,
31616,
2932,
4522,
3113,
315,
869,
67,
474,
3113,
638,
1769,
5411,
1525,
8416,
273,
3571,
39,
73,
330,
18,
588,
3708,
620,
5621,
5411,
309,
261,
311,
330,
405,
2144,
18,
6694,
67,
4051,
13,
288,
7734,
604,
394,
11206,
12,
18334,
18,
588,
5576,
9334,
315,
8529,
924,
10974,
2353,
2144,
18,
6694,
67,
4051,
486,
3260,
8863,
5411,
289,
5411,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
18334,
18,
588,
5576,
9334,
10665,
18,
588,
5576,
7675,
9188,
18,
4285,
1702,
12443,
474,
13,
8416,
10019,
3639,
289,
469,
288,
5411,
604,
394,
9236,
12,
18334,
18,
588,
5576,
9334,
315,
21530,
468,
434,
1775,
2932,
397,
833,
18,
2469,
397,
315,
364,
404,
2225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
9902,
5605,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
1645,
563,
273,
10665,
18,
588,
5576,
7675,
9188,
18,
4285,
5265,
5621,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
18334,
18,
588,
5576,
9334,
563,
1769,
3639,
289,
469,
309,
261,
1968,
18,
2469,
422,
404,
13,
288,
5411,
19817,
4522,
3571,
39,
73,
330,
273,
261,
54,
10340,
4522,
13,
833,
63,
20,
8009,
6283,
31616,
2932,
4522,
3113,
315,
869,
67,
474,
3113,
638,
1769,
5411,
1525,
8416,
273,
3571,
39,
73,
330,
18,
588,
3708,
620,
5621,
5411,
309,
261,
311,
330,
405,
2144,
2
] |
deselectAllButton.setFont(font);
|
public void createControl(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); setControl(composite); PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IIDEHelpContextIds.WORKING_SET_RESOURCE_PAGE); Label label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_message); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); text = new Text(composite, SWT.SINGLE | SWT.BORDER); text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); text.setFont(font); text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { validateInput(); } }); text.setFocus(); text.setBackground(FieldAssistColors.getRequiredFieldBackgroundColor(text)); label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_label_tree); data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); tree = new CheckboxTreeViewer(composite); tree.setUseHashlookup(true); final ITreeContentProvider treeContentProvider = new WorkbenchContentProvider(); tree.setContentProvider(treeContentProvider); tree.setLabelProvider(new DecoratingLabelProvider( new WorkbenchLabelProvider(), IDEWorkbenchPlugin.getDefault() .getWorkbench().getDecoratorManager() .getLabelDecorator())); tree.setInput(IDEWorkbenchPlugin.getPluginWorkspace().getRoot()); tree.setSorter(new ResourceSorter(ResourceSorter.NAME)); data = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL); data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; tree.getControl().setLayoutData(data); tree.getControl().setFont(font); tree.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleCheckStateChange(event); } }); tree.addTreeListener(new ITreeViewerListener() { public void treeCollapsed(TreeExpansionEvent event) { } public void treeExpanded(TreeExpansionEvent event) { final Object element = event.getElement(); if (tree.getGrayed(element) == false) { BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { public void run() { setSubtreeChecked((IContainer) element, tree.getChecked(element), false); } }); } } }); // Add select / deselect all buttons for bug 46669 Composite buttonComposite = new Composite(composite, SWT.NONE); buttonComposite.setLayout(new GridLayout(2, false)); buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); Button selectAllButton = new Button(buttonComposite, SWT.PUSH); selectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_label); selectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_toolTip); selectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(treeContentProvider.getElements(tree.getInput())); validateInput(); } }); selectAllButton.setFont(font); setButtonLayoutData(selectAllButton); Button deselectAllButton = new Button(buttonComposite, SWT.PUSH); deselectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_label); deselectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_toolTip); deselectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(new Object[0]); validateInput(); } }); deselectAllButton.setFont(font); setButtonLayoutData(deselectAllButton); initializeCheckedState(); if (workingSet != null) { text.setText(workingSet.getName()); } setPageComplete(false); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a0d24374fa989b241b43a0fdb846df0624ab7054/ResourceWorkingSetPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
3639,
9635,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
3639,
9635,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
29818,
10019,
3639,
444,
3367,
12,
27676,
1769,
3639,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
27676,
16,
7734,
467,
10385,
6696,
1042,
2673,
18,
10566,
1360,
67,
4043,
67,
11395,
67,
11219,
1769,
3639,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
27664,
1769,
3639,
1433,
18,
542,
1528,
12,
10385,
2421,
22144,
5058,
18,
1420,
14836,
694,
1964,
67,
2150,
1769,
3639,
7145,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
6997,
2090,
67,
44,
20344,
7734,
571,
7145,
751,
18,
44,
20344,
67,
26439,
67,
29818,
7734,
571,
7145,
751,
18,
21654,
10109,
67,
26439,
67,
19835,
1769,
3639,
1433,
18,
542,
3744,
751,
12,
892,
1769,
3639,
1433,
18,
542,
5711,
12,
5776,
1769,
3639,
977,
273,
394,
3867,
12,
27676,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
1769,
3639,
977,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
6997,
2090,
67,
44,
20344,
7734,
571,
7145,
751,
18,
44,
20344,
67,
26439,
67,
29818,
10019,
3639,
977,
18,
542,
5711,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
3639,
9635,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
3639,
9635,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
29818,
10019,
3639,
444,
3367,
12,
27676,
1769,
3639,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
27676,
16,
7734,
467,
10385,
6696,
1042,
2673,
18,
10566,
1360,
67,
4043,
67,
11395,
67,
11219,
1769,
3639,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
27664,
1769,
3639,
1433,
2
] |
|
public void visitVarInit(VarInit x) {
|
public void visitVarInit(/*@ non_null */ VarInit x) {
|
public void visitVarInit(VarInit x) { visitASTNode(x); }
|
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/95ace042c64a5f2e296b44bf47b1d9b53b361217/RShiftVisitor.java/clean/src/escjava/trunk/ESCTools/Javafe/java/javafe/ast/RShiftVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
1537,
2570,
12,
20308,
36,
1661,
67,
2011,
1195,
4562,
2570,
619,
13,
288,
565,
3757,
9053,
907,
12,
92,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
3757,
1537,
2570,
12,
20308,
36,
1661,
67,
2011,
1195,
4562,
2570,
619,
13,
288,
565,
3757,
9053,
907,
12,
92,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try { map.verify(); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
|
try { map.verify(); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
|
public void testFailOnVerify() { ExpectationMap map = new ExpectationMap("map"); map.setExpectNothing(); map.setFailOnVerify(); map.get("key"); try { map.verify(); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
|
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ExpectationMapTest.java/buggy/jmock/core/src/test/jmock/expectation/ExpectationMapTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3754,
1398,
8097,
1435,
288,
202,
202,
11988,
367,
863,
852,
273,
394,
15510,
367,
863,
2932,
1458,
8863,
202,
202,
1458,
18,
542,
11988,
23814,
5621,
202,
202,
1458,
18,
542,
3754,
1398,
8097,
5621,
202,
202,
1458,
18,
588,
2932,
856,
8863,
202,
202,
698,
288,
1082,
202,
1458,
18,
8705,
5621,
202,
202,
97,
202,
202,
14683,
261,
14979,
2925,
668,
431,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6870,
2932,
13139,
2321,
1245,
1241,
8863,
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,
482,
918,
1842,
3754,
1398,
8097,
1435,
288,
202,
202,
11988,
367,
863,
852,
273,
394,
15510,
367,
863,
2932,
1458,
8863,
202,
202,
1458,
18,
542,
11988,
23814,
5621,
202,
202,
1458,
18,
542,
3754,
1398,
8097,
5621,
202,
202,
1458,
18,
588,
2932,
856,
8863,
202,
202,
698,
288,
1082,
202,
1458,
18,
8705,
5621,
202,
202,
97,
202,
202,
14683,
261,
14979,
2925,
668,
431,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6870,
2932,
13139,
2321,
1245,
1241,
8863,
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
] |
return URIUtil.getRelativePath( new File( basePath ).getParent( ), path );
|
File baseFile = new File( basePath ); if ( baseFile.isFile( ) ) { baseFile = baseFile.getParentFile( ); } return URIUtil.getRelativePath( baseFile.getAbsolutePath( ), path );
|
public static String getRelativedPath( String basePath, String path ) { return URIUtil.getRelativePath( new File( basePath ).getParent( ), path ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/815327d3747087adab8005cae4639729811649b0/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
336,
1971,
270,
2950,
743,
12,
514,
9104,
16,
514,
589,
262,
202,
95,
202,
202,
2463,
3699,
1304,
18,
588,
16519,
12,
394,
1387,
12,
9104,
262,
18,
588,
3054,
12,
262,
16,
589,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
336,
1971,
270,
2950,
743,
12,
514,
9104,
16,
514,
589,
262,
202,
95,
202,
202,
2463,
3699,
1304,
18,
588,
16519,
12,
394,
1387,
12,
9104,
262,
18,
588,
3054,
12,
262,
16,
589,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
125, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, 93, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, -1, 317, 318, 319, -1, -1, -1, -1, -1, 10, -1, 58, 59, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, 41, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1,
|
-1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, 316, 317, 318, -1, -1, -1, -1, -1, -1, 10, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, 347, -1, -1, -1, 351, -1, -1, -1, -1, 41, -1, -1, 359, -1, -1, 93, 363, 364, 365, 366, 367, 368, -1, -1, 0, -1, 58, 59, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 125, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, 318, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 338, -1, -1, 341, -1, 343, 344, 345, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1,
|
private static final short[] yyCheck4() { return new short[] { 125, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, 93, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, -1, 317, 318, 319, -1, -1, -1, -1, -1, 10, -1, 58, 59, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, 41, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, 343, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 359, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, 363, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, 363, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, }; }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
30616,
16,
225,
9131,
23,
16,
225,
576,
5193,
16,
225,
576,
7140,
16,
225,
576,
5292,
16,
225,
9131,
27,
16,
225,
576,
5482,
16,
225,
576,
6675,
16,
282,
300,
21,
16,
282,
300,
21,
16,
6647,
576,
9975,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
31007,
16,
225,
576,
10689,
16,
225,
31360,
16,
225,
11631,
16,
225,
26403,
16,
6647,
22072,
16,
225,
890,
4630,
16,
225,
27499,
16,
225,
5196,
25,
16,
225,
5196,
26,
16,
225,
5196,
27,
16,
225,
5196,
28,
16,
225,
5196,
29,
16,
282,
20170,
16,
225,
890,
2499,
16,
6647,
890,
2138,
16,
225,
890,
3437,
16,
225,
890,
3461,
16,
565,
374,
16,
282,
300,
21,
16,
225,
890,
4033,
16,
225,
890,
2643,
16,
225,
890,
3657,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
282,
17066,
16,
282,
14995,
16,
225,
30616,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
890,
5520,
16,
282,
300,
21,
16,
282,
300,
21,
16,
6647,
890,
9452,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
30616,
16,
225,
9131,
23,
16,
225,
576,
5193,
16,
225,
576,
7140,
16,
225,
576,
5292,
16,
225,
9131,
27,
16,
225,
576,
5482,
16,
225,
576,
6675,
16,
282,
300,
21,
16,
282,
300,
21,
16,
6647,
576,
9975,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
31007,
16,
225,
576,
10689,
16,
225,
31360,
16,
225,
11631,
16,
225,
26403,
16,
6647,
22072,
16,
225,
890,
4630,
16,
225,
27499,
16,
225,
5196,
25,
16,
225,
5196,
26,
16,
225,
5196,
27,
16,
225,
5196,
28,
16,
225,
2
] |
log.error("Thread #" + rank + ": queue was closed");
|
System.err.println("Thread #" + rank + ": queue was closed");
|
public void run() { boolean finished = false; while (!finished) { try { retval = (Long) queue.remove(timeout); // System.out.println("Thread #" + rank + " removed element (" + retval + ")"); finished = true; } catch (QueueClosedException closed) { log.error("Thread #" + rank + ": queue was closed"); finished = true; } catch (TimeoutException e) { } } }
|
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/5ad015d9a78e1da3350d9b398b46b2f5d4508564/QueueTest.java/clean/tests/junit/org/jgroups/tests/QueueTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
202,
202,
95,
1082,
202,
6494,
6708,
273,
629,
31,
1082,
202,
17523,
16051,
13527,
13,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
18341,
273,
261,
3708,
13,
2389,
18,
4479,
12,
4538,
1769,
6862,
202,
759,
2332,
18,
659,
18,
8222,
2932,
3830,
31526,
397,
6171,
397,
315,
3723,
930,
7566,
397,
5221,
397,
7310,
1769,
6862,
202,
13527,
273,
638,
31,
9506,
202,
97,
9506,
202,
14683,
261,
3183,
7395,
503,
4375,
13,
9506,
202,
95,
6862,
202,
1330,
18,
1636,
2932,
3830,
31526,
397,
6171,
397,
6398,
2389,
1703,
4375,
8863,
6862,
202,
13527,
273,
638,
31,
9506,
202,
97,
9506,
202,
14683,
261,
22195,
425,
13,
9506,
202,
95,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
202,
202,
95,
1082,
202,
6494,
6708,
273,
629,
31,
1082,
202,
17523,
16051,
13527,
13,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
18341,
273,
261,
3708,
13,
2389,
18,
4479,
12,
4538,
1769,
6862,
202,
759,
2332,
18,
659,
18,
8222,
2932,
3830,
31526,
397,
6171,
397,
315,
3723,
930,
7566,
397,
5221,
397,
7310,
1769,
6862,
202,
13527,
273,
638,
31,
9506,
202,
97,
9506,
202,
14683,
261,
3183,
7395,
503,
4375,
13,
9506,
202,
95,
6862,
202,
1330,
18,
1636,
2932,
3830,
31526,
397,
6171,
397,
6398,
2389,
1703,
4375,
8863,
6862,
202,
13527,
273,
638,
31,
9506,
202,
97,
9506,
202,
14683,
261,
22195,
425,
2
] |
public static StringBuffer formatLocationBlock(Location loc, int strand, String leader, int wrapWidth) { // Indicates how many characters have been added to the // current line int position = leader.length(); boolean join = false; boolean complement = false; List locs = new ArrayList(); for (Iterator li = loc.blockIterator(); li.hasNext();) { locs.add(li.next()); } Location [] la = (Location[]) locs.toArray(new Location [0]); // Arrays.sort(la, Location.naturalOrder); StringBuffer sb = new StringBuffer(leader); // There are issues here about choosing various forms: // join(complement(...),complement(...)) // join(complement(...,...)) // complement(join(...,...)) if (loc instanceof CompoundLocation) { join = true; sb.append("join("); position += 5; } if (strand == -1) { complement = true; sb.append("complement("); position += 11; } int pre, post; int diff = 0; for (int i = 0; i < la.length; i++) { pre = sb.length(); boolean point = (PointLocation.class.isInstance(la[i])) ? true : false; boolean fuzzy = (FuzzyLocation.class.isInstance(la[i])) ? true : false; boolean fuzzyPoint = (FuzzyPointLocation.class.isInstance(la[i])) ? true : false; if (point) { sb.append(la[i].getMin()); } else if (fuzzy) { FuzzyLocation fl = (FuzzyLocation) la[i]; if (! fl.hasBoundedMin()) { // <123 sb.append("<"); sb.append(fl.getMin()); } else if (fl.getOuterMin() != fl.getInnerMin()) { // (123.567) sb.append("(" + fl.getOuterMin()); sb.append("."); sb.append(fl.getInnerMin() + ")"); } else // 123 sb.append(fl.getMin()); sb.append(".."); if (! fl.hasBoundedMax()) { // >567 sb.append(">"); sb.append(la[i].getMax()); } else if (fl.getInnerMax() != fl.getOuterMax()) { // (567.789) sb.append("(" + fl.getInnerMax()); sb.append("."); sb.append(fl.getOuterMax() + ")"); } else // 567 sb.append(fl.getMax()); } else if (fuzzyPoint) { FuzzyPointLocation fpl = (FuzzyPointLocation) la[i]; if (! fpl.hasBoundedMin()) { // <123 sb.append("<"); sb.append(fpl.getMax()); } else if (! fpl.hasBoundedMax()) { // >567 sb.append(">"); sb.append(fpl.getMin()); } else { // (567.789) sb.append("(" + fpl.getMin()); sb.append("."); sb.append(fpl.getMax() + ")"); } } else { // 123..567 sb.append(la[i].getMin()); sb.append(".."); sb.append(la[i].getMax()); } // If there is another location after this if (i + 1 < la.length) sb.append(","); post = sb.length(); // The number of characters just added diff = post - pre; // If we have exceeded the line length if ((position + diff) > wrapWidth) { // Insert a newline just prior to the this loaction // string sb.insert((sb.length() - diff), "\n" + leader); position = leader.length() + diff; } else { position += diff; } } if (join) { sb.append(")"); // If adding the ")" has made the line too long, move the // last range to the next line if ((position + 1) > wrapWidth) { sb.insert((sb.length() - diff), "\n" + leader); position++; diff++; } } if (complement) { sb.append(")"); // If adding the ")" has made the line too long, move the // last range to the next line if ((position + 1) > wrapWidth) { sb.insert((sb.length() - diff), "\n" + leader); } } return sb; }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/73e6b2241c67db5615541c709f8d8c0c7536323a/SeqFormatTools.java/buggy/src/org/biojava/bio/seq/io/SeqFormatTools.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
6674,
740,
2735,
1768,
12,
2735,
1515,
16,
6862,
1082,
282,
509,
225,
16706,
16,
6862,
1082,
282,
514,
282,
10302,
16,
6862,
1082,
282,
509,
225,
2193,
2384,
15329,
202,
759,
18336,
3661,
4906,
3949,
1240,
2118,
3096,
358,
326,
202,
759,
783,
980,
202,
474,
282,
1754,
273,
10302,
18,
2469,
5621,
202,
6494,
282,
1233,
273,
629,
31,
202,
6494,
17161,
273,
629,
31,
202,
682,
26357,
273,
394,
2407,
5621,
202,
1884,
261,
3198,
4501,
273,
1515,
18,
2629,
3198,
5621,
4501,
18,
5332,
2134,
5621,
13,
202,
95,
202,
24323,
18,
1289,
12,
549,
18,
4285,
10663,
202,
97,
202,
2735,
5378,
7125,
273,
261,
2735,
63,
5717,
26357,
18,
31447,
12,
2704,
7050,
306,
20,
19226,
202,
759,
5647,
18,
3804,
12,
11821,
16,
7050,
18,
18757,
3766,
2448,
1769,
202,
780,
1892,
2393,
273,
394,
6674,
12,
27863,
1769,
202,
759,
6149,
854,
8296,
2674,
2973,
24784,
310,
11191,
10138,
30,
202,
759,
1233,
12,
2919,
806,
5825,
3631,
2919,
806,
5825,
3719,
202,
759,
1233,
12,
2919,
806,
5825,
16,
2777,
3719,
202,
759,
17161,
12,
5701,
5825,
16,
2777,
3719,
202,
430,
261,
1829,
1276,
21327,
2735,
13,
202,
95,
202,
5701,
273,
638,
31,
202,
18366,
18,
6923,
2932,
5701,
2932,
1769,
202,
3276,
1011,
1381,
31,
202,
97,
202,
430,
261,
701,
464,
422,
300,
21,
13,
202,
95,
202,
2919,
806,
273,
638,
31,
202,
18366,
18,
6923,
2932,
2919,
806,
2932,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
6674,
740,
2735,
1768,
12,
2735,
1515,
16,
6862,
1082,
282,
509,
225,
16706,
16,
6862,
1082,
282,
514,
282,
10302,
16,
6862,
1082,
282,
509,
225,
2193,
2384,
15329,
202,
759,
18336,
3661,
4906,
3949,
1240,
2118,
3096,
358,
326,
202,
759,
783,
980,
202,
474,
282,
1754,
273,
10302,
18,
2469,
5621,
202,
6494,
282,
1233,
273,
629,
31,
202,
6494,
17161,
273,
629,
31,
202,
682,
26357,
273,
394,
2407,
5621,
202,
1884,
261,
3198,
4501,
273,
1515,
18,
2629,
3198,
5621,
4501,
18,
5332,
2134,
5621,
13,
202,
95,
202,
24323,
18,
1289,
12,
549,
18,
4285,
10663,
202,
97,
202,
2735,
5378,
7125,
273,
261,
2735,
63,
5717,
26357,
18,
31447,
12,
2
] |
||
case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop);
|
} case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop);
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
18701,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
3639,
727,
509,
15234,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
try { model.doSave(new SubProgressMonitor(monitorWrap, 1)); } catch (CoreException e) { ErrorDialog.openError(shellProvider.getShell(), WorkbenchMessages.Error, e.getMessage(), e.getStatus()); }
|
SaveableHelper.doSaveModel(model, new SubProgressMonitor(monitorWrap, 1), shellProvider, closing);
|
public void run(IProgressMonitor monitor) { IProgressMonitor monitorWrap = new EventLoopProgressMonitor( monitor); monitorWrap.beginTask("", finalModels.size()); //$NON-NLS-1$ for (Iterator i = finalModels.iterator(); i.hasNext();) { Saveable model = (Saveable) i.next(); // handle case where this model got saved as a result of saving another if (!model.isDirty()) { monitor.worked(1); continue; } try { model.doSave(new SubProgressMonitor(monitorWrap, 1)); } catch (CoreException e) { ErrorDialog.openError(shellProvider.getShell(), WorkbenchMessages.Error, e.getMessage(), e.getStatus()); } if (monitorWrap.isCanceled()) { break; } } monitorWrap.done(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/03ddc73a6a262d8b170a7adfad6ccb1a3f6b8fc0/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
45,
5491,
7187,
6438,
2964,
273,
394,
2587,
6452,
5491,
7187,
12,
25083,
202,
10259,
1769,
9506,
202,
10259,
2964,
18,
10086,
2174,
2932,
3113,
727,
8430,
18,
1467,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
1884,
261,
3198,
277,
273,
727,
8430,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
6862,
202,
4755,
429,
938,
273,
261,
4755,
429,
13,
277,
18,
4285,
5621,
6862,
202,
759,
1640,
648,
1625,
333,
938,
2363,
5198,
487,
279,
563,
434,
12392,
4042,
6862,
202,
430,
16051,
2284,
18,
291,
10785,
10756,
288,
25083,
202,
10259,
18,
1252,
329,
12,
21,
1769,
25083,
202,
17143,
31,
6862,
202,
97,
6862,
202,
698,
288,
25083,
202,
2284,
18,
2896,
4755,
12,
2704,
2592,
5491,
7187,
12,
10259,
2964,
16,
404,
10019,
6862,
202,
97,
1044,
261,
25341,
425,
13,
288,
25083,
202,
668,
6353,
18,
3190,
668,
12,
10304,
2249,
18,
588,
13220,
9334,
4147,
22144,
5058,
18,
668,
16,
425,
18,
24906,
9334,
425,
18,
588,
1482,
10663,
6862,
202,
97,
6862,
202,
430,
261,
10259,
2964,
18,
291,
23163,
10756,
288,
25083,
202,
8820,
31,
6862,
202,
97,
9506,
202,
97,
9506,
202,
10259,
2964,
18,
8734,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
45,
5491,
7187,
6438,
2964,
273,
394,
2587,
6452,
5491,
7187,
12,
25083,
202,
10259,
1769,
9506,
202,
10259,
2964,
18,
10086,
2174,
2932,
3113,
727,
8430,
18,
1467,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
1884,
261,
3198,
277,
273,
727,
8430,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
6862,
202,
4755,
429,
938,
273,
261,
4755,
429,
13,
277,
18,
4285,
5621,
6862,
202,
759,
1640,
648,
1625,
333,
938,
2363,
5198,
487,
279,
563,
434,
12392,
4042,
6862,
202,
430,
16051,
2284,
18,
291,
10785,
10756,
288,
25083,
202,
10259,
18,
1252,
329,
12,
21,
1769,
2
] |
fixnumClass.defineMethod("==", getMethodEqual()); fixnumClass.defineMethod("<=>", getMethodCmp()); fixnumClass.defineMethod(">", getMethodGt()); fixnumClass.defineMethod(">=", getMethodGe()); fixnumClass.defineMethod("<", getMethodLt()); fixnumClass.defineMethod("<=", getMethodLe());
|
fixnumClass.defineMethod("==", getMethod("op_equal", RubyNumeric.class)); fixnumClass.defineMethod("<=>", getMethod("op_cmp", RubyNumeric.class)); fixnumClass.defineMethod(">", getMethod("op_gt", RubyNumeric.class)); fixnumClass.defineMethod(">=", getMethod("op_ge", RubyNumeric.class)); fixnumClass.defineMethod("<", getMethod("op_lt", RubyNumeric.class)); fixnumClass.defineMethod("<=", getMethod("op_le", RubyNumeric.class));
|
public static RubyClass createFixnum(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getIntegerClass()); fixnumClass.defineMethod("to_i", getMethodToI()); fixnumClass.defineMethod("to_s", getMethodToS()); fixnumClass.defineMethod("+", getMethodPlus()); fixnumClass.defineMethod("-", getMethodMinus()); fixnumClass.defineMethod("*", getMethodMul()); fixnumClass.defineMethod("/", getMethodDiv()); fixnumClass.defineMethod("%", getMethodMod()); fixnumClass.defineMethod("**", getMethodPow()); fixnumClass.defineMethod("==", getMethodEqual()); fixnumClass.defineMethod("<=>", getMethodCmp()); fixnumClass.defineMethod(">", getMethodGt()); fixnumClass.defineMethod(">=", getMethodGe()); fixnumClass.defineMethod("<", getMethodLt()); fixnumClass.defineMethod("<=", getMethodLe()); return fixnumClass; }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/a9420f23379e292698ea011ab08fb480b4decbcc/RbFixnum.java/buggy/org/jruby/core/RbFixnum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
8585,
2107,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
2917,
2107,
797,
273,
22155,
18,
11255,
797,
2932,
8585,
2107,
3113,
22155,
18,
588,
4522,
797,
10663,
7734,
2917,
2107,
797,
18,
11255,
1305,
2932,
869,
67,
77,
3113,
6272,
774,
45,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
869,
67,
87,
3113,
6272,
774,
55,
10663,
7734,
2917,
2107,
797,
18,
11255,
1305,
2932,
15,
3113,
6272,
13207,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
17,
3113,
6272,
18434,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
14,
3113,
6272,
27860,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
19,
3113,
6272,
7244,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
27188,
3113,
6272,
1739,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
636,
3113,
6272,
28289,
10663,
7734,
2917,
2107,
797,
18,
11255,
1305,
2932,
631,
3113,
6272,
5812,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
32,
33,
2984,
16,
6272,
31832,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
2984,
16,
6272,
43,
88,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
34,
1546,
16,
6272,
18809,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
32,
3113,
6272,
30247,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
32,
1546,
16,
6272,
1682,
10663,
7734,
327,
2917,
2107,
797,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
8585,
2107,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
2917,
2107,
797,
273,
22155,
18,
11255,
797,
2932,
8585,
2107,
3113,
22155,
18,
588,
4522,
797,
10663,
7734,
2917,
2107,
797,
18,
11255,
1305,
2932,
869,
67,
77,
3113,
6272,
774,
45,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
869,
67,
87,
3113,
6272,
774,
55,
10663,
7734,
2917,
2107,
797,
18,
11255,
1305,
2932,
15,
3113,
6272,
13207,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
17,
3113,
6272,
18434,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
14,
3113,
6272,
27860,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
19,
3113,
6272,
7244,
10663,
2
] |
new NoViableAltException("", 48, 0, input);
|
new NoViableAltException("", 49, 0, input);
|
public DFA.State transition(IntStream input) throws RecognitionException { int LA48_0 = input.LA(1); if ( LA48_0==ID ) {return s1;} NoViableAltException nvae = new NoViableAltException("", 48, 0, input); throw nvae; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
8875,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
8875,
67,
20,
631,
734,
262,
288,
2463,
272,
21,
31,
97,
7734,
17114,
15077,
273,
540,
202,
565,
394,
17114,
2932,
3113,
17160,
16,
374,
16,
810,
1769,
7734,
604,
15077,
31,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
8875,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
8875,
67,
20,
631,
734,
262,
288,
2463,
272,
21,
31,
97,
7734,
17114,
15077,
273,
540,
202,
565,
394,
17114,
2932,
3113,
17160,
16,
374,
16,
810,
1769,
7734,
604,
15077,
31,
5411,
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
] |
if (gain>1.0f) { gain=1.0f;
|
if (gain > 1.0f) { gain = 1.0f;
|
public void comb_filter(final float[] exc, final int esi, final float[] new_exc, final int nsi, final int nsf, final int pitch, final float[] pitch_gain, float comb_gain) { int i, j; float exc_energy=0.0f, new_exc_energy=0.0f; float gain, step, fact, g=0.0f; /*Compute excitation energy prior to enhancement*/ for (i=esi; i<esi+nsf; i++) { exc_energy+=exc[i]*exc[i]; } /* Some gain adjustment if pitch is too high or if unvoiced */ g = .5f*Math.abs(pitch_gain[0] + pitch_gain[1] + pitch_gain[2] + last_pitch_gain[0] + last_pitch_gain[1] + last_pitch_gain[2]); if (g>1.3f) comb_gain*=1.3f/g; if (g<.5f) comb_gain*=2.0f*g; step = 1.0f/nsf; fact=0; /* Apply pitch comb-filter (filter out noise between pitch harmonics)*/ for (i=0, j=esi; i<nsf; i++, j++) { fact += step; new_exc[nsi+i] = exc[j] + comb_gain * fact * (pitch_gain[0]*exc[j-pitch+1] + pitch_gain[1]*exc[j-pitch] + pitch_gain[2]*exc[j-pitch-1]) + comb_gain * (1.0f-fact) * (last_pitch_gain[0]*exc[j-last_pitch+1] + last_pitch_gain[1]*exc[j-last_pitch] + last_pitch_gain[2]*exc[j-last_pitch-1]); } last_pitch_gain[0] = pitch_gain[0]; last_pitch_gain[1] = pitch_gain[1]; last_pitch_gain[2] = pitch_gain[2]; last_pitch = pitch; /* Gain after enhancement*/ for (i=nsi;i<nsi+nsf;i++) new_exc_energy+=new_exc[i]*new_exc[i]; /* Compute scaling factor and normalize energy*/ gain = (float) (Math.sqrt(exc_energy/(.1f+new_exc_energy))); if (gain < .5f) { gain=.5f; } if (gain>1.0f) { gain=1.0f; } for (i=nsi;i<nsi+nsf;i++) { smooth_gain = .96f*smooth_gain + .04f*gain; new_exc[i] *= smooth_gain; } }
|
6022 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6022/68640e768b66e83c5637a95cc8f41b712d9fea61/Filters.java/clean/main/trunk/codec/src/main/java/org/xiph/speex/Filters.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3894,
67,
2188,
12,
6385,
1431,
8526,
3533,
16,
12900,
727,
509,
27453,
16,
12900,
727,
1431,
8526,
394,
67,
10075,
16,
12900,
727,
509,
3153,
77,
16,
12900,
727,
509,
3153,
74,
16,
12900,
727,
509,
14486,
16,
12900,
727,
1431,
8526,
14486,
67,
25540,
16,
12900,
1431,
3894,
67,
25540,
13,
225,
288,
565,
509,
277,
16,
525,
31,
565,
1431,
3533,
67,
15358,
33,
20,
18,
20,
74,
16,
394,
67,
10075,
67,
15358,
33,
20,
18,
20,
74,
31,
565,
1431,
17527,
16,
2235,
16,
5410,
16,
314,
33,
20,
18,
20,
74,
31,
565,
1748,
7018,
3533,
8773,
12929,
6432,
358,
29119,
475,
5549,
565,
364,
261,
77,
33,
281,
77,
31,
277,
32,
281,
77,
15,
2387,
74,
31,
277,
27245,
288,
1377,
3533,
67,
15358,
15,
33,
10075,
63,
77,
5772,
10075,
63,
77,
15533,
565,
289,
565,
1748,
10548,
17527,
18335,
309,
14486,
353,
4885,
3551,
578,
309,
640,
25993,
72,
1195,
565,
314,
273,
263,
25,
74,
14,
10477,
18,
5113,
12,
25910,
67,
25540,
63,
20,
65,
397,
14486,
67,
25540,
63,
21,
65,
397,
14486,
67,
25540,
63,
22,
65,
397,
5397,
1142,
67,
25910,
67,
25540,
63,
20,
65,
397,
1142,
67,
25910,
67,
25540,
63,
21,
65,
397,
1142,
67,
25910,
67,
25540,
63,
22,
19226,
565,
309,
261,
75,
34,
21,
18,
23,
74,
13,
1377,
3894,
67,
25540,
14,
33,
21,
18,
23,
74,
19,
75,
31,
565,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3894,
67,
2188,
12,
6385,
1431,
8526,
3533,
16,
12900,
727,
509,
27453,
16,
12900,
727,
1431,
8526,
394,
67,
10075,
16,
12900,
727,
509,
3153,
77,
16,
12900,
727,
509,
3153,
74,
16,
12900,
727,
509,
14486,
16,
12900,
727,
1431,
8526,
14486,
67,
25540,
16,
12900,
1431,
3894,
67,
25540,
13,
225,
288,
565,
509,
277,
16,
525,
31,
565,
1431,
3533,
67,
15358,
33,
20,
18,
20,
74,
16,
394,
67,
10075,
67,
15358,
33,
20,
18,
20,
74,
31,
565,
1431,
17527,
16,
2235,
16,
5410,
16,
314,
33,
20,
18,
20,
74,
31,
565,
1748,
7018,
3533,
8773,
12929,
6432,
358,
29119,
475,
5549,
565,
364,
261,
77,
33,
281,
77,
2
] |
return null;
|
return context.getCurrentDataFlavors ();
|
public DataFlavor[] getCurrentDataFlavors () { // FIXME: implement this return null; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DropTargetDropEvent.java/buggy/core/src/classpath/java/java/awt/dnd/DropTargetDropEvent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1910,
2340,
9444,
8526,
5175,
751,
2340,
842,
1383,
1832,
225,
288,
565,
368,
9852,
30,
2348,
333,
282,
327,
819,
18,
588,
3935,
751,
2340,
842,
1383,
261,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1910,
2340,
9444,
8526,
5175,
751,
2340,
842,
1383,
1832,
225,
288,
565,
368,
9852,
30,
2348,
333,
282,
327,
819,
18,
588,
3935,
751,
2340,
842,
1383,
261,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
((!Base.isMacOS()) ? "tools/avr/bin/avr-objcopy" : userdir + "tools/avr/bin/avr-objcopy"),
|
avrBasePath + "avr-objcopy",
|
public boolean compile(Sketch sketch, String buildPath, Target target) throws RunnerException { this.sketch = sketch; this.buildPath = buildPath; // the pms object isn't used for anything but storage MessageStream pms = new MessageStream(this); String userdir = System.getProperty("user.dir") + File.separator; // LibraryManager libraryManager;//// try {// libraryManager = new LibraryManager();// } catch (IOException e) {// throw new RunnerException(e.getMessage());// } String preCommandCompiler[] = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-gcc" : userdir + "tools/avr/bin/avr-gcc"), "-c", // compile, don't link "-g", // include debugging info (so errors include line numbers) "-Os", // optimize for size "-I" + target.getPath(), "-w", // surpress all warnings "-mmcu=" + Preferences.get("build.mcu"), "-DF_CPU=" + Preferences.get("build.f_cpu"), }; // use lib directories as include paths //String[] libDirs = libraryManager.getFolderPaths(); String[] libDirs = new String[sketch.importedLibraries.size()]; for (int i = 0; i < sketch.importedLibraries.size(); i++) libDirs[i] = ((Library) sketch.importedLibraries.get(i)).getFolder().getPath(); // Last two arguments will specify the file being compiled and the output file. String[] baseCommandCompiler = new String[preCommandCompiler.length + libDirs.length + 2]; System.arraycopy(preCommandCompiler, 0, baseCommandCompiler, 0, preCommandCompiler.length); for (int i = 0; i < libDirs.length; ++i) { baseCommandCompiler[preCommandCompiler.length + i] = "-I" + libDirs[i]; } String preCommandCompilerCPP[] = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-g++" : userdir + "tools/avr/bin/avr-g++"), "-c", // compile, don't link "-g", // include debugging info (so errors include line numbers) "-Os", // optimize for size "-I" + target.getPath(), "-w", // surpress all warnings "-fno-exceptions", "-mmcu=" + Preferences.get("build.mcu"), "-DF_CPU=" + Preferences.get("build.f_cpu"), }; // use lib directories as include paths // Last two arguments will specify the file being compiled and the output file. String[] baseCommandCompilerCPP = new String[preCommandCompilerCPP.length + libDirs.length + 2]; System.arraycopy(preCommandCompilerCPP, 0, baseCommandCompilerCPP, 0, preCommandCompilerCPP.length); for (int i = 0; i < libDirs.length; ++i) { baseCommandCompilerCPP[preCommandCompilerCPP.length + i] = "-I" + libDirs[i]; } String preCommandLinker[] = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-gcc" : userdir + "tools/avr/bin/avr-gcc"), " ", "-mmcu=" + Preferences.get("build.mcu"), "-o", " ", }; // use lib object files during include //String[] libObjectFiles = libraryManager.getObjectFiles(); Vector libObjectFilesVec = new Vector(); for (Iterator i = sketch.importedLibraries.iterator(); i.hasNext(); ) { Library library = (Library) i.next(); File[] objectFiles = library.getObjectFiles(); for (int j = 0; j < objectFiles.length; j++) libObjectFilesVec.add(objectFiles[j].getPath()); } String[] libObjectFiles = new String[libObjectFilesVec.size()]; libObjectFiles = (String[]) libObjectFilesVec.toArray(libObjectFiles); String[] baseCommandLinker = new String[preCommandLinker.length + libObjectFiles.length]; System.arraycopy(preCommandLinker, 0, baseCommandLinker, 0, preCommandLinker.length); for (int i = 0; i < libObjectFiles.length; ++i) { baseCommandLinker[preCommandLinker.length + i] = libObjectFiles[i]; } String baseCommandObjcopy[] = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-objcopy" : userdir + "tools/avr/bin/avr-objcopy"), "-O", " ", "-R", " ", " ", " " }; /*String baseCommand[] = new String[] { // user.dir is folder containing P5 (and therefore jikes) // macosx needs the extra path info. linux doesn't like it, though // windows doesn't seem to care. write once, headache anywhere. ((!Base.isMacOS()) ? "jikes" : System.getProperty("user.dir") + File.separator + "jikes"), // this doesn't help much.. also java 1.4 seems to not support // -source 1.1 for javac, and jikes seems to also have dropped it. // for versions of jikes that don't complain, "final int" inside // a function doesn't throw an error, so it could just be a // ms jvm error that this sort of thing doesn't work. blech. //"-source", //"1.1", // necessary to make output classes compatible with 1.1 // i.e. so that exported applets can work with ms jvm on the web "-target", Preferences.get("preproc.jdk_version"), //"1.1", // let the incompatability headache begin // used when run without a vm ("expert" mode) "-bootclasspath", calcBootClassPath(), // needed for macosx so that the classpath is set properly // also for windows because qtjava will most likely be here // and for linux, it just doesn't hurt "-classpath", sketch.classPath, //calcClassPath(includeFolder), "-nowarn", // we're not currently interested in warnings "+E", // output errors in machine-parsable format "-d", buildPath // output the classes in the buildPath //buildPath + File.separator + className + ".java" // file to compile };*/ // make list of code files that need to be compiled and the object files // that they will be compiled to (includes code from the sketch and the // library for the target platform) String sourceNames[] = new String[sketch.codeCount + target.getSourceFilenames().size()]; String sourceNamesCPP[] = new String[sketch.codeCount + target.getSourceFilenames().size()]; String objectNames[] = new String[sketch.codeCount + target.getSourceFilenames().size()]; String objectNamesCPP[] = new String[sketch.codeCount + target.getSourceFilenames().size()]; int fileCount = 0; int fileCountCPP = 0; for (int i = 0; i < sketch.codeCount; i++) { if (sketch.code[i].preprocName != null) { if (sketch.code[i].preprocName.endsWith(".c")) { sourceNames[fileCount] = buildPath + File.separator + sketch.code[i].preprocName; objectNames[fileCount++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; } else if (sketch.code[i].preprocName.endsWith(".cpp")) { sourceNamesCPP[fileCountCPP] = buildPath + File.separator + sketch.code[i].preprocName; objectNamesCPP[fileCountCPP++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; } } } for (Iterator iter = target.getSourceFilenames().iterator(); iter.hasNext(); ) { String filename = (String) iter.next(); if (filename != null) { if (filename.endsWith(".c")) { sourceNames[fileCount] = target.getPath() + File.separator + filename; objectNames[fileCount++] = buildPath + File.separator + filename + ".o"; } else if (filename.endsWith(".cpp")) { sourceNamesCPP[fileCountCPP] = target.getPath() + File.separator + filename; objectNamesCPP[fileCountCPP++] = buildPath + File.separator + filename + ".o"; } } } /* String commandCompiler[] = new String[baseCommandCompiler.length + preprocCount]; System.arraycopy(baseCommandCompiler, 0, commandCompiler, 0, baseCommandCompiler.length); // append each of the files to the command string for (int i = 0; i < preprocCount; i++) { commandCompiler[baseCommandCompiler.length + i] = buildPath + File.separator + preprocNames[i]; } String commandCompilerCPP[] = new String[baseCommandCompilerCPP.length + preprocCountCPP]; System.arraycopy(baseCommandCompilerCPP, 0, commandCompilerCPP, 0, baseCommandCompilerCPP.length); for (int i = 0; i < preprocCountCPP; i++) { commandCompilerCPP[baseCommandCompilerCPP.length + i] = buildPath + File.separator + preprocNamesCPP[i]; } */ //PApplet.printarr(command); baseCommandLinker[1] = "-Os -Wl,-u,vfprintf -lprintf_flt -lm,-Map=" + ((!Base.isMacOS()) ? buildPath : userdir + buildPath) + File.separator + sketch.name + ".map,--cref"; baseCommandLinker[4] = ((!Base.isMacOS()) ? buildPath : buildPath) + File.separator + sketch.name + ".elf"; String commandLinker[] = new String[baseCommandLinker.length + fileCount + fileCountCPP + target.getObjectFilenames().size()]; System.arraycopy(baseCommandLinker, 0, commandLinker, 0, baseCommandLinker.length); int idx = 0; for(int i = 0; i < fileCount; i++, idx++) { commandLinker[baseCommandLinker.length + idx] = objectNames[i]; } for(int i = 0; i < fileCountCPP; i++, idx++) { commandLinker[baseCommandLinker.length + idx] = objectNamesCPP[i]; } for(Iterator iter = target.getObjectFilenames().iterator(); iter.hasNext(); idx++) { commandLinker[baseCommandLinker.length + idx] = target.getPath() + File.separator + iter.next(); //already ends in ".o" } /*String command[] = new String[baseCommand.length + preprocCount]; System.arraycopy(baseCommand, 0, command, 0, baseCommand.length); // append each of the files to the command string for (int i = 0; i < preprocCount; i++) { command[baseCommand.length + i] = buildPath + File.separator + preprocNames[i]; } //PApplet.printarr(command); */ /* String command[] = new String[baseCommand.length + sketch.codeCount]; System.arraycopy(baseCommand, 0, command, 0, baseCommand.length); // append each of the files to the command string for (int i = 0; i < sketch.codeCount; i++) { command[baseCommand.length + i] = buildPath + File.separator + sketch.code[i].preprocName; } */ //for (int i = 0; i < command.length; i++) { //System.out.println("cmd " + i + " " + command[i]); //} firstErrorFound = false; // haven't found any errors yet secondErrorFound = false; int result = 0; // pre-initialized to quiet a bogus warning from jikes try { // execute the compiler, and create threads to deal // with the input and error streams // Process process; boolean compiling = true; for(int i = 0; i < fileCount; i++) { baseCommandCompiler[baseCommandCompiler.length - 2] = sourceNames[i]; baseCommandCompiler[baseCommandCompiler.length - 1] = "-o"+ objectNames[i]; //System.arraycopy(baseCommandCompiler.length //for(int j = 0; j < baseCommandCompiler.length; j++) { // System.out.println(baseCommandCompiler[j]); //} process = Runtime.getRuntime().exec(baseCommandCompiler); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); // wait for the process to finish. if interrupted // before waitFor returns, continue waiting // compiling = true; while (compiling) { try { result = process.waitFor(); //System.out.println("result is " + result); compiling = false; } catch (InterruptedException ignored) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; } for(int i = 0; i < fileCountCPP; i++) { baseCommandCompilerCPP[baseCommandCompilerCPP.length - 2] = sourceNamesCPP[i]; baseCommandCompilerCPP[baseCommandCompilerCPP.length - 1] = "-o"+ objectNamesCPP[i]; //for(int j = 0; j < baseCommandCompilerCPP.length; j++) { // System.out.println(baseCommandCompilerCPP[j]); //} process = Runtime.getRuntime().exec(baseCommandCompilerCPP); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); // wait for the process to finish. if interrupted // before waitFor returns, continue waiting // compiling = true; while (compiling) { try { result = process.waitFor(); //System.out.println("result is " + result); compiling = false; } catch (InterruptedException ignored) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; } //for(int j = 0; j < commandLinker.length; j++) { // System.out.println(commandLinker[j]); //} process = Runtime.getRuntime().exec(commandLinker); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); compiling = true; while(compiling) { try { result = process.waitFor(); compiling = false; } catch (InterruptedException intExc) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; /*for(int j = 0; j < baseCommandObjcopy.length; j++) { System.out.println(baseCommandObjcopy[j]); }*/ baseCommandObjcopy[2] = "srec"; baseCommandObjcopy[4] = ".eeprom"; baseCommandObjcopy[5] = buildPath + File.separator + sketch.name + ".elf"; baseCommandObjcopy[6] = buildPath + File.separator + sketch.name + ".rom"; process = Runtime.getRuntime().exec(baseCommandObjcopy); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); compiling = true; while(compiling) { try { result = process.waitFor(); compiling = false; } catch (InterruptedException intExc) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; baseCommandObjcopy[2] = "ihex"; baseCommandObjcopy[4] = ".flash"; baseCommandObjcopy[5] = buildPath + File.separator + sketch.name + ".elf"; baseCommandObjcopy[6] = buildPath + File.separator + sketch.name + ".hex"; process = Runtime.getRuntime().exec(baseCommandObjcopy); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); compiling = true; while(compiling) { try { result = process.waitFor(); compiling = false; } catch (InterruptedException intExc) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; /*Process process = Runtime.getRuntime().exec(command); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); // wait for the process to finish. if interrupted // before waitFor returns, continue waiting // boolean compiling = true; while (compiling) { try { result = process.waitFor(); //System.out.println("result is " + result); compiling = false; } catch (InterruptedException ignored) { } }*/ } catch (Exception e) { String msg = e.getMessage(); if ((msg != null) && (msg.indexOf("avr-gcc: not found") != -1)) { //System.err.println("jikes is missing"); Base.showWarning("Compiler error", "Could not find the compiler.\n" + "avr-gcc is missing from your PATH,\n" + "see readme.txt for help.", null); return false; } else { e.printStackTrace(); result = -1; } } // an error was queued up by message(), barf this back to build() // which will barf it back to Editor. if you're having trouble // discerning the imagery, consider how cows regurgitate their food // to digest it, and the fact that they have five stomaches. // //System.out.println("throwing up " + exception); if (exception != null) throw exception; // if the result isn't a known, expected value it means that something // is fairly wrong, one possibility is that jikes has crashed. // if (result != 0 && result != 1 ) { //exception = new RunnerException(SUPER_BADNESS); //editor.error(exception); // this will instead be thrown Base.openURL(BUGS_URL); throw new RunnerException(SUPER_BADNESS); } // success would mean that 'result' is set to zero return (result == 0); // ? true : false; }
|
48215 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48215/fc1ca8a0661ef52aa16fb05258e17c074e4d780d/Compiler.java/buggy/app/Compiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
4074,
12,
22900,
18534,
16,
514,
1361,
743,
16,
5916,
1018,
13,
565,
1216,
22712,
503,
288,
565,
333,
18,
7771,
1593,
273,
18534,
31,
565,
333,
18,
3510,
743,
273,
1361,
743,
31,
565,
368,
326,
293,
959,
733,
5177,
1404,
1399,
364,
6967,
1496,
2502,
565,
2350,
1228,
293,
959,
273,
394,
2350,
1228,
12,
2211,
1769,
565,
514,
729,
1214,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
7923,
397,
1387,
18,
11287,
31,
565,
368,
565,
18694,
1318,
5313,
1318,
31,
1307,
565,
775,
288,
759,
1377,
5313,
1318,
273,
394,
18694,
1318,
5621,
759,
565,
289,
1044,
261,
14106,
425,
13,
288,
759,
1377,
604,
394,
22712,
503,
12,
73,
18,
24906,
10663,
759,
565,
289,
565,
514,
675,
2189,
9213,
8526,
273,
394,
514,
8526,
288,
1377,
14015,
5,
2171,
18,
291,
9990,
4618,
10756,
692,
315,
6642,
19,
842,
86,
19,
4757,
19,
842,
86,
17,
75,
952,
6,
294,
3639,
729,
1214,
397,
315,
6642,
19,
842,
86,
19,
4757,
19,
842,
86,
17,
75,
952,
6,
3631,
1377,
3701,
71,
3113,
368,
4074,
16,
2727,
1404,
1692,
1377,
3701,
75,
3113,
368,
2341,
10450,
1123,
261,
2048,
1334,
2341,
980,
5600,
13,
1377,
3701,
15112,
3113,
368,
10979,
364,
963,
1377,
3701,
45,
6,
397,
1018,
18,
588,
743,
9334,
1377,
3701,
91,
3113,
368,
5056,
1028,
777,
5599,
1377,
3701,
7020,
6319,
1546,
397,
28310,
18,
588,
2932,
3510,
18,
81,
6319,
6,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
4074,
12,
22900,
18534,
16,
514,
1361,
743,
16,
5916,
1018,
13,
565,
1216,
22712,
503,
288,
565,
333,
18,
7771,
1593,
273,
18534,
31,
565,
333,
18,
3510,
743,
273,
1361,
743,
31,
565,
368,
326,
293,
959,
733,
5177,
1404,
1399,
364,
6967,
1496,
2502,
565,
2350,
1228,
293,
959,
273,
394,
2350,
1228,
12,
2211,
1769,
565,
514,
729,
1214,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
7923,
397,
1387,
18,
11287,
31,
565,
368,
565,
18694,
1318,
5313,
1318,
31,
1307,
565,
775,
288,
759,
1377,
5313,
1318,
273,
394,
18694,
1318,
5621,
759,
565,
289,
1044,
261,
14106,
425,
13,
288,
759,
1377,
604,
394,
22712,
503,
12,
73,
2
] |
Compilation comp = compilefunc.compile (this, "lambda0", true);
|
Compilation comp = new Compilation (this, "lambda0", true); compile_setLiterals (comp, env.values);
|
public Object eval (Environment env) throws UnboundSymbol, WrongArguments, WrongType, GenericError { if (!doCompile) return new LambdaProcedure (this, env); try { Compilation comp = compilefunc.compile (this, "lambda0", true); byte[][] classes = new byte[comp.numClasses][]; for (int iClass = 0; iClass < comp.numClasses; iClass++) { classes[iClass] = comp.classes[iClass].emit_to_array (); // DEBUGGING - FIXME try {comp.classes[iClass].emit_to_file ("lambda" + iClass + ".class");} catch (java.io.IOException ex) { System.err.print("Caught I/O exception: "); } } SchemeLoader loader = new SchemeLoader (classes); Class clas = loader.loadClass ("lambda0", true); //Class clas = Class.forName ("lambda0"); Object inst = clas.newInstance (); /* Pass literal values to the compiled code. */ CompiledProc cproc = (CompiledProc) inst; Object[] literals = new Object[comp.literalsCount]; for (Literal literal = comp.literalsChain; literal != null; literal = literal.next) { literals[literal.index] = literal.value; } cproc.setLiterals (literals); return inst; } catch (java.io.IOException ex) { throw new GenericError ("class I/O error in lambda eval"); } catch (ClassNotFoundException ex) { throw new GenericError ("class not found in lambda eval"); } catch (InstantiationException ex) { throw new GenericError ("class not instantiable: in lambda eval"); } catch (IllegalAccessException ex) { throw new GenericError ("class illegal access: in lambda eval"); } }
|
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/7c191f321e6419d724006a46486f427814f6e569/LambdaExp.java/buggy/kawa/lang/LambdaExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
5302,
261,
5494,
1550,
13,
4202,
1216,
1351,
3653,
5335,
16,
24668,
4628,
16,
24668,
559,
16,
7928,
668,
225,
288,
565,
309,
16051,
2896,
9937,
13,
1377,
327,
394,
12801,
17213,
261,
2211,
16,
1550,
1769,
565,
775,
1377,
288,
565,
22416,
1161,
273,
394,
22416,
261,
2211,
16,
315,
14661,
20,
3113,
638,
1769,
4074,
67,
542,
48,
11235,
261,
2919,
16,
1550,
18,
2372,
1769,
565,
1160,
63,
6362,
65,
3318,
273,
394,
1160,
63,
2919,
18,
2107,
4818,
6362,
15533,
565,
364,
261,
474,
277,
797,
273,
374,
31,
225,
277,
797,
411,
1161,
18,
2107,
4818,
31,
225,
277,
797,
27245,
1377,
288,
202,
4701,
63,
77,
797,
65,
273,
1161,
18,
4701,
63,
77,
797,
8009,
18356,
67,
869,
67,
1126,
261,
1769,
202,
759,
6369,
19066,
300,
9852,
202,
698,
288,
2919,
18,
4701,
63,
77,
797,
8009,
18356,
67,
869,
67,
768,
7566,
14661,
6,
397,
277,
797,
397,
3552,
1106,
8863,
97,
202,
14683,
261,
6290,
18,
1594,
18,
14106,
431,
13,
202,
225,
288,
282,
2332,
18,
370,
18,
1188,
2932,
24512,
467,
19,
51,
1520,
30,
315,
1769,
225,
289,
1377,
289,
565,
10714,
2886,
4088,
273,
394,
10714,
2886,
261,
4701,
1769,
565,
1659,
23268,
273,
4088,
18,
945,
797,
7566,
14661,
20,
3113,
638,
1769,
565,
368,
797,
23268,
273,
1659,
18,
1884,
461,
7566,
14661,
20,
8863,
565,
1033,
1804,
273,
23268,
18,
2704,
1442,
261,
1769,
565,
1748,
10311,
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,
1033,
5302,
261,
5494,
1550,
13,
4202,
1216,
1351,
3653,
5335,
16,
24668,
4628,
16,
24668,
559,
16,
7928,
668,
225,
288,
565,
309,
16051,
2896,
9937,
13,
1377,
327,
394,
12801,
17213,
261,
2211,
16,
1550,
1769,
565,
775,
1377,
288,
565,
22416,
1161,
273,
394,
22416,
261,
2211,
16,
315,
14661,
20,
3113,
638,
1769,
4074,
67,
542,
48,
11235,
261,
2919,
16,
1550,
18,
2372,
1769,
565,
1160,
63,
6362,
65,
3318,
273,
394,
1160,
63,
2919,
18,
2107,
4818,
6362,
15533,
565,
364,
261,
474,
277,
797,
273,
374,
31,
225,
277,
797,
411,
1161,
18,
2107,
4818,
31,
225,
277,
797,
27245,
1377,
288,
202,
4701,
63,
77,
797,
65,
273,
1161,
2
] |
processProperty(ontModel, (OntProperty) prop.listInverse().next(), true);
|
processProperty(ontModel, (OntProperty) prop.listInverse().next(), tgtNamespace, true);
|
public Model process(OntModel ontModel, String tgtNamespace) throws Exception { tgtNamespace = OntologyUtil.correctNamespace(tgtNamespace); attributes = new HashMap(); references = new HashMap(); collections = new HashMap(); // TODO if we want primary keys examine inverseFunctionalProperties // Deal with properties, place in maps of class_name:set_of fields for (Iterator i = ontModel.listOntProperties(); i.hasNext(); ) { OntProperty prop = (OntProperty) i.next(); if (!prop.getNameSpace().equals(tgtNamespace)) { continue; } processProperty(ontModel, prop, false); if (prop.hasInverse()) { processProperty(ontModel, (OntProperty) prop.listInverse().next(), true); } } // Deal with classes Set classes = new HashSet(); Iterator i = ontModel.listClasses(); while (i.hasNext()) { OntClass cls = (OntClass) i.next(); if (cls.getNameSpace() != null && cls.getNameSpace().equals(tgtNamespace)) { String clsName = pkg + "." + cls.getLocalName(); StringBuffer superClasses = new StringBuffer(); for (Iterator j = cls.listSuperClasses(true); j.hasNext(); ) { OntClass superCls = (OntClass) j.next(); if (superCls.getNameSpace() != null && superCls.getNameSpace().equals(tgtNamespace)) { superClasses.append(pkg + "." + superCls.getLocalName()); if (j.hasNext()) { superClasses.append(" "); } } } String superClassList = null; if (superClasses.length() != 0) { superClassList = superClasses.toString(); } classes.add(new ClassDescriptor(clsName, superClassList, true, getFieldSetForClass(attributes, cls.getLocalName()), getFieldSetForClass(references, cls.getLocalName()), getFieldSetForClass(collections, cls.getLocalName()))); } } return new Model(modelName, tgtNamespace, classes); }
|
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/457e472c4d85a3e17847c1d637a736cc24690e2f/Owl2FlyMine.java/clean/intermine/src/java/org/intermine/ontology/Owl2FlyMine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3164,
1207,
12,
51,
496,
1488,
603,
88,
1488,
16,
514,
11680,
3402,
13,
1216,
1185,
288,
3639,
11680,
3402,
273,
29683,
1304,
18,
6746,
3402,
12,
29672,
3402,
1769,
3639,
1677,
273,
394,
4317,
5621,
3639,
5351,
273,
394,
4317,
5621,
3639,
6980,
273,
394,
4317,
5621,
3639,
368,
2660,
309,
732,
2545,
3354,
1311,
19707,
558,
8322,
2083,
287,
2297,
3639,
368,
28998,
598,
1790,
16,
3166,
316,
7565,
434,
667,
67,
529,
30,
542,
67,
792,
1466,
3639,
364,
261,
3198,
277,
273,
603,
88,
1488,
18,
1098,
51,
496,
2297,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
5411,
531,
496,
1396,
2270,
273,
261,
51,
496,
1396,
13,
277,
18,
4285,
5621,
5411,
309,
16051,
5986,
18,
17994,
3819,
7675,
14963,
12,
29672,
3402,
3719,
288,
1171,
1324,
31,
5411,
289,
5411,
1207,
1396,
12,
1580,
1488,
16,
2270,
16,
629,
1769,
5411,
309,
261,
5986,
18,
5332,
16376,
10756,
288,
7734,
1207,
1396,
12,
1580,
1488,
16,
261,
51,
496,
1396,
13,
2270,
18,
1098,
16376,
7675,
4285,
9334,
11680,
3402,
16,
638,
1769,
5411,
289,
3639,
289,
3639,
368,
28998,
598,
225,
3318,
3639,
1000,
3318,
273,
394,
6847,
5621,
3639,
4498,
277,
273,
603,
88,
1488,
18,
1098,
4818,
5621,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
531,
496,
797,
2028,
273,
261,
51,
496,
797,
13,
277,
18,
4285,
5621,
5411,
309,
261,
6429,
18,
17994,
3819,
1435,
480,
446,
597,
2028,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3164,
1207,
12,
51,
496,
1488,
603,
88,
1488,
16,
514,
11680,
3402,
13,
1216,
1185,
288,
3639,
11680,
3402,
273,
29683,
1304,
18,
6746,
3402,
12,
29672,
3402,
1769,
3639,
1677,
273,
394,
4317,
5621,
3639,
5351,
273,
394,
4317,
5621,
3639,
6980,
273,
394,
4317,
5621,
3639,
368,
2660,
309,
732,
2545,
3354,
1311,
19707,
558,
8322,
2083,
287,
2297,
3639,
368,
28998,
598,
1790,
16,
3166,
316,
7565,
434,
667,
67,
529,
30,
542,
67,
792,
1466,
3639,
364,
261,
3198,
277,
273,
603,
88,
1488,
18,
1098,
51,
496,
2297,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
5411,
531,
496,
1396,
2270,
273,
261,
51,
496,
1396,
13,
277,
18,
4285,
5621,
2
] |
definePrivateMethod(name, method); defineSingletonMethod(name, method); }
|
definePrivateMethod(name, method); defineSingletonMethod(name, method); }
|
public void defineModuleFunction(String name, RubyCallbackMethod method) { definePrivateMethod(name, method); defineSingletonMethod(name, method); }
|
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4426,
3120,
2083,
12,
780,
508,
16,
19817,
2428,
1305,
707,
13,
288,
202,
202,
11255,
6014,
1305,
12,
529,
16,
707,
1769,
202,
202,
11255,
19571,
1305,
12,
529,
16,
707,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4426,
3120,
2083,
12,
780,
508,
16,
19817,
2428,
1305,
707,
13,
288,
202,
202,
11255,
6014,
1305,
12,
529,
16,
707,
1769,
202,
202,
11255,
19571,
1305,
12,
529,
16,
707,
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
] |
startOffset = consume(IToken.t_switch).getOffset();
|
startOffset = consume().getOffset();
|
protected IASTStatement parseSwitchStatement() throws EndOfFileException, BacktrackException { int startOffset; startOffset = consume(IToken.t_switch).getOffset(); consume(IToken.tLPAREN); IASTExpression switch_condition = condition(); consume(IToken.tRPAREN); IASTStatement switch_body = statement(); IASTSwitchStatement switch_statement = createSwitchStatement(); ((ASTNode) switch_statement).setOffsetAndLength(startOffset, calculateEndOffset(switch_body) - startOffset); switch_statement.setControllerExpression(switch_condition); switch_condition.setParent(switch_statement); switch_condition.setPropertyInParent(IASTSwitchStatement.CONTROLLER_EXP); switch_statement.setBody(switch_body); switch_body.setParent(switch_statement); switch_body.setPropertyInParent(IASTSwitchStatement.BODY); return switch_statement; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c69e46df852e8daf1a898f5f2d8f0b9d9f957df1/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
3406,
1109,
10200,
3406,
1435,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
3639,
509,
18245,
31,
3639,
18245,
273,
7865,
7675,
588,
2335,
5621,
3639,
7865,
12,
1285,
969,
18,
88,
48,
15111,
1769,
3639,
467,
9053,
2300,
1620,
67,
4175,
273,
2269,
5621,
3639,
7865,
12,
1285,
969,
18,
88,
54,
15111,
1769,
3639,
467,
9053,
3406,
1620,
67,
3432,
273,
3021,
5621,
5411,
467,
9053,
10200,
3406,
1620,
67,
11516,
273,
752,
10200,
3406,
5621,
3639,
14015,
9053,
907,
13,
1620,
67,
11516,
2934,
542,
2335,
1876,
1782,
12,
1937,
2335,
16,
7734,
4604,
1638,
2335,
12,
9610,
67,
3432,
13,
300,
18245,
1769,
3639,
1620,
67,
11516,
18,
542,
2933,
2300,
12,
9610,
67,
4175,
1769,
3639,
1620,
67,
4175,
18,
542,
3054,
12,
9610,
67,
11516,
1769,
3639,
1620,
67,
4175,
18,
542,
1396,
382,
3054,
12,
45,
9053,
10200,
3406,
18,
6067,
25353,
67,
16109,
1769,
3639,
1620,
67,
11516,
18,
542,
2250,
12,
9610,
67,
3432,
1769,
3639,
1620,
67,
3432,
18,
542,
3054,
12,
9610,
67,
11516,
1769,
3639,
1620,
67,
3432,
18,
542,
1396,
382,
3054,
12,
45,
9053,
10200,
3406,
18,
16691,
1769,
3639,
327,
1620,
67,
11516,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
467,
9053,
3406,
1109,
10200,
3406,
1435,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
3639,
509,
18245,
31,
3639,
18245,
273,
7865,
7675,
588,
2335,
5621,
3639,
7865,
12,
1285,
969,
18,
88,
48,
15111,
1769,
3639,
467,
9053,
2300,
1620,
67,
4175,
273,
2269,
5621,
3639,
7865,
12,
1285,
969,
18,
88,
54,
15111,
1769,
3639,
467,
9053,
3406,
1620,
67,
3432,
273,
3021,
5621,
5411,
467,
9053,
10200,
3406,
1620,
67,
11516,
273,
752,
10200,
3406,
5621,
3639,
14015,
9053,
907,
13,
1620,
67,
11516,
2934,
542,
2335,
1876,
1782,
12,
1937,
2335,
16,
7734,
4604,
1638,
2335,
12,
9610,
67,
3432,
13,
300,
18245,
1769,
3639,
1620,
67,
11516,
18,
542,
2
] |
} if (isInvalid(value)) {
|
StringBuffer errorBuf = new StringBuffer(fStringBuffer3.length + 1); if (hex) errorBuf.append('x'); errorBuf.append(fStringBuffer3.ch, fStringBuffer3.offset, fStringBuffer3.length);
|
protected int scanCharReferenceValue(XMLStringBuffer buf, XMLStringBuffer buf2) throws IOException, XNIException { // scan hexadecimal value boolean hex = false; if (fEntityScanner.skipChar('x')) { if (buf2 != null) { buf2.append('x'); } hex = true; fStringBuffer3.clear(); boolean digit = true; do { int c = fEntityScanner.peekChar(); digit = (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'); if (digit) { if (buf2 != null) { buf2.append((char)c); } fEntityScanner.scanChar(); fStringBuffer3.append((char)c); } } while (digit); } // scan decimal value else { fStringBuffer3.clear(); boolean digit = true; do { int c = fEntityScanner.peekChar(); digit = c >= '0' && c <= '9'; if (digit) { if (buf2 != null) { buf2.append((char)c); } fEntityScanner.scanChar(); fStringBuffer3.append((char)c); } } while (digit); } // end if (!fEntityScanner.skipChar(';')) { reportFatalError("SemicolonRequiredInCharRef", null); } if (buf2 != null) { buf2.append(';'); } // convert string to number int value = -1; try { value = Integer.parseInt(fStringBuffer3.toString(), hex ? 16 : 10); } catch (NumberFormatException e) { // let -1 value drop through } // character reference must be a valid XML character if (isInvalid(value)) { reportFatalError("InvalidCharRef", new Object[]{Integer.toString(value, 16)}); } // append corresponding chars to the given buffer if (!XMLChar.isSupplemental(value)) { buf.append((char) value); } else { // character is supplemental, split it into surrogate chars buf.append(XMLChar.highSurrogate(value)); buf.append(XMLChar.lowSurrogate(value)); } // char refs notification code if (fNotifyCharRefs && value != -1) { String literal = "#" + (hex ? "x" : "") + fStringBuffer3.toString(); if (!fScanningAttribute) { fCharRefLiteral = literal; } } return value; }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/5248bb8cd5969455739dc16c499012fd2ec75808/XMLScanner.java/buggy/src/org/apache/xerces/impl/XMLScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
4135,
2156,
2404,
620,
12,
4201,
780,
1892,
1681,
16,
3167,
780,
1892,
1681,
22,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
3639,
368,
4135,
20070,
460,
3639,
1250,
3827,
273,
629,
31,
3639,
309,
261,
74,
1943,
11338,
18,
7457,
2156,
2668,
92,
26112,
288,
5411,
309,
261,
4385,
22,
480,
446,
13,
288,
1681,
22,
18,
6923,
2668,
92,
8284,
289,
5411,
3827,
273,
638,
31,
5411,
284,
780,
1892,
23,
18,
8507,
5621,
5411,
1250,
8035,
273,
638,
31,
5411,
741,
288,
7734,
509,
276,
273,
284,
1943,
11338,
18,
347,
3839,
2156,
5621,
7734,
8035,
273,
261,
71,
1545,
296,
20,
11,
597,
276,
1648,
296,
29,
6134,
747,
13491,
261,
71,
1545,
296,
69,
11,
597,
276,
1648,
296,
74,
6134,
747,
13491,
261,
71,
1545,
296,
37,
11,
597,
276,
1648,
296,
42,
8284,
7734,
309,
261,
11052,
13,
288,
10792,
309,
261,
4385,
22,
480,
446,
13,
288,
1681,
22,
18,
6923,
12443,
3001,
13,
71,
1769,
289,
10792,
284,
1943,
11338,
18,
9871,
2156,
5621,
10792,
284,
780,
1892,
23,
18,
6923,
12443,
3001,
13,
71,
1769,
7734,
289,
5411,
289,
1323,
261,
11052,
1769,
3639,
289,
3639,
368,
4135,
6970,
460,
3639,
469,
288,
5411,
284,
780,
1892,
23,
18,
8507,
5621,
5411,
1250,
8035,
273,
638,
31,
5411,
741,
288,
7734,
509,
276,
273,
284,
1943,
11338,
18,
347,
3839,
2156,
5621,
7734,
8035,
273,
276,
1545,
296,
20,
11,
597,
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,
509,
4135,
2156,
2404,
620,
12,
4201,
780,
1892,
1681,
16,
3167,
780,
1892,
1681,
22,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
3639,
368,
4135,
20070,
460,
3639,
1250,
3827,
273,
629,
31,
3639,
309,
261,
74,
1943,
11338,
18,
7457,
2156,
2668,
92,
26112,
288,
5411,
309,
261,
4385,
22,
480,
446,
13,
288,
1681,
22,
18,
6923,
2668,
92,
8284,
289,
5411,
3827,
273,
638,
31,
5411,
284,
780,
1892,
23,
18,
8507,
5621,
5411,
1250,
8035,
273,
638,
31,
5411,
741,
288,
7734,
509,
276,
273,
284,
1943,
11338,
18,
347,
3839,
2156,
5621,
7734,
8035,
273,
261,
71,
1545,
296,
20,
11,
597,
276,
1648,
296,
29,
6134,
747,
2
] |
m_ResultProducer.setResultListener(this);
|
public void doRun(int run) throws Exception { if (m_Instances == null) { throw new Exception("No Instances set"); } // Tell the resultproducer to send results to us m_ResultProducer.setResultListener(this); m_ResultProducer.setInstances(m_Instances); // Clear the collected results m_Keys.removeAllElements(); m_Results.removeAllElements(); // System.err.println("Starting run " + run); // Collect all the results // Should be smarter -- first doing a run collecting only the keys // from isResultRequired(), then determining if the average is required, // then getting the actual results. m_ResultProducer.doRun(run); // Average the results collected //System.err.println("Number of results collected: " + m_Keys.size()); // Check that the keys only differ on the selected key field checkForMultipleDifferences(); Object [] template = (Object [])((Object [])m_Keys.elementAt(0)).clone(); template[m_KeyIndex] = null; // Check for duplicate keys checkForDuplicateKeys(template); // Calculate the average and submit it if necessary doAverageResult(template); }
|
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/b0ab7eea4639b317cd8fe3688ee31a01f65148a3/AveragingResultProducer.java/buggy/weka/experiment/AveragingResultProducer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
1997,
12,
474,
1086,
13,
1216,
1185,
288,
565,
309,
261,
81,
67,
5361,
422,
446,
13,
288,
1377,
604,
394,
1185,
2932,
2279,
18357,
444,
8863,
565,
289,
565,
368,
29860,
326,
563,
11776,
2750,
358,
1366,
1686,
358,
584,
1377,
312,
67,
1253,
12140,
18,
542,
5361,
12,
81,
67,
5361,
1769,
3639,
368,
10121,
326,
12230,
1686,
565,
312,
67,
2396,
18,
4479,
1595,
3471,
5621,
565,
312,
67,
3447,
18,
4479,
1595,
3471,
5621,
3639,
368,
565,
2332,
18,
370,
18,
8222,
2932,
11715,
1086,
315,
397,
1086,
1769,
565,
368,
9302,
777,
326,
1686,
565,
368,
9363,
506,
3029,
14153,
1493,
1122,
9957,
279,
1086,
30160,
1338,
326,
1311,
565,
368,
628,
353,
1253,
3705,
9334,
1508,
23789,
309,
326,
8164,
353,
1931,
16,
565,
368,
1508,
8742,
326,
3214,
1686,
18,
565,
312,
67,
1253,
12140,
18,
2896,
1997,
12,
2681,
1769,
565,
368,
27275,
326,
1686,
12230,
565,
368,
3163,
18,
370,
18,
8222,
2932,
1854,
434,
1686,
12230,
30,
315,
397,
312,
67,
2396,
18,
1467,
10663,
565,
368,
2073,
716,
326,
1311,
1338,
15221,
603,
326,
3170,
498,
652,
565,
13855,
8438,
10428,
2980,
5621,
565,
1033,
5378,
1542,
273,
261,
921,
5378,
13,
12443,
921,
5378,
13,
81,
67,
2396,
18,
2956,
861,
12,
20,
13,
2934,
14056,
5621,
565,
1542,
63,
81,
67,
653,
1016,
65,
273,
446,
31,
565,
368,
2073,
364,
6751,
1311,
565,
13855,
11826,
2396,
12,
3202,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
1997,
12,
474,
1086,
13,
1216,
1185,
288,
565,
309,
261,
81,
67,
5361,
422,
446,
13,
288,
1377,
604,
394,
1185,
2932,
2279,
18357,
444,
8863,
565,
289,
565,
368,
29860,
326,
563,
11776,
2750,
358,
1366,
1686,
358,
584,
1377,
312,
67,
1253,
12140,
18,
542,
5361,
12,
81,
67,
5361,
1769,
3639,
368,
10121,
326,
12230,
1686,
565,
312,
67,
2396,
18,
4479,
1595,
3471,
5621,
565,
312,
67,
3447,
18,
4479,
1595,
3471,
5621,
3639,
368,
565,
2332,
18,
370,
18,
8222,
2932,
11715,
1086,
315,
397,
1086,
1769,
565,
368,
9302,
777,
326,
1686,
565,
368,
9363,
506,
3029,
14153,
1493,
1122,
9957,
279,
1086,
30160,
1338,
326,
1311,
565,
2
] |
|
return s2;
|
case ID: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20:
|
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 30: return s3; case EOL: return s2; case 21: return s4; default: NoViableAltException nvae = new NoViableAltException("", 42, 2, input); throw nvae; } }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
5196,
30,
10792,
327,
272,
23,
31,
7734,
648,
19995,
30,
10792,
648,
1599,
30,
648,
6137,
30,
648,
9784,
1741,
30,
648,
9469,
30,
648,
15483,
30,
648,
20806,
2312,
30,
648,
7649,
30,
648,
6122,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
30,
648,
385,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
30,
648,
27125,
67,
5997,
67,
12200,
30,
648,
4711,
30,
648,
2872,
30,
648,
8043,
30,
648,
6549,
30,
648,
5342,
30,
648,
4200,
30,
9079,
648,
9035,
30,
10792,
327,
272,
24,
31,
7734,
805,
30,
10792,
17114,
15077,
273,
13491,
394,
17114,
2932,
3113,
14856,
16,
576,
16,
810,
1769,
10792,
604,
15077,
31,
3639,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
5196,
30,
10792,
327,
272,
23,
31,
7734,
648,
19995,
30,
10792,
648,
1599,
30,
648,
6137,
30,
648,
9784,
1741,
30,
648,
9469,
30,
648,
15483,
30,
648,
20806,
2312,
30,
648,
7649,
30,
648,
6122,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
30,
648,
385,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
30,
648,
27125,
67,
5997,
67,
12200,
30,
648,
4711,
30,
648,
2872,
30,
648,
8043,
30,
648,
6549,
30,
648,
5342,
30,
648,
4200,
30,
9079,
648,
9035,
30,
10792,
327,
272,
24,
31,
2
] |
public FileCopyJob(File sourceFolder, File sourceZipFile, File sourceTaskListFile,
|
public FileCopyJob(File sourceFolder, File sourceZipFile, File sourceTaskListFile, File sourceRepositoriesFile,
|
public FileCopyJob(File sourceFolder, File sourceZipFile, File sourceTaskListFile, File sourceActivationHistoryFile, List<File> contextFiles, List<String> zipFiles) { this.sourceZipFile = sourceZipFile; this.sourceTaskListFile = sourceTaskListFile; this.sourceActivationHistoryFile = sourceActivationHistoryFile; this.sourceContextFiles = contextFiles; this.zipFilesToExtract = zipFiles; // Get parameters here to avoid accessing the UI thread this.zip = importPage.zip(); this.importTaskList = importPage.importTaskList(); this.importActivationHistory = importPage.importActivationHistory(); this.importTaskContexts = importPage.importTaskContexts(); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/9533e41d1db43d087cceb4197f763d7895a1793f/TaskDataImportWizard.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/TaskDataImportWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1387,
2951,
2278,
12,
812,
1084,
3899,
16,
1387,
1084,
29394,
16,
1387,
1084,
2174,
682,
812,
16,
9506,
202,
812,
1084,
14857,
5623,
812,
16,
987,
32,
812,
34,
819,
2697,
16,
987,
32,
780,
34,
3144,
2697,
13,
288,
1082,
202,
2211,
18,
3168,
29394,
273,
1084,
29394,
31,
1082,
202,
2211,
18,
3168,
2174,
682,
812,
273,
1084,
2174,
682,
812,
31,
1082,
202,
2211,
18,
3168,
14857,
5623,
812,
273,
1084,
14857,
5623,
812,
31,
1082,
202,
2211,
18,
3168,
1042,
2697,
273,
819,
2697,
31,
1082,
202,
2211,
18,
4450,
2697,
774,
4976,
273,
3144,
2697,
31,
1082,
202,
759,
968,
1472,
2674,
358,
4543,
19531,
326,
6484,
2650,
1082,
202,
2211,
18,
4450,
273,
1930,
1964,
18,
4450,
5621,
1082,
202,
2211,
18,
5666,
2174,
682,
273,
1930,
1964,
18,
5666,
2174,
682,
5621,
1082,
202,
2211,
18,
5666,
14857,
5623,
273,
1930,
1964,
18,
5666,
14857,
5623,
5621,
1082,
202,
2211,
18,
5666,
2174,
15518,
273,
1930,
1964,
18,
5666,
2174,
15518,
5621,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1387,
2951,
2278,
12,
812,
1084,
3899,
16,
1387,
1084,
29394,
16,
1387,
1084,
2174,
682,
812,
16,
9506,
202,
812,
1084,
14857,
5623,
812,
16,
987,
32,
812,
34,
819,
2697,
16,
987,
32,
780,
34,
3144,
2697,
13,
288,
1082,
202,
2211,
18,
3168,
29394,
273,
1084,
29394,
31,
1082,
202,
2211,
18,
3168,
2174,
682,
812,
273,
1084,
2174,
682,
812,
31,
1082,
202,
2211,
18,
3168,
14857,
5623,
812,
273,
1084,
14857,
5623,
812,
31,
1082,
202,
2211,
18,
3168,
1042,
2697,
273,
819,
2697,
31,
1082,
202,
2211,
18,
4450,
2697,
774,
4976,
273,
3144,
2697,
31,
1082,
202,
759,
968,
1472,
2674,
358,
4543,
19531,
326,
6484,
2650,
1082,
202,
2
] |
asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffsetAsInt());
|
asm.emitLVALAddr (S1, VM_Entrypoints.vpStatusField.getOffset());
|
public static void generateGlueCodeForJNIMethod(VM_Assembler asm, VM_Method mth) { int offset; boolean usesVarargs; int varargAmount = 0; String mthName = mth.getName().toString(); if ((mthName.startsWith("Call") && mthName.endsWith("Method")) || mthName.equals("NewObject")) usesVarargs = true; else usesVarargs = false; //-#if RVM_WITH_MACH_O_ABI // Find extra amount of space that needs to be added to the frame //to hold copies of the vararg values. This calculation is //overkill since some of these values will be in registers and //already stored. But then either 3 or 4 of the parameters don't //show up in the signature anyway (JNIEnvironment, class, method //id, instance object). if (usesVarargs) { VM_TypeReference[] argTypes = mth.getParameterTypes(); int argCount = argTypes.length; for (int i=0; i<argCount; i++) { if (argTypes[i].isLongType() || argTypes[i].isDoubleType()) varargAmount += 2 * BYTES_IN_ADDRESS; else varargAmount += BYTES_IN_ADDRESS; } } //-#endif int glueFrameSize = JNI_GLUE_FRAME_SIZE + varargAmount; asm.emitSTAddrU(FP,-glueFrameSize,FP); // buy the glue frame // we may need to save CR in the previous frame also if CR will be used // CR is to be saved at FP+4 in the previous frame // Here we check if this is a JNI function that takes the vararg in the ... style // This includes CallStatic<type>Method, Call<type>Method, CallNonVirtual<type>Method // For these calls, the vararg starts at the 4th or 5th argument (GPR 6 or 7) // So, we save the GPR 6-10 and FPR 1-3 in a volatile register save area // in the glue stack frame so that the JNI function can later repackage the arguments // based on the parameter types of target method to be invoked. // (For long argument lists, the additional arguments, have been saved in // the spill area of the OS caller, and will be retrieved from there.) // // If we are compiling such a JNI Function, then emit the code to store // GPR 4-10 and FPR 1-6 into the volatile save area. if (usesVarargs) { //-#if RVM_WITH_POWEROPEN_ABI offset = STACKFRAME_HEADER_SIZE + 3*BYTES_IN_STACKSLOT; // skip over slots for GPR 3-5 for (int i = 6; i <= 10; i++ ) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // store FPRs 1-3 in first 3 slots of volatile FPR save area for (int i = 1; i <= 3; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } //-#elif RVM_WITH_SVR4_ABI // save all parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } for (int i =FIRST_OS_PARAMETER_FPR; i<=LAST_OS_PARAMETER_FPR; i++) { asm.emitSTFD(i, offset, FP); offset += BYTES_IN_DOUBLE; } //-#elif RVM_WITH_MACH_O_ABI // save all gpr parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } //-#endif } else { //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // adjust register contents (following SVR4 ABI) for normal JNI functions // especially dealing with long, spills // number of parameters of normal JNI functions should fix in // r3 - r12, f1 - f15, + 24 words, convertParametersFromSVR4ToJava(asm, mth); //-#endif } // Save AIX non-volatile GPRs that will not be saved and restored by RVM. // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_RVM_RESERVED_NV_GPR; i <=LAST_RVM_RESERVED_NV_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } // set the method ID for the glue frame // and save the return address in the previous frame // asm.emitLVAL(S0, INVISIBLE_METHOD_ID); asm.emitMFLR(REGISTER_ZERO); asm.emitSTW (S0, STACKFRAME_METHOD_ID_OFFSET, FP); asm.emitSTAddr(REGISTER_ZERO, glueFrameSize + STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // Attempt to change the vpStatus of the current Processor to IN_JAVA // // on entry T0 = JNIEnv* which is an interior pointer to this thread's VM_JNIEnvironment. // We first adjust this in place to be a pointer to a VM_JNIEnvironment and then use // it to acquire PROCESSOR_REGISTER (and JTOC on OSX/Linux). // // AIX non volatile gprs 13-16 have been saved & are available (also gprs 11-13 can be used). // S0=13, S1=14, TI=15, PROCESSOR_REGISTER=16 are available (&have labels) for changing state. // we leave the passed arguments untouched, unless we are blocked and have to call sysVirtualProcessorYield // Map from JNIEnv* to VM_JNIEnvironment. // Must do this outside the loop as we need to do it exactly once. asm.emitADDI (T0, -VM_Entrypoints.JNIExternalFunctionsField.getOffsetAsInt(), T0); int retryLoop = asm.getMachineCodeIndex(); // acquire Jikes RVM PROCESSOR_REGISTER (and JTOC OSX/Linux only). asm.emitLAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffsetAsInt(), T0); //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // on AIX JTOC is part of AIX Linkage triplet and this already set by our caller. // Thus, we only need this load on non-AIX platforms asm.emitLAddr(JTOC, VM_Entrypoints.JNIEnvSavedJTOCField.getOffsetAsInt(), T0); //-#endif asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffsetAsInt()); asm.emitLWARX (S0, S1, PROCESSOR_REGISTER); // get status for processor asm.emitCMPI (S0, VM_Processor.BLOCKED_IN_NATIVE); // check if GC in progress, blocked in native mode VM_ForwardReference frBlocked = asm.emitForwardBC(EQ); asm.emitLVAL (S0, VM_Processor.IN_JAVA); // S0 <- new state value asm.emitSTWCXr(S0, S1, PROCESSOR_REGISTER); // attempt to change state to IN_JAVA asm.emitBC (NE, retryLoop); // br if failure -retry lwarx by jumping to label0 VM_ForwardReference frInJava = asm.emitForwardB(); // branch around code to call sysYield // branch to here if blocked in native, call sysVirtualProcessorYield (pthread yield) // must save volatile gprs & fprs before the call and restore after // frBlocked.resolve(asm); offset = STACKFRAME_HEADER_SIZE; // save volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // save volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitLAddr(S1, VM_Entrypoints.the_boot_recordField.getOffsetAsInt(), JTOC); // get boot record address asm.emitMR (PROCESSOR_REGISTER, JTOC); // save JTOC so we can restore below asm.emitLAddr(JTOC, VM_Entrypoints.sysTOCField.getOffsetAsInt(), S1); // load TOC for syscalls from bootrecord asm.emitLAddr(KLUDGE_TI_REG, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffsetAsInt(), S1); // load addr of function asm.emitMTLR (KLUDGE_TI_REG); asm.emitBCLRL(); // call sysVirtualProcessorYield in sys.C asm.emitMR (JTOC, PROCESSOR_REGISTER); // restore JTOC // restore the saved volatile GPRs 3-10 and FPRs 1-6 offset = STACKFRAME_HEADER_SIZE; // restore volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitLAddr (i, offset, FP); offset+=BYTES_IN_ADDRESS; } // restore volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitLFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitB (retryLoop); // br back to label0 to try lwarx again // NOW_IN_JAVA: // JTOC, and PR are all as Jikes RVM expects them; // params are where the Jikes RVM calling conventions expects them. // frInJava.resolve(asm); // get pointer to top java frame from JNIEnv, compute offset from current // frame pointer (offset to avoid more interior pointers) and save offset // in this glue frame // asm.emitLAddr (S0, VM_Entrypoints.JNITopJavaFPField.getOffsetAsInt(), T0); // get addr of top java frame from JNIEnv asm.emitSUBFC (S0, FP, S0); // S0 <- offset from current FP // AIX -4, LINUX - 8 asm.emitSTW(S0, glueFrameSize + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // store offset at end of glue frame // BRANCH TO THE PROLOG FOR THE JNI FUNCTION VM_ForwardReference frNormalPrologue = asm.emitForwardBL(); // relative branch and link past the following epilog, to the normal prolog of the method // the normal epilog of the method will return to the epilog here to pop the glue stack frame // RETURN TO HERE FROM EPILOG OF JNI FUNCTION // CAUTION: START OF EPILOG OF GLUE CODE // The section of code from here to "END OF EPILOG OF GLUE CODE" is nestled between // the glue code prolog and the real body of the JNI method. // T0 & T1 (R3 & R4) or F1 contain the return value from the function - DO NOT USE // assume: JTOC and PROCESSOR_REG are valid, and all RVM non-volatile // GPRs and FPRs have been restored. Our processor state will be IN_JAVA. // establish T2 -> current thread's VM_JNIEnvironment, from activeThread field // of current processor asm.emitLAddr(T2, VM_Entrypoints.activeThreadField.getOffsetAsInt(), PROCESSOR_REGISTER); // T2 <- activeThread of PR asm.emitLAddr(T2, VM_Entrypoints.jniEnvField.getOffsetAsInt(), T2); // T2 <- JNIEnvironment // before returning to C, set pointer to top java frame in JNIEnv, using offset // saved in this glue frame during transition from C to Java. GC will use this saved // frame pointer if it is necessary to do GC with a processors active thread // stuck (and blocked) in native C, ie. GC starts scanning the threads stack at that frame. // AIX -4, LINUX -8 asm.emitLInt (T3, glueFrameSize + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // load offset from FP to top java frame asm.emitADD (T3, FP, T3); // T3 <- address of top java frame asm.emitSTAddr(T3, VM_Entrypoints.JNITopJavaFPField.getOffsetAsInt(), T2); // store TopJavaFP back into JNIEnv // check to see if this frame address is the sentinel since there // may be no further Java frame below asm.emitCMPAddrI(T3, VM_Constants.STACKFRAME_SENTINEL_FP.toInt()); VM_ForwardReference fr4 = asm.emitForwardBC(EQ); asm.emitLAddr(S0, 0, T3); // get fp for caller of prev J to C transition frame fr4.resolve(asm); // store current PR into VM_JNIEnvironment; we may have switched PRs while in Java mode. asm.emitSTAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffsetAsInt(), T2); // change the state of the VP to IN_NATIVE. // asm.emitLVAL (S0, VM_Processor.IN_NATIVE); asm.emitSTW (S0, VM_Entrypoints.vpStatusField.getOffsetAsInt(), PROCESSOR_REGISTER); // Restore those AIX nonvolatile registers saved in the prolog above // Here we only save & restore ONLY those registers not restored by RVM // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_RVM_RESERVED_NV_GPR; i <=LAST_RVM_RESERVED_NV_GPR; i++) { asm.emitLAddr (i, offset, FP); // 4 instructions offset += BYTES_IN_ADDRESS; } // pop frame asm.emitADDI(FP, glueFrameSize, FP); // load return address & return to caller // T0 & T1 (or F1) should still contain the return value // asm.emitLAddr(T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR(T2); asm.emitBCLR (); // branch always, through link register // END OF EPILOG OF GLUE CODE; rest of method generated by VM_Compiler from bytecodes of method in VM_JNIFunctions frNormalPrologue.resolve(asm); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_JNICompiler.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2103,
21308,
344,
1085,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
312,
451,
13,
288,
565,
509,
1384,
31,
565,
1250,
4692,
27232,
31,
565,
509,
569,
3175,
6275,
273,
374,
31,
3639,
514,
312,
451,
461,
273,
312,
451,
18,
17994,
7675,
10492,
5621,
565,
309,
14015,
81,
451,
461,
18,
17514,
1190,
2932,
1477,
7923,
597,
312,
451,
461,
18,
5839,
1190,
2932,
1305,
6,
3719,
747,
3639,
312,
451,
461,
18,
14963,
2932,
1908,
921,
6,
3719,
1377,
4692,
27232,
273,
638,
31,
565,
469,
1377,
4692,
27232,
273,
629,
31,
565,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
5535,
1792,
67,
51,
67,
2090,
45,
565,
368,
4163,
2870,
3844,
434,
3476,
716,
4260,
358,
506,
3096,
358,
326,
2623,
565,
368,
869,
6887,
13200,
434,
326,
569,
3175,
924,
18,
1220,
11096,
353,
565,
368,
1643,
16418,
3241,
2690,
434,
4259,
924,
903,
506,
316,
10285,
471,
565,
368,
17583,
4041,
18,
12484,
1508,
3344,
890,
578,
1059,
434,
326,
1472,
2727,
1404,
565,
368,
4500,
731,
316,
326,
3372,
13466,
261,
46,
50,
45,
5494,
16,
667,
16,
707,
565,
368,
350,
16,
791,
733,
2934,
565,
309,
261,
6117,
27232,
13,
288,
1377,
8251,
67,
7534,
8526,
30973,
273,
312,
451,
18,
588,
1662,
2016,
5621,
1377,
509,
1501,
1380,
273,
30973,
18,
2469,
31,
1850,
364,
261,
474,
277,
33,
20,
31,
277,
32,
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,
760,
918,
2103,
21308,
344,
1085,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
312,
451,
13,
288,
565,
509,
1384,
31,
565,
1250,
4692,
27232,
31,
565,
509,
569,
3175,
6275,
273,
374,
31,
3639,
514,
312,
451,
461,
273,
312,
451,
18,
17994,
7675,
10492,
5621,
565,
309,
14015,
81,
451,
461,
18,
17514,
1190,
2932,
1477,
7923,
597,
312,
451,
461,
18,
5839,
1190,
2932,
1305,
6,
3719,
747,
3639,
312,
451,
461,
18,
14963,
2932,
1908,
921,
6,
3719,
1377,
4692,
27232,
273,
638,
31,
565,
469,
1377,
4692,
27232,
273,
629,
31,
565,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
5535,
1792,
2
] |
int selectedRow = _comboSolutionList.getSelectedIndex(); final int solutionID = _solutions[selectedRow].getInfo().getId(); LOGGER.info("chosen solution: " + solutionID); Solution solution; try { solution = (Solution) _solutionManager.getSolution(new IUniqueId() { public int getId() { return solutionID;
|
if (_solutionChooserFrame == null) { int result = JOptionPane.showConfirmDialog(_parent, getSolutionsPanel(), "Choose solution", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); approved = (result == JOptionPane.OK_OPTION); } else { approved = true; } if (approved) { int selectedRow = _comboSolutionList.getSelectedIndex(); final int solutionID = _solutions[selectedRow].getInfo().getId(); LOGGER.info("chosen solution: " + solutionID); Solution solution; try { solution = (Solution) _solutionManager.getSolution(new IUniqueId() { public int getId() { return solutionID; } }); try { solution.getDataEngine(); } catch (Exception e) { LOGGER.fatal("", e); Utils.showErrorMessage(Messages.getString("ERR_CANNOT_OPEN_SOLUTION")); return;
|
public void openSolution() { int selectedRow = _comboSolutionList.getSelectedIndex(); final int solutionID = _solutions[selectedRow].getInfo().getId(); LOGGER.info("chosen solution: " + solutionID); //FIXME - do it in better way Solution solution; try { solution = (Solution) _solutionManager.getSolution(new IUniqueId() { public int getId() { return solutionID; } }); // forcing connecting to external database try { solution.getDataEngine(); } catch (Exception e) { LOGGER.fatal("", e); Utils.showErrorMessage("ERR_CANNOT_OPEN_SOLUTION"); return; } LOGGER.info("Connected to external data base"); IProject project = solution.getProjectManager().createProject(); solution.getProjectManager().addProject(project); } catch (PlatformException e) { LOGGER.fatal("", e); Utils.showErrorMessage("ERR_CANNOT_CREATE_PROJECT"); return; } _statusBar.setItem(SB_CUR_SOLUTION, solution.getInfo().getName()); _solutionChooserFrame.setVisible(false); _parent.setVisible(true); }
|
12741 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12741/7f57a108614c12ba183fc4f0c136eb5382b6ee2e/SolutionManagerGUI.java/clean/salomon/platform/trunk/src/salomon/engine/controller/gui/SolutionManagerGUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1696,
16135,
1435,
202,
95,
202,
202,
474,
3170,
1999,
273,
389,
25053,
16135,
682,
18,
588,
7416,
1016,
5621,
202,
202,
6385,
509,
6959,
734,
273,
389,
18281,
6170,
63,
8109,
1999,
8009,
588,
966,
7675,
26321,
5621,
202,
202,
8757,
18,
1376,
2932,
343,
8918,
6959,
30,
315,
397,
6959,
734,
1769,
202,
202,
759,
25810,
300,
741,
518,
316,
7844,
4031,
202,
202,
16135,
6959,
31,
202,
202,
698,
288,
1082,
202,
13385,
273,
261,
16135,
13,
389,
13385,
1318,
18,
588,
16135,
12,
2704,
467,
24174,
1435,
288,
9506,
202,
482,
509,
2634,
1435,
9506,
202,
95,
6862,
202,
2463,
6959,
734,
31,
9506,
202,
97,
1082,
202,
22938,
1082,
202,
759,
364,
2822,
14244,
358,
3903,
2063,
1082,
202,
698,
288,
9506,
202,
13385,
18,
588,
751,
4410,
5621,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
8757,
18,
30709,
2932,
3113,
425,
1769,
9506,
202,
1989,
18,
4500,
14935,
2932,
9712,
67,
39,
16791,
67,
11437,
67,
19815,
13269,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
8757,
18,
1376,
2932,
8932,
358,
3903,
501,
1026,
8863,
1082,
202,
45,
4109,
1984,
273,
6959,
18,
588,
4109,
1318,
7675,
2640,
4109,
5621,
1082,
202,
13385,
18,
588,
4109,
1318,
7675,
1289,
4109,
12,
4406,
1769,
202,
202,
97,
1044,
261,
8201,
503,
425,
13,
288,
1082,
202,
8757,
18,
30709,
2932,
3113,
425,
1769,
1082,
202,
1989,
18,
4500,
14935,
2932,
9712,
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,
1696,
16135,
1435,
202,
95,
202,
202,
474,
3170,
1999,
273,
389,
25053,
16135,
682,
18,
588,
7416,
1016,
5621,
202,
202,
6385,
509,
6959,
734,
273,
389,
18281,
6170,
63,
8109,
1999,
8009,
588,
966,
7675,
26321,
5621,
202,
202,
8757,
18,
1376,
2932,
343,
8918,
6959,
30,
315,
397,
6959,
734,
1769,
202,
202,
759,
25810,
300,
741,
518,
316,
7844,
4031,
202,
202,
16135,
6959,
31,
202,
202,
698,
288,
1082,
202,
13385,
273,
261,
16135,
13,
389,
13385,
1318,
18,
588,
16135,
12,
2704,
467,
24174,
1435,
288,
9506,
202,
482,
509,
2634,
1435,
9506,
202,
95,
6862,
202,
2463,
6959,
734,
31,
9506,
202,
97,
1082,
202,
22938,
1082,
202,
2
] |
public PatternDescr lhs_or() throws RecognitionException { PatternDescr d; PatternDescr left = null; PatternDescr right = null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:17: (left= lhs_and ( ('or'|'||')right= lhs_and )* ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:17: left= lhs_and ( ('or'|'||')right= lhs_and )* { OrDescr or = null; following.push(FOLLOW_lhs_and_in_lhs_or2153); left=lhs_and(); following.pop(); d = left; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:645:17: ( ('or'|'||')right= lhs_and )* loop54: do { int alt54=2; int LA54_0 = input.LA(1); if ( LA54_0==39||LA54_0==50 ) { alt54=1; } switch (alt54) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:645:25: ('or'|'||')right= lhs_and { if ( input.LA(1)==39||input.LA(1)==50 ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2163); throw mse; } following.push(FOLLOW_lhs_and_in_lhs_or2174); right=lhs_and(); following.pop(); if ( or == null ) { or = new OrDescr(); or.addDescr( left ); d = or; } or.addDescr( right ); } break; default : break loop54; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
280,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
2002,
273,
446,
31,
3639,
6830,
16198,
2145,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
1105,
23,
30,
4033,
30,
261,
4482,
33,
8499,
67,
464,
261,
7707,
280,
11,
16637,
20081,
6134,
4083,
33,
8499,
67,
464,
8618,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
1105,
23,
30,
4033,
30,
2002,
33,
8499,
67,
464,
261,
7707,
280,
11,
16637,
20081,
6134,
4083,
33,
8499,
67,
464,
8618,
5411,
288,
2398,
2965,
16198,
578,
273,
446,
31,
2398,
3751,
18,
6206,
12,
29890,
67,
80,
4487,
67,
464,
67,
267,
67,
80,
4487,
67,
280,
22,
30305,
1769,
5411,
2002,
33,
80,
4487,
67,
464,
5621,
5411,
3751,
18,
5120,
5621,
5411,
302,
273,
2002,
31,
2398,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
1105,
25,
30,
4033,
30,
261,
7707,
280,
11,
16637,
20081,
6134,
4083,
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,
6830,
16198,
8499,
67,
280,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
2002,
273,
446,
31,
3639,
6830,
16198,
2145,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
1105,
23,
30,
4033,
30,
261,
4482,
33,
8499,
67,
464,
261,
7707,
280,
11,
16637,
20081,
6134,
4083,
33,
8499,
67,
464,
8618,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
2
] |
||
deleteSchemeButton.setText(Util.translateString(RESOURCE_BUNDLE, "deleteSchemeButton.Text"));
|
deleteSchemeButton.setText(NewKeysPreferenceMessages.DeleteSchemeButton_Text);
|
private final Control createSchemeControls(final Composite parent) { GridLayout layout; GridData gridData; int widthHint; // Create a composite to hold the controls. final Composite schemeControls = new Composite(parent, SWT.NONE); layout = new GridLayout(3, false); layout.marginWidth = 0; schemeControls.setLayout(layout); gridData = new GridData(); gridData.grabExcessHorizontalSpace = true; gridData.horizontalAlignment = SWT.FILL; schemeControls.setLayoutData(gridData); // Create the label. final Label schemeLabel = new Label(schemeControls, SWT.NONE); schemeLabel.setText(Util.translateString(RESOURCE_BUNDLE, "schemeLabel.Text")); //$NON-NLS-1$ // Create the combo. schemeCombo = new ComboViewer(schemeControls); schemeCombo.setLabelProvider(new NamedHandleObjectLabelProvider()); schemeCombo.setContentProvider(new ArrayContentProvider()); gridData = new GridData(); gridData.grabExcessHorizontalSpace = true; gridData.horizontalAlignment = SWT.FILL; schemeCombo.getCombo().setLayoutData(gridData); schemeCombo .addSelectionChangedListener(new ISelectionChangedListener() { public final void selectionChanged( final SelectionChangedEvent event) { selectSchemeCombo(event); } }); // Create the delete button. final Button deleteSchemeButton = new Button(schemeControls, SWT.PUSH); gridData = new GridData(); widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); deleteSchemeButton.setText(Util.translateString(RESOURCE_BUNDLE, "deleteSchemeButton.Text")); //$NON-NLS-1$ gridData.widthHint = Math.max(widthHint, deleteSchemeButton .computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x) + 5; deleteSchemeButton.setLayoutData(gridData); return schemeControls; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/513fdd2ff09faa46895497ae1bc94b7630736b66/NewKeysPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/NewKeysPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
8888,
752,
9321,
16795,
12,
6385,
14728,
982,
13,
288,
202,
202,
6313,
3744,
3511,
31,
202,
202,
6313,
751,
3068,
751,
31,
202,
202,
474,
1835,
7002,
31,
202,
202,
759,
1788,
279,
9635,
358,
6887,
326,
11022,
18,
202,
202,
6385,
14728,
4355,
16795,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6741,
273,
394,
7145,
3744,
12,
23,
16,
629,
1769,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
9068,
16795,
18,
542,
3744,
12,
6741,
1769,
202,
202,
5222,
751,
273,
394,
7145,
751,
5621,
202,
202,
5222,
751,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
5222,
751,
18,
18396,
11535,
273,
348,
8588,
18,
29818,
31,
202,
202,
9068,
16795,
18,
542,
3744,
751,
12,
5222,
751,
1769,
202,
202,
759,
1788,
326,
1433,
18,
202,
202,
6385,
5287,
4355,
2224,
273,
394,
5287,
12,
9068,
16795,
16,
348,
8588,
18,
9826,
1769,
202,
202,
9068,
2224,
18,
542,
1528,
12,
1304,
18,
13929,
780,
12,
11395,
67,
30245,
16,
9506,
202,
6,
9068,
2224,
18,
1528,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
1788,
326,
16778,
18,
202,
202,
9068,
16156,
273,
394,
1286,
1075,
18415,
12,
9068,
16795,
1769,
202,
202,
9068,
16156,
18,
542,
2224,
2249,
12,
2704,
9796,
3259,
921,
2224,
2249,
10663,
202,
202,
9068,
16156,
18,
542,
1350,
2249,
12,
2704,
1510,
1350,
2249,
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,
727,
8888,
752,
9321,
16795,
12,
6385,
14728,
982,
13,
288,
202,
202,
6313,
3744,
3511,
31,
202,
202,
6313,
751,
3068,
751,
31,
202,
202,
474,
1835,
7002,
31,
202,
202,
759,
1788,
279,
9635,
358,
6887,
326,
11022,
18,
202,
202,
6385,
14728,
4355,
16795,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6741,
273,
394,
7145,
3744,
12,
23,
16,
629,
1769,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
9068,
16795,
18,
542,
3744,
12,
6741,
1769,
202,
202,
5222,
751,
273,
394,
7145,
751,
5621,
202,
202,
5222,
751,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
5222,
751,
2
] |
public void write (byte[] buf, int off, int len) throws IOException
|
public void write (int bval) throws IOException
|
public void write (byte[] buf, int off, int len) throws IOException { out.write(buf, off, len); sum.update(buf, off, len); }
|
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/042d4db7ad312de1d64b02b958de0d692ee82bfd/CheckedOutputStream.java/buggy/libjava/java/util/zip/CheckedOutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
261,
474,
324,
1125,
13,
1216,
1860,
225,
288,
565,
596,
18,
2626,
12,
4385,
16,
3397,
16,
562,
1769,
565,
2142,
18,
2725,
12,
4385,
16,
3397,
16,
562,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
261,
474,
324,
1125,
13,
1216,
1860,
225,
288,
565,
596,
18,
2626,
12,
4385,
16,
3397,
16,
562,
1769,
565,
2142,
18,
2725,
12,
4385,
16,
3397,
16,
562,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(lastComment != null) {
|
if (lastComment != null) {
|
public Set<ITaskListNotification> getNotifications() { Set<ITaskListNotification> notifications = new HashSet<ITaskListNotification>(); // Incoming Changes for (TaskRepository repository : getRepositoryManager().getAllRepositories()) { for (AbstractRepositoryTask repositoryTask : TasksUiPlugin.getTaskListManager().getTaskList().getRepositoryTasks(repository.getUrl())) { if(repositoryTask.getSyncState() == RepositoryTaskSyncState.INCOMING && repositoryTask.isNotified() == false) { TaskListNotificationIncoming notification = new TaskListNotificationIncoming(repositoryTask); if(repositoryTask.getTaskData() != null && repositoryTask.getTaskData().getComments() != null) { List<TaskComment> taskComments = repositoryTask.getTaskData().getComments(); TaskComment lastComment = taskComments.get(taskComments.size() - 1); if(lastComment != null) { notification.setDescription(lastComment.getText()); } } notifications.add(notification); repositoryTask.setNotified(true); } } } // New query hits for (AbstractRepositoryQuery query : TasksUiPlugin.getTaskListManager().getTaskList().getQueries()) { for (AbstractQueryHit hit : query.getHits()) { if(hit.getCorrespondingTask() == null && hit.isNotified() == false) { notifications.add(new TaskListNotificationQueryIncoming(hit)); hit.setNotified(true); } } } return notifications; }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/c54f9036f0b1dcacc991130a35cae02940aa7855/TasksUiPlugin.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1000,
32,
1285,
835,
682,
4386,
34,
336,
14111,
1435,
288,
1082,
202,
694,
32,
1285,
835,
682,
4386,
34,
9208,
273,
394,
6847,
32,
1285,
835,
682,
4386,
34,
5621,
9506,
202,
759,
26437,
17776,
1082,
202,
1884,
261,
2174,
3305,
3352,
294,
8261,
1318,
7675,
588,
1595,
18429,
10756,
288,
9506,
202,
1884,
261,
7469,
3305,
2174,
3352,
2174,
294,
20350,
13943,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
588,
3305,
6685,
12,
9071,
18,
588,
1489,
1435,
3719,
288,
6862,
202,
430,
12,
9071,
2174,
18,
588,
4047,
1119,
1435,
422,
6281,
2174,
4047,
1119,
18,
706,
4208,
1360,
597,
3352,
2174,
18,
291,
1248,
939,
1435,
422,
629,
13,
288,
25083,
202,
2174,
682,
4386,
20370,
3851,
273,
394,
3837,
682,
4386,
20370,
12,
9071,
2174,
1769,
6862,
6862,
9506,
202,
430,
12,
9071,
2174,
18,
588,
2174,
751,
1435,
480,
446,
597,
3352,
2174,
18,
588,
2174,
751,
7675,
588,
9051,
1435,
480,
446,
13,
288,
6862,
1082,
202,
682,
32,
2174,
4469,
34,
1562,
9051,
273,
3352,
2174,
18,
588,
2174,
751,
7675,
588,
9051,
5621,
6862,
1082,
202,
2174,
4469,
1142,
4469,
273,
1562,
9051,
18,
588,
12,
4146,
9051,
18,
1467,
1435,
300,
404,
1769,
6862,
1082,
202,
430,
12,
2722,
4469,
480,
446,
13,
288,
6862,
9506,
202,
9927,
18,
542,
3291,
12,
2722,
4469,
18,
588,
1528,
10663,
6862,
1082,
202,
97,
25083,
202,
97,
6862,
6862,
6862,
6862,
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,
3196,
202,
482,
1000,
32,
1285,
835,
682,
4386,
34,
336,
14111,
1435,
288,
1082,
202,
694,
32,
1285,
835,
682,
4386,
34,
9208,
273,
394,
6847,
32,
1285,
835,
682,
4386,
34,
5621,
9506,
202,
759,
26437,
17776,
1082,
202,
1884,
261,
2174,
3305,
3352,
294,
8261,
1318,
7675,
588,
1595,
18429,
10756,
288,
9506,
202,
1884,
261,
7469,
3305,
2174,
3352,
2174,
294,
20350,
13943,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
588,
3305,
6685,
12,
9071,
18,
588,
1489,
1435,
3719,
288,
6862,
202,
430,
12,
9071,
2174,
18,
588,
4047,
1119,
1435,
422,
6281,
2174,
4047,
1119,
18,
706,
4208,
1360,
597,
3352,
2174,
18,
291,
1248,
939,
1435,
422,
629,
2
] |
RubyIO.print(defout.toRubyObject(), args);
|
RubyIO.print(defout, args);
|
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); RubyIO.print(defout.toRubyObject(), args); return recv.getRuntime().getNil(); }
|
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyKernel.java/buggy/org/jruby/RubyKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1172,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
15908,
10340,
921,
443,
617,
322,
273,
10665,
18,
588,
5576,
7675,
588,
5160,
1537,
2932,
8,
2984,
1769,
3639,
19817,
4294,
18,
1188,
12,
536,
659,
16,
833,
1769,
3639,
327,
10665,
18,
588,
5576,
7675,
588,
12616,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1172,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
15908,
10340,
921,
443,
617,
322,
273,
10665,
18,
588,
5576,
7675,
588,
5160,
1537,
2932,
8,
2984,
1769,
3639,
19817,
4294,
18,
1188,
12,
536,
659,
16,
833,
1769,
3639,
327,
10665,
18,
588,
5576,
7675,
588,
12616,
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
] |
public void visitDAsgnCurrNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
|
public void visitDAsgnCurrNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
|
public void visitDAsgnCurrNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
9793,
1055,
82,
20143,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
77,
30019,
18,
24805,
907,
7675,
9436,
12,
2211,
1769,
202,
202,
19574,
12,
77,
30019,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
9793,
1055,
82,
20143,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
77,
30019,
18,
24805,
907,
7675,
9436,
12,
2211,
1769,
202,
202,
19574,
12,
77,
30019,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println( "nope" );
|
try { displayer.displayNDX( ndx ); } catch ( ServiceException e ) {
|
public void actionPerformed( ActionEvent evt ) { // try { // displayer.displayNDX( ndx ); System.out.println( "nope" ); // } // catch ( ServiceException e ) { beep(); // e.printStackTrace(); // } }
|
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/bf39145ae80b27554ec1f4f754c0aa12b8727d86/NdxDataNode.java/clean/treeview/src/main/uk/ac/starlink/treeview/NdxDataNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
26100,
12,
19641,
6324,
262,
288,
10792,
368,
225,
775,
288,
10792,
368,
1377,
2562,
264,
18,
5417,
2908,
60,
12,
5346,
92,
11272,
12900,
775,
288,
2562,
264,
18,
5417,
2908,
60,
12,
5346,
92,
11272,
289,
1044,
261,
16489,
425,
262,
288,
5375,
368,
225,
289,
10792,
368,
225,
1044,
261,
16489,
425,
262,
288,
18701,
506,
881,
5621,
10792,
368,
1377,
425,
18,
1188,
6332,
5621,
10792,
368,
225,
289,
10792,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
26100,
12,
19641,
6324,
262,
288,
10792,
368,
225,
775,
288,
10792,
368,
1377,
2562,
264,
18,
5417,
2908,
60,
12,
5346,
92,
11272,
12900,
775,
288,
2562,
264,
18,
5417,
2908,
60,
12,
5346,
92,
11272,
289,
1044,
261,
16489,
425,
262,
288,
5375,
368,
225,
289,
10792,
368,
225,
1044,
261,
16489,
425,
262,
288,
18701,
506,
881,
5621,
10792,
368,
1377,
425,
18,
1188,
6332,
5621,
10792,
368,
225,
289,
10792,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (lineStart >= offset)
|
if (lineStart < 0)
|
int getOffset() { if (lineStart >= offset) // The line begins somewhere in the other buffer. return offset + (otherEnd - otherStart); else return offset - lineStart; }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/091a93a0a477a3678d94e8451637147067cc12da/LineBuffer.java/buggy/js/rhino/src/org/mozilla/javascript/LineBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
13386,
1435,
288,
3639,
309,
261,
1369,
1685,
411,
374,
13,
5411,
368,
1021,
980,
17874,
22234,
316,
326,
1308,
1613,
18,
5411,
327,
1384,
397,
261,
3011,
1638,
300,
1308,
1685,
1769,
3639,
469,
5411,
327,
1384,
300,
29208,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
13386,
1435,
288,
3639,
309,
261,
1369,
1685,
411,
374,
13,
5411,
368,
1021,
980,
17874,
22234,
316,
326,
1308,
1613,
18,
5411,
327,
1384,
397,
261,
3011,
1638,
300,
1308,
1685,
1769,
3639,
469,
5411,
327,
1384,
300,
29208,
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
] |
asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffset()); asm.emitCALL_RegDisp(S0, VM_Entrypoints.sysFloatToIntIPField.getOffset());
|
asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffsetAsInt()); asm.emitCALL_RegDisp(S0, VM_Entrypoints.sysFloatToIntIPField.getOffsetAsInt());
|
protected final void emit_f2i() { // (1) save RVM nonvolatiles int numNonVols = NONVOLATILE_GPRS.length; for (int i = 0; i<numNonVols; i++) { asm.emitPUSH_Reg(NONVOLATILE_GPRS[i]); } // (2) Push arg to C function asm.emitPUSH_RegDisp(SP, numNonVols*WORDSIZE); // (3) invoke C function through bootrecord asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffset()); asm.emitCALL_RegDisp(S0, VM_Entrypoints.sysFloatToIntIPField.getOffset()); // (4) pop argument; asm.emitPOP_Reg(S0); // (5) restore RVM nonvolatiles for (int i = numNonVols-1; i >=0; i--) { asm.emitPOP_Reg(NONVOLATILE_GPRS[i]); } // (6) put result on expression stack asm.emitMOV_RegDisp_Reg(SP, 0, T0); }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/VM_Compiler.java/buggy/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
74,
22,
77,
1435,
288,
565,
368,
261,
21,
13,
1923,
534,
7397,
1661,
15416,
270,
1449,
565,
509,
818,
3989,
58,
3528,
273,
18708,
29439,
67,
43,
8025,
55,
18,
2469,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
32,
2107,
3989,
58,
3528,
31,
277,
27245,
288,
1377,
20415,
18,
18356,
30348,
67,
1617,
12,
3993,
29439,
67,
43,
8025,
55,
63,
77,
19226,
565,
289,
565,
368,
261,
22,
13,
8547,
1501,
358,
385,
445,
377,
20415,
18,
18356,
30348,
67,
1617,
1669,
84,
12,
3118,
16,
818,
3989,
58,
3528,
14,
7952,
4574,
1769,
565,
368,
261,
23,
13,
4356,
385,
445,
3059,
4835,
3366,
565,
20415,
18,
18356,
5980,
58,
67,
1617,
67,
1617,
1669,
84,
12,
55,
20,
16,
804,
4296,
39,
16,
8251,
67,
1622,
4139,
18,
5787,
67,
7137,
67,
3366,
974,
18,
588,
2335,
10663,
565,
20415,
18,
18356,
13730,
67,
1617,
1669,
84,
12,
55,
20,
16,
8251,
67,
1622,
4139,
18,
9499,
4723,
17864,
2579,
974,
18,
588,
2335,
10663,
565,
368,
261,
24,
13,
1843,
1237,
31,
565,
20415,
18,
18356,
30374,
67,
1617,
12,
55,
20,
1769,
565,
368,
261,
25,
13,
5217,
534,
7397,
1661,
15416,
270,
1449,
565,
364,
261,
474,
277,
273,
818,
3989,
58,
3528,
17,
21,
31,
277,
1545,
20,
31,
277,
413,
13,
288,
1377,
20415,
18,
18356,
30374,
67,
1617,
12,
3993,
29439,
67,
43,
8025,
55,
63,
77,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
74,
22,
77,
1435,
288,
565,
368,
261,
21,
13,
1923,
534,
7397,
1661,
15416,
270,
1449,
565,
509,
818,
3989,
58,
3528,
273,
18708,
29439,
67,
43,
8025,
55,
18,
2469,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
32,
2107,
3989,
58,
3528,
31,
277,
27245,
288,
1377,
20415,
18,
18356,
30348,
67,
1617,
12,
3993,
29439,
67,
43,
8025,
55,
63,
77,
19226,
565,
289,
565,
368,
261,
22,
13,
8547,
1501,
358,
385,
445,
377,
20415,
18,
18356,
30348,
67,
1617,
1669,
84,
12,
3118,
16,
818,
3989,
58,
3528,
14,
7952,
4574,
1769,
565,
368,
261,
23,
13,
4356,
385,
445,
3059,
4835,
3366,
565,
20415,
2
] |
inStream.close ();
|
inStream.close();
|
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull variables int i; String str; Iterator iter; InputStream inStream; // We get the XML data tree XMLElement data = getXMLTree(); // We get the Packager Packager packager = getPackager(); // We add the variable declaration packager.setVariables(getVariables(data)); // We add the info packager.setInfo(getInfo(data)); // We add the GUIPrefs packager.setGUIPrefs(getGUIPrefs(data)); // We add the language packs iter = getLangpacksCodes(data).iterator(); while (iter.hasNext()) { str = (String) iter.next(); // The language pack - first try to get stream directly (for standalone compiler) inStream = getClass().getResourceAsStream("/bin/langpacks/installer/"+str+".xml"); if (inStream == null) { inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "installer" + File.separator + str + ".xml"); } packager.addLangPack(str, inStream); // The flag - try to get stream for standalone compiler inStream = getClass ().getResourceAsStream("/bin/langpacks/flags/"+str+".gif"); if (inStream == null) { inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "flags" + File.separator + str + ".gif"); } packager.addResource("flag." + str, inStream); inStream.close (); } // We add the resources iter = getResources(data).iterator(); while (iter.hasNext()) { Resource res = (Resource) iter.next(); if (res.parse) { if ((res.src == null) || (res.src_is != null)) { System.err.println("ERROR: cannot parse resource from stream. (Internal error.)"); packager.addResource(res.id, res.src_is); } if (null != varMap) { File resFile = new File(res.src); FileInputStream inFile = new FileInputStream(resFile); BufferedInputStream bin = new BufferedInputStream(inFile, 5120); File parsedFile = File.createTempFile("izpp", null, resFile.getParentFile()); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream bout = new BufferedOutputStream(outFile, 5120); VariableSubstitutor vs = new VariableSubstitutor(varMap); vs.substitute(bin, bout, res.type, res.encoding); bin.close(); bout.close(); inFile = new FileInputStream(parsedFile); packager.addResource(res.id, inFile); inFile.close(); parsedFile.delete(); } else { System.err.println("ERROR: no variable is defined. " + res.src + " is not parsed."); inStream = new FileInputStream(res.src); packager.addResource(res.id, inStream); inStream.close (); } } else { if (res.src != null) { inStream = new FileInputStream(res.src); } else { inStream = res.src_is; } packager.addResource(res.id, inStream); if (res.src != null) inStream.close (); } } // We add the native libraries iter = getNativeLibraries(data).iterator(); while (iter.hasNext()) { NativeLibrary nat = (NativeLibrary) iter.next(); inStream = new FileInputStream(nat.path); packager.addNativeLibrary(nat.name, inStream); } // We add the additionnal jar files content iter = getJars(data).iterator(); while (iter.hasNext()) packager.addJarContent((String) iter.next()); // We add the panels ArrayList panels = getPanels(data); TreeSet panelsCache = new TreeSet(); iter = getPanels(data).iterator(); while (iter.hasNext()) { Panel p = (Panel)iter.next(); // We locate the panel classes directory str = p.className; // first try to get a Jar file for standalone compiler JarInputStream panel_is = null; try { InputStream jarInStream = getClass().getResourceAsStream("/bin/panels/"+str+".jar"); if (jarInStream != null) panel_is = new JarInputStream (jarInStream); } catch (IOException e) { // for now, ignore this - try to read panel classes from filesystem panel_is = null; } if (panel_is != null) { if (panelsCache.contains(str)) continue; panelsCache.add(str); // now add files ZipEntry entry = null; while ((entry = panel_is.getNextEntry()) != null) packager.addPanelClass(entry.getName(), panel_is); } else { File dir = new File(Compiler.IZPACK_HOME + "bin" + File.separator + "panels" + File.separator + str); if (!dir.exists()) throw new Exception(str + " panel does not exist"); // We add each file in the panel folder if (panelsCache.contains(str)) continue; panelsCache.add(str); File[] files = dir.listFiles(); int nf = files.length; for (int j = 0; j < nf; j++) { if (files[j].isDirectory()) continue; FileInputStream inClass = new FileInputStream(files[j]); packager.addPanelClass(files[j].getName(), inClass); } } } // We set the panels order packager.setPanelsOrder(panels); Map storedFiles = new HashMap(); // We add the packs i = 0; //pack counter iter = getPacks(data).iterator(); while (iter.hasNext()) { Pack pack = (Pack) iter.next(); ZipOutputStream zipOut = packager.addPack(i, pack.name, pack.osConstraints, pack.required, pack.description, pack.preselected); zipOut.flush();//make sure buffers are flushed before we start counting ByteCountingOutputStream dos = new ByteCountingOutputStream(zipOut);//stream with byte counter ObjectOutputStream objOut = new ObjectOutputStream(dos); // We write the pack data objOut.writeInt(pack.packFiles.size()); Iterator iter2 = pack.packFiles.iterator(); long packageBytes = 0; while (iter2.hasNext()) { // Initialisations PackSource p = (PackSource) iter2.next(); File f = new File(p.src); FileInputStream in = new FileInputStream(f); long nbytes = f.length(); long mtime = f.lastModified(); String targetFilename = p.getTargetFilename (); // pack paths in canonical (unix) form regardless of current host o/s: if('/' != File.separatorChar) { targetFilename = targetFilename.replace(File.separatorChar, '/'); } // Writing PackFile pf = new PackFile(targetFilename, p.osConstraints, nbytes, mtime, p.override); long[] info = (long[])storedFiles.get(p.src); boolean addFile = true; if (info != null && packager.allowPackFileBackReferences()) { pf.setPreviousPackFileRef((int)info[0],info[1]); addFile = false; } objOut.writeObject(pf); objOut.flush();//make sure it is written long pos = dos.getByteCount();//get the position if (addFile) { byte[] buffer = new byte[5120]; long bytesWritten = 0; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { objOut.write(buffer, 0, bytesInBuffer); bytesWritten += bytesInBuffer; } if (bytesWritten != nbytes) throw new IOException ("File size mismatch when reading " + f); storedFiles.put(p.src,new long[]{i,pos}); } packageBytes += nbytes;//aldo could be not really written we still want to know size. in.close(); } packager.packAdded(i, packageBytes); // Write out information about parsable files objOut.writeInt(pack.parsables.size()); iter2 = pack.parsables.iterator(); while (iter2.hasNext()) objOut.writeObject(iter2.next()); // Write out information about executable files objOut.writeInt(pack.executables.size()); iter2 = pack.executables.iterator(); while (iter2.hasNext()) { objOut.writeObject(iter2.next()); } // Write out information about executable files objOut.writeInt(pack.updatechecks.size()); iter2 = pack.updatechecks.iterator(); while (iter2.hasNext()) { objOut.writeObject(iter2.next()); } // Cleanup objOut.flush(); zipOut.closeEntry(); i++; } // We ask the packager to finish packager.finish(); this.compileFailed = false; }
|
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
9213,
1435,
1216,
1185,
225,
288,
565,
368,
3883,
471,
1842,
30,
2660,
30,
2026,
1699,
5166,
309,
732,
2583,
1045,
2006,
565,
1387,
1026,
273,
394,
1387,
12,
31722,
2934,
588,
10368,
812,
5621,
565,
309,
16051,
1026,
18,
4169,
1994,
1435,
747,
401,
1026,
18,
291,
2853,
10756,
1377,
604,
394,
28227,
2932,
1941,
1026,
1867,
30,
13773,
1969,
1769,
3639,
368,
2672,
2854,
3152,
565,
509,
277,
31,
565,
514,
609,
31,
565,
4498,
1400,
31,
565,
5037,
28987,
31,
565,
368,
1660,
336,
326,
3167,
501,
2151,
565,
1139,
11155,
501,
273,
336,
4201,
2471,
5621,
565,
368,
1660,
336,
326,
7930,
6817,
565,
7930,
6817,
2298,
6817,
273,
30401,
6817,
5621,
565,
368,
1660,
527,
326,
2190,
8266,
565,
2298,
6817,
18,
542,
6158,
12,
588,
6158,
12,
892,
10019,
565,
368,
1660,
527,
326,
1123,
565,
2298,
6817,
18,
542,
966,
12,
588,
966,
12,
892,
10019,
565,
368,
1660,
527,
326,
10978,
1386,
2556,
565,
2298,
6817,
18,
542,
43,
5370,
1386,
2556,
12,
588,
43,
5370,
1386,
2556,
12,
892,
10019,
565,
368,
1660,
527,
326,
2653,
2298,
87,
565,
1400,
273,
24930,
2920,
87,
6295,
12,
892,
2934,
9838,
5621,
565,
1323,
261,
2165,
18,
5332,
2134,
10756,
565,
288,
1377,
609,
273,
261,
780,
13,
1400,
18,
4285,
5621,
1377,
368,
1021,
2653,
2298,
300,
1122,
775,
358,
336,
1407,
5122,
261,
1884,
17676,
5274,
13,
1377,
28987,
273,
2900,
7675,
588,
1420,
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,
1836,
9213,
1435,
1216,
1185,
225,
288,
565,
368,
3883,
471,
1842,
30,
2660,
30,
2026,
1699,
5166,
309,
732,
2583,
1045,
2006,
565,
1387,
1026,
273,
394,
1387,
12,
31722,
2934,
588,
10368,
812,
5621,
565,
309,
16051,
1026,
18,
4169,
1994,
1435,
747,
401,
1026,
18,
291,
2853,
10756,
1377,
604,
394,
28227,
2932,
1941,
1026,
1867,
30,
13773,
1969,
1769,
3639,
368,
2672,
2854,
3152,
565,
509,
277,
31,
565,
514,
609,
31,
565,
4498,
1400,
31,
565,
5037,
28987,
31,
565,
368,
1660,
336,
326,
3167,
501,
2151,
565,
1139,
11155,
501,
273,
336,
4201,
2471,
5621,
565,
368,
1660,
336,
326,
7930,
6817,
565,
7930,
6817,
2298,
6817,
273,
30401,
6817,
2
] |
return pos == POS_BEFORE_FIRST;
|
return (pos == POS_BEFORE_FIRST) && (rowsInResult != 0);
|
public boolean isBeforeFirst() throws SQLException { return pos == POS_BEFORE_FIRST; }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/fb8d83e970f8d6bd9cc0f859d3736d3613730e2b/CursorResultSet.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/CursorResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
4649,
3759,
1435,
1216,
6483,
288,
3639,
327,
261,
917,
422,
12511,
67,
19152,
67,
15354,
13,
597,
261,
3870,
382,
1253,
480,
374,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
4649,
3759,
1435,
1216,
6483,
288,
3639,
327,
261,
917,
422,
12511,
67,
19152,
67,
15354,
13,
597,
261,
3870,
382,
1253,
480,
374,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
((IOffsettable)decl).setStartingOffset( firstToken.getOffset() );
|
((IOffsetable)decl).setStartingOffset( firstToken.getOffset() );
|
public Object simpleDeclarationBegin(Object container, Token firstToken) { SimpleDeclaration decl = new SimpleDeclaration(); ((IScope)container).addDeclaration(decl); if( container instanceof ClassSpecifier ) decl.setAccessSpecifier(new AccessSpecifier( ((ClassSpecifier)container).getCurrentVisibility() )); ((IOffsettable)decl).setStartingOffset( firstToken.getOffset() ); return decl; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/5b29e684d80c5641fa18714c94bcf608926b8162/DOMBuilder.java/buggy/core/org.eclipse.cdt.core/dom/org/eclipse/cdt/internal/core/dom/DOMBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
4143,
6094,
8149,
12,
921,
1478,
16,
3155,
1122,
1345,
13,
288,
202,
202,
5784,
6094,
3496,
273,
394,
4477,
6094,
5621,
202,
202,
12443,
45,
3876,
13,
3782,
2934,
1289,
6094,
12,
8840,
1769,
202,
202,
430,
12,
1478,
1276,
1659,
21416,
262,
1082,
202,
8840,
18,
542,
1862,
21416,
12,
2704,
5016,
21416,
12,
14015,
797,
21416,
13,
3782,
2934,
588,
3935,
10135,
1435,
262,
1769,
202,
202,
12443,
45,
2335,
2121,
13,
8840,
2934,
542,
11715,
2335,
12,
1122,
1345,
18,
588,
2335,
1435,
11272,
202,
202,
2463,
3496,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
4143,
6094,
8149,
12,
921,
1478,
16,
3155,
1122,
1345,
13,
288,
202,
202,
5784,
6094,
3496,
273,
394,
4477,
6094,
5621,
202,
202,
12443,
45,
3876,
13,
3782,
2934,
1289,
6094,
12,
8840,
1769,
202,
202,
430,
12,
1478,
1276,
1659,
21416,
262,
1082,
202,
8840,
18,
542,
1862,
21416,
12,
2704,
5016,
21416,
12,
14015,
797,
21416,
13,
3782,
2934,
588,
3935,
10135,
1435,
262,
1769,
202,
202,
12443,
45,
2335,
2121,
13,
8840,
2934,
542,
11715,
2335,
12,
1122,
1345,
18,
588,
2335,
1435,
11272,
202,
202,
2463,
3496,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} catch( AssertionFailedError e ) { if( "Connection properties not found (conf/odbc-connection.properties).".equals(e.getMessage()) ) {
|
runCursorScroll("ODBC", con); } catch (AssertionFailedError e) { if ("Connection properties not found (conf/odbc-connection.properties).".equals(e.getMessage())) {
|
public void testCursorScrollODBC() throws Exception { try { connectODBC(); } catch( AssertionFailedError e ) { if( "Connection properties not found (conf/odbc-connection.properties).".equals(e.getMessage()) ) { System.err.println("Skipping ODBC tests."); return; } else throw e; } runCursorScroll( "ODBC", con ); }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9db5c1e6691a6fe3d8b463f25975f411ab0e317c/PerformanceTest.java/clean/trunk/jtds/src/test/net/sourceforge/jtds/test/PerformanceTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6688,
6806,
1212,
16283,
1435,
1216,
1185,
565,
288,
3639,
775,
3639,
288,
5411,
3077,
1212,
16283,
5621,
3639,
289,
3639,
1044,
12,
9067,
2925,
668,
425,
262,
3639,
288,
5411,
309,
12,
315,
1952,
1790,
486,
1392,
261,
3923,
19,
10605,
71,
17,
4071,
18,
4738,
14944,
18,
14963,
12,
73,
18,
24906,
10756,
262,
5411,
288,
7734,
2332,
18,
370,
18,
8222,
2932,
16877,
531,
13183,
7434,
1199,
1769,
7734,
327,
31,
5411,
289,
5411,
469,
7734,
604,
425,
31,
3639,
289,
3639,
1086,
6688,
6806,
12,
315,
1212,
16283,
3113,
356,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6688,
6806,
1212,
16283,
1435,
1216,
1185,
565,
288,
3639,
775,
3639,
288,
5411,
3077,
1212,
16283,
5621,
3639,
289,
3639,
1044,
12,
9067,
2925,
668,
425,
262,
3639,
288,
5411,
309,
12,
315,
1952,
1790,
486,
1392,
261,
3923,
19,
10605,
71,
17,
4071,
18,
4738,
14944,
18,
14963,
12,
73,
18,
24906,
10756,
262,
5411,
288,
7734,
2332,
18,
370,
18,
8222,
2932,
16877,
531,
13183,
7434,
1199,
1769,
7734,
327,
31,
5411,
289,
5411,
469,
7734,
604,
425,
31,
3639,
289,
3639,
1086,
6688,
6806,
12,
315,
1212,
16283,
3113,
356,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int senderSize=bouquet.getSender().size(); for (int i2=0; i2<senderSize; i2++) { BOSender sender = (BOSender)bouquet.getSender().get(i2); if (sender.getChanId().equals(runningChanId) && this.getSelectedSender() == null) {
|
int senderSize = bouquet.getSender().size(); for (int i2 = 0; i2 < senderSize; i2++) { BOSender sender = (BOSender) bouquet.getSender().get(i2); if (sender.getChanId().equals(runningChanId) && this.getSelectedSender() == null) {
|
public void selectRunningSender() { try { int listSize=getBouquetList().size(); String runningChanId = ControlMain.getBoxAccess().getChanIdOfRunningSender(); for (int i=0; i<listSize; i++) { //Schleife ueber die Bouquets BOBouquet bouquet = (BOBouquet)this.getBouquetList().get(i); bouquet.readSender(); int senderSize=bouquet.getSender().size(); for (int i2=0; i2<senderSize; i2++) { //Schleife ueber die Sender im Bouquet BOSender sender = (BOSender)bouquet.getSender().get(i2); if (sender.getChanId().equals(runningChanId) && this.getSelectedSender() == null) { this.setSelectedBouquet(bouquet); this.getMainView().getTabProgramm().getJComboBoxBouquets().setSelectedIndex(i); this.getMainView().getTabProgramm().getJTableChannels().setRowSelectionInterval(i2, i2); this.setSelectedSender(sender); break; } } } } catch (IOException e) { this.setSelectedBouquet((BOBouquet)this.getBouquetList().get(0)); this.getMainView().getTabProgramm().getJComboBoxBouquets().setSelectedIndex(0); } }
|
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/42fadab72d415385672b25bd759344caab6749a0/ControlProgramTab.java/clean/jtg/control/ControlProgramTab.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2027,
7051,
12021,
1435,
288,
202,
202,
698,
288,
1082,
565,
509,
666,
1225,
33,
588,
38,
1395,
28357,
682,
7675,
1467,
5621,
1082,
202,
780,
3549,
6255,
548,
273,
8888,
6376,
18,
588,
3514,
1862,
7675,
588,
6255,
548,
951,
7051,
12021,
5621,
25083,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
1098,
1225,
31,
277,
27245,
288,
368,
55,
343,
298,
24723,
17869,
744,
10387,
605,
1395,
372,
2413,
9506,
202,
5315,
38,
1395,
28357,
800,
89,
28357,
273,
261,
5315,
38,
1395,
28357,
13,
2211,
18,
588,
38,
1395,
28357,
682,
7675,
588,
12,
77,
1769,
9506,
202,
16818,
28357,
18,
896,
12021,
5621,
9506,
202,
474,
5793,
1225,
33,
16818,
28357,
18,
588,
12021,
7675,
1467,
5621,
9506,
202,
1884,
261,
474,
277,
22,
33,
20,
31,
277,
22,
32,
15330,
1225,
31,
277,
22,
27245,
288,
368,
55,
343,
298,
24723,
17869,
744,
10387,
15044,
709,
605,
1395,
28357,
6862,
202,
24100,
2345,
5793,
273,
261,
24100,
2345,
13,
16818,
28357,
18,
588,
12021,
7675,
588,
12,
77,
22,
1769,
6862,
202,
430,
261,
15330,
18,
588,
6255,
548,
7675,
14963,
12,
8704,
6255,
548,
13,
597,
333,
18,
588,
7416,
12021,
1435,
422,
446,
13,
288,
25083,
202,
2211,
18,
542,
7416,
38,
1395,
28357,
12,
16818,
28357,
1769,
25083,
202,
2211,
18,
588,
6376,
1767,
7675,
588,
5661,
9459,
81,
7675,
588,
46,
22199,
38,
1395,
372,
2413,
7675,
542,
7416,
1016,
12,
77,
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,
2027,
7051,
12021,
1435,
288,
202,
202,
698,
288,
1082,
565,
509,
666,
1225,
33,
588,
38,
1395,
28357,
682,
7675,
1467,
5621,
1082,
202,
780,
3549,
6255,
548,
273,
8888,
6376,
18,
588,
3514,
1862,
7675,
588,
6255,
548,
951,
7051,
12021,
5621,
25083,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
1098,
1225,
31,
277,
27245,
288,
368,
55,
343,
298,
24723,
17869,
744,
10387,
605,
1395,
372,
2413,
9506,
202,
5315,
38,
1395,
28357,
800,
89,
28357,
273,
261,
5315,
38,
1395,
28357,
13,
2211,
18,
588,
38,
1395,
28357,
682,
7675,
588,
12,
77,
1769,
9506,
202,
16818,
28357,
18,
896,
12021,
5621,
9506,
202,
474,
5793,
1225,
33,
2
] |
properties,
|
protected ResourceSet doQuery(String query, DocumentSet docs, NodeSet contextSet, String sortExpr) throws XMLDBException { LOG.debug("query: " + query); DBBroker broker = null; try { broker = brokerPool.get(user); StaticContext context = new StaticContext(broker); context.setBaseURI(collection.getPath()); Map.Entry entry; // declare namespace/prefix mappings for(Iterator i = namespaceDecls.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); LOG.debug("prefix " + entry.getKey() + " = " + entry.getValue()); context.declareNamespace((String)entry.getKey(), (String)entry.getValue()); } // declare static variables for(Iterator i = variableDecls.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); context.declareVariable((String)entry.getKey(), (String)entry.getValue()); } XPathLexer2 lexer = new XPathLexer2(new StringReader(query)); XPathParser2 parser = new XPathParser2(lexer, false); XPathTreeParser2 treeParser = new XPathTreeParser2(context); parser.xpath(); if(parser.foundErrors()) { LOG.debug(parser.getErrorMessage()); throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, parser.getErrorMessage()); } AST ast = parser.getAST(); LOG.debug("generated AST: " + ast.toStringList()); PathExpr expr = new PathExpr(context); treeParser.xpath(ast, expr); if(treeParser.foundErrors()) { throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, treeParser.getErrorMessage(), treeParser.getLastException()); } LOG.info("query: " + expr.pprint()); long start = System.currentTimeMillis(); //if (parser.foundErrors()) // throw new XMLDBException(ErrorCodes.VENDOR_ERROR, parser.getErrorMsg()); Sequence result = null;// docs = (docs == null ? expr.preselect() : expr.preselect(docs));// if (docs.getLength() == 0) {// result = Sequence.EMPTY_SEQUENCE;// LOG.info("no documents!");// } else result = expr.eval(docs, contextSet, null); LOG.info( expr.pprint() + " found: " + result.getLength() + " in " + (System.currentTimeMillis() - start) + "ms."); LocalResourceSet resultSet = new LocalResourceSet( user, brokerPool, collection, result, properties, sortExpr); return resultSet; } catch (antlr.RecognitionException re) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, re.getMessage(), re); } catch (antlr.TokenStreamException te) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, te.getMessage(), te); } catch (IllegalArgumentException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (XPathException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (EXistException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } finally { brokerPool.release(broker); } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/c8334cc07663e3020616f9674c3107e45efa956d/LocalXPathQueryService.java/buggy/src/org/exist/xmldb/LocalXPathQueryService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2591,
694,
741,
1138,
12,
780,
843,
16,
4319,
694,
3270,
16,
3196,
202,
907,
694,
819,
694,
16,
514,
1524,
4742,
13,
202,
202,
15069,
26014,
503,
288,
3639,
2018,
18,
4148,
2932,
2271,
30,
315,
397,
843,
1769,
202,
202,
2290,
11194,
8625,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
21722,
273,
8625,
2864,
18,
588,
12,
1355,
1769,
5411,
10901,
1042,
819,
273,
394,
10901,
1042,
12,
21722,
1769,
5411,
819,
18,
542,
2171,
3098,
12,
5548,
18,
588,
743,
10663,
13491,
1635,
18,
1622,
1241,
31,
5411,
368,
14196,
1981,
19,
3239,
7990,
5411,
364,
12,
3198,
277,
273,
1981,
1799,
3251,
18,
4099,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
7734,
1241,
273,
261,
863,
18,
1622,
13,
77,
18,
4285,
5621,
7734,
2018,
18,
4148,
2932,
3239,
315,
397,
1241,
18,
588,
653,
1435,
397,
315,
273,
315,
397,
1241,
18,
24805,
10663,
7734,
819,
18,
29554,
3402,
12443,
780,
13,
4099,
18,
588,
653,
9334,
261,
780,
13,
4099,
18,
24805,
10663,
5411,
289,
5411,
368,
14196,
760,
3152,
5411,
364,
12,
3198,
277,
273,
2190,
1799,
3251,
18,
4099,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
2398,
202,
4099,
273,
261,
863,
18,
1622,
13,
77,
18,
4285,
5621,
2398,
202,
2472,
18,
29554,
3092,
12443,
780,
13,
4099,
18,
588,
653,
9334,
261,
780,
13,
4099,
18,
24805,
10663,
5411,
289,
1082,
202,
14124,
13356,
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,
2591,
694,
741,
1138,
12,
780,
843,
16,
4319,
694,
3270,
16,
3196,
202,
907,
694,
819,
694,
16,
514,
1524,
4742,
13,
202,
202,
15069,
26014,
503,
288,
3639,
2018,
18,
4148,
2932,
2271,
30,
315,
397,
843,
1769,
202,
202,
2290,
11194,
8625,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
21722,
273,
8625,
2864,
18,
588,
12,
1355,
1769,
5411,
10901,
1042,
819,
273,
394,
10901,
1042,
12,
21722,
1769,
5411,
819,
18,
542,
2171,
3098,
12,
5548,
18,
588,
743,
10663,
13491,
1635,
18,
1622,
1241,
31,
5411,
368,
14196,
1981,
19,
3239,
7990,
5411,
364,
12,
3198,
277,
273,
1981,
1799,
3251,
18,
4099,
694,
7675,
9838,
5621,
277,
18,
2
] |
|
if (val == null) return;
|
if (val == null) return;
|
public void setSubject (ESValue val) throws Exception { if (val == null) return; message.setSubject (MimeUtility.encodeWord (val.toString (), "iso-8859-1", null)); }
|
46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/6c452b18936d38609051f30ddad8111dcfb11ff7/ESMail.java/buggy/src/helma/scripting/fesi/extensions/ESMail.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27311,
261,
3991,
620,
1244,
13,
1216,
1185,
288,
377,
202,
430,
261,
1125,
422,
446,
13,
377,
202,
565,
327,
31,
202,
2150,
18,
542,
6638,
261,
13320,
6497,
18,
3015,
3944,
261,
1125,
18,
10492,
1832,
16,
315,
9699,
17,
17258,
17,
21,
3113,
446,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
27311,
261,
3991,
620,
1244,
13,
1216,
1185,
288,
377,
202,
430,
261,
1125,
422,
446,
13,
377,
202,
565,
327,
31,
202,
2150,
18,
542,
6638,
261,
13320,
6497,
18,
3015,
3944,
261,
1125,
18,
10492,
1832,
16,
315,
9699,
17,
17258,
17,
21,
3113,
446,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public FSDataInputStream open(File f, int bufferSize) throws IOException { return new FSDataInputStream(this, f, bufferSize, getConf());
|
public FSDataInputStream open(File f) throws IOException { return open(new Path(f.toString()));
|
public FSDataInputStream open(File f, int bufferSize) throws IOException { return new FSDataInputStream(this, f, bufferSize, getConf()); }
|
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/ee01fef4b4fb82c7492a4a747793839a4d14cd39/FileSystem.java/buggy/src/java/org/apache/hadoop/fs/FileSystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9247,
751,
4348,
1696,
12,
812,
284,
16,
509,
16939,
13,
1216,
1860,
288,
1377,
327,
394,
9247,
751,
4348,
12,
2211,
16,
284,
16,
16939,
16,
28836,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9247,
751,
4348,
1696,
12,
812,
284,
16,
509,
16939,
13,
1216,
1860,
288,
1377,
327,
394,
9247,
751,
4348,
12,
2211,
16,
284,
16,
16939,
16,
28836,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super(); }
|
super(); }
|
public TableDecorator() { super(); }
|
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/a71dc315013464c01719d449044bb7645788f6e6/TableDecorator.java/buggy/_OLD/displaytag08/src/org/apache/taglibs/display/TableDecorator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3555,
10361,
1435,
288,
1377,
2240,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3555,
10361,
1435,
288,
1377,
2240,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (justbody && toplevel && i + 1 == length)
|
if (justbody && type != NESTED_FUNCTION && i + 1 == length)
|
private static void decompile_r(NativeFunction f, int version, int indent, boolean toplevel, boolean justbody, Object[] srcData, StringBuffer result) { String source = f.source; int length = source.length(); NativeFunction[] nestedFunctions = f.nestedFunctions; boolean fromFunctionConstructor = f.fromFunctionConstructor; // 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) { // If the first token is TokenStream.SCRIPT, then we're // decompiling the toplevel script, otherwise it a function // and should start with TokenStream.FUNCTION if (toplevel) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } int token = source.charAt(i); ++i; if (token == TokenStream.FUNCTION) { if (!justbody) { result.append("function "); /* version != 1.2 Function constructor behavior - * 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 (source.charAt(i) == TokenStream.LP && version != Context.VERSION_1_2 && fromFunctionConstructor) { result.append("anonymous"); } } else { // Skip past the entire function header pass the next EOL. skipLoop: for (;;) { token = source.charAt(i); ++i; switch (token) { case TokenStream.EOL: break skipLoop; case TokenStream.NAME: // Skip function or argument name i = Parser.getSourceString(source, i, null); break; case TokenStream.LP: case TokenStream.COMMA: case TokenStream.RP: break; default: // Bad function header throw new RuntimeException(); } } } } else if (token != TokenStream.SCRIPT) { // Bad source header throw new RuntimeException(); } } while (i < length) { 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 = Parser.getSourceString(source, i + 1, srcData); result.append((String)srcData[0]); continue; case TokenStream.NUMBER: { i = Parser.getSourceNumber(source, i + 1, srcData); double number = ((Number)srcData[0]).doubleValue(); result.append(ScriptRuntime.numberToString(number, 10)); continue; } case TokenStream.STRING: i = Parser.getSourceString(source, i + 1, srcData); result.append('"'); result.append(ScriptRuntime.escapeString((String)srcData[0])); result.append('"'); continue; 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 (nestedFunctions == null || functionNumber > nestedFunctions.length) { throw Context.reportRuntimeError(Context.getMessage1 ("msg.no.function.ref.found", new Integer(functionNumber))); } decompile_r(nestedFunctions[functionNumber], version, indent, false, false, srcData, 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; int nextToken = source.charAt(i + 1); if (nextToken == TokenStream.CASE || nextToken == TokenStream.DEFAULT) less = SETBACK; else if (nextToken == 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 (nextToken == TokenStream.NAME) { int afterName = Parser.getSourceString(source, i + 2, null); if (source.charAt(afterName) == 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(version == Context.VERSION_1_2 ? " == " : " === "); break; case TokenStream.SHNE: result.append(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'); }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/784105585e3419e7ef2146454d92ee945f966e99/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
1177,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
1033,
8526,
1705,
751,
16,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
284,
18,
3168,
31,
3639,
509,
769,
273,
1084,
18,
2469,
5621,
3639,
16717,
2083,
8526,
4764,
7503,
273,
284,
18,
12985,
7503,
31,
3639,
1250,
628,
2083,
6293,
273,
284,
18,
2080,
2083,
6293,
31,
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,
88,
6,
10792,
294,
1548,
88,
64,
88,
14432,
7734,
2332,
18,
370,
18,
8222,
10792,
261,
2316,
529,
5397,
397,
4627,
397,
261,
474,
13,
3168,
18,
3001,
861,
12,
77,
13,
5397,
397,
1548,
88,
4970,
397,
7739,
5576,
18,
6939,
780,
5397,
261,
3168,
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,
1177,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
1033,
8526,
1705,
751,
16,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
284,
18,
3168,
31,
3639,
509,
769,
273,
1084,
18,
2469,
5621,
3639,
16717,
2083,
8526,
4764,
7503,
273,
284,
18,
12985,
7503,
31,
3639,
1250,
628,
2083,
6293,
273,
284,
18,
2080,
2083,
6293,
31,
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,
2
] |
public void attach(RequestCycle cycle) { System.out.println("ComponentTagAttributeModifier model attached"); text = "insertLabel"; }
|
public void detach(RequestCycle cycle) { System.out.println("ComponentTagAttributeModifier model detached"); text = null; }
|
public AttributeModifierComponentPage(final PageParameters parameters) { // Label with attribute modifier Label label1 = new Label("label1", new Model("Label 1")); add(label1); // Lavel with override attribute modifier Label label2 = new Label("label2", new Model("Label 2")); label2.add( new ComponentTagAttributeModifier("class", new Model("overrideLabel"))); label2.add( new ComponentTagAttributeModifier("unknown", new Model("invalid"))); add(label2); // Lavel with attribute inserter Label label3 = new Label("label3", new Model("Label 3")); label3.add( new ComponentTagAttributeModifier("class", true, new IDetachableModel() { private String text = null; public void detach(RequestCycle cycle) { System.out.println("ComponentTagAttributeModifier model detached"); text = null; } public void attach(RequestCycle cycle) { System.out.println("ComponentTagAttributeModifier model attached"); text = "insertLabel"; } public Object getObject() { return text; } public void setObject(Object object) { text = object.toString(); } })); add(label3); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9a4b9b48d844a9fd7e8882aa552fcfb06d718660/AttributeModifierComponentPage.java/clean/wicket/src/test/wicket/AttributeModifierComponentPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3601,
9829,
1841,
1964,
12,
6385,
3460,
2402,
1472,
13,
288,
3639,
368,
5287,
598,
1566,
9606,
3639,
5287,
1433,
21,
273,
394,
5287,
2932,
1925,
21,
3113,
394,
3164,
2932,
2224,
404,
7923,
1769,
3639,
527,
12,
1925,
21,
1769,
3639,
368,
511,
7882,
598,
3849,
1566,
9606,
3639,
5287,
1433,
22,
273,
394,
5287,
2932,
1925,
22,
3113,
394,
3164,
2932,
2224,
576,
7923,
1769,
3639,
1433,
22,
18,
1289,
12,
5411,
394,
5435,
1805,
1499,
9829,
2932,
1106,
3113,
394,
3164,
2932,
10601,
2224,
6,
3719,
1769,
3639,
1433,
22,
18,
1289,
12,
5411,
394,
5435,
1805,
1499,
9829,
2932,
8172,
3113,
394,
3164,
2932,
5387,
6,
3719,
1769,
3639,
527,
12,
1925,
22,
1769,
3639,
368,
511,
7882,
598,
1566,
316,
550,
387,
3639,
5287,
1433,
23,
273,
394,
5287,
2932,
1925,
23,
3113,
394,
3164,
2932,
2224,
890,
7923,
1769,
3639,
1433,
23,
18,
1289,
12,
5411,
394,
5435,
1805,
1499,
9829,
2932,
1106,
3113,
638,
16,
394,
1599,
278,
497,
429,
1488,
1435,
288,
7734,
3238,
514,
977,
273,
446,
31,
27573,
1071,
918,
10199,
12,
691,
13279,
8589,
13,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
1841,
1805,
1499,
9829,
938,
22037,
8863,
10792,
977,
273,
446,
31,
7734,
289,
7734,
1071,
918,
3306,
12,
691,
13279,
8589,
13,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
1841,
1805,
1499,
9829,
938,
7495,
8863,
10792,
977,
273,
315,
6387,
2224,
14432,
7734,
289,
7734,
1071,
1033,
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,
3601,
9829,
1841,
1964,
12,
6385,
3460,
2402,
1472,
13,
288,
3639,
368,
5287,
598,
1566,
9606,
3639,
5287,
1433,
21,
273,
394,
5287,
2932,
1925,
21,
3113,
394,
3164,
2932,
2224,
404,
7923,
1769,
3639,
527,
12,
1925,
21,
1769,
3639,
368,
511,
7882,
598,
3849,
1566,
9606,
3639,
5287,
1433,
22,
273,
394,
5287,
2932,
1925,
22,
3113,
394,
3164,
2932,
2224,
576,
7923,
1769,
3639,
1433,
22,
18,
1289,
12,
5411,
394,
5435,
1805,
1499,
9829,
2932,
1106,
3113,
394,
3164,
2932,
10601,
2224,
6,
3719,
1769,
3639,
1433,
22,
18,
1289,
12,
5411,
394,
5435,
1805,
1499,
9829,
2932,
8172,
3113,
394,
3164,
2932,
5387,
6,
3719,
1769,
3639,
527,
12,
1925,
2
] |
public String getName() { return _name; }
|
final public String getName() { return _name; }
|
public String getName() { return _name; }
|
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/af8b9e04f0dcb3a0994b2882f87f1d6c81e86fc1/Argument.java/buggy/webmacro/src/org/webmacro/engine/Argument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
514,
1723,
1435,
288,
327,
389,
529,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
514,
1723,
1435,
288,
327,
389,
529,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
new ImageIcon(getClass().getResource("images/biffNew.gif"));
|
new ImageIcon("ui/images/biffNew.gif");
|
public BiffIcon() { if (fIconUnknown == null) { fIconUnknown = new ImageIcon(getClass().getResource("images/biffUnknown.gif")); fIconNew = new ImageIcon(getClass().getResource("images/biffNew.gif")); fIconNone = new ImageIcon(getClass().getResource("images/biffNone.gif")); } setText(null); // Necessary for icon size to be used for preferred size setBiffState(MailDrop.UNKNOWN); fThread = BiffThread.Get(); fThread.addChangeListener(this); setBiffState(fThread.getBiffState()); }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/BiffIcon.java/buggy/grendel/sources/grendel/ui/BiffIcon.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
605,
3048,
5554,
1435,
288,
565,
309,
261,
74,
5554,
4874,
422,
446,
13,
288,
1377,
284,
5554,
4874,
273,
3639,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
70,
3048,
4874,
18,
13905,
7923,
1769,
1377,
284,
5554,
1908,
273,
3639,
394,
3421,
5554,
2932,
4881,
19,
7369,
19,
70,
3048,
1908,
18,
13905,
8863,
1377,
284,
5554,
7036,
273,
3639,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
70,
3048,
7036,
18,
13905,
7923,
1769,
565,
289,
565,
7883,
12,
2011,
1769,
368,
423,
4128,
364,
4126,
963,
358,
506,
1399,
364,
9119,
963,
565,
15268,
3048,
1119,
12,
6759,
7544,
18,
14737,
1769,
565,
284,
3830,
273,
605,
3048,
3830,
18,
967,
5621,
565,
284,
3830,
18,
1289,
15744,
12,
2211,
1769,
565,
15268,
3048,
1119,
12,
74,
3830,
18,
588,
38,
3048,
1119,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
605,
3048,
5554,
1435,
288,
565,
309,
261,
74,
5554,
4874,
422,
446,
13,
288,
1377,
284,
5554,
4874,
273,
3639,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
70,
3048,
4874,
18,
13905,
7923,
1769,
1377,
284,
5554,
1908,
273,
3639,
394,
3421,
5554,
2932,
4881,
19,
7369,
19,
70,
3048,
1908,
18,
13905,
8863,
1377,
284,
5554,
7036,
273,
3639,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
70,
3048,
7036,
18,
13905,
7923,
1769,
565,
289,
565,
7883,
12,
2011,
1769,
368,
423,
4128,
364,
4126,
963,
358,
506,
1399,
364,
9119,
963,
565,
15268,
3048,
1119,
12,
6759,
7544,
18,
14737,
1769,
565,
284,
3830,
2
] |
private static synchronized long getUniqueLong ()
|
private static synchronized long getUniqueLong()
|
private static synchronized long getUniqueLong () { return next_scrollbar_number++; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Scrollbar.java/clean/core/src/classpath/java/java/awt/Scrollbar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
3852,
1525,
16076,
3708,
1435,
225,
288,
565,
327,
1024,
67,
12033,
3215,
67,
2696,
9904,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
3852,
1525,
16076,
3708,
1435,
225,
288,
565,
327,
1024,
67,
12033,
3215,
67,
2696,
9904,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new Status(IStatus.ERROR, XMLEditorPlugin.ID, IStatus.INFO, "", null);
|
return new Status(IStatus.ERROR, XMLUIPlugin.ID, IStatus.INFO, "", null);
|
public IStatus validateEdit(Shell context) { if (getTextEditor() == null) return new Status(IStatus.ERROR, XMLEditorPlugin.ID, IStatus.INFO, "", null); //$NON-NLS-1$ return getTextEditor().validateEdit(context); }
|
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/425ffe7b68526a8574007dbae9d4ecfb097cff08/XMLMultiPageEditorPart.java/clean/bundles/org.eclipse.wst.xml.ui/src-multipage/org/eclipse/wst/xml/internal/ui/XMLMultiPageEditorPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1482,
1954,
4666,
12,
13220,
819,
13,
288,
202,
202,
430,
261,
588,
1528,
6946,
1435,
422,
446,
13,
1082,
202,
2463,
394,
2685,
12,
45,
1482,
18,
3589,
16,
3167,
5370,
3773,
18,
734,
16,
467,
1482,
18,
5923,
16,
23453,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2463,
6701,
6946,
7675,
5662,
4666,
12,
2472,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1482,
1954,
4666,
12,
13220,
819,
13,
288,
202,
202,
430,
261,
588,
1528,
6946,
1435,
422,
446,
13,
1082,
202,
2463,
394,
2685,
12,
45,
1482,
18,
3589,
16,
3167,
5370,
3773,
18,
734,
16,
467,
1482,
18,
5923,
16,
23453,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2463,
6701,
6946,
7675,
5662,
4666,
12,
2472,
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
] |
int endOffset = (end != null) ? end.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); } int endOffset = (mark != null) ? mark.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset());
|
int endOffset = (end != null) ? end.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); } int endOffset = (mark != null) ? mark.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset());
|
protected IASTName consumeTemplatedOperatorName() throws EndOfFileException, BacktrackException { TemplateParameterManager argumentList = TemplateParameterManager .getInstance(); try { if (LT(1) == IToken.t_operator) return operatorId(null, null); try { return createName(name()); } catch (BacktrackException bt) { } IToken start = null; IToken mark = mark(); if (LT(1) == IToken.tCOLONCOLON || LT(1) == IToken.tIDENTIFIER) { start = consume(); IToken end = null; if (start.getType() == IToken.tIDENTIFIER) { end = consumeTemplateArguments(end, argumentList); } while (LT(1) == IToken.tCOLONCOLON || LT(1) == IToken.tIDENTIFIER) { end = consume(); if (end.getType() == IToken.tIDENTIFIER) { end = consumeTemplateArguments(end, argumentList); } } if (LT(1) == IToken.t_operator) { return operatorId(start, argumentList); } int endOffset = (end != null) ? end.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); } int endOffset = (mark != null) ? mark.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); return null; } finally { TemplateParameterManager.returnInstance(argumentList); } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c4c31b724fe73e8f69d2d4f9fcd98d3ff359a2d3/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
461,
7865,
26033,
690,
5592,
461,
1435,
1082,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
202,
2283,
1662,
1318,
1237,
682,
273,
5035,
1662,
1318,
9506,
202,
18,
588,
1442,
5621,
202,
202,
698,
288,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
67,
9497,
13,
9506,
202,
2463,
3726,
548,
12,
2011,
16,
446,
1769,
1082,
202,
698,
288,
9506,
202,
2463,
752,
461,
12,
529,
10663,
1082,
202,
97,
1044,
261,
2711,
4101,
503,
10921,
13,
288,
1082,
202,
97,
1082,
202,
1285,
969,
787,
273,
446,
31,
1082,
202,
1285,
969,
2267,
273,
2267,
5621,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
4935,
673,
4935,
673,
747,
11807,
12,
21,
13,
422,
467,
1345,
18,
88,
16606,
13,
288,
9506,
202,
1937,
273,
7865,
5621,
9506,
202,
1285,
969,
679,
273,
446,
31,
9506,
202,
430,
261,
1937,
18,
588,
559,
1435,
422,
467,
1345,
18,
88,
16606,
13,
288,
6862,
202,
409,
273,
7865,
2283,
4628,
12,
409,
16,
1237,
682,
1769,
9506,
202,
97,
9506,
202,
17523,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
4935,
673,
4935,
673,
25083,
202,
20081,
11807,
12,
21,
13,
422,
467,
1345,
18,
88,
16606,
13,
288,
6862,
202,
409,
273,
7865,
5621,
6862,
202,
430,
261,
409,
18,
588,
559,
1435,
422,
467,
1345,
18,
88,
16606,
13,
288,
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,
1117,
467,
9053,
461,
7865,
26033,
690,
5592,
461,
1435,
1082,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
202,
2283,
1662,
1318,
1237,
682,
273,
5035,
1662,
1318,
9506,
202,
18,
588,
1442,
5621,
202,
202,
698,
288,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
67,
9497,
13,
9506,
202,
2463,
3726,
548,
12,
2011,
16,
446,
1769,
1082,
202,
698,
288,
9506,
202,
2463,
752,
461,
12,
529,
10663,
1082,
202,
97,
1044,
261,
2711,
4101,
503,
10921,
13,
288,
1082,
202,
97,
1082,
202,
1285,
969,
787,
273,
446,
31,
1082,
202,
1285,
969,
2267,
273,
2267,
5621,
1082,
202,
430,
261,
12050,
12,
2
] |
if (!XSConstraints.checkSimpleDerivationOk(dv, baseValidator, baseValidator.getFinalSet()) ) { reportGenericSchemaError("ComplexType " + typeName + ": " + "derivation-ok-restriction.5.1.1: The content type is not a valid restriction of the content type of the base"); }
|
private void traverseSimpleContent(Element simpleContentElement, XSComplexTypeDecl typeInfo, XSDocumentInfo schemaDoc, SchemaGrammar grammar) throws ComplexTypeRecoverableError { String typeName = typeInfo.fName; Object[] attrValues = fAttrChecker.checkAttributes(simpleContentElement, false, schemaDoc); // ----------------------------------------------------------------------- // Set content type // ----------------------------------------------------------------------- typeInfo.fContentType = XSComplexTypeDecl.CONTENTTYPE_SIMPLE; typeInfo.fParticle = null; Element simpleContent = checkContent(DOMUtil.getFirstChildElement(simpleContentElement), attrValues, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc); // If there are no children, return if (simpleContent==null) { throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // The content should be either "restriction" or "extension" // ----------------------------------------------------------------------- String simpleContentName = simpleContent.getLocalName(); if (simpleContentName.equals(SchemaSymbols.ELT_RESTRICTION)) typeInfo.fDerivedBy = SchemaSymbols.RESTRICTION; else if (simpleContentName.equals(SchemaSymbols.ELT_EXTENSION)) typeInfo.fDerivedBy = SchemaSymbols.EXTENSION; else { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Child of simpleContent must be restriction or extension"); throw new ComplexTypeRecoverableError(); } if (DOMUtil.getNextSiblingElement(simpleContent) != null) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Invalid child of simpleContent"); throw new ComplexTypeRecoverableError(); } attrValues = fAttrChecker.checkAttributes(simpleContent, false, schemaDoc); QName baseTypeName = (QName) attrValues[XSAttributeChecker.ATTIDX_BASE]; fAttrChecker.returnAttrArray(attrValues, schemaDoc); // ----------------------------------------------------------------------- // Need a base type. // ----------------------------------------------------------------------- if (baseTypeName==null) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "The base attribute must be specified for the restriction or extension"); throw new ComplexTypeRecoverableError(); } XSTypeDecl type = (XSTypeDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.TYPEDECL_TYPE, baseTypeName); typeInfo.fBaseType = type; DatatypeValidator baseValidator = null; XSComplexTypeDecl baseComplexType = null; // If the base type is complex, it must have simpleContent if ((type instanceof XSComplexTypeDecl)) { baseComplexType = (XSComplexTypeDecl)type; if (baseComplexType.fContentType != XSComplexTypeDecl.CONTENTTYPE_SIMPLE) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "The base type must be complex"); throw new ComplexTypeRecoverableError(); } baseValidator = baseComplexType.fDatatypeValidator; } else { baseValidator = (DatatypeValidator)type; if (typeInfo.fDerivedBy == SchemaSymbols.RESTRICTION) { reportGenericSchemaError("ComplexTYpe " + typeName + ": " + "ct-props-correct.2: The base is a simple type. It cannot be used in a derivation by restriction"); throw new ComplexTypeRecoverableError(); } } // ----------------------------------------------------------------------- // Check that the base permits the derivation // ----------------------------------------------------------------------- if ((baseValidator.getFinalSet() & typeInfo.fDerivedBy)!=0) { //REVISIT - generate error reportGenericSchemaError("ComplexType " + typeName + ": " + "The base type has a final value that prohibits this derivation"); throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // Skip over any potential annotations // ----------------------------------------------------------------------- simpleContent = checkContent(DOMUtil.getFirstChildElement(simpleContent), null, schemaDoc); // ----------------------------------------------------------------------- // Process a RESTRICTION // ----------------------------------------------------------------------- if (typeInfo.fDerivedBy == SchemaSymbols.RESTRICTION) { // ----------------------------------------------------------------------- // There may be a simple type definition in the restriction element // The data type validator will be based on it, if specified // ----------------------------------------------------------------------- if (simpleContent.getLocalName().equals(SchemaSymbols.ELT_SIMPLETYPE )) { DatatypeValidator dv =fSchemaHandler.fSimpleTypeTraverser.traverseLocal(simpleContent, schemaDoc, grammar); //check that this datatype validator is validly derived from the base //according to derivation-ok-restriction 5.1.1 // Need to check with Elena/Sandy if there's a new method for this - REVISIT //if (!checkSimpleTypeDerivationOK(dv,baseValidator)) { // reportGenericSchemaError("ComplexType " + typeName + ": " + // "derivation-ok-restriction.5.1.1: The content type is not a valid restriction of the content type of the base"); // } baseValidator = dv; simpleContent = DOMUtil.getNextSiblingElement(simpleContent); } // ----------------------------------------------------------------------- // Traverse any facets // ----------------------------------------------------------------------- Hashtable fFacetData = null; Element attrNode = null; if (simpleContent!=null) { fFacetInfo fi = traverseFacets(simpleContent, null, typeName, baseValidator, schemaDoc, grammar); fFacetData = fi.facetdata; attrNode = fi.nodeAfterFacets; } typeInfo.fDatatypeValidator = createRestrictedValidator(baseValidator, fFacetData, fErrorReporter); if (typeInfo.fDatatypeValidator == null) { // REVISIT error msg reportGenericSchemaError("Internal error - could not create a new validator"); throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // Traverse any attributes // ----------------------------------------------------------------------- if (!isAttrOrAttrGroup(attrNode)) { throw new ComplexTypeRecoverableError("src-ct", new Object[]{typeInfo.fName}); } traverseAttrsAndAttrGrps(attrNode,typeInfo.fAttrGrp, schemaDoc,grammar); mergeAttributes(baseComplexType.fAttrGrp, typeInfo.fAttrGrp, typeName, false); String error = typeInfo.fAttrGrp.validRestrictionOf(baseComplexType.fAttrGrp); if (error != null) { reportGenericSchemaError("ComplexType " + typeName + ": " + error); throw new ComplexTypeRecoverableError(); } } // ----------------------------------------------------------------------- // Process a EXTENSION // ----------------------------------------------------------------------- else { typeInfo.fDatatypeValidator = baseValidator; if (simpleContent != null) { // ----------------------------------------------------------------------- // Traverse any attributes // ----------------------------------------------------------------------- Element attrNode = simpleContent; if (!isAttrOrAttrGroup(attrNode)) { throw new ComplexTypeRecoverableError("src-ct", new Object[]{typeInfo.fName}); } traverseAttrsAndAttrGrps(attrNode,typeInfo.fAttrGrp, schemaDoc,grammar); if (baseComplexType != null) { mergeAttributes(baseComplexType.fAttrGrp, typeInfo.fAttrGrp, typeName, true); } } } }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/7fc1339204fd07211cd4d8e92ef39bfc596812a4/XSDComplexTypeTraverser.java/clean/src/org/apache/xerces/impl/v2/XSDComplexTypeTraverser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10080,
5784,
1350,
12,
1046,
4143,
1350,
1046,
16,
309,
16051,
60,
55,
4878,
18,
1893,
5784,
12041,
8482,
8809,
12,
15679,
16,
1026,
5126,
16,
1026,
5126,
18,
588,
7951,
694,
10756,
262,
288,
2605,
7014,
3078,
668,
2932,
12795,
559,
315,
397,
8173,
397,
6398,
315,
397,
315,
765,
8482,
17,
601,
17,
23954,
18,
25,
18,
21,
18,
21,
30,
225,
1021,
913,
618,
353,
486,
279,
923,
9318,
434,
326,
913,
618,
434,
326,
1026,
8863,
289,
225,
309,
16051,
60,
55,
4878,
18,
1893,
5784,
12041,
8482,
8809,
12,
15679,
16,
1026,
5126,
16,
1026,
5126,
18,
588,
7951,
694,
10756,
262,
288,
2605,
7014,
3078,
668,
2932,
12795,
559,
315,
397,
8173,
397,
6398,
315,
397,
315,
765,
8482,
17,
601,
17,
23954,
18,
25,
18,
21,
18,
21,
30,
225,
1021,
913,
618,
353,
486,
279,
923,
9318,
434,
326,
913,
618,
434,
326,
1026,
8863,
289,
225,
309,
16051,
60,
55,
4878,
18,
1893,
5784,
12041,
8482,
8809,
12,
15679,
16,
1026,
5126,
16,
1026,
5126,
18,
588,
7951,
694,
10756,
262,
288,
2605,
7014,
3078,
668,
2932,
12795,
559,
315,
397,
8173,
397,
6398,
315,
397,
315,
765,
8482,
17,
601,
17,
23954,
18,
25,
18,
21,
18,
21,
30,
225,
1021,
913,
618,
353,
486,
279,
923,
9318,
434,
326,
913,
618,
434,
326,
1026,
8863,
289,
225,
309,
16051,
60,
55,
4878,
18,
1893,
5784,
12041,
8482,
8809,
12,
15679,
16,
1026,
5126,
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,
10080,
5784,
1350,
12,
1046,
4143,
1350,
1046,
16,
309,
16051,
60,
55,
4878,
18,
1893,
5784,
12041,
8482,
8809,
12,
15679,
16,
1026,
5126,
16,
1026,
5126,
18,
588,
7951,
694,
10756,
262,
288,
2605,
7014,
3078,
668,
2932,
12795,
559,
315,
397,
8173,
397,
6398,
315,
397,
315,
765,
8482,
17,
601,
17,
23954,
18,
25,
18,
21,
18,
21,
30,
225,
1021,
913,
618,
353,
486,
279,
923,
9318,
434,
326,
913,
618,
434,
326,
1026,
8863,
289,
225,
309,
16051,
60,
55,
4878,
18,
1893,
5784,
12041,
8482,
8809,
12,
15679,
16,
1026,
5126,
16,
1026,
5126,
18,
588,
7951,
694,
10756,
262,
288,
2605,
7014,
3078,
668,
2932,
12795,
559,
315,
2
] |
|
for ( Iterator j = plugin.getGoals().iterator(); j.hasNext() && dom == null; )
|
for ( Iterator j = plugin.getGoals().iterator(); j.hasNext(); )
|
private static PlexusConfiguration getProjectDefinedPluginConfiguration( MavenProject project, String goalId ) { Xpp3Dom dom = null; // ---------------------------------------------------------------------- // I would like to be able to lookup the Plugin object using a key but // we have a limitation in modello that will be remedied shortly. So // for now I have to iterate through and see what we have. // ---------------------------------------------------------------------- if ( project.getPlugins() != null ) { String pluginId = getPluginId( goalId ); for ( Iterator iterator = project.getPlugins().iterator(); iterator.hasNext() && dom == null; ) { org.apache.maven.model.Plugin plugin = (org.apache.maven.model.Plugin) iterator.next(); // TODO: groupID not handled if ( pluginId.equals( plugin.getArtifactId() ) ) { dom = (Xpp3Dom) plugin.getConfiguration(); // TODO: much less of this magic is needed - make the mojoDescriptor just store the first and second part int index = goalId.indexOf( ':' ); if ( index >= 0 ) { String goalName = goalId.substring( index + 1 ); for ( Iterator j = plugin.getGoals().iterator(); j.hasNext() && dom == null; ) { Goal goal = (Goal) j.next(); if ( goal.getId().equals( goalName ) ) { Xpp3Dom goalConfiguration = (Xpp3Dom) goal.getConfiguration(); if ( goalConfiguration != null ) { dom = Xpp3DomUtils.mergeXpp3Dom( Xpp3DomUtils.copyXpp3Dom( goalConfiguration ), dom ); } else { dom = new Xpp3Dom( "configuration" ); } } } } } } } PlexusConfiguration configuration; if ( dom == null ) { configuration = new XmlPlexusConfiguration( "configuration" ); } else { configuration = new XmlPlexusConfiguration( dom ); } return configuration; }
|
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/7573893dac30b278dd642520da216ca3d400f278/DefaultPluginManager.java/clean/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
453,
4149,
407,
1750,
11080,
8116,
3773,
1750,
12,
17176,
4109,
1984,
16,
514,
17683,
548,
262,
565,
288,
3639,
1139,
11858,
23,
8832,
4092,
273,
446,
31,
3639,
368,
8879,
13465,
3639,
368,
467,
4102,
3007,
358,
506,
7752,
358,
3689,
326,
6258,
733,
1450,
279,
498,
1496,
3639,
368,
732,
1240,
279,
17732,
316,
938,
383,
716,
903,
506,
849,
329,
2092,
3025,
715,
18,
6155,
3639,
368,
364,
2037,
467,
1240,
358,
7401,
3059,
471,
2621,
4121,
732,
1240,
18,
3639,
368,
8879,
13465,
3639,
309,
261,
1984,
18,
588,
9461,
1435,
480,
446,
262,
3639,
288,
5411,
514,
1909,
548,
273,
16319,
548,
12,
17683,
548,
11272,
5411,
364,
261,
4498,
2775,
273,
1984,
18,
588,
9461,
7675,
9838,
5621,
2775,
18,
5332,
2134,
1435,
597,
4092,
422,
446,
31,
262,
5411,
288,
7734,
2358,
18,
19211,
18,
81,
7638,
18,
2284,
18,
3773,
1909,
273,
261,
3341,
18,
19211,
18,
81,
7638,
18,
2284,
18,
3773,
13,
2775,
18,
4285,
5621,
7734,
368,
2660,
30,
30365,
486,
7681,
7734,
309,
261,
1909,
548,
18,
14963,
12,
1909,
18,
588,
7581,
548,
1435,
262,
262,
7734,
288,
10792,
4092,
273,
261,
60,
11858,
23,
8832,
13,
1909,
18,
588,
1750,
5621,
10792,
368,
2660,
30,
9816,
5242,
434,
333,
8146,
353,
3577,
300,
1221,
326,
312,
10007,
3187,
2537,
1707,
326,
1122,
471,
2205,
1087,
10792,
509,
770,
273,
17683,
548,
18,
31806,
12,
3921,
11272,
10792,
309,
261,
770,
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,
453,
4149,
407,
1750,
11080,
8116,
3773,
1750,
12,
17176,
4109,
1984,
16,
514,
17683,
548,
262,
565,
288,
3639,
1139,
11858,
23,
8832,
4092,
273,
446,
31,
3639,
368,
8879,
13465,
3639,
368,
467,
4102,
3007,
358,
506,
7752,
358,
3689,
326,
6258,
733,
1450,
279,
498,
1496,
3639,
368,
732,
1240,
279,
17732,
316,
938,
383,
716,
903,
506,
849,
329,
2092,
3025,
715,
18,
6155,
3639,
368,
364,
2037,
467,
1240,
358,
7401,
3059,
471,
2621,
4121,
732,
1240,
18,
3639,
368,
8879,
13465,
3639,
309,
261,
1984,
18,
588,
9461,
1435,
480,
446,
262,
3639,
288,
5411,
514,
1909,
548,
273,
16319,
548,
12,
17683,
548,
11272,
5411,
364,
261,
4498,
2775,
2
] |
consume();
|
try{ callback.classSpecifierEnd(classSpec, consume( Token.tRBRACE )); } catch( Exception e ) {}
|
protected void classSpecifier( Object owner ) throws Backtrack { Token classKey = null; Token mark = mark(); // class key switch (LT(1)) { case Token.t_class: case Token.t_struct: case Token.t_union: classKey = consume(); break; default: throw backtrack; } Object classSpec = null; try{ classSpec = callback.classSpecifierBegin( owner, classKey);} catch( Exception e ){} // class name if (LT(1) == Token.tIDENTIFIER) { className(); try{ callback.classSpecifierName(classSpec);} catch( Exception e ){} } if( LT(1) != Token.tCOLON && LT(1) != Token.tLBRACE ) { // this is not a classSpecification try{ callback.classSpecifierAbort( classSpec );} catch( Exception e ){} classSpec = null; backup( mark ); throw backtrack; } else try{ callback.classSpecifierSafe( classSpec ); } catch( Exception e ){} // base clause if (LT(1) == Token.tCOLON) { consume(); baseSpecifier( classSpec ); } // If we don't get a "{", assume elaborated type if (LT(1) == Token.tLBRACE) { consume(); memberDeclarationLoop: while (LT(1) != Token.tRBRACE) { Token lastToken = LA(1); switch (LT(1)) { case Token.t_public: case Token.t_protected: case Token.t_private: try{ callback.classMemberVisibility( classSpec, consume() );} catch( Exception e ){} consume(Token.tCOLON); break; case Token.tRBRACE: consume(Token.tRBRACE); break memberDeclarationLoop; default: declaration(classSpec); } if (lastToken == LA(1)) consumeToNextSemicolon(); } // consume the } consume(); } try{ callback.classSpecifierEnd(classSpec); } catch( Exception e ) {} }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0ff98a152ca4ebe0c2b3707e158d5194dc4acfeb/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
667,
21416,
12,
1033,
3410,
262,
1216,
4297,
4101,
288,
202,
202,
1345,
667,
653,
273,
446,
31,
9506,
202,
1345,
2267,
273,
2267,
5621,
202,
202,
759,
667,
498,
202,
202,
9610,
261,
12050,
12,
21,
3719,
288,
1082,
202,
3593,
3155,
18,
88,
67,
1106,
30,
1082,
202,
3593,
3155,
18,
88,
67,
1697,
30,
1082,
202,
3593,
3155,
18,
88,
67,
18910,
30,
9506,
202,
1106,
653,
273,
7865,
5621,
9506,
202,
8820,
31,
1082,
202,
1886,
30,
9506,
202,
12849,
1473,
4101,
31,
202,
202,
97,
202,
202,
921,
667,
1990,
273,
446,
31,
202,
202,
698,
95,
667,
1990,
273,
1348,
18,
1106,
21416,
8149,
12,
3410,
16,
667,
653,
1769,
97,
1044,
12,
1185,
425,
262,
2916,
9506,
202,
759,
667,
508,
202,
202,
430,
261,
12050,
12,
21,
13,
422,
3155,
18,
88,
16606,
13,
288,
1082,
202,
12434,
5621,
1082,
202,
698,
95,
1348,
18,
1106,
21416,
461,
12,
1106,
1990,
1769,
97,
1044,
12,
1185,
425,
262,
2916,
6862,
202,
97,
9506,
202,
430,
12,
11807,
12,
21,
13,
480,
3155,
18,
88,
4935,
673,
597,
11807,
12,
21,
13,
480,
3155,
18,
88,
12995,
9254,
262,
202,
202,
95,
1082,
202,
759,
333,
353,
486,
279,
667,
8615,
1082,
202,
698,
95,
1348,
18,
1106,
21416,
13572,
12,
667,
1990,
11272,
97,
1044,
12,
1185,
425,
262,
2916,
1082,
202,
1106,
1990,
273,
446,
31,
4697,
202,
9572,
12,
2267,
11272,
1875,
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,
1117,
918,
667,
21416,
12,
1033,
3410,
262,
1216,
4297,
4101,
288,
202,
202,
1345,
667,
653,
273,
446,
31,
9506,
202,
1345,
2267,
273,
2267,
5621,
202,
202,
759,
667,
498,
202,
202,
9610,
261,
12050,
12,
21,
3719,
288,
1082,
202,
3593,
3155,
18,
88,
67,
1106,
30,
1082,
202,
3593,
3155,
18,
88,
67,
1697,
30,
1082,
202,
3593,
3155,
18,
88,
67,
18910,
30,
9506,
202,
1106,
653,
273,
7865,
5621,
9506,
202,
8820,
31,
1082,
202,
1886,
30,
9506,
202,
12849,
1473,
4101,
31,
202,
202,
97,
202,
202,
921,
667,
1990,
273,
446,
31,
202,
202,
698,
95,
667,
1990,
273,
1348,
18,
1106,
21416,
8149,
12,
3410,
16,
667,
653,
2
] |
public static Test suite() { TestSuite suite= new TestSuite( IMacroTests.class.getName() ); suite.addTest( new IMacroTests("testGetElementName")); // TODO: suite.addTest( new IMacroTest("testGetIdentifierList")); // TODO: suite.addTest( new IMacroTest("testGetTokenSequence")); return suite; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b1c1e00a78347dcc957216c5590b0cfa10b1c14b/IMacroTests.java/clean/core/org.eclipse.cdt.ui.tests/model/org/eclipse/cdt/core/model/tests/IMacroTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
4709,
13587,
11371,
33,
394,
7766,
13587,
12,
6246,
1077,
303,
14650,
18,
1106,
18,
17994,
1435,
11272,
202,
202,
30676,
18,
1289,
4709,
12,
394,
6246,
1077,
303,
14650,
2932,
3813,
967,
30584,
7923,
1769,
202,
202,
759,
2660,
30,
11371,
18,
1289,
4709,
12,
394,
6246,
1077,
303,
4709,
2932,
3813,
967,
3004,
682,
7923,
1769,
202,
202,
759,
2660,
30,
11371,
18,
1289,
4709,
12,
394,
6246,
1077,
303,
4709,
2932,
3813,
967,
1345,
4021,
7923,
1769,
202,
202,
2463,
11371,
31,
202,
97,
1082,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
4709,
13587,
11371,
33,
394,
7766,
13587,
12,
6246,
1077,
303,
14650,
18,
1106,
18,
17994,
1435,
11272,
202,
202,
30676,
18,
1289,
4709,
12,
394,
6246,
1077,
303,
14650,
2932,
3813,
967,
30584,
7923,
1769,
202,
202,
759,
2660,
30,
11371,
18,
1289,
4709,
12,
394,
6246,
1077,
303,
4709,
2932,
3813,
967,
3004,
682,
7923,
1769,
202,
202,
759,
2660,
30,
11371,
18,
1289,
4709,
12,
394,
6246,
1077,
303,
4709,
2932,
3813,
967,
1345,
4021,
7923,
1769,
202,
202,
2463,
11371,
31,
202,
97,
1082,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
throw new PSQLException("postgresql.con.kerb5");
|
throw new PSQLException("postgresql.con.kerb5", PSQLState.CONNECTION_REJECTED);
|
private void openConnectionV2(String host, int port, Properties info, String database, String url, Driver d, String password) throws SQLException { PGProtocolVersionMajor = 2; if (Driver.logDebug) Driver.debug("Using Protocol Version2"); // Now we need to construct and send an ssl startup packet try { if (useSSL) { if (Driver.logDebug) Driver.debug("Asking server if it supports ssl"); pgStream.SendInteger(8,4); pgStream.SendInteger(80877103,4); // now flush the ssl packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int beresp = pgStream.ReceiveChar(); if (Driver.logDebug) Driver.debug("Server response was (S=Yes,N=No): "+(char)beresp); switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", pgStream.ReceiveString(encoding)); case 'N': // Server does not support ssl throw new PSQLException("postgresql.con.sslnotsupported"); case 'S': // Server supports ssl if (Driver.logDebug) Driver.debug("server does support ssl"); Driver.makeSSL(pgStream); break; default: throw new PSQLException("postgresql.con.sslfail"); } } } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } // Now we need to construct and send a startup packet try { new StartupPacket(PGProtocolVersionMajor, PGProtocolVersionMinor, PG_USER, database).writeTo(pgStream); // now flush the startup packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pgStream.ReceiveChar(); String salt = null; byte [] md5Salt = new byte[4]; switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", pgStream.ReceiveString(encoding)); case 'R': // Get the type of request areq = pgStream.ReceiveIntegerR(4); // Get the crypt password salt if there is one if (areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pgStream.ReceiveChar(); rst[1] = (byte)pgStream.ReceiveChar(); salt = new String(rst, 0, 2); if (Driver.logDebug) Driver.debug("Crypt salt=" + salt); } // Or get the md5 password salt if there is one if (areq == AUTH_REQ_MD5) { md5Salt[0] = (byte)pgStream.ReceiveChar(); md5Salt[1] = (byte)pgStream.ReceiveChar(); md5Salt[2] = (byte)pgStream.ReceiveChar(); md5Salt[3] = (byte)pgStream.ReceiveChar(); salt = new String(md5Salt, 0, 4); if (Driver.logDebug) Driver.debug("MD5 salt=" + salt); } // now send the auth packet switch (areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: if (Driver.logDebug) Driver.debug("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: if (Driver.logDebug) Driver.debug("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: if (Driver.logDebug) Driver.debug("postgresql: PASSWORD"); pgStream.SendInteger(5 + password.length(), 4); pgStream.Send(password.getBytes()); pgStream.SendInteger(0, 1); pgStream.flush(); break; case AUTH_REQ_CRYPT: if (Driver.logDebug) Driver.debug("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt, password); pgStream.SendInteger(5 + crypted.length(), 4); pgStream.Send(crypted.getBytes()); pgStream.SendInteger(0, 1); pgStream.flush(); break; case AUTH_REQ_MD5: if (Driver.logDebug) Driver.debug("postgresql: MD5"); byte[] digest = MD5Digest.encode(PG_USER, password, md5Salt); pgStream.SendInteger(5 + digest.length, 4); pgStream.Send(digest); pgStream.SendInteger(0, 1); pgStream.flush(); break; default: throw new PSQLException("postgresql.con.auth", new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while (areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp; do { beresp = pgStream.ReceiveChar(); switch (beresp) { case 'K': pid = pgStream.ReceiveIntegerR(4); ckey = pgStream.ReceiveIntegerR(4); break; case 'E': throw new PSQLException("postgresql.con.backend", pgStream.ReceiveString(encoding)); case 'N': addWarning(pgStream.ReceiveString(encoding)); break; default: throw new PSQLException("postgresql.con.setup"); } } while (beresp == 'N'); // Expect ReadyForQuery packet do { beresp = pgStream.ReceiveChar(); switch (beresp) { case 'Z': break; case 'N': addWarning(pgStream.ReceiveString(encoding)); break; case 'E': throw new PSQLException("postgresql.con.backend", pgStream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } } while (beresp == 'N'); // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. //Note: begining with 7.2 we should be using pg_client_encoding() which //is new in 7.2. However it isn't easy to conditionally call this new //function, since we don't yet have the information as to what server //version we are talking to. Thus we will continue to call //getdatabaseencoding() until we drop support for 7.1 and older versions //or until someone comes up with a conditional way to run one or //the other function depending on server version that doesn't require //two round trips to the server per connection final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. BaseResultSet resultSet = execSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, info.getProperty("charSet")); //TODO: remove this once the set is done as part of V3protocol connection initiation if (haveMinimumServerVersion("7.4")) { BaseResultSet acRset = execSQL("set client_encoding = 'UNICODE'"); //set encoding to be unicode encoding = Encoding.getEncoding("UNICODE", null); } //In 7.3 we are forced to do a second roundtrip to handle the case //where a database may not be running in autocommit mode //jdbc by default assumes autocommit is on until setAutoCommit(false) //is called. Therefore we need to ensure a new connection is //initialized to autocommit on. //We also set the client encoding so that the driver only needs //to deal with utf8. We can only do this in 7.3+ because multibyte //support is now always included if (haveMinimumServerVersion("7.3") && !haveMinimumServerVersion("7.4")) { BaseResultSet acRset = execSQL("set client_encoding = 'UNICODE'; show autocommit"); //set encoding to be unicode encoding = Encoding.getEncoding("UNICODE", null); if (!acRset.next()) { throw new PSQLException("postgresql.con.failed", "failed getting autocommit status"); } //if autocommit is currently off we need to turn it on //note that we will be in a transaction because the select above //will have initiated the transaction so we need a commit //to make the setting permanent if (acRset.getString(1).equals("off")) { execSQL("set autocommit = on; commit;"); } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup PG_STATUS = CONNECTION_OK; }
|
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/0378a269f3ab3c44e67b14f96414b6ca95263263/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
24982,
58,
22,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
16,
514,
2201,
13,
1216,
6483,
202,
225,
288,
202,
202,
18679,
28252,
17581,
273,
576,
31,
202,
202,
430,
261,
4668,
18,
1330,
2829,
13,
1082,
202,
4668,
18,
4148,
2932,
7736,
4547,
4049,
22,
8863,
202,
202,
759,
4494,
732,
1608,
358,
4872,
471,
1366,
392,
5832,
11850,
4414,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
1202,
6745,
13,
288,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
23663,
310,
1438,
309,
518,
6146,
5832,
8863,
9506,
202,
8365,
1228,
18,
3826,
4522,
12,
28,
16,
24,
1769,
9506,
202,
8365,
1228,
18,
3826,
4522,
12,
3672,
28,
4700,
23494,
16,
24,
1769,
9506,
202,
759,
2037,
3663,
326,
5832,
12640,
358,
326,
4221,
9506,
202,
8365,
1228,
18,
11330,
5621,
9506,
202,
759,
4494,
336,
326,
766,
628,
326,
4221,
16,
3344,
392,
555,
883,
9506,
202,
759,
578,
392,
5107,
590,
9506,
202,
474,
324,
11737,
84,
273,
7184,
1228,
18,
11323,
2156,
5621,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
2081,
766,
1703,
261,
55,
33,
22352,
16,
50,
33,
2279,
4672,
13773,
12,
3001,
13,
744,
281,
84,
1769,
9506,
202,
9610,
261,
744,
281,
84,
13,
6862,
202,
95,
6862,
202,
3593,
296,
41,
4278,
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,
918,
24982,
58,
22,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
16,
514,
2201,
13,
1216,
6483,
202,
225,
288,
202,
202,
18679,
28252,
17581,
273,
576,
31,
202,
202,
430,
261,
4668,
18,
1330,
2829,
13,
1082,
202,
4668,
18,
4148,
2932,
7736,
4547,
4049,
22,
8863,
202,
202,
759,
4494,
732,
1608,
358,
4872,
471,
1366,
392,
5832,
11850,
4414,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
1202,
6745,
13,
288,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
23663,
310,
1438,
309,
518,
6146,
5832,
8863,
9506,
202,
8365,
1228,
18,
3826,
2
] |
link = "category.jsp?category=" + Util.encode(reportCategory);
|
link = "rtc/category.jsp?category=" + Util.encode(reportCategory);
|
private String computeReportCategoryLink(String reportCategory) { String link = null; if (reportCategory != null) { link = "category.jsp?category=" + Util.encode(reportCategory); } return link; }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/fe4513b89fe10fceb4223a66b5d81fa8fa6faa06/DefaultSurveillanceService.java/clean/opennms-webapp/src/main/java/org/opennms/web/svclayer/support/DefaultSurveillanceService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3671,
4820,
4457,
2098,
12,
780,
2605,
4457,
13,
288,
3639,
514,
1692,
273,
446,
31,
7734,
309,
261,
6006,
4457,
480,
446,
13,
288,
5411,
1692,
273,
315,
3797,
71,
19,
4743,
18,
24926,
35,
4743,
1546,
397,
3564,
18,
3015,
12,
6006,
4457,
1769,
3639,
289,
3639,
327,
1692,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3671,
4820,
4457,
2098,
12,
780,
2605,
4457,
13,
288,
3639,
514,
1692,
273,
446,
31,
7734,
309,
261,
6006,
4457,
480,
446,
13,
288,
5411,
1692,
273,
315,
3797,
71,
19,
4743,
18,
24926,
35,
4743,
1546,
397,
3564,
18,
3015,
12,
6006,
4457,
1769,
3639,
289,
3639,
327,
1692,
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
] |
update("insert into service (serviceID, serviceName) values (?, ?)", svcValues);
|
update("insert into service (serviceID, serviceName) values (?, ?);", svcValues);
|
public void writeService(MockService svc) { String svcName = svc.getName(); if (!serviceDefined(svcName)) { Object[] svcValues = { new Integer(svc.getId()), svcName }; //Object[] svcValues = { getNextServiceId(), svcName }; getNextServiceId(); update("insert into service (serviceID, serviceName) values (?, ?)", svcValues); } Object[] values = { new Integer(svc.getNodeId()), svc.getIpAddr(), new Integer(svc.getId()), "A" }; update("insert into ifServices (nodeID, ipAddr, serviceID, status) values (?, ?, ?, ?)", values); }
|
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/7fc2867031a646336a69eb6ad11ecd8b103f983e/MockDatabase.java/buggy/src/services/org/opennms/netmgt/mock/MockDatabase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
1179,
12,
9865,
1179,
7538,
13,
288,
3639,
514,
7538,
461,
273,
7538,
18,
17994,
5621,
3639,
309,
16051,
3278,
8116,
12,
30992,
461,
3719,
288,
5411,
1033,
8526,
7538,
1972,
273,
288,
394,
2144,
12,
30992,
18,
26321,
1435,
3631,
7538,
461,
289,
31,
5411,
368,
921,
8526,
7538,
1972,
273,
288,
6927,
29177,
9334,
7538,
461,
289,
31,
5411,
6927,
29177,
5621,
5411,
1089,
2932,
6387,
1368,
1156,
261,
3278,
734,
16,
6773,
13,
924,
13590,
16,
692,
1769,
3113,
7538,
1972,
1769,
3639,
289,
7734,
1033,
8526,
924,
273,
288,
394,
2144,
12,
30992,
18,
588,
15883,
1435,
3631,
7538,
18,
588,
5273,
3178,
9334,
394,
2144,
12,
30992,
18,
26321,
1435,
3631,
315,
37,
6,
289,
31,
3639,
1089,
2932,
6387,
1368,
309,
5676,
261,
2159,
734,
16,
2359,
3178,
16,
21212,
16,
1267,
13,
924,
13590,
16,
20033,
20033,
692,
2225,
16,
924,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
1179,
12,
9865,
1179,
7538,
13,
288,
3639,
514,
7538,
461,
273,
7538,
18,
17994,
5621,
3639,
309,
16051,
3278,
8116,
12,
30992,
461,
3719,
288,
5411,
1033,
8526,
7538,
1972,
273,
288,
394,
2144,
12,
30992,
18,
26321,
1435,
3631,
7538,
461,
289,
31,
5411,
368,
921,
8526,
7538,
1972,
273,
288,
6927,
29177,
9334,
7538,
461,
289,
31,
5411,
6927,
29177,
5621,
5411,
1089,
2932,
6387,
1368,
1156,
261,
3278,
734,
16,
6773,
13,
924,
13590,
16,
692,
1769,
3113,
7538,
1972,
1769,
3639,
289,
7734,
1033,
8526,
924,
273,
288,
394,
2144,
12,
30992,
18,
588,
15883,
1435,
3631,
7538,
18,
588,
5273,
3178,
9334,
394,
2144,
12,
30992,
18,
26321,
1435,
2
] |
public void sawField() {}
|
public void sawField() { }
|
public void sawField() {}
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/DismantleBytecode.java/clean/findbugs/src/java/edu/umd/cs/findbugs/visitclass/DismantleBytecode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19821,
974,
1435,
2618,
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,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19821,
974,
1435,
2618,
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,
-100,
-100
] |
format = store.getString(ISVNUIConstants.PREF_FOLDERTEXT_DECORATION);
|
format = folderDecoratorFormat;
|
public static void decorateTextLabel(IResource resource, IDecoration decoration, boolean isDirty) { try { IPreferenceStore store = SVNUIPlugin.getPlugin().getPreferenceStore(); // if the resource does not have a location then return. This can happen if the resource // has been deleted after we where asked to decorate it. if (resource.getLocation() == null) { return; } // get the format String format = ""; //$NON-NLS-1$ int type = resource.getType(); if (type == IResource.FOLDER) { format = store.getString(ISVNUIConstants.PREF_FOLDERTEXT_DECORATION); } else if (type == IResource.PROJECT) { format = store.getString( ISVNUIConstants.PREF_PROJECTTEXT_DECORATION); } else { format = store.getString(ISVNUIConstants.PREF_FILETEXT_DECORATION); } // fill the bindings Map bindings = new HashMap(3); if (isDirty) { bindings.put( SVNDecoratorConfiguration.DIRTY_FLAG, store.getString(ISVNUIConstants.PREF_DIRTY_FLAG)); } ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource); ISVNStatus status = svnResource.getStatus(); if (status.getUrl() != null) bindings.put( SVNDecoratorConfiguration.RESOURCE_URL, status.getUrl().toString()); if (status.isAdded()) { bindings.put( SVNDecoratorConfiguration.ADDED_FLAG, store.getString(ISVNUIConstants.PREF_ADDED_FLAG)); } else { if ((status.getRevision().getNumber() != SVNRevision.SVN_INVALID_REVNUM) && (status.getRevision().getNumber() != 0)) { bindings.put( SVNDecoratorConfiguration.RESOURCE_REVISION, status.getLastChangedRevision().toString()); bindings.put( SVNDecoratorConfiguration.RESOURCE_AUTHOR, status.getLastCommitAuthor()); } if (status.getLastChangedDate() != null) bindings.put( SVNDecoratorConfiguration.RESOURCE_DATE, DateFormat.getInstance().format(status.getLastChangedDate())); } SVNDecoratorConfiguration.decorate(decoration, format, bindings); } catch (SVNException e) { SVNUIPlugin.log(e.getStatus()); return; } }
|
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/13d3cbede2a732910d1e9f386b9a53d47d9b6db3/SVNLightweightDecorator.java/clean/ui/src/org/tigris/subversion/subclipse/ui/decorator/SVNLightweightDecorator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
15752,
1528,
2224,
12,
45,
1420,
1058,
16,
1599,
557,
22226,
29217,
16,
1250,
25206,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
9624,
2257,
1707,
273,
9506,
202,
23927,
50,
5370,
3773,
18,
588,
3773,
7675,
588,
9624,
2257,
5621,
1082,
202,
759,
309,
326,
1058,
1552,
486,
1240,
279,
2117,
1508,
327,
18,
1220,
848,
5865,
309,
326,
1058,
1082,
202,
759,
711,
2118,
4282,
1839,
732,
1625,
19279,
358,
15752,
518,
18,
1082,
202,
430,
261,
3146,
18,
588,
2735,
1435,
422,
446,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
759,
336,
326,
740,
1082,
202,
780,
740,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
474,
618,
273,
1058,
18,
588,
559,
5621,
1082,
202,
430,
261,
723,
422,
467,
1420,
18,
17357,
13,
288,
9506,
202,
2139,
273,
6862,
202,
2233,
18,
588,
780,
12,
5127,
58,
50,
5370,
2918,
18,
3670,
42,
67,
17357,
5151,
67,
1639,
9428,
2689,
1769,
1082,
202,
97,
469,
309,
261,
723,
422,
467,
1420,
18,
17147,
13,
288,
9506,
202,
2139,
273,
6862,
202,
2233,
18,
588,
780,
12,
25083,
202,
5127,
58,
50,
5370,
2918,
18,
3670,
42,
67,
17147,
5151,
67,
1639,
9428,
2689,
1769,
1082,
202,
97,
469,
288,
9506,
202,
2139,
273,
6862,
202,
2233,
18,
588,
780,
12,
5127,
58,
50,
5370,
2918,
18,
3670,
42,
67,
3776,
5151,
67,
1639,
9428,
2689,
1769,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
15752,
1528,
2224,
12,
45,
1420,
1058,
16,
1599,
557,
22226,
29217,
16,
1250,
25206,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
9624,
2257,
1707,
273,
9506,
202,
23927,
50,
5370,
3773,
18,
588,
3773,
7675,
588,
9624,
2257,
5621,
1082,
202,
759,
309,
326,
1058,
1552,
486,
1240,
279,
2117,
1508,
327,
18,
1220,
848,
5865,
309,
326,
1058,
1082,
202,
759,
711,
2118,
4282,
1839,
732,
1625,
19279,
358,
15752,
518,
18,
1082,
202,
430,
261,
3146,
18,
588,
2735,
1435,
422,
446,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
759,
336,
326,
740,
1082,
202,
780,
740,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
2
] |
connector.expectAndReturn("getDispatcher", "dummy", (UMOMessageDispatcher) dispatcher.proxy());
|
connector.expectAndReturn("getDispatcher", "dummy", dispatcher.proxy());
|
public void testForwardingStrategy() throws Exception { ForwardingCatchAllStrategy strategy = new ForwardingCatchAllStrategy(); Mock endpoint = getMockEndpoint(); Mock dispatcher = new Mock(UMOMessageDispatcher.class); Mock connector = getMockConnector(); UMOEvent event = getTestEvent("UncaughtEvent"); strategy.setEndpoint((UMOEndpoint) endpoint.proxy()); endpoint.expectAndReturn("getProperties", new HashMap()); endpoint.expectAndReturn("getProperties", new HashMap()); endpoint.expectAndReturn("getConnector", (UMOConnector) connector.proxy()); endpoint.expectAndReturn("getEndpointURI", new MuleEndpointURI("test://dummy")); connector.expectAndReturn("getDispatcher", "dummy", (UMOMessageDispatcher) dispatcher.proxy()); dispatcher.expect("dispatch", C.isA(UMOEvent.class)); strategy.catchMessage(event.getMessage(), null, false); endpoint.verify(); dispatcher.verify(); connector.verify(); assertNotNull(strategy.getEndpoint()); }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/3ada23197c9cc39df49f26297238cc1a0f794d24/CatchAllStrategiesTestCase.java/buggy/src/test/java/org/mule/test/routing/CatchAllStrategiesTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
21487,
4525,
1435,
1216,
1185,
565,
288,
3639,
17206,
310,
14842,
1595,
4525,
6252,
273,
394,
17206,
310,
14842,
1595,
4525,
5621,
3639,
7867,
2494,
273,
2108,
975,
3293,
5621,
3639,
7867,
7393,
273,
394,
7867,
12,
2799,
51,
1079,
6681,
18,
1106,
1769,
3639,
7867,
8703,
273,
2108,
975,
7487,
5621,
3639,
587,
5980,
1133,
871,
273,
29384,
1133,
2932,
984,
27611,
1133,
8863,
3639,
6252,
18,
542,
3293,
12443,
2799,
51,
3293,
13,
2494,
18,
5656,
10663,
3639,
2494,
18,
12339,
1876,
990,
2932,
588,
2297,
3113,
394,
4317,
10663,
3639,
2494,
18,
12339,
1876,
990,
2932,
588,
2297,
3113,
394,
4317,
10663,
3639,
2494,
18,
12339,
1876,
990,
2932,
588,
7487,
3113,
261,
2799,
51,
7487,
13,
8703,
18,
5656,
10663,
3639,
2494,
18,
12339,
1876,
990,
2932,
588,
3293,
3098,
3113,
394,
490,
725,
3293,
3098,
2932,
3813,
2207,
21050,
7923,
1769,
3639,
8703,
18,
12339,
1876,
990,
2932,
588,
6681,
3113,
315,
21050,
3113,
7393,
18,
5656,
10663,
3639,
7393,
18,
12339,
2932,
10739,
3113,
385,
18,
291,
37,
12,
2799,
51,
1133,
18,
1106,
10019,
3639,
6252,
18,
14683,
1079,
12,
2575,
18,
24906,
9334,
446,
16,
629,
1769,
3639,
2494,
18,
8705,
5621,
3639,
7393,
18,
8705,
5621,
3639,
8703,
18,
8705,
5621,
3639,
25395,
12,
14914,
18,
588,
3293,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
21487,
4525,
1435,
1216,
1185,
565,
288,
3639,
17206,
310,
14842,
1595,
4525,
6252,
273,
394,
17206,
310,
14842,
1595,
4525,
5621,
3639,
7867,
2494,
273,
2108,
975,
3293,
5621,
3639,
7867,
7393,
273,
394,
7867,
12,
2799,
51,
1079,
6681,
18,
1106,
1769,
3639,
7867,
8703,
273,
2108,
975,
7487,
5621,
3639,
587,
5980,
1133,
871,
273,
29384,
1133,
2932,
984,
27611,
1133,
8863,
3639,
6252,
18,
542,
3293,
12443,
2799,
51,
3293,
13,
2494,
18,
5656,
10663,
3639,
2494,
18,
12339,
1876,
990,
2932,
588,
2297,
3113,
394,
4317,
10663,
3639,
2494,
18,
12339,
1876,
990,
2932,
588,
2297,
3113,
394,
4317,
10663,
3639,
2494,
18,
12339,
1876,
990,
2932,
588,
7487,
3113,
2
] |
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("calc'd = " + ib); if (prev == ib) { return; } if (ib == null) panel.hovered_element = null; else panel.hovered_element = ib.element; // if moved out of the old block then unstyle it if (prev != null) { boolean restyled = panel.getContext().getCss().isHoverStyled(prev.element); if (restyled) { prev.restyle = true;//notify rendering to restyle the box //prev.hover = false; needRepaint = true; } } // return if no new hovered block; if (ib != null) { //System.out.println("Using: " + ib); /* if the box is an inline box and if it is a text only box, meaning it does not have it's own element but is merely a child of an enclosing box. is inline element */ // Uu.p("real element = " + ib.getRealElement()); // skip it if it's just a text child of a block. we should // do the block instead //if (ib.isInlineElement() || !(ib instanceof InlineBox)) { boolean restyled = panel.getContext().getCss().isHoverStyled(ib.element); //Uu.p("was styled = " + ib); // if the block isn't a hover then go up to the parent. // if the block has a hover style then restyle it if (restyled) { ib.restyle = true; //ib.hover = true; needRepaint = true; } //} } prev = ib; if (needRepaint) panel.repaint(); }
|
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/a903300c6e179a9fd8d09e8201cd032c88004a9e/HoverListener.java/buggy/src/java/org/xhtmlrenderer/swing/HoverListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3127,
1362,
12,
3514,
9834,
13,
288,
3639,
368,
57,
89,
18,
84,
2932,
9341,
3347,
273,
315,
397,
9834,
1769,
3639,
1250,
1608,
18933,
1598,
273,
629,
31,
202,
202,
759,
327,
333,
3919,
578,
1245,
309,
518,
1807,
6298,
358,
1104,
326,
4608,
395,
15758,
329,
930,
18,
202,
202,
759,
309,
6555,
1508,
2537,
327,
446,
202,
202,
495,
273,
336,
13980,
395,
21184,
12,
495,
1769,
3639,
368,
57,
89,
18,
84,
2932,
12448,
14271,
273,
315,
397,
9834,
1769,
3639,
309,
261,
10001,
422,
9834,
13,
288,
5411,
327,
31,
3639,
289,
3639,
309,
261,
495,
422,
446,
13,
5411,
6594,
18,
24969,
329,
67,
2956,
273,
446,
31,
3639,
469,
5411,
6594,
18,
24969,
329,
67,
2956,
273,
9834,
18,
2956,
31,
3639,
368,
309,
10456,
596,
434,
326,
1592,
1203,
1508,
640,
4060,
518,
3639,
309,
261,
10001,
480,
446,
13,
288,
5411,
1250,
3127,
93,
1259,
273,
6594,
18,
29120,
7675,
588,
7359,
7675,
291,
21184,
24273,
1259,
12,
10001,
18,
2956,
1769,
5411,
309,
261,
8792,
93,
1259,
13,
288,
7734,
2807,
18,
266,
4060,
273,
638,
31,
759,
12336,
9782,
358,
3127,
1362,
326,
3919,
7734,
368,
10001,
18,
24969,
273,
629,
31,
7734,
1608,
18933,
1598,
273,
638,
31,
5411,
289,
3639,
289,
3639,
368,
327,
309,
1158,
394,
15758,
329,
1203,
31,
3639,
309,
261,
495,
480,
446,
13,
288,
1082,
202,
759,
3163,
18,
659,
18,
8222,
2932,
7736,
30,
315,
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,
3127,
1362,
12,
3514,
9834,
13,
288,
3639,
368,
57,
89,
18,
84,
2932,
9341,
3347,
273,
315,
397,
9834,
1769,
3639,
1250,
1608,
18933,
1598,
273,
629,
31,
202,
202,
759,
327,
333,
3919,
578,
1245,
309,
518,
1807,
6298,
358,
1104,
326,
4608,
395,
15758,
329,
930,
18,
202,
202,
759,
309,
6555,
1508,
2537,
327,
446,
202,
202,
495,
273,
336,
13980,
395,
21184,
12,
495,
1769,
3639,
368,
57,
89,
18,
84,
2932,
12448,
14271,
273,
315,
397,
9834,
1769,
3639,
309,
261,
10001,
422,
9834,
13,
288,
5411,
327,
31,
3639,
289,
3639,
309,
261,
495,
422,
446,
13,
5411,
6594,
18,
24969,
329,
67,
2956,
273,
446,
31,
3639,
469,
2
] |
||
return markers; }
|
return markers; }
|
public ConcreteMarker[] toArray() { return markers; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerList.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
735,
6883,
7078,
8526,
4434,
1435,
288,
202,
202,
2463,
11754,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
735,
6883,
7078,
8526,
4434,
1435,
288,
202,
202,
2463,
11754,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String nameKey = "com.idega.user.data.User.FIRST_NAME:" + "com.idega.user.data.User.MIDDLE_NAME:"+"com.idega.user.data.User.LAST_NAME";
|
String nameKey = User.class.toString()+".FIRST_NAME:" + User.class.toString()+".MIDDLE_NAME:"+User.class.toString()+".LAST_NAME";
|
private EntityBrowser getEntityBrowserForResult(Collection users, Map messageMap, BasicUserOverviewPS state, IWContext iwc) { // define entity browser EntityBrowser entityBrowser = new EntityBrowser(); PresentationObject parentObject = this.getParentObject(); entityBrowser.setArtificialCompoundId(parentObject.getCompoundId(), iwc); IWPresentationState presentationStateParent = ((StatefullPresentation) parentObject).getPresentationState(iwc); IWPresentationState presentationStateChild = entityBrowser.getPresentationState(iwc); ChangeListener[] chListeners = presentationStateParent.getChangeListener(); if (chListeners != null) { for (int i = 0; i < chListeners.length; i++) { presentationStateChild.addChangeListener(chListeners[i]); } } // add BasisUserOverviewPs as ActionListener to the entityBrowser entityBrowser.addActionListener((IWActionListener) presentationStateParent); // define error message converter class MessageConverter converterErrorMessage = new MessageConverter(); // set error message map converterErrorMessage.setEntityMessageMap(messageMap); // define address converter class EntityToPresentationObjectConverter converterAddress = new EntityToPresentationObjectConverter() { public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { // entity is a user, try to get the corresponding address User user = (User) entity; Address address = null; try { address = BasicUserOverview.getUserBusiness(iwc).getUsersCoAddress(user); } catch (RemoteException ex) { System.err.println("[BasicUserOverview]: Address could not be retrieved.Message was : " + ex.getMessage()); ex.printStackTrace(System.err); } // now the corresponding address was found, now just use the default converter return (browser.getDefaultConverter().getPresentationObject((GenericEntity) address, path, browser, iwc)); } }; // define email converter class EntityToPresentationObjectConverter converterEmail = new EntityToPresentationObjectConverter() { public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { // entity is a user, try to get the corresponding address User user = (User) entity; Email email = null; try { email = BasicUserOverview.getUserBusiness(iwc).getUserMail(user); } catch (RemoteException ex) { System.err.println("[BasicUserOverview]: Email could not be retrieved.Message was :" + ex.getMessage()); ex.printStackTrace(System.err); } // now the corresponding email was found, now just use the default converter return browser.getDefaultConverter().getPresentationObject((GenericEntity) email, path, browser, iwc); } }; // define phone converter class EntityToPresentationObjectConverter converterPhone = new EntityToPresentationObjectConverter() { public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { // entity is a user, try to get the corresponding address User user = (User) entity; Phone[] phone = null; try { phone = BasicUserOverview.getUserBusiness(iwc).getUserPhones(user); } catch (RemoteException ex) { System.err.println("[BasicUserOverview]: Phone could not be retrieved.Message was :" + ex.getMessage()); ex.printStackTrace(System.err); } // now the corresponding address was found, now just use the default converter int i; Table table = new Table(); for (i = 0; i < phone.length; i++) { table.add(browser.getDefaultConverter().getPresentationObject((GenericEntity) phone[i], path, browser, iwc)); } return table; } }; // define special converter class for complete address EntityToPresentationObjectConverter converterCompleteAddress = new EntityToPresentationObjectConverter() { private List values; public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object genericEntity, EntityPath path, EntityBrowser browser, IWContext iwc) { // entity is a user, try to get the corresponding address User user = (User) genericEntity; Address address = null; try { address = BasicUserOverview.getUserBusiness(iwc).getUsersMainAddress(user); } catch (RemoteException ex) { System.err.println("[BasicUserOverview]: Address could not be retrieved.Message was :" + ex.getMessage()); ex.printStackTrace(System.err); } StringBuffer displayValues = new StringBuffer(); values = path.getValues((EntityRepresentation) address); // com.idega.core.data.Address.STREET_NUMBER plus com.idega.core.data.Address.STREET_NUMBER displayValues.append(getValue(0)).append(' ').append(getValue(1)); // com.idega.core.data.Address.P_O_BOX String displayValue = getValue(2); if (displayValue.length() != 0) displayValues.append(", P.O. Box ").append(displayValue).append(", "); // com.idega.core.data.PostalCode.POSTAL_CODE_ID|POSTAL_CODE plus com.idega.core.data.Address.CITY displayValue = getValue(3); if (displayValue.length() != 0) displayValues.append(", ").append(getValue(3)).append(' ').append(getValue(4)); // com.idega.core.data.Country.IC_COUNTRY_ID|COUNTRY_NAME displayValue = getValue(5); if (displayValue.length() != 0) displayValues.append(", ").append(displayValue); return new Text(displayValues.toString()); } private String getValue(int i) { Object object = values.get(i); return ((object == null) ? "" : object.toString()); } }; // set default columns String errorMessageKey = "errorMessageKey"; String nameKey = "com.idega.user.data.User.FIRST_NAME:" + "com.idega.user.data.User.MIDDLE_NAME:"+"com.idega.user.data.User.LAST_NAME"; String completeAddressKey = "com.idega.core.data.Address.STREET_NAME:" + "com.idega.core.data.Address.STREET_NUMBER:" + "com.idega.core.data.Address.P_O_BOX:" + "com.idega.core.data.PostalCode.POSTAL_CODE_ID|POSTAL_CODE:" + "com.idega.core.data.Address.CITY:" + "com.idega.core.data.Country.IC_COUNTRY_ID|COUNTRY_NAME"; String emailKey = "com.idega.core.data.Email.ADDRESS"; String phoneKey = "com.idega.core.data.PhoneType.IC_PHONE_TYPE_ID|TYPE_DISPLAY_NAME:" + "com.idega.core.data.Phone.PHONE_NUMBER"; String pinKey = "com.idega.user.data.User.PERSONAL_ID"; Iterator iterator = messageMap.keySet().iterator(); String identifier = (iterator.hasNext()) ? iterator.next().toString() : "move"; entityBrowser.setEntities(identifier, users); entityBrowser.setDefaultNumberOfRows(Math.min(users.size(), 30)); //entityBrowser.setLineColor("#DBDCDF"); entityBrowser.setWidth(Table.HUNDRED_PERCENT); //entityBrowser.setLinesBetween(true); //fonts Text column = new Text(); column.setBold(); entityBrowser.setColumnTextProxy(column); // set color of rows entityBrowser.setColorForEvenRows(IWColor.getHexColorString(246, 246, 247)); entityBrowser.setColorForOddRows("#FFFFFF"); //entityBrowser.setVerticalZebraColored("#FFFFFF",IWColor.getHexColorString(246, 246, 247)); why does this not work!?? entityBrowser.setDefaultColumn(1, errorMessageKey); entityBrowser.setDefaultColumn(2, nameKey); entityBrowser.setDefaultColumn(3, pinKey); entityBrowser.setDefaultColumn(4, emailKey); entityBrowser.setDefaultColumn(5, completeAddressKey); entityBrowser.setDefaultColumn(6, phoneKey); // set special converters entityBrowser.setEntityToPresentationConverter(errorMessageKey, converterErrorMessage); entityBrowser.setEntityToPresentationConverter(completeAddressKey, converterCompleteAddress); // set converter for all columns of this class entityBrowser.setEntityToPresentationConverter("com.idega.core.data.Address", converterAddress); entityBrowser.setEntityToPresentationConverter("com.idega.core.data.Email", converterEmail); entityBrowser.setEntityToPresentationConverter("com.idega.core.data.Phone", converterPhone); // set foreign entities entityBrowser.addEntity("com.idega.core.data.Address"); entityBrowser.addEntity("com.idega.core.data.Email"); entityBrowser.addEntity("com.idega.core.data.Phone"); // change display entityBrowser.setCellspacing(2); entityBrowser.setAcceptUserSettingsShowUserSettingsButton(false,false); return entityBrowser; }
|
52002 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52002/83c61be395a4bbf9204543a8ee09749133666912/BasicUserOverview.java/clean/src/java/com/idega/user/presentation/BasicUserOverview.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3887,
9132,
6352,
9132,
1290,
1253,
12,
2532,
3677,
16,
1635,
883,
863,
16,
7651,
1299,
26648,
5857,
919,
16,
467,
59,
1042,
25522,
71,
13,
288,
565,
368,
4426,
1522,
4748,
565,
3887,
9132,
1522,
9132,
273,
394,
3887,
9132,
5621,
565,
25130,
367,
921,
982,
921,
273,
333,
18,
588,
3054,
921,
5621,
565,
1522,
9132,
18,
542,
4411,
1507,
649,
16835,
548,
12,
2938,
921,
18,
588,
16835,
548,
9334,
25522,
71,
1769,
565,
467,
59,
6351,
367,
1119,
22525,
1119,
3054,
273,
14015,
1119,
2854,
6351,
367,
13,
982,
921,
2934,
588,
6351,
367,
1119,
12,
22315,
71,
1769,
565,
467,
59,
6351,
367,
1119,
22525,
1119,
1763,
273,
1522,
9132,
18,
588,
6351,
367,
1119,
12,
22315,
71,
1769,
565,
7576,
2223,
8526,
462,
5583,
273,
22525,
1119,
3054,
18,
588,
15744,
5621,
565,
309,
261,
343,
5583,
480,
446,
13,
288,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
462,
5583,
18,
2469,
31,
277,
27245,
288,
3639,
22525,
1119,
1763,
18,
1289,
15744,
12,
343,
5583,
63,
77,
19226,
1377,
289,
565,
289,
565,
368,
527,
605,
17247,
1299,
26648,
18124,
487,
25962,
358,
326,
1522,
9132,
565,
1522,
9132,
18,
1289,
1803,
2223,
12443,
45,
59,
1803,
2223,
13,
22525,
1119,
3054,
1769,
3639,
368,
4426,
555,
883,
6027,
667,
565,
2350,
5072,
6027,
14935,
273,
394,
2350,
5072,
5621,
565,
368,
444,
555,
883,
852,
565,
6027,
14935,
18,
542,
1943,
1079,
863,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3887,
9132,
6352,
9132,
1290,
1253,
12,
2532,
3677,
16,
1635,
883,
863,
16,
7651,
1299,
26648,
5857,
919,
16,
467,
59,
1042,
25522,
71,
13,
288,
565,
368,
4426,
1522,
4748,
565,
3887,
9132,
1522,
9132,
273,
394,
3887,
9132,
5621,
565,
25130,
367,
921,
982,
921,
273,
333,
18,
588,
3054,
921,
5621,
565,
1522,
9132,
18,
542,
4411,
1507,
649,
16835,
548,
12,
2938,
921,
18,
588,
16835,
548,
9334,
25522,
71,
1769,
565,
467,
59,
6351,
367,
1119,
22525,
1119,
3054,
273,
14015,
1119,
2854,
6351,
367,
13,
982,
921,
2934,
588,
6351,
367,
1119,
12,
22315,
71,
1769,
565,
467,
59,
6351,
367,
1119,
22525,
1119,
1763,
273,
1522,
9132,
18,
588,
2
] |
final int node = _currentChild;
|
int node = _currentChild; if (_includeSelf) { if (node == -1) { node = _startNode; if (hasChildren(node)) _currentChild = _offsetOrChild[node]; else _currentChild = END; return node; } }
|
public int next() { final int node = _currentChild; _currentChild = _nextSibling[node]; return returnNode(node); }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/706695bb745afd0f8ce5340c5e9a23c2e11db914/DOMImpl.java/buggy/src/org/apache/xalan/xsltc/dom/DOMImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1024,
1435,
288,
202,
565,
727,
509,
756,
273,
389,
2972,
1763,
31,
202,
565,
389,
2972,
1763,
273,
389,
4285,
10291,
63,
2159,
15533,
202,
565,
327,
327,
907,
12,
2159,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1024,
1435,
288,
202,
565,
727,
509,
756,
273,
389,
2972,
1763,
31,
202,
565,
389,
2972,
1763,
273,
389,
4285,
10291,
63,
2159,
15533,
202,
565,
327,
327,
907,
12,
2159,
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
] |
public int getTransactionIsolation() throws SQLException {
|
public int getTransactionIsolation() throws SQLException {
|
public int getTransactionIsolation() throws SQLException { checkClosed(); return transactionIsolationLevel; }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/fbc92b9b9d3be5beafda76e8c5bfe04325cca422/TdsConnection.java/clean/src/main/net/sourceforge/jtds/jdbc/TdsConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
15674,
22982,
1435,
1216,
6483,
565,
288,
3639,
866,
7395,
5621,
3639,
327,
2492,
22982,
2355,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
15674,
22982,
1435,
1216,
6483,
565,
288,
3639,
866,
7395,
5621,
3639,
327,
2492,
22982,
2355,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.