rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
for (Iterator i = selectedList.iterator(); i.hasNext();)
|
for (Iterator<List<SubClass>> i = selectedList.iterator(); i.hasNext();)
|
private void checkForSubClass(final PlayerCharacter aPC) { if (!hasSubClass || (subClassList == null) || (subClassList.isEmpty())) { return; } List columnNames = new ArrayList(3); columnNames.add("Name"); columnNames.add("Cost"); columnNames.add("Other"); List choiceList = new ArrayList(); List removeList = new ArrayList(); buildSubClassChoiceList(choiceList, removeList, false, aPC); final ChooserInterface c = ChooserFactory.getChooserInstance(); c.setTitle("School Choice (Specialisation)"); c.setMessageText("Make a selection. The cost column indicates the cost of that selection. " + "If this cost is non-zero, you will be asked to also " + "select items from this list to give up to cover that cost."); c.setPool(1); c.setPoolFlag(false); //c.setCostColumnNumber(1); // Allow 1 choice, regardless of cost...cost will be applied in second phase c.setAvailableColumnNames(columnNames); c.setAvailableList(choiceList); if (choiceList.size() == 1) { c.setSelectedList(choiceList); } else if (choiceList.size() != 0) { c.setVisible(true); } List selectedList = c.getSelectedList(); if (!selectedList.isEmpty()) { setProhibitedString(""); specialtyList.clear(); SubClass sc = (SubClass)((List)selectedList.get(0)).get(0); choiceList = new ArrayList(); removeList = new ArrayList(); buildSubClassChoiceList(choiceList, removeList, true, aPC); // Remove the specialist school for (Iterator iter = choiceList.iterator(); iter.hasNext();) { final List columns = (List) iter.next(); if (columns.get(0).equals(sc)) { iter.remove(); break; } } choiceList.removeAll(removeList); setSubClassKey(sc.getKeyName()); if (sc.getChoice().length() > 0) { specialtyList.add(sc.getChoice()); } if (sc.getCost() != 0) { final ChooserInterface c1 = ChooserFactory.getChooserInstance(); c1.setTitle("School Choice (Prohibited)"); c1.setAvailableColumnNames(columnNames); c1.setAvailableList(choiceList); c1.setMessageText("Make a selection. You must make as many selections " + "necessary to cover the cost of your previous selections."); c1.setPool(sc.getCost()); c1.setPoolFlag(true); c1.setCostColumnNumber(1); c1.setNegativeAllowed(true); c1.setVisible(true); selectedList = c1.getSelectedList(); for (Iterator i = selectedList.iterator(); i.hasNext();) { final List columns = (List)i.next(); sc = (SubClass)columns.get(0); if (prohibitedString.length() > 0) { prohibitedString = prohibitedString.concat(","); } prohibitedString = prohibitedString.concat(sc.getChoice()); } } } }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/PCClass.java/buggy/code/src/java/pcgen/core/PCClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
13855,
1676,
797,
12,
6385,
19185,
7069,
279,
3513,
13,
202,
95,
202,
202,
430,
16051,
5332,
1676,
797,
747,
261,
1717,
30546,
422,
446,
13,
747,
261,
1717,
30546,
18,
291,
1921,
1435,
3719,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
682,
19975,
273,
394,
2407,
12,
23,
1769,
202,
202,
2827,
1557,
18,
1289,
2932,
461,
8863,
202,
202,
2827,
1557,
18,
1289,
2932,
8018,
8863,
202,
202,
2827,
1557,
18,
1289,
2932,
8290,
8863,
202,
202,
682,
6023,
682,
273,
394,
2407,
5621,
202,
202,
682,
1206,
682,
273,
394,
2407,
5621,
202,
202,
3510,
1676,
797,
10538,
682,
12,
11569,
682,
16,
1206,
682,
16,
629,
16,
279,
3513,
1769,
202,
202,
6385,
1680,
83,
13164,
1358,
276,
273,
1680,
83,
13164,
1733,
18,
588,
17324,
1442,
5621,
202,
202,
71,
18,
542,
4247,
2932,
55,
343,
1371,
16432,
261,
12193,
10742,
2225,
1769,
202,
202,
71,
18,
542,
1079,
1528,
2932,
6464,
279,
4421,
18,
225,
1021,
6991,
1057,
8527,
326,
6991,
434,
716,
4421,
18,
315,
1082,
202,
15,
315,
2047,
333,
6991,
353,
1661,
17,
7124,
16,
1846,
903,
506,
19279,
358,
2546,
315,
1082,
202,
15,
315,
4025,
1516,
628,
333,
666,
358,
8492,
731,
358,
5590,
716,
6991,
1199,
1769,
202,
202,
71,
18,
542,
2864,
12,
21,
1769,
202,
202,
71,
18,
542,
2864,
4678,
12,
5743,
1769,
202,
202,
759,
71,
18,
542,
8018,
1494,
1854,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
13855,
1676,
797,
12,
6385,
19185,
7069,
279,
3513,
13,
202,
95,
202,
202,
430,
16051,
5332,
1676,
797,
747,
261,
1717,
30546,
422,
446,
13,
747,
261,
1717,
30546,
18,
291,
1921,
1435,
3719,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
682,
19975,
273,
394,
2407,
12,
23,
1769,
202,
202,
2827,
1557,
18,
1289,
2932,
461,
8863,
202,
202,
2827,
1557,
18,
1289,
2932,
8018,
8863,
202,
202,
2827,
1557,
18,
1289,
2932,
8290,
8863,
202,
202,
682,
6023,
682,
273,
394,
2407,
5621,
202,
202,
682,
1206,
682,
273,
394,
2407,
5621,
202,
202,
3510,
1676,
797,
10538,
682,
12,
11569,
682,
16,
1206,
682,
16,
629,
2
] |
boolean skipMIDI = true;
|
boolean skipMIDI = false;
|
public static void main(String[] args) { String inputPort = null; String outputPort = null; boolean listPorts = false; boolean debugMIDI = false; boolean skipMIDI = true; // handle argument list int i = 0; LongOpt[] longopts = new LongOpt[6]; longopts[i++] = new LongOpt("output", LongOpt.REQUIRED_ARGUMENT, null, 'o'); longopts[i++] = new LongOpt("input", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longopts[i++] = new LongOpt("list", LongOpt.NO_ARGUMENT, null, 'l'); longopts[i++] = new LongOpt("help", LongOpt.NO_ARGUMENT, null, 'h'); longopts[i++] = new LongOpt("nomidi", LongOpt.NO_ARGUMENT, null, 'n'); longopts[i++] = new LongOpt("debugmidi", LongOpt.NO_ARGUMENT, null, 0); Getopt g = new Getopt("Qualm", args, "o:i:hln", longopts); int c; while ((c = g.getopt()) != -1) { switch(c) { case 0: // debugmidi option debugMIDI = true; break; case 'n': skipMIDI = true; case 'i': inputPort = g.getOptarg(); break; case 'o': outputPort = g.getOptarg(); break; case 'l': listPorts = true; break; case 'h': usage(); System.exit(0); } } if (g.getOptind() == args.length && !listPorts) { System.out.println("No filename given."); System.exit(0); } String inputFilename = null; if (!listPorts) inputFilename = args[g.getOptind()]; // set ports if (inputPort == null && outputPort == null) inputPort="UM-1"; if (outputPort == null) outputPort = inputPort; if (inputPort == null) inputPort = outputPort; MidiDevice.Info inputInfo = null; MidiDevice.Info outputInfo = null; if (!skipMIDI) { MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo(); if (infos.length == 0) { System.out.println( "No MIDI devices found. Exiting." ); System.exit(1); } boolean useAlsa = true; /* Find ALSA MIDI ports */ List midiports = new ArrayList(); for(i = 0; i<infos.length; i++) { if (infos[i].getName().startsWith("ALSA MIDI")) { midiports.add(infos[i]); } } /* If we found no ALSA ports, then we'll use others */ if (midiports.size() == 0) { useAlsa = false; for(i = 0; i<infos.length; i++) midiports.add(infos[i]); } if (midiports.size() == 0) { System.out.println("No MIDI ports found. Exiting." ); System.exit(1); } Map clientMap = null; if (useAlsa) clientMap = Qualm.parseALSAClients(); if (listPorts) System.out.println("MIDI ports:"); Iterator iter = midiports.iterator(); while (iter.hasNext()) { MidiDevice.Info info = (MidiDevice.Info)iter.next(); String dev = info.getName(); String cName = dev; if (useAlsa) { dev = dev.substring(dev.indexOf('(')+1); dev = dev.substring(0, dev.lastIndexOf( ':' )); Integer cNum = new Integer(dev); cName = (String)clientMap.get(cNum); } if (listPorts) System.out.println (" " + info.getName() + " [" + cName +"]"); // Is this a port we want? if (cName.indexOf(inputPort) != -1 || info.getName().indexOf(inputPort) != -1) inputInfo = info; if (cName.indexOf(outputPort) != -1 || info.getName().indexOf(outputPort) != -1) outputInfo = info; } if (listPorts) System.exit(0); if (inputInfo == null ) { System.out.println("Unable to load input port named " + inputPort); System.exit(1); } if (outputInfo == null) { System.out.println("Unable to load output port named " + outputPort); System.exit(1); } } // !skipMIDI // get the transmitter and receiver Transmitter midiIn = null; Receiver midiOut = null; // Load the qualm file System.out.println("loading " + inputFilename + "..."); QDataLoader qdl = new QDataLoader(); QData data = qdl.readFile( new java.io.File( inputFilename )); if ( data == null && !debugMIDI ) { System.out.println("No readable files; exiting"); System.exit(1); } try { if (!skipMIDI) { MidiDevice inDevice = MidiSystem.getMidiDevice( inputInfo ); MidiDevice outDevice = MidiSystem.getMidiDevice( outputInfo ); inDevice.open(); outDevice.open(); midiIn = inDevice.getTransmitter(); midiOut = outDevice.getReceiver(); } // !skipMIDI // open a receiver with the right data file. QController qc = new QController( midiOut, data ); if (debugMIDI) qc.setDebugMIDI(true); // Start a read-eval-print loop as well. The REPL will do a // System.exit when all is done. new QualmREPL( qc ).start(); // connect the transmitter to the receiver. if (!skipMIDI) midiIn.setReceiver( qc ); } catch (MidiUnavailableException mue) { System.out.println(mue); } }
|
48962 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48962/34b14b067f82840a7625c0627066951deadbc6f5/Qualm.java/buggy/Qualm.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
565,
514,
810,
2617,
273,
446,
31,
565,
514,
876,
2617,
273,
446,
31,
565,
1250,
666,
11107,
273,
629,
31,
565,
1250,
1198,
49,
30218,
273,
629,
31,
565,
1250,
2488,
49,
30218,
273,
629,
31,
565,
368,
1640,
1237,
666,
565,
509,
277,
273,
374,
31,
565,
3407,
6179,
8526,
1525,
4952,
273,
394,
3407,
6179,
63,
26,
15533,
565,
1525,
4952,
63,
77,
9904,
65,
273,
394,
3407,
6179,
2932,
2844,
3113,
3407,
6179,
18,
14977,
67,
18311,
16,
446,
16,
296,
83,
8284,
565,
1525,
4952,
63,
77,
9904,
65,
273,
394,
3407,
6179,
2932,
2630,
3113,
3407,
6179,
18,
14977,
67,
18311,
16,
446,
16,
296,
77,
8284,
565,
1525,
4952,
63,
77,
9904,
65,
273,
394,
3407,
6179,
2932,
1098,
3113,
3407,
6179,
18,
3417,
67,
18311,
16,
446,
16,
296,
80,
8284,
565,
1525,
4952,
63,
77,
9904,
65,
273,
394,
3407,
6179,
2932,
5201,
3113,
3407,
6179,
18,
3417,
67,
18311,
16,
446,
16,
296,
76,
8284,
565,
1525,
4952,
63,
77,
9904,
65,
273,
394,
3407,
6179,
2932,
12306,
350,
77,
3113,
3407,
6179,
18,
3417,
67,
18311,
16,
446,
16,
296,
82,
8284,
565,
1525,
4952,
63,
77,
9904,
65,
273,
394,
3407,
6179,
2932,
4148,
13138,
77,
3113,
3407,
6179,
18,
3417,
67,
18311,
16,
446,
16,
374,
1769,
565,
968,
3838,
314,
273,
394,
968,
3838,
2932,
5628,
81,
3113,
833,
16,
315,
83,
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,
2774,
12,
780,
8526,
833,
13,
288,
565,
514,
810,
2617,
273,
446,
31,
565,
514,
876,
2617,
273,
446,
31,
565,
1250,
666,
11107,
273,
629,
31,
565,
1250,
1198,
49,
30218,
273,
629,
31,
565,
1250,
2488,
49,
30218,
273,
629,
31,
565,
368,
1640,
1237,
666,
565,
509,
277,
273,
374,
31,
565,
3407,
6179,
8526,
1525,
4952,
273,
394,
3407,
6179,
63,
26,
15533,
565,
1525,
4952,
63,
77,
9904,
65,
273,
394,
3407,
6179,
2932,
2844,
3113,
3407,
6179,
18,
14977,
67,
18311,
16,
446,
16,
296,
83,
8284,
565,
1525,
4952,
63,
77,
9904,
65,
273,
394,
3407,
6179,
2932,
2630,
3113,
3407,
6179,
18,
14977,
67,
18311,
16,
2
] |
if (element instanceof File) { return ((File) element).getParentFile(); } return null; }
|
if (element instanceof IFileStore) { return ((IFileStore) element).getParent(); } return null; }
|
public Object getParent(Object element) { if (element instanceof File) { return ((File) element).getParentFile(); } return null; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4fa8140ffec3a3544c0a2db6ba0bdc1c7b39d189/FileFolderSelectionDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileFolderSelectionDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
5089,
12,
921,
930,
13,
288,
5411,
309,
261,
2956,
1276,
1387,
13,
288,
7734,
327,
14015,
812,
13,
930,
2934,
588,
3054,
812,
5621,
5411,
289,
5411,
327,
446,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
5089,
12,
921,
930,
13,
288,
5411,
309,
261,
2956,
1276,
1387,
13,
288,
7734,
327,
14015,
812,
13,
930,
2934,
588,
3054,
812,
5621,
5411,
289,
5411,
327,
446,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
boolean defHasPositive = false; for(int j=0; j < newData.numInstances(); j++){ Instance datum = newData.instance(j); if((int)datum.classValue() == (int)classIndex){ defHasPositive = true; break; } } if(!defHasPositive) return data;
|
boolean defHasPositive = true;
|
protected Instances rulesetForOneClass(double expFPRate, Instances data, double classIndex, double defDL) throws Exception{ Instances newData = data, growData, pruneData; boolean stop = false; FastVector ruleset = new FastVector(); double dl = defDL, minDL = defDL; RuleStats rstats = null; double[] rst; // Check whether data have positive examples boolean defHasPositive = false; for(int j=0; j < newData.numInstances(); j++){ Instance datum = newData.instance(j); if((int)datum.classValue() == (int)classIndex){ defHasPositive = true; break; } } if(!defHasPositive)// Subsumed by previous rules return data; boolean hasPositive = defHasPositive; /********************** Building stage ***********************/ if(m_Debug) System.err.println("\n*** Building stage ***"); while((!stop) && hasPositive){ // Generate new rules until // stopping criteria met RipperRule oneRule; if(m_UsePruning){ /* Split data into Grow and Prune*/ // We should have stratified the data, but ripper seems // to have a bug that makes it not to do so. In order // to simulate it more precisely, we do the same thing. //newData.randomize(m_Random); newData = RuleStats.stratify(newData, m_Folds, m_Random); Instances[] part = RuleStats.partition(newData, m_Folds); growData=part[0]; pruneData=part[1]; //growData=newData.trainCV(m_Folds, m_Folds-1); //pruneData=newData.testCV(m_Folds, m_Folds-1); oneRule = new RipperRule(); oneRule.setConsequent(classIndex); // Must set first if(m_Debug) System.err.println("\nGrowing a rule ..."); oneRule.grow(growData); // Build the rule if(m_Debug) System.err.println("One rule found before pruning:"+ oneRule.toString(m_Class)); if(m_Debug) System.err.println("\nPruning the rule ..."); oneRule.prune(pruneData, false); // Prune the rule if(m_Debug) System.err.println("One rule found after pruning:"+ oneRule.toString(m_Class)); } else{ oneRule = new RipperRule(); oneRule.setConsequent(classIndex); // Must set first if(m_Debug) System.err.println("\nNo pruning: growing a rule ..."); oneRule.grow(newData); // Build the rule if(m_Debug) System.err.println("No pruning: one rule found:\n"+ oneRule.toString(m_Class)); } // Compute the DL of this ruleset if(rstats == null){ // First rule rstats = new RuleStats(); rstats.setNumAllConds(m_Total); rstats.setData(newData); } rstats.addAndUpdate(oneRule); int last = rstats.getRuleset().size()-1; // Index of last rule dl += rstats.relativeDL(last, expFPRate, m_CheckErr); if(Double.isNaN(dl) || Double.isInfinite(dl)) throw new Exception("Should never happen: dl in "+ "building stage NaN or infinite!"); if(m_Debug) System.err.println("Before optimization("+last+ "): the dl = "+dl+" | best: "+minDL); if(dl < minDL) minDL = dl; // The best dl so far rst = rstats.getSimpleStats(last); if(m_Debug) System.err.println("The rule covers: "+rst[0]+ " | pos = " + rst[2] + " | neg = " + rst[4]+ "\nThe rule doesn't cover: "+rst[1]+ " | pos = " + rst[5]); stop = checkStop(rst, minDL, dl); if(!stop){ ruleset.addElement(oneRule); // Accepted newData = rstats.getFiltered(last)[1];// Data not covered hasPositive = Utils.gr(rst[5], 0.0); // Positives remaining? if(m_Debug) System.err.println("One rule added: has positive? " +hasPositive); } else{ if(m_Debug) System.err.println("Quit rule"); rstats.removeLast(); // Remove last to be re-used } }// while !stop /******************** Optimization stage *******************/ RuleStats finalRulesetStat = null; if(m_UsePruning){ for(int z=0; z < m_Optimizations; z++){ if(m_Debug) System.err.println("\n*** Optimization: run #" +z+" ***"); newData = data; finalRulesetStat = new RuleStats(); finalRulesetStat.setData(newData); finalRulesetStat.setNumAllConds(m_Total); int position=0; stop = false; boolean isResidual = false; hasPositive = defHasPositive; dl = minDL = defDL; oneRule: while(!stop && hasPositive){ isResidual = (position>=ruleset.size()); // Cover residual positive examples // Re-do shuffling and stratification //newData.randomize(m_Random); newData = RuleStats.stratify(newData, m_Folds, m_Random); Instances[] part = RuleStats.partition(newData, m_Folds); growData=part[0]; pruneData=part[1]; //growData=newData.trainCV(m_Folds, m_Folds-1); //pruneData=newData.testCV(m_Folds, m_Folds-1); RipperRule finalRule; if(m_Debug) System.err.println("\nRule #"+position + "| isResidual?" + isResidual+ "| data size: "+newData.sumOfWeights()); if(isResidual){ RipperRule newRule = new RipperRule(); newRule.setConsequent(classIndex); if(m_Debug) System.err.println("\nGrowing and pruning"+ " a new rule ..."); newRule.grow(growData); newRule.prune(pruneData, false); finalRule = newRule; if(m_Debug) System.err.println("\nNew rule found: "+ newRule.toString(m_Class)); } else{ RipperRule oldRule = (RipperRule)ruleset.elementAt(position); boolean covers = false; // Test coverage of the next old rule for(int i=0; i<newData.numInstances(); i++) if(oldRule.covers(newData.instance(i))){ covers = true; break; } if(!covers){// Null coverage, no variants can be generated finalRulesetStat.addAndUpdate(oldRule); position++; continue oneRule; } // 2 variants if(m_Debug) System.err.println("\nGrowing and pruning"+ " Replace ..."); RipperRule replace = new RipperRule(); replace.setConsequent(classIndex); replace.grow(growData); // Remove the pruning data covered by the following // rules, then simply compute the error rate of the // current rule to prune it. According to Ripper, // it's equivalent to computing the error of the // whole ruleset -- is it true? pruneData = RuleStats.rmCoveredBySuccessives(pruneData,ruleset, position); replace.prune(pruneData, true); if(m_Debug) System.err.println("\nGrowing and pruning"+ " Revision ..."); RipperRule revision = (RipperRule)oldRule.copy(); // For revision, first rm the data covered by the old rule Instances newGrowData = new Instances(growData, 0); for(int b=0; b<growData.numInstances(); b++){ Instance inst = growData.instance(b); if(revision.covers(inst)) newGrowData.add(inst); } revision.grow(newGrowData); revision.prune(pruneData, true); double[][] prevRuleStats = new double[position][6]; for(int c=0; c < position; c++) prevRuleStats[c] = finalRulesetStat.getSimpleStats(c); // Now compare the relative DL of variants FastVector tempRules = (FastVector)ruleset.copyElements(); tempRules.setElementAt(replace, position); RuleStats repStat = new RuleStats(data, tempRules); repStat.setNumAllConds(m_Total); repStat.countData(position, newData, prevRuleStats); //repStat.countData(); rst = repStat.getSimpleStats(position); if(m_Debug) System.err.println("Replace rule covers: "+rst[0]+ " | pos = " + rst[2] + " | neg = " + rst[4]+ "\nThe rule doesn't cover: "+rst[1]+ " | pos = " + rst[5]); double repDL = repStat.relativeDL(position, expFPRate, m_CheckErr); if(m_Debug) System.err.println("\nReplace: "+ replace.toString(m_Class) +" |dl = "+repDL); if(Double.isNaN(repDL) || Double.isInfinite(repDL)) throw new Exception("Should never happen: repDL"+ "in optmz. stage NaN or "+ "infinite!"); tempRules.setElementAt(revision, position); RuleStats revStat = new RuleStats(data, tempRules); revStat.setNumAllConds(m_Total); revStat.countData(position, newData, prevRuleStats); //revStat.countData(); double revDL = revStat.relativeDL(position, expFPRate, m_CheckErr); if(m_Debug) System.err.println("Revision: " + revision.toString(m_Class) +" |dl = "+revDL); if(Double.isNaN(revDL) || Double.isInfinite(revDL)) throw new Exception("Should never happen: revDL"+ "in optmz. stage NaN or "+ "infinite!"); rstats = new RuleStats(data, ruleset); rstats.setNumAllConds(m_Total); rstats.countData(position, newData, prevRuleStats); //rstats.countData(); double oldDL = rstats.relativeDL(position, expFPRate, m_CheckErr); if(Double.isNaN(oldDL) || Double.isInfinite(oldDL)) throw new Exception("Should never happen: oldDL"+ "in optmz. stage NaN or "+ "infinite!"); if(m_Debug) System.err.println("Old rule: "+ oldRule.toString(m_Class) +" |dl = "+oldDL); if(m_Debug) System.err.println("\nrepDL: "+repDL+ "\nrevDL: "+revDL+ "\noldDL: "+oldDL); if((oldDL <= revDL) && (oldDL <= repDL)) finalRule = oldRule; // Old the best else if(revDL <= repDL) finalRule = revision; // Revision the best else finalRule = replace; // Replace the best } finalRulesetStat.addAndUpdate(finalRule); rst = finalRulesetStat.getSimpleStats(position); if(isResidual){ dl += finalRulesetStat.relativeDL(position, expFPRate, m_CheckErr); if(m_Debug) System.err.println("After optimization: the dl" +"="+dl+" | best: "+minDL); if(dl < minDL) minDL = dl; // The best dl so far stop = checkStop(rst, minDL, dl); if(!stop) ruleset.addElement(finalRule); // Accepted else{ finalRulesetStat.removeLast(); // Remove last to be re-used position--; } } else ruleset.setElementAt(finalRule, position); // Accepted if(m_Debug){ System.err.println("The rule covers: "+rst[0]+ " | pos = " + rst[2] + " | neg = " + rst[4]+ "\nThe rule doesn't cover: "+rst[1]+ " | pos = " + rst[5]); System.err.println("\nRuleset so far: "); for(int x=0; x<ruleset.size(); x++) System.err.println(x+": "+((RipperRule)ruleset.elementAt(x)).toString(m_Class)); System.err.println(); } //Data not covered if(finalRulesetStat.getRulesetSize() > 0)// If any rules newData = finalRulesetStat.getFiltered(position)[1]; hasPositive = Utils.gr(rst[5], 0.0); //Positives remaining? position++; } // while !stop && hasPositive if(ruleset.size() > (position+1)){ // Hasn't gone through yet for(int k=position+1; k<ruleset.size(); k++) finalRulesetStat.addAndUpdate((Rule)ruleset.elementAt(k)); } if(m_Debug) System.err.println("\nDeleting rules to decrease"+ " DL of the whole ruleset ..."); finalRulesetStat.reduceDL(expFPRate, m_CheckErr); if(m_Debug){ int del = ruleset.size() - finalRulesetStat.getRulesetSize(); System.err.println(del+" rules are deleted"+ " after DL reduction procedure"); } ruleset = finalRulesetStat.getRuleset(); rstats = finalRulesetStat; } // For each run of optimization } // if pruning is used // Concatenate the ruleset for this class to the whole ruleset if(m_Debug){ System.err.println("\nFinal ruleset: "); for(int x=0; x<ruleset.size(); x++) System.err.println(x+": "+((RipperRule)ruleset.elementAt(x)).toString(m_Class)); System.err.println(); } m_Ruleset.appendElements(ruleset); m_RulesetStats.addElement(rstats); if(ruleset.size() > 0)// If any rules for this class return rstats.getFiltered(ruleset.size()-1)[1]; // Data not else // covered return data; }
|
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/85e97c8c457c27d321184e96a9a4285eda5a53e7/JRip.java/buggy/weka/classifiers/rules/JRip.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
18357,
25303,
1290,
3335,
797,
12,
9056,
1329,
30246,
4727,
16,
9944,
18357,
501,
16,
9944,
1645,
667,
1016,
16,
25083,
1645,
1652,
8914,
13,
565,
1216,
1185,
95,
202,
565,
18357,
16026,
273,
501,
16,
13334,
751,
16,
13293,
751,
31,
21114,
565,
1250,
2132,
273,
629,
31,
565,
9545,
5018,
25303,
273,
394,
9545,
5018,
5621,
9506,
565,
1645,
8910,
273,
1652,
8914,
16,
1131,
8914,
273,
1652,
8914,
31,
565,
6781,
4195,
436,
5296,
273,
446,
31,
565,
1645,
8526,
13978,
31,
202,
565,
368,
2073,
2856,
501,
1240,
6895,
10991,
565,
1250,
1652,
5582,
14900,
273,
629,
31,
202,
565,
364,
12,
474,
525,
33,
20,
31,
525,
411,
16026,
18,
2107,
5361,
5621,
525,
27245,
95,
1377,
5180,
12059,
273,
16026,
18,
1336,
12,
78,
1769,
1377,
309,
12443,
474,
13,
3404,
379,
18,
1106,
620,
1435,
422,
261,
474,
13,
1106,
1016,
15329,
202,
536,
5582,
14900,
273,
638,
31,
202,
8820,
31,
1377,
289,
202,
2868,
289,
1082,
565,
309,
12,
5,
536,
5582,
14900,
13,
759,
2592,
1364,
329,
635,
2416,
2931,
1377,
327,
501,
31,
202,
565,
1250,
711,
14900,
273,
1652,
5582,
14900,
31,
202,
565,
342,
2751,
11345,
3998,
310,
6009,
380,
2751,
17097,
202,
565,
309,
12,
81,
67,
2829,
13,
1377,
2332,
18,
370,
18,
8222,
31458,
82,
14465,
3998,
310,
6009,
18852,
8863,
3639,
1323,
12443,
5,
5681,
13,
597,
711,
14900,
15329,
368,
6654,
394,
2931,
3180,
1377,
368,
17008,
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,
18357,
25303,
1290,
3335,
797,
12,
9056,
1329,
30246,
4727,
16,
9944,
18357,
501,
16,
9944,
1645,
667,
1016,
16,
25083,
1645,
1652,
8914,
13,
565,
1216,
1185,
95,
202,
565,
18357,
16026,
273,
501,
16,
13334,
751,
16,
13293,
751,
31,
21114,
565,
1250,
2132,
273,
629,
31,
565,
9545,
5018,
25303,
273,
394,
9545,
5018,
5621,
9506,
565,
1645,
8910,
273,
1652,
8914,
16,
1131,
8914,
273,
1652,
8914,
31,
565,
6781,
4195,
436,
5296,
273,
446,
31,
565,
1645,
8526,
13978,
31,
202,
565,
368,
2073,
2856,
501,
1240,
6895,
10991,
565,
1250,
1652,
5582,
14900,
273,
629,
31,
202,
565,
364,
12,
474,
525,
33,
20,
31,
525,
411,
16026,
18,
2107,
5361,
2
] |
error("literal may not contain character reference");
|
{ reset(); c = '&'; } else {
|
private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); buf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = false; boolean entities = false; for (char c = literalReadCh(); c != delim; c = literalReadCh()) { switch (c) { case '\n': case '\r': if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0) c = ' '; // normalize to space break; case '\t': if ((flags & LIT_ATTRIBUTE) != 0) c = ' '; // normalize to space break; case '&': mark(2); c = readCh(); if (c == '#') { if ((flags & LIT_DISABLE_CREF) != 0) error("literal may not contain character reference"); mark(1); c = readCh(); boolean hex = (c == 'x'); if (!hex) reset(); char[] ref = readCharacterRef(hex ? 16 : 10); for (int i = 0; i < ref.length; i++) { c = ref[i]; if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0 && (c == '\n' || c == '\r')) c = ' '; // normalize else if ((flags & LIT_ATTRIBUTE) != 0 && c == '\t') c = ' '; // normalize buf.append(c); } entities = true; continue; } else { if ((flags & LIT_DISABLE_EREF) != 0) error("literal may not contain entity reference"); reset(); if (replaceERefs || (flags & LIT_NORMALIZE) > 0) { String entityName = readNmtoken(true); require(';'); String text = (String) PREDEFINED_ENTITIES.get(entityName); if (text != null) buf.append(text); else expandEntity(entityName); entities = true; continue; } else error("parser is configured not to replace entity " + "references"); } break; case '<': if ((flags & LIT_ATTRIBUTE) != 0) error("attribute values may not contain '<'"); break; } buf.append(c); } expandPE = saved; if (entities) normalizeCRLF(); if ((flags & LIT_NORMALIZE) > 0) normalize(); return buf.toString(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0194d0bf7a4335231f8ce3fab46cefa8a9a70bb0/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
855,
6177,
12,
474,
2943,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1250,
5198,
273,
4542,
1423,
31,
565,
1149,
10508,
273,
855,
782,
5621,
565,
309,
261,
23822,
480,
15053,
597,
10508,
480,
4754,
13,
1377,
555,
2932,
3825,
2337,
5187,
578,
1239,
11,
2412,
3113,
394,
6577,
12,
23822,
10019,
565,
1681,
18,
542,
1782,
12,
20,
1769,
565,
309,
14015,
7133,
473,
511,
1285,
67,
13498,
2782,
67,
1423,
13,
480,
374,
13,
1377,
4542,
1423,
273,
629,
31,
565,
1250,
5140,
273,
629,
31,
565,
364,
261,
3001,
276,
273,
7158,
1994,
782,
5621,
276,
480,
10508,
31,
276,
273,
7158,
1994,
782,
10756,
1377,
288,
3639,
1620,
261,
71,
13,
1850,
288,
1850,
648,
2337,
82,
4278,
1850,
648,
2337,
86,
4278,
5411,
309,
14015,
7133,
473,
261,
15716,
67,
11616,
571,
511,
1285,
67,
17217,
734,
3719,
480,
374,
13,
2868,
276,
273,
296,
12386,
368,
3883,
358,
3476,
5411,
898,
31,
1850,
648,
2337,
88,
4278,
5411,
309,
14015,
7133,
473,
511,
1285,
67,
11616,
13,
480,
374,
13,
2868,
276,
273,
296,
12386,
368,
3883,
358,
3476,
5411,
898,
31,
1850,
648,
5183,
4278,
5411,
2267,
12,
22,
1769,
5411,
276,
273,
855,
782,
5621,
5411,
309,
261,
71,
422,
2946,
6134,
2868,
288,
7734,
309,
14015,
7133,
473,
511,
1285,
67,
13498,
2782,
67,
5458,
42,
13,
480,
374,
13,
5375,
288,
2715,
5621,
276,
273,
9824,
31,
289,
469,
288,
7734,
2267,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
855,
6177,
12,
474,
2943,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1250,
5198,
273,
4542,
1423,
31,
565,
1149,
10508,
273,
855,
782,
5621,
565,
309,
261,
23822,
480,
15053,
597,
10508,
480,
4754,
13,
1377,
555,
2932,
3825,
2337,
5187,
578,
1239,
11,
2412,
3113,
394,
6577,
12,
23822,
10019,
565,
1681,
18,
542,
1782,
12,
20,
1769,
565,
309,
14015,
7133,
473,
511,
1285,
67,
13498,
2782,
67,
1423,
13,
480,
374,
13,
1377,
4542,
1423,
273,
629,
31,
565,
1250,
5140,
273,
629,
31,
565,
364,
261,
3001,
276,
273,
7158,
1994,
782,
5621,
276,
480,
10508,
31,
276,
273,
7158,
1994,
782,
10756,
1377,
288,
3639,
1620,
261,
71,
2
] |
Document docContext = (Node.DOCUMENT_NODE == context.getNodeType()) ? (Document)context : context.getOwnerDocument(); XObject arg = (XObject)this.getArg0().execute(xctxt);
|
Document docContext = (Node.DOCUMENT_NODE == context.getNodeType()) ? (Document) context : context.getOwnerDocument(); XObject arg = (XObject) this.getArg0().execute(xctxt);
|
public XObject execute(XPathContext xctxt) throws org.xml.sax.SAXException { Node context = xctxt.getCurrentNode(); Document docContext = (Node.DOCUMENT_NODE == context.getNodeType()) ? (Document)context : context.getOwnerDocument(); XObject arg = (XObject)this.getArg0().execute(xctxt); String base = ""; Expression arg1Expr = this.getArg1(); if(null != arg1Expr) { // The URI reference may be relative. The base URI (see [3.2 Base URI]) // of the node in the second argument node-set that is first in document // order is used as the base URI for resolving the // relative URI into an absolute URI. XObject arg2 = arg1Expr.execute(xctxt); if(XObject.CLASS_NODESET == arg2.getType()) { Node baseNode = arg2.nodeset().nextNode(); if (baseNode == null) warn(xctxt, XSLTErrorResources.WG_EMPTY_SECOND_ARG, null); Document baseDoc = (baseNode == null ? null : (Node.DOCUMENT_NODE == baseNode.getNodeType()) ? (Document)baseNode : baseNode.getOwnerDocument()); if(baseDoc == null || baseDoc instanceof Stylesheet) { // base = ((Stylesheet)baseDoc).getBaseIdentifier(); base = xctxt.getNamespaceContext().getBaseIdentifier(); } else base = xctxt.getSourceTreeManager().findURIFromDoc(baseDoc); } else { base = arg2.str(); } } else { // If the second argument is omitted, then it defaults to // the node in the stylesheet that contains the expression that // includes the call to the document function. Note that a // zero-length URI reference is a reference to the document // relative to which the URI reference is being resolved; thus // document("") refers to the root node of the stylesheet; // the tree representation of the stylesheet is exactly // the same as if the XML document containing the stylesheet // was the initial source document. base = xctxt.getNamespaceContext().getBaseIdentifier(); } XNodeSet nodes = new XNodeSet(); NodeSet mnl = nodes.mutableNodeset(); NodeIterator iterator = (XObject.CLASS_NODESET == arg.getType()) ? arg.nodeset() : null; Node pos = null; while((null == iterator) || (null != (pos = iterator.nextNode()))) { String ref = (null != iterator) ? DOMHelper.getNodeData(pos) : arg.str(); if(null == ref) continue; if(null == docContext) { error(xctxt, XSLTErrorResources.ER_NO_CONTEXT_OWNERDOC, null); //"context does not have an owner document!"); } // From http://www.ics.uci.edu/pub/ietf/uri/rfc1630.txt // A partial form can be distinguished from an absolute form in that the // latter must have a colon and that colon must occur before any slash // characters. Systems not requiring partial forms should not use any // unencoded slashes in their naming schemes. If they do, absolute URIs // will still work, but confusion may result. int indexOfColon = ref.indexOf(':'); int indexOfSlash = ref.indexOf('/'); if((indexOfColon != -1) && (indexOfSlash != -1) && (indexOfColon < indexOfSlash)) { // The url (or filename, for that matter) is absolute. base = null; } Node newDoc = getDoc(xctxt, context, ref, base); // nodes.mutableNodeset().addNode(newDoc); if(null != newDoc) { // TODO: mnl.addNodeInDocOrder(newDoc, true, xctxt); ?? mnl.addElement(newDoc); } if(null == iterator) break; } return nodes; }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/FuncDocument.java/buggy/src/org/apache/xalan/templates/FuncDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
921,
1836,
12,
14124,
1042,
25465,
13,
377,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
225,
288,
3639,
2029,
819,
273,
25465,
18,
588,
3935,
907,
5621,
565,
4319,
997,
1042,
273,
261,
907,
18,
18450,
67,
8744,
422,
819,
18,
588,
15101,
10756,
21821,
692,
261,
2519,
13,
2472,
294,
819,
18,
588,
5541,
2519,
5621,
565,
1139,
921,
1501,
273,
261,
60,
921,
13,
2211,
18,
588,
4117,
20,
7675,
8837,
12,
92,
20364,
1769,
565,
514,
1026,
273,
1408,
31,
565,
5371,
1501,
21,
4742,
273,
333,
18,
588,
4117,
21,
5621,
565,
309,
12,
2011,
480,
1501,
21,
4742,
13,
565,
288,
1377,
368,
1021,
3699,
2114,
2026,
506,
3632,
18,
1021,
1026,
3699,
261,
5946,
306,
23,
18,
22,
3360,
3699,
5717,
4202,
368,
434,
326,
756,
316,
326,
2205,
1237,
756,
17,
542,
716,
353,
1122,
316,
1668,
4202,
368,
1353,
353,
1399,
487,
326,
1026,
3699,
364,
17188,
326,
4202,
368,
3632,
3699,
1368,
392,
4967,
3699,
18,
4202,
1139,
921,
1501,
22,
273,
1501,
21,
4742,
18,
8837,
12,
92,
20364,
1769,
1377,
309,
12,
60,
921,
18,
5237,
67,
8744,
4043,
422,
1501,
22,
18,
588,
559,
10756,
1377,
288,
3639,
2029,
1026,
907,
273,
1501,
22,
18,
4690,
278,
7675,
4285,
907,
5621,
7734,
309,
261,
1969,
907,
422,
446,
13,
1850,
1894,
12,
92,
20364,
16,
20751,
668,
3805,
18,
59,
43,
67,
13625,
67,
16328,
67,
10973,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
921,
1836,
12,
14124,
1042,
25465,
13,
377,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
225,
288,
3639,
2029,
819,
273,
25465,
18,
588,
3935,
907,
5621,
565,
4319,
997,
1042,
273,
261,
907,
18,
18450,
67,
8744,
422,
819,
18,
588,
15101,
10756,
21821,
692,
261,
2519,
13,
2472,
294,
819,
18,
588,
5541,
2519,
5621,
565,
1139,
921,
1501,
273,
261,
60,
921,
13,
2211,
18,
588,
4117,
20,
7675,
8837,
12,
92,
20364,
1769,
565,
514,
1026,
273,
1408,
31,
565,
5371,
1501,
21,
4742,
273,
333,
18,
588,
4117,
21,
5621,
565,
309,
12,
2011,
480,
1501,
21,
4742,
13,
565,
288,
1377,
368,
1021,
3699,
2114,
2026,
2
] |
throw new MessagingException(ioe.getMessage());
|
throw new MessagingException(ioe.getMessage());
|
public String getHtmlAndTextInlines(String attachmentSeparator, boolean withHeaders, boolean showFullHeaders, int maxLength, String truncationMessage) throws MessagingException { try { if (!hasLoadedAttachments()) loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); } catch (FolderClosedException fce) { try { if (getFolderInfo().shouldBeConnected()) { getFolderInfo().openFolder(Folder.READ_WRITE); loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); } else { throw fce; } } catch (java.io.IOException ioe) { throw new MessagingException(ioe.getMessage()); } } catch (java.io.IOException ioe) { throw new MessagingException(ioe.getMessage()); } }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/ad1d7a526540019e033079228544b3a802a556d3/MessageInfo.java/buggy/src/net/suberic/pooka/MessageInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
19633,
1876,
1528,
382,
3548,
12,
780,
6042,
6581,
16,
1250,
598,
3121,
16,
1250,
2405,
5080,
3121,
16,
509,
13642,
16,
514,
31507,
1079,
13,
1216,
23794,
503,
288,
565,
775,
288,
1377,
309,
16051,
5332,
8835,
12961,
10756,
540,
1262,
6803,
966,
5621,
1377,
327,
10065,
18,
588,
4353,
1876,
1528,
382,
3548,
12,
11461,
6581,
16,
598,
3121,
16,
2405,
5080,
3121,
16,
13642,
16,
31507,
1079,
1769,
565,
289,
1044,
261,
3899,
7395,
503,
284,
311,
13,
288,
1377,
775,
288,
3639,
309,
261,
588,
3899,
966,
7675,
13139,
1919,
8932,
10756,
288,
1850,
29001,
966,
7675,
3190,
3899,
12,
3899,
18,
6949,
67,
11677,
1769,
1850,
1262,
6803,
966,
5621,
1850,
327,
10065,
18,
588,
4353,
1876,
1528,
382,
3548,
12,
11461,
6581,
16,
598,
3121,
16,
2405,
5080,
3121,
16,
13642,
16,
31507,
1079,
1769,
3639,
289,
469,
288,
1850,
604,
284,
311,
31,
3639,
289,
1377,
289,
1044,
261,
6290,
18,
1594,
18,
14106,
10847,
13,
288,
3639,
604,
394,
23794,
503,
12,
1594,
73,
18,
24906,
10663,
4202,
289,
565,
289,
1044,
261,
6290,
18,
1594,
18,
14106,
10847,
13,
288,
1377,
604,
394,
23794,
503,
12,
1594,
73,
18,
24906,
10663,
377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
514,
19633,
1876,
1528,
382,
3548,
12,
780,
6042,
6581,
16,
1250,
598,
3121,
16,
1250,
2405,
5080,
3121,
16,
509,
13642,
16,
514,
31507,
1079,
13,
1216,
23794,
503,
288,
565,
775,
288,
1377,
309,
16051,
5332,
8835,
12961,
10756,
540,
1262,
6803,
966,
5621,
1377,
327,
10065,
18,
588,
4353,
1876,
1528,
382,
3548,
12,
11461,
6581,
16,
598,
3121,
16,
2405,
5080,
3121,
16,
13642,
16,
31507,
1079,
1769,
565,
289,
1044,
261,
3899,
7395,
503,
284,
311,
13,
288,
1377,
775,
288,
3639,
309,
261,
588,
3899,
966,
7675,
13139,
1919,
8932,
10756,
288,
1850,
29001,
966,
7675,
3190,
3899,
12,
3899,
18,
6949,
67,
11677,
1769,
1850,
1262,
6803,
966,
5621,
1850,
2
] |
getController().displayDocumentHistoryListAvatar();
|
getController().displayDocumentHistoryAvatar();
|
public void fireSelection() { getController().selectDocument(getDocumentId()); getController().displayDocumentHistoryListAvatar(); }
|
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/1079dba1f2428715d6e9cbb4b718da0416175e43/DocumentListItem.java/clean/client-ui/src/main/java/com/thinkparity/browser/application/browser/display/avatar/main/DocumentListItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4452,
6233,
1435,
288,
202,
202,
588,
2933,
7675,
4025,
2519,
12,
588,
2519,
548,
10663,
202,
202,
588,
2933,
7675,
5417,
2519,
5623,
682,
23999,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4452,
6233,
1435,
288,
202,
202,
588,
2933,
7675,
4025,
2519,
12,
588,
2519,
548,
10663,
202,
202,
588,
2933,
7675,
5417,
2519,
5623,
682,
23999,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buffer.append("RootNode(");
|
buffer.append("RootEntry(");
|
public String toString() { StringBuffer buffer = new StringBuffer(); if (root == this) { buffer.append("RootNode("); } else { buffer.append("ContactNode("); } buffer.append("key=").append(key).append(" [").append(bitIndex).append("], "); buffer.append("value=").append(value).append(", "); //buffer.append("bitIndex=").append(bitIndex).append(", "); if (parent != null) { if (parent == root) { buffer.append("parent=").append("ROOT"); } else { buffer.append("parent=").append(parent.key).append(" [").append(parent.bitIndex).append("]"); } } else { buffer.append("parent=").append("null"); } buffer.append(", "); if (left != null) { if (root == left) { buffer.append("left=").append("ROOT"); } else { buffer.append("left=").append(left.key).append(" [").append(left.bitIndex).append("]"); } } else { buffer.append("left=").append("null"); } buffer.append(", "); if (right != null) { if (root == right) { buffer.append("right=").append("ROOT"); } else { buffer.append("right=").append(right.key).append(" [").append(right.bitIndex).append("]"); } } else { buffer.append("right=").append("null"); } buffer.append(")"); return buffer.toString(); }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/5bae20afb102a07988a0af7f57b52b6e177fa23d/PatriciaTrie.java/clean/components/mojito/de/kapsi/net/kademlia/util/PatriciaTrie.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1762,
1435,
288,
5411,
6674,
1613,
273,
394,
6674,
5621,
13491,
309,
261,
3085,
422,
333,
13,
288,
7734,
1613,
18,
6923,
2932,
2375,
1622,
2932,
1769,
5411,
289,
469,
288,
7734,
1613,
18,
6923,
2932,
6567,
907,
2932,
1769,
5411,
289,
13491,
1613,
18,
6923,
2932,
856,
1546,
2934,
6923,
12,
856,
2934,
6923,
2932,
8247,
2934,
6923,
12,
3682,
1016,
2934,
6923,
2932,
6487,
315,
1769,
5411,
1613,
18,
6923,
2932,
1132,
1546,
2934,
6923,
12,
1132,
2934,
6923,
2932,
16,
315,
1769,
5411,
368,
4106,
18,
6923,
2932,
3682,
1016,
1546,
2934,
6923,
12,
3682,
1016,
2934,
6923,
2932,
16,
315,
1769,
13491,
309,
261,
2938,
480,
446,
13,
288,
7734,
309,
261,
2938,
422,
1365,
13,
288,
10792,
1613,
18,
6923,
2932,
2938,
1546,
2934,
6923,
2932,
9185,
8863,
7734,
289,
469,
288,
10792,
1613,
18,
6923,
2932,
2938,
1546,
2934,
6923,
12,
2938,
18,
856,
2934,
6923,
2932,
8247,
2934,
6923,
12,
2938,
18,
3682,
1016,
2934,
6923,
2932,
4279,
1769,
7734,
289,
5411,
289,
469,
288,
7734,
1613,
18,
6923,
2932,
2938,
1546,
2934,
6923,
2932,
2011,
8863,
5411,
289,
5411,
1613,
18,
6923,
2932,
16,
315,
1769,
13491,
309,
261,
4482,
480,
446,
13,
288,
7734,
309,
261,
3085,
422,
2002,
13,
288,
10792,
1613,
18,
6923,
2932,
4482,
1546,
2934,
6923,
2932,
9185,
8863,
7734,
289,
469,
288,
10792,
1613,
18,
6923,
2932,
4482,
1546,
2934,
6923,
12,
4482,
18,
856,
2934,
6923,
2932,
8247,
2934,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1762,
1435,
288,
5411,
6674,
1613,
273,
394,
6674,
5621,
13491,
309,
261,
3085,
422,
333,
13,
288,
7734,
1613,
18,
6923,
2932,
2375,
1622,
2932,
1769,
5411,
289,
469,
288,
7734,
1613,
18,
6923,
2932,
6567,
907,
2932,
1769,
5411,
289,
13491,
1613,
18,
6923,
2932,
856,
1546,
2934,
6923,
12,
856,
2934,
6923,
2932,
8247,
2934,
6923,
12,
3682,
1016,
2934,
6923,
2932,
6487,
315,
1769,
5411,
1613,
18,
6923,
2932,
1132,
1546,
2934,
6923,
12,
1132,
2934,
6923,
2932,
16,
315,
1769,
5411,
368,
4106,
18,
6923,
2932,
3682,
1016,
1546,
2934,
6923,
12,
3682,
1016,
2934,
6923,
2932,
16,
315,
1769,
13491,
309,
261,
2938,
480,
446,
13,
288,
7734,
309,
261,
2
] |
((StyledText) widget) .addVerifyKeyListener(new OutOfOrderVerifyListener( new OutOfOrderListener(this)));
|
if (!outOfOrderVerifyListener.isActive(event.time)) { ((StyledText) widget) .addVerifyKeyListener(outOfOrderVerifyListener); outOfOrderVerifyListener.setActive(event.time); }
|
private void filterKeySequenceBindings(Event event) { /* * Only process key strokes containing natural keys to trigger key * bindings. */ if ((event.keyCode & SWT.MODIFIER_MASK) != 0) return; // Allow special key out-of-order processing. List keyStrokes = generatePossibleKeyStrokes(event); if (isOutOfOrderKey(keyStrokes)) { Widget widget = event.widget; if ((event.character == SWT.DEL) && ((event.stateMask & SWT.MODIFIER_MASK) == 0) && ((widget instanceof Text) || (widget instanceof Combo))) { /* * KLUDGE. Bug 54654. The text widget relies on no listener * doing any work before dispatching the native delete event. * This does not work, as we are restricted to listeners. * However, it can be said that pressing a delete key in a text * widget will never use key bindings. This can be shown be * considering how the event dispatching is expected to work in * a text widget. So, we should do nothing ... ever. */ return; } else if (widget instanceof StyledText) { if (event.type == SWT.KeyDown) { /* * KLUDGE. Some people try to do useful work in verify * listeners. The way verify listeners work in SWT, we need * to verify the key as well; otherwise, we can't detect * that useful work has been done. */ ((StyledText) widget) .addVerifyKeyListener(new OutOfOrderVerifyListener( new OutOfOrderListener(this))); } } else { widget.addListener(SWT.KeyDown, new OutOfOrderListener(this)); } /* * Otherwise, we count on a key down arriving eventually. Expecting * out of order handling on Ctrl+Tab, for example, is a bad idea * (stick to keys that are not window traversal keys). */ } else { processKeyEvent(keyStrokes, event); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b06c43af213d141aa2351b8f35f3f63211342583/WorkbenchKeyboard.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/WorkbenchKeyboard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1034,
653,
4021,
10497,
12,
1133,
871,
13,
288,
3639,
1748,
540,
380,
5098,
1207,
498,
384,
3250,
281,
4191,
15145,
1311,
358,
3080,
498,
540,
380,
7394,
18,
540,
1195,
3639,
309,
14015,
2575,
18,
856,
1085,
473,
348,
8588,
18,
6720,
10591,
67,
11704,
13,
480,
374,
13,
5411,
327,
31,
3639,
368,
7852,
4582,
498,
596,
17,
792,
17,
1019,
4929,
18,
3639,
987,
498,
510,
3250,
281,
273,
2103,
13576,
653,
510,
3250,
281,
12,
2575,
1769,
3639,
309,
261,
291,
11224,
2448,
653,
12,
856,
510,
3250,
281,
3719,
288,
5411,
11103,
3604,
273,
871,
18,
6587,
31,
5411,
309,
14015,
2575,
18,
11560,
422,
348,
8588,
18,
24733,
13,
10792,
597,
14015,
2575,
18,
2019,
5796,
473,
348,
8588,
18,
6720,
10591,
67,
11704,
13,
422,
374,
13,
10792,
597,
14015,
6587,
1276,
3867,
13,
747,
261,
6587,
1276,
1286,
1075,
20349,
288,
7734,
1748,
1171,
380,
1475,
11778,
40,
7113,
18,
16907,
1381,
8749,
6564,
18,
1021,
977,
3604,
14719,
281,
603,
1158,
2991,
1171,
380,
9957,
1281,
1440,
1865,
3435,
310,
326,
6448,
1430,
871,
18,
1171,
380,
1220,
1552,
486,
1440,
16,
487,
732,
854,
15693,
358,
4679,
18,
1171,
380,
10724,
16,
518,
848,
506,
7864,
350,
716,
11779,
310,
279,
1430,
498,
316,
279,
977,
1171,
380,
3604,
903,
5903,
999,
498,
7394,
18,
1220,
848,
506,
12188,
506,
1171,
380,
24453,
3661,
326,
871,
3435,
310,
353,
2665,
358,
1440,
316,
1171,
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,
1034,
653,
4021,
10497,
12,
1133,
871,
13,
288,
3639,
1748,
540,
380,
5098,
1207,
498,
384,
3250,
281,
4191,
15145,
1311,
358,
3080,
498,
540,
380,
7394,
18,
540,
1195,
3639,
309,
14015,
2575,
18,
856,
1085,
473,
348,
8588,
18,
6720,
10591,
67,
11704,
13,
480,
374,
13,
5411,
327,
31,
3639,
368,
7852,
4582,
498,
596,
17,
792,
17,
1019,
4929,
18,
3639,
987,
498,
510,
3250,
281,
273,
2103,
13576,
653,
510,
3250,
281,
12,
2575,
1769,
3639,
309,
261,
291,
11224,
2448,
653,
12,
856,
510,
3250,
281,
3719,
288,
5411,
11103,
3604,
273,
871,
18,
6587,
31,
5411,
309,
14015,
2575,
18,
11560,
422,
348,
8588,
18,
24733,
13,
10792,
2
] |
public Object readItem(Marshaller marshaller,StoreLocation item) throws IOException{
|
public synchronized Object readItem(Marshaller marshaller,StoreLocation item) throws IOException{
|
public Object readItem(Marshaller marshaller,StoreLocation item) throws IOException{ RandomAccessFile file=dataManager.getDataFile(item).getRandomAccessFile(); // TODO: we could reuse the buffer in dataIn if it's big enough to avoid // allocating byte[] arrays on every readItem. byte[] data=new byte[item.getSize()]; file.seek(item.getOffset()+DataManager.ITEM_HEAD_SIZE); file.readFully(data); dataIn.restart(data); return marshaller.readPayload(dataIn); }
|
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/5367f1ecb078074ac02e673a8a911d8aed6ed3ec/SyncDataFileReader.java/clean/activemq-core/src/main/java/org/apache/activemq/kaha/impl/data/SyncDataFileReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
225,
1033,
855,
1180,
12,
2058,
19927,
16,
2257,
2735,
761,
13,
1216,
1860,
95,
3639,
8072,
26933,
585,
33,
892,
1318,
18,
588,
751,
812,
12,
1726,
2934,
588,
8529,
26933,
5621,
7734,
368,
2660,
30,
732,
3377,
11827,
326,
1613,
316,
501,
382,
309,
518,
1807,
5446,
7304,
358,
4543,
3639,
368,
4767,
1776,
1160,
8526,
5352,
603,
3614,
855,
1180,
18,
3639,
1160,
8526,
501,
33,
2704,
1160,
63,
1726,
18,
588,
1225,
1435,
15533,
3639,
585,
18,
16508,
12,
1726,
18,
588,
2335,
1435,
15,
751,
1318,
18,
12674,
67,
12458,
67,
4574,
1769,
3639,
585,
18,
896,
16999,
12,
892,
1769,
3639,
501,
382,
18,
19164,
12,
892,
1769,
3639,
327,
19927,
18,
896,
6110,
12,
892,
382,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
225,
1033,
855,
1180,
12,
2058,
19927,
16,
2257,
2735,
761,
13,
1216,
1860,
95,
3639,
8072,
26933,
585,
33,
892,
1318,
18,
588,
751,
812,
12,
1726,
2934,
588,
8529,
26933,
5621,
7734,
368,
2660,
30,
732,
3377,
11827,
326,
1613,
316,
501,
382,
309,
518,
1807,
5446,
7304,
358,
4543,
3639,
368,
4767,
1776,
1160,
8526,
5352,
603,
3614,
855,
1180,
18,
3639,
1160,
8526,
501,
33,
2704,
1160,
63,
1726,
18,
588,
1225,
1435,
15533,
3639,
585,
18,
16508,
12,
1726,
18,
588,
2335,
1435,
15,
751,
1318,
18,
12674,
67,
12458,
67,
4574,
1769,
3639,
585,
18,
896,
16999,
12,
892,
1769,
3639,
501,
382,
18,
19164,
12,
892,
1769,
3639,
327,
2
] |
return XMLTypeFactory.eINSTANCE.convertToString( XMLTypePackage.eINSTANCE.getString( ),
|
return XMLTypeFactory.eINSTANCE.convertToString( XMLTypePackage.Literals.STRING,
|
public String convertIDToString( EDataType eDataType, Object instanceValue ) { return XMLTypeFactory.eINSTANCE.convertToString( XMLTypePackage.eINSTANCE.getString( ), instanceValue ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/AttributeFactoryImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributeFactoryImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1765,
734,
5808,
12,
20807,
11479,
16,
1033,
13523,
262,
202,
95,
202,
202,
2463,
3167,
559,
1733,
18,
73,
13341,
18,
6283,
5808,
12,
3167,
559,
2261,
18,
73,
13341,
18,
588,
780,
12,
262,
16,
9506,
202,
1336,
620,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1765,
734,
5808,
12,
20807,
11479,
16,
1033,
13523,
262,
202,
95,
202,
202,
2463,
3167,
559,
1733,
18,
73,
13341,
18,
6283,
5808,
12,
3167,
559,
2261,
18,
73,
13341,
18,
588,
780,
12,
262,
16,
9506,
202,
1336,
620,
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
] |
private int intToBytes(int i, byte[] buf, int offset) {
|
private int intToBytes(long i, byte[] buf, int offset) {
|
private int intToBytes(int i, byte[] buf, int offset) { int inoffset = offset; if (i == 0) { buf[offset++] = 0; } else { for (; i > 0 ; i = i / 256) { buf[offset] = (byte)(i % 256); offset++; } } return (offset - inoffset); }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/9e8a32adb4d200b587b981f944191970d9b454d9/BEREncoder.java/buggy/src/snmplib/BEREncoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
509,
21033,
12,
474,
277,
16,
1160,
8526,
1681,
16,
509,
1384,
13,
288,
202,
202,
474,
316,
3348,
273,
1384,
31,
202,
202,
430,
261,
77,
422,
374,
13,
288,
1082,
202,
4385,
63,
3348,
9904,
65,
273,
374,
31,
202,
202,
97,
469,
288,
1082,
202,
1884,
261,
31,
277,
405,
374,
274,
277,
273,
277,
342,
8303,
13,
288,
9506,
202,
4385,
63,
3348,
65,
273,
261,
7229,
21433,
77,
738,
8303,
1769,
9506,
202,
3348,
9904,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
3348,
300,
316,
3348,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
509,
21033,
12,
474,
277,
16,
1160,
8526,
1681,
16,
509,
1384,
13,
288,
202,
202,
474,
316,
3348,
273,
1384,
31,
202,
202,
430,
261,
77,
422,
374,
13,
288,
1082,
202,
4385,
63,
3348,
9904,
65,
273,
374,
31,
202,
202,
97,
469,
288,
1082,
202,
1884,
261,
31,
277,
405,
374,
274,
277,
273,
277,
342,
8303,
13,
288,
9506,
202,
4385,
63,
3348,
65,
273,
261,
7229,
21433,
77,
738,
8303,
1769,
9506,
202,
3348,
9904,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
3348,
300,
316,
3348,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.configuredPlugins = plugins;
|
configuredPlugins = plugins;
|
public void setConfiguredPlugins(PluginDetail[] plugins) { this.configuredPlugins = plugins; }
|
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/1ca1a7e43882ea68e5f3e30f398d7cee2bf61b97/PluginsServlet.java/clean/reporting/jsp/src/net/sourceforge/cruisecontrol/servlet/PluginsServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
15334,
9461,
12,
3773,
6109,
8526,
4799,
13,
288,
3639,
4351,
9461,
273,
4799,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
15334,
9461,
12,
3773,
6109,
8526,
4799,
13,
288,
3639,
4351,
9461,
273,
4799,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return client.postTaskData(taskData);
|
try { return client.postTaskData(taskData); } catch (LoginException e) { return client.postTaskData(taskData); }
|
public String postTaskData(TaskRepository repository, RepositoryTaskData taskData) throws CoreException { try { BugzillaClient client = connector.getClientManager().getClient(repository); return client.postTaskData(taskData); } catch (UnrecognizedReponseException e) { throw new CoreException(new Status(IStatus.OK, BugzillaCorePlugin.PLUGIN_ID, IStatus.INFO, "Posting to " + repository.getUrl() + " failed.", e)); } catch (Throwable e) { throw new CoreException(new Status(IStatus.OK, BugzillaCorePlugin.PLUGIN_ID, IStatus.ERROR, "Posting to " + repository.getUrl() + " failed: " + e.getMessage(), e)); } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/fbe43a9128c6ba2a3b395c0e7149cae5ed8327c8/BugzillaTaskDataHandler.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1603,
2174,
751,
12,
2174,
3305,
3352,
16,
6281,
2174,
751,
1562,
751,
13,
1216,
30015,
288,
202,
202,
698,
288,
1082,
202,
19865,
15990,
1227,
1004,
273,
8703,
18,
588,
1227,
1318,
7675,
588,
1227,
12,
9071,
1769,
1082,
202,
2463,
1004,
18,
2767,
2174,
751,
12,
4146,
751,
1769,
202,
202,
97,
1044,
261,
19648,
426,
575,
503,
425,
13,
288,
1082,
202,
12849,
394,
30015,
12,
2704,
2685,
12,
45,
1482,
18,
3141,
16,
16907,
15990,
4670,
3773,
18,
19415,
67,
734,
16,
467,
1482,
18,
5923,
16,
315,
3349,
310,
358,
315,
6862,
202,
15,
3352,
18,
588,
1489,
1435,
397,
315,
2535,
1199,
16,
425,
10019,
202,
202,
97,
1044,
261,
15155,
425,
13,
288,
1082,
202,
12849,
394,
30015,
12,
2704,
2685,
12,
45,
1482,
18,
3141,
16,
16907,
15990,
4670,
3773,
18,
19415,
67,
734,
16,
467,
1482,
18,
3589,
16,
315,
3349,
310,
358,
315,
6862,
202,
15,
3352,
18,
588,
1489,
1435,
397,
315,
2535,
30,
315,
397,
425,
18,
24906,
9334,
425,
10019,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1603,
2174,
751,
12,
2174,
3305,
3352,
16,
6281,
2174,
751,
1562,
751,
13,
1216,
30015,
288,
202,
202,
698,
288,
1082,
202,
19865,
15990,
1227,
1004,
273,
8703,
18,
588,
1227,
1318,
7675,
588,
1227,
12,
9071,
1769,
1082,
202,
2463,
1004,
18,
2767,
2174,
751,
12,
4146,
751,
1769,
202,
202,
97,
1044,
261,
19648,
426,
575,
503,
425,
13,
288,
1082,
202,
12849,
394,
30015,
12,
2704,
2685,
12,
45,
1482,
18,
3141,
16,
16907,
15990,
4670,
3773,
18,
19415,
67,
734,
16,
467,
1482,
18,
5923,
16,
315,
3349,
310,
358,
315,
6862,
202,
15,
3352,
18,
588,
1489,
1435,
397,
315,
2535,
1199,
16,
425,
10019,
202,
202,
97,
1044,
2
] |
final PathElement pathElement = new PathElement(); classpath.addPathElement( pathElement ); pathElement.setPath( javaccHome.getAbsolutePath() + "/JavaCC.zip" );
|
classpath.addLocation( new File( javaccHome, "JavaCC.zip" ) );
|
public void execute() throws TaskException { // load command line with optional attributes Enumeration iter = optionalAttrs.keys(); while( iter.hasMoreElements() ) { String name = (String)iter.nextElement(); Object value = optionalAttrs.get( name ); cmdl.createArgument().setValue( "-" + name + ":" + value.toString() ); } if( target == null || !target.isFile() ) { throw new TaskException( "Invalid target: " + target ); } // use the directory containing the target as the output directory if( outputDirectory == null ) { outputDirectory = new File( target.getParent() ); } if( !outputDirectory.isDirectory() ) { throw new TaskException( "'outputdirectory' " + outputDirectory + " is not a directory." ); } // convert backslashes to slashes, otherwise jjtree will put this as // comments and this seems to confuse javacc cmdl.createArgument().setValue( "-OUTPUT_DIRECTORY:" + outputDirectory.getAbsolutePath().replace( '\\', '/' ) ); String targetName = target.getName(); final File javaFile = new File( outputDirectory, targetName.substring( 0, targetName.indexOf( ".jjt" ) ) + ".jj" ); if( javaFile.exists() && target.lastModified() < javaFile.lastModified() ) { getLogger().info( "Target is already built - skipping (" + target + ")" ); return; } cmdl.createArgument().setValue( target.getAbsolutePath() ); if( javaccHome == null || !javaccHome.isDirectory() ) { throw new TaskException( "Javacchome not set." ); } final Path classpath = cmdl.createClasspath(); final PathElement pathElement = new PathElement(); classpath.addPathElement( pathElement ); pathElement.setPath( javaccHome.getAbsolutePath() + "/JavaCC.zip" ); classpath.addJavaRuntime(); final Argument arg = cmdl.createVmArgument(); arg.setValue( "-mx140M" ); arg.setValue( "-Dinstall.root=" + javaccHome.getAbsolutePath() ); final Execute2 exe = new Execute2(); setupLogger( exe ); getLogger().debug( cmdl.toString() ); exe.setCommandline( cmdl.getCommandline() ); try { if( exe.execute() != 0 ) { throw new TaskException( "JJTree failed." ); } } catch( IOException e ) { throw new TaskException( "Failed to launch JJTree: " + e ); } }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/1bd4167603ad1a6b613bb73d5e5631e37ea511d0/JJTree.java/buggy/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
368,
1262,
1296,
980,
598,
3129,
1677,
3639,
13864,
1400,
273,
3129,
8262,
18,
2452,
5621,
3639,
1323,
12,
1400,
18,
5332,
7417,
3471,
1435,
262,
3639,
288,
5411,
514,
508,
273,
261,
780,
13,
2165,
18,
4285,
1046,
5621,
5411,
1033,
460,
273,
3129,
8262,
18,
588,
12,
508,
11272,
5411,
1797,
80,
18,
2640,
1379,
7675,
542,
620,
12,
7514,
397,
508,
397,
6153,
397,
460,
18,
10492,
1435,
11272,
3639,
289,
3639,
309,
12,
1018,
422,
446,
747,
401,
3299,
18,
291,
812,
1435,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
1941,
1018,
30,
315,
397,
1018,
11272,
3639,
289,
3639,
368,
999,
326,
1867,
4191,
326,
1018,
487,
326,
876,
1867,
3639,
309,
12,
29373,
422,
446,
262,
3639,
288,
5411,
29373,
273,
394,
1387,
12,
1018,
18,
588,
3054,
1435,
11272,
3639,
289,
3639,
309,
12,
401,
2844,
2853,
18,
291,
2853,
1435,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
2491,
2844,
5149,
11,
315,
397,
29373,
397,
315,
353,
486,
279,
1867,
1199,
11272,
3639,
289,
3639,
368,
1765,
1473,
13675,
358,
19034,
16,
3541,
10684,
3413,
903,
1378,
333,
487,
3639,
368,
5678,
471,
333,
12001,
358,
2195,
1202,
2252,
952,
3639,
1797,
80,
18,
2640,
1379,
7675,
542,
620,
12,
5411,
3701,
15527,
67,
17229,
2773,
397,
29373,
18,
588,
10368,
743,
7675,
2079,
12,
3718,
2187,
2023,
262,
11272,
3639,
514,
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,
1836,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
368,
1262,
1296,
980,
598,
3129,
1677,
3639,
13864,
1400,
273,
3129,
8262,
18,
2452,
5621,
3639,
1323,
12,
1400,
18,
5332,
7417,
3471,
1435,
262,
3639,
288,
5411,
514,
508,
273,
261,
780,
13,
2165,
18,
4285,
1046,
5621,
5411,
1033,
460,
273,
3129,
8262,
18,
588,
12,
508,
11272,
5411,
1797,
80,
18,
2640,
1379,
7675,
542,
620,
12,
7514,
397,
508,
397,
6153,
397,
460,
18,
10492,
1435,
11272,
3639,
289,
3639,
309,
12,
1018,
422,
446,
747,
401,
3299,
18,
291,
812,
1435,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
1941,
1018,
30,
315,
397,
1018,
11272,
3639,
289,
3639,
2
] |
public org.quickfix.field.RoundingModulus getRoundingModulus() throws FieldNotFound { org.quickfix.field.RoundingModulus value = new org.quickfix.field.RoundingModulus();
|
public quickfix.field.RoundingModulus getRoundingModulus() throws FieldNotFound { quickfix.field.RoundingModulus value = new quickfix.field.RoundingModulus();
|
public org.quickfix.field.RoundingModulus getRoundingModulus() throws FieldNotFound { org.quickfix.field.RoundingModulus value = new org.quickfix.field.RoundingModulus(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/buggy/src/java/src/quickfix/fix43/NewOrderSingle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
4170,
772,
310,
1739,
17284,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
4170,
772,
310,
1739,
17284,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
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
] |
public PresentationData() {
|
public PresentationData(String presentableText, String locationString, Icon openIcon, Icon closedIcon) { myClosedIcon = closedIcon; myLocationString = locationString; myOpenIcon = openIcon; myPresentableText = presentableText;
|
public PresentationData() { }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4912aa450d2a4f6eee5a0269b055c17a8e98c9b8/PresentationData.java/buggy/openapi/src/com/intellij/ide/projectView/PresentationData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
25130,
367,
751,
12,
780,
3430,
429,
1528,
16,
514,
2117,
780,
16,
16011,
1696,
5554,
16,
16011,
4375,
5554,
13,
288,
3399,
7395,
5554,
273,
4375,
5554,
31,
3399,
2735,
780,
273,
2117,
780,
31,
3399,
3678,
5554,
273,
1696,
5554,
31,
3399,
6351,
429,
1528,
273,
3430,
429,
1528,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
25130,
367,
751,
12,
780,
3430,
429,
1528,
16,
514,
2117,
780,
16,
16011,
1696,
5554,
16,
16011,
4375,
5554,
13,
288,
3399,
7395,
5554,
273,
4375,
5554,
31,
3399,
2735,
780,
273,
2117,
780,
31,
3399,
3678,
5554,
273,
1696,
5554,
31,
3399,
6351,
429,
1528,
273,
3430,
429,
1528,
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
] |
protected Command lookupExceptionCommand() throws IllegalArgumentException, IllegalStateException {
|
protected Command lookupExceptionCommand() throws IllegalArgumentException, IllegalStateException {
|
protected Command lookupExceptionCommand() throws IllegalArgumentException, IllegalStateException { String catalogName = getCatalogName(); Catalog catalog = null; if (catalogName == null) { catalog = CatalogFactory.getInstance().getCatalog(); if (catalog == null) { log.error("Cannot find default catalog"); throw new IllegalArgumentException ("Cannot find default catalog"); } } else { catalog = CatalogFactory.getInstance().getCatalog(catalogName); if (catalog == null) { log.error("Cannot find catalog '" + catalogName + "'"); throw new IllegalArgumentException ("Cannot find catalog '" + catalogName + "'"); } } String exceptionCommand = getExceptionCommand(); if (exceptionCommand == null) { log.error("No exceptionCommand property specified"); throw new IllegalStateException ("No exceptionCommand property specfied"); } return catalog.getCommand(exceptionCommand); }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/287e02319b42f2eed8323175c6cfc36577aa9588/ExceptionCatcher.java/clean/src/java/org/apache/struts/chain/commands/ExceptionCatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3498,
3689,
503,
2189,
1435,
1216,
2754,
16,
5477,
288,
3639,
514,
6222,
461,
273,
1927,
4392,
461,
5621,
3639,
14953,
6222,
273,
446,
31,
3639,
309,
261,
7199,
461,
422,
446,
13,
288,
5411,
6222,
273,
14953,
1733,
18,
588,
1442,
7675,
588,
9769,
5621,
5411,
309,
261,
7199,
422,
446,
13,
288,
7734,
613,
18,
1636,
2932,
4515,
1104,
805,
6222,
8863,
7734,
604,
394,
2754,
10792,
7566,
4515,
1104,
805,
6222,
8863,
5411,
289,
3639,
289,
469,
288,
5411,
6222,
273,
14953,
1733,
18,
588,
1442,
7675,
588,
9769,
12,
7199,
461,
1769,
5411,
309,
261,
7199,
422,
446,
13,
288,
7734,
613,
18,
1636,
2932,
4515,
1104,
6222,
2119,
397,
6222,
461,
397,
5862,
1769,
7734,
604,
394,
2754,
10792,
7566,
4515,
1104,
6222,
2119,
397,
6222,
461,
397,
5862,
1769,
5411,
289,
3639,
289,
3639,
514,
1520,
2189,
273,
17669,
2189,
5621,
3639,
309,
261,
4064,
2189,
422,
446,
13,
288,
5411,
613,
18,
1636,
2932,
2279,
1520,
2189,
1272,
1269,
8863,
5411,
604,
394,
5477,
7734,
7566,
2279,
1520,
2189,
1272,
857,
74,
2092,
8863,
3639,
289,
3639,
327,
6222,
18,
588,
2189,
12,
4064,
2189,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3498,
3689,
503,
2189,
1435,
1216,
2754,
16,
5477,
288,
3639,
514,
6222,
461,
273,
1927,
4392,
461,
5621,
3639,
14953,
6222,
273,
446,
31,
3639,
309,
261,
7199,
461,
422,
446,
13,
288,
5411,
6222,
273,
14953,
1733,
18,
588,
1442,
7675,
588,
9769,
5621,
5411,
309,
261,
7199,
422,
446,
13,
288,
7734,
613,
18,
1636,
2932,
4515,
1104,
805,
6222,
8863,
7734,
604,
394,
2754,
10792,
7566,
4515,
1104,
805,
6222,
8863,
5411,
289,
3639,
289,
469,
288,
5411,
6222,
273,
14953,
1733,
18,
588,
1442,
7675,
588,
9769,
12,
7199,
461,
1769,
5411,
309,
261,
7199,
422,
446,
13,
288,
7734,
613,
18,
1636,
2932,
4515,
1104,
6222,
2119,
397,
6222,
461,
397,
2
] |
sourceCode = ERXExtensions.replaceStringByStringInString("\n\n", "<br>", sourceCode);
|
sourceCode = ERXStringUtilities.replaceStringByStringInString("\n\n", "<br>", sourceCode);
|
public String sourceCode() { if(sourceCode != null) return sourceCode; StringWriter writer = new StringWriter(); try { Decompiler decompiler = new Decompiler(); decompiler.setClassPath(cp); decompiler.decompile(classInfo().getName(), writer, null); } catch (IOException ex) { log.error(ex.toString()); } catch (jode.AssertError ex) { log.error(ex.toString()); return ex.toString() + " occurred. \n\n" + "Please check if you have all necessary jar and class files \n" + "added to ClassPaths property in the Localizable.strings file."; } sourceCode = writer.toString(); try { Class JavaCCtoHTML = Class.forName("JavaCCtoHTML"); NSSelector prettyString = new NSSelector("prettyString", new Class [] {String.class}); prettyString.invoke(JavaCCtoHTML, sourceCode); // sourceCode = JavaCCtoHTML.prettyString(sourceCode); } catch (Exception ex) { log.error(ex); } sourceCode = ERXExtensions.replaceStringByStringInString("\n\n", "<br>", sourceCode); return sourceCode; }
|
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/fa84e1b88199fbf613e9662051f0c3d4df949124/Jode.java/clean/Experimental/DevStudio/Sources/ag/kcmedia/Jode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
20260,
1435,
288,
5411,
309,
12,
3168,
1085,
480,
446,
13,
7734,
327,
20260,
31,
5411,
17436,
2633,
273,
394,
17436,
5621,
5411,
775,
288,
7734,
3416,
20667,
2895,
443,
9576,
273,
394,
3416,
20667,
2895,
5621,
7734,
443,
9576,
18,
542,
22158,
12,
4057,
1769,
7734,
443,
9576,
18,
323,
11100,
12,
1106,
966,
7675,
17994,
9334,
2633,
16,
446,
1769,
5411,
289,
1044,
261,
14106,
431,
13,
288,
7734,
613,
18,
1636,
12,
338,
18,
10492,
10663,
5411,
289,
1044,
261,
78,
390,
18,
8213,
668,
431,
13,
288,
7734,
613,
18,
1636,
12,
338,
18,
10492,
10663,
7734,
327,
431,
18,
10492,
1435,
397,
315,
7841,
18,
521,
82,
64,
82,
6,
5397,
397,
315,
8496,
866,
309,
1846,
1240,
777,
4573,
7334,
471,
667,
1390,
521,
82,
6,
5397,
397,
315,
9665,
358,
1659,
4466,
1272,
316,
326,
3566,
6934,
18,
10219,
585,
1199,
31,
5411,
289,
5411,
20260,
273,
2633,
18,
10492,
5621,
5411,
775,
288,
7734,
1659,
5110,
6743,
869,
4870,
273,
1659,
18,
1884,
461,
2932,
5852,
6743,
869,
4870,
8863,
7734,
423,
1260,
292,
1229,
7517,
780,
273,
394,
423,
1260,
292,
1229,
2932,
19073,
780,
3113,
394,
1659,
5378,
288,
780,
18,
1106,
22938,
7734,
7517,
780,
18,
14407,
12,
5852,
6743,
869,
4870,
16,
20260,
1769,
7734,
368,
20260,
273,
5110,
6743,
869,
4870,
18,
19073,
780,
12,
3168,
1085,
1769,
5411,
289,
1044,
261,
503,
431,
13,
288,
7734,
613,
18,
1636,
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,
540,
1071,
514,
20260,
1435,
288,
5411,
309,
12,
3168,
1085,
480,
446,
13,
7734,
327,
20260,
31,
5411,
17436,
2633,
273,
394,
17436,
5621,
5411,
775,
288,
7734,
3416,
20667,
2895,
443,
9576,
273,
394,
3416,
20667,
2895,
5621,
7734,
443,
9576,
18,
542,
22158,
12,
4057,
1769,
7734,
443,
9576,
18,
323,
11100,
12,
1106,
966,
7675,
17994,
9334,
2633,
16,
446,
1769,
5411,
289,
1044,
261,
14106,
431,
13,
288,
7734,
613,
18,
1636,
12,
338,
18,
10492,
10663,
5411,
289,
1044,
261,
78,
390,
18,
8213,
668,
431,
13,
288,
7734,
613,
18,
1636,
12,
338,
18,
10492,
10663,
7734,
327,
431,
18,
10492,
1435,
397,
315,
7841,
18,
521,
82,
64,
82,
6,
5397,
2
] |
String pluginId = PluginDescriptor.getPluginIdFromArtifactId( project.getArtifactId() );
|
writePluginFile( w, goalPrefix, mojoDescriptors, project );
|
public void execute( String destinationDirectory, Set mojoDescriptors, MavenProject project ) throws Exception { FileWriter writer = new FileWriter( new File( destinationDirectory, "plugin.jelly" ) ); PrettyPrintXMLWriter w = new PrettyPrintXMLWriter( writer ); String pluginId = PluginDescriptor.getPluginIdFromArtifactId( project.getArtifactId() ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "project" ); w.addAttribute( "xmlns:j", "jelly:core" ); w.addAttribute( "xmlns:d", "jelly:define" ); w.addAttribute( "xmlns:" + pluginId, pluginId ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "d:taglib" ); w.addAttribute( "uri", pluginId ); for ( Iterator it = mojoDescriptors.iterator(); it.hasNext(); ) { MojoDescriptor descriptor = (MojoDescriptor) it.next(); processPluginDescriptor( descriptor, w, project ); } w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- for ( Iterator it = mojoDescriptors.iterator(); it.hasNext(); ) { MojoDescriptor descriptor = (MojoDescriptor) it.next(); writeGoals( descriptor, w ); } // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- writer.flush(); writer.close(); // ---------------------------------------------------------------------- // project.xml // ---------------------------------------------------------------------- writer = new FileWriter( new File( destinationDirectory, "project.xml" ) ); w = new PrettyPrintXMLWriter( writer ); w.startElement( "project" ); w.startElement( "dependencies" ); PluginUtils.writeDependencies( w, project ); w.endElement(); w.endElement(); writer.flush(); writer.close(); }
|
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/24c6328ad361f8e709e2b3fddefd9cde220a0628/JellyHarnessGenerator.java/buggy/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/jelly/JellyHarnessGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
514,
2929,
2853,
16,
1000,
312,
10007,
12705,
16,
17176,
4109,
1984,
262,
3639,
1216,
1185,
565,
288,
3639,
24639,
2633,
273,
394,
24639,
12,
394,
1387,
12,
2929,
2853,
16,
315,
4094,
18,
78,
292,
715,
6,
262,
11272,
3639,
22328,
5108,
4201,
2289,
341,
273,
394,
22328,
5108,
4201,
2289,
12,
2633,
11272,
3639,
1045,
3773,
812,
12,
341,
16,
17683,
2244,
16,
312,
10007,
12705,
16,
1984,
11272,
3639,
368,
8879,
13465,
3639,
368,
3639,
368,
8879,
13465,
3639,
341,
18,
1937,
1046,
12,
315,
4406,
6,
11272,
3639,
341,
18,
1289,
1499,
12,
315,
16741,
30,
78,
3113,
315,
78,
292,
715,
30,
3644,
6,
11272,
3639,
341,
18,
1289,
1499,
12,
315,
16741,
30,
72,
3113,
315,
78,
292,
715,
30,
11255,
6,
11272,
3639,
341,
18,
1289,
1499,
12,
315,
16741,
2773,
397,
1909,
548,
16,
1909,
548,
11272,
3639,
368,
8879,
13465,
3639,
368,
3639,
368,
8879,
13465,
3639,
341,
18,
1937,
1046,
12,
315,
72,
30,
2692,
2941,
6,
11272,
3639,
341,
18,
1289,
1499,
12,
315,
1650,
3113,
1909,
548,
11272,
3639,
364,
261,
4498,
518,
273,
312,
10007,
12705,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
15931,
3187,
4950,
273,
261,
49,
10007,
3187,
13,
518,
18,
4285,
5621,
5411,
1207,
3773,
3187,
12,
4950,
16,
341,
16,
1984,
11272,
3639,
289,
3639,
341,
18,
409,
1046,
5621,
3639,
368,
8879,
13465,
3639,
368,
3639,
368,
8879,
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,
1836,
12,
514,
2929,
2853,
16,
1000,
312,
10007,
12705,
16,
17176,
4109,
1984,
262,
3639,
1216,
1185,
565,
288,
3639,
24639,
2633,
273,
394,
24639,
12,
394,
1387,
12,
2929,
2853,
16,
315,
4094,
18,
78,
292,
715,
6,
262,
11272,
3639,
22328,
5108,
4201,
2289,
341,
273,
394,
22328,
5108,
4201,
2289,
12,
2633,
11272,
3639,
1045,
3773,
812,
12,
341,
16,
17683,
2244,
16,
312,
10007,
12705,
16,
1984,
11272,
3639,
368,
8879,
13465,
3639,
368,
3639,
368,
8879,
13465,
3639,
341,
18,
1937,
1046,
12,
315,
4406,
6,
11272,
3639,
341,
18,
1289,
1499,
12,
315,
16741,
30,
78,
3113,
315,
78,
292,
715,
30,
3644,
6,
11272,
3639,
341,
18,
1289,
2
] |
if (persp != null)
|
if (persp != null) {
|
public boolean isCloseable(IViewReference ref) { Perspective persp = getActivePerspective(); if (persp != null) return persp.isCloseable(ref); return false; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
4605,
429,
12,
45,
1767,
2404,
1278,
13,
288,
202,
202,
14781,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
202,
202,
430,
261,
10422,
84,
480,
446,
13,
1082,
202,
2463,
13508,
84,
18,
291,
4605,
429,
12,
1734,
1769,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
4605,
429,
12,
45,
1767,
2404,
1278,
13,
288,
202,
202,
14781,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
202,
202,
430,
261,
10422,
84,
480,
446,
13,
1082,
202,
2463,
13508,
84,
18,
291,
4605,
429,
12,
1734,
1769,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void buildClassifier(Instances instances) throws Exception { double bestVal = Double.MAX_VALUE, currVal; double bestPoint = -Double.MAX_VALUE, sum; int bestAtt = -1, numClasses; if (instances.checkForStringAttributes()) { throw new Exception("Can't handle string attributes!"); } double[][] bestDist = new double[3][instances.numClasses()]; theInstances = new Instances(instances); theInstances.deleteWithMissingClass(); if (theInstances.classAttribute().isNominal()) { numClasses = theInstances.numClasses(); } else { numClasses = 1; } // For each attribute for (int i = 0; i < theInstances.numAttributes(); i++) { if (i != theInstances.classIndex()) { // Reserve space for distribution. m_Distribution = new double[3][numClasses]; // Compute value of criterion for best split on attribute if (theInstances.attribute(i).isNominal()) { currVal = findSplitNominal(i); } else { currVal = findSplitNumeric(i); } if (Utils.sm(currVal, bestVal)) { bestVal = currVal; bestAtt = i; bestPoint = m_SplitPoint; for (int j = 0; j < 3; j++) { System.arraycopy(m_Distribution[j], 0, bestDist[j], 0, numClasses); } } } } // Set attribute, split point and distribution. m_AttIndex = bestAtt; m_SplitPoint = bestPoint; m_Distribution = bestDist; if (theInstances.classAttribute().isNominal()) { for (int i = 0; i < m_Distribution.length; i++) { Utils.normalize(m_Distribution[i]); } } // Save memory theInstances = new Instances(theInstances, 0); }
|
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/7008807190da8b4dee6b86f937c533719abc3439/DecisionStump.java/buggy/weka/classifiers/DecisionStump.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3510,
13860,
12,
5361,
10162,
13,
15069,
503,
95,
9056,
12729,
3053,
33,
5265,
18,
6694,
67,
4051,
16,
17016,
3053,
31,
9056,
12729,
2148,
29711,
5265,
18,
6694,
67,
4051,
16,
1364,
31,
474,
12729,
3075,
29711,
21,
16,
2107,
4818,
31,
430,
12,
10162,
18,
1893,
1290,
780,
2498,
10756,
95,
12849,
2704,
503,
2932,
2568,
1404,
24111,
371,
4350,
4442,
1769,
97,
9056,
63,
6362,
65,
12729,
5133,
33,
2704,
9056,
63,
23,
6362,
10162,
18,
2107,
4818,
1435,
15533,
5787,
5361,
33,
2704,
5361,
12,
10162,
1769,
5787,
5361,
18,
3733,
1190,
4841,
797,
5621,
430,
12,
5787,
5361,
18,
1106,
1499,
7675,
291,
26685,
1490,
10756,
95,
2107,
4818,
33,
5787,
5361,
18,
2107,
4818,
5621,
97,
12107,
95,
2107,
4818,
33,
21,
31,
97,
759,
13573,
497,
4589,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
5787,
5361,
18,
2107,
2498,
5621,
77,
27245,
95,
430,
12,
77,
5,
33,
5787,
5361,
18,
1106,
1016,
10756,
95,
202,
202,
759,
607,
264,
3324,
909,
31836,
291,
4027,
18,
202,
202,
81,
67,
9003,
33,
2704,
9056,
63,
23,
6362,
2107,
4818,
15533,
202,
759,
7018,
1132,
792,
71,
7082,
1884,
12729,
4939,
265,
4589,
202,
202,
430,
12,
5787,
5361,
18,
4589,
12,
77,
2934,
291,
26685,
1490,
10756,
95,
202,
17016,
3053,
33,
4720,
5521,
26685,
1490,
12,
77,
1769,
202,
97,
12107,
95,
202,
17016,
3053,
33,
4720,
5521,
9902,
12,
77,
1769,
202,
97,
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,
1071,
6459,
3510,
13860,
12,
5361,
10162,
13,
15069,
503,
95,
9056,
12729,
3053,
33,
5265,
18,
6694,
67,
4051,
16,
17016,
3053,
31,
9056,
12729,
2148,
29711,
5265,
18,
6694,
67,
4051,
16,
1364,
31,
474,
12729,
3075,
29711,
21,
16,
2107,
4818,
31,
430,
12,
10162,
18,
1893,
1290,
780,
2498,
10756,
95,
12849,
2704,
503,
2932,
2568,
1404,
24111,
371,
4350,
4442,
1769,
97,
9056,
63,
6362,
65,
12729,
5133,
33,
2704,
9056,
63,
23,
6362,
10162,
18,
2107,
4818,
1435,
15533,
5787,
5361,
33,
2704,
5361,
12,
10162,
1769,
5787,
5361,
18,
3733,
1190,
4841,
797,
5621,
430,
12,
5787,
5361,
18,
1106,
1499,
7675,
291,
26685,
1490,
10756,
95,
2107,
4818,
33,
5787,
5361,
2
] |
||
maxRowEditor.setPreferencePage(this);
|
maxRowEditor.setPage(this);
|
protected Control createContents( Composite parent ) { Composite mainComposite = new Composite( parent, SWT.NONE ); GridData data = new GridData( GridData.CENTER); data.horizontalSpan = 1; data.verticalSpan = 20; mainComposite.setLayoutData( data ); GridLayout layout = new GridLayout( ); mainComposite.setLayout( layout ); //Set up the maximum number of schemas to be fetched in SQLDataSetPage. maxDisplaySchemaEditor = new IntegerFieldEditor( USER_MAX_NUM_OF_SCHEMA, "", mainComposite ); Label lab = maxDisplaySchemaEditor.getLabelControl( mainComposite ); lab.setText(Messages.getString( "designer.preview.preference.resultset.maxNoOfSchema.description" )); maxDisplaySchemaEditor.setPreferencePage(this); maxDisplaySchemaEditor.setTextLimit( Integer.toString( MAX_MAX_ROW ).length( ) ); maxDisplaySchemaEditor.setValidateStrategy( StringFieldEditor.VALIDATE_ON_KEY_STROKE ); maxDisplaySchemaEditor.setValidRange(0, MAX_MAX_ROW); maxDisplaySchemaEditor.setPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(FieldEditor.IS_VALID)) setValid(maxDisplaySchemaEditor.isValid()); } }); maxDisplaySchemaEditor.setErrorMessage( Messages.getFormattedString( "designer.preview.preference.resultset.maxNoOfSchema.errormessage", new Object[]{new Integer( MAX_MAX_ROW ) } ) ); String defaultMaxSchema = ReportPlugin.getDefault( ) .getPluginPreferences( ) .getString( USER_MAX_NUM_OF_SCHEMA ); if ( defaultMaxSchema == null || defaultMaxSchema.trim( ).length( ) <= 0 ) { defaultMaxSchema = String.valueOf( DEFAULT_MAX_NUM_OF_SCHEMA ); } maxDisplaySchemaEditor.setStringValue( defaultMaxSchema ); //Set up the maximum number of rows to be previewed in ResultSetPreviewPage. maxRowEditor = new IntegerFieldEditor( USER_MAXROW, "", mainComposite ); Label lab2 = maxRowEditor.getLabelControl( mainComposite ); lab2.setText(Messages.getString( "designer.preview.preference.resultset.maxrow.description" )); maxRowEditor.setPreferencePage(this); maxRowEditor.setTextLimit( Integer.toString( MAX_MAX_ROW ).length( ) ); maxRowEditor.setErrorMessage( Messages.getFormattedString( "designer.preview.preference.resultset.maxrow.errormessage", new Object[]{new Integer( MAX_MAX_ROW ) } ) ); maxRowEditor.setValidateStrategy( StringFieldEditor.VALIDATE_ON_KEY_STROKE ); maxRowEditor.setValidRange(1, MAX_MAX_ROW); maxRowEditor.setPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(FieldEditor.IS_VALID)) setValid(maxRowEditor.isValid()); } }); String defaultMaxRow = ReportPlugin.getDefault( ) .getPluginPreferences( ) .getString( USER_MAXROW ); if ( defaultMaxRow == null || defaultMaxRow.trim( ).length( ) <= 0 ) { defaultMaxRow = String.valueOf( DEFAULT_MAX_ROW ); } maxRowEditor.setStringValue( defaultMaxRow ); return mainComposite; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1e12296eea595c503db3a39b97facdb1a42c88b2/DateSetPreferencePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/preferences/DateSetPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
2774,
9400,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
7145,
751,
18,
19835,
1769,
202,
202,
892,
18,
18396,
6952,
273,
404,
31,
202,
202,
892,
18,
17824,
6952,
273,
4200,
31,
202,
202,
5254,
9400,
18,
542,
3744,
751,
12,
501,
11272,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
225,
11272,
202,
202,
5254,
9400,
18,
542,
3744,
12,
3511,
11272,
202,
202,
759,
694,
731,
326,
4207,
1300,
434,
12783,
358,
506,
12807,
316,
3063,
13676,
1964,
18,
202,
202,
1896,
4236,
3078,
6946,
273,
394,
2144,
974,
6946,
12,
7443,
67,
6694,
67,
6069,
67,
3932,
67,
14233,
16,
23453,
2774,
9400,
11272,
4697,
202,
2224,
11814,
273,
943,
4236,
3078,
6946,
18,
588,
2224,
3367,
12,
2774,
9400,
11272,
3639,
11814,
18,
542,
1528,
12,
5058,
18,
588,
780,
12,
315,
16934,
264,
18,
12102,
18,
19141,
18,
2088,
542,
18,
1896,
2279,
951,
3078,
18,
3384,
6,
262,
1769,
9506,
202,
1896,
4236,
3078,
6946,
18,
542,
9624,
1964,
12,
2211,
1769,
202,
202,
1896,
4236,
3078,
6946,
18,
542,
1528,
3039,
12,
2144,
18,
10492,
12,
4552,
67,
6694,
67,
11226,
262,
18,
2469,
12,
262,
11272,
9506,
202,
1896,
4236,
3078,
6946,
18,
542,
4270,
4525,
12,
30916,
6946,
18,
14687,
67,
673,
67,
3297,
67,
25870,
6859,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
2774,
9400,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
7145,
751,
18,
19835,
1769,
202,
202,
892,
18,
18396,
6952,
273,
404,
31,
202,
202,
892,
18,
17824,
6952,
273,
4200,
31,
202,
202,
5254,
9400,
18,
542,
3744,
751,
12,
501,
11272,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
225,
11272,
202,
202,
5254,
9400,
18,
542,
3744,
12,
3511,
11272,
202,
202,
759,
694,
731,
326,
4207,
1300,
434,
12783,
358,
506,
12807,
316,
3063,
13676,
1964,
18,
202,
202,
1896,
4236,
3078,
6946,
273,
2
] |
ph = factory.createURLStreamHandler (protocol);
|
ph = factory.createURLStreamHandler(protocol);
|
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph = null; // First, see if a protocol handler is in our cache. if (cache_handlers) { if ((ph = (URLStreamHandler) ph_cache.get(protocol)) != null) return ph; } // If a non-default factory has been set, use it to find the protocol. if (factory != null) { ph = factory.createURLStreamHandler (protocol); } else if (protocol.equals ("core")) { ph = new gnu.java.net.protocol.core.Handler(); } else if (protocol.equals ("file")) { // This is an interesting case. It's tempting to think that we // could call Class.forName ("gnu.java.net.protocol.file.Handler") to // get the appropriate class. Unfortunately, if we do that the // program will never terminate, because getURLStreamHandler is // eventually called by Class.forName. // // Treating "file" as a special case is the minimum that will // fix this problem. If other protocols are required in a // statically linked application they will need to be handled in // the same way as "file". ph = new gnu.java.net.protocol.file.Handler(); } // Non-default factory may have returned null or a factory wasn't set. // Use the default search algorithm to find a handler for this protocol. if (ph == null) { // Get the list of packages to check and append our default handler // to it, along with the JDK specified default as a last resort. // Except in very unusual environments the JDK specified one shouldn't // ever be needed (or available). String ph_search_path = System.getProperty("java.protocol.handler.pkgs"); // Tack our default package on at the ends. if (ph_search_path != null) ph_search_path += "|" + DEFAULT_SEARCH_PATH; else ph_search_path = DEFAULT_SEARCH_PATH; // Finally loop through our search path looking for a match. StringTokenizer pkgPrefix = new StringTokenizer(ph_search_path, "|"); do { String clsName = (pkgPrefix.nextToken() + "." + protocol + ".Handler"); try { Object obj = Class.forName(clsName).newInstance(); if (! (obj instanceof URLStreamHandler)) continue; else ph = (URLStreamHandler) obj; } catch (Exception e) { // Can't instantiate; handler still null, // go on to next element. } } while ((! (ph instanceof URLStreamHandler)) && pkgPrefix.hasMoreTokens()); } // Update the hashtable with the new protocol handler. if (ph != null && cache_handlers) if (ph instanceof URLStreamHandler) ph_cache.put(protocol, ph); else ph = null; return ph; }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/2a81deb9769ceea4775c22641c27bc9bc5399c18/URL.java/clean/libjava/java/net/URL.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
3852,
1976,
1228,
1503,
19341,
1228,
1503,
12,
780,
1771,
13,
225,
288,
565,
1976,
1228,
1503,
1844,
273,
446,
31,
565,
368,
5783,
16,
2621,
309,
279,
1771,
1838,
353,
316,
3134,
1247,
18,
565,
309,
261,
2493,
67,
11046,
13,
1377,
288,
202,
430,
14015,
844,
273,
261,
1785,
1228,
1503,
13,
1844,
67,
2493,
18,
588,
12,
8373,
3719,
480,
446,
13,
202,
225,
327,
1844,
31,
1377,
289,
565,
368,
971,
279,
1661,
17,
1886,
3272,
711,
2118,
444,
16,
999,
518,
358,
1104,
326,
1771,
18,
565,
309,
261,
6848,
480,
446,
13,
1377,
288,
202,
844,
273,
3272,
18,
2640,
1785,
1228,
1503,
12,
8373,
1769,
1377,
289,
565,
469,
309,
261,
8373,
18,
14963,
7566,
3644,
6,
3719,
1377,
288,
225,
202,
844,
273,
394,
314,
13053,
18,
6290,
18,
2758,
18,
8373,
18,
3644,
18,
1503,
5621,
1377,
289,
565,
469,
309,
261,
8373,
18,
14963,
7566,
768,
6,
3719,
1377,
288,
202,
759,
1220,
353,
392,
26122,
648,
18,
225,
2597,
1807,
1022,
337,
310,
358,
15507,
716,
732,
202,
759,
3377,
745,
1659,
18,
1884,
461,
7566,
1600,
89,
18,
6290,
18,
2758,
18,
8373,
18,
768,
18,
1503,
7923,
358,
202,
759,
336,
326,
5505,
667,
18,
225,
1351,
24233,
16,
309,
732,
741,
716,
326,
202,
759,
5402,
903,
5903,
10850,
16,
2724,
19341,
1228,
1503,
353,
202,
759,
18011,
2566,
635,
1659,
18,
1884,
461,
18,
202,
759,
202,
759,
399,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
3852,
1976,
1228,
1503,
19341,
1228,
1503,
12,
780,
1771,
13,
225,
288,
565,
1976,
1228,
1503,
1844,
273,
446,
31,
565,
368,
5783,
16,
2621,
309,
279,
1771,
1838,
353,
316,
3134,
1247,
18,
565,
309,
261,
2493,
67,
11046,
13,
1377,
288,
202,
430,
14015,
844,
273,
261,
1785,
1228,
1503,
13,
1844,
67,
2493,
18,
588,
12,
8373,
3719,
480,
446,
13,
202,
225,
327,
1844,
31,
1377,
289,
565,
368,
971,
279,
1661,
17,
1886,
3272,
711,
2118,
444,
16,
999,
518,
358,
1104,
326,
1771,
18,
565,
309,
261,
6848,
480,
446,
13,
1377,
288,
202,
844,
273,
3272,
18,
2640,
1785,
1228,
1503,
12,
8373,
1769,
1377,
289,
565,
469,
2
] |
log.debug("DONE ADD ALL RECORDS ===========================================================");
|
log .debug("DONE ADD ALL RECORDS ===========================================================");
|
private void rebuildIndex(Connection connection, SearchBuilderItem controlItem) throws SQLException { // delete all and return the master action only // the caller will then rebuild the index from scratch log.debug("DELETE ALL RECORDS =========================================================="); Statement stm = null; try { stm = connection.createStatement(); if (SearchBuilderItem.GLOBAL_CONTEXT.equals(controlItem.getContext())) { stm.execute("delete from searchbuilderitem where name <> '" + SearchBuilderItem.GLOBAL_MASTER + "' "); } else { stm.execute("delete from searchbuilderitem where context = '" + controlItem.getContext() + "' and name <> '" + controlItem.getName() + "' "); } log.debug("DONE DELETE ALL RECORDS ==========================================================="); log.debug("ADD ALL RECORDS ==========================================================="); for (Iterator i = searchIndexBuilder.getContentProducers().iterator(); i.hasNext();) { EntityContentProducer ecp = (EntityContentProducer) i.next(); List contentList = null; if (SearchBuilderItem.GLOBAL_CONTEXT.equals(controlItem.getContext())) { contentList = ecp.getAllContent(); } else { contentList = ecp.getSiteContent(controlItem.getContext()); } int added = 0; for (Iterator ci = contentList.iterator(); ci.hasNext();) { String resourceName = (String) ci.next(); if (resourceName == null || resourceName.length() > 255) { log.warn("Entity Reference Longer than 255 characters, ignored: Reference=" + resourceName); continue; } SearchBuilderItem sbi = new SearchBuilderItemImpl(); sbi.setName(resourceName); sbi.setSearchaction(SearchBuilderItem.ACTION_ADD); sbi.setSearchstate(SearchBuilderItem.STATE_PENDING); sbi.setId(idgenerator.nextIdentifier().toString()); sbi.setVersion(new Date(System.currentTimeMillis())); String context = null; try { context = ecp.getSiteId(resourceName); } catch (Exception ex) { log.info("No context for resource " + resourceName + " defaulting to none"); } if (context == null || context.length() == 0) { context = "none"; } sbi.setContext(context); try { updateOrSave(connection, sbi); } catch (SQLException sqlex) { log.error("Failed to update "+sqlex.getMessage()); } } log.debug(" Added " + added); } log.debug("DONE ADD ALL RECORDS ==========================================================="); controlItem.setSearchstate(SearchBuilderItem.STATE_COMPLETED); updateOrSave(connection, controlItem); } finally { try { stm.close(); } catch (Exception ex) { } } }
|
51480 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51480/a418d47d9cb811d8e8fb60f720be9c5a34ea00c5/SearchIndexBuilderWorkerDaoJdbcImpl.java/buggy/search-impl/impl/src/java/org/sakaiproject/search/component/dao/impl/SearchIndexBuilderWorkerDaoJdbcImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
13419,
1016,
12,
1952,
1459,
16,
5167,
1263,
1180,
3325,
1180,
13,
1216,
6483,
202,
95,
202,
202,
759,
1430,
777,
471,
327,
326,
4171,
1301,
1338,
202,
202,
759,
326,
4894,
903,
1508,
13419,
326,
770,
628,
15289,
202,
202,
1330,
18,
4148,
2932,
6460,
8061,
2438,
9428,
3948,
422,
20775,
1432,
8863,
202,
202,
3406,
28358,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
334,
81,
273,
1459,
18,
2640,
3406,
5621,
1082,
202,
430,
261,
2979,
1263,
1180,
18,
20402,
67,
13181,
18,
14963,
12,
7098,
1180,
18,
29120,
1435,
3719,
1082,
202,
95,
9506,
202,
334,
81,
18,
8837,
2932,
3733,
628,
1623,
9574,
1726,
1625,
508,
2813,
2119,
397,
5167,
1263,
1180,
18,
20402,
67,
28045,
397,
2491,
315,
1769,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
334,
81,
18,
8837,
2932,
3733,
628,
1623,
9574,
1726,
1625,
819,
273,
2119,
397,
3325,
1180,
18,
29120,
1435,
397,
2491,
471,
508,
2813,
2119,
25083,
202,
15,
3325,
1180,
18,
17994,
1435,
397,
2491,
315,
1769,
1082,
202,
97,
1082,
202,
1330,
18,
4148,
2932,
26875,
8568,
8061,
2438,
9428,
3948,
422,
20775,
1432,
1546,
1769,
1082,
202,
1330,
18,
4148,
2932,
8355,
8061,
2438,
9428,
3948,
422,
20775,
1432,
1546,
1769,
1082,
202,
1884,
261,
3198,
277,
273,
1623,
1016,
1263,
18,
588,
1350,
8390,
13062,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
1082,
202,
95,
9506,
202,
1943,
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,
13419,
1016,
12,
1952,
1459,
16,
5167,
1263,
1180,
3325,
1180,
13,
1216,
6483,
202,
95,
202,
202,
759,
1430,
777,
471,
327,
326,
4171,
1301,
1338,
202,
202,
759,
326,
4894,
903,
1508,
13419,
326,
770,
628,
15289,
202,
202,
1330,
18,
4148,
2932,
6460,
8061,
2438,
9428,
3948,
422,
20775,
1432,
8863,
202,
202,
3406,
28358,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
334,
81,
273,
1459,
18,
2640,
3406,
5621,
1082,
202,
430,
261,
2979,
1263,
1180,
18,
20402,
67,
13181,
18,
14963,
12,
7098,
1180,
18,
29120,
1435,
3719,
1082,
202,
95,
9506,
202,
334,
81,
18,
8837,
2932,
3733,
628,
1623,
9574,
1726,
1625,
508,
2813,
2
] |
sp.printHTML("First Name : "+firstname+"<br>\n"); sp.printHTML("Last Name : "+lastname+"<br>\n"); sp.printHTML("Nick Name : "+nickname+"<br>\n"); sp.printHTML("Email : "+email+"<br>\n"); sp.printHTML("Password : "+password+"<br>\n"); sp.printHTML("Region : "+value+"<br>\n"); sp.printHTML("<br>The following information has been automatically generated by RUBiS:<br>\n"); sp.printHTML("User id :"+userId+"<br>\n"); sp.printHTML("Creation date :"+creationDate+"<br>\n"); sp.printHTML("Rating :"+user.getRating()+"<br>\n"); sp.printHTML("Balance :"+user.getBalance()+"<br>\n");
|
sp.printHTML("First Name : " + firstname + "<br>\n"); sp.printHTML("Last Name : " + lastname + "<br>\n"); sp.printHTML("Nick Name : " + nickname + "<br>\n"); sp.printHTML("Email : " + email + "<br>\n"); sp.printHTML("Password : " + password + "<br>\n"); sp.printHTML("Region : " + value + "<br>\n"); sp.printHTML( "<br>The following information has been automatically generated by RUBiS:<br>\n"); sp.printHTML("User id :" + userId + "<br>\n"); sp.printHTML("Creation date :" + creationDate + "<br>\n"); sp.printHTML("Rating :" + user.getRating() + "<br>\n"); sp.printHTML("Balance :" + user.getBalance() + "<br>\n");
|
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String firstname=null, lastname=null, nickname=null, email=null, password=null; int regionId = 0; int userId; String creationDate; sp = new ServletPrinter(response, "RegisterUser"); Context initialContext = null; try { initialContext = new InitialContext(); } catch (Exception e) { printError("Cannot get initial context for JNDI: " + e+"<br>"); return ; } String value = request.getParameter("firstname"); if ((value == null) || (value.equals(""))) { printError("You must provide a first name!<br>"); return ; } else firstname = value; value = request.getParameter("lastname"); if ((value == null) || (value.equals(""))) { printError("You must provide a last name!<br>"); return ; } else lastname = value; value = request.getParameter("nickname"); if ((value == null) || (value.equals(""))) { printError("You must provide a nick name!<br>"); return ; } else nickname = value; value = request.getParameter("email"); if ((value == null) || (value.equals(""))) { printError("You must provide an email address!<br>"); return ; } else email = value; value = request.getParameter("password"); if ((value == null) || (value.equals(""))) { printError("You must provide a password!<br>"); return ; } else password = value; value = request.getParameter("region"); if ((value == null) || (value.equals(""))) { printError("You must provide a valid region!<br>"); return ; } else { RegionHome regionHome; try { // Connecting to Home thru JNDI regionHome = (RegionHome)PortableRemoteObject.narrow(initialContext.lookup("RegionHome"), RegionHome.class); } catch (Exception e) { printError("RUBiS internal error: Cannot lookup Region: " +e+"<br>\n"); return ; } try { Region region = regionHome.findByName(value); regionId = region.getId().intValue(); } catch (Exception e) { printError(" Region "+value+" does not exist in the database!<br>(got exception: " +e+")<br>\n"); return ; } } // Try to create a new user UserHome userHome; User user; try { // Connecting to Home thru JNDI userHome = (UserHome)PortableRemoteObject.narrow(initialContext.lookup("UserHome"), UserHome.class); } catch (Exception e) { printError("RUBiS internal error: Cannot lookup User: " +e+"<br>"); return ; } try { user = userHome.findByNickName(nickname); /* If an exception has not be thrown at this point, it means that the nickname already exists. */ printError("The nickname you have choosen is already taken by someone else. Please choose a new nickname.<br>"); return ; } catch (FinderException fe) { try { user = userHome.create(firstname, lastname, nickname, email, password, new Integer(regionId)); user = userHome.findByNickName(nickname); userId = user.getId().intValue(); creationDate = user.getCreationDate(); } catch (Exception e) { printError("RUBiS internal error: User registration failed (got exception: " +e+")<br>"); return ; } } sp.printHTMLheader("RUBiS: Welcome to "+nickname); sp.printHTML("<h2>Your registration has been processed successfully</h2><br>\n"); sp.printHTML("<h3>Welcome "+nickname+"</h3>\n"); sp.printHTML("RUBiS has stored the following information about you:<br>\n"); sp.printHTML("First Name : "+firstname+"<br>\n"); sp.printHTML("Last Name : "+lastname+"<br>\n"); sp.printHTML("Nick Name : "+nickname+"<br>\n"); sp.printHTML("Email : "+email+"<br>\n"); sp.printHTML("Password : "+password+"<br>\n"); sp.printHTML("Region : "+value+"<br>\n"); // Note that it is really dirty to reuse value here !! sp.printHTML("<br>The following information has been automatically generated by RUBiS:<br>\n"); sp.printHTML("User id :"+userId+"<br>\n"); sp.printHTML("Creation date :"+creationDate+"<br>\n"); sp.printHTML("Rating :"+user.getRating()+"<br>\n"); sp.printHTML("Balance :"+user.getBalance()+"<br>\n"); sp.printHTMLfooter(); }
|
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/RegisterUser.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/RegisterUser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
1860,
16,
16517,
225,
288,
565,
514,
1122,
529,
33,
2011,
16,
1142,
529,
33,
2011,
16,
19570,
33,
2011,
16,
2699,
33,
2011,
16,
2201,
33,
2011,
31,
565,
509,
565,
3020,
548,
273,
374,
31,
565,
509,
565,
6249,
31,
565,
514,
6710,
1626,
31,
565,
1694,
273,
394,
7971,
12149,
12,
2740,
16,
315,
3996,
1299,
8863,
1850,
1772,
2172,
1042,
273,
446,
31,
565,
775,
565,
288,
1377,
2172,
1042,
273,
394,
10188,
1042,
5621,
565,
289,
377,
1044,
261,
503,
425,
13,
377,
288,
1377,
1172,
668,
2932,
4515,
336,
2172,
819,
364,
804,
24513,
30,
315,
397,
425,
9078,
32,
2848,
2984,
1769,
1377,
327,
274,
565,
289,
565,
514,
460,
273,
590,
18,
588,
1662,
2932,
26576,
8863,
565,
309,
14015,
1132,
422,
446,
13,
747,
261,
1132,
18,
14963,
2932,
6,
20349,
565,
288,
1377,
1172,
668,
2932,
6225,
1297,
5615,
279,
1122,
508,
5,
32,
2848,
2984,
1769,
1377,
327,
274,
565,
289,
565,
469,
1377,
1122,
529,
273,
460,
31,
565,
460,
273,
590,
18,
588,
1662,
2932,
27410,
8863,
565,
309,
14015,
1132,
422,
446,
13,
747,
261,
1132,
18,
14963,
2932,
6,
20349,
565,
288,
1377,
1172,
668,
2932,
6225,
1297,
5615,
279,
1142,
508,
5,
32,
2848,
2984,
1769,
1377,
327,
274,
565,
289,
565,
469,
1377,
1142,
529,
273,
460,
31,
565,
460,
273,
590,
18,
588,
1662,
2932,
17091,
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,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
1860,
16,
16517,
225,
288,
565,
514,
1122,
529,
33,
2011,
16,
1142,
529,
33,
2011,
16,
19570,
33,
2011,
16,
2699,
33,
2011,
16,
2201,
33,
2011,
31,
565,
509,
565,
3020,
548,
273,
374,
31,
565,
509,
565,
6249,
31,
565,
514,
6710,
1626,
31,
565,
1694,
273,
394,
7971,
12149,
12,
2740,
16,
315,
3996,
1299,
8863,
1850,
1772,
2172,
1042,
273,
446,
31,
565,
775,
565,
288,
1377,
2172,
1042,
273,
394,
10188,
1042,
5621,
565,
289,
377,
1044,
261,
503,
425,
13,
377,
288,
1377,
1172,
668,
2932,
4515,
336,
2172,
819,
364,
804,
24513,
30,
315,
397,
425,
9078,
32,
2
] |
"Lorg/mozilla/javascript/Scriptable;)", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ARETURN); } else { cfw.add(ByteCode.DUP); cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Wrapper"); cfw.add(ByteCode.IFEQ, 11); cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Wrapper"); cfw.add(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Wrapper", "unwrap", "()", "Ljava/lang/Object;"); cfw.add(ByteCode.DUP); cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Undefined"); cfw.add(ByteCode.IFEQ, 5); cfw.add(ByteCode.ACONST_NULL); cfw.add(ByteCode.ARETURN);
|
"Ljava/lang/String;)", "Ljava/lang/Object;");
|
private static void generateReturnResult(ClassFileWriter cfw, Class retType) { // wrap boolean values with java.lang.Boolean, convert all other // primitive values to java.lang.Double. if (retType.equals(Boolean.TYPE)) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toBoolean", "(Ljava/lang/Object;)", "Z"); cfw.add(ByteCode.IRETURN); } else if (retType.equals(Character.TYPE)) { // characters are represented as strings in JavaScript. // return the first character. // first convert the value to a string if possible. cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ICONST_0); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/String", "charAt", "(I)", "C"); cfw.add(ByteCode.IRETURN); } else if (retType.isPrimitive()) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toNumber", "(Ljava/lang/Object;)", "D"); String typeName = retType.getName(); switch (typeName.charAt(0)) { case 'b': case 's': case 'i': cfw.add(ByteCode.D2I); cfw.add(ByteCode.IRETURN); break; case 'l': cfw.add(ByteCode.D2L); cfw.add(ByteCode.LRETURN); break; case 'f': cfw.add(ByteCode.D2F); cfw.add(ByteCode.FRETURN); break; case 'd': cfw.add(ByteCode.DRETURN); break; default: throw new RuntimeException("Unexpected return type " + retType.toString()); } } else if (retType.equals(String.class)) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ARETURN); } else if (retType.equals(Scriptable.class)) { cfw.add(ByteCode.ALOAD_0); // load 'this' to find scope from cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toObject", "(Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ARETURN); } else { // If it is a wrapped type, cast to Wrapper and call unwrap() cfw.add(ByteCode.DUP); cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Wrapper"); // skip 3 for IFEQ, 3 for CHECKCAST, and 5 for INVOKEINTERFACE cfw.add(ByteCode.IFEQ, 11); cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Wrapper"); cfw.add(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Wrapper", "unwrap", "()", "Ljava/lang/Object;"); // If Undefined, return null cfw.add(ByteCode.DUP); cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Undefined"); // skip 3 for IFEQ, 1 for ACONST_NULL, 1 for ARETURN cfw.add(ByteCode.IFEQ, 5); cfw.add(ByteCode.ACONST_NULL); cfw.add(ByteCode.ARETURN); // Now cast to return type String retTypeStr = retType.getName().replace('.', '/'); cfw.add(ByteCode.CHECKCAST, retTypeStr); cfw.add(ByteCode.ARETURN); } }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/600d365e30a5b834e818fefe6f356bf6380a4833/JavaAdapter.java/clean/js/rhino/org/mozilla/javascript/JavaAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
990,
1253,
12,
797,
812,
2289,
6080,
91,
16,
4766,
2868,
1659,
325,
559,
13,
377,
288,
3639,
368,
2193,
1250,
924,
598,
2252,
18,
4936,
18,
5507,
16,
1765,
777,
1308,
540,
368,
8225,
924,
358,
2252,
18,
4936,
18,
5265,
18,
3639,
309,
261,
1349,
559,
18,
14963,
12,
5507,
18,
2399,
3719,
288,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
11027,
11781,
16,
5397,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
3113,
5397,
315,
869,
5507,
3113,
7751,
21159,
19,
4936,
19,
921,
31,
2225,
16,
5397,
315,
62,
8863,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
45,
14033,
1769,
3639,
289,
469,
309,
261,
1349,
559,
18,
14963,
12,
7069,
18,
2399,
3719,
288,
7734,
368,
3949,
854,
10584,
487,
2064,
316,
11905,
18,
1171,
368,
327,
326,
1122,
3351,
18,
7734,
368,
1122,
1765,
326,
460,
358,
279,
533,
309,
3323,
18,
7734,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
11027,
11781,
16,
7682,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
3113,
7682,
315,
10492,
3113,
7751,
21159,
19,
4936,
19,
921,
31,
2225,
16,
7682,
315,
21159,
19,
4936,
19,
780,
4868,
1769,
7734,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
21745,
882,
67,
20,
1769,
7734,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
41,
26854,
16,
315,
6290,
19,
4936,
19,
780,
3113,
315,
3001,
861,
3113,
7682,
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,
2103,
990,
1253,
12,
797,
812,
2289,
6080,
91,
16,
4766,
2868,
1659,
325,
559,
13,
377,
288,
3639,
368,
2193,
1250,
924,
598,
2252,
18,
4936,
18,
5507,
16,
1765,
777,
1308,
540,
368,
8225,
924,
358,
2252,
18,
4936,
18,
5265,
18,
3639,
309,
261,
1349,
559,
18,
14963,
12,
5507,
18,
2399,
3719,
288,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
11027,
11781,
16,
5397,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
3113,
5397,
315,
869,
5507,
3113,
7751,
21159,
19,
4936,
19,
921,
31,
2225,
16,
5397,
315,
62,
8863,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
45,
14033,
1769,
3639,
289,
469,
2
] |
DBConnect dbc = new DBConnect(m_conPool) ; dbc.getConnection() ; dbc.setProcedure(procedure) ; data = (Vector)dbc.executeProcedure().clone() ;
|
DBConnect dbc = new DBConnect(m_conPool) ; dbc.getConnection() ; dbc.setProcedure(procedure) ; data = (Vector)dbc.executeProcedure().clone() ;
|
public String sqlProcedureStr(String procedure) throws java.rmi.RemoteException { Vector data = new Vector() ; DBConnect dbc = new DBConnect(m_conPool) ; dbc.getConnection() ; dbc.setProcedure(procedure) ; //dbc.createStatement() ; data = (Vector)dbc.executeProcedure().clone() ; dbc.clearResultSet() ; dbc.closeConnection() ; dbc = null ; if ( data != null) { if ( data.size() > 0 ) { return data.elementAt(0).toString() ; } else { return null ; } } else { throw new java.rmi.RemoteException() ; } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/4288cb8a7597eae9e8a20daac0cd3d2e4768f872/IMCPool.java/clean/server/src/imcode/server/IMCPool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1847,
17213,
1585,
12,
780,
12131,
13,
1216,
225,
2252,
18,
8864,
77,
18,
5169,
503,
288,
202,
202,
5018,
501,
273,
394,
5589,
1435,
274,
202,
202,
2290,
5215,
9881,
273,
394,
2383,
5215,
12,
81,
67,
591,
2864,
13,
274,
202,
202,
9137,
18,
588,
1952,
1435,
274,
202,
202,
9137,
18,
542,
17213,
12,
685,
8153,
13,
274,
202,
202,
759,
9137,
18,
2640,
3406,
1435,
274,
202,
202,
892,
273,
261,
5018,
13,
9137,
18,
8837,
17213,
7675,
14056,
1435,
274,
202,
202,
9137,
18,
8507,
13198,
1435,
274,
202,
202,
9137,
18,
4412,
1952,
1435,
274,
202,
202,
9137,
273,
446,
274,
202,
202,
430,
261,
501,
480,
446,
13,
288,
1082,
202,
430,
261,
501,
18,
1467,
1435,
405,
374,
262,
288,
9506,
202,
2463,
501,
18,
2956,
861,
12,
20,
2934,
10492,
1435,
274,
1082,
202,
97,
469,
288,
9506,
202,
2463,
446,
274,
1082,
202,
97,
1082,
202,
97,
469,
288,
1082,
202,
12849,
394,
2252,
18,
8864,
77,
18,
5169,
503,
1435,
225,
274,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1847,
17213,
1585,
12,
780,
12131,
13,
1216,
225,
2252,
18,
8864,
77,
18,
5169,
503,
288,
202,
202,
5018,
501,
273,
394,
5589,
1435,
274,
202,
202,
2290,
5215,
9881,
273,
394,
2383,
5215,
12,
81,
67,
591,
2864,
13,
274,
202,
202,
9137,
18,
588,
1952,
1435,
274,
202,
202,
9137,
18,
542,
17213,
12,
685,
8153,
13,
274,
202,
202,
759,
9137,
18,
2640,
3406,
1435,
274,
202,
202,
892,
273,
261,
5018,
13,
9137,
18,
8837,
17213,
7675,
14056,
1435,
274,
202,
202,
9137,
18,
8507,
13198,
1435,
274,
202,
202,
9137,
18,
4412,
1952,
1435,
274,
202,
202,
9137,
273,
446,
274,
202,
202,
430,
261,
501,
480,
446,
13,
2
] |
} else if (classString == null) {
|
} else if (!classAvailable) {
|
private final void convertActionToHandler( final IConfigurationElement element, final String actionId, final ParameterizedCommand command, final Expression activeWhenExpression, final String viewId, final List warningsToLog) { // Check to see if this is a retargettable action. final boolean retarget = readBoolean(element, ATT_RETARGET, false); // Read the class attribute. final String classString = readOptional(element, ATT_CLASS); if (retarget) { if ((classString != null) && (!isPulldown(element))) { addWarning(warningsToLog, "The class was not null but retarget was set to true", //$NON-NLS-1$ element, actionId, "class", classString); //$NON-NLS-1$ } // Add a mapping from this action id to the command id. final IActionCommandMappingService mappingService = (IActionCommandMappingService) window .getService(IActionCommandMappingService.class); if (mappingService != null) { mappingService.map(actionId, command.getId()); } else { // this is probably the shutdown case where the service has // already disposed. addWarning( warningsToLog, "Retarget service unavailable", //$NON-NLS-1$ element, actionId); } return; // This is nothing more to be done. } else if (classString == null) { addWarning( warningsToLog, "There was no class provided, and the action is not retargettable", //$NON-NLS-1$ element, actionId); return; // There is nothing to be done. } // Read the enablesFor attribute, and enablement and selection elements. SelectionEnabler enabler = null; if (element.getAttribute(ATT_ENABLES_FOR) != null) { enabler = new SelectionEnabler(element); } else { IConfigurationElement[] kids = element.getChildren(TAG_ENABLEMENT); if (kids.length > 0) { enabler = new SelectionEnabler(element); } } final Expression enabledWhenExpression; if (enabler == null) { enabledWhenExpression = null; } else { enabledWhenExpression = new LegacySelectionEnablerWrapper(enabler, window); } /* * Create the handler. TODO The image style is read at the workbench * level, but it is hard to communicate this information to this point. * For now, I'll pass null, but this ultimately won't work. */ final ActionDelegateHandlerProxy handler = new ActionDelegateHandlerProxy( element, ATT_CLASS, actionId, command, window, null, enabledWhenExpression, viewId); // Read the help context id. final String helpContextId = readOptional(element, ATT_HELP_CONTEXT_ID); if (helpContextId != null) { commandService.setHelpContextId(handler, helpContextId); } // Activate the handler. final String commandId = command.getId(); final IHandlerService service = (IHandlerService) window .getService(IHandlerService.class); final IHandlerActivation handlerActivation; if (activeWhenExpression == null) { handlerActivation = service.activateHandler(commandId, handler); } else { handlerActivation = service.activateHandler(commandId, handler, activeWhenExpression); } handlerActivations.add(handlerActivation); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7c7b1a2eb06db98f5e931be4032b7fd919f131b7/LegacyActionPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LegacyActionPersistence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1765,
1803,
774,
1503,
12,
1082,
202,
6385,
467,
1750,
1046,
930,
16,
727,
514,
1301,
548,
16,
1082,
202,
6385,
30125,
2189,
1296,
16,
1082,
202,
6385,
5371,
2695,
9434,
2300,
16,
727,
514,
1476,
548,
16,
1082,
202,
6385,
987,
5599,
774,
1343,
13,
288,
202,
202,
759,
2073,
358,
2621,
309,
333,
353,
279,
325,
826,
2121,
1301,
18,
202,
202,
6385,
1250,
325,
826,
273,
855,
5507,
12,
2956,
16,
7907,
67,
10238,
10987,
16,
629,
1769,
202,
202,
759,
2720,
326,
667,
1566,
18,
202,
202,
6385,
514,
667,
780,
273,
855,
6542,
12,
2956,
16,
7907,
67,
5237,
1769,
202,
202,
430,
261,
1349,
826,
13,
288,
1082,
202,
430,
14015,
1106,
780,
480,
446,
13,
597,
16051,
291,
9629,
2378,
12,
2956,
20349,
288,
9506,
202,
1289,
6210,
12,
12103,
774,
1343,
16,
25083,
202,
6,
1986,
667,
1703,
486,
446,
1496,
325,
826,
1703,
444,
358,
638,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
2956,
16,
1301,
548,
16,
315,
1106,
3113,
667,
780,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
1082,
202,
759,
1436,
279,
2874,
628,
333,
1301,
612,
358,
326,
1296,
612,
18,
1082,
202,
6385,
467,
1803,
2189,
3233,
1179,
2874,
1179,
273,
261,
45,
1803,
2189,
3233,
1179,
13,
2742,
6862,
202,
18,
588,
1179,
12,
45,
1803,
2189,
3233,
1179,
18,
1106,
1769,
1082,
202,
430,
261,
6770,
1179,
480,
446,
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,
918,
1765,
1803,
774,
1503,
12,
1082,
202,
6385,
467,
1750,
1046,
930,
16,
727,
514,
1301,
548,
16,
1082,
202,
6385,
30125,
2189,
1296,
16,
1082,
202,
6385,
5371,
2695,
9434,
2300,
16,
727,
514,
1476,
548,
16,
1082,
202,
6385,
987,
5599,
774,
1343,
13,
288,
202,
202,
759,
2073,
358,
2621,
309,
333,
353,
279,
325,
826,
2121,
1301,
18,
202,
202,
6385,
1250,
325,
826,
273,
855,
5507,
12,
2956,
16,
7907,
67,
10238,
10987,
16,
629,
1769,
202,
202,
759,
2720,
326,
667,
1566,
18,
202,
202,
6385,
514,
667,
780,
273,
855,
6542,
12,
2956,
16,
7907,
67,
5237,
1769,
202,
202,
430,
261,
1349,
826,
13,
288,
1082,
2
] |
setSelectionInterval(selectedIndex, selectedIndex); if(!selectMovesDown) break;
|
setSelectionInterval(index, index); break;
|
public void keyPressed(KeyEvent key) { key.consume(); if(key.getWhen() - lastEvent > 1000 || cache.length() > 16) cache.delete(0, 31); if(key.getKeyCode() > 64) { cache.append(key.getKeyChar()); lastEvent = key.getWhen();// System.out.println(cache.toString()); selectedIndex = getNextMatch(cache.toString(), 0, Position.Bias.Forward); redraw(); } else switch(key.getKeyCode()) { case KeyEvent.VK_SPACE: setSelectionInterval(selectedIndex, selectedIndex); if(!selectMovesDown) break; case KeyEvent.VK_DOWN: if(selectedIndex < getModel().getSize() - 1) { selectedIndex ++ ; redraw(); } break; case KeyEvent.VK_UP: if(selectedIndex > 0) { selectedIndex -- ; redraw(); } break; case KeyEvent.VK_LEFT: selectedIndex -= getVisibleRowCount(); if(selectedIndex < 0) selectedIndex = 0; redraw(); break; case KeyEvent.VK_RIGHT: selectedIndex += getVisibleRowCount(); if(selectedIndex > getModel().getSize()) selectedIndex = getModel().getSize() - 1; redraw(); break; } }
|
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/2ebe112bdc1ff4ab6215ea45d4fa41caf4a79ee0/Checklist.java/clean/trunk/src/net/sf/plantlore/client/checklist/Checklist.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
498,
24624,
12,
653,
1133,
498,
13,
288,
1082,
202,
856,
18,
21224,
5621,
25083,
202,
430,
12,
856,
18,
588,
9434,
1435,
300,
1142,
1133,
405,
4336,
747,
1247,
18,
2469,
1435,
405,
2872,
13,
9506,
202,
2493,
18,
3733,
12,
20,
16,
8231,
1769,
25083,
202,
430,
12,
856,
18,
588,
653,
1085,
1435,
405,
5178,
13,
288,
9506,
202,
2493,
18,
6923,
12,
856,
18,
588,
653,
2156,
10663,
9506,
202,
2722,
1133,
273,
498,
18,
588,
9434,
5621,
759,
9506,
202,
3163,
18,
659,
18,
8222,
12,
2493,
18,
10492,
10663,
9506,
202,
8109,
1016,
273,
6927,
2060,
12,
2493,
18,
10492,
9334,
374,
16,
11010,
18,
31645,
18,
8514,
1769,
9506,
202,
1118,
1899,
5621,
1082,
202,
97,
469,
4697,
202,
9610,
12,
856,
18,
588,
653,
1085,
10756,
288,
9506,
202,
3593,
23737,
18,
58,
47,
67,
6616,
30,
6862,
202,
542,
6233,
4006,
12,
8109,
1016,
16,
29244,
1769,
6862,
202,
430,
12,
5,
4025,
19297,
4164,
13,
898,
31,
9506,
202,
3593,
23737,
18,
58,
47,
67,
12711,
30,
6862,
202,
430,
12,
8109,
1016,
411,
7454,
7675,
588,
1225,
1435,
300,
404,
13,
288,
25083,
202,
8109,
1016,
965,
274,
9944,
202,
1118,
1899,
5621,
6862,
202,
97,
6862,
202,
8820,
31,
9506,
202,
3593,
23737,
18,
58,
47,
67,
3079,
30,
6862,
202,
430,
12,
8109,
1016,
405,
374,
13,
288,
25083,
202,
8109,
1016,
1493,
274,
9944,
202,
1118,
1899,
5621,
6862,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
498,
24624,
12,
653,
1133,
498,
13,
288,
1082,
202,
856,
18,
21224,
5621,
25083,
202,
430,
12,
856,
18,
588,
9434,
1435,
300,
1142,
1133,
405,
4336,
747,
1247,
18,
2469,
1435,
405,
2872,
13,
9506,
202,
2493,
18,
3733,
12,
20,
16,
8231,
1769,
25083,
202,
430,
12,
856,
18,
588,
653,
1085,
1435,
405,
5178,
13,
288,
9506,
202,
2493,
18,
6923,
12,
856,
18,
588,
653,
2156,
10663,
9506,
202,
2722,
1133,
273,
498,
18,
588,
9434,
5621,
759,
9506,
202,
3163,
18,
659,
18,
8222,
12,
2493,
18,
10492,
10663,
9506,
202,
8109,
1016,
273,
6927,
2060,
12,
2493,
18,
10492,
9334,
374,
16,
11010,
18,
31645,
18,
8514,
1769,
2
] |
itsData.itsFromEvalCode = compilerEnv.isFromEval();
|
public Object compile(Scriptable scope, CompilerEnvirons compilerEnv, ScriptOrFnNode tree, String encodedSource, boolean returnFunction, Object staticSecurityDomain) { this.compilerEnv = compilerEnv; (new NodeTransformer(compilerEnv)).transform(tree); if (Token.printTrees) { System.out.println(tree.toStringTree(tree)); } if (returnFunction) { tree = tree.getFunctionNode(0); } Context cx = Context.getContext(); SecurityController sc = cx.getSecurityController(); Object dynamicDomain; if (sc != null) { dynamicDomain = sc.getDynamicSecurityDomain(staticSecurityDomain); } else { if (staticSecurityDomain != null) { throw new IllegalArgumentException(); } dynamicDomain = null; } scriptOrFn = tree; itsData = new InterpreterData(sc, dynamicDomain, compilerEnv.getLanguageVersion(), scriptOrFn.getSourceName(), encodedSource); itsData.topLevel = true; if (tree instanceof FunctionNode) { generateFunctionICode(); return createFunction(cx, scope, itsData, false); } else { generateICodeFromTree(scriptOrFn); itsData.itsFromEvalCode = compilerEnv.isFromEval(); return new InterpretedScript(itsData); } }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/dbaff764ea1b3e5aca96c414972aa2b2bde0bd79/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4074,
12,
3651,
429,
2146,
16,
12900,
12972,
28248,
87,
5274,
3491,
16,
12900,
7739,
1162,
5372,
907,
2151,
16,
12900,
514,
3749,
1830,
16,
12900,
1250,
327,
2083,
16,
12900,
1033,
760,
4368,
3748,
13,
565,
288,
3639,
333,
18,
9576,
3491,
273,
5274,
3491,
31,
3639,
261,
2704,
2029,
8319,
12,
9576,
3491,
13,
2934,
6547,
12,
3413,
1769,
3639,
309,
261,
1345,
18,
1188,
26590,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
3413,
18,
10492,
2471,
12,
3413,
10019,
3639,
289,
3639,
309,
261,
2463,
2083,
13,
288,
5411,
2151,
273,
2151,
18,
588,
2083,
907,
12,
20,
1769,
3639,
289,
3639,
1772,
9494,
273,
1772,
18,
29120,
5621,
3639,
6036,
2933,
888,
273,
9494,
18,
588,
4368,
2933,
5621,
3639,
1033,
5976,
3748,
31,
3639,
309,
261,
1017,
480,
446,
13,
288,
5411,
5976,
3748,
273,
888,
18,
588,
9791,
4368,
3748,
12,
3845,
4368,
3748,
1769,
3639,
289,
469,
288,
5411,
309,
261,
3845,
4368,
3748,
480,
446,
13,
288,
7734,
604,
394,
2754,
5621,
5411,
289,
5411,
5976,
3748,
273,
446,
31,
3639,
289,
3639,
2728,
1162,
5372,
273,
2151,
31,
3639,
2097,
751,
273,
394,
5294,
11599,
751,
12,
1017,
16,
5976,
3748,
16,
4766,
1377,
5274,
3491,
18,
588,
3779,
1444,
9334,
4766,
1377,
2728,
1162,
5372,
18,
588,
1830,
461,
9334,
4766,
1377,
3749,
1830,
1769,
3639,
2097,
751,
18,
3669,
2355,
273,
638,
31,
3639,
309,
261,
3413,
1276,
4284,
907,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4074,
12,
3651,
429,
2146,
16,
12900,
12972,
28248,
87,
5274,
3491,
16,
12900,
7739,
1162,
5372,
907,
2151,
16,
12900,
514,
3749,
1830,
16,
12900,
1250,
327,
2083,
16,
12900,
1033,
760,
4368,
3748,
13,
565,
288,
3639,
333,
18,
9576,
3491,
273,
5274,
3491,
31,
3639,
261,
2704,
2029,
8319,
12,
9576,
3491,
13,
2934,
6547,
12,
3413,
1769,
3639,
309,
261,
1345,
18,
1188,
26590,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
3413,
18,
10492,
2471,
12,
3413,
10019,
3639,
289,
3639,
309,
261,
2463,
2083,
13,
288,
5411,
2151,
273,
2151,
18,
588,
2083,
907,
12,
20,
1769,
3639,
289,
3639,
1772,
9494,
273,
1772,
18,
29120,
5621,
3639,
6036,
2
] |
|
public List getAppliedChangeSetIds(final String moduleName) {
|
public Collection getAppliedChangeSetIds(final String moduleName) {
|
public List getAppliedChangeSetIds(final String moduleName) { if (!exists) { return Collections.EMPTY_LIST; } JdbcTemplate template = new JdbcTemplate(dataSource); return template.query("select change_set_id, seq_nr from " + TABLE_NAME + " where module = ? order by seq_nr asc", new Object[] { moduleName }, new RowMapper() { public Object mapRow(ResultSet rs, int rowNumber) throws SQLException { String changeSetId = rs.getString(1); int sequenceNumber = rs.getInt(2); if (sequenceNumber != rowNumber) { throw new DatabaseOutOfSyncException( "Expected a ChangeSet with sequence number " + rowNumber + " for module '" + moduleName + "' but found ChangeSet [" + changeSetId + "] which has the number " + sequenceNumber); } return changeSetId; } } ); }
|
45613 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45613/e0b6e2207f56e854edca3f2643e4b345a1f9f21c/LogTable.java/buggy/revolt/src/org/riotfamily/revolt/support/LogTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
336,
16203,
21565,
2673,
12,
6385,
514,
9780,
13,
288,
202,
202,
430,
16051,
1808,
13,
288,
1082,
202,
2463,
5737,
18,
13625,
67,
7085,
31,
202,
202,
97,
202,
202,
25316,
2283,
1542,
273,
394,
24209,
2283,
12,
892,
1830,
1769,
202,
202,
2463,
1542,
18,
2271,
2932,
4025,
2549,
67,
542,
67,
350,
16,
3833,
67,
11611,
628,
315,
4697,
202,
15,
7567,
67,
1985,
397,
315,
1625,
1605,
273,
692,
1353,
635,
3833,
67,
11611,
6972,
3113,
4697,
202,
2704,
1033,
8526,
288,
9780,
19879,
394,
6556,
4597,
1435,
288,
6862,
202,
482,
1033,
852,
1999,
12,
13198,
3597,
16,
509,
1027,
1854,
13,
15106,
202,
15069,
6483,
288,
6862,
6862,
9506,
202,
780,
2549,
18523,
273,
3597,
18,
588,
780,
12,
21,
1769,
25083,
202,
474,
3102,
1854,
273,
3597,
18,
588,
1702,
12,
22,
1769,
6862,
6862,
9506,
202,
430,
261,
6178,
1854,
480,
1027,
1854,
13,
288,
6862,
1082,
202,
12849,
394,
5130,
11224,
4047,
503,
12,
6862,
6862,
202,
6,
6861,
279,
7576,
694,
598,
3102,
1300,
315,
6862,
6862,
202,
15,
1027,
1854,
397,
315,
364,
1605,
2119,
397,
9780,
17322,
202,
15,
2491,
1496,
1392,
7576,
694,
8247,
397,
2549,
18523,
6862,
6862,
202,
15,
9850,
1492,
711,
326,
1300,
315,
17322,
202,
15,
3102,
1854,
1769,
25083,
202,
97,
25083,
202,
2463,
2549,
18523,
31,
6862,
202,
97,
9506,
202,
97,
202,
202,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
336,
16203,
21565,
2673,
12,
6385,
514,
9780,
13,
288,
202,
202,
430,
16051,
1808,
13,
288,
1082,
202,
2463,
5737,
18,
13625,
67,
7085,
31,
202,
202,
97,
202,
202,
25316,
2283,
1542,
273,
394,
24209,
2283,
12,
892,
1830,
1769,
202,
202,
2463,
1542,
18,
2271,
2932,
4025,
2549,
67,
542,
67,
350,
16,
3833,
67,
11611,
628,
315,
4697,
202,
15,
7567,
67,
1985,
397,
315,
1625,
1605,
273,
692,
1353,
635,
3833,
67,
11611,
6972,
3113,
4697,
202,
2704,
1033,
8526,
288,
9780,
19879,
394,
6556,
4597,
1435,
288,
6862,
202,
482,
1033,
852,
1999,
12,
13198,
3597,
16,
509,
1027,
1854,
13,
15106,
202,
15069,
6483,
288,
6862,
6862,
9506,
2
] |
item.setValue(model.getElementAt(i));
|
item.setLabel(model.getLabelAt(i));
|
public void contentsChanged(ListDataEvent evt) { for (int i=evt.getIndex0(); i<=evt.getIndex1(); ++i) { ControlPanelItem item = (ControlPanelItem)iconPanel.getComponent(i); item.setValue(model.getElementAt(i)); item.setIcon(model.getIconAt(i)); } }
|
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/796dcbe508a4035121134bcd09cd5909164b4f9f/ControlPanel.java/clean/modules/vrjuggler/vrjconfig/org/vrjuggler/vrjconfig/ui/ControlPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
2939,
5033,
12,
682,
751,
1133,
6324,
13,
1377,
288,
540,
364,
261,
474,
277,
33,
73,
11734,
18,
588,
1016,
20,
5621,
277,
32,
33,
73,
11734,
18,
588,
1016,
21,
5621,
965,
77,
13,
540,
288,
5411,
8888,
5537,
1180,
761,
273,
261,
3367,
5537,
1180,
13,
3950,
5537,
18,
588,
1841,
12,
77,
1769,
5411,
761,
18,
542,
2224,
12,
2284,
18,
588,
2224,
861,
12,
77,
10019,
5411,
761,
18,
542,
5554,
12,
2284,
18,
588,
5554,
861,
12,
77,
10019,
540,
289,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
2939,
5033,
12,
682,
751,
1133,
6324,
13,
1377,
288,
540,
364,
261,
474,
277,
33,
73,
11734,
18,
588,
1016,
20,
5621,
277,
32,
33,
73,
11734,
18,
588,
1016,
21,
5621,
965,
77,
13,
540,
288,
5411,
8888,
5537,
1180,
761,
273,
261,
3367,
5537,
1180,
13,
3950,
5537,
18,
588,
1841,
12,
77,
1769,
5411,
761,
18,
542,
2224,
12,
2284,
18,
588,
2224,
861,
12,
77,
10019,
5411,
761,
18,
542,
5554,
12,
2284,
18,
588,
5554,
861,
12,
77,
10019,
540,
289,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return(this.mimeType.equals(mimeType));
|
i = mimeType.indexOf(";"); if (i != -1) mimeType = mimeType.substring(0, i); return mime.equals(mimeType);
|
isMimeTypeEqual(String mimeType){ // FIXME: Need to handle default attributes and parameters return(this.mimeType.equals(mimeType));}
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/clean/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
15707,
8970,
5812,
12,
780,
10707,
15329,
225,
368,
9852,
30,
12324,
358,
1640,
805,
1677,
471,
1472,
225,
327,
12,
2211,
18,
19176,
18,
14963,
12,
19176,
10019,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
15707,
8970,
5812,
12,
780,
10707,
15329,
225,
368,
9852,
30,
12324,
358,
1640,
805,
1677,
471,
1472,
225,
327,
12,
2211,
18,
19176,
18,
14963,
12,
19176,
10019,
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
] |
boolean verbose, boolean folding) {
|
boolean verbose, boolean folding) {
|
public CDictionaryGenerator( ADT adt, String directory, String apiName, String prefix, boolean verbose, boolean folding) { super(directory, apiName, ".dict", verbose, folding); this.adt = adt; this.apiName = apiName; this.prefix = prefix; this.factory = new PureFactory(); afuns_by_name = new HashMap(); afuns_by_afun = new HashMap(); }
|
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/9cd5f194454db975c16e6e872247475a195366c8/CDictionaryGenerator.java/clean/apigen/src/apigen/gen/c/CDictionaryGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
10905,
3908,
12,
202,
202,
1880,
56,
1261,
88,
16,
202,
202,
780,
1867,
16,
202,
202,
780,
1536,
461,
16,
202,
202,
780,
1633,
16,
202,
202,
6494,
3988,
16,
202,
202,
6494,
11590,
310,
13,
288,
202,
202,
9565,
12,
5149,
16,
1536,
461,
16,
3552,
1576,
3113,
3988,
16,
11590,
310,
1769,
202,
202,
2211,
18,
361,
88,
273,
1261,
88,
31,
202,
202,
2211,
18,
2425,
461,
273,
1536,
461,
31,
202,
202,
2211,
18,
3239,
273,
1633,
31,
202,
202,
2211,
18,
6848,
273,
394,
16616,
1733,
5621,
9506,
202,
1727,
27595,
67,
1637,
67,
529,
273,
394,
4317,
5621,
202,
202,
1727,
27595,
67,
1637,
67,
1727,
318,
273,
394,
4317,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
10905,
3908,
12,
202,
202,
1880,
56,
1261,
88,
16,
202,
202,
780,
1867,
16,
202,
202,
780,
1536,
461,
16,
202,
202,
780,
1633,
16,
202,
202,
6494,
3988,
16,
202,
202,
6494,
11590,
310,
13,
288,
202,
202,
9565,
12,
5149,
16,
1536,
461,
16,
3552,
1576,
3113,
3988,
16,
11590,
310,
1769,
202,
202,
2211,
18,
361,
88,
273,
1261,
88,
31,
202,
202,
2211,
18,
2425,
461,
273,
1536,
461,
31,
202,
202,
2211,
18,
3239,
273,
1633,
31,
202,
202,
2211,
18,
6848,
273,
394,
16616,
1733,
5621,
9506,
202,
1727,
27595,
67,
1637,
67,
529,
273,
394,
4317,
5621,
202,
202,
1727,
27595,
67,
1637,
67,
1727,
318,
273,
2
] |
this.registerVariant(variant);
|
registerVariant(variant);
|
private void initVariantsInMethodScope() { {// parameters list completion final CompletionVariant variant = new CompletionVariant( new LeftNeighbour(new OrFilter(new TextFilter(new String[]{"(", ",", PsiKeyword.FINAL}), new SuperParentFilter(new ClassFilter(PsiAnnotation.class))))); variant.includeScopeClass(PsiParameterList.class, true); addPrimitiveTypes(variant); variant.addCompletion(PsiKeyword.FINAL); variant.addCompletionFilterOnElement(new ClassFilter(PsiClass.class)); this.registerVariant(variant); }// Completion for classes in method throws section// position { final ElementFilter position = new LeftNeighbour(new AndFilter( new TextFilter(")"), new ParentElementFilter(new ClassFilter(PsiParameterList.class))));// completion CompletionVariant variant = new CompletionVariant(PsiMethod.class, position); variant.includeScopeClass(PsiClass.class); // for throws on separate line variant.addCompletion(PsiKeyword.THROWS); this.registerVariant(variant);//in annotation methods variant = new CompletionVariant(PsiAnnotationMethod.class, position); variant.addCompletion(PsiKeyword.DEFAULT); this.registerVariant(variant); } {// Completion for classes in method throws section// position final ElementFilter position = new AndFilter( new LeftNeighbour(new TextFilter(PsiKeyword.THROWS, ",")), new InsideElementFilter(new ClassFilter(PsiReferenceList.class)) );// completion final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiMethod.class, true); variant.addCompletionFilterOnElement(new ThisOrAnyInnerFilter(new AssignableFromFilter("java.lang.Throwable"))); variant.addCompletionFilterOnElement(new ClassFilter(PsiPackage.class)); this.registerVariant(variant); } {// completion for declarations final CompletionVariant variant = new CompletionVariant(PsiMethod.class, new OrFilter(END_OF_BLOCK, new LeftNeighbour(new TextFilter(PsiKeyword.FINAL)))); addPrimitiveTypes(variant); variant.addCompletion(PsiKeyword.CLASS); this.registerVariant(variant); }// Completion in cast expressions { final CompletionVariant variant = new CompletionVariant(PsiMethod.class, new LeftNeighbour(new AndFilter( new TextFilter("("), new ParentElementFilter(new OrFilter( new ClassFilter(PsiParenthesizedExpression.class), new ClassFilter(PsiTypeCastExpression.class)))))); addPrimitiveTypes(variant); this.registerVariant(variant); } {// instanceof keyword final ElementFilter position = new LeftNeighbour(new OrFilter(new ElementFilter[]{ new ReferenceOnFilter(new ClassFilter(PsiVariable.class)), new TextFilter(PsiKeyword.THIS), new AndFilter(new TextFilter(")"), new ParentElementFilter(new AndFilter( new ClassFilter(PsiTypeCastExpression.class, false), new OrFilter( new ParentElementFilter(new ClassFilter(PsiExpression.class)), new ClassFilter(PsiExpression.class))))), new AndFilter(new TextFilter("]"), new ParentElementFilter(new ClassFilter(PsiArrayAccessExpression.class))) })); final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiExpression.class, true); variant.includeScopeClass(PsiMethod.class); variant.addCompletionFilter(new FalseFilter()); variant.addCompletion(PsiKeyword.INSTANCEOF); this.registerVariant(variant); } {// after instanceof keyword final ElementFilter position = new PreviousElementFilter(new TextFilter(PsiKeyword.INSTANCEOF)); final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiExpression.class, true); variant.addCompletionFilterOnElement(new ClassFilter(PsiClass.class)); this.registerVariant(variant); } {// after final keyword final ElementFilter position = new AndFilter(new SuperParentFilter(new ClassFilter(PsiCodeBlock.class)), new LeftNeighbour(new TextFilter(PsiKeyword.FINAL))); final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiDeclarationStatement.class, true); variant.addCompletionFilterOnElement(new ClassFilter(PsiClass.class)); addPrimitiveTypes(variant); this.registerVariant(variant); } {// Keyword completion in start of declaration final CompletionVariant variant = new CompletionVariant(PsiMethod.class, END_OF_BLOCK); variant.addCompletion(PsiKeyword.THIS, TailType.NONE); variant.addCompletion(PsiKeyword.SUPER, TailType.NONE); addKeywords(variant); this.registerVariant(variant); } {// Keyword completion in returns final CompletionVariant variant = new CompletionVariant(PsiMethod.class, new LeftNeighbour(new TextFilter(PsiKeyword.RETURN))); variant.addCompletion(PsiKeyword.THIS, TailType.NONE); variant.addCompletion(PsiKeyword.SUPER, TailType.NONE); this.registerVariant(variant); }// Catch/Finnaly completion { final ElementFilter position = new LeftNeighbour(new AndFilter( new TextFilter("}"), new ParentElementFilter(new AndFilter( new LeftNeighbour(new TextFilter(PsiKeyword.TRY)), new ParentElementFilter(new ClassFilter(PsiTryStatement.class)))))); final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiCodeBlock.class, true); variant.addCompletion(PsiKeyword.CATCH, TailType.LPARENTH); variant.addCompletion(PsiKeyword.FINALLY, '{'); variant.addCompletionFilter(new FalseFilter()); this.registerVariant(variant); }// Catch/Finnaly completion { final ElementFilter position = new LeftNeighbour(new AndFilter( new TextFilter("}"), new ParentElementFilter(new AndFilter( new LeftNeighbour(new NotFilter(new TextFilter(PsiKeyword.TRY))), new OrFilter( new ParentElementFilter(new ClassFilter(PsiTryStatement.class)), new ParentElementFilter(new ClassFilter(PsiCatchSection.class))) )))); final CompletionVariant variant = new CompletionVariant(position); variant.includeScopeClass(PsiCodeBlock.class, false); variant.addCompletion(PsiKeyword.CATCH, TailType.LPARENTH); variant.addCompletion(PsiKeyword.FINALLY, '{'); //variant.addCompletionFilter(new FalseFilter()); this.registerVariant(variant); } {// Completion for catches final CompletionVariant variant = new CompletionVariant(PsiTryStatement.class, new PreviousElementFilter(new AndFilter( new ParentElementFilter(new ClassFilter(PsiTryStatement.class)), new TextFilter("(") ))); variant.includeScopeClass(PsiParameter.class); variant.addCompletionFilterOnElement(new ThisOrAnyInnerFilter(new AssignableFromFilter("java.lang.Throwable"))); variant.addCompletionFilterOnElement(new ClassFilter(PsiPackage.class)); this.registerVariant(variant); }// Completion for else expression// completion { final ElementFilter position = new LeftNeighbour( new OrFilter( new AndFilter(new TextFilter("}"),new ParentElementFilter(new ClassFilter(PsiIfStatement.class), 3)), new AndFilter(new TextFilter(";"),new ParentElementFilter(new ClassFilter(PsiIfStatement.class), 2)) )); final CompletionVariant variant = new CompletionVariant(PsiMethod.class, position); variant.addCompletion(PsiKeyword.ELSE); this.registerVariant(variant); } {// Super/This keyword completion final ElementFilter position = new LeftNeighbour( new AndFilter( new TextFilter("."), new LeftNeighbour( new ReferenceOnFilter(new GeneratorFilter(EqualsFilter.class, new UpWalkGetter(new ClassFilter(PsiClass.class)))) ))); final CompletionVariant variant = new CompletionVariant(PsiMethod.class, position); variant.includeScopeClass(PsiVariable.class); variant.addCompletion(PsiKeyword.SUPER, TailType.DOT); variant.addCompletion(PsiKeyword.THIS, TailType.DOT); this.registerVariant(variant); } {// Class field completion final CompletionVariant variant = new CompletionVariant(PsiMethod.class, new LeftNeighbour( new AndFilter(new TextFilter("."), new LeftNeighbour(new OrFilter(new ElementFilter[]{ new ReferenceOnFilter(new ClassFilter(PsiClass.class)), new TextFilter(PRIMITIVE_TYPES), new TextFilter("]") }))))); variant.includeScopeClass(PsiVariable.class); variant.addCompletion(PsiKeyword.CLASS, TailType.NONE); this.registerVariant(variant); } {// break completion final CompletionVariant variant = new CompletionVariant(new AndFilter(END_OF_BLOCK, new OrFilter( new ScopeFilter(new ClassFilter(PsiSwitchStatement.class)), new InsideElementFilter(new ClassFilter(PsiBlockStatement.class))))); variant.includeScopeClass(PsiForStatement.class, false); variant.includeScopeClass(PsiForeachStatement.class, false); variant.includeScopeClass(PsiWhileStatement.class, false); variant.includeScopeClass(PsiDoWhileStatement.class, false); variant.includeScopeClass(PsiSwitchStatement.class, false); variant.addCompletion(PsiKeyword.BREAK); this.registerVariant(variant); } {// continue completion final CompletionVariant variant = new CompletionVariant(new AndFilter(END_OF_BLOCK, new InsideElementFilter(new ClassFilter(PsiBlockStatement.class)))); variant.includeScopeClass(PsiForeachStatement.class, false); variant.includeScopeClass(PsiForStatement.class, false); variant.includeScopeClass(PsiWhileStatement.class, false); variant.includeScopeClass(PsiDoWhileStatement.class, false); variant.addCompletion(PsiKeyword.CONTINUE); this.registerVariant(variant); } { final CompletionVariant variant = new CompletionVariant( new AndFilter( END_OF_BLOCK, new OrFilter( new ParentElementFilter(new ClassFilter(PsiSwitchLabelStatement.class)), new LeftNeighbour(new OrFilter( new ParentElementFilter(new ClassFilter(PsiSwitchStatement.class), 2), new AndFilter(new TextFilter(";", "}"),new ParentElementFilter(new ClassFilter(PsiSwitchStatement.class), 3) )))))); variant.includeScopeClass(PsiSwitchStatement.class, true); variant.addCompletion(PsiKeyword.CASE, TailType.SPACE); variant.addCompletion(PsiKeyword.DEFAULT, ':'); this.registerVariant(variant); } {// primitive arrays after new final CompletionVariant variant = new CompletionVariant(PsiExpression.class, new LeftNeighbour( new AndFilter(new TextFilter(PsiKeyword.NEW), new LeftNeighbour(new NotFilter(new TextFilter(".", PsiKeyword.THROW))))) ); variant.includeScopeClass(PsiNewExpression.class, true); addPrimitiveTypes(variant); variant.setItemProperty(LookupItem.BRACKETS_COUNT_ATTR, new Integer(1)); this.registerVariant(variant); } {// after new final CompletionVariant variant = new CompletionVariant(new LeftNeighbour(new TextFilter(PsiKeyword.NEW))); variant.includeScopeClass(PsiNewExpression.class, true); variant.addCompletionFilterOnElement(new ClassFilter(PsiClass.class)); this.registerVariant(variant); } { final CompletionVariant variant = new CompletionVariant(new AndFilter( new ScopeFilter(new ParentElementFilter(new ClassFilter(PsiThrowStatement.class))), new ParentElementFilter(new ClassFilter(PsiNewExpression.class))) ); variant.includeScopeClass(PsiNewExpression.class, false); variant.addCompletionFilterOnElement(new ThisOrAnyInnerFilter(new AssignableFromFilter("java.lang.Throwable"))); this.registerVariant(variant); } {// completion in reference parameters final CompletionVariant variant = new CompletionVariant(TrueFilter.INSTANCE); variant.includeScopeClass(PsiReferenceParameterList.class, true); variant.addCompletionFilterOnElement(new ClassFilter(PsiClass.class)); this.registerVariant(variant); } { // null completion final CompletionVariant variant = new CompletionVariant(new NotFilter(new LeftNeighbour(new TextFilter(".")))); variant.addCompletion(PsiKeyword.NULL,TailType.NONE); variant.includeScopeClass(PsiExpressionList.class); this.registerVariant(variant); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3314476891c70f6e28a00beba3f4835933188dec/JavaCompletionData.java/clean/codeInsight/impl/com/intellij/codeInsight/completion/JavaCompletionData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
21165,
382,
1305,
3876,
1435,
288,
565,
288,
759,
1472,
666,
8364,
1377,
727,
20735,
9356,
5437,
273,
394,
20735,
9356,
12,
3639,
394,
13338,
13577,
477,
12,
2704,
2965,
1586,
12,
2704,
3867,
1586,
12,
2704,
514,
63,
7073,
6,
2932,
16,
3104,
3113,
453,
7722,
8736,
18,
7263,
1013,
97,
3631,
4766,
4202,
394,
14845,
3054,
1586,
12,
2704,
1659,
1586,
12,
52,
7722,
3257,
18,
1106,
3719,
3719,
1769,
1377,
5437,
18,
6702,
3876,
797,
12,
52,
7722,
1662,
682,
18,
1106,
16,
638,
1769,
1377,
527,
9840,
2016,
12,
8688,
1769,
1377,
5437,
18,
1289,
11238,
12,
52,
7722,
8736,
18,
7263,
1013,
1769,
1377,
5437,
18,
1289,
11238,
1586,
1398,
1046,
12,
2704,
1659,
1586,
12,
52,
7722,
797,
18,
1106,
10019,
1377,
1744,
9356,
12,
8688,
1769,
565,
289,
759,
20735,
364,
3318,
316,
707,
1216,
2442,
759,
1754,
565,
288,
1377,
727,
3010,
1586,
1754,
273,
394,
13338,
13577,
477,
12,
2704,
7835,
1586,
12,
3639,
394,
3867,
1586,
2932,
2225,
3631,
3639,
394,
9520,
1046,
1586,
12,
2704,
1659,
1586,
12,
52,
7722,
1662,
682,
18,
1106,
3719,
10019,
759,
8364,
1377,
20735,
9356,
5437,
273,
394,
20735,
9356,
12,
52,
7722,
1305,
18,
1106,
16,
1754,
1769,
1377,
5437,
18,
6702,
3876,
797,
12,
52,
7722,
797,
18,
1106,
1769,
368,
364,
1216,
603,
9004,
980,
1377,
5437,
18,
1289,
11238,
12,
52,
7722,
8736,
18,
2455,
28402,
1769,
1377,
333,
18,
4861,
9356,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
21165,
382,
1305,
3876,
1435,
288,
565,
288,
759,
1472,
666,
8364,
1377,
727,
20735,
9356,
5437,
273,
394,
20735,
9356,
12,
3639,
394,
13338,
13577,
477,
12,
2704,
2965,
1586,
12,
2704,
3867,
1586,
12,
2704,
514,
63,
7073,
6,
2932,
16,
3104,
3113,
453,
7722,
8736,
18,
7263,
1013,
97,
3631,
4766,
4202,
394,
14845,
3054,
1586,
12,
2704,
1659,
1586,
12,
52,
7722,
3257,
18,
1106,
3719,
3719,
1769,
1377,
5437,
18,
6702,
3876,
797,
12,
52,
7722,
1662,
682,
18,
1106,
16,
638,
1769,
1377,
527,
9840,
2016,
12,
8688,
1769,
1377,
5437,
18,
1289,
11238,
12,
52,
7722,
8736,
18,
7263,
1013,
1769,
1377,
5437,
18,
1289,
11238,
1586,
1398,
2
] |
UmlModelEventPump.getPump().removeModelEventListener(this, (MBase)_target, _eventName);
|
UmlModelEventPump.getPump().removeModelEventListener( this, (MBase) _target, _eventName);
|
public void setTarget(Object target) { if (target == _target && target != null) return; if (_eventName == null || _eventName.equals("")) throw new IllegalStateException("eventName not set!"); if (_target instanceof MBase) { UmlModelEventPump.getPump().removeModelEventListener(this, (MBase)_target, _eventName); } _target = target; if (_target instanceof MBase) { // UmlModelEventPump.getPump().removeModelEventListener(this, (MBase)_target, _eventName); UmlModelEventPump.getPump().addModelEventListener(this, (MBase)_target, _eventName); } if (_target != null) { removeAllElements(); buildModelList(); } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/d091a445c669a5b90140f095a96fbff2ee4afa4c/UMLModelElementListModel2.java/clean/src_new/org/argouml/uml/ui/UMLModelElementListModel2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18367,
12,
921,
1018,
13,
288,
3639,
309,
261,
3299,
422,
389,
3299,
597,
1018,
480,
446,
13,
327,
31,
3639,
309,
261,
67,
2575,
461,
422,
446,
747,
389,
2575,
461,
18,
14963,
2932,
6,
3719,
2398,
604,
394,
5477,
2932,
2575,
461,
486,
444,
4442,
1769,
3639,
309,
261,
67,
3299,
1276,
490,
2171,
13,
288,
5411,
587,
781,
1488,
1133,
52,
2801,
18,
588,
52,
2801,
7675,
4479,
1488,
7375,
12,
333,
16,
261,
49,
2171,
13,
389,
3299,
16,
389,
2575,
461,
1769,
3639,
289,
3639,
389,
3299,
273,
1018,
31,
3639,
309,
261,
67,
3299,
1276,
490,
2171,
13,
288,
2398,
368,
587,
781,
1488,
1133,
52,
2801,
18,
588,
52,
2801,
7675,
4479,
1488,
7375,
12,
333,
16,
261,
49,
2171,
13,
389,
3299,
16,
389,
2575,
461,
1769,
2398,
587,
781,
1488,
1133,
52,
2801,
18,
588,
52,
2801,
7675,
1289,
1488,
7375,
12,
2211,
16,
261,
49,
2171,
13,
67,
3299,
16,
389,
2575,
461,
1769,
3639,
289,
3639,
309,
261,
67,
3299,
480,
446,
13,
288,
5411,
12787,
3471,
5621,
5411,
1361,
1488,
682,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18367,
12,
921,
1018,
13,
288,
3639,
309,
261,
3299,
422,
389,
3299,
597,
1018,
480,
446,
13,
327,
31,
3639,
309,
261,
67,
2575,
461,
422,
446,
747,
389,
2575,
461,
18,
14963,
2932,
6,
3719,
2398,
604,
394,
5477,
2932,
2575,
461,
486,
444,
4442,
1769,
3639,
309,
261,
67,
3299,
1276,
490,
2171,
13,
288,
5411,
587,
781,
1488,
1133,
52,
2801,
18,
588,
52,
2801,
7675,
4479,
1488,
7375,
12,
333,
16,
261,
49,
2171,
13,
389,
3299,
16,
389,
2575,
461,
1769,
3639,
289,
3639,
389,
3299,
273,
1018,
31,
3639,
309,
261,
67,
3299,
1276,
490,
2171,
13,
288,
2398,
368,
587,
781,
1488,
1133,
52,
2801,
18,
588,
52,
2
] |
protected ServerConsumerEndpoint putConsumerDelegate(String consumerID, ServerConsumerEndpoint d)
|
protected ServerConsumerEndpoint putConsumerDelegate(int consumerID, ServerConsumerEndpoint d)
|
protected ServerConsumerEndpoint putConsumerDelegate(String consumerID, ServerConsumerEndpoint d) { return (ServerConsumerEndpoint)consumers.put(consumerID, d); }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bb5207822a56158d5b94faff7c6dbe5f094f6f4c/ServerSessionEndpoint.java/clean/src/main/org/jboss/jms/server/endpoint/ServerSessionEndpoint.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
3224,
5869,
3293,
1378,
5869,
9586,
12,
474,
4765,
734,
16,
3224,
5869,
3293,
302,
13,
282,
288,
1377,
327,
261,
2081,
5869,
3293,
13,
17664,
414,
18,
458,
12,
13230,
734,
16,
302,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
4750,
3224,
5869,
3293,
1378,
5869,
9586,
12,
474,
4765,
734,
16,
3224,
5869,
3293,
302,
13,
282,
288,
1377,
327,
261,
2081,
5869,
3293,
13,
17664,
414,
18,
458,
12,
13230,
734,
16,
302,
1769,
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
] |
public void onEncode(ClientKey key, ClientPutState state) {
|
public void onEncode(BaseClientKey key, ClientPutState state) {
|
public void onEncode(ClientKey key, ClientPutState state) { SingleBlockInserter sbi = (SingleBlockInserter)state; int x = sbi.token; FreenetURI uri = key.getURI(); synchronized(this) { if(finished) return; if(x >= dataBlocks.length) { if(checkURIs[x-dataBlocks.length] != null) { Logger.normal(this, "Got uri twice for check block "+x+" on "+this); return; } checkURIs[x-dataBlocks.length] = uri; } else { if(dataURIs[x] != null) { Logger.normal(this, "Got uri twice for data block "+x+" on "+this); return; } dataURIs[x] = uri; } blocksGotURI++; if(blocksGotURI != dataBlocks.length + checkBlocks.length) return; // Double check for(int i=0;i<checkURIs.length;i++) { if(checkURIs[i] == null) { Logger.error(this, "Check URI "+i+" is null"); return; } } for(int i=0;i<dataURIs.length;i++) { if(dataURIs[i] == null) { Logger.error(this, "Data URI "+i+" is null"); return; } } hasURIs = true; } parent.segmentHasURIs(this); }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/c6aa82ac420d1cc2277bea0c09c5c8fcbaf51ad0/SplitFileInserterSegment.java/buggy/src/freenet/client/async/SplitFileInserterSegment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
603,
5509,
12,
1227,
653,
498,
16,
2445,
6426,
1119,
919,
13,
288,
202,
202,
5281,
1768,
382,
550,
387,
2393,
77,
273,
261,
5281,
1768,
382,
550,
387,
13,
2019,
31,
202,
202,
474,
619,
273,
2393,
77,
18,
2316,
31,
202,
202,
42,
2842,
278,
3098,
2003,
273,
498,
18,
588,
3098,
5621,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
13527,
13,
327,
31,
1082,
202,
430,
12,
92,
1545,
501,
6450,
18,
2469,
13,
288,
9506,
202,
430,
12,
1893,
1099,
2520,
63,
92,
17,
892,
6450,
18,
2469,
65,
480,
446,
13,
288,
6862,
202,
3328,
18,
6130,
12,
2211,
16,
315,
15617,
2003,
13605,
364,
866,
1203,
13773,
92,
9078,
603,
13773,
2211,
1769,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
1893,
1099,
2520,
63,
92,
17,
892,
6450,
18,
2469,
65,
273,
2003,
31,
1082,
202,
97,
469,
288,
9506,
202,
430,
12,
892,
1099,
2520,
63,
92,
65,
480,
446,
13,
288,
6862,
202,
3328,
18,
6130,
12,
2211,
16,
315,
15617,
2003,
13605,
364,
501,
1203,
13773,
92,
9078,
603,
13773,
2211,
1769,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
892,
1099,
2520,
63,
92,
65,
273,
2003,
31,
1082,
202,
97,
1082,
202,
7996,
15617,
3098,
9904,
31,
1082,
202,
430,
12,
7996,
15617,
3098,
480,
501,
6450,
18,
2469,
397,
866,
6450,
18,
2469,
13,
327,
31,
1082,
202,
759,
3698,
866,
1082,
202,
1884,
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,
603,
5509,
12,
1227,
653,
498,
16,
2445,
6426,
1119,
919,
13,
288,
202,
202,
5281,
1768,
382,
550,
387,
2393,
77,
273,
261,
5281,
1768,
382,
550,
387,
13,
2019,
31,
202,
202,
474,
619,
273,
2393,
77,
18,
2316,
31,
202,
202,
42,
2842,
278,
3098,
2003,
273,
498,
18,
588,
3098,
5621,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
13527,
13,
327,
31,
1082,
202,
430,
12,
92,
1545,
501,
6450,
18,
2469,
13,
288,
9506,
202,
430,
12,
1893,
1099,
2520,
63,
92,
17,
892,
6450,
18,
2469,
65,
480,
446,
13,
288,
6862,
202,
3328,
18,
6130,
12,
2211,
16,
315,
15617,
2003,
13605,
364,
866,
2
] |
if(ASS)ER.T(false,"getSourceLocation called when not really stopped",this);
|
if(AS.S)ER.T(false,"getSourceLocation called when not really stopped",this);
|
public JSSourceLocation getSourceLocation() { if( STOPPED == _state ) return _sourceLocation; if(ASS)ER.T(false,"getSourceLocation called when not really stopped",this); return null; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/2de73cf99dce60cce549e7757f841284b68d1220/ControlTyrant.java/buggy/js/jsdj/classes/com/netscape/jsdebugging/ifcui/ControlTyrant.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29686,
552,
2735,
7889,
2735,
1435,
565,
288,
3639,
309,
12,
17815,
12120,
422,
389,
2019,
262,
5411,
327,
389,
3168,
2735,
31,
3639,
309,
12,
3033,
18,
55,
13,
654,
18,
56,
12,
5743,
10837,
588,
1830,
2735,
2566,
1347,
486,
8654,
9627,
3113,
2211,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29686,
552,
2735,
7889,
2735,
1435,
565,
288,
3639,
309,
12,
17815,
12120,
422,
389,
2019,
262,
5411,
327,
389,
3168,
2735,
31,
3639,
309,
12,
3033,
18,
55,
13,
654,
18,
56,
12,
5743,
10837,
588,
1830,
2735,
2566,
1347,
486,
8654,
9627,
3113,
2211,
1769,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result = ((RubyCallbackMethod)body.nd_cfnc()).execute(recv, args, getRuby());
|
try { result = ((RubyCallbackMethod)body.nd_cfnc()).execute(recv, args, getRuby()); } catch (RubyArgumentException raExcptn) { System.out.print("Cannot call method \"" + id.toName() + "\". "); System.out.println(raExcptn.getMessage()); }
|
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT); // HACK --- interpreter.getRubyFrame().setLastFunc(id); interpreter.getRubyFrame().setLastClass(noSuper ? null : this); interpreter.getRubyFrame().setSelf(recv); interpreter.getRubyFrame().setArgs(new ShiftableList(args)); RubyObject result = null; switch (body.nd_type()) { case NODE_CFUNC: { result = ((RubyCallbackMethod)body.nd_cfnc()).execute(recv, args, getRuby()); break; } case NODE_ZSUPER: case NODE_ATTRSET: case NODE_IVAR: { result = interpreter.eval(recv, body); break; } case NODE_SCOPE: { NODE savedCref = null; // VALUE[] localVars = null; ShiftableList argsList = new ShiftableList(args); ShiftableList localVarsList = null; getRuby().rubyScope.push(); if (body.nd_rval() != null) { savedCref = interpreter.ruby_cref; interpreter.ruby_cref = (NODE)body.nd_rval(); interpreter.getRubyFrame().setCbase(body.nd_rval()); } if (body.nd_tbl() != null) { // ? +++ List tmpList = Collections.nCopies(body.nd_tbl()[0].intValue() + 1, getRuby().getNil()); // ? --- localVarsList = new ShiftableList(new ArrayList(tmpList)); localVarsList.set(0, body); localVarsList.shift(1); getRuby().rubyScope.setLocalTbl(body.nd_tbl()); getRuby().rubyScope.setLocalVars(localVarsList.getList()); } else { localVarsList = getRuby().rubyScope.getLocalVars(); getRuby().rubyScope.setLocalVars(null); getRuby().rubyScope.setLocalTbl(null); } body = body.nd_next(); RubyVarmap.push(getRuby()); // PUSH_TAG(PROT_FUNC); try { NODE node = null; int i; if (body.nd_type() == NODE_ARGS) { node = body; body = null; } else if (body.nd_type() == NODE_BLOCK) { node = body.nd_head(); body = body.nd_next(); } if (node != null) { if (node.nd_type() != NODE_ARGS) { // rb_bug("no argument-node"); } i = node.nd_cnt(); if (i > (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + i + ")"); } if (node.nd_rest() == -1) { int opt = i; NODE optnode = node.nd_opt(); while (optnode != null) { opt++; optnode = optnode.nd_next(); } if (opt < (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + opt + ")"); } interpreter.getRubyFrame().setArgs(localVarsList != null ? localVarsList.getList(2) : null); } if (localVarsList != null) { if (i > 0) { localVarsList.shift(2); for (int j = 0; j < i; j++ ) { localVarsList.set(j, argsList.get(j)); } localVarsList.shiftLeft(2); } argsList.shift(i); if (node.nd_opt() != null) { NODE opt = node.nd_opt(); while (opt != null && argsList.size() != 0) { interpreter.assign(recv, opt.nd_head(), (RubyObject)argsList.get(0), true); argsList.shift(1); opt = opt.nd_next(); } interpreter.eval(recv, opt); } if (node.nd_rest() >= 0) { RubyArray array = null; if (argsList.size() > 0) { array = RubyArray.m_newArray(getRuby(), argsList); } else { array = RubyArray.m_newArray(getRuby(), 0); } localVarsList.set(node.nd_rest(), array); } } } result = interpreter.eval(recv, body); } catch (ReturnException rExcptn) { } RubyVarmap.pop(getRuby()); getRuby().rubyScope.pop(); interpreter.ruby_cref = savedCref; break; } default: { System.out.println("Not implemented yet (method call): " + id.toName() + ", node_type:" + body.nd_type()); } } interpreter.getRubyFrame().pop(); interpreter.getRubyIter().pop(); return result ; }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/09d14a481cf7e28332c61c038c7d4b468854d38d/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
20,
12,
54,
10340,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
11922,
1417,
16,
1250,
1158,
8051,
13,
288,
7734,
368,
1372,
3639,
19817,
30010,
16048,
273,
4170,
10340,
7675,
588,
30010,
5621,
7734,
16048,
18,
588,
54,
10340,
3219,
7675,
6206,
5621,
7734,
368,
670,
3649,
965,
15,
3639,
16048,
18,
588,
54,
10340,
2360,
7675,
6206,
12,
2360,
18,
11844,
67,
4400,
1769,
3639,
368,
670,
3649,
9948,
7734,
16048,
18,
588,
54,
10340,
3219,
7675,
542,
3024,
2622,
12,
350,
1769,
3639,
16048,
18,
588,
54,
10340,
3219,
7675,
542,
3024,
797,
12,
2135,
8051,
692,
446,
294,
333,
1769,
3639,
16048,
18,
588,
54,
10340,
3219,
7675,
542,
10084,
12,
18334,
1769,
3639,
16048,
18,
588,
54,
10340,
3219,
7675,
542,
2615,
12,
2704,
2638,
430,
2121,
682,
12,
1968,
10019,
7734,
19817,
921,
563,
273,
446,
31,
7734,
1620,
261,
3432,
18,
4880,
67,
723,
10756,
288,
5411,
648,
11922,
67,
8955,
21163,
30,
288,
1171,
775,
288,
225,
563,
273,
14015,
54,
10340,
2428,
1305,
13,
3432,
18,
4880,
67,
71,
4293,
71,
1435,
2934,
8837,
12,
18334,
16,
833,
16,
4170,
10340,
10663,
225,
289,
1044,
261,
54,
10340,
1878,
767,
29924,
337,
82,
13,
288,
2332,
18,
659,
18,
1188,
2932,
4515,
745,
707,
11843,
397,
612,
18,
869,
461,
1435,
397,
7023,
18,
315,
1769,
2332,
18,
659,
18,
8222,
12,
354,
29924,
337,
82,
18,
24906,
10663,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
20,
12,
54,
10340,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
11922,
1417,
16,
1250,
1158,
8051,
13,
288,
7734,
368,
1372,
3639,
19817,
30010,
16048,
273,
4170,
10340,
7675,
588,
30010,
5621,
7734,
16048,
18,
588,
54,
10340,
3219,
7675,
6206,
5621,
7734,
368,
670,
3649,
965,
15,
3639,
16048,
18,
588,
54,
10340,
2360,
7675,
6206,
12,
2360,
18,
11844,
67,
4400,
1769,
3639,
368,
670,
3649,
9948,
7734,
16048,
18,
588,
54,
10340,
3219,
7675,
542,
3024,
2622,
12,
350,
1769,
3639,
16048,
18,
588,
54,
10340,
3219,
7675,
542,
3024,
797,
12,
2135,
8051,
692,
446,
294,
333,
1769,
3639,
16048,
18,
588,
54,
10340,
2
] |
if ((aAST.getType() == TokenTypes.STAR) && (aAST.getParent().getType() == TokenTypes.DOT))
|
if ((type == TokenTypes.STAR) && (parentType == TokenTypes.DOT))
|
public void visitToken(DetailAST aAST) { // Check for RCURLY in array initializer if ((aAST.getType() == TokenTypes.RCURLY) && (aAST.getParent().getType() == TokenTypes.ARRAY_INIT)) { return; } // Check for import pkg.name.*; if ((aAST.getType() == TokenTypes.STAR) && (aAST.getParent().getType() == TokenTypes.DOT)) { return; } // Check for an SLIST that has a parent CASE_GROUP. It is not a '{'. if ((aAST.getType() == TokenTypes.SLIST) && (aAST.getParent().getType() == TokenTypes.CASE_GROUP)) { return; } final String[] lines = getLines(); final String line = lines[aAST.getLineNo() - 1]; final int before = aAST.getColumnNo() - 1; final int after = aAST.getColumnNo() + aAST.getText().length(); if ((before >= 0) && !Character.isWhitespace(line.charAt(before))) { log(aAST.getLineNo(), aAST.getColumnNo(), "ws.notPreceeded", new Object[]{aAST.getText()}); } if ((after < line.length()) && !Character.isWhitespace( line.charAt(after)) // Check for "return;" && !((aAST.getType() == TokenTypes.LITERAL_RETURN) && (aAST.getFirstChild().getType() == TokenTypes.SEMI)) // Check for "})" or "};". Happens with anon-inners && !((aAST.getType() == TokenTypes.RCURLY) && ((line.charAt(after) == ')') || (line.charAt(after) == ';')))) { log( aAST.getLineNo(), aAST.getColumnNo() + aAST.getText().length(), "ws.notFollowed", new Object[] {aAST.getText()}); } }
|
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/3ac2917921de25e879e5ce759e6231b1eb4c8768/WhitespaceAroundCheck.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/WhitespaceAroundCheck.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1345,
12,
6109,
9053,
279,
9053,
13,
565,
288,
3639,
368,
2073,
364,
534,
26314,
316,
526,
12562,
3639,
309,
14015,
69,
9053,
18,
588,
559,
1435,
422,
3155,
2016,
18,
11529,
1785,
61,
13,
5411,
597,
261,
69,
9053,
18,
588,
3054,
7675,
588,
559,
1435,
422,
3155,
2016,
18,
8552,
67,
12919,
3719,
3639,
288,
5411,
327,
31,
3639,
289,
3639,
368,
2073,
364,
1930,
3475,
18,
529,
4509,
31,
3639,
309,
14015,
69,
9053,
18,
588,
559,
1435,
422,
3155,
2016,
18,
20943,
13,
5411,
597,
261,
69,
9053,
18,
588,
3054,
7675,
588,
559,
1435,
422,
3155,
2016,
18,
17591,
3719,
3639,
288,
5411,
327,
31,
3639,
289,
3639,
368,
2073,
364,
392,
348,
7085,
716,
711,
279,
982,
18403,
67,
8468,
18,
2597,
353,
486,
279,
9790,
18,
3639,
309,
14015,
69,
9053,
18,
588,
559,
1435,
422,
3155,
2016,
18,
55,
7085,
13,
5411,
597,
261,
69,
9053,
18,
588,
3054,
7675,
588,
559,
1435,
422,
3155,
2016,
18,
13415,
67,
8468,
3719,
3639,
288,
5411,
327,
31,
3639,
289,
7734,
727,
514,
8526,
2362,
273,
336,
5763,
5621,
3639,
727,
514,
980,
273,
2362,
63,
69,
9053,
18,
588,
1670,
2279,
1435,
300,
404,
15533,
3639,
727,
509,
1865,
273,
279,
9053,
18,
588,
1494,
2279,
1435,
300,
404,
31,
3639,
727,
509,
1839,
273,
279,
9053,
18,
588,
1494,
2279,
1435,
397,
279,
9053,
18,
588,
1528,
7675,
2469,
5621,
3639,
309,
14015,
5771,
1545,
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,
3757,
1345,
12,
6109,
9053,
279,
9053,
13,
565,
288,
3639,
368,
2073,
364,
534,
26314,
316,
526,
12562,
3639,
309,
14015,
69,
9053,
18,
588,
559,
1435,
422,
3155,
2016,
18,
11529,
1785,
61,
13,
5411,
597,
261,
69,
9053,
18,
588,
3054,
7675,
588,
559,
1435,
422,
3155,
2016,
18,
8552,
67,
12919,
3719,
3639,
288,
5411,
327,
31,
3639,
289,
3639,
368,
2073,
364,
1930,
3475,
18,
529,
4509,
31,
3639,
309,
14015,
69,
9053,
18,
588,
559,
1435,
422,
3155,
2016,
18,
20943,
13,
5411,
597,
261,
69,
9053,
18,
588,
3054,
7675,
588,
559,
1435,
422,
3155,
2016,
18,
17591,
3719,
3639,
288,
5411,
327,
31,
3639,
289,
3639,
368,
2073,
2
] |
while (is_identchar(c)) {
|
while (isIdentifierChar(c)) {
|
private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261,
71,
273,
1024,
71,
10756,
288,
7734,
648,
2337,
20,
11,
294,
368,
423,
1506,
7734,
648,
2337,
26565,
11,
294,
368,
3602,
40,
7734,
648,
2337,
20,
1578,
11,
294,
368,
3602,
62,
7734,
648,
300,
21,
294,
368,
409,
434,
2728,
18,
10792,
327,
374,
31,
10792,
368,
9578,
7292,
7734,
648,
296,
296,
294,
7734,
648,
2337,
88,
11,
294,
7734,
648,
2337,
74,
11,
294,
7734,
648,
2337,
86,
11,
294,
7734,
648,
2337,
1611,
23,
11,
294,
368,
2337,
90,
11,
10792,
3476,
67,
15156,
9904,
31,
10792,
1324,
3300,
31,
7734,
648,
6501,
294,
368,
518,
1807,
279,
2879,
10792,
1323,
14015,
71,
273,
1024,
71,
10756,
480,
2337,
82,
6134,
288,
13491,
309,
261,
71,
422,
300,
21,
13,
288,
18701,
327,
374,
31,
13491,
289,
10792,
289,
10792,
368,
4159,
3059,
7734,
648,
2337,
82,
11,
294,
10792,
1620,
261,
844,
18,
588,
14756,
1119,
10756,
288,
13491,
648,
15123,
1119,
18,
2294,
8025,
67,
5948,
43,
294,
13491,
648,
15123,
1119,
18,
2294,
8025,
67,
42,
1985,
294,
13491,
648,
15123,
1119,
18,
2294,
8025,
67,
17591,
294,
18701,
1324,
3300,
31,
13491,
805,
294,
18701,
898,
31,
10792,
289,
10792,
1844,
18,
542,
14756,
1119,
12,
14756,
1119,
18,
2294,
8025,
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,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261,
71,
273,
1024,
71,
10756,
288,
7734,
648,
2337,
20,
11,
294,
368,
423,
1506,
7734,
648,
2337,
26565,
11,
294,
368,
3602,
40,
7734,
648,
2337,
20,
1578,
11,
294,
368,
3602,
62,
7734,
648,
300,
21,
294,
368,
409,
434,
2728,
18,
10792,
327,
374,
31,
10792,
368,
9578,
7292,
7734,
648,
296,
296,
294,
7734,
648,
2337,
88,
11,
294,
7734,
648,
2337,
74,
11,
294,
7734,
648,
2337,
86,
11,
294,
7734,
648,
2337,
1611,
23,
11,
294,
368,
2
] |
VM_Entrypoints.jtocField.getOffset(),
|
VM_Entrypoints.jtocField.getOffsetAsInt(),
|
private OPT_MemoryOperand loadFromJTOC(int offset) { OPT_LocationOperand loc = new OPT_LocationOperand(offset); OPT_Operand guard = TG(); if (burs.ir.options.FIXED_JTOC) { return OPT_MemoryOperand.D(VM_Magic.getTocPointer().add(offset).toInt(), (byte)4, loc, guard); } else { OPT_Operand jtoc = OPT_MemoryOperand.BD(R(regpool.getPhysicalRegisterSet().getPR()), VM_Entrypoints.jtocField.getOffset(), (byte)4, null, TG()); OPT_RegisterOperand regOp = regpool.makeTempInt(); EMIT(MIR_Move.create(IA32_MOV, regOp, jtoc)); return OPT_MemoryOperand.BD(regOp.copyD2U(), offset, (byte)4, loc, guard); } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/OPT_BURS_Helpers.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/ir/conversions/lir2mir/OPT_BURS_Helpers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
16456,
67,
6031,
10265,
24935,
46,
4296,
39,
12,
474,
1384,
13,
288,
565,
16456,
67,
2735,
10265,
1515,
273,
394,
16456,
67,
2735,
10265,
12,
3348,
1769,
565,
16456,
67,
10265,
11026,
273,
399,
43,
5621,
565,
309,
261,
70,
25152,
18,
481,
18,
2116,
18,
30406,
67,
46,
4296,
39,
13,
288,
1377,
327,
16456,
67,
6031,
10265,
18,
40,
12,
7397,
67,
19289,
18,
588,
56,
504,
4926,
7675,
1289,
12,
3348,
2934,
869,
1702,
9334,
4766,
261,
7229,
13,
24,
16,
1515,
16,
11026,
1769,
565,
289,
469,
288,
1377,
16456,
67,
10265,
525,
1391,
273,
540,
16456,
67,
6031,
10265,
18,
18096,
12,
54,
12,
1574,
6011,
18,
588,
18136,
3996,
694,
7675,
588,
8025,
1435,
3631,
11794,
8251,
67,
1622,
4139,
18,
78,
1391,
974,
18,
588,
2335,
31720,
9334,
17311,
261,
7229,
13,
24,
16,
446,
16,
399,
43,
10663,
1377,
16456,
67,
3996,
10265,
960,
3817,
273,
960,
6011,
18,
6540,
7185,
1702,
5621,
1377,
512,
6068,
12,
7492,
54,
67,
7607,
18,
2640,
12,
15188,
1578,
67,
5980,
58,
16,
960,
3817,
16,
525,
1391,
10019,
1377,
327,
16456,
67,
6031,
10265,
18,
18096,
12,
1574,
3817,
18,
3530,
40,
22,
57,
9334,
1384,
16,
261,
7229,
13,
24,
16,
1515,
16,
11026,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
16456,
67,
6031,
10265,
24935,
46,
4296,
39,
12,
474,
1384,
13,
288,
565,
16456,
67,
2735,
10265,
1515,
273,
394,
16456,
67,
2735,
10265,
12,
3348,
1769,
565,
16456,
67,
10265,
11026,
273,
399,
43,
5621,
565,
309,
261,
70,
25152,
18,
481,
18,
2116,
18,
30406,
67,
46,
4296,
39,
13,
288,
1377,
327,
16456,
67,
6031,
10265,
18,
40,
12,
7397,
67,
19289,
18,
588,
56,
504,
4926,
7675,
1289,
12,
3348,
2934,
869,
1702,
9334,
4766,
261,
7229,
13,
24,
16,
1515,
16,
11026,
1769,
565,
289,
469,
288,
1377,
16456,
67,
10265,
525,
1391,
273,
540,
16456,
67,
6031,
10265,
18,
18096,
12,
54,
12,
1574,
6011,
18,
588,
18136,
3996,
694,
2
] |
100); expected = "101,102,\"string 103\",\"string 104, with comma\"\n" + "201,202,\"string 203\",\"string 204\t with tab\"\n";
|
100, objectFormatter); expected = "101,\"\t,\",\"string 103\",\"string 104, with comma\"\n" + "201,\"\t,\",\"string 203\",\"string 204\t with tab\"\n";
|
public void testWriteCommaDelimitedTable() throws Exception { ByteArrayOutputStream baos; String expected; String results; baos = new ByteArrayOutputStream(); TextFileUtil.writeCSVTable(baos, getTestRows(), new int[] {0, 1, 2, 3}, new boolean[] {true, true, true, true}, 100); expected = "101,102,\"string 103\",\"string 104, with comma\"\n" + "201,202,\"string 203\",\"string 204\t with tab\"\n"; results = baos.toString(); assertEquals(expected, results); baos = new ByteArrayOutputStream(); TextFileUtil.writeCSVTable(baos, getTestRows(), new int[] {0, 1, 2, 3}, new boolean[] {false, true, true, true}, 100); expected = "102,\"string 103\",\"string 104, with comma\"\n" + "202,\"string 203\",\"string 204\t with tab\"\n"; results = baos.toString(); assertEquals(expected, results); baos = new ByteArrayOutputStream(); TextFileUtil.writeCSVTable(baos, getTestRows(), new int[] {3, 1, 2, 0}, new boolean[] {true, true, true, true}, 100); expected = "\"string 104, with comma\",102,\"string 103\",101\n" + "\"string 204\t with tab\",202,\"string 203\",201\n"; results = baos.toString(); assertEquals(expected, results); baos = new ByteArrayOutputStream(); TextFileUtil.writeCSVTable(baos, getTestRows(), new int[] {3, 2, 1, 0}, new boolean[] {false, true, true, false}, 100); expected = "\"string 103\",102\n\"string 203\",202\n"; results = baos.toString(); assertEquals(expected, results); baos = new ByteArrayOutputStream(); TextFileUtil.writeCSVTable(baos, getTestRows(), new int[] {3, 2, 1, 0}, new boolean[] {false, false, true, false}, 100); expected = "102\n202\n"; results = baos.toString(); assertEquals(expected, results); }
|
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/7315fcfe98d91ec34c5da0374768d1b027fe7425/TextFileUtilTest.java/clean/intermine/objectstore/test/src/org/intermine/util/TextFileUtilTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3067,
15594,
23531,
329,
1388,
1435,
1216,
1185,
288,
3639,
11559,
17548,
31,
3639,
514,
2665,
31,
3639,
514,
1686,
31,
3639,
17548,
273,
394,
11559,
5621,
3639,
3867,
812,
1304,
18,
2626,
16570,
1388,
12,
12124,
538,
16,
29384,
4300,
9334,
4766,
282,
394,
509,
8526,
288,
20,
16,
404,
16,
576,
16,
890,
5779,
4766,
282,
394,
1250,
8526,
288,
3767,
16,
638,
16,
638,
16,
638,
5779,
4766,
282,
2130,
1769,
3639,
2665,
273,
315,
15168,
16,
20481,
16,
2412,
1080,
1728,
23,
22564,
2412,
1080,
21856,
16,
598,
8716,
31670,
82,
6,
5411,
397,
315,
6734,
16,
18212,
16,
2412,
1080,
4200,
23,
22564,
2412,
1080,
11492,
64,
88,
598,
3246,
31670,
82,
14432,
3639,
1686,
273,
17548,
18,
10492,
5621,
3639,
1815,
8867,
12,
3825,
16,
1686,
1769,
3639,
17548,
273,
394,
11559,
5621,
3639,
3867,
812,
1304,
18,
2626,
16570,
1388,
12,
12124,
538,
16,
29384,
4300,
9334,
4766,
282,
394,
509,
8526,
288,
20,
16,
404,
16,
576,
16,
890,
5779,
4766,
282,
394,
1250,
8526,
288,
5743,
16,
638,
16,
638,
16,
638,
5779,
4766,
282,
2130,
1769,
3639,
2665,
273,
315,
20481,
16,
2412,
1080,
1728,
23,
22564,
2412,
1080,
21856,
16,
598,
8716,
31670,
82,
6,
5411,
397,
315,
18212,
16,
2412,
1080,
4200,
23,
22564,
2412,
1080,
11492,
64,
88,
598,
3246,
31670,
82,
14432,
3639,
1686,
273,
17548,
18,
10492,
5621,
3639,
1815,
8867,
12,
3825,
16,
1686,
1769,
3639,
17548,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3067,
15594,
23531,
329,
1388,
1435,
1216,
1185,
288,
3639,
11559,
17548,
31,
3639,
514,
2665,
31,
3639,
514,
1686,
31,
3639,
17548,
273,
394,
11559,
5621,
3639,
3867,
812,
1304,
18,
2626,
16570,
1388,
12,
12124,
538,
16,
29384,
4300,
9334,
4766,
282,
394,
509,
8526,
288,
20,
16,
404,
16,
576,
16,
890,
5779,
4766,
282,
394,
1250,
8526,
288,
3767,
16,
638,
16,
638,
16,
638,
5779,
4766,
282,
2130,
1769,
3639,
2665,
273,
315,
15168,
16,
20481,
16,
2412,
1080,
1728,
23,
22564,
2412,
1080,
21856,
16,
598,
8716,
31670,
82,
6,
5411,
397,
315,
6734,
16,
18212,
16,
2412,
1080,
4200,
23,
22564,
2412,
1080,
11492,
64,
88,
598,
3246,
2
] |
public static Test suite() { TestSuite suite = new Suite(ASTConverterTest.class.getName()); Class c = ASTConverterTest.class; Method[] methods = c.getMethods(); for (int i = 0, max = methods.length; i < max; i++) { if (methods[i].getName().startsWith("test")) { suite.addTest(new ASTConverterTest(methods[i].getName())); } }// suite.addTest(new ASTConverterTest("test0365")); return suite; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c8ad2fcb357a030cb541320582dc2de671794097/ASTConverterTest.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
4709,
13587,
11371,
273,
394,
348,
9519,
12,
9053,
5072,
4709,
18,
1106,
18,
17994,
10663,
9506,
202,
797,
276,
273,
9183,
5072,
4709,
18,
1106,
31,
202,
202,
1305,
8526,
2590,
273,
276,
18,
588,
4712,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
16,
943,
273,
2590,
18,
2469,
31,
277,
411,
943,
31,
277,
27245,
288,
1082,
202,
430,
261,
5163,
63,
77,
8009,
17994,
7675,
17514,
1190,
2932,
3813,
6,
3719,
288,
9506,
202,
30676,
18,
1289,
4709,
12,
2704,
9183,
5072,
4709,
12,
5163,
63,
77,
8009,
17994,
1435,
10019,
1082,
202,
97,
202,
202,
97,
759,
202,
202,
30676,
18,
1289,
4709,
12,
2704,
9183,
5072,
4709,
2932,
3813,
4630,
9222,
7923,
1769,
202,
202,
2463,
11371,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
4709,
13587,
11371,
273,
394,
348,
9519,
12,
9053,
5072,
4709,
18,
1106,
18,
17994,
10663,
9506,
202,
797,
276,
273,
9183,
5072,
4709,
18,
1106,
31,
202,
202,
1305,
8526,
2590,
273,
276,
18,
588,
4712,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
16,
943,
273,
2590,
18,
2469,
31,
277,
411,
943,
31,
277,
27245,
288,
1082,
202,
430,
261,
5163,
63,
77,
8009,
17994,
7675,
17514,
1190,
2932,
3813,
6,
3719,
288,
9506,
202,
30676,
18,
1289,
4709,
12,
2704,
9183,
5072,
4709,
12,
5163,
63,
77,
8009,
17994,
1435,
10019,
1082,
202,
97,
202,
202,
97,
759,
202,
202,
30676,
18,
1289,
4709,
2
] |
||
return setStageLabel(root, name, x, y, z, 0);
|
return setStageLabel(root, name, x, y, z, 0);
|
public static Object setStageLabel(Object root, String name, Float x, Float y, Float z) { return setStageLabel(root, name, x, y, z, 0); }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/4fb34c86623a7c56146ee231937f40b172287c95/OMETools.java/buggy/loci/formats/OMETools.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
444,
8755,
2224,
12,
921,
1365,
16,
514,
508,
16,
565,
5450,
619,
16,
5450,
677,
16,
5450,
998,
13,
225,
288,
565,
327,
444,
8755,
2224,
12,
3085,
16,
508,
16,
619,
16,
677,
16,
998,
16,
374,
1769,
4202,
289,
540,
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,
760,
1033,
444,
8755,
2224,
12,
921,
1365,
16,
514,
508,
16,
565,
5450,
619,
16,
5450,
677,
16,
5450,
998,
13,
225,
288,
565,
327,
444,
8755,
2224,
12,
3085,
16,
508,
16,
619,
16,
677,
16,
998,
16,
374,
1769,
4202,
289,
540,
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
] |
iCodeTop = addByte(incrDecrType, iCodeTop);
|
iCodeTop = addByte(incrDecrMask, iCodeTop);
|
private int visitIncDec(Node node, Node child, int iCodeTop) { int incrDecrType = node.getExistingIntProp(Node.INCRDECR_PROP); int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addIcode(Icode_SCOPE, iCodeTop); stackChange(1); iCodeTop = addStringOp(Icode_PROP_INC_DEC, name, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addVarOp(Icode_VAR_INC_DEC, i, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); stackChange(1); } break; } case Token.NAME : { String name = child.getString(); iCodeTop = addStringOp(Icode_NAME_INC_DEC, name, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); stackChange(1); break; } case Token.GETPROP : { Node object = child.getFirstChild(); iCodeTop = generateICode(object, iCodeTop); String property = object.getNext().getString(); iCodeTop = addStringOp(Icode_PROP_INC_DEC, property, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); break; } case Token.GETELEM : { Node object = child.getFirstChild(); iCodeTop = generateICode(object, iCodeTop); Node index = object.getNext(); iCodeTop = generateICode(index, iCodeTop); iCodeTop = addIcode(Icode_ELEM_INC_DEC, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); stackChange(-1); break; } case Token.GET_REF : { Node ref = child.getFirstChild(); iCodeTop = generateICode(ref, iCodeTop); iCodeTop = addIcode(Icode_REF_INC_DEC, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); break; } default : { throw badTree(node); } } return iCodeTop; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/cb3a4fef51dd031baf4bc78bcf8cc452587ea3b7/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3757,
14559,
1799,
12,
907,
756,
16,
2029,
1151,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
17633,
1799,
86,
559,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
706,
5093,
1639,
5093,
67,
15811,
1769,
3639,
509,
1151,
559,
273,
1151,
18,
588,
559,
5621,
3639,
1620,
261,
3624,
559,
13,
288,
1850,
648,
3155,
18,
3264,
7716,
294,
288,
5411,
514,
508,
273,
1151,
18,
588,
780,
5621,
5411,
309,
261,
1282,
751,
18,
1282,
26419,
14857,
13,
288,
7734,
277,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
19444,
16,
277,
1085,
3401,
1769,
7734,
2110,
3043,
12,
21,
1769,
7734,
277,
1085,
3401,
273,
527,
780,
3817,
12,
45,
710,
67,
15811,
67,
23213,
67,
1639,
39,
16,
508,
16,
277,
1085,
3401,
1769,
7734,
277,
1085,
3401,
273,
527,
3216,
12,
267,
3353,
1799,
86,
5796,
16,
277,
1085,
3401,
1769,
5411,
289,
469,
288,
7734,
509,
277,
273,
2728,
1162,
5372,
18,
588,
786,
1162,
1537,
1016,
12,
529,
1769,
7734,
277,
1085,
3401,
273,
527,
1537,
3817,
12,
45,
710,
67,
7716,
67,
23213,
67,
1639,
39,
16,
277,
16,
277,
1085,
3401,
1769,
7734,
277,
1085,
3401,
273,
527,
3216,
12,
267,
3353,
1799,
86,
5796,
16,
277,
1085,
3401,
1769,
7734,
2110,
3043,
12,
21,
1769,
5411,
289,
5411,
898,
31,
1850,
289,
1850,
648,
3155,
18,
1985,
294,
288,
5411,
514,
508,
273,
1151,
18,
588,
780,
5621,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3757,
14559,
1799,
12,
907,
756,
16,
2029,
1151,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
17633,
1799,
86,
559,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
706,
5093,
1639,
5093,
67,
15811,
1769,
3639,
509,
1151,
559,
273,
1151,
18,
588,
559,
5621,
3639,
1620,
261,
3624,
559,
13,
288,
1850,
648,
3155,
18,
3264,
7716,
294,
288,
5411,
514,
508,
273,
1151,
18,
588,
780,
5621,
5411,
309,
261,
1282,
751,
18,
1282,
26419,
14857,
13,
288,
7734,
277,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
19444,
16,
277,
1085,
3401,
1769,
7734,
2110,
3043,
12,
21,
1769,
7734,
277,
1085,
3401,
273,
527,
780,
2
] |
new NoViableAltException("654:17: ( constraint[constraints] | predicate[constraints] )", 46, 8, input);
|
new NoViableAltException("661:17: ( constraint[constraints] | predicate[constraints] )", 46, 8, input);
|
public List constraints() throws RecognitionException { List constraints; constraints = new ArrayList(); try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:653:17: ( opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:653:17: opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol { following.push(FOLLOW_opt_eol_in_constraints1628); opt_eol(); following.pop(); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:654:17: ( constraint[constraints] | predicate[constraints] ) int alt46=2; int LA46_0 = input.LA(1); if ( LA46_0==EOL||LA46_0==15 ) { alt46=1; } else if ( LA46_0==ID ) { int LA46_2 = input.LA(2); if ( LA46_2==30 ) { int LA46_3 = input.LA(3); if ( LA46_3==ID ) { int LA46_8 = input.LA(4); if ( LA46_8==50 ) { alt46=2; } else if ( LA46_8==EOL||LA46_8==15||(LA46_8>=22 && LA46_8<=23)||(LA46_8>=40 && LA46_8<=47) ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("654:17: ( constraint[constraints] | predicate[constraints] )", 46, 8, input); throw nvae; } } else if ( LA46_3==EOL||LA46_3==15 ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("654:17: ( constraint[constraints] | predicate[constraints] )", 46, 3, input); throw nvae; } } else if ( LA46_2==EOL||LA46_2==15||(LA46_2>=22 && LA46_2<=23)||(LA46_2>=40 && LA46_2<=47) ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("654:17: ( constraint[constraints] | predicate[constraints] )", 46, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("654:17: ( constraint[constraints] | predicate[constraints] )", 46, 0, input); throw nvae; } switch (alt46) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:654:18: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1633); constraint(constraints); following.pop(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:654:42: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1636); predicate(constraints); following.pop(); } break; } // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:655:17: ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* loop48: do { int alt48=2; alt48 = dfa48.predict(input); switch (alt48) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:655:19: opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) { following.push(FOLLOW_opt_eol_in_constraints1644); opt_eol(); following.pop(); match(input,22,FOLLOW_22_in_constraints1646); following.push(FOLLOW_opt_eol_in_constraints1648); opt_eol(); following.pop(); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:655:39: ( constraint[constraints] | predicate[constraints] ) int alt47=2; int LA47_0 = input.LA(1); if ( LA47_0==EOL||LA47_0==15 ) { alt47=1; } else if ( LA47_0==ID ) { int LA47_2 = input.LA(2); if ( LA47_2==30 ) { int LA47_3 = input.LA(3); if ( LA47_3==ID ) { int LA47_8 = input.LA(4); if ( LA47_8==50 ) { alt47=2; } else if ( LA47_8==EOL||LA47_8==15||(LA47_8>=22 && LA47_8<=23)||(LA47_8>=40 && LA47_8<=47) ) { alt47=1; } else { NoViableAltException nvae = new NoViableAltException("655:39: ( constraint[constraints] | predicate[constraints] )", 47, 8, input); throw nvae; } } else if ( LA47_3==EOL||LA47_3==15 ) { alt47=1; } else { NoViableAltException nvae = new NoViableAltException("655:39: ( constraint[constraints] | predicate[constraints] )", 47, 3, input); throw nvae; } } else if ( LA47_2==EOL||LA47_2==15||(LA47_2>=22 && LA47_2<=23)||(LA47_2>=40 && LA47_2<=47) ) { alt47=1; } else { NoViableAltException nvae = new NoViableAltException("655:39: ( constraint[constraints] | predicate[constraints] )", 47, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("655:39: ( constraint[constraints] | predicate[constraints] )", 47, 0, input); throw nvae; } switch (alt47) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:655:40: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1651); constraint(constraints); following.pop(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:655:64: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1654); predicate(constraints); following.pop(); } break; } } break; default : break loop48; } } while (true); following.push(FOLLOW_opt_eol_in_constraints1662); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
31,
540,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
26,
8643,
30,
4033,
30,
261,
2153,
67,
30951,
261,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
2153,
67,
30951,
3316,
2153,
67,
30951,
261,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
8618,
2153,
67,
30951,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
26,
8643,
30,
4033,
30,
2153,
67,
30951,
261,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
2153,
67,
30951,
3316,
2153,
67,
30951,
261,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
8618,
2153,
67,
30951,
5411,
288,
5411,
3751,
18,
6206,
12,
29890,
67,
3838,
67,
30951,
67,
267,
67,
11967,
2313,
6030,
1769,
5411,
2153,
67,
30951,
5621,
5411,
3751,
18,
5120,
5621,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
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,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
31,
540,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
26,
8643,
30,
4033,
30,
261,
2153,
67,
30951,
261,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
2153,
67,
30951,
3316,
2153,
67,
30951,
261,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
8618,
2153,
67,
30951,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
2
] |
DependantValue key = new DependantValue(collection.getCollectionTable(), keyValue);
|
keyValue.setTypeUsingReflection(property.getReferencedDomainClass().getName(), collection.getReferencedPropertyName()); DependantValue key = new DependantValue(collection.getCollectionTable(), keyValue); key.setTypeUsingReflection(property.getReferencedDomainClass().getName(), collection.getReferencedPropertyName());
|
private static void bindCollectionSecondPass(GrailsDomainClassProperty property, Mappings mappings, Map persistentClasses, Collection collection, Map inheritedMetas) { // Configure one-to-many if(collection.isOneToMany()) { OneToMany oneToMany = (OneToMany)collection.getElement(); String associatedClassName = oneToMany.getReferencedEntityName(); PersistentClass persistentClass = (PersistentClass)persistentClasses.get(associatedClassName); // if there is no persistent class for the association throw // exception if(persistentClass == null) { throw new MappingException( "Association references unmapped class: " + oneToMany.getReferencedEntityName() ); } oneToMany.setAssociatedClass( persistentClass ); collection.setCollectionTable( persistentClass.getTable() ); LOG.info( "Mapping collection: " + collection.getRole() + " -> " + collection.getCollectionTable().getName() ); } // setup the primary key references KeyValue keyValue; String propertyRef = collection.getReferencedPropertyName(); // this is to support mapping by a property if(propertyRef == null) { keyValue = collection.getOwner().getIdentifier(); } else { keyValue = (KeyValue)collection.getOwner().getProperty( propertyRef ).getValue(); } DependantValue key = new DependantValue(collection.getCollectionTable(), keyValue); bindSimpleValue( property,key,mappings ); collection.setKey( key ); // make required and non-updateable key.setNullable(false); key.setUpdateable(false); // if we have a many-to-many if(property.isManyToMany()) { ManyToOne element = new ManyToOne( collection.getCollectionTable() ); collection.setElement(element); bindManyToOne(property,element, mappings); } }
|
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/07120d2654701288a3bea3050c217a5bdfafc833/GrailsDomainBinder.java/clean/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1993,
2532,
8211,
6433,
12,
14571,
14573,
3748,
797,
1396,
1272,
16,
1635,
4675,
7990,
16,
1635,
9195,
4818,
16,
2200,
1849,
16,
1635,
12078,
30853,
13,
288,
202,
202,
759,
11758,
1245,
17,
869,
17,
9353,
202,
202,
430,
12,
5548,
18,
291,
3335,
12601,
10756,
288,
1082,
202,
3335,
12601,
1245,
12601,
273,
261,
3335,
12601,
13,
5548,
18,
21336,
5621,
1082,
202,
780,
3627,
3834,
273,
1245,
12601,
18,
588,
22344,
19441,
5621,
25083,
202,
11906,
797,
9195,
797,
273,
261,
11906,
797,
13,
19393,
4818,
18,
588,
12,
28441,
3834,
1769,
1082,
202,
759,
309,
1915,
353,
1158,
9195,
667,
364,
326,
6384,
604,
1082,
202,
759,
1520,
1082,
202,
430,
12,
19393,
797,
422,
446,
13,
288,
9506,
202,
12849,
394,
30896,
12,
315,
7174,
5351,
640,
13654,
667,
30,
315,
397,
1245,
12601,
18,
588,
22344,
19441,
1435,
11272,
1082,
202,
97,
25083,
202,
476,
12601,
18,
542,
19233,
797,
12,
9195,
797,
11272,
1082,
202,
5548,
18,
542,
2532,
1388,
12,
9195,
797,
18,
588,
1388,
1435,
11272,
25083,
202,
4842,
18,
1376,
12,
315,
3233,
1849,
30,
315,
6862,
202,
15,
1849,
18,
588,
2996,
1435,
6862,
202,
15,
315,
317,
315,
6862,
202,
15,
1849,
18,
588,
2532,
1388,
7675,
17994,
1435,
11272,
6862,
202,
97,
9506,
202,
759,
3875,
326,
3354,
498,
5351,
202,
202,
13841,
15082,
31,
9506,
202,
780,
1272,
1957,
273,
1849,
18,
588,
22344,
13073,
5621,
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,
1152,
760,
918,
1993,
2532,
8211,
6433,
12,
14571,
14573,
3748,
797,
1396,
1272,
16,
1635,
4675,
7990,
16,
1635,
9195,
4818,
16,
2200,
1849,
16,
1635,
12078,
30853,
13,
288,
202,
202,
759,
11758,
1245,
17,
869,
17,
9353,
202,
202,
430,
12,
5548,
18,
291,
3335,
12601,
10756,
288,
1082,
202,
3335,
12601,
1245,
12601,
273,
261,
3335,
12601,
13,
5548,
18,
21336,
5621,
1082,
202,
780,
3627,
3834,
273,
1245,
12601,
18,
588,
22344,
19441,
5621,
25083,
202,
11906,
797,
9195,
797,
273,
261,
11906,
797,
13,
19393,
4818,
18,
588,
12,
28441,
3834,
1769,
1082,
202,
759,
309,
1915,
353,
1158,
9195,
667,
364,
326,
6384,
604,
1082,
202,
759,
1520,
1082,
202,
2
] |
private void addTaskParameters(final int taskIndex, GroupPanel togglePanel) { MyTask taskDisplay = new MyTask(togglePanel, model.getParameterCount(taskIndex)); taskDisplayList.add(taskDisplay); int startParameterRow = tasksLayout.getRowCount() + 1; for (int i = 0; i < model.getParameterCount(taskIndex); i++) { String paramName = model.getParameterName(taskIndex, i); CellConstraints cc = new CellConstraints(); JLabel label = new JLabel(AnalysisServiceDisplay .getDisplayString(paramName) + ":"); togglePanel.addToggleComponent(label); tasksLayout.appendRow(new RowSpec("pref")); final JCheckBox promptWhenRunCheckBox = taskDisplay.parameters[i].createPromptWhenRunCheckBox(); promptWhenRunCheckBox.setSelected(model.isPromptWhenRun(taskIndex, i)); togglePanel.addToggleComponent(promptWhenRunCheckBox); tasksPanel.add(promptWhenRunCheckBox, cc.xy(PROMPT_WHEN_RUN_COLUMN, tasksLayout.getRowCount(), CellConstraints.LEFT, CellConstraints.CENTER)); tasksPanel.add(label, cc.xy(INPUT_LABEL_COLUMN, tasksLayout.getRowCount(), CellConstraints.RIGHT, CellConstraints.CENTER)); if (model.isChoiceList(taskIndex, i)) { JComboBox comboBox = new JComboBox(model.getChoices(taskIndex, i)); String value = model.getValue(taskIndex, i); for (int j = 0; j < comboBox.getItemCount(); j++) { if (((ParameterChoice) comboBox.getItemAt(j)) .equalsCmdLineOrUIValue(value)) { comboBox.setSelectedIndex(j); break; } } tasksPanel.add(comboBox, cc.xy(INPUT_FIELD_COLUMN, tasksLayout.getRowCount(), CellConstraints.LEFT, CellConstraints.BOTTOM)); togglePanel.addToggleComponent(comboBox); taskDisplay.parameters[i].inputField = comboBox; } else if (model.isInputFile(taskIndex, i)) { final JTextField inputComponent = new JTextField(20); taskDisplay.parameters[i].inputField = inputComponent; JPanel inputPanel = new JPanel(); inputPanel.setOpaque(false); inputPanel.setBackground(getBackground()); FormLayout inputPanelLayout = new FormLayout( "left:pref:none, left:pref:none, left:pref:none, left:pref:none, left:default:none", "pref"); // input field, browse, task drop down, // output file drop down, checkbox inputPanel.setLayout(inputPanelLayout); final JButton browseBtn = new JButton("Browse..."); taskDisplay.parameters[i].browseBtn = browseBtn; browseBtn.setOpaque(false); browseBtn.setBackground(getBackground()); browseBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { File f = GUIUtil.showOpenDialog(); if (f != null) { inputComponent.setText(f.getPath()); } } }); final JCheckBox usePreviousOutput = taskDisplay.parameters[i].createUseOutputFromPreviousTaskCheckBox(); usePreviousOutput.setOpaque(false); usePreviousOutput.setBackground(getBackground()); inputPanel.add(inputComponent, cc.xy(1, 1)); inputPanel.add(browseBtn, cc.xy(2, 1)); inputPanel.add(usePreviousOutput, cc.xy(5, 1)); togglePanel.addToggleComponent(inputPanel); tasksPanel.add(inputPanel, cc.xy(INPUT_FIELD_COLUMN, tasksLayout.getRowCount(), CellConstraints.LEFT, CellConstraints.BOTTOM)); Vector previousTaskNames = new Vector(); previousTaskNames.add("Choose Task"); for (int k = 0; k < taskIndex; k++) { previousTaskNames .add((k + 1) + ". " + model.getTaskName(k)); } final JComboBox tasksComboBox = new JComboBox(previousTaskNames); taskDisplay.parameters[i].inheritedTaskIndex = tasksComboBox; tasksComboBox.setOpaque(false); final JComboBox outputFilesComboBox = new JComboBox(); taskDisplay.parameters[i].inheritedFileName = outputFilesComboBox; outputFilesComboBox.setOpaque(false); inputPanel.add(tasksComboBox, cc.xy(3, 1)); inputPanel.add(outputFilesComboBox, cc.xy(4, 1)); int inheritedTaskIndex = model.getInheritedTaskIndex(taskIndex, i); browseBtn.setVisible(inheritedTaskIndex == -1); inputComponent.setVisible(inheritedTaskIndex == -1); tasksComboBox.setVisible(inheritedTaskIndex != -1); outputFilesComboBox.setVisible(inheritedTaskIndex != -1); usePreviousOutput.setSelected(inheritedTaskIndex != -1); tasksComboBox.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { if (e.getStateChange() != ItemEvent.SELECTED) { return; } String item = (String) tasksComboBox.getSelectedItem(); if (item.equals("Choose Task")) { outputFilesComboBox.removeAllItems(); outputFilesComboBox.setVisible(false); } else { outputFilesComboBox.setVisible(true); outputFilesComboBox.removeAllItems(); List outputFileTypes = model .getOutputFileTypes(taskIndex); for (int i = 0; i < outputFileTypes.size(); i++) { outputFilesComboBox.addItem(outputFileTypes .get(i)); } outputFilesComboBox.addItem("1st output"); outputFilesComboBox.addItem("2nd output"); outputFilesComboBox.addItem("3rd output"); outputFilesComboBox.addItem("4th output"); outputFilesComboBox.addItem("stdout"); outputFilesComboBox.addItem("stderr"); } } }); tasksComboBox.setBackground(getBackground()); outputFilesComboBox.setBackground(getBackground()); if (inheritedTaskIndex != -1) { tasksComboBox.setSelectedItem((inheritedTaskIndex + 1) + ". " + model.getTaskName(inheritedTaskIndex)); outputFilesComboBox.setSelectedItem(model.getInheritedFile( taskIndex, i)); } else { inputComponent.setText(model.getValue(taskIndex, i)); } } else { JTextField inputComponent = new JTextField(20); if(!model.isPromptWhenRun(taskIndex, i)) { inputComponent.setText(model.getValue( taskIndex, i)); } taskDisplay.parameters[i].inputField = inputComponent; tasksPanel.add(inputComponent, cc.xy(INPUT_FIELD_COLUMN, tasksLayout .getRowCount(), CellConstraints.LEFT, CellConstraints.BOTTOM)); togglePanel.addToggleComponent(inputComponent); } } int endParameterRow = tasksLayout.getRowCount(); int[] group = new int[endParameterRow - startParameterRow + 1]; for (int i = startParameterRow, index = 0; i <= endParameterRow; i++, index++) { group[index] = i; } int[][] rowGroups = tasksLayout.getRowGroups(); int[][] newRowGroups = new int[rowGroups.length + 1][]; for (int i = 0; i < rowGroups.length; i++) { newRowGroups[i] = rowGroups[i]; } newRowGroups[newRowGroups.length - 1] = group; tasksLayout.setRowGroups(newRowGroups); }
|
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/65929880dfe7c025061a91f9f3f95535035b96a2/PipelineComponent.java/buggy/clients/JavaGE/src/org/genepattern/gpge/ui/tasks/pipeline/PipelineComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
1289,
2174,
2402,
12,
6385,
474,
4146,
1016,
16,
1114,
5537,
14401,
5537,
15329,
202,
202,
12062,
2174,
4146,
4236,
33,
2704,
12062,
2174,
12,
14401,
5537,
16,
2284,
18,
588,
1662,
1380,
12,
4146,
1016,
10019,
202,
202,
4146,
4236,
682,
18,
1289,
12,
4146,
4236,
1769,
202,
202,
474,
1937,
1662,
1999,
33,
9416,
3744,
18,
588,
26359,
1435,
15,
21,
31,
202,
202,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
2284,
18,
588,
1662,
1380,
12,
4146,
1016,
1769,
77,
27245,
95,
1082,
202,
780,
891,
461,
33,
2284,
18,
588,
24586,
12,
4146,
1016,
16,
77,
1769,
1082,
202,
4020,
4878,
952,
33,
2704,
4020,
4878,
5621,
1082,
202,
46,
2224,
1925,
33,
2704,
46,
2224,
12,
9418,
1179,
4236,
6862,
202,
18,
588,
4236,
780,
12,
891,
461,
13,
6862,
202,
9078,
2773,
1769,
1082,
202,
14401,
5537,
18,
1289,
17986,
1841,
12,
1925,
1769,
1082,
202,
9416,
3744,
18,
6923,
1999,
12,
2704,
1999,
1990,
2932,
25724,
7923,
1769,
25083,
202,
6385,
46,
19174,
13325,
9434,
1997,
19174,
33,
4146,
4236,
18,
3977,
63,
77,
8009,
2640,
15967,
9434,
1997,
19174,
5621,
25083,
202,
13325,
9434,
1997,
19174,
18,
542,
7416,
12,
2284,
18,
291,
15967,
9434,
1997,
12,
4146,
1016,
16,
77,
10019,
25083,
202,
14401,
5537,
18,
1289,
17986,
1841,
12,
13325,
9434,
1997,
19174,
1769,
25083,
202,
9416,
5537,
18,
1289,
12,
13325,
9434,
1997,
19174,
16,
952,
18,
1698,
12,
3373,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
1289,
2174,
2402,
12,
6385,
474,
4146,
1016,
16,
1114,
5537,
14401,
5537,
15329,
202,
202,
12062,
2174,
4146,
4236,
33,
2704,
12062,
2174,
12,
14401,
5537,
16,
2284,
18,
588,
1662,
1380,
12,
4146,
1016,
10019,
202,
202,
4146,
4236,
682,
18,
1289,
12,
4146,
4236,
1769,
202,
202,
474,
1937,
1662,
1999,
33,
9416,
3744,
18,
588,
26359,
1435,
15,
21,
31,
202,
202,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
2284,
18,
588,
1662,
1380,
12,
4146,
1016,
1769,
77,
27245,
95,
1082,
202,
780,
891,
461,
33,
2284,
18,
588,
24586,
12,
4146,
1016,
16,
77,
1769,
1082,
202,
4020,
4878,
952,
33,
2704,
4020,
4878,
5621,
1082,
202,
2
] |
||
protected DomNode getFirstNode (DomNode node) {
|
protected DomNode getFirstNode (final DomNode node) {
|
protected DomNode getFirstNode (DomNode node) { if (node == null) { return null; } else { DomNode sibling = node.getPreviousSibling(); if (sibling == null) { return getFirstNode(node.getParentNode()); } else { return sibling; } } }
|
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/bfbb9e2a2e54bf7040308f5f0b4fd744c80370c8/Util.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/Util.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
4750,
12965,
907,
7521,
907,
261,
6385,
12965,
907,
756,
13,
288,
7734,
309,
261,
2159,
422,
446,
13,
288,
10792,
327,
446,
31,
7734,
289,
7734,
469,
288,
10792,
12965,
907,
10841,
273,
756,
18,
588,
8351,
10291,
5621,
10792,
309,
261,
22734,
422,
446,
13,
288,
13491,
327,
7521,
907,
12,
2159,
18,
588,
3054,
907,
10663,
10792,
289,
10792,
469,
288,
13491,
327,
10841,
31,
10792,
289,
7734,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
12965,
907,
7521,
907,
261,
6385,
12965,
907,
756,
13,
288,
7734,
309,
261,
2159,
422,
446,
13,
288,
10792,
327,
446,
31,
7734,
289,
7734,
469,
288,
10792,
12965,
907,
10841,
273,
756,
18,
588,
8351,
10291,
5621,
10792,
309,
261,
22734,
422,
446,
13,
288,
13491,
327,
7521,
907,
12,
2159,
18,
588,
3054,
907,
10663,
10792,
289,
10792,
469,
288,
13491,
327,
10841,
31,
10792,
289,
7734,
289,
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
] |
levelInfo = (PCLevelInfo) bugbear.getLevelInfo().get(2);
|
levelInfo = bugbear.getLevelInfo().get(2);
|
public void testMonsterSkillPoints() { SettingsHandler.setMonsterDefault(false); // Create a medium bugbear first level PlayerCharacter bugbear = new PlayerCharacter(); bugbear.setRace(bugbearRace); setPCStat(bugbear, "INT", 12); // Test skills granted for each level bugbear.incrementClassLevel(1, humanoidClass); PCLevelInfo levelInfo = (PCLevelInfo) bugbear.getLevelInfo().get(0); assertEquals("First level of bugbear", 7, levelInfo.getSkillPointsGained()); bugbear.incrementClassLevel(1, humanoidClass); levelInfo = (PCLevelInfo) bugbear.getLevelInfo().get(1); assertEquals("2nd level of bugbear", 1, levelInfo.getSkillPointsGained()); bugbear.incrementClassLevel(1, humanoidClass); levelInfo = (PCLevelInfo) bugbear.getLevelInfo().get(2); assertEquals("3rd level of bugbear", 1, levelInfo.getSkillPointsGained()); // Craete a huge bugbear first level bugbear = new PlayerCharacter(); bugbear.setRace(bigBugbearRace); assertEquals("big bugbear", "L", bugbear.getSize()); setPCStat(bugbear, "INT", 10); bugbear.incrementClassLevel(1, humanoidClass); // Test skills granted for each level levelInfo = (PCLevelInfo) bugbear.getLevelInfo().get(0); assertEquals("First level of big bugbear", 6, levelInfo.getSkillPointsGained()); bugbear.incrementClassLevel(1, humanoidClass); levelInfo = (PCLevelInfo) bugbear.getLevelInfo().get(1); assertEquals("2nd level of big bugbear", 0, levelInfo.getSkillPointsGained()); bugbear.incrementClassLevel(1, humanoidClass); levelInfo = (PCLevelInfo) bugbear.getLevelInfo().get(2); assertEquals("3rd level of big bugbear", 1, levelInfo.getSkillPointsGained()); // Create a nymph - first level PlayerCharacter nymph = new PlayerCharacter(); nymph.setRace(nymphRace); assertEquals("nymph", "M", nymph.getSize()); setPCStat(nymph, "INT", 10); nymph.incrementClassLevel(1, nymphClass); // Test skills granted for each level levelInfo = (PCLevelInfo) nymph.getLevelInfo().get(0); assertEquals("First level of nymph", 24, levelInfo.getSkillPointsGained()); nymph.incrementClassLevel(1, nymphClass); levelInfo = (PCLevelInfo) nymph.getLevelInfo().get(1); assertEquals("2nd level of nymph", 6, levelInfo.getSkillPointsGained()); }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/db38bf4103268a1975ea1edee7d73765408c0a48/PCClassTest.java/buggy/code/src/test/pcgen/core/PCClassTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11415,
8190,
9030,
5636,
1435,
202,
95,
202,
202,
2628,
1503,
18,
542,
11415,
8190,
1868,
12,
5743,
1769,
202,
202,
759,
1788,
279,
16212,
7934,
29400,
1122,
1801,
202,
202,
12148,
7069,
7934,
29400,
273,
394,
19185,
7069,
5621,
202,
202,
925,
29400,
18,
542,
54,
623,
12,
925,
29400,
54,
623,
1769,
202,
202,
542,
3513,
5000,
12,
925,
29400,
16,
315,
3217,
3113,
2593,
1769,
202,
202,
759,
7766,
15667,
87,
17578,
364,
1517,
1801,
202,
202,
925,
29400,
18,
15016,
797,
2355,
12,
21,
16,
8672,
839,
797,
1769,
202,
202,
3513,
2355,
966,
1801,
966,
273,
261,
3513,
2355,
966,
13,
7934,
29400,
18,
588,
2355,
966,
7675,
588,
12,
20,
1769,
202,
202,
11231,
8867,
2932,
3759,
1801,
434,
7934,
29400,
3113,
2371,
16,
1801,
966,
18,
588,
9030,
5636,
43,
8707,
10663,
202,
202,
925,
29400,
18,
15016,
797,
2355,
12,
21,
16,
8672,
839,
797,
1769,
202,
202,
2815,
966,
273,
261,
3513,
2355,
966,
13,
7934,
29400,
18,
588,
2355,
966,
7675,
588,
12,
21,
1769,
202,
202,
11231,
8867,
2932,
22,
4880,
1801,
434,
7934,
29400,
3113,
404,
16,
1801,
966,
18,
588,
9030,
5636,
43,
8707,
10663,
202,
202,
925,
29400,
18,
15016,
797,
2355,
12,
21,
16,
8672,
839,
797,
1769,
202,
202,
2815,
966,
273,
261,
3513,
2355,
966,
13,
7934,
29400,
18,
588,
2355,
966,
7675,
588,
12,
22,
1769,
202,
202,
11231,
8867,
2932,
23,
13623,
1801,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11415,
8190,
9030,
5636,
1435,
202,
95,
202,
202,
2628,
1503,
18,
542,
11415,
8190,
1868,
12,
5743,
1769,
202,
202,
759,
1788,
279,
16212,
7934,
29400,
1122,
1801,
202,
202,
12148,
7069,
7934,
29400,
273,
394,
19185,
7069,
5621,
202,
202,
925,
29400,
18,
542,
54,
623,
12,
925,
29400,
54,
623,
1769,
202,
202,
542,
3513,
5000,
12,
925,
29400,
16,
315,
3217,
3113,
2593,
1769,
202,
202,
759,
7766,
15667,
87,
17578,
364,
1517,
1801,
202,
202,
925,
29400,
18,
15016,
797,
2355,
12,
21,
16,
8672,
839,
797,
1769,
202,
202,
3513,
2355,
966,
1801,
966,
273,
261,
3513,
2355,
966,
13,
7934,
29400,
18,
588,
2355,
966,
7675,
588,
2
] |
super(jq_ClassFileConstants.jbc_DUP_X1); }
|
super(jq_ClassFileConstants.jbc_DUP_X1); }
|
public DUP_X1() { super(jq_ClassFileConstants.jbc_DUP_X1); }
|
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/d7c792e0a316dd3ac20a9fe9f758abdde9bd79fe/Bytecodes.java/buggy/joeq_core/joeq/Compiler/BytecodeAnalysis/Bytecodes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
24559,
67,
60,
21,
1435,
288,
5411,
2240,
12,
78,
85,
67,
797,
812,
2918,
18,
10649,
71,
67,
30387,
67,
60,
21,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
1071,
24559,
67,
60,
21,
1435,
288,
5411,
2240,
12,
78,
85,
67,
797,
812,
2918,
18,
10649,
71,
67,
30387,
67,
60,
21,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( end == l ) value = args.substring( start ); else value = args.substring( start, end - 1 );
|
if (end == l) value = args.substring(start); else value = args.substring(start, end - 1);
|
protected HashMap processParameters( String args ) { HttpServer.LOG.debug( args ); HashMap parameters = new HashMap( ); String param; String value; int start = 0; int end = 0; int l = args.length( ); while ( ( start < l ) && ( end < l ) ) { while ( ( end < l ) && ( args.charAt( end++ ) != '=' ) ) ; if ( end == l ) break; param = args.substring( start, end - 1 ); start = end; while ( ( end < l ) && ( args.charAt( end++ ) != '&' ) ) ; if ( end == l ) value = args.substring( start ); else value = args.substring( start, end - 1 ); start = end; param = URLDecoder.decode( param ); value = URLDecoder.decode( value ); HttpServer.LOG.debug( "parameter: " + param + " = " + value ); parameters.put( param, value ); } return parameters; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/HttpServerConnection.java/buggy/src/org/exist/http/HttpServerConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4317,
1207,
2402,
12,
514,
833,
262,
288,
3639,
31500,
18,
4842,
18,
4148,
12,
833,
11272,
3639,
4317,
1472,
273,
394,
4317,
12,
225,
11272,
3639,
514,
579,
31,
3639,
514,
460,
31,
3639,
509,
787,
273,
374,
31,
3639,
509,
679,
273,
374,
31,
3639,
509,
328,
273,
833,
18,
2469,
12,
225,
11272,
3639,
1323,
261,
261,
787,
411,
328,
262,
597,
261,
679,
411,
328,
262,
262,
288,
5411,
1323,
261,
261,
679,
411,
328,
262,
597,
261,
833,
18,
3001,
861,
12,
679,
9904,
262,
480,
5214,
262,
262,
7734,
274,
5411,
309,
261,
679,
422,
328,
262,
7734,
898,
31,
5411,
579,
273,
833,
18,
28023,
12,
787,
16,
679,
300,
404,
11272,
5411,
787,
273,
679,
31,
5411,
1323,
261,
261,
679,
411,
328,
262,
597,
261,
833,
18,
3001,
861,
12,
679,
9904,
262,
480,
9824,
262,
262,
7734,
274,
5411,
309,
261,
679,
422,
328,
262,
7734,
460,
273,
833,
18,
28023,
12,
787,
11272,
5411,
469,
7734,
460,
273,
833,
18,
28023,
12,
787,
16,
679,
300,
404,
11272,
5411,
787,
273,
679,
31,
5411,
579,
273,
1976,
7975,
18,
3922,
12,
579,
11272,
5411,
460,
273,
1976,
7975,
18,
3922,
12,
460,
11272,
13491,
31500,
18,
4842,
18,
4148,
12,
315,
6775,
30,
315,
397,
579,
397,
315,
273,
315,
397,
460,
11272,
5411,
1472,
18,
458,
12,
579,
16,
460,
11272,
3639,
289,
3639,
327,
1472,
31,
565,
289,
2,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4317,
1207,
2402,
12,
514,
833,
262,
288,
3639,
31500,
18,
4842,
18,
4148,
12,
833,
11272,
3639,
4317,
1472,
273,
394,
4317,
12,
225,
11272,
3639,
514,
579,
31,
3639,
514,
460,
31,
3639,
509,
787,
273,
374,
31,
3639,
509,
679,
273,
374,
31,
3639,
509,
328,
273,
833,
18,
2469,
12,
225,
11272,
3639,
1323,
261,
261,
787,
411,
328,
262,
597,
261,
679,
411,
328,
262,
262,
288,
5411,
1323,
261,
261,
679,
411,
328,
262,
597,
261,
833,
18,
3001,
861,
12,
679,
9904,
262,
480,
5214,
262,
262,
7734,
274,
5411,
309,
261,
679,
422,
328,
262,
7734,
898,
31,
5411,
579,
273,
833,
18,
28023,
12,
787,
16,
679,
300,
2
] |
popClass();
|
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (ruby_block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(ruby); // PUSH_CLASS(); BLOCK block = ruby_block; Frame frame = block.frame; frame.setPrev(rubyFrame); rubyFrame = frame; VALUE old_cref = ruby_cref; ruby_cref = (NODE)rubyFrame.getCbase(); RubyScope oldScope = ruby.rubyScope; ruby.rubyScope = block.scope; ruby_block = block.prev; if ((block.flags & BLOCK_D_SCOPE) != 0) { dynamicVars = new RubyVarmap(null, null, block.dyna_vars); } else { dynamicVars = block.dyna_vars; } ruby_class = (klass != null) ? klass : block.klass; if (klass == null) { self = (RubyObject)block.self; } NODE node = block.body; if (block.var != null) { // try { if (block.var == NODE.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() != 0) { throw new RubyArgumentException("wrong # of arguments ("+ ((RubyArray)value).length() + " for 0)"); } } else { if (block.var.nd_type() == NODE_MASGN) { massign(self, block.var, value, acheck); } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } assign(self, block.var, value, acheck); } } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } } rubyIter.push(block.iter); while (true) { try { if (node == null) { result = ruby.getNil(); } else if (node.nd_type() == NODE_CFUNC || node.nd_type() == NODE_IFUNC) { if (value == null) { value = RubyArray.m_newArray(ruby, 0); } result = ((RubyCallbackMethod)node.nd_cfnc()).execute(value, new RubyObject[] {(RubyObject)node.nd_tval(), self}, ruby); } else { result = eval(self, node); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = ruby.getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: rubyIter.pop(); // POP_CLASS(); RubyVarmap.pop(ruby); ruby_block = block; rubyFrame = rubyFrame.getPrev(); ruby_cref = (NODE)old_cref; // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); ruby.rubyScope = oldScope; /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1071,
5120,
797,
5621,
19817,
921,
5120,
797,
5621,
2824,
20,
12,
54,
10340,
921,
5120,
797,
5621,
460,
16,
5120,
797,
5621,
19817,
921,
5120,
797,
5621,
365,
16,
5120,
797,
5621,
19817,
3120,
5120,
797,
5621,
7352,
16,
5120,
797,
5621,
1250,
5120,
797,
5621,
279,
1893,
13,
5120,
797,
5621,
288,
5120,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
19817,
921,
5120,
797,
5621,
563,
5120,
797,
5621,
273,
5120,
797,
5621,
22155,
18,
588,
12616,
5621,
5120,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
309,
5120,
797,
5621,
16051,
12,
291,
1768,
6083,
1435,
5120,
797,
5621,
747,
5120,
797,
5621,
17646,
1768,
6083,
10756,
5120,
797,
5621,
747,
5120,
797,
5621,
261,
27768,
67,
2629,
5120,
797,
5621,
422,
5120,
797,
5621,
446,
3719,
5120,
797,
5621,
288,
5120,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
604,
5120,
797,
5621,
394,
5120,
797,
5621,
3235,
2932,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1071,
5120,
797,
5621,
19817,
921,
5120,
797,
5621,
2824,
20,
12,
54,
10340,
921,
5120,
797,
5621,
460,
16,
5120,
797,
5621,
19817,
921,
5120,
797,
5621,
365,
16,
5120,
797,
5621,
19817,
3120,
5120,
797,
5621,
7352,
16,
5120,
797,
5621,
1250,
5120,
797,
5621,
279,
1893,
13,
5120,
797,
5621,
288,
5120,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
19817,
921,
5120,
797,
5621,
563,
5120,
797,
5621,
273,
5120,
797,
5621,
22155,
18,
588,
12616,
5621,
5120,
797,
5621,
1843,
797,
5621,
1843,
797,
5621,
1843,
797,
2
] |
|
getClasses().putClass(name, newModule, parentModule);
|
parentModule.setConstant(name, newModule);
|
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { RubyModule newModule = RubyModule.newModule(this, name, parentModule); getClasses().putClass(name, newModule, parentModule); return newModule; }
|
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/ca6b16e996ea9af83ce593594b9c69b9364a9924/Ruby.java/buggy/src/org/jruby/Ruby.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4426,
3120,
14655,
12,
780,
508,
16,
19817,
3120,
982,
3120,
13,
288,
3639,
19817,
3120,
394,
3120,
273,
19817,
3120,
18,
2704,
3120,
12,
2211,
16,
508,
16,
982,
3120,
1769,
3639,
982,
3120,
18,
542,
6902,
12,
529,
16,
394,
3120,
1769,
7734,
327,
394,
3120,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4426,
3120,
14655,
12,
780,
508,
16,
19817,
3120,
982,
3120,
13,
288,
3639,
19817,
3120,
394,
3120,
273,
19817,
3120,
18,
2704,
3120,
12,
2211,
16,
508,
16,
982,
3120,
1769,
3639,
982,
3120,
18,
542,
6902,
12,
529,
16,
394,
3120,
1769,
7734,
327,
394,
3120,
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
] |
AST tmp1766_AST_in = (AST)_t;
|
AST tmp1765_AST_in = (AST)_t;
|
public final void select_from_spec(AST _t) throws RecognitionException { AST select_from_spec_AST_in = (_t == ASTNULL) ? null : (AST)_t; select_sqltableref(_t); _t = _retTree; { _loop2442: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFT: { AST __t2435 = _t; AST tmp1750_AST_in = (AST)_t; match(_t,LEFT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OUTER: { AST tmp1751_AST_in = (AST)_t; match(_t,OUTER); _t = _t.getNextSibling(); break; } case JOIN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1752_AST_in = (AST)_t; match(_t,JOIN); _t = _t.getNextSibling(); select_sqltableref(_t); _t = _retTree; AST tmp1753_AST_in = (AST)_t; match(_t,ON); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; _t = __t2435; _t = _t.getNextSibling(); break; } case RIGHT: { AST __t2437 = _t; AST tmp1754_AST_in = (AST)_t; match(_t,RIGHT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OUTER: { AST tmp1755_AST_in = (AST)_t; match(_t,OUTER); _t = _t.getNextSibling(); break; } case JOIN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1756_AST_in = (AST)_t; match(_t,JOIN); _t = _t.getNextSibling(); select_sqltableref(_t); _t = _retTree; AST tmp1757_AST_in = (AST)_t; match(_t,ON); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; _t = __t2437; _t = _t.getNextSibling(); break; } case INNER: { AST __t2439 = _t; AST tmp1758_AST_in = (AST)_t; match(_t,INNER); _t = _t.getFirstChild(); AST tmp1759_AST_in = (AST)_t; match(_t,JOIN); _t = _t.getNextSibling(); select_sqltableref(_t); _t = _retTree; AST tmp1760_AST_in = (AST)_t; match(_t,ON); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; _t = __t2439; _t = _t.getNextSibling(); break; } case OUTER: { AST __t2440 = _t; AST tmp1761_AST_in = (AST)_t; match(_t,OUTER); _t = _t.getFirstChild(); AST tmp1762_AST_in = (AST)_t; match(_t,JOIN); _t = _t.getNextSibling(); select_sqltableref(_t); _t = _retTree; AST tmp1763_AST_in = (AST)_t; match(_t,ON); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; _t = __t2440; _t = _t.getNextSibling(); break; } case JOIN: { AST __t2441 = _t; AST tmp1764_AST_in = (AST)_t; match(_t,JOIN); _t = _t.getFirstChild(); select_sqltableref(_t); _t = _retTree; AST tmp1765_AST_in = (AST)_t; match(_t,ON); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; _t = __t2441; _t = _t.getNextSibling(); break; } default: { break _loop2442; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WHERE: { AST __t2444 = _t; AST tmp1766_AST_in = (AST)_t; match(_t,WHERE); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; _t = __t2444; _t = _t.getNextSibling(); break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2027,
67,
2080,
67,
2793,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2027,
67,
2080,
67,
2793,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
4025,
67,
4669,
7032,
749,
10241,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
3247,
9452,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
9686,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
3247,
4763,
273,
389,
88,
31,
9506,
202,
9053,
1853,
4033,
3361,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
10066,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
9506,
202,
95,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
9506,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
9506,
202,
3593,
28759,
30,
9506,
202,
95,
6862,
202,
9053,
1853,
4033,
10593,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
1916,
24899,
88,
16,
5069,
654,
1769,
6862,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2027,
67,
2080,
67,
2793,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2027,
67,
2080,
67,
2793,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
4025,
67,
4669,
7032,
749,
10241,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
3247,
9452,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
9686,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
2
] |
public Splash() { super(); ImageIcon image = new ImageIcon(getClass().getResource("images/GrendelSplash.jpg")); JLabel splashLabel = new JLabel(image); getContentPane().add(splashLabel); Dimension screensize = Toolkit.getDefaultToolkit().getScreenSize(); setLocation(screensize.width/2 - 150, screensize.height/2 - 150); pack(); validate(); setVisible(true); }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/Splash.java/buggy/grendel/sources/grendel/ui/Splash.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
29356,
1435,
288,
565,
2240,
5621,
565,
3421,
5554,
1316,
273,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
43,
1187,
3771,
16881,
961,
18,
14362,
7923,
1769,
565,
21403,
6121,
961,
2224,
273,
394,
21403,
12,
2730,
1769,
565,
5154,
8485,
7675,
1289,
12,
13106,
961,
2224,
1769,
3639,
13037,
888,
266,
773,
554,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
7956,
1225,
5621,
565,
21751,
12,
1017,
266,
773,
554,
18,
2819,
19,
22,
300,
18478,
16,
888,
266,
773,
554,
18,
4210,
19,
22,
300,
18478,
1769,
565,
2298,
5621,
565,
1954,
5621,
565,
16697,
12,
3767,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
29356,
1435,
288,
565,
2240,
5621,
565,
3421,
5554,
1316,
273,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
43,
1187,
3771,
16881,
961,
18,
14362,
7923,
1769,
565,
21403,
6121,
961,
2224,
273,
394,
21403,
12,
2730,
1769,
565,
5154,
8485,
7675,
1289,
12,
13106,
961,
2224,
1769,
3639,
13037,
888,
266,
773,
554,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
7956,
1225,
5621,
565,
21751,
12,
1017,
266,
773,
554,
18,
2819,
19,
22,
300,
18478,
16,
888,
266,
773,
554,
18,
4210,
19,
22,
300,
18478,
1769,
565,
2298,
5621,
565,
1954,
5621,
565,
16697,
12,
3767,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
|
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
1770,
12,
82,
74,
16,
4766,
1377,
3742,
16,
4766,
1377,
949,
12,
588,
3910,
6952,
9334,
16609,
6952,
1435,
3631,
4766,
1377,
21036,
16,
4766,
1377,
10971,
10019,
10792,
898,
31,
5411,
289,
5397,
368,
5411,
368,
6781,
576,
30,
225,
7508,
461,
493,
33,
7508,
461,
263,
1068,
548,
5411,
368,
5411,
648,
576,
30,
288,
7734,
368,
7,
1369,
2872,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
2
] |
||
static java.lang.Object create_string_primitive(java.lang.String s) {
|
static java.lang.Object create_string_primitive(java.lang.Object s) {
|
static java.lang.Object create_string_primitive(java.lang.String s) { return s; }
|
11597 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11597/3782a05d6060577c74da6f3ba52480037d828396/PrimitiveHandler.java/clean/trunk/src/cyboi/cyboi/PrimitiveHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
2252,
18,
4936,
18,
921,
752,
67,
1080,
67,
683,
5025,
12,
6290,
18,
4936,
18,
921,
272,
13,
288,
3639,
327,
272,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
2252,
18,
4936,
18,
921,
752,
67,
1080,
67,
683,
5025,
12,
6290,
18,
4936,
18,
921,
272,
13,
288,
3639,
327,
272,
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
] |
private ValidationError errMsg(ValidationError validationError) {
|
private IStatus errMsg(IStatus validationStatus) {
|
private ValidationError errMsg(ValidationError validationError) { partialValidationErrorObservable.setValue(null); validationErrorObservable.setValue(validationError); return validationError; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/646de6c1228ca0820a97e225df84d75e3993e272/ListBinding.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/ListBinding.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
13167,
12412,
12,
12101,
3379,
668,
13,
288,
202,
202,
11601,
12101,
15279,
18,
542,
620,
12,
2011,
1769,
202,
202,
8685,
668,
15279,
18,
542,
620,
12,
8685,
668,
1769,
202,
202,
2463,
3379,
668,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
13167,
12412,
12,
12101,
3379,
668,
13,
288,
202,
202,
11601,
12101,
15279,
18,
542,
620,
12,
2011,
1769,
202,
202,
8685,
668,
15279,
18,
542,
620,
12,
8685,
668,
1769,
202,
202,
2463,
3379,
668,
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
] |
profiles.cloneEndEntityProfile(originalname, newname);
|
profiles.cloneEndEntityProfile(originalname, newname);
|
public void cloneEndEntityProfile(String originalname, String newname) throws Exception{ profiles.cloneEndEntityProfile(originalname, newname); }
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/80860f70169904d74e6733f3ac0793043d1e6f36/RAInterfaceBean.java/buggy/src/java/se/anatom/ejbca/webdist/rainterface/RAInterfaceBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3236,
1638,
1943,
4029,
12,
780,
2282,
529,
16,
514,
26722,
13,
1216,
1185,
95,
3639,
11788,
18,
14056,
1638,
1943,
4029,
12,
8830,
529,
16,
26722,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3236,
1638,
1943,
4029,
12,
780,
2282,
529,
16,
514,
26722,
13,
1216,
1185,
95,
3639,
11788,
18,
14056,
1638,
1943,
4029,
12,
8830,
529,
16,
26722,
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
] |
areFieldsSet = isSet[ERA] = isSet[YEAR] = isSet[MONTH] = isSet[WEEK_OF_YEAR] = isSet[WEEK_OF_MONTH] = isSet[DAY_OF_MONTH] = isSet[DAY_OF_YEAR] = isSet[DAY_OF_WEEK] = isSet[DAY_OF_WEEK_IN_MONTH] = isSet[AM_PM] = isSet[HOUR] = isSet[HOUR_OF_DAY] = isSet[MINUTE] = isSet[SECOND] = isSet[MILLISECOND] = isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true;
|
areFieldsSet = isSet[ERA] = isSet[YEAR] = isSet[MONTH] = isSet[WEEK_OF_YEAR] = isSet[WEEK_OF_MONTH] = isSet[DAY_OF_MONTH] = isSet[DAY_OF_YEAR] = isSet[DAY_OF_WEEK] = isSet[DAY_OF_WEEK_IN_MONTH] = isSet[AM_PM] = isSet[HOUR] = isSet[HOUR_OF_DAY] = isSet[MINUTE] = isSet[SECOND] = isSet[MILLISECOND] = isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true;
|
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 60 * 60 * 1000L)); if (millisInDay < 0) { millisInDay += (24 * 60 * 60 * 1000); day--; } calculateDay(day, gregorian); fields[DST_OFFSET] = zone.getOffset(fields[ERA], fields[YEAR], fields[MONTH], fields[DAY_OF_MONTH], fields[DAY_OF_WEEK], millisInDay) - fields[ZONE_OFFSET]; millisInDay += fields[DST_OFFSET]; if (millisInDay >= 24 * 60 * 60 * 1000) { millisInDay -= 24 * 60 * 60 * 1000; calculateDay(++day, gregorian); } fields[DAY_OF_WEEK_IN_MONTH] = (fields[DAY_OF_MONTH] + 6) / 7; // which day of the week are we (0..6), relative to getFirstDayOfWeek int relativeWeekday = (7 + fields[DAY_OF_WEEK] - getFirstDayOfWeek()) % 7; fields[WEEK_OF_MONTH] = (fields[DAY_OF_MONTH] - relativeWeekday + 6) / 7; int weekOfYear = (fields[DAY_OF_YEAR] - relativeWeekday + 6) / 7; // Do the Correction: getMinimalDaysInFirstWeek() is always in the // first week. int minDays = getMinimalDaysInFirstWeek(); int firstWeekday = (7 + getWeekDay(fields[YEAR], minDays) - getFirstDayOfWeek()) % 7; if (minDays - firstWeekday < 1) weekOfYear++; fields[WEEK_OF_YEAR] = weekOfYear; int hourOfDay = millisInDay / (60 * 60 * 1000); fields[AM_PM] = (hourOfDay < 12) ? AM : PM; int hour = hourOfDay % 12; fields[HOUR] = (hour == 0) ? 12 : hour; fields[HOUR_OF_DAY] = hourOfDay; millisInDay %= (60 * 60 * 1000); fields[MINUTE] = millisInDay / (60 * 1000); millisInDay %= (60 * 1000); fields[SECOND] = millisInDay / (1000); fields[MILLISECOND] = millisInDay % 1000; areFieldsSet = isSet[ERA] = isSet[YEAR] = isSet[MONTH] = isSet[WEEK_OF_YEAR] = isSet[WEEK_OF_MONTH] = isSet[DAY_OF_MONTH] = isSet[DAY_OF_YEAR] = isSet[DAY_OF_WEEK] = isSet[DAY_OF_WEEK_IN_MONTH] = isSet[AM_PM] = isSet[HOUR] = isSet[HOUR_OF_DAY] = isSet[MINUTE] = isSet[SECOND] = isSet[MILLISECOND] = isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/GregorianCalendar.java/buggy/core/src/classpath/java/java/util/GregorianCalendar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3852,
918,
3671,
2314,
1435,
288,
202,
202,
6494,
314,
14510,
273,
261,
957,
1545,
314,
14510,
15812,
1643,
1769,
202,
202,
16760,
4157,
273,
28556,
5621,
202,
202,
2821,
63,
20725,
67,
11271,
65,
273,
4157,
18,
588,
4809,
2335,
5621,
202,
202,
5748,
1191,
950,
273,
813,
397,
1466,
63,
20725,
67,
11271,
15533,
202,
202,
474,
2548,
273,
261,
474,
13,
261,
3729,
950,
342,
261,
3247,
380,
4752,
380,
4752,
380,
4336,
48,
10019,
202,
202,
474,
14833,
382,
4245,
273,
261,
474,
13,
261,
3729,
950,
738,
261,
3247,
380,
4752,
380,
4752,
380,
4336,
48,
10019,
202,
202,
430,
261,
81,
3503,
382,
4245,
411,
374,
13,
288,
1082,
202,
81,
3503,
382,
4245,
1011,
261,
3247,
380,
4752,
380,
4752,
380,
4336,
1769,
1082,
202,
2881,
413,
31,
202,
202,
97,
202,
202,
11162,
4245,
12,
2881,
16,
314,
14510,
1769,
202,
202,
2821,
63,
40,
882,
67,
11271,
65,
273,
4157,
18,
588,
2335,
12,
2821,
63,
654,
37,
6487,
1466,
63,
15137,
6487,
1466,
63,
13942,
6487,
1466,
63,
10339,
67,
3932,
67,
13942,
6487,
1466,
63,
10339,
67,
3932,
67,
20274,
6487,
14833,
382,
4245,
13,
300,
1466,
63,
20725,
67,
11271,
15533,
202,
202,
81,
3503,
382,
4245,
1011,
1466,
63,
40,
882,
67,
11271,
15533,
202,
202,
430,
261,
81,
3503,
382,
4245,
1545,
4248,
380,
4752,
380,
4752,
380,
4336,
13,
288,
1082,
202,
81,
3503,
382,
4245,
3947,
4248,
380,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3852,
918,
3671,
2314,
1435,
288,
202,
202,
6494,
314,
14510,
273,
261,
957,
1545,
314,
14510,
15812,
1643,
1769,
202,
202,
16760,
4157,
273,
28556,
5621,
202,
202,
2821,
63,
20725,
67,
11271,
65,
273,
4157,
18,
588,
4809,
2335,
5621,
202,
202,
5748,
1191,
950,
273,
813,
397,
1466,
63,
20725,
67,
11271,
15533,
202,
202,
474,
2548,
273,
261,
474,
13,
261,
3729,
950,
342,
261,
3247,
380,
4752,
380,
4752,
380,
4336,
48,
10019,
202,
202,
474,
14833,
382,
4245,
273,
261,
474,
13,
261,
3729,
950,
738,
261,
3247,
380,
4752,
380,
4752,
380,
4336,
48,
10019,
202,
202,
430,
261,
81,
3503,
382,
4245,
411,
374,
13,
288,
1082,
202,
2
] |
run("./LiteralTest.x10","LiteralTest","./Misc"); }
|
runHelper(); }
|
public void test_Misc_LiteralTest() { run("./LiteralTest.x10","LiteralTest","./Misc"); }
|
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/3bd1027a0e8a0edbdacb19b952cc4296d36760df/TestCompiler.java/clean/x10.test/src/polyglot/ext/x10/tests/TestCompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
11729,
71,
67,
6177,
4709,
1435,
288,
3639,
1086,
2932,
18,
19,
6177,
4709,
18,
92,
2163,
15937,
6177,
4709,
3113,
9654,
19,
11729,
71,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
11729,
71,
67,
6177,
4709,
1435,
288,
3639,
1086,
2932,
18,
19,
6177,
4709,
18,
92,
2163,
15937,
6177,
4709,
3113,
9654,
19,
11729,
71,
8863,
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
] |
disabledFilterAction = new Action() {
|
hideExtDisabledFilterAction = new Action() {
|
private void makeActions() { clipboard = new Clipboard(treeViewer.getTree().getDisplay()); openAction = new Action() { public void run() { handleDoubleClick(); } }; openAction.setText(PDEUIMessages.PluginsView_open); openDependenciesAction = new OpenDependenciesAction(); openDependenciesAction.init(PDEPlugin.getActiveWorkbenchWindow()); openDependenciesAdapter = new Action() { public void run() { ModelEntry entry = getEnclosingEntry(); IPluginModelBase model = entry.getActiveModel(); openDependenciesAction.selectionChanged( this, new StructuredSelection(model)); openDependenciesAction.run(this); } }; openDependenciesAdapter.setText(PDEUIMessages.PluginsView_openDependencies); importBinaryAction = new Action() { public void run() { handleImport(false); } }; importBinaryAction.setText(PDEUIMessages.PluginsView_asBinaryProject); importSourceAction = new Action() { public void run() { handleImport(true); } }; importSourceAction.setText(PDEUIMessages.PluginsView_asSourceProject); disabledFilterAction = new Action() { public void run() { boolean checked = disabledFilterAction.isChecked(); if (checked) treeViewer.removeFilter(disabledFilter); else treeViewer.addFilter(disabledFilter); getSettings().put("disabledFilter", !checked); //$NON-NLS-1$ } }; disabledFilterAction.setText(PDEUIMessages.PluginsView_showDisabled); disabledFilterAction.setChecked(false); workspaceFilterAction = new Action() { public void run() { boolean checked = workspaceFilterAction.isChecked(); if (checked) treeViewer.removeFilter(workspaceFilter); else treeViewer.addFilter(workspaceFilter); getSettings().put("workspaceFilter", !checked); //$NON-NLS-1$ } }; workspaceFilterAction.setText(PDEUIMessages.PluginsView_showWorkspace); workspaceFilterAction.setChecked(true); openTextEditorAction = new Action() { public void run() { handleOpenTextEditor(getSelectedFile(), null); } }; openTextEditorAction.setText(PDEUIMessages.PluginsView_textEditor); openTextEditorAction.setImageDescriptor( PlatformUI.getWorkbench().getSharedImages().getImageDescriptor( ISharedImages.IMG_OBJ_FILE)); openSystemEditorAction = new Action() { public void run() { handleOpenSystemEditor(getSelectedFile()); } }; openSystemEditorAction.setText(PDEUIMessages.PluginsView_systemEditor); openManifestAction = new Action() { public void run() { handleOpenManifestEditor(getSelectedFile()); } }; openManifestAction.setText(PDEUIMessages.PluginsView_manifestEditor); openSchemaAction = new Action() { public void run() { handleOpenSchemaEditor(getSelectedFile()); } }; openSchemaAction.setText(PDEUIMessages.PluginsView_schemaEditor); copyAction = new CopyToClipboardAction(clipboard); copyAction.setText(PDEUIMessages.PluginsView_copy); selectDependentAction = new Action() { public void run() { handleSelectDependent(); } }; selectDependentAction.setText(PDEUIMessages.PluginsView_dependentPlugins); selectInJavaSearchAction = new Action() { public void run() { handleSelectInJavaSearch(); } }; selectInJavaSearchAction.setText(PDEUIMessages.PluginsView_pluginsInJavaSearch); selectAllAction = new Action() { public void run() { super.run(); treeViewer.getTree().selectAll(); } }; selectAllAction.setText(PDEUIMessages.PluginsView_SelectAllAction_label); addToJavaSearchAction = new Action() { public void run() { handleJavaSearch(true); } }; addToJavaSearchAction.setText(PDEUIMessages.PluginsView_addToJavaSearch); removeFromJavaSearchAction = new Action() { public void run() { handleJavaSearch(false); } }; removeFromJavaSearchAction.setText(PDEUIMessages.PluginsView_removeFromJavaSearch); showInNavigatorAction = new ShowInWorkspaceAction(IPageLayout.ID_RES_NAV, treeViewer); showInNavigatorAction.setText(PDEUIMessages.PluginsView_showInNavigator); showInPackagesAction = new ShowInWorkspaceAction(JavaUI.ID_PACKAGES, treeViewer); showInPackagesAction.setText(PDEUIMessages.PluginsView_showInPackageExplorer); collapseAllAction = new CollapseAllAction(); openClassFileAction = new OpenAction(getViewSite()); }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/ce5666c21b80a887680bcd38f67bb34f549505ad/PluginsView.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/view/PluginsView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1221,
6100,
1435,
288,
202,
202,
14161,
3752,
273,
394,
385,
3169,
3752,
12,
3413,
18415,
18,
588,
2471,
7675,
588,
4236,
10663,
202,
202,
3190,
1803,
273,
394,
4382,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
4110,
5265,
6563,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
3190,
1803,
18,
542,
1528,
12,
52,
1639,
57,
3445,
1753,
18,
9461,
1767,
67,
3190,
1769,
3196,
202,
3190,
8053,
1803,
273,
394,
3502,
8053,
1803,
5621,
202,
202,
3190,
8053,
1803,
18,
2738,
12,
52,
1639,
3773,
18,
588,
3896,
2421,
22144,
3829,
10663,
202,
202,
3190,
8053,
4216,
273,
394,
4382,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
1488,
1622,
1241,
273,
336,
21594,
1622,
5621,
9506,
202,
45,
3773,
1488,
2171,
938,
273,
1241,
18,
588,
3896,
1488,
5621,
9506,
202,
3190,
8053,
1803,
18,
10705,
5033,
12,
6862,
202,
2211,
16,
6862,
202,
2704,
7362,
2862,
6233,
12,
2284,
10019,
9506,
202,
3190,
8053,
1803,
18,
2681,
12,
2211,
1769,
1082,
202,
97,
202,
202,
20451,
202,
202,
3190,
8053,
4216,
18,
542,
1528,
12,
52,
1639,
57,
3445,
1753,
18,
9461,
1767,
67,
3190,
8053,
1769,
3196,
202,
5666,
5905,
1803,
273,
394,
4382,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
4110,
5010,
12,
5743,
1769,
1082,
202,
97,
202,
202,
20451,
202,
202,
5666,
5905,
1803,
18,
542,
1528,
12,
52,
1639,
57,
3445,
1753,
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,
1221,
6100,
1435,
288,
202,
202,
14161,
3752,
273,
394,
385,
3169,
3752,
12,
3413,
18415,
18,
588,
2471,
7675,
588,
4236,
10663,
202,
202,
3190,
1803,
273,
394,
4382,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
4110,
5265,
6563,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
3190,
1803,
18,
542,
1528,
12,
52,
1639,
57,
3445,
1753,
18,
9461,
1767,
67,
3190,
1769,
3196,
202,
3190,
8053,
1803,
273,
394,
3502,
8053,
1803,
5621,
202,
202,
3190,
8053,
1803,
18,
2738,
12,
52,
1639,
3773,
18,
588,
3896,
2421,
22144,
3829,
10663,
202,
202,
3190,
8053,
4216,
273,
394,
4382,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
2
] |
following.push(FOLLOW_opt_eol_in_constraint1875);
|
following.push(FOLLOW_opt_eol_in_constraint1878);
|
public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token op=null; Token bvc=null; String lc = null; String rvc = null; PatternDescr d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:651:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:651:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol { following.push(FOLLOW_opt_eol_in_constraint1633); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:652:17: (fb= ID opt_eol ':' opt_eol )? int alt48=2; alt48 = dfa48.predict(input); switch (alt48) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:652:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1641); following.push(FOLLOW_opt_eol_in_constraint1643); opt_eol(); following.pop(); match(input,30,FOLLOW_30_in_constraint1645); following.push(FOLLOW_opt_eol_in_constraint1647); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1657); if ( fb != null ) { //System.err.println( "fb: " + fb.getText() ); //System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); //System.err.println( "fbd: " + d ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } following.push(FOLLOW_opt_eol_in_constraint1667); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:665:33: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? int alt50=2; int LA50_0 = input.LA(1); if ( (LA50_0>=40 && LA50_0<=47) ) { alt50=1; } else if ( LA50_0==EOL||LA50_0==15||(LA50_0>=22 && LA50_0<=23) ) { alt50=2; } else { NoViableAltException nvae = new NoViableAltException("665:33: (op= (\'==\'|\'>\'|\'>=\'|\'<\'|\'<=\'|\'!=\'|\'contains\'|\'matches\') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )?", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:665:41: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) { op=(Token)input.LT(1); if ( (input.LA(1)>=40 && input.LA(1)<=47) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1675); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1747); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:675:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt49=4; switch ( input.LA(1) ) { case ID: int LA49_1 = input.LA(2); if ( LA49_1==49 ) { alt49=2; } else if ( LA49_1==EOL||LA49_1==15||(LA49_1>=22 && LA49_1<=23) ) { alt49=1; } else { NoViableAltException nvae = new NoViableAltException("675:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 49, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case 48: alt49=3; break; case 21: alt49=4; break; default: NoViableAltException nvae = new NoViableAltException("675:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 49, 0, input); throw nvae; } switch (alt49) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:675:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1765); d = new BoundVariableDescr( f.getText(), op.getText(), bvc.getText() ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:682:49: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint1790); lc=enum_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc, true ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:689:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1822); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:695:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1842); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; } } break; } following.push(FOLLOW_opt_eol_in_constraint1875); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
1061,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,
3639,
514,
9109,
273,
446,
31,
3639,
514,
436,
4227,
273,
446,
31,
1171,
202,
202,
3234,
16198,
302,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
9222,
21,
30,
4033,
30,
261,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
30951,
7851,
284,
33,
1599,
2153,
67,
30951,
261,
556,
33,
7707,
18920,
16637,
1870,
16637,
34,
2218,
16637,
32,
11,
16637,
32,
2218,
16637,
5,
2218,
16637,
12298,
11,
16637,
8436,
6134,
2153,
67,
30951,
261,
70,
4227,
33,
1599,
571,
9109,
33,
2792,
67,
13364,
571,
9109,
33,
7158,
67,
13364,
571,
436,
4227,
33,
5221,
67,
13364,
262,
7851,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
9222,
21,
30,
4033,
30,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
30951,
7851,
284,
33,
1599,
2153,
67,
30951,
261,
556,
33,
7707,
18920,
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,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
1061,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,
3639,
514,
9109,
273,
446,
31,
3639,
514,
436,
4227,
273,
446,
31,
1171,
202,
202,
3234,
16198,
302,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
9222,
21,
30,
4033,
30,
261,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
30951,
7851,
284,
2
] |
phaseReport.append(destroyEntity(violation, "impossible displacement", false));
|
phaseReport.append(destroyEntity(violation, "impossible displacement", (violation instanceof Mech), (violation instanceof Mech)));
|
private void doEntityDisplacement(Entity entity, Coords src, Coords dest, PilotingRollData roll) { final Hex srcHex = game.board.getHex(src); final Hex destHex = game.board.getHex(dest); final int direction = src.direction(dest); // Handle null hexes. if ( srcHex == null || destHex == null ) { System.err.println( "Can not displace " + entity.getShortName() + " from " + src + " to " + dest + "." ); } int fallElevation = entity.elevationOccupied(srcHex) - entity.elevationOccupied(destHex); Entity violation =Compute.stackingViolation(game, entity.getId(), dest); // can't fall upwards if (fallElevation < 0) { fallElevation = 0; } // if destination is empty, this could be easy... if (violation == null) { if (fallElevation < 2) { // no cliff: move and roll normally phaseReport.append(entity.getDisplayName() ).append( " is displaced into hex " ).append( dest.getBoardNum() ).append( ".\n"); entity.setPosition(dest); if (roll != null) { game.addPSR(roll); } // Update the entity's postion on the client. entityUpdate( entity.getId() ); return; } else { // cliff: fall off it, deal damage, prone immediately phaseReport.append(entity.getDisplayName() ).append( " falls " ).append( fallElevation ).append( " levels into hex " ).append( dest.getBoardNum() ).append( ".\n"); // only given a modifier, so flesh out into a full piloting roll PilotingRollData pilotRoll = Compute.getBasePilotingRoll(game, entity.getId()); if (roll != null) { pilotRoll.append(roll); } doEntityFall(entity, dest, fallElevation, pilotRoll); return; } } // okay, destination occupied. hmmm... System.err.println("server.doEntityDisplacement: destination occupied"); if (fallElevation < 2) { // domino effect: move & displace target phaseReport.append(entity.getDisplayName() ).append( " is displaced into hex " ).append( dest.getBoardNum() ).append( ", violating stacking with " ).append( violation.getDisplayName() ).append( ".\n"); entity.setPosition(dest); if (roll != null) { game.addPSR(roll); } doEntityDisplacement(violation, dest, dest.translated(direction), new PilotingRollData(violation.getId(), 0, "domino effect")); // Update the violating entity's postion on the client. entityUpdate( violation.getId() ); return; } else { // accidental fall from above: havoc! phaseReport.append(entity.getDisplayName() ).append( " falls " ).append( fallElevation ).append( " levels into hex " ).append( dest.getBoardNum() ).append( ", violating stacking with " ).append( violation.getDisplayName() ).append( ".\n"); // determine to-hit number ToHitData toHit = new ToHitData(7, "base"); toHit.append(Compute.getTargetMovementModifier(game, violation.getId())); toHit.append(Compute.getTargetTerrainModifier(game, violation)); // roll dice final int diceRoll = Compute.d6(2); phaseReport.append("Collision occurs on a " ).append( toHit.getValue() ).append( " or greater. Rolls " ).append( diceRoll); if (diceRoll >= toHit.getValue()) { phaseReport.append(", hits!\n"); // deal damage to target int damage = (int)Math.ceil(entity.getWeight() / 10.0); phaseReport.append(violation.getDisplayName() ).append( " takes " ).append( damage ).append( " from the collision."); while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = violation.rollHitLocation(ToHitData.HIT_PUNCH, ToHitData.SIDE_FRONT); phaseReport.append(damageEntity(violation, hit, cluster)); damage -= cluster; } phaseReport.append("\n"); // attacker falls as normal, on his back // only given a modifier, so flesh out into a full piloting roll PilotingRollData pilotRoll = Compute.getBasePilotingRoll(game, entity.getId()); pilotRoll.append(roll); doEntityFall(entity, dest, fallElevation, 3, pilotRoll); // defender pushed away, or destroyed Coords targetDest = Compute.getValidDisplacement(game, violation.getId(), dest, direction); if (targetDest != null) { doEntityDisplacement(violation, dest, targetDest, new PilotingRollData(violation.getId(), 2, "fallen on")); // Update the violating entity's postion on the client. entityUpdate( violation.getId() ); } else { // ack! automatic death! phaseReport.append(destroyEntity(violation, "impossible displacement", false)); } } else { phaseReport.append(", misses.\n"); //TODO: this is not quite how the rules go Coords targetDest = Compute.getValidDisplacement(game, entity.getId(), dest, direction); if (targetDest != null) { doEntityDisplacement(entity, src, targetDest, new PilotingRollData(entity.getId(), PilotingRollData.IMPOSSIBLE, "pushed off a cliff")); // Update the entity's postion on the client. entityUpdate( entity.getId() ); } else { // ack! automatic death! phaseReport.append(destroyEntity(entity, "impossible displacement", false)); } } return; } }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/a8888e3271176d83a2cc8af47f7c2c5d0eb5f37d/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
1943,
1669,
15917,
12,
1943,
1522,
16,
10320,
87,
1705,
16,
10320,
87,
1570,
16,
565,
453,
330,
17128,
24194,
751,
5824,
13,
288,
3639,
727,
15734,
1705,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
4816,
1769,
3639,
727,
15734,
1570,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
10488,
1769,
3639,
727,
509,
4068,
273,
1705,
18,
9855,
12,
10488,
1769,
3639,
368,
5004,
446,
3827,
281,
18,
3639,
309,
261,
1705,
7037,
422,
446,
747,
1570,
7037,
422,
446,
262,
288,
5411,
2332,
18,
370,
18,
8222,
12,
315,
2568,
486,
1015,
964,
315,
397,
1522,
18,
588,
29983,
1435,
397,
27573,
315,
628,
315,
397,
1705,
397,
4766,
315,
358,
315,
397,
1570,
397,
4585,
11272,
3639,
289,
3639,
509,
4159,
17274,
7112,
273,
1522,
18,
6516,
7112,
24269,
416,
2092,
12,
4816,
7037,
13,
300,
1522,
18,
6516,
7112,
24269,
416,
2092,
12,
10488,
7037,
1769,
3639,
3887,
17893,
273,
7018,
18,
3772,
310,
11683,
12,
13957,
16,
1522,
18,
26321,
9334,
1570,
1769,
7734,
368,
848,
1404,
4159,
731,
6397,
3639,
309,
261,
25602,
17274,
7112,
411,
374,
13,
288,
5411,
4159,
17274,
7112,
273,
374,
31,
3639,
289,
7734,
368,
309,
2929,
353,
1008,
16,
333,
3377,
506,
12779,
2777,
3639,
309,
261,
522,
12255,
422,
446,
13,
288,
5411,
309,
261,
25602,
17274,
7112,
411,
576,
13,
288,
7734,
368,
1158,
927,
3048,
30,
3635,
471,
5824,
15849,
7734,
6855,
4820,
18,
6923,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
1943,
1669,
15917,
12,
1943,
1522,
16,
10320,
87,
1705,
16,
10320,
87,
1570,
16,
565,
453,
330,
17128,
24194,
751,
5824,
13,
288,
3639,
727,
15734,
1705,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
4816,
1769,
3639,
727,
15734,
1570,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
10488,
1769,
3639,
727,
509,
4068,
273,
1705,
18,
9855,
12,
10488,
1769,
3639,
368,
5004,
446,
3827,
281,
18,
3639,
309,
261,
1705,
7037,
422,
446,
747,
1570,
7037,
422,
446,
262,
288,
5411,
2332,
18,
370,
18,
8222,
12,
315,
2568,
486,
1015,
964,
315,
397,
1522,
18,
588,
29983,
1435,
397,
27573,
315,
628,
315,
397,
1705,
397,
4766,
315,
2
] |
"Check repository credentials and connectivity.", e);
|
"IO Error: \n\n"+e.getMessage(), e);
|
protected IStatus run(IProgressMonitor monitor) { try { String submittedBugId = ""; TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository( form.getTaskData().getRepositoryKind(), form.getTaskData().getRepositoryUrl()); BugzillaClient client = ((BugzillaRepositoryConnector) connector).getClientManager().getClient( repository); // try { submittedBugId = form.submitReportToRepository(client); // } catch (ConnectException e) { // form.setProxySettings(Proxy.NO_PROXY); // submittedBugId = // form.submitReportToRepository(client); // } if (form.isNewBugPost()) { handleNewBugPost(form.getTaskData(), submittedBugId, addToTaskListRoot); return new Status(Status.OK, BugzillaUiPlugin.PLUGIN_ID, Status.OK, submittedBugId, null); } else { handleExistingBugPost(form.getTaskData(), submittedBugId); return Status.OK_STATUS; } } catch (GeneralSecurityException e) { return new Status( Status.OK, BugzillaUiPlugin.PLUGIN_ID, Status.ERROR, "Bugzilla could not post your bug, probably because your credentials are incorrect. Ensure proper repository configuration in " + TaskRepositoriesView.NAME + ".", e); } catch (UnrecognizedReponseException e) { return new Status(Status.OK, BugzillaUiPlugin.PLUGIN_ID, Status.INFO, "Unrecognized response from server", e); } catch (IOException e) { return new Status(Status.OK, BugzillaUiPlugin.PLUGIN_ID, Status.ERROR, "Check repository credentials and connectivity.", e); } catch (BugzillaException e) { // MylarStatusHandler.fail(e, "Failed to submit", // false); String message = e.getMessage(); return new Status(Status.OK, BugzillaUiPlugin.PLUGIN_ID, Status.ERROR, "Bugzilla could not post your bug. \n\n" + message, e); } catch (PossibleBugzillaFailureException e) { return new Status(Status.OK, BugzillaUiPlugin.PLUGIN_ID, Status.INFO, "Possible bugzilla failure", e); } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/418ce7b97d50fac630fb5cd918399ac14bbb41b8/BugSubmissionHandler.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugSubmissionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
202,
698,
288,
25083,
202,
780,
9638,
19865,
548,
273,
1408,
31,
25083,
202,
2174,
3305,
3352,
273,
20350,
13943,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
12,
6862,
9506,
202,
687,
18,
588,
2174,
751,
7675,
588,
3305,
5677,
9334,
646,
18,
588,
2174,
751,
7675,
588,
3305,
1489,
10663,
25083,
202,
19865,
15990,
1227,
1004,
273,
14015,
19865,
15990,
3305,
7487,
13,
8703,
2934,
588,
1227,
1318,
7675,
588,
1227,
12,
6862,
9506,
202,
9071,
1769,
25083,
202,
759,
775,
288,
25083,
202,
31575,
19865,
548,
273,
646,
18,
9297,
4820,
774,
3305,
12,
2625,
1769,
25083,
202,
759,
289,
1044,
261,
5215,
503,
425,
13,
288,
25083,
202,
759,
646,
18,
542,
3886,
2628,
12,
3886,
18,
3417,
67,
16085,
1769,
25083,
202,
759,
9638,
19865,
548,
273,
25083,
202,
759,
646,
18,
9297,
4820,
774,
3305,
12,
2625,
1769,
25083,
202,
759,
289,
25083,
202,
430,
261,
687,
18,
291,
1908,
19865,
3349,
10756,
288,
6862,
1082,
202,
4110,
1908,
19865,
3349,
12,
687,
18,
588,
2174,
751,
9334,
9638,
19865,
548,
16,
9604,
2174,
682,
2375,
1769,
6862,
1082,
202,
2463,
394,
2685,
12,
1482,
18,
3141,
16,
16907,
15990,
13943,
3773,
18,
19415,
67,
734,
16,
2685,
18,
3141,
16,
9638,
19865,
548,
16,
446,
1769,
25083,
202,
97,
469,
288,
6862,
1082,
202,
4110,
9895,
19865,
3349,
12,
687,
18,
588,
2174,
751,
9334,
9638,
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,
4697,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
202,
698,
288,
25083,
202,
780,
9638,
19865,
548,
273,
1408,
31,
25083,
202,
2174,
3305,
3352,
273,
20350,
13943,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
12,
6862,
9506,
202,
687,
18,
588,
2174,
751,
7675,
588,
3305,
5677,
9334,
646,
18,
588,
2174,
751,
7675,
588,
3305,
1489,
10663,
25083,
202,
19865,
15990,
1227,
1004,
273,
14015,
19865,
15990,
3305,
7487,
13,
8703,
2934,
588,
1227,
1318,
7675,
588,
1227,
12,
6862,
9506,
202,
9071,
1769,
25083,
202,
759,
775,
288,
25083,
202,
31575,
19865,
548,
273,
646,
18,
9297,
4820,
774,
3305,
12,
2625,
1769,
25083,
202,
759,
289,
1044,
261,
2
] |
println(" public void accept(" + visitorPackage + ".Visitor v) throws jjtraveler.VisitFailure {"); println(" v.visit_" + altClassName + "(this);"); println(" }"); println(); }
|
println( " public void accept(" + visitorPackage + ".Visitor v) throws jjtraveler.VisitFailure {"); println(" v.visit_" + altClassName + "(this);"); println(" }"); println(); }
|
private void genAltVisitableInterface(Type type, Alternative alt) { String visitorPackage = VisitorGenerator.qualifiedClassName(getJavaGenerationParameters()); String altClassName = FactoryGenerator.concatTypeAlt(type, alt); println(" public void accept(" + visitorPackage + ".Visitor v) throws jjtraveler.VisitFailure {"); println(" v.visit_" + altClassName + "(this);"); println(" }"); println(); }
|
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/76875cdfe2af0d6de4ab58a245cce8bd703a86ab/AlternativeGenerator.java/clean/apigen/src/apigen/gen/java/AlternativeGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
10655,
3282,
9085,
1358,
12,
559,
618,
16,
21498,
1535,
3770,
13,
288,
202,
202,
780,
8000,
2261,
273,
17360,
3908,
18,
19724,
3834,
12,
588,
5852,
13842,
2402,
10663,
202,
202,
780,
3770,
3834,
273,
7822,
3908,
18,
16426,
559,
10655,
12,
723,
16,
3770,
1769,
202,
202,
8222,
2932,
225,
1071,
918,
2791,
2932,
397,
8000,
2261,
397,
3552,
7413,
331,
13,
1216,
10684,
313,
7882,
264,
18,
10432,
5247,
288,
8863,
202,
202,
8222,
2932,
565,
331,
18,
11658,
9548,
397,
3770,
3834,
397,
7751,
2211,
1769,
8863,
202,
202,
8222,
2932,
225,
289,
8863,
202,
202,
8222,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
10655,
3282,
9085,
1358,
12,
559,
618,
16,
21498,
1535,
3770,
13,
288,
202,
202,
780,
8000,
2261,
273,
17360,
3908,
18,
19724,
3834,
12,
588,
5852,
13842,
2402,
10663,
202,
202,
780,
3770,
3834,
273,
7822,
3908,
18,
16426,
559,
10655,
12,
723,
16,
3770,
1769,
202,
202,
8222,
2932,
225,
1071,
918,
2791,
2932,
397,
8000,
2261,
397,
3552,
7413,
331,
13,
1216,
10684,
313,
7882,
264,
18,
10432,
5247,
288,
8863,
202,
202,
8222,
2932,
565,
331,
18,
11658,
9548,
397,
3770,
3834,
397,
7751,
2211,
1769,
8863,
202,
202,
8222,
2932,
225,
289,
8863,
202,
202,
8222,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return recv.getRuntime().newString(val.substring(2)).callMethod(context,"to_i", recv.getRuntime().newFixnum(2));
|
return RubyNumeric.str2inum(recv.getRuntime(),recv.getRuntime().newString(val.substring(2)),2,true);
|
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if(val.length() > 1) { if(val.charAt(1) == 'x') { return recv.getRuntime().newString(val.substring(2)).callMethod(context,"to_i", recv.getRuntime().newFixnum(16)); } else if(val.charAt(1) == 'b') { return recv.getRuntime().newString(val.substring(2)).callMethod(context,"to_i", recv.getRuntime().newFixnum(2)); } else { return recv.getRuntime().newString(val.substring(1)).callMethod(context,"to_i", recv.getRuntime().newFixnum(8)); } } } } return object.callMethod(context, "to_i"); }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/a8583bc4b548ea3f09cf86cc0ce0b77670255f40/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
394,
67,
7745,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
733,
13,
288,
3639,
4884,
1042,
819,
273,
10665,
18,
588,
5576,
7675,
588,
3935,
1042,
5621,
7734,
309,
12,
1612,
1276,
19817,
780,
13,
288,
5411,
514,
1244,
273,
733,
18,
10492,
5621,
5411,
309,
12,
1125,
18,
2469,
1435,
405,
374,
597,
1244,
18,
3001,
861,
12,
20,
13,
422,
296,
20,
6134,
288,
7734,
309,
12,
1125,
18,
2469,
1435,
405,
404,
13,
288,
10792,
309,
12,
1125,
18,
3001,
861,
12,
21,
13,
422,
296,
92,
6134,
288,
13491,
327,
10665,
18,
588,
5576,
7675,
2704,
780,
12,
1125,
18,
28023,
12,
22,
13,
2934,
1991,
1305,
12,
2472,
10837,
869,
67,
77,
3113,
10665,
18,
588,
5576,
7675,
2704,
8585,
2107,
12,
2313,
10019,
10792,
289,
469,
309,
12,
1125,
18,
3001,
861,
12,
21,
13,
422,
296,
70,
6134,
288,
13491,
327,
19817,
9902,
18,
701,
22,
267,
379,
12,
18334,
18,
588,
5576,
9334,
18334,
18,
588,
5576,
7675,
2704,
780,
12,
1125,
18,
28023,
12,
22,
13,
3631,
22,
16,
3767,
1769,
10792,
289,
469,
288,
13491,
327,
10665,
18,
588,
5576,
7675,
2704,
780,
12,
1125,
18,
28023,
12,
21,
13,
2934,
1991,
1305,
12,
2472,
10837,
869,
67,
77,
3113,
10665,
18,
588,
5576,
7675,
2704,
8585,
2107,
12,
28,
10019,
10792,
289,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
733,
18,
1991,
1305,
12,
2472,
16,
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,
1071,
760,
15908,
10340,
921,
394,
67,
7745,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
733,
13,
288,
3639,
4884,
1042,
819,
273,
10665,
18,
588,
5576,
7675,
588,
3935,
1042,
5621,
7734,
309,
12,
1612,
1276,
19817,
780,
13,
288,
5411,
514,
1244,
273,
733,
18,
10492,
5621,
5411,
309,
12,
1125,
18,
2469,
1435,
405,
374,
597,
1244,
18,
3001,
861,
12,
20,
13,
422,
296,
20,
6134,
288,
7734,
309,
12,
1125,
18,
2469,
1435,
405,
404,
13,
288,
10792,
309,
12,
1125,
18,
3001,
861,
12,
21,
13,
422,
296,
92,
6134,
288,
13491,
327,
10665,
18,
588,
5576,
7675,
2704,
780,
12,
1125,
18,
28023,
12,
22,
13,
2934,
1991,
1305,
2
] |
"Axis #0:\n" +
|
fold("Axis #0:\n" +
|
public void testLeaf() { // Juanita Sharp has no reports assertQueryReturns( "select {[Measures].[Org Salary], [Measures].[Count]} on columns,\n" + " {[Employees].[All Employees].[Sheri Nowmer].[Rebecca Kanagaki].[Juanita Sharp]} on rows\n" + "from [HR]", "Axis #0:\n" + "{}\n" + "Axis #1:\n" + "{[Measures].[Org Salary]}\n" + "{[Measures].[Count]}\n" + "Axis #2:\n" + "{[Employees].[All Employees].[Sheri Nowmer].[Rebecca Kanagaki].[Juanita Sharp]}\n" + "Row #0: $72.36\n" + "Row #0: 12\n"); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/aa6a5b6c7e27f66d87e2f1758ac150e336b69d84/ParentChildHierarchyTest.java/clean/testsrc/main/mondrian/test/ParentChildHierarchyTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9858,
1435,
288,
3639,
368,
804,
89,
5241,
69,
2638,
11441,
711,
1158,
10557,
3639,
1815,
1138,
1356,
12,
7734,
315,
4025,
288,
63,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
6487,
306,
23177,
1823,
8009,
63,
1380,
18322,
603,
2168,
17211,
82,
6,
397,
7734,
315,
288,
63,
41,
23377,
25521,
8009,
63,
1595,
512,
23377,
25521,
8009,
63,
1555,
264,
77,
4494,
6592,
8009,
63,
426,
70,
557,
5353,
1475,
940,
581,
77,
8009,
63,
46,
89,
5241,
69,
2638,
11441,
18322,
603,
2595,
64,
82,
6,
397,
7734,
315,
2080,
306,
15024,
65,
3113,
7734,
11590,
2932,
6558,
468,
20,
5581,
82,
6,
397,
7734,
7421,
64,
82,
6,
397,
7734,
315,
6558,
468,
21,
5581,
82,
6,
397,
7734,
4144,
63,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
65,
6280,
82,
6,
397,
7734,
4144,
63,
23177,
1823,
8009,
63,
1380,
65,
6280,
82,
6,
397,
7734,
315,
6558,
468,
22,
5581,
82,
6,
397,
7734,
4144,
63,
41,
23377,
25521,
8009,
63,
1595,
512,
23377,
25521,
8009,
63,
1555,
264,
77,
4494,
6592,
8009,
63,
426,
70,
557,
5353,
1475,
940,
581,
77,
8009,
63,
46,
89,
5241,
69,
2638,
11441,
65,
6280,
82,
6,
397,
7734,
315,
1999,
468,
20,
30,
271,
9060,
18,
5718,
64,
82,
6,
397,
7734,
315,
1999,
468,
20,
30,
2593,
64,
82,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9858,
1435,
288,
3639,
368,
804,
89,
5241,
69,
2638,
11441,
711,
1158,
10557,
3639,
1815,
1138,
1356,
12,
7734,
315,
4025,
288,
63,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
6487,
306,
23177,
1823,
8009,
63,
1380,
18322,
603,
2168,
17211,
82,
6,
397,
7734,
315,
288,
63,
41,
23377,
25521,
8009,
63,
1595,
512,
23377,
25521,
8009,
63,
1555,
264,
77,
4494,
6592,
8009,
63,
426,
70,
557,
5353,
1475,
940,
581,
77,
8009,
63,
46,
89,
5241,
69,
2638,
11441,
18322,
603,
2595,
64,
82,
6,
397,
7734,
315,
2080,
306,
15024,
65,
3113,
7734,
11590,
2932,
6558,
468,
20,
5581,
82,
6,
397,
7734,
7421,
64,
82,
6,
397,
7734,
2
] |
Path vmClasspath = javaCmd.createClasspath(getProject()); File aspectjtools = findAspectjtoolsJar(); if (null != aspectjtools) { vmClasspath.createPathElement().setLocation(aspectjtools);
|
final Path vmClasspath = javaCmd.createClasspath(getProject()); if ((null != forkclasspath) && (0 != forkclasspath.size())) { vmClasspath.addExisting(forkclasspath); } else { File aspectjtools = findAspectjtoolsJar(); if (null != aspectjtools) { vmClasspath.createPathElement().setLocation(aspectjtools); }
|
protected void executeInOtherVM() { if (null != messageHolder) { log("message holder ignored when forking: " + messageHolder.getClass().getName(), Project.MSG_WARN); } CommandlineJava javaCmd = new CommandlineJava(); javaCmd.setClassname(org.aspectj.tools.ajc.Main.class.getName()); Path vmClasspath = javaCmd.createClasspath(getProject()); File aspectjtools = findAspectjtoolsJar(); if (null != aspectjtools) { vmClasspath.createPathElement().setLocation(aspectjtools); } if (null != maxMem) { javaCmd.setMaxmemory(maxMem); } File tempFile = cmd.limitTo(MAX_COMMANDLINE, getLocation()); try { String[] javaArgs = javaCmd.getCommandline(); String[] args = cmd.extractArguments(); String[] both = new String[javaArgs.length + args.length]; System.arraycopy(javaArgs,0,both,0,javaArgs.length); System.arraycopy(args,0,both,javaArgs.length,args.length); int result = execInOtherVM(both); if (0 > result) { throw new BuildException("failure[" + result + "] running ajc"); } else if (failonerror && (0 < result)) { throw new BuildException("compile errors: " + result); } // when forking, do completion only at end and when successful doCompletionTasks(); } finally { if (null != tempFile) { tempFile.delete(); } } }
|
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/796b0ac27f089df3c9d11b43b444769f59fbe4e1/AjcTask.java/clean/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
382,
8290,
7397,
1435,
288,
3639,
309,
261,
2011,
480,
883,
6064,
13,
288,
5411,
613,
2932,
2150,
10438,
5455,
1347,
12515,
310,
30,
315,
7734,
397,
883,
6064,
18,
588,
797,
7675,
17994,
9334,
5420,
18,
11210,
67,
27999,
1769,
3639,
289,
3639,
3498,
1369,
5852,
2252,
5931,
273,
394,
3498,
1369,
5852,
5621,
3639,
2252,
5931,
18,
542,
20531,
12,
3341,
18,
23579,
78,
18,
6642,
18,
4365,
71,
18,
6376,
18,
1106,
18,
17994,
10663,
3639,
2666,
4268,
17461,
273,
2252,
5931,
18,
2640,
17461,
12,
588,
4109,
10663,
3639,
1387,
9648,
78,
6642,
273,
1104,
17468,
78,
6642,
10813,
5621,
3639,
309,
261,
2011,
480,
9648,
78,
6642,
13,
288,
5411,
4268,
17461,
18,
2640,
743,
1046,
7675,
542,
2735,
12,
23579,
78,
6642,
1769,
3639,
289,
3639,
309,
261,
2011,
480,
943,
3545,
13,
288,
5411,
2252,
5931,
18,
542,
2747,
7858,
12,
1896,
3545,
1769,
3639,
289,
3639,
1387,
18286,
273,
1797,
18,
3595,
774,
12,
6694,
67,
19104,
5997,
16,
13312,
10663,
3639,
775,
288,
5411,
514,
8526,
2252,
2615,
273,
2252,
5931,
18,
588,
2189,
1369,
5621,
5411,
514,
8526,
833,
273,
1797,
18,
8004,
4628,
5621,
5411,
514,
8526,
3937,
273,
394,
514,
63,
6290,
2615,
18,
2469,
397,
833,
18,
2469,
15533,
5411,
2332,
18,
1126,
3530,
12,
6290,
2615,
16,
20,
16,
18237,
16,
20,
16,
6290,
2615,
18,
2469,
1769,
5411,
2332,
18,
1126,
3530,
12,
1968,
16,
20,
16,
18237,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
382,
8290,
7397,
1435,
288,
3639,
309,
261,
2011,
480,
883,
6064,
13,
288,
5411,
613,
2932,
2150,
10438,
5455,
1347,
12515,
310,
30,
315,
7734,
397,
883,
6064,
18,
588,
797,
7675,
17994,
9334,
5420,
18,
11210,
67,
27999,
1769,
3639,
289,
3639,
3498,
1369,
5852,
2252,
5931,
273,
394,
3498,
1369,
5852,
5621,
3639,
2252,
5931,
18,
542,
20531,
12,
3341,
18,
23579,
78,
18,
6642,
18,
4365,
71,
18,
6376,
18,
1106,
18,
17994,
10663,
3639,
2666,
4268,
17461,
273,
2252,
5931,
18,
2640,
17461,
12,
588,
4109,
10663,
3639,
1387,
9648,
78,
6642,
273,
1104,
17468,
78,
6642,
10813,
5621,
3639,
309,
261,
2011,
480,
9648,
78,
6642,
13,
288,
5411,
2
] |
public Vector query (String aSearchString) { Vector retVecVec = new Vector(); //return vector of vectors. // try { //open a connection to the LDAP server System.out.println ("Opening server " + mReadableName); ICardSource Four11AddressBook = getCardSource(); //create the query ITerm query = new TermEqual (new AC_Attribute ("sn", aSearchString)); String[] attributes = {"givenName", "sn", "cn", "o", "mail", "telephoneNumber", "city"}; //query the LDAP server. System.out.println ("Send query" + query); ICardSet cardSet = Four11AddressBook.getCardSet (query, attributes); //Sort the list. String[] sortOrder = {"sn", "cn"}; cardSet.sort (sortOrder); //hack. I've put the for loop in a try block to catch the exception //thrown when cardEnum.hasMoreElements() incorrectly returns true. try { //enumerate thru the cards. for (Enumeration cardEnum = cardSet.getEnumeration(); cardEnum.hasMoreElements(); ) { System.out.println ("got card"); //get the addres card ICard card = (ICard) cardEnum.nextElement(); //get the attributes for this card IAttributeSet attrSet = card.getAttributeSet (); //create a simple vector to hold the attributes values for this card. Vector thisRow = new Vector(6); String commonName = ""; String organization = ""; String mail = ""; String phone = ""; String city = ""; String nickName = ""; // enumerate thru the card attributes. for (Enumeration attEnum = attrSet.getEnumeration(); attEnum.hasMoreElements(); ) { IAttribute attr = (IAttribute) attEnum.nextElement(); String attrName = attr.getName(); if (attrName.equals ("cn")) { commonName = attr.getValue(); } else if (attrName.equals ("o")) { organization = attr.getValue(); } else if (attrName.equals ("mail")) { mail = attr.getValue(); } else if (attrName.equals ("telephoneNumber")) { phone = attr.getValue(); } else if (attrName.equals ("city")) { city = attr.getValue(); } } //create this row for the table. thisRow.addElement (commonName); thisRow.addElement (mail); thisRow.addElement (organization); thisRow.addElement (phone); thisRow.addElement (city); thisRow.addElement (nickName); //add this row to the table retVecVec.addElement (thisRow); } } catch (Exception e) { } // } // catch( LDAPException e ) { // System.out.println( "Error: " + e.toString() ); // } System.out.println ("Done."); return retVecVec; }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/0e1ed436393bc916e4e4cffed4938446b1aaa627/AddressBook.java/clean/grendel/sources/grendel/addressbook/AddressBook.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
282,
843,
261,
780,
279,
2979,
780,
13,
288,
4202,
5589,
325,
12991,
12991,
273,
394,
5589,
5621,
282,
368,
2463,
3806,
434,
10046,
18,
1850,
368,
2868,
775,
288,
4202,
368,
3190,
279,
1459,
358,
326,
11916,
1438,
4202,
2332,
18,
659,
18,
8222,
7566,
21378,
1438,
315,
397,
312,
14151,
461,
1769,
4202,
467,
6415,
1830,
478,
477,
2499,
31374,
273,
26776,
1830,
5621,
2398,
368,
2640,
326,
843,
4202,
467,
4065,
843,
273,
394,
6820,
5812,
261,
2704,
12048,
67,
1499,
7566,
8134,
3113,
279,
2979,
780,
10019,
1850,
514,
8526,
1677,
273,
12528,
10822,
461,
3113,
315,
8134,
3113,
315,
10305,
3113,
315,
83,
3113,
315,
4408,
3113,
315,
29170,
10540,
1854,
3113,
315,
14240,
6,
20451,
1850,
368,
2271,
326,
11916,
1438,
18,
4202,
2332,
18,
659,
18,
8222,
7566,
3826,
843,
6,
397,
843,
1769,
4202,
467,
6415,
694,
5270,
694,
273,
478,
477,
2499,
31374,
18,
588,
6415,
694,
261,
2271,
16,
1677,
1769,
1850,
368,
4416,
326,
666,
18,
4202,
514,
8526,
19050,
273,
12528,
8134,
3113,
315,
10305,
6,
20451,
4202,
5270,
694,
18,
3804,
261,
3804,
2448,
1769,
1850,
368,
76,
484,
18,
467,
8081,
1378,
326,
364,
2798,
316,
279,
775,
1203,
358,
1044,
326,
1520,
4202,
368,
12849,
82,
1347,
5270,
3572,
18,
5332,
7417,
3471,
1435,
25621,
1135,
638,
18,
4202,
775,
288,
540,
368,
7924,
12600,
286,
8653,
326,
18122,
18,
540,
364,
261,
21847,
5270,
3572,
273,
5270,
694,
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,
5589,
282,
843,
261,
780,
279,
2979,
780,
13,
288,
4202,
5589,
325,
12991,
12991,
273,
394,
5589,
5621,
282,
368,
2463,
3806,
434,
10046,
18,
1850,
368,
2868,
775,
288,
4202,
368,
3190,
279,
1459,
358,
326,
11916,
1438,
4202,
2332,
18,
659,
18,
8222,
7566,
21378,
1438,
315,
397,
312,
14151,
461,
1769,
4202,
467,
6415,
1830,
478,
477,
2499,
31374,
273,
26776,
1830,
5621,
2398,
368,
2640,
326,
843,
4202,
467,
4065,
843,
273,
394,
6820,
5812,
261,
2704,
12048,
67,
1499,
7566,
8134,
3113,
279,
2979,
780,
10019,
1850,
514,
8526,
1677,
273,
12528,
10822,
461,
3113,
315,
8134,
3113,
315,
10305,
3113,
315,
83,
3113,
315,
4408,
3113,
315,
29170,
10540,
1854,
2
] |
||
public void addMessage(final CompilerMessage message) {
|
public void addMessage(final CompileContext compileContext, final CompilerMessage message) {
|
public void addMessage(final CompilerMessage message) { openMessageView(); if (CompilerMessageCategory.ERROR.equals(message.getCategory())) { myErrorCount += 1; WolfTheProblemSolver wolf = WolfTheProblemSolver.getInstance(myProject); wolf.weHaveGotProblem(wolf.convertToProblem(message)); } if (CompilerMessageCategory.WARNING.equals(message.getCategory())) { myWarningCount += 1; } if (ApplicationManager.getApplication().isDispatchThread()) { doAddMessage(message); } else { final Window window = getWindow(); final ModalityState modalityState = window != null ? ModalityState.stateForComponent(window) : ModalityState.NON_MMODAL; ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { doAddMessage(message); } }, modalityState); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/284ff47c986f8c771cd5bbdf9aa4b5c280448df6/CompilerProgressIndicator.java/buggy/compiler/impl/com/intellij/compiler/progress/CompilerProgressIndicator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16487,
12,
6385,
16143,
1042,
4074,
1042,
16,
727,
12972,
1079,
883,
13,
288,
565,
1696,
1079,
1767,
5621,
565,
309,
261,
9213,
1079,
4457,
18,
3589,
18,
14963,
12,
2150,
18,
588,
4457,
1435,
3719,
288,
1377,
3399,
668,
1380,
1011,
404,
31,
1377,
678,
355,
74,
1986,
13719,
27721,
341,
355,
74,
273,
678,
355,
74,
1986,
13719,
27721,
18,
588,
1442,
12,
4811,
4109,
1769,
1377,
341,
355,
74,
18,
1814,
17944,
15617,
13719,
12,
91,
355,
74,
18,
6283,
774,
13719,
12,
2150,
10019,
565,
289,
565,
309,
261,
9213,
1079,
4457,
18,
9511,
18,
14963,
12,
2150,
18,
588,
4457,
1435,
3719,
288,
1377,
3399,
6210,
1380,
1011,
404,
31,
565,
289,
565,
309,
261,
3208,
1318,
18,
588,
3208,
7675,
291,
5325,
3830,
10756,
288,
1377,
741,
986,
1079,
12,
2150,
1769,
565,
289,
565,
469,
288,
1377,
727,
6076,
2742,
273,
26156,
5621,
1377,
727,
3431,
7919,
1119,
681,
7919,
1119,
273,
2742,
480,
446,
692,
3431,
7919,
1119,
18,
2019,
1290,
1841,
12,
5668,
13,
294,
3431,
7919,
1119,
18,
3993,
67,
49,
6720,
1013,
31,
1377,
4257,
1318,
18,
588,
3208,
7675,
14407,
20607,
12,
2704,
10254,
1435,
288,
3639,
1071,
918,
1086,
1435,
288,
1850,
741,
986,
1079,
12,
2150,
1769,
3639,
289,
1377,
19879,
681,
7919,
1119,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16487,
12,
6385,
16143,
1042,
4074,
1042,
16,
727,
12972,
1079,
883,
13,
288,
565,
1696,
1079,
1767,
5621,
565,
309,
261,
9213,
1079,
4457,
18,
3589,
18,
14963,
12,
2150,
18,
588,
4457,
1435,
3719,
288,
1377,
3399,
668,
1380,
1011,
404,
31,
1377,
678,
355,
74,
1986,
13719,
27721,
341,
355,
74,
273,
678,
355,
74,
1986,
13719,
27721,
18,
588,
1442,
12,
4811,
4109,
1769,
1377,
341,
355,
74,
18,
1814,
17944,
15617,
13719,
12,
91,
355,
74,
18,
6283,
774,
13719,
12,
2150,
10019,
565,
289,
565,
309,
261,
9213,
1079,
4457,
18,
9511,
18,
14963,
12,
2150,
18,
588,
4457,
1435,
3719,
288,
1377,
3399,
6210,
1380,
1011,
404,
31,
565,
2
] |
resolveOffset(d.startOffset), resolveOffset(d.endOffset));
|
startOffset, endOffset);
|
protected void pushContext(char[] buffer, Object data) { if (bufferStackPos + 1 == bufferDelta.length) { int size = bufferDelta.length * 2; int[] oldBufferDelta = bufferDelta; bufferDelta = new int[size]; System.arraycopy(oldBufferDelta, 0, bufferDelta, 0, oldBufferDelta.length); } if (data instanceof InclusionData) { if (log.isTracing()) { StringBuffer b = new StringBuffer("Entering inclusion "); //$NON-NLS-1$ b.append(((InclusionData) data).reader.filename); log.traceLog(b.toString()); } if( ! isCircularInclusion( (InclusionData) data )) { DOMInclusion inc = ((DOMInclusion) ((InclusionData) data).inclusion); locationMap.startInclusion(((InclusionData) data).reader, inc.o, resolveOffset(getCurrentOffset())); bufferDelta[bufferStackPos + 1] = 0; } } else if (data instanceof MacroData) { MacroData d = (MacroData) data; if (d.macro instanceof FunctionStyleMacro && fsmCount == 0) { FunctionStyleMacro fsm = (FunctionStyleMacro) d.macro; locationMap.startFunctionStyleExpansion(fsm.attachment, fsm.arglist, resolveOffset(d.startOffset), resolveOffset(d.endOffset)); bufferDelta[bufferStackPos + 1] = 0; } else if (d.macro instanceof ObjectStyleMacro && fsmCount == 0) { ObjectStyleMacro osm = (ObjectStyleMacro) d.macro; locationMap.startObjectStyleMacroExpansion(osm.attachment, resolveOffset(d.startOffset), resolveOffset(d.endOffset)); bufferDelta[bufferStackPos + 1] = 0; } } else if( data instanceof CodeReader && !macroFilesInitialized ) { int resolved = getGlobalCounter(0); locationMap.startInclusion( (CodeReader) data, resolved, resolved ); } super.pushContext(buffer, data); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/92b49872f2c9895f7f9b9a4e19f3e752f1acf50a/DOMScanner.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/DOMScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1817,
1042,
12,
3001,
8526,
1613,
16,
1033,
501,
13,
288,
3639,
309,
261,
4106,
2624,
1616,
397,
404,
422,
1613,
9242,
18,
2469,
13,
288,
5411,
509,
963,
273,
1613,
9242,
18,
2469,
380,
576,
31,
5411,
509,
8526,
1592,
1892,
9242,
273,
1613,
9242,
31,
5411,
1613,
9242,
273,
394,
509,
63,
1467,
15533,
5411,
2332,
18,
1126,
3530,
12,
1673,
1892,
9242,
16,
374,
16,
1613,
9242,
16,
374,
16,
10792,
1592,
1892,
9242,
18,
2469,
1769,
3639,
289,
3639,
309,
261,
892,
1276,
657,
15335,
751,
13,
288,
5411,
309,
261,
1330,
18,
291,
3403,
10756,
288,
7734,
6674,
324,
273,
394,
6674,
2932,
10237,
310,
26485,
315,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
324,
18,
6923,
12443,
12,
382,
15335,
751,
13,
501,
2934,
10530,
18,
3459,
1769,
7734,
613,
18,
5129,
1343,
12,
70,
18,
10492,
10663,
5411,
289,
5411,
309,
12,
401,
353,
25858,
382,
15335,
12,
261,
382,
15335,
751,
13,
501,
8623,
5411,
288,
7734,
4703,
382,
15335,
7290,
273,
14015,
8168,
382,
15335,
13,
14015,
382,
15335,
751,
13,
501,
2934,
267,
15335,
1769,
7734,
2117,
863,
18,
1937,
382,
15335,
12443,
12,
382,
15335,
751,
13,
501,
2934,
10530,
16,
7290,
18,
83,
16,
2245,
2335,
12,
588,
3935,
2335,
1435,
10019,
7734,
1613,
9242,
63,
4106,
2624,
1616,
397,
404,
65,
273,
374,
31,
5411,
289,
3639,
289,
3639,
469,
309,
261,
892,
1276,
31203,
751,
13,
288,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1817,
1042,
12,
3001,
8526,
1613,
16,
1033,
501,
13,
288,
3639,
309,
261,
4106,
2624,
1616,
397,
404,
422,
1613,
9242,
18,
2469,
13,
288,
5411,
509,
963,
273,
1613,
9242,
18,
2469,
380,
576,
31,
5411,
509,
8526,
1592,
1892,
9242,
273,
1613,
9242,
31,
5411,
1613,
9242,
273,
394,
509,
63,
1467,
15533,
5411,
2332,
18,
1126,
3530,
12,
1673,
1892,
9242,
16,
374,
16,
1613,
9242,
16,
374,
16,
10792,
1592,
1892,
9242,
18,
2469,
1769,
3639,
289,
3639,
309,
261,
892,
1276,
657,
15335,
751,
13,
288,
5411,
309,
261,
1330,
18,
291,
3403,
10756,
288,
7734,
6674,
324,
273,
394,
6674,
2932,
10237,
310,
26485,
315,
1769,
4329,
3993,
17,
2
] |
case XObject.CLASS_NODESET:
|
case XObject.CLASS_NODESET :
|
public void execute(TransformerImpl transformer, Node sourceNode, QName mode) throws SAXException { if(TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEvent(sourceNode, mode, this); XPathContext xctxt = transformer.getXPathContext(); XObject value = m_selectExpression.execute(xctxt, sourceNode, this); if(TransformerImpl.S_DEBUG) transformer.getTraceManager().fireSelectedEvent(sourceNode, this, "select", m_selectExpression, value); ResultTreeHandler handler = transformer.getResultTreeHandler(); if(null != value) { int type = value.getType(); String s; switch(type) { case XObject.CLASS_BOOLEAN: case XObject.CLASS_NUMBER: case XObject.CLASS_STRING: s = value.str(); handler.characters(s.toCharArray(), 0, s.length()); break; case XObject.CLASS_NODESET: // System.out.println(value); NodeIterator nl = value.nodeset(); // Copy the tree. org.apache.xalan.utils.TreeWalker tw = new TreeWalker2Result(transformer, handler); Node pos; while(null != (pos = nl.nextNode())) { int t = pos.getNodeType(); // If we just copy the whole document, a startDoc and endDoc get // generated, so we need to only walk the child nodes. if(t == Node.DOCUMENT_NODE) { for(Node child = pos.getFirstChild(); child != null; child = child.getNextSibling()) { tw.traverse(child); } } else if(t == Node.ATTRIBUTE_NODE) { handler.addAttribute((Attr)pos); } else { tw.traverse(pos); } } break; case XObject.CLASS_RTREEFRAG: handler.outputResultTreeFragment(value, transformer.getXPathContext()); break; default: s = value.str(); handler.characters(s.toCharArray(), 0, s.length()); break; } } }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemCopyOf.java/clean/src/org/apache/xalan/templates/ElemCopyOf.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
12,
8319,
2828,
8360,
16,
8227,
2029,
26799,
16,
5397,
16723,
1965,
13,
565,
1216,
14366,
225,
288,
3639,
309,
12,
8319,
2828,
18,
55,
67,
9394,
13,
1377,
8360,
18,
588,
3448,
1318,
7675,
12179,
3448,
1133,
12,
3168,
907,
16,
1965,
16,
333,
1769,
565,
10172,
1042,
25465,
273,
8360,
18,
588,
14124,
1042,
5621,
565,
1139,
921,
460,
273,
312,
67,
4025,
2300,
18,
8837,
12,
92,
20364,
16,
26799,
16,
333,
1769,
3639,
309,
12,
8319,
2828,
18,
55,
67,
9394,
13,
1377,
8360,
18,
588,
3448,
1318,
7675,
12179,
7416,
1133,
12,
3168,
907,
16,
4766,
565,
333,
16,
315,
4025,
3113,
312,
67,
4025,
2300,
16,
460,
1769,
3639,
3438,
2471,
1503,
1838,
273,
8360,
18,
588,
1253,
2471,
1503,
5621,
3639,
309,
12,
2011,
480,
460,
13,
565,
288,
1377,
509,
618,
273,
460,
18,
588,
559,
5621,
1377,
514,
272,
31,
1377,
1620,
12,
723,
13,
1377,
288,
1377,
648,
1139,
921,
18,
5237,
67,
17900,
30,
1377,
648,
1139,
921,
18,
5237,
67,
9931,
30,
1377,
648,
1139,
921,
18,
5237,
67,
5804,
30,
3639,
272,
273,
460,
18,
701,
5621,
3639,
1838,
18,
20558,
12,
87,
18,
869,
15936,
9334,
374,
16,
272,
18,
2469,
10663,
3639,
898,
31,
2398,
648,
1139,
921,
18,
5237,
67,
8744,
4043,
294,
540,
368,
2332,
18,
659,
18,
8222,
12,
1132,
1769,
3639,
2029,
3198,
7741,
273,
460,
18,
4690,
278,
5621,
7734,
368,
5631,
326,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
12,
8319,
2828,
8360,
16,
8227,
2029,
26799,
16,
5397,
16723,
1965,
13,
565,
1216,
14366,
225,
288,
3639,
309,
12,
8319,
2828,
18,
55,
67,
9394,
13,
1377,
8360,
18,
588,
3448,
1318,
7675,
12179,
3448,
1133,
12,
3168,
907,
16,
1965,
16,
333,
1769,
565,
10172,
1042,
25465,
273,
8360,
18,
588,
14124,
1042,
5621,
565,
1139,
921,
460,
273,
312,
67,
4025,
2300,
18,
8837,
12,
92,
20364,
16,
26799,
16,
333,
1769,
3639,
309,
12,
8319,
2828,
18,
55,
67,
9394,
13,
1377,
8360,
18,
588,
3448,
1318,
7675,
12179,
7416,
1133,
12,
3168,
907,
16,
4766,
565,
333,
16,
315,
4025,
3113,
312,
67,
4025,
2300,
16,
460,
1769,
3639,
2
] |
URL input = createURL(fDocLocation); URL parent = createURL(fParentXIncludeHandler.fDocLocation);
|
URL input = new URL(fDocLocation.getExpandedSystemId()); URL parent = new URL( fParentXIncludeHandler .fDocLocation .getExpandedSystemId());
|
protected boolean sameBaseURISourceAsParent() { if (fDepth == fRootDepth) { try { // We test if the included file is in the same directory as it's parent // by creating a new URL, with the filename of the included file and the // base of the parent, and checking if it is the same file as the included file URL input = createURL(fDocLocation); URL parent = createURL(fParentXIncludeHandler.fDocLocation); URL test = new URL(parent, new File(input.getFile()).getName()); return input.sameFile(test); } catch (MalformedURLException e) { return false; } } return true; }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/f31aac620d0db94ab60f34beda96fc4c278d73ae/XIncludeHandler.java/buggy/src/org/apache/xerces/xinclude/XIncludeHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1967,
2171,
3098,
1830,
1463,
3054,
1435,
288,
3639,
309,
261,
74,
6148,
422,
284,
2375,
6148,
13,
288,
5411,
775,
288,
7734,
368,
1660,
1842,
309,
326,
5849,
585,
353,
316,
326,
1967,
1867,
487,
518,
1807,
982,
7734,
368,
635,
4979,
279,
394,
1976,
16,
598,
326,
1544,
434,
326,
5849,
585,
471,
326,
7734,
368,
1026,
434,
326,
982,
16,
471,
6728,
309,
518,
353,
326,
1967,
585,
487,
326,
5849,
585,
7734,
1976,
810,
273,
752,
1785,
12,
74,
1759,
2735,
1769,
7734,
1976,
982,
273,
752,
1785,
12,
74,
3054,
60,
8752,
1503,
18,
74,
1759,
2735,
1769,
7734,
1976,
1842,
273,
394,
1976,
12,
2938,
16,
394,
1387,
12,
2630,
18,
29925,
1435,
2934,
17994,
10663,
7734,
327,
810,
18,
14307,
812,
12,
3813,
1769,
5411,
289,
5411,
1044,
261,
18695,
20160,
425,
13,
288,
7734,
327,
629,
31,
5411,
289,
3639,
289,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1967,
2171,
3098,
1830,
1463,
3054,
1435,
288,
3639,
309,
261,
74,
6148,
422,
284,
2375,
6148,
13,
288,
5411,
775,
288,
7734,
368,
1660,
1842,
309,
326,
5849,
585,
353,
316,
326,
1967,
1867,
487,
518,
1807,
982,
7734,
368,
635,
4979,
279,
394,
1976,
16,
598,
326,
1544,
434,
326,
5849,
585,
471,
326,
7734,
368,
1026,
434,
326,
982,
16,
471,
6728,
309,
518,
353,
326,
1967,
585,
487,
326,
5849,
585,
7734,
1976,
810,
273,
752,
1785,
12,
74,
1759,
2735,
1769,
7734,
1976,
982,
273,
752,
1785,
12,
74,
3054,
60,
8752,
1503,
18,
74,
1759,
2735,
1769,
7734,
1976,
1842,
273,
394,
1976,
12,
2938,
16,
394,
1387,
12,
2630,
2
] |
TextMessage msg = (TextMessage) message; assertNotNull(msg); assertTrue(msg.getJMSRedelivered()); assertTrue(msg instanceof TextMessage); } catch (Exception e) { fail(e.getMessage()); } finally { try { System.out.println("@@@@ committing rolled back message from queue @@@@"); ((MessageRedeliveredException) t).getSession().commit(); } catch (JMSException e) { fail("Failed to commit rolled back message"); } } } else { t.printStackTrace(); fail(t.getMessage()); }
|
public void handleException(Object message, Throwable t) { System.out.println("@@@@ ExceptionHandler Called @@@@"); if (t instanceof MessageRedeliveredException) { countDown.release(); try { //MessageRedeliveredException mre = (MessageRedeliveredException)t; TextMessage msg = (TextMessage) message; assertNotNull(msg); assertTrue(msg.getJMSRedelivered()); assertTrue(msg instanceof TextMessage); //assertEquals(DEFAULT_MESSAGE, msg.getText()); } catch (Exception e) { fail(e.getMessage()); } finally { try { //commit the message off the queue System.out.println("@@@@ committing rolled back message from queue @@@@"); ((MessageRedeliveredException) t).getSession().commit(); } catch (JMSException e) { fail("Failed to commit rolled back message"); } } } else { t.printStackTrace(); fail(t.getMessage()); } }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/906311ea2a868ed836523a8dc86017a4be15d906/AbstractJmsTransactionFunctionalTest.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/jms/AbstractJmsTransactionFunctionalTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
20879,
12,
921,
883,
16,
4206,
268,
13,
3639,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
30989,
30989,
1185,
1503,
11782,
22175,
30989,
8863,
5411,
309,
261,
88,
1276,
2350,
3715,
292,
1667,
329,
503,
13,
5411,
288,
7734,
1056,
4164,
18,
9340,
5621,
7734,
775,
7734,
288,
10792,
368,
1079,
3715,
292,
1667,
329,
503,
312,
266,
273,
261,
1079,
3715,
292,
1667,
329,
503,
13,
88,
31,
10792,
3867,
1079,
1234,
273,
261,
1528,
1079,
13,
883,
31,
10792,
25395,
12,
3576,
1769,
10792,
1815,
5510,
12,
3576,
18,
588,
46,
3537,
3715,
292,
1667,
329,
10663,
10792,
1815,
5510,
12,
3576,
1276,
3867,
1079,
1769,
10792,
368,
11231,
8867,
12,
5280,
67,
8723,
16,
1234,
18,
588,
1528,
10663,
7734,
289,
1044,
261,
503,
425,
13,
7734,
288,
10792,
2321,
12,
73,
18,
24906,
10663,
7734,
289,
3095,
7734,
288,
10792,
775,
10792,
288,
13491,
368,
7371,
326,
883,
3397,
326,
2389,
13491,
2332,
18,
659,
18,
8222,
2932,
30989,
30989,
3294,
1787,
28693,
1473,
883,
628,
2389,
22175,
30989,
8863,
13491,
14015,
1079,
3715,
292,
1667,
329,
503,
13,
268,
2934,
588,
2157,
7675,
7371,
5621,
10792,
289,
1044,
261,
46,
3537,
503,
425,
13,
10792,
288,
13491,
2321,
2932,
2925,
358,
3294,
28693,
1473,
883,
8863,
10792,
289,
7734,
289,
5411,
289,
469,
5411,
288,
7734,
268,
18,
1188,
6332,
5621,
7734,
2321,
12,
88,
18,
24906,
10663,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
20879,
12,
921,
883,
16,
4206,
268,
13,
3639,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
30989,
30989,
1185,
1503,
11782,
22175,
30989,
8863,
5411,
309,
261,
88,
1276,
2350,
3715,
292,
1667,
329,
503,
13,
5411,
288,
7734,
1056,
4164,
18,
9340,
5621,
7734,
775,
7734,
288,
10792,
368,
1079,
3715,
292,
1667,
329,
503,
312,
266,
273,
261,
1079,
3715,
292,
1667,
329,
503,
13,
88,
31,
10792,
3867,
1079,
1234,
273,
261,
1528,
1079,
13,
883,
31,
10792,
25395,
12,
3576,
1769,
10792,
1815,
5510,
12,
3576,
18,
588,
46,
3537,
3715,
292,
1667,
329,
10663,
10792,
1815,
5510,
12,
3576,
1276,
3867,
1079,
1769,
10792,
368,
11231,
8867,
12,
5280,
67,
2
] |
|
mainCodegen.generatedClassName,
|
codegen.mainClassName,
|
private void visitFunction(OptFunctionNode fn, int functionType) { String fnClassName = fn.getClassName(); cfw.add(ByteCode.NEW, fnClassName); // Call function constructor cfw.add(ByteCode.DUP); cfw.addALoad(variableObjectLocal); cfw.addALoad(contextLocal); // load 'cx' cfw.addInvoke(ByteCode.INVOKESPECIAL, fnClassName, "<init>", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); // Init mainScript field; cfw.add(ByteCode.DUP); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, currentCodegen.generatedClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); cfw.add(ByteCode.PUTFIELD, fnClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); int directTargetIndex = fn.getDirectTargetIndex(); if (directTargetIndex >= 0) { cfw.add(ByteCode.DUP); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, currentCodegen.generatedClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); cfw.add(ByteCode.SWAP); cfw.add(ByteCode.PUTFIELD, mainCodegen.generatedClassName, Codegen.getDirectTargetFieldName(directTargetIndex), cfw.classNameToSignature(fn.getClassName())); } // Dup function reference for function expressions to have it // on top of the stack when initFunction returns if (functionType != FunctionNode.FUNCTION_STATEMENT) { cfw.add(ByteCode.DUP); } cfw.addPush(functionType); cfw.addALoad(variableObjectLocal); cfw.addALoad(contextLocal); // load 'cx' addOptRuntimeInvoke("initFunction", "(Lorg/mozilla/javascript/NativeFunction;" +"I" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/7de4ae25f0fd144cbc3ddabc47e7a327a747af5a/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
2083,
12,
6179,
2083,
907,
2295,
16,
509,
445,
559,
13,
565,
288,
3639,
514,
2295,
3834,
273,
2295,
18,
588,
3834,
5621,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
12917,
16,
2295,
3834,
1769,
3639,
368,
3049,
445,
3885,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
30387,
1769,
3639,
6080,
91,
18,
1289,
1013,
6189,
12,
6105,
921,
2042,
1769,
3639,
6080,
91,
18,
1289,
1013,
6189,
12,
2472,
2042,
1769,
6647,
368,
1262,
296,
71,
92,
11,
3639,
6080,
91,
18,
1289,
10969,
12,
3216,
1085,
18,
706,
17691,
3991,
10106,
6365,
16,
8227,
2295,
3834,
16,
3532,
2738,
2984,
16,
8227,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
8227,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
8227,
397,
7923,
58,
8863,
3639,
368,
4378,
2774,
3651,
652,
31,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
30387,
1769,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
20,
1769,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
3264,
6776,
16,
7734,
783,
1085,
4507,
18,
11168,
3834,
16,
7734,
3356,
4507,
18,
19803,
67,
10885,
67,
6776,
16,
7734,
2774,
1085,
4507,
18,
11168,
797,
5374,
1769,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
4762,
6776,
16,
7734,
2295,
3834,
16,
7734,
3356,
4507,
18,
19803,
67,
10885,
67,
6776,
16,
7734,
2774,
1085,
4507,
18,
11168,
797,
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,
3757,
2083,
12,
6179,
2083,
907,
2295,
16,
509,
445,
559,
13,
565,
288,
3639,
514,
2295,
3834,
273,
2295,
18,
588,
3834,
5621,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
12917,
16,
2295,
3834,
1769,
3639,
368,
3049,
445,
3885,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
30387,
1769,
3639,
6080,
91,
18,
1289,
1013,
6189,
12,
6105,
921,
2042,
1769,
3639,
6080,
91,
18,
1289,
1013,
6189,
12,
2472,
2042,
1769,
6647,
368,
1262,
296,
71,
92,
11,
3639,
6080,
91,
18,
1289,
10969,
12,
3216,
1085,
18,
706,
17691,
3991,
10106,
6365,
16,
8227,
2295,
3834,
16,
3532,
2738,
2984,
16,
8227,
7751,
48,
3341,
19,
8683,
15990,
19,
2
] |
cmd.id = null;
|
cmd.indexedId = null;
|
public void update(Reader reader, Writer writer) { // TODO: add param to specify maximum time to commit? // todo - might be nice to separate command parsing w/ a factory // then new commands could be added w/o risk to old ones XmlPullParser xpp = null; try { xpp = factory.newPullParser(); } catch (XmlPullParserException e) { throw new RuntimeException(e); } long startTime=System.currentTimeMillis(); try { xpp.setInput(reader); xpp.nextTag(); String currTag = xpp.getName(); if ("add".equals(currTag)) { log.finest("SolrCore.update(add)"); AddUpdateCommand cmd = new AddUpdateCommand(); cmd.allowDups=false; // the default int status=0; boolean pendingAttr=false, committedAttr=false; int attrcount = xpp.getAttributeCount(); for (int i=0; i<attrcount; i++) { String attrName = xpp.getAttributeName(i); String attrVal = xpp.getAttributeValue(i); if ("allowDups".equals(attrName)) { cmd.allowDups = StrUtils.parseBoolean(attrVal); } else if ("overwritePending".equals(attrName)) { cmd.overwritePending = StrUtils.parseBoolean(attrVal); pendingAttr=true; } else if ("overwriteCommitted".equals(attrName)) { cmd.overwriteCommitted = StrUtils.parseBoolean(attrVal); committedAttr=true; } else { log.warning("Unknown attribute id in add:" + attrName); } } //set defaults for committed and pending based on allowDups value if (!pendingAttr) cmd.overwritePending=!cmd.allowDups; if (!committedAttr) cmd.overwriteCommitted=!cmd.allowDups; DocumentBuilder builder = new DocumentBuilder(schema); int eventType=0; while(true) { // this may be our second time through the loop in the case // that there are multiple docs in the add... so make sure that // objects can handle that. cmd.id = null; // reset the id for this add if (eventType !=0) { eventType=xpp.getEventType(); if (eventType==XmlPullParser.END_DOCUMENT) break; } // eventType = xpp.next(); eventType = xpp.nextTag(); if (eventType == XmlPullParser.END_TAG || eventType == XmlPullParser.END_DOCUMENT) break; // should match </add> try { readDoc(builder,xpp); builder.endDoc(); cmd.doc = builder.getDoc(); log.finest("adding doc..."); updateHandler.addDoc(cmd); log.info("add "+status+" "+(System.currentTimeMillis()-startTime)); writer.write("<result status=\"" + status + "\"></result>"); } catch (SolrException e) { log(e); log.info("add "+e.code+" "+(System.currentTimeMillis()-startTime)); writeResult(writer,e); // we may not have finised reading the XML for this cmd, // so eat any unused input up till "</add>" eventType = xpp.getEventType(); while (true) { if ( eventType == XmlPullParser.END_DOCUMENT || (eventType == XmlPullParser.END_TAG && "add".equals(xpp.getName()))) { break; } eventType = xpp.next(); } } } /*** while (findNextTag(xpp,"doc") != XmlPullParser.END_DOCUMENT) { readDoc(builder,xpp); Document doc = builder.endDoc(); indexWriter.addDocument(doc); docsAdded++; } ***/ } // end add else if ("commit".equals(currTag) || "optimize".equals(currTag)) { log.finest("parsing "+currTag); try { CommitUpdateCommand cmd = new CommitUpdateCommand("optimize".equals(currTag)); boolean sawWaitSearcher=false, sawWaitFlush=false; int attrcount = xpp.getAttributeCount(); for (int i=0; i<attrcount; i++) { String attrName = xpp.getAttributeName(i); String attrVal = xpp.getAttributeValue(i); if ("waitFlush".equals(attrName)) { cmd.waitFlush = StrUtils.parseBoolean(attrVal); sawWaitFlush=true; } else if ("waitSearcher".equals(attrName)) { cmd.waitSearcher = StrUtils.parseBoolean(attrVal); sawWaitSearcher=true; } else { log.warning("unexpected attribute commit/@" + attrName); } } // If waitFlush is specified and waitSearcher wasn't, then // clear waitSearcher. if (sawWaitFlush && !sawWaitSearcher) { cmd.waitSearcher=false; } updateHandler.commit(cmd); if ("optimize".equals(currTag)) { log.info("optimize 0 "+(System.currentTimeMillis()-startTime)); } else { log.info("commit 0 "+(System.currentTimeMillis()-startTime)); } while (true) { int eventType = xpp.nextTag(); if (eventType == XmlPullParser.END_TAG) break; // match </commit> } writer.write("<result status=\"0\"></result>"); } catch (SolrException e) { log(e); if ("optimize".equals(currTag)) { log.info("optimize "+e.code+" "+ (System.currentTimeMillis()-startTime)); } else { log.info("commit "+e.code+" "+ (System.currentTimeMillis()-startTime)); } writeResult(writer,e); } catch (Exception e) { SolrException.log(log, "Exception during commit/optimize",e); writeResult(writer,e); } } // end commit else if ("delete".equals(currTag)) { log.finest("parsing delete"); try { DeleteUpdateCommand cmd = new DeleteUpdateCommand(); cmd.fromPending=true; cmd.fromCommitted=true; int attrcount = xpp.getAttributeCount(); for (int i=0; i<attrcount; i++) { String attrName = xpp.getAttributeName(i); String attrVal = xpp.getAttributeValue(i); if ("fromPending".equals(attrName)) { cmd.fromPending = StrUtils.parseBoolean(attrVal); } else if ("fromCommitted".equals(attrName)) { cmd.fromCommitted = StrUtils.parseBoolean(attrVal); } else { log.warning("unexpected attribute delete/@" + attrName); } } int eventType = xpp.nextTag(); currTag = xpp.getName(); String val = xpp.nextText(); if ("id".equals(currTag)) { cmd.id = val; updateHandler.delete(cmd); log.info("delete(id " + val + ") 0 " + (System.currentTimeMillis()-startTime)); } else if ("query".equals(currTag)) { cmd.query = val; updateHandler.deleteByQuery(cmd); log.info("deleteByQuery(query " + val + ") 0 " + (System.currentTimeMillis()-startTime)); } else { log.warning("unexpected XML tag /delete/"+currTag); throw new SolrException(400,"unexpected XML tag /delete/"+currTag); } writer.write("<result status=\"0\"></result>"); while (xpp.nextTag() != XmlPullParser.END_TAG); } catch (SolrException e) { log(e); log.info("delete "+e.code+" "+(System.currentTimeMillis()-startTime)); writeResult(writer,e); } catch (Exception e) { log(e); writeResult(writer,e); } } // end delete } catch (XmlPullParserException e) { log(e); writeResult(writer,e); } catch (IOException e) { log(e); writeResult(writer,e); } catch (SolrException e) { log(e); log.info("update "+e.code+" "+(System.currentTimeMillis()-startTime)); writeResult(writer,e); } catch (Throwable e) { log(e); writeResult(writer,e); } }
|
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/c5118151102a36851ac5430332617c2ca389c6d2/SolrCore.java/buggy/src/java/org/apache/solr/core/SolrCore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
12,
2514,
2949,
16,
5497,
2633,
13,
288,
565,
368,
2660,
30,
527,
579,
358,
4800,
4207,
813,
358,
3294,
35,
565,
368,
10621,
300,
4825,
506,
13752,
358,
9004,
1296,
5811,
341,
19,
279,
3272,
565,
368,
1508,
394,
4364,
3377,
506,
3096,
341,
19,
83,
18404,
358,
1592,
5945,
565,
5714,
9629,
2678,
619,
11858,
273,
446,
31,
565,
775,
288,
1377,
619,
11858,
273,
3272,
18,
2704,
9629,
2678,
5621,
565,
289,
1044,
261,
4432,
9629,
25746,
425,
13,
288,
1377,
604,
394,
3235,
12,
73,
1769,
565,
289,
565,
1525,
8657,
33,
3163,
18,
2972,
28512,
5621,
565,
775,
288,
1377,
619,
11858,
18,
542,
1210,
12,
10530,
1769,
1377,
619,
11858,
18,
4285,
1805,
5621,
1377,
514,
4306,
1805,
273,
619,
11858,
18,
17994,
5621,
1377,
309,
7566,
1289,
9654,
14963,
12,
17016,
1805,
3719,
288,
3639,
613,
18,
926,
395,
2932,
16478,
4670,
18,
2725,
12,
1289,
2225,
1769,
3639,
1436,
1891,
2189,
1797,
273,
394,
1436,
1891,
2189,
5621,
3639,
1797,
18,
5965,
40,
18294,
33,
5743,
31,
225,
368,
326,
805,
3639,
509,
1267,
33,
20,
31,
3639,
1250,
4634,
3843,
33,
5743,
16,
16015,
3843,
33,
5743,
31,
3639,
509,
1604,
1883,
273,
619,
11858,
18,
588,
1499,
1380,
5621,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1747,
1883,
31,
277,
27245,
288,
1850,
514,
11583,
273,
619,
11858,
18,
588,
19240,
12,
77,
1769,
1850,
514,
1604,
3053,
273,
619,
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,
1089,
12,
2514,
2949,
16,
5497,
2633,
13,
288,
565,
368,
2660,
30,
527,
579,
358,
4800,
4207,
813,
358,
3294,
35,
565,
368,
10621,
300,
4825,
506,
13752,
358,
9004,
1296,
5811,
341,
19,
279,
3272,
565,
368,
1508,
394,
4364,
3377,
506,
3096,
341,
19,
83,
18404,
358,
1592,
5945,
565,
5714,
9629,
2678,
619,
11858,
273,
446,
31,
565,
775,
288,
1377,
619,
11858,
273,
3272,
18,
2704,
9629,
2678,
5621,
565,
289,
1044,
261,
4432,
9629,
25746,
425,
13,
288,
1377,
604,
394,
3235,
12,
73,
1769,
565,
289,
565,
1525,
8657,
33,
3163,
18,
2972,
28512,
5621,
565,
775,
288,
1377,
619,
11858,
18,
542,
1210,
12,
10530,
1769,
1377,
619,
2
] |
public void setLastBackoffReason(String s) { this.lastRoutingBackoffReason = s;
|
public synchronized void setLastBackoffReason(String s) { lastRoutingBackoffReason = s;
|
public void setLastBackoffReason(String s) { this.lastRoutingBackoffReason = s; }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/7575bc3fb32360236cef62f655076b5de182f7d4/PeerNode.java/buggy/src/freenet/node/PeerNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
17764,
16757,
8385,
12,
780,
272,
13,
288,
202,
202,
2211,
18,
2722,
13966,
16757,
8385,
273,
272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
17764,
16757,
8385,
12,
780,
272,
13,
288,
202,
202,
2211,
18,
2722,
13966,
16757,
8385,
273,
272,
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
] |
public void addButton(final MyActionButton button, String commandLink, String description) { final int y = myIdx += 2; GridBagConstraints gBC = new GridBagConstraints(0, y, 1, 2, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, ICON_INSETS, ACTION_BUTTON_PADDING, ACTION_BUTTON_PADDING); button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); myPanel.add(button, gBC); button.setupWithinPanel(myMainPanel, MAIN_GROUP, myCount, myColumnIdx); myCount++; JLabel name = new JLabel("<html><nobr><u>" + commandLink + "</u></nobr></html>"); name.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { button.onPress(e); } }); name.setForeground(CAPTION_COLOR); name.setFont(LINK_FONT); name.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); gBC = new GridBagConstraints(1, y, 1, 1, 0, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE, new Insets(15, 15, 0, 0), 5, 0); myPanel.add(name, gBC); description = "<HTML>" + description + "</html>"; JLabel shortDescription = new JLabel(description); shortDescription.setFont(TEXT_FONT); gBC = new GridBagConstraints(1, y + 1, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(7, 15, 0, 30), 5, 0); myPanel.add(shortDescription, gBC); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/70abbbb29c0a3a23695ead5aca864bec5bb23301/WelcomeScreen.java/clean/source/com/intellij/openapi/wm/impl/welcomeScreen/WelcomeScreen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
3616,
12,
6385,
8005,
1803,
3616,
3568,
16,
514,
1296,
2098,
16,
514,
2477,
13,
288,
1377,
727,
509,
677,
273,
3399,
4223,
1011,
576,
31,
1377,
13075,
314,
16283,
273,
3639,
394,
13075,
12,
20,
16,
677,
16,
404,
16,
576,
16,
374,
16,
374,
16,
13075,
18,
50,
28212,
31285,
16,
13075,
18,
9826,
16,
467,
2248,
67,
706,
28092,
16,
11385,
67,
20068,
67,
52,
26710,
16,
11385,
67,
20068,
67,
52,
26710,
1769,
1377,
3568,
18,
542,
6688,
12,
6688,
18,
588,
1386,
2178,
6688,
12,
6688,
18,
12346,
67,
7509,
55,
916,
10019,
1377,
3399,
5537,
18,
1289,
12,
5391,
16,
314,
16283,
1769,
1377,
3568,
18,
8401,
18949,
5537,
12,
4811,
6376,
5537,
16,
22299,
67,
8468,
16,
3399,
1380,
16,
3399,
1494,
4223,
1769,
1377,
3399,
1380,
9904,
31,
1377,
21403,
508,
273,
394,
21403,
2932,
32,
2620,
4438,
82,
947,
86,
4438,
89,
2984,
397,
1296,
2098,
397,
6823,
89,
4695,
82,
947,
86,
4695,
2620,
2984,
1769,
1377,
508,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
3639,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
1850,
3568,
18,
265,
11840,
12,
73,
1769,
3639,
289,
1377,
15549,
5411,
508,
18,
542,
23206,
12,
3587,
3725,
67,
10989,
1769,
1377,
508,
18,
542,
5711,
12,
10554,
67,
25221,
1769,
1377,
508,
18,
542,
6688,
12,
6688,
18,
588,
1386,
2178,
6688,
12,
6688,
18,
12346,
67,
7509,
55,
916,
10019,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
3616,
12,
6385,
8005,
1803,
3616,
3568,
16,
514,
1296,
2098,
16,
514,
2477,
13,
288,
1377,
727,
509,
677,
273,
3399,
4223,
1011,
576,
31,
1377,
13075,
314,
16283,
273,
3639,
394,
13075,
12,
20,
16,
677,
16,
404,
16,
576,
16,
374,
16,
374,
16,
13075,
18,
50,
28212,
31285,
16,
13075,
18,
9826,
16,
467,
2248,
67,
706,
28092,
16,
11385,
67,
20068,
67,
52,
26710,
16,
11385,
67,
20068,
67,
52,
26710,
1769,
1377,
3568,
18,
542,
6688,
12,
6688,
18,
588,
1386,
2178,
6688,
12,
6688,
18,
12346,
67,
7509,
55,
916,
10019,
1377,
3399,
5537,
18,
1289,
12,
5391,
16,
314,
16283,
1769,
1377,
3568,
18,
8401,
18949,
5537,
2
] |
||
assertTrue("Check Full copy", destination.length() == FILE2_SIZE);
|
assertTrue("Check Full copy", destination.length() == testFile2Size);
|
public void testCopyFile2ToDir() throws Exception { final File directory = new File(getTestDirectory(), "subdir"); if (!directory.exists()) directory.mkdirs(); final File destination = new File(directory, m_testFile2.getName()); FileUtils.copyFileToDirectory(m_testFile2, directory); assertTrue("Check Exist", destination.exists()); assertTrue("Check Full copy", destination.length() == FILE2_SIZE); }
|
56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/7340ed4ad3f4e8d3c6ce67fa0b5a30f39adf6546/FileUtilsTestCase.java/clean/src/test/org/apache/commons/io/FileUtilsTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2951,
812,
22,
774,
1621,
1435,
1216,
1185,
288,
3639,
727,
1387,
1867,
273,
394,
1387,
12,
588,
4709,
2853,
9334,
315,
1717,
1214,
8863,
3639,
309,
16051,
5149,
18,
1808,
10756,
5411,
1867,
18,
24816,
8291,
5621,
3639,
727,
1387,
2929,
273,
394,
1387,
12,
5149,
16,
312,
67,
3813,
812,
22,
18,
17994,
10663,
3639,
13779,
18,
3530,
812,
774,
2853,
12,
81,
67,
3813,
812,
22,
16,
1867,
1769,
3639,
1815,
5510,
2932,
1564,
22558,
3113,
2929,
18,
1808,
10663,
3639,
1815,
5510,
2932,
1564,
11692,
1610,
3113,
2929,
18,
2469,
1435,
422,
1842,
812,
22,
1225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1842,
2951,
812,
22,
774,
1621,
1435,
1216,
1185,
288,
3639,
727,
1387,
1867,
273,
394,
1387,
12,
588,
4709,
2853,
9334,
315,
1717,
1214,
8863,
3639,
309,
16051,
5149,
18,
1808,
10756,
5411,
1867,
18,
24816,
8291,
5621,
3639,
727,
1387,
2929,
273,
394,
1387,
12,
5149,
16,
312,
67,
3813,
812,
22,
18,
17994,
10663,
3639,
13779,
18,
3530,
812,
774,
2853,
12,
81,
67,
3813,
812,
22,
16,
1867,
1769,
3639,
1815,
5510,
2932,
1564,
22558,
3113,
2929,
18,
1808,
10663,
3639,
1815,
5510,
2932,
1564,
11692,
1610,
3113,
2929,
18,
2469,
1435,
422,
1842,
812,
22,
1225,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public QName(String namespaceURI, String localPart, String prefix)
|
public QName(String namespaceURI, String localPart)
|
public QName(String namespaceURI, String localPart, String prefix) { if (namespaceURI == null) { namespaceURI = XMLConstants.NULL_NS_URI; } if (localPart == null) { throw new IllegalArgumentException(); } if (prefix == null) { prefix = XMLConstants.DEFAULT_NS_PREFIX; } this.namespaceURI = namespaceURI; this.localPart = localPart; this.prefix = prefix; StringBuffer buf = new StringBuffer(); if (namespaceURI != null && namespaceURI.length() > 0) { buf.append('{'); buf.append(namespaceURI); buf.append('}'); } if (prefix != null && prefix.length() > 0) { buf.append(prefix); buf.append(':'); } buf.append(localPart); qName = buf.toString(); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/045a5b41cdfa747889101d3993040acf89788bc4/QName.java/buggy/core/src/classpath/javax/javax/xml/namespace/QName.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16723,
12,
780,
19421,
16,
514,
1191,
1988,
13,
225,
288,
565,
309,
261,
4937,
3098,
422,
446,
13,
1377,
288,
3639,
19421,
273,
3167,
2918,
18,
8560,
67,
3156,
67,
3098,
31,
1377,
289,
565,
309,
261,
3729,
1988,
422,
446,
13,
1377,
288,
3639,
604,
394,
2754,
5621,
1377,
289,
565,
309,
261,
3239,
422,
446,
13,
1377,
288,
3639,
1633,
273,
3167,
2918,
18,
5280,
67,
3156,
67,
6307,
31,
1377,
289,
565,
333,
18,
4937,
3098,
273,
19421,
31,
565,
333,
18,
3729,
1988,
273,
1191,
1988,
31,
565,
333,
18,
3239,
273,
1633,
31,
3639,
6674,
1681,
273,
394,
6674,
5621,
565,
309,
261,
4937,
3098,
480,
446,
597,
19421,
18,
2469,
1435,
405,
374,
13,
1377,
288,
3639,
1681,
18,
6923,
2668,
95,
8284,
3639,
1681,
18,
6923,
12,
4937,
3098,
1769,
3639,
1681,
18,
6923,
2668,
1713,
1769,
1377,
289,
565,
309,
261,
3239,
480,
446,
597,
1633,
18,
2469,
1435,
405,
374,
13,
1377,
288,
3639,
1681,
18,
6923,
12,
3239,
1769,
3639,
1681,
18,
6923,
2668,
2497,
1769,
1377,
289,
565,
1681,
18,
6923,
12,
3729,
1988,
1769,
565,
22914,
273,
1681,
18,
10492,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16723,
12,
780,
19421,
16,
514,
1191,
1988,
13,
225,
288,
565,
309,
261,
4937,
3098,
422,
446,
13,
1377,
288,
3639,
19421,
273,
3167,
2918,
18,
8560,
67,
3156,
67,
3098,
31,
1377,
289,
565,
309,
261,
3729,
1988,
422,
446,
13,
1377,
288,
3639,
604,
394,
2754,
5621,
1377,
289,
565,
309,
261,
3239,
422,
446,
13,
1377,
288,
3639,
1633,
273,
3167,
2918,
18,
5280,
67,
3156,
67,
6307,
31,
1377,
289,
565,
333,
18,
4937,
3098,
273,
19421,
31,
565,
333,
18,
3729,
1988,
273,
1191,
1988,
31,
565,
333,
18,
3239,
273,
1633,
31,
3639,
6674,
1681,
273,
394,
6674,
5621,
565,
309,
261,
4937,
3098,
480,
446,
597,
19421,
18,
2469,
2
] |
public void testTablePrivileges() { // At the moment just test that no exceptions are thrown KJ try { DatabaseMetaData dbmd = con.getMetaData(); assertNotNull(dbmd); ResultSet rs = dbmd.getTablePrivileges(null,null,"grantme"); rs.close(); } catch (SQLException sqle) { sqle.printStackTrace(); fail(sqle.getMessage()); } }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/0753d0a0b795623afa84bf04dfa0eb1c8b8e54e5/DatabaseMetaDataTest.java/buggy/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
3813,
1388,
27692,
1435,
202,
95,
202,
202,
759,
861,
451,
351,
7970,
3732,
3813,
19056,
2135,
11855,
834,
12849,
82,
47,
46,
202,
202,
698,
202,
202,
95,
1082,
202,
4254,
2781,
5139,
361,
70,
1264,
33,
591,
18,
588,
6998,
5621,
1082,
202,
11231,
5962,
12,
1966,
1264,
1769,
1082,
202,
13198,
5453,
33,
1966,
1264,
18,
588,
1388,
27692,
12,
2011,
16,
2011,
10837,
16243,
3501,
8863,
1082,
202,
5453,
18,
4412,
5621,
202,
202,
97,
14683,
12,
23116,
11410,
298,
15329,
1082,
202,
11410,
298,
18,
1188,
6332,
5621,
1082,
202,
6870,
12,
11410,
298,
18,
24906,
10663,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
3813,
1388,
27692,
1435,
202,
95,
202,
202,
759,
861,
451,
351,
7970,
3732,
3813,
19056,
2135,
11855,
834,
12849,
82,
47,
46,
202,
202,
698,
202,
202,
95,
1082,
202,
4254,
2781,
5139,
361,
70,
1264,
33,
591,
18,
588,
6998,
5621,
1082,
202,
11231,
5962,
12,
1966,
1264,
1769,
1082,
202,
13198,
5453,
33,
1966,
1264,
18,
588,
1388,
27692,
12,
2011,
16,
2011,
10837,
16243,
3501,
8863,
1082,
202,
5453,
18,
4412,
5621,
202,
202,
97,
14683,
12,
23116,
11410,
298,
15329,
1082,
202,
11410,
298,
18,
1188,
6332,
5621,
1082,
202,
6870,
12,
11410,
298,
18,
24906,
10663,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
public void testRemovePartOfRdnNotRequired() throws NamingException { // Change RDN to another attribute String newRdn = "description=an American singer-songwriter"; ctx.addToEnvironment( "java.naming.ldap.deleteRDN", "false" ); ctx.rename( RDN, newRdn ); // Remove description, which is now RDN attribute Attribute attr = new BasicAttribute( "description" ); Attributes attrs = new BasicAttributes(); attrs.put( attr ); try { ctx.modifyAttributes( newRdn, DirContext.REMOVE_ATTRIBUTE, attrs ); fail( "Deletion of RDN attribute should fail." ); } catch ( SchemaViolationException e ) { // expected behaviour } // Change RDN back to original ctx.addToEnvironment( "java.naming.ldap.deleteRDN", "false" ); ctx.rename( newRdn, RDN ); }
|
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/29defd183e158c150e8b4bd36401d43ecb30058e/ModifyRemoveTest.java/buggy/server-unit/src/test/java/org/apache/directory/server/ModifyRemoveTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
3288,
1988,
951,
54,
5176,
1248,
3705,
1435,
15069,
24102,
503,
95,
759,
3043,
54,
8609,
869,
304,
3011,
4589,
780,
2704,
54,
5176,
1546,
3384,
33,
304,
9864,
3036,
634,
6658,
17,
816,
75,
6299,
14432,
5900,
18,
1289,
774,
5494,
2932,
6290,
18,
82,
7772,
18,
14394,
18,
3733,
54,
8609,
15937,
5743,
8863,
5900,
18,
18539,
12,
54,
8609,
16,
2704,
54,
5176,
1769,
759,
10026,
1389,
16,
12784,
291,
3338,
54,
8609,
4589,
1499,
1747,
33,
2704,
8252,
1499,
2932,
3384,
8863,
2498,
7039,
33,
2704,
8252,
2498,
5621,
7039,
18,
458,
12,
1747,
1769,
698,
95,
5900,
18,
17042,
2498,
12,
2704,
54,
5176,
16,
1621,
1042,
18,
22122,
67,
11616,
16,
7039,
1769,
6870,
2932,
13064,
792,
54,
8609,
4350,
76,
1006,
6870,
1199,
1769,
97,
14683,
12,
3078,
27052,
73,
15329,
759,
3825,
31772,
477,
97,
759,
3043,
54,
8609,
823,
869,
8830,
5900,
18,
1289,
774,
5494,
2932,
6290,
18,
82,
7772,
18,
14394,
18,
3733,
54,
8609,
15937,
5743,
8863,
5900,
18,
18539,
12,
2704,
54,
5176,
16,
54,
8609,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
3288,
1988,
951,
54,
5176,
1248,
3705,
1435,
15069,
24102,
503,
95,
759,
3043,
54,
8609,
869,
304,
3011,
4589,
780,
2704,
54,
5176,
1546,
3384,
33,
304,
9864,
3036,
634,
6658,
17,
816,
75,
6299,
14432,
5900,
18,
1289,
774,
5494,
2932,
6290,
18,
82,
7772,
18,
14394,
18,
3733,
54,
8609,
15937,
5743,
8863,
5900,
18,
18539,
12,
54,
8609,
16,
2704,
54,
5176,
1769,
759,
10026,
1389,
16,
12784,
291,
3338,
54,
8609,
4589,
1499,
1747,
33,
2704,
8252,
1499,
2932,
3384,
8863,
2498,
7039,
33,
2704,
8252,
2498,
5621,
7039,
18,
458,
12,
1747,
1769,
698,
95,
5900,
18,
17042,
2498,
12,
2704,
54,
5176,
16,
1621,
1042,
18,
22122,
67,
11616,
2
] |
||
throw new ArgumentError(runtime, "wrong # of arguments(" +
|
throw runtime.newArgumentError("wrong # of arguments(" +
|
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) { if (! isBlockGiven()) { throw new LocalJumpError(runtime, "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); getFrameStack().push(currentBlock.getFrame()); Scope oldScope = (Scope) getScopeStack().getTop(); getScopeStack().setTop(currentBlock.getScope()); getBlockStack().pop(); dynamicVarsStack.push(currentBlock.getDynamicVariables()); pushClass((klass != null) ? klass : currentBlock.getKlass()); if (klass == null) { self = currentBlock.getSelf(); } Node blockVar = currentBlock.getVar(); if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { // Better not have arguments for a no-arg block. if (yieldProc && arrayLength(value) != 0) { throw new ArgumentError(runtime, "wrong # of arguments(" + ((RubyArray)value).getLength() + "for 0)"); } } else if (blockVar instanceof MultipleAsgnNode) { if (!aValue) { value = sValueToMRHS(value, ((MultipleAsgnNode)blockVar).getHeadNode()); } value = mAssign(self, (MultipleAsgnNode)blockVar, (RubyArray)value, yieldProc); } else { if (aValue) { int length = arrayLength(value); if (length == 0) { value = runtime.getNil(); } else if (length == 1) { value = ((RubyArray)value).first(null); } else { // XXXEnebo - Should be warning not error. //throw new ArgumentError(runtime, "wrong # of arguments(" + // length + "for 1)"); } } else if (value == null) { // XXXEnebo - Should be warning not error. //throw new ArgumentError(runtime, "wrong # of arguments(0 for 1)"); } new AssignmentVisitor(runtime, self).assign(blockVar, value, yieldProc); } } ICallable method = currentBlock.getMethod(); if (method == null) { return runtime.getNil(); } getIterStack().push(currentBlock.getIter()); IRubyObject[] args = ArgsUtil.arrayify(runtime, value); try { while (true) { try { return method.call(runtime, self, null, args, false); } catch (RedoJump rExcptn) { } } } catch (NextJump nExcptn) { IRubyObject nextValue = nExcptn.getNextValue(); return nextValue == null ? runtime.getNil() : nextValue; } finally { getIterStack().pop(); popClass(); dynamicVarsStack.pop(); getBlockStack().setCurrent(currentBlock); getFrameStack().pop(); getScopeStack().setTop(oldScope); dynamicVarsStack.pop(); } }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2824,
12,
7937,
10340,
921,
460,
16,
15908,
10340,
921,
365,
16,
19817,
3120,
7352,
16,
1250,
2824,
15417,
16,
1250,
24406,
13,
288,
3639,
309,
16051,
31394,
6083,
10756,
288,
5411,
604,
394,
3566,
26743,
668,
12,
9448,
16,
315,
23604,
2566,
596,
434,
1203,
8863,
3639,
289,
3639,
1817,
9791,
5555,
5621,
3639,
3914,
30610,
273,
11902,
2624,
7675,
588,
3935,
5621,
3639,
25396,
2624,
7675,
6206,
12,
2972,
1768,
18,
588,
3219,
10663,
3639,
5468,
1592,
3876,
273,
261,
3876,
13,
19203,
2624,
7675,
588,
3401,
5621,
3639,
19203,
2624,
7675,
542,
3401,
12,
2972,
1768,
18,
588,
3876,
10663,
3639,
11902,
2624,
7675,
5120,
5621,
3639,
5976,
5555,
2624,
18,
6206,
12,
2972,
1768,
18,
588,
9791,
6158,
10663,
3639,
1817,
797,
12443,
22626,
480,
446,
13,
692,
7352,
294,
30610,
18,
588,
47,
459,
10663,
3639,
309,
261,
22626,
422,
446,
13,
288,
5411,
365,
273,
30610,
18,
588,
10084,
5621,
3639,
289,
7734,
2029,
1203,
1537,
273,
30610,
18,
588,
1537,
5621,
3639,
309,
261,
2629,
1537,
480,
446,
13,
288,
5411,
309,
261,
2629,
1537,
1276,
12744,
4117,
907,
13,
288,
7734,
368,
605,
11214,
486,
1240,
1775,
364,
279,
1158,
17,
3175,
1203,
18,
7734,
309,
261,
23604,
15417,
597,
526,
1782,
12,
1132,
13,
480,
374,
13,
288,
5397,
604,
3099,
18,
2704,
1379,
668,
2932,
21530,
468,
434,
1775,
2932,
397,
11794,
14015,
54,
10340,
1076,
13,
1132,
2934,
588,
1782,
1435,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2824,
12,
7937,
10340,
921,
460,
16,
15908,
10340,
921,
365,
16,
19817,
3120,
7352,
16,
1250,
2824,
15417,
16,
1250,
24406,
13,
288,
3639,
309,
16051,
31394,
6083,
10756,
288,
5411,
604,
394,
3566,
26743,
668,
12,
9448,
16,
315,
23604,
2566,
596,
434,
1203,
8863,
3639,
289,
3639,
1817,
9791,
5555,
5621,
3639,
3914,
30610,
273,
11902,
2624,
7675,
588,
3935,
5621,
3639,
25396,
2624,
7675,
6206,
12,
2972,
1768,
18,
588,
3219,
10663,
3639,
5468,
1592,
3876,
273,
261,
3876,
13,
19203,
2624,
7675,
588,
3401,
5621,
3639,
19203,
2624,
7675,
542,
3401,
12,
2972,
1768,
18,
588,
3876,
10663,
3639,
11902,
2624,
7675,
5120,
5621,
3639,
5976,
5555,
2624,
18,
2
] |
/* @bgen(jjtree) FieldPattern */ ASTFieldPattern jjtn000 = new ASTFieldPattern(JJTFIELDPATTERN); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); Token type, name; try { label_9: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case FIELD_ANNOTATION: ; break; default: jj_la1[14] = jj_gen; break label_9; } FieldAttribute(); } label_10: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case FIELD_PRIVATE: case FIELD_PROTECTED: case FIELD_PUBLIC: case FIELD_STATIC: case FIELD_ABSTRACT: case FIELD_FINAL: case FIELD_TRANSIENT: case FIELD_NOT: ; break; default: jj_la1[15] = jj_gen; break label_10; } FieldModifier(); } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case FIELD_CLASS_PATTERN: type = jj_consume_token(FIELD_CLASS_PATTERN); break; case FIELD_ARRAY_CLASS_PATTERN: type = jj_consume_token(FIELD_ARRAY_CLASS_PATTERN); break; default: jj_la1[16] = jj_gen; jj_consume_token(-1); throw new ParseException(); } jjtn000.setFieldTypePattern(type.image); name = jj_consume_token(FIELD_CLASS_PATTERN); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setFullNamePattern(name.image); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { { if (true) throw (RuntimeException) jjte000; } } if (jjte000 instanceof ParseException) { { if (true) throw (ParseException) jjte000; } } { if (true) throw (Error) jjte000; } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); }
|
/*@bgen(jjtree) FieldPattern */ ASTFieldPattern jjtn000 = new ASTFieldPattern(JJTFIELDPATTERN); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token type, name; try { label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FIELD_ANNOTATION: ; break; default: jj_la1[14] = jj_gen; break label_9;
|
static final public void FieldPattern() throws ParseException { /* @bgen(jjtree) FieldPattern */ ASTFieldPattern jjtn000 = new ASTFieldPattern(JJTFIELDPATTERN); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); Token type, name; try { label_9: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case FIELD_ANNOTATION: ; break; default: jj_la1[14] = jj_gen; break label_9; } FieldAttribute(); } label_10: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case FIELD_PRIVATE: case FIELD_PROTECTED: case FIELD_PUBLIC: case FIELD_STATIC: case FIELD_ABSTRACT: case FIELD_FINAL: case FIELD_TRANSIENT: case FIELD_NOT: ; break; default: jj_la1[15] = jj_gen; break label_10; } FieldModifier(); } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case FIELD_CLASS_PATTERN: type = jj_consume_token(FIELD_CLASS_PATTERN); break; case FIELD_ARRAY_CLASS_PATTERN: type = jj_consume_token(FIELD_ARRAY_CLASS_PATTERN); break; default: jj_la1[16] = jj_gen; jj_consume_token(-1); throw new ParseException(); } jjtn000.setFieldTypePattern(type.image); name = jj_consume_token(FIELD_CLASS_PATTERN); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setFullNamePattern(name.image); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { { if (true) throw (RuntimeException) jjte000; } } if (jjte000 instanceof ParseException) { { if (true) throw (ParseException) jjte000; } } { if (true) throw (Error) jjte000; } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/3cbef97c5dee07422d7e9cdf6b2f9304448a9eee/ExpressionParser.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
1071,
918,
2286,
3234,
1435,
1216,
10616,
288,
3639,
1748,
632,
70,
4507,
12,
78,
78,
3413,
13,
2286,
3234,
1195,
3639,
9183,
974,
3234,
10684,
5088,
3784,
273,
394,
9183,
974,
3234,
12,
46,
46,
56,
6776,
10831,
1769,
3639,
1250,
10684,
5111,
3784,
273,
638,
31,
3639,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
3639,
3155,
618,
16,
508,
31,
3639,
775,
288,
5411,
1433,
67,
29,
30,
1323,
261,
3767,
13,
288,
7734,
1620,
14015,
78,
78,
67,
496,
79,
422,
300,
21,
13,
692,
10684,
67,
496,
79,
1435,
294,
10684,
67,
496,
79,
13,
288,
10792,
648,
9921,
67,
24922,
30,
13491,
274,
13491,
898,
31,
10792,
805,
30,
13491,
10684,
67,
11821,
21,
63,
3461,
65,
273,
10684,
67,
4507,
31,
13491,
898,
1433,
67,
29,
31,
7734,
289,
7734,
2286,
1499,
5621,
5411,
289,
5411,
1433,
67,
2163,
30,
1323,
261,
3767,
13,
288,
7734,
1620,
14015,
78,
78,
67,
496,
79,
422,
300,
21,
13,
692,
10684,
67,
496,
79,
1435,
294,
10684,
67,
496,
79,
13,
288,
10792,
648,
9921,
67,
20055,
30,
10792,
648,
9921,
67,
3373,
26729,
30,
10792,
648,
9921,
67,
14939,
30,
10792,
648,
9921,
67,
22741,
30,
10792,
648,
9921,
67,
26756,
30,
10792,
648,
9921,
67,
7263,
1013,
30,
10792,
648,
9921,
67,
28412,
30,
10792,
648,
9921,
67,
4400,
30,
13491,
274,
13491,
898,
31,
10792,
805,
30,
13491,
10684,
67,
11821,
21,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
1071,
918,
2286,
3234,
1435,
1216,
10616,
288,
3639,
1748,
632,
70,
4507,
12,
78,
78,
3413,
13,
2286,
3234,
1195,
3639,
9183,
974,
3234,
10684,
5088,
3784,
273,
394,
9183,
974,
3234,
12,
46,
46,
56,
6776,
10831,
1769,
3639,
1250,
10684,
5111,
3784,
273,
638,
31,
3639,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
3639,
3155,
618,
16,
508,
31,
3639,
775,
288,
5411,
1433,
67,
29,
30,
1323,
261,
3767,
13,
288,
7734,
1620,
14015,
78,
78,
67,
496,
79,
422,
300,
21,
13,
692,
10684,
67,
496,
79,
1435,
294,
10684,
67,
496,
79,
13,
288,
10792,
648,
9921,
67,
24922,
30,
13491,
274,
13491,
898,
31,
2
] |
return result; }
|
private List<PathElement> readPath(final Element xmlPathElement) throws InvalidDataException { final ArrayList<PathElement> result = new ArrayList<PathElement>(); final List elements = xmlPathElement.getChildren(PATH_ELEMENT); for (Iterator iterator = elements.iterator(); iterator.hasNext();) { Element xmlPathElementElement = (Element)iterator.next(); final PathElement pathElement = new PathElement(); pathElement.readExternal(xmlPathElementElement); result.add(pathElement); } return result;}
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/de45c06cd7ec2634c07050b4cb74a6bedec1613f/TreeState.java/buggy/openapi/src/com/intellij/ide/util/treeView/TreeState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
987,
32,
743,
1046,
34,
855,
743,
12,
6385,
3010,
2025,
743,
1046,
13,
1216,
1962,
22480,
288,
225,
727,
2407,
32,
743,
1046,
34,
563,
273,
394,
2407,
32,
743,
1046,
34,
5621,
225,
727,
987,
2186,
273,
2025,
743,
1046,
18,
588,
4212,
12,
4211,
67,
10976,
1769,
225,
364,
261,
3198,
2775,
273,
2186,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
565,
3010,
2025,
743,
1046,
1046,
273,
261,
1046,
13,
9838,
18,
4285,
5621,
565,
727,
2666,
1046,
589,
1046,
273,
394,
2666,
1046,
5621,
565,
589,
1046,
18,
896,
6841,
12,
2902,
743,
1046,
1046,
1769,
565,
563,
18,
1289,
12,
803,
1046,
1769,
225,
289,
225,
327,
563,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
987,
32,
743,
1046,
34,
855,
743,
12,
6385,
3010,
2025,
743,
1046,
13,
1216,
1962,
22480,
288,
225,
727,
2407,
32,
743,
1046,
34,
563,
273,
394,
2407,
32,
743,
1046,
34,
5621,
225,
727,
987,
2186,
273,
2025,
743,
1046,
18,
588,
4212,
12,
4211,
67,
10976,
1769,
225,
364,
261,
3198,
2775,
273,
2186,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
565,
3010,
2025,
743,
1046,
1046,
273,
261,
1046,
13,
9838,
18,
4285,
5621,
565,
727,
2666,
1046,
589,
1046,
273,
394,
2666,
1046,
5621,
565,
589,
1046,
18,
896,
6841,
12,
2902,
743,
1046,
1046,
1769,
565,
563,
18,
1289,
12,
803,
1046,
1769,
225,
289,
225,
327,
563,
31,
2
] |
|
} else if (type.typeParams().length > 0 && !isPrimitive(symbol)) {
|
} else if (type.typeParams().length > 0 && !monoPrimitive(symbol)) {
|
public Type transformInfo(Symbol symbol, Type type) { if (symbol.isClass()) { NewMember[] toAdd = membersToAdd(symbol); if (toAdd.length == 0) return type; else { Scope newMembers = new Scope(symbol.members()); for (int i = 0; i < toAdd.length; ++i) newMembers.enterOrOverload(toAdd[i].symbolToAdd()); return Type.compoundType(type.parents(), newMembers, symbol); } } else if (type.typeParams().length > 0 && !isPrimitive(symbol)) { // Polymorphic method/constructor: // - add a value parameter for every type parameter. switch (type) { case PolyType(Symbol[] tparams, // : Type.MethodType(Symbol[] vparams, Type result)): List newVParams = new LinkedList(Arrays.asList(paramsToAdd(symbol))); newVParams.addAll(Arrays.asList(vparams)); Symbol[] newVParamsA = (Symbol[]) newVParams.toArray(new Symbol[newVParams.size()]); return new Type.PolyType(tparams, new Type.MethodType(newVParamsA, result)); default: throw Debug.abort("unexpected type: ", type); } } else return type; }
|
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/1f2e15f4e5c472d9c8b2361dae68d090cfdc9ee5/TypesAsValuesPhase.java/clean/sources/scalac/transformer/TypesAsValuesPhase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
2510,
966,
12,
5335,
3273,
16,
1412,
618,
13,
288,
3639,
309,
261,
7175,
18,
291,
797,
10756,
288,
5411,
1166,
4419,
8526,
25607,
273,
4833,
13786,
12,
7175,
1769,
5411,
309,
261,
869,
986,
18,
2469,
422,
374,
13,
7734,
327,
618,
31,
5411,
469,
288,
7734,
5468,
394,
6918,
273,
394,
5468,
12,
7175,
18,
7640,
10663,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
25607,
18,
2469,
31,
965,
77,
13,
10792,
394,
6918,
18,
2328,
1162,
4851,
945,
12,
869,
986,
63,
77,
8009,
7175,
13786,
10663,
7734,
327,
1412,
18,
22585,
559,
12,
723,
18,
12606,
9334,
394,
6918,
16,
3273,
1769,
5411,
289,
3639,
289,
469,
309,
261,
723,
18,
723,
1370,
7675,
2469,
405,
374,
597,
401,
2586,
83,
9840,
12,
7175,
3719,
288,
5411,
368,
6730,
21976,
707,
19,
12316,
30,
5411,
368,
300,
527,
279,
460,
1569,
364,
3614,
618,
1569,
18,
5411,
1620,
261,
723,
13,
288,
5411,
648,
18394,
559,
12,
5335,
8526,
268,
2010,
16,
368,
294,
12900,
1412,
18,
21988,
12,
5335,
8526,
331,
2010,
16,
1412,
563,
3719,
30,
7734,
987,
394,
58,
1370,
273,
10792,
394,
10688,
12,
12726,
18,
345,
682,
12,
2010,
13786,
12,
7175,
3719,
1769,
7734,
394,
58,
1370,
18,
1289,
1595,
12,
12726,
18,
345,
682,
12,
90,
2010,
10019,
7734,
8565,
8526,
394,
58,
1370,
37,
273,
261,
5335,
63,
5717,
10792,
394,
58,
1370,
18,
31447,
12,
2704,
8565,
63,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
2510,
966,
12,
5335,
3273,
16,
1412,
618,
13,
288,
3639,
309,
261,
7175,
18,
291,
797,
10756,
288,
5411,
1166,
4419,
8526,
25607,
273,
4833,
13786,
12,
7175,
1769,
5411,
309,
261,
869,
986,
18,
2469,
422,
374,
13,
7734,
327,
618,
31,
5411,
469,
288,
7734,
5468,
394,
6918,
273,
394,
5468,
12,
7175,
18,
7640,
10663,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
25607,
18,
2469,
31,
965,
77,
13,
10792,
394,
6918,
18,
2328,
1162,
4851,
945,
12,
869,
986,
63,
77,
8009,
7175,
13786,
10663,
7734,
327,
1412,
18,
22585,
559,
12,
723,
18,
12606,
9334,
394,
6918,
16,
3273,
1769,
5411,
289,
3639,
289,
469,
309,
261,
2
] |
if (fun instanceof NativeFunction) return ((NativeFunction)fun).decompile(this, indent, true); else if (fun instanceof IdFunction) return ((IdFunction)fun).decompile(this, indent, true);
|
if (fun instanceof BaseFunction) return ((BaseFunction)fun).decompile(this, indent, true);
|
public String decompileFunctionBody(Function fun, int indent) { if (fun instanceof NativeFunction) return ((NativeFunction)fun).decompile(this, indent, true); else if (fun instanceof IdFunction) return ((IdFunction)fun).decompile(this, indent, true); else // not sure what the right response here is. JSRef currently // dumps core. return "[native code]\n"; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/c23c5d3729684dc3b7f1750b76fae4ff95723303/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
443,
11100,
2083,
2250,
12,
2083,
9831,
16,
509,
3504,
13,
288,
3639,
309,
261,
12125,
1276,
16717,
2083,
13,
5411,
327,
14015,
9220,
2083,
13,
12125,
2934,
323,
11100,
12,
2211,
16,
3504,
16,
638,
1769,
3639,
469,
309,
261,
12125,
1276,
3124,
2083,
13,
5411,
327,
14015,
548,
2083,
13,
12125,
2934,
323,
11100,
12,
2211,
16,
3504,
16,
638,
1769,
3639,
469,
5411,
368,
486,
3071,
4121,
326,
2145,
766,
2674,
353,
18,
225,
6756,
1957,
4551,
5411,
368,
6711,
2922,
18,
5411,
327,
5158,
13635,
981,
13944,
82,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
514,
443,
11100,
2083,
2250,
12,
2083,
9831,
16,
509,
3504,
13,
288,
3639,
309,
261,
12125,
1276,
16717,
2083,
13,
5411,
327,
14015,
9220,
2083,
13,
12125,
2934,
323,
11100,
12,
2211,
16,
3504,
16,
638,
1769,
3639,
469,
309,
261,
12125,
1276,
3124,
2083,
13,
5411,
327,
14015,
548,
2083,
13,
12125,
2934,
323,
11100,
12,
2211,
16,
3504,
16,
638,
1769,
3639,
469,
5411,
368,
486,
3071,
4121,
326,
2145,
766,
2674,
353,
18,
225,
6756,
1957,
4551,
5411,
368,
6711,
2922,
18,
5411,
327,
5158,
13635,
981,
13944,
82,
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
] |
log.info("valueForBinding: "+ name + " : " + result);
|
log.debug("valueForBinding: "+ name + " : " + result);
|
public Object valueForBinding(String name) { Object result; if(super.hasBinding(name)) { result = super.valueForBinding(name); } else { result = settingsDictionary().objectForKey(name); } if(log.isDebugEnabled()) { log.info("valueForBinding: "+ name + " : " + result); } return result; }
|
50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/bd4734b0006532de54102fc4acafe16224322054/WRQuickReport.java/buggy/DynaReporting/Frameworks/WRReporting/Sources/er/reporting/WRQuickReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
460,
1290,
5250,
12,
780,
508,
13,
288,
3639,
1033,
563,
31,
3639,
309,
12,
9565,
18,
5332,
5250,
12,
529,
3719,
288,
5411,
563,
273,
2240,
18,
1132,
1290,
5250,
12,
529,
1769,
3639,
289,
469,
288,
5411,
563,
273,
1947,
10905,
7675,
1612,
19759,
12,
529,
1769,
3639,
289,
3639,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
2932,
1132,
1290,
5250,
30,
13773,
508,
397,
315,
294,
315,
397,
563,
1769,
3639,
289,
3639,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1033,
460,
1290,
5250,
12,
780,
508,
13,
288,
3639,
1033,
563,
31,
3639,
309,
12,
9565,
18,
5332,
5250,
12,
529,
3719,
288,
5411,
563,
273,
2240,
18,
1132,
1290,
5250,
12,
529,
1769,
3639,
289,
469,
288,
5411,
563,
273,
1947,
10905,
7675,
1612,
19759,
12,
529,
1769,
3639,
289,
3639,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
2932,
1132,
1290,
5250,
30,
13773,
508,
397,
315,
294,
315,
397,
563,
1769,
3639,
289,
3639,
327,
563,
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
] |
break; case 2 : if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; re = new RaiseException(new RubyException(runtime, ((RubyClass)args[0]), string.getValue()));
|
exception = args[0].callMethod("exception"); } else { if (!args[0].respondsTo("exception")) { throw runtime.newTypeError("exception class/object expected");
|
public static IRubyObject raise(IRubyObject recv, IRubyObject[] args) { // FIXME special case in ruby // recv.checkArgumentCount(args, 0, 2); IRuby runtime = recv.getRuntime(); RubyString string = null; RubyException excptn = null; RaiseException re = null; switch (args.length) { case 0 : IRubyObject defaultException = runtime.getGlobalVariables().get("$!"); if (defaultException.isNil()) { re = new RaiseException(runtime, runtime.getClass("RuntimeError"), "", false); } else { re = new RaiseException((RubyException) defaultException); } break; case 1 : if (args[0] instanceof RubyException) { re = new RaiseException((RubyException) args[0]); } else if (args[0] instanceof RubyClass) { re = new RaiseException(RubyException.newInstance(args[0], new IRubyObject[0])); } else { re = new RaiseException(RubyException.newInstance(runtime.getClass("RuntimeError"), args)); } break; case 2 : if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; re = new RaiseException(new RubyException(runtime, ((RubyClass)args[0]), string.getValue())); } break; case 3: if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; excptn = new RubyException(runtime, ((RubyClass)args[0]), string.getValue()); excptn.set_backtrace(args[2]); re = new RaiseException(excptn); } break; default : re = runtime.newArgumentError("wrong number of arguments"); } // Insert exception to be raised into global var and current thread runtime.getGlobalVariables().set("$!", re.getException()); throw re; }
|
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/db72794764bda58903c87df9b567f1f843bea69c/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1002,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
368,
9852,
225,
4582,
648,
316,
22155,
3639,
368,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
576,
1769,
540,
15908,
10340,
3099,
273,
10665,
18,
588,
5576,
5621,
3639,
19817,
780,
533,
273,
446,
31,
3639,
19817,
503,
3533,
337,
82,
273,
446,
31,
3639,
20539,
503,
283,
273,
446,
31,
7734,
1620,
261,
1968,
18,
2469,
13,
288,
3639,
648,
374,
294,
5411,
15908,
10340,
921,
805,
503,
273,
3099,
18,
588,
5160,
6158,
7675,
588,
2932,
8,
4442,
1769,
5411,
309,
261,
1886,
503,
18,
291,
12616,
10756,
288,
7734,
283,
273,
394,
20539,
503,
12,
9448,
16,
3099,
18,
588,
797,
2932,
5576,
668,
6,
3631,
23453,
629,
1769,
5411,
289,
469,
288,
2398,
202,
266,
273,
394,
20539,
503,
12443,
54,
10340,
503,
13,
805,
503,
1769,
5411,
289,
5411,
898,
31,
3639,
648,
404,
294,
5411,
309,
261,
1968,
63,
20,
65,
1276,
19817,
503,
13,
288,
7734,
283,
273,
394,
20539,
503,
12443,
54,
10340,
503,
13,
833,
63,
20,
19226,
5411,
289,
469,
309,
261,
1968,
63,
20,
65,
1276,
19817,
797,
13,
288,
2398,
202,
266,
273,
394,
20539,
503,
12,
54,
10340,
503,
18,
2704,
1442,
12,
1968,
63,
20,
6487,
394,
15908,
10340,
921,
63,
20,
5717,
1769,
5411,
289,
469,
288,
2398,
202,
266,
273,
394,
20539,
503,
12,
54,
10340,
503,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1002,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
368,
9852,
225,
4582,
648,
316,
22155,
3639,
368,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
576,
1769,
540,
15908,
10340,
3099,
273,
10665,
18,
588,
5576,
5621,
3639,
19817,
780,
533,
273,
446,
31,
3639,
19817,
503,
3533,
337,
82,
273,
446,
31,
3639,
20539,
503,
283,
273,
446,
31,
7734,
1620,
261,
1968,
18,
2469,
13,
288,
3639,
648,
374,
294,
5411,
15908,
10340,
921,
805,
503,
273,
3099,
18,
588,
5160,
6158,
7675,
588,
2932,
8,
4442,
1769,
5411,
309,
261,
1886,
503,
18,
291,
12616,
10756,
288,
7734,
283,
273,
394,
2
] |
PostProcessUtil.findLocations(osw.getObjectStore(), Supercontig.class,
|
PostProcessUtil.findLocationAndObjects(osw.getObjectStore(), Supercontig.class,
|
public void testRevFeatureToOneRevContigWithPartialLocations() throws Exception { Set toStore = new HashSet(Arrays.asList(new Object[] { getChromosome(), getChromosomeBand(), getBandOnChr() })); Supercontig sc = (Supercontig) DynamicUtil.createObject(Collections.singleton(Supercontig.class)); sc.setId(new Integer(104)); // --------------------------> chromosome // ---------------------> supercontig // -----><----- // con1 con2 // <--- // exon Contig c1 = (Contig) DynamicUtil.createObject(Collections.singleton(Contig.class)); c1.setId(new Integer(105)); c1.setLength(new Integer(250)); Contig c2 = (Contig) DynamicUtil.createObject(Collections.singleton(Contig.class)); c2.setId(new Integer(106)); c2.setLength(new Integer(70)); Exon e = (Exon) DynamicUtil.createObject(Collections.singleton(Exon.class)); e.setId(new Integer(107)); Location scOnChr = createLocation(getChromosome(), sc, 1, 1201, 1900, Location.class); scOnChr.setId(new Integer(170)); Location contig1OnSc = createLocation(sc, c1, 1, 101, 350, Location.class); contig1OnSc.setId(new Integer(201)); Location contig2OnSc = createLocation(sc, c2, -1, 351, 420, Location.class); contig2OnSc.setId(new Integer(202)); PartialLocation exonOnContig1 = (PartialLocation) createLocation(c1, e, 1, 191, 250, PartialLocation.class); exonOnContig1.setId(new Integer(203)); exonOnContig1.setStartIsPartial(Boolean.FALSE); exonOnContig1.setEndIsPartial(Boolean.TRUE); exonOnContig1.setSubjectStart(new Integer(1)); exonOnContig1.setSubjectEnd(new Integer(10)); PartialLocation exonOnContig2 = (PartialLocation) createLocation(c2, e, -1, 41, 70, PartialLocation.class); exonOnContig2.setId(new Integer(204)); exonOnContig2.setStartIsPartial(Boolean.TRUE); exonOnContig2.setEndIsPartial(Boolean.FALSE); exonOnContig2.setSubjectStart(new Integer(11)); exonOnContig2.setSubjectEnd(new Integer(70)); toStore.add(sc); toStore.add(c1); toStore.add(c2); toStore.add(e); toStore.add(scOnChr); toStore.add(contig1OnSc); toStore.add(contig2OnSc); toStore.add(exonOnContig1); toStore.add(exonOnContig2); Iterator i = toStore.iterator(); while (i.hasNext()) { osw.store((InterMineObject) i.next()); } CalculateLocations cl = new CalculateLocations(osw); cl.createLocations(); ResultsRow rr; // test Exon location on Chromosome Location expected = createLocation(getChromosome(), e, 1, 1491, 1580, Location.class); expected.setId(new Integer(0)); Item expItem = itemFactory.makeItem(expected); Results results = PostProcessUtil.findLocations(osw.getObjectStore(), Chromosome.class, Exon.class, true); Iterator chrExonIter = results.iterator(); rr = (ResultsRow) chrExonIter.next(); Location result = (Location) rr.get(2); assertFalse(chrExonIter.hasNext()); Item resItem = itemFactory.makeItem(result); resItem.setIdentifier("0"); assertEquals(expItem, resItem); // test Exon location on Supercontig expected = createLocation(sc, e, 1, 1491-1200, 1580-1200, Location.class); expected.setId(new Integer(0)); expItem = itemFactory.makeItem(expected); results = PostProcessUtil.findLocations(osw.getObjectStore(), Supercontig.class, Exon.class, true); Iterator supercontigExonIter = results.iterator(); assertTrue(supercontigExonIter.hasNext()); rr = (ResultsRow) supercontigExonIter.next(); result = (Location) rr.get(2); assertFalse(supercontigExonIter.hasNext()); resItem = itemFactory.makeItem(result); resItem.setIdentifier("0"); assertEquals(expItem, resItem); // test Exon location on ChromosomeBand expected = createLocation(getChromosomeBand(), e, 1, 1491-1000, 1580-1000, Location.class); expected.setId(new Integer(0)); expItem = itemFactory.makeItem(expected); results = PostProcessUtil.findLocations(osw.getObjectStore(), ChromosomeBand.class, Exon.class, true); Iterator chrBandExonIter = results.iterator(); assertTrue(chrBandExonIter.hasNext()); result = (Location) ((ResultsRow) chrBandExonIter.next()).get(2); assertFalse(chrBandExonIter.hasNext()); resItem = itemFactory.makeItem(result); resItem.setIdentifier("0"); assertEquals(expItem, resItem); }
|
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/d5dc57fa78b320accc2dd5af31cb31a46c054f7f/CalculateLocationsTest.java/buggy/flymine/model/genomic/src/test/org/flymine/postprocess/CalculateLocationsTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10070,
4595,
16027,
10070,
660,
360,
1190,
9447,
10985,
1435,
1216,
1185,
288,
3639,
1000,
358,
2257,
273,
394,
6847,
12,
12726,
18,
345,
682,
12,
2704,
1033,
8526,
288,
5411,
336,
30761,
16958,
9334,
336,
30761,
16958,
14231,
9334,
2882,
464,
1398,
782,
86,
1435,
7734,
289,
10019,
3639,
14845,
26075,
888,
273,
5411,
261,
8051,
26075,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
8051,
26075,
18,
1106,
10019,
3639,
888,
18,
542,
548,
12,
2704,
2144,
12,
21869,
10019,
3639,
368,
225,
12146,
788,
2122,
22674,
3639,
368,
565,
12146,
553,
34,
565,
2240,
26075,
3639,
368,
4202,
9135,
4438,
13465,
3639,
368,
3639,
356,
21,
225,
356,
22,
3639,
368,
6647,
411,
6062,
3639,
368,
6647,
25668,
3639,
1816,
360,
276,
21,
273,
261,
660,
360,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
660,
360,
18,
1106,
10019,
3639,
276,
21,
18,
542,
548,
12,
2704,
2144,
12,
21661,
10019,
3639,
276,
21,
18,
542,
1782,
12,
2704,
2144,
12,
26520,
10019,
3639,
1816,
360,
276,
22,
273,
261,
660,
360,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
660,
360,
18,
1106,
10019,
3639,
276,
22,
18,
542,
548,
12,
2704,
2144,
12,
22135,
10019,
3639,
276,
22,
18,
542,
1782,
12,
2704,
2144,
12,
7301,
10019,
3639,
1312,
265,
425,
273,
261,
424,
265,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
424,
265,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10070,
4595,
16027,
10070,
660,
360,
1190,
9447,
10985,
1435,
1216,
1185,
288,
3639,
1000,
358,
2257,
273,
394,
6847,
12,
12726,
18,
345,
682,
12,
2704,
1033,
8526,
288,
5411,
336,
30761,
16958,
9334,
336,
30761,
16958,
14231,
9334,
2882,
464,
1398,
782,
86,
1435,
7734,
289,
10019,
3639,
14845,
26075,
888,
273,
5411,
261,
8051,
26075,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
8051,
26075,
18,
1106,
10019,
3639,
888,
18,
542,
548,
12,
2704,
2144,
12,
21869,
10019,
3639,
368,
225,
12146,
788,
2122,
22674,
3639,
368,
565,
12146,
553,
34,
565,
2240,
26075,
3639,
368,
4202,
9135,
4438,
13465,
3639,
368,
3639,
356,
21,
225,
356,
22,
2
] |
} else if(!fileName.equals("<stdin>")) {
|
} else if (!fileName.equals("<stdin>")) {
|
void loadedFile(String fileName, String text) { FileWindow w = getFileWindow(fileName); if(w != null) { swingInvoke(new SetFileText(w, text)); w.show(); } else if(!fileName.equals("<stdin>")) { swingInvoke(new CreateFileWindow(this, fileName, text, -1)); } }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4203,
812,
12,
780,
3968,
16,
514,
977,
13,
288,
3639,
1387,
3829,
341,
273,
6034,
3829,
12,
17812,
1769,
3639,
309,
12,
91,
480,
446,
13,
288,
5411,
9028,
10969,
12,
2704,
1000,
812,
1528,
12,
91,
16,
977,
10019,
5411,
341,
18,
4500,
5621,
3639,
289,
469,
309,
16051,
17812,
18,
14963,
2932,
32,
21772,
2984,
3719,
288,
5411,
9028,
10969,
12,
2704,
1788,
812,
3829,
12,
2211,
16,
4766,
2398,
3968,
16,
4766,
2398,
977,
16,
4766,
2398,
300,
21,
10019,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
918,
4203,
812,
12,
780,
3968,
16,
514,
977,
13,
288,
3639,
1387,
3829,
341,
273,
6034,
3829,
12,
17812,
1769,
3639,
309,
12,
91,
480,
446,
13,
288,
5411,
9028,
10969,
12,
2704,
1000,
812,
1528,
12,
91,
16,
977,
10019,
5411,
341,
18,
4500,
5621,
3639,
289,
469,
309,
16051,
17812,
18,
14963,
2932,
32,
21772,
2984,
3719,
288,
5411,
9028,
10969,
12,
2704,
1788,
812,
3829,
12,
2211,
16,
4766,
2398,
3968,
16,
4766,
2398,
977,
16,
4766,
2398,
300,
21,
10019,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
contents.put(new Integer(index), data);
|
contents.put(new Integer(index), new LimitedRangeIntByteArrayMapElement(index, data, callbacks));
|
public synchronized boolean add(int index, byte[] data) { Logger.minor(this, toString()+" add "+index); if(maxValue == -1) { minValue = index; maxValue = index; } if(index > maxValue) { if(index-minValue >= maxRange) return false; maxValue = index; } if(index < minValue) { if(maxValue-index >= maxRange) return false; minValue = index; } contents.put(new Integer(index), data); notifyAll(); return true; }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/f48ad5c9057903788f63aaa8ccd26e567faf4317/LimitedRangeIntByteArrayMap.java/buggy/src/freenet/support/LimitedRangeIntByteArrayMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
527,
12,
474,
770,
16,
1160,
8526,
501,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
1762,
1435,
9078,
527,
13773,
1615,
1769,
3639,
309,
12,
1896,
620,
422,
300,
21,
13,
288,
5411,
20533,
273,
770,
31,
5411,
18666,
273,
770,
31,
3639,
289,
3639,
309,
12,
1615,
405,
18666,
13,
288,
5411,
309,
12,
1615,
17,
1154,
620,
1545,
943,
2655,
13,
7734,
327,
629,
31,
5411,
18666,
273,
770,
31,
3639,
289,
3639,
309,
12,
1615,
411,
20533,
13,
288,
5411,
309,
12,
1896,
620,
17,
1615,
1545,
943,
2655,
13,
7734,
327,
629,
31,
5411,
20533,
273,
770,
31,
3639,
289,
3639,
2939,
18,
458,
12,
2704,
2144,
12,
1615,
3631,
394,
7214,
329,
2655,
1702,
8826,
863,
1046,
12,
1615,
16,
501,
16,
6689,
10019,
3639,
5066,
1595,
5621,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
527,
12,
474,
770,
16,
1160,
8526,
501,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
1762,
1435,
9078,
527,
13773,
1615,
1769,
3639,
309,
12,
1896,
620,
422,
300,
21,
13,
288,
5411,
20533,
273,
770,
31,
5411,
18666,
273,
770,
31,
3639,
289,
3639,
309,
12,
1615,
405,
18666,
13,
288,
5411,
309,
12,
1615,
17,
1154,
620,
1545,
943,
2655,
13,
7734,
327,
629,
31,
5411,
18666,
273,
770,
31,
3639,
289,
3639,
309,
12,
1615,
411,
20533,
13,
288,
5411,
309,
12,
1896,
620,
17,
1615,
1545,
943,
2655,
13,
7734,
327,
629,
31,
5411,
20533,
273,
770,
31,
3639,
289,
3639,
2939,
18,
458,
12,
2704,
2144,
12,
1615,
2
] |
if (isCancelled(request)) { return cancelled(mapping, form, request, response); } else { String parameter = mapping.getParameter(); if (parameter == null) { String message = messages.getMessage("dispatch.handler", mapping.getPath());
|
log.error(message);
|
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (isCancelled(request)) { return cancelled(mapping, form, request, response); } else { // Identify the request parameter containing the method name String parameter = mapping.getParameter(); if (parameter == null) { String message = messages.getMessage("dispatch.handler", mapping.getPath()); log.error(message); throw new ServletException(message); } // Get the method's name. This could be overridden in subclasses. String name = getMethodName(mapping, form, request, response, parameter); // Invoke the named method, and return the result return dispatchMethod(mapping, form, request, response, name); } }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/2731bdde797d3f421435bded1896d7e0b822c4ea/DispatchAction.java/buggy/src/share/org/apache/struts/actions/DispatchAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4766,
4382,
1204,
646,
16,
4766,
9984,
590,
16,
4766,
12446,
766,
13,
5411,
1216,
1185,
288,
3639,
309,
261,
291,
21890,
12,
2293,
3719,
288,
5411,
327,
13927,
12,
6770,
16,
646,
16,
590,
16,
766,
1769,
3639,
289,
469,
288,
5411,
368,
25622,
326,
590,
1569,
4191,
326,
707,
508,
5411,
514,
1569,
273,
2874,
18,
588,
1662,
5621,
5411,
309,
261,
6775,
422,
446,
13,
288,
7734,
514,
883,
273,
13491,
2743,
18,
24906,
2932,
10739,
18,
4176,
3113,
2874,
18,
588,
743,
10663,
7734,
613,
18,
1636,
12,
2150,
1769,
7734,
604,
394,
16517,
12,
2150,
1769,
5411,
289,
5411,
368,
968,
326,
707,
1807,
508,
18,
1220,
3377,
506,
11000,
316,
15320,
18,
5411,
514,
508,
273,
26058,
12,
6770,
16,
646,
16,
590,
16,
766,
16,
1569,
1769,
5411,
368,
14373,
326,
4141,
707,
16,
471,
327,
326,
563,
5411,
327,
3435,
1305,
12,
6770,
16,
646,
16,
590,
16,
766,
16,
508,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4766,
4382,
1204,
646,
16,
4766,
9984,
590,
16,
4766,
12446,
766,
13,
5411,
1216,
1185,
288,
3639,
309,
261,
291,
21890,
12,
2293,
3719,
288,
5411,
327,
13927,
12,
6770,
16,
646,
16,
590,
16,
766,
1769,
3639,
289,
469,
288,
5411,
368,
25622,
326,
590,
1569,
4191,
326,
707,
508,
5411,
514,
1569,
273,
2874,
18,
588,
1662,
5621,
5411,
309,
261,
6775,
422,
446,
13,
288,
7734,
514,
883,
273,
13491,
2743,
18,
24906,
2932,
10739,
18,
4176,
3113,
2874,
18,
588,
743,
10663,
7734,
613,
18,
1636,
12,
2150,
1769,
7734,
604,
394,
16517,
12,
2150,
1769,
5411,
289,
5411,
368,
968,
326,
707,
1807,
2
] |
browser.setDialogTitle(OStrings.SW_TITLE);
|
browser.setDialogTitle(OStrings.getString("SW_TITLE"));
|
private void doBrowseDirectory() { OmegaTFileChooser browser = new OmegaTFileChooser(); //String str = OStrings.getString("BUTTON_SELECT"); //browser.setApproveButtonText(str); browser.setDialogTitle(OStrings.SW_TITLE); browser.setFileSelectionMode(OmegaTFileChooser.DIRECTORIES_ONLY); String curDir = m_dirField.getText(); if (!curDir.equals("")) // NOI18N { File dir = new File(curDir); if (dir.exists() && dir.isDirectory()) { browser.setCurrentDirectory(dir); } } browser.showOpenDialog(this); File dir = browser.getSelectedFile(); if (dir == null) return; String str = dir.getAbsolutePath() + File.separator; m_dirField.setText(str); }
|
8797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8797/d76bcd54805e907e7fa0dcad27f410bb2dec2a60/SearchWindow.java/buggy/src/org/omegat/gui/SearchWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
27304,
2853,
1435,
565,
288,
3639,
25645,
11061,
56,
812,
17324,
4748,
273,
394,
25645,
11061,
56,
812,
17324,
5621,
3639,
368,
780,
609,
273,
531,
7957,
18,
588,
780,
2932,
20068,
67,
4803,
8863,
3639,
368,
11213,
18,
542,
12053,
537,
3616,
1528,
12,
701,
1769,
3639,
4748,
18,
542,
6353,
4247,
12,
51,
7957,
18,
588,
780,
2932,
18746,
67,
14123,
7923,
1769,
3639,
4748,
18,
542,
812,
6233,
2309,
12,
51,
81,
11061,
56,
812,
17324,
18,
17541,
916,
8805,
67,
10857,
1769,
3639,
514,
662,
1621,
273,
312,
67,
1214,
974,
18,
588,
1528,
5621,
7734,
309,
16051,
1397,
1621,
18,
14963,
2932,
6,
3719,
6862,
6862,
1082,
202,
759,
30085,
2643,
50,
3639,
288,
5411,
1387,
1577,
273,
394,
1387,
12,
1397,
1621,
1769,
5411,
309,
261,
1214,
18,
1808,
1435,
597,
1577,
18,
291,
2853,
10756,
5411,
288,
7734,
4748,
18,
542,
3935,
2853,
12,
1214,
1769,
5411,
289,
3639,
289,
7734,
4748,
18,
4500,
3678,
6353,
12,
2211,
1769,
3639,
1387,
1577,
273,
4748,
18,
588,
7416,
812,
5621,
3639,
309,
261,
1214,
422,
446,
13,
5411,
327,
31,
7734,
514,
609,
273,
1577,
18,
588,
10368,
743,
1435,
397,
1387,
18,
11287,
31,
3639,
312,
67,
1214,
974,
18,
542,
1528,
12,
701,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
27304,
2853,
1435,
565,
288,
3639,
25645,
11061,
56,
812,
17324,
4748,
273,
394,
25645,
11061,
56,
812,
17324,
5621,
3639,
368,
780,
609,
273,
531,
7957,
18,
588,
780,
2932,
20068,
67,
4803,
8863,
3639,
368,
11213,
18,
542,
12053,
537,
3616,
1528,
12,
701,
1769,
3639,
4748,
18,
542,
6353,
4247,
12,
51,
7957,
18,
588,
780,
2932,
18746,
67,
14123,
7923,
1769,
3639,
4748,
18,
542,
812,
6233,
2309,
12,
51,
81,
11061,
56,
812,
17324,
18,
17541,
916,
8805,
67,
10857,
1769,
3639,
514,
662,
1621,
273,
312,
67,
1214,
974,
18,
588,
1528,
5621,
7734,
309,
16051,
1397,
1621,
18,
14963,
2932,
6,
3719,
6862,
6862,
1082,
202,
759,
30085,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.