rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
if(!((evt.isControlDown() ^ evt.isAltDown()) || evt.isMetaDown())) | if(!(evt.isControlDown() || evt.isAltDown() || evt.isMetaDown())) | public void keyPressed(KeyEvent evt) { int keyCode = evt.getKeyCode(); int modifiers = evt.getModifiers(); if(!((evt.isControlDown() ^ evt.isAltDown()) || evt.isMetaDown())) { // if modifier active, handle all keys, otherwise // only some if((keyCode >= KeyEvent.VK_A && keyCode <= KeyEvent.VK_Z) || (keyCode >= KeyEvent.VK_0 && keyCode <= KeyEvent.VK_9)) { return; } else if(keyCode == KeyEvent.VK_SPACE) { return; } else if(readNextChar != null) { if(keyCode == KeyEvent.VK_ESCAPE) { readNextChar = null; view.getStatus().setMessage(null); } else if(!evt.isActionKey() && keyCode != KeyEvent.VK_TAB && keyCode != KeyEvent.VK_ENTER) { return; } } else { // ok even with no modifiers } } KeyStroke keyStroke = KeyStroke.getKeyStroke(keyCode, modifiers); Object o = currentBindings.get(keyStroke); if(o == null) { // Don't beep if the user presses some // key we don't know about unless a // prefix is active. Otherwise it will // beep when caps lock is pressed, etc. if(currentBindings != bindings) { Toolkit.getDefaultToolkit().beep(); // F10 should be passed on, but C+e F10 // shouldn't repeatCount = 0; repeat = false; evt.consume(); currentBindings = bindings; } else if(modifiers == 0 && (keyCode == KeyEvent.VK_ENTER || keyCode == KeyEvent.VK_TAB)) { userInput((char)keyCode); evt.consume(); } } if(readNextChar != null) { readNextChar = null; view.getStatus().setMessage(null); } if(o instanceof EditAction) { currentBindings = bindings; invokeAction((EditAction)o); evt.consume(); } else if(o instanceof Hashtable) { currentBindings = (Hashtable)o; evt.consume(); } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/eca0450a08d2520f048e05c7525796c05f7cf089/DefaultInputHandler.java/buggy/org/gjt/sp/jedit/gui/DefaultInputHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
498,
24624,
12,
653,
1133,
6324,
13,
202,
95,
202,
202,
474,
16369,
273,
6324,
18,
588,
653,
1085,
5621,
202,
202,
474,
10429,
273,
6324,
18,
588,
11948,
5621,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
498,
24624,
12,
653,
1133,
6324,
13,
202,
95,
202,
202,
474,
16369,
273,
6324,
18,
588,
653,
1085,
5621,
202,
202,
474,
10429,
273,
6324,
18,
588,
11948,
5621,
202,
202,
... |
textarea.selectAll(); | textarea.copy(); | public void actionPerformed(ActionEvent e) { textarea.selectAll(); } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/a41f9b7fc0e8a9ca6c3e7ecad40f82c1a74d8dbd/Editor.java/buggy/app/Editor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1850,
19691,
18,
3530,
5621,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1850,
19691,
18,
3530,
5621,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if(code != TIMED_OUT && code != GENERATED_REJECTED_OVERLOAD && code != INTERNAL_ERROR && code != ROUTE_REALLY_NOT_FOUND) { | if((code != TIMED_OUT) && (code != GENERATED_REJECTED_OVERLOAD) && (code != INTERNAL_ERROR) && (code != ROUTE_REALLY_NOT_FOUND)) { | private void finish(int code, PeerNode next) { Logger.minor(this, "Finished: "+code+" on "+this, new Exception("debug")); if(status != NOT_FINISHED) throw new IllegalStateException("finish() called with "+code+" when was already "+status); if(code == ROUTE_NOT_FOUND && !sentRequest) code = ROUTE_REALLY_NOT_FOUND; status = code; synchronized(this) { notifyAll(); } if(code != TIMED_OUT && code != GENERATED_REJECTED_OVERLOAD && code != INTERNAL_ERROR && code != ROUTE_REALLY_NOT_FOUND) { Logger.minor(this, "SSK insert cost "+getTotalSentBytes()+"/"+getTotalReceivedBytes()+" bytes ("+code+")"); (source == null ? node.localChkInsertBytesSentAverage : node.remoteChkInsertBytesSentAverage) .report(getTotalSentBytes()); (source == null ? node.localChkInsertBytesReceivedAverage : node.remoteChkInsertBytesReceivedAverage) .report(getTotalReceivedBytes()); } Logger.minor(this, "Set status code: "+getStatusString()); // Nothing to wait for, no downstream transfers, just exit. } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SSKInsertSender.java/buggy/src/freenet/node/SSKInsertSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4076,
12,
474,
981,
16,
10669,
907,
1024,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
10577,
30,
13773,
710,
9078,
603,
13773,
2211,
16,
394,
1185,
2932,
4148,
7923,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4076,
12,
474,
981,
16,
10669,
907,
1024,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
10577,
30,
13773,
710,
9078,
603,
13773,
2211,
16,
394,
1185,
2932,
4148,
7923,
1... |
_maxIdentifierLength = maxIdentifierLength; | _maxTableNameLength = maxIdentifierLength; _maxColumnNameLength = maxIdentifierLength; _maxConstraintNameLength = maxIdentifierLength; _maxForeignKeyNameLength = maxIdentifierLength; | public void setMaxIdentifierLength(int maxIdentifierLength) { _maxIdentifierLength = maxIdentifierLength; } | 1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/1c8005b78c0c227c00c26cd06dc341b155a3582f/PlatformInfo.java/buggy/src/java/org/apache/ddlutils/PlatformInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10851,
3004,
1782,
12,
474,
943,
3004,
1782,
13,
565,
288,
3639,
389,
1896,
7147,
1782,
1377,
273,
943,
3004,
1782,
31,
389,
1896,
8516,
1782,
377,
273,
943,
3004,
1782,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10851,
3004,
1782,
12,
474,
943,
3004,
1782,
13,
565,
288,
3639,
389,
1896,
7147,
1782,
1377,
273,
943,
3004,
1782,
31,
389,
1896,
8516,
1782,
377,
273,
943,
3004,
1782,
31,
... |
public void set(org.quickfix.field.LegSymbol value) | public void set(quickfix.field.LegSymbol value) | public void set(org.quickfix.field.LegSymbol value) { setField(value); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteResponse.java/buggy/src/java/src/quickfix/fix44/QuoteResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
8329,
5335,
460,
13,
225,
288,
16331,
12,
1132,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
8329,
5335,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ((active0 & 0x4000L) != 0L) | if ((active0 & 0x20000L) != 0L) | private final int jjStopStringLiteralDfa_2(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0xd000L) != 0L) return 2; if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 56; return 5; } return -1; case 1: if ((active0 & 0x4000L) != 0L) return 0; if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 56; jjmatchedPos = 1; return 5; } return -1; case 2: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 56; jjmatchedPos = 2; return 5; } return -1; case 3: if ((active0 & 0x4000000L) != 0L) { jjmatchedKind = 56; jjmatchedPos = 3; return 5; } if ((active0 & 0x2000000L) != 0L) return 5; return -1; default : return -1; }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
22,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
22,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
76... |
if (jj_3R_20()) return true; | if (jj_scan_token(WHITESPACE)) return true; | final private boolean jj_3R_29() { if (jj_3R_20()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/Parser.java/clean/src/java/org/apache/velocity/runtime/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5540,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
20767,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5540,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
20767,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
1... |
if ( block.left_set ) { | if (block.left_set) { | public static void paintFixed( Context c, Box block, boolean restyle ) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if ( block.top_set ) { yoff += block.top; } if ( block.right_set ) { xoff = -rect.x + rect.width - block.width - block.right; } if ( block.left_set ) { xoff = block.left; } if ( block.bottom_set ) { yoff = -rect.y + rect.height - block.height - block.bottom; } c.translate( xoff, yoff ); paintNormal( c, block, restyle ); c.translate( -xoff, -yoff ); } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/8f81e5fe9f6f8593d3c596d30a3f100cb87dbf27/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
7505,
12,
1772,
276,
16,
8549,
1203,
16,
1250,
3127,
1362,
262,
288,
3639,
13264,
4917,
273,
276,
18,
588,
2482,
4877,
5621,
3639,
368,
3350,
93,
333,
35,
3639,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
12574,
7505,
12,
1772,
276,
16,
8549,
1203,
16,
1250,
3127,
1362,
262,
288,
3639,
13264,
4917,
273,
276,
18,
588,
2482,
4877,
5621,
3639,
368,
3350,
93,
333,
35,
3639,
5... |
f = new File(profilename + "." + NGRAM_FILE_EXTENSION); | f = new File(profilename + "." + FILE_EXTENSION); | public static void main(String args[]) { String usage = "Usage: NGramProfile [-create profilename filename encoding] [-similarity file1 file2] [-score profile-name filename encoding]"; int command = 0; final int CREATE = 1; final int SIMILARITY = 2; final int SCORE = 3; String profilename = ""; String filename = ""; String filename2 = ""; String encoding = ""; if (args.length == 0) { System.err.println(usage); System.exit(-1); } for (int i = 0; i < args.length; i++) { // parse command line if (args[i].equals("-create")) { // found -create option command = CREATE; profilename = args[++i]; filename = args[++i]; encoding = args[++i]; } if (args[i].equals("-similarity")) { // found -similarity option command = SIMILARITY; filename = args[++i]; filename2 = args[++i]; encoding = args[++i]; } if (args[i].equals("-score")) { // found -Score option command = SCORE; profilename = args[++i]; filename = args[++i]; encoding = args[++i]; } } try { switch (command) { case CREATE: File f = new File(filename); FileInputStream fis = new FileInputStream(f); NGramProfile newProfile = NGramProfile.createNgramProfile(profilename, fis, encoding); fis.close(); f = new File(profilename + "." + NGRAM_FILE_EXTENSION); FileOutputStream fos = new FileOutputStream(f); newProfile.save(fos); System.out.println("new profile " + profilename + "." + NGRAM_FILE_EXTENSION + " was created."); break; case SIMILARITY: f = new File(filename); fis = new FileInputStream(f); newProfile = NGramProfile.createNgramProfile(filename, fis, encoding); newProfile.normalize(); f = new File(filename2); fis = new FileInputStream(f); NGramProfile newProfile2 = NGramProfile.createNgramProfile(filename2, fis, encoding); newProfile2.normalize(); System.out.println("Similarity is " + newProfile.getSimilarity(newProfile2)); break; case SCORE: f = new File(filename); fis = new FileInputStream(f); newProfile = NGramProfile.createNgramProfile(filename, fis, encoding); f = new File(profilename + "." + NGRAM_FILE_EXTENSION); fis = new FileInputStream(f); NGramProfile compare = new NGramProfile(profilename); compare.load(fis); System.out.println("Score is " + compare.getSimilarity(newProfile)); break; } } catch (Exception e) { LOG.severe("Caught an exception:" + e); } } | 46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/2242f009e69f5462aa35c25150facf524d0f30da/NGramProfile.java/clean/src/plugin/languageidentifier/src/java/org/apache/nutch/analysis/lang/NGramProfile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
565,
514,
4084,
273,
315,
5357,
30,
423,
43,
1940,
4029,
23059,
2640,
450,
3459,
1544,
2688,
65,
23059,
22985,
560,
585,
21,
585,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
63,
5717,
288,
565,
514,
4084,
273,
315,
5357,
30,
423,
43,
1940,
4029,
23059,
2640,
450,
3459,
1544,
2688,
65,
23059,
22985,
560,
585,
21,
585,
22,
... |
public ParseData(ParseStatus status, String title, Outlink[] outlinks, ContentProperties metadata) { this.status = status; this.title = title; this.outlinks = outlinks; this.metadata = metadata; } | public ParseData() {} | public ParseData(ParseStatus status, String title, Outlink[] outlinks, ContentProperties metadata) { this.status = status; this.title = title; this.outlinks = outlinks; this.metadata = metadata; } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/1af59b89ee343955baeb885b5cdfdd331c2431e5/ParseData.java/buggy/src/java/org/apache/nutch/parse/ParseData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2884,
751,
12,
3201,
1482,
1267,
16,
514,
2077,
16,
2976,
1232,
8526,
596,
7135,
16,
3697,
2297,
1982,
13,
288,
565,
333,
18,
2327,
273,
1267,
31,
565,
333,
18,
2649,
273,
2077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2884,
751,
12,
3201,
1482,
1267,
16,
514,
2077,
16,
2976,
1232,
8526,
596,
7135,
16,
3697,
2297,
1982,
13,
288,
565,
333,
18,
2327,
273,
1267,
31,
565,
333,
18,
2649,
273,
2077,
... |
shouldInsertARK(); | public void set(String val) throws InvalidConfigValueException { // FIXME do we need to tell anyone? if(val.length() == 0) { // Set to null overrideIPAddress = null; lastIPAddress = null; shouldInsertARK(); return; } InetAddress addr; try { addr = InetAddress.getByName(val); shouldInsertARK(); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; shouldInsertARK(); } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/abec2415122554ac43604ade3bfe3c5a42b56bdf/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
444,
12,
780,
1244,
13,
1216,
1962,
809,
9738,
288,
9506,
202,
759,
9852,
741,
732,
1608,
358,
9276,
1281,
476,
35,
9506,
202,
430,
12,
1125,
18,
2469,
1435,
422,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
444,
12,
780,
1244,
13,
1216,
1962,
809,
9738,
288,
9506,
202,
759,
9852,
741,
732,
1608,
358,
9276,
1281,
476,
35,
9506,
202,
430,
12,
1125,
18,
2469,
1435,
422,
374,
... | |
System.out.println ("In CSInfoInt ctor"); | public CodeSetInfoInterceptor(ORB orb) { System.out.println ("In CSInfoInt ctor"); // create the info org.omg.CONV_FRAME.CodeSetComponentInfo cs_info = new org.omg.CONV_FRAME.CodeSetComponentInfo(); // fill the info cs_info.ForCharData = new org.omg.CONV_FRAME. CodeSetComponent( CodeSet.getTCSDefault(), new int[] { CodeSet.getConversionDefault() } ); cs_info.ForWcharData = new org.omg.CONV_FRAME. CodeSetComponent( CodeSet.getTCSWDefault(), new int[] { CodeSet.UTF8 } ); // encapsulate it into TaggedComponent CDROutputStream os = new CDROutputStream( orb ); os.beginEncapsulatedArray(); org.omg.CONV_FRAME.CodeSetComponentInfoHelper.write( os, cs_info ); tagc = new org.omg.IOP.TaggedComponent( org.omg.IOP.TAG_CODE_SETS.value, os.getBufferCopy()); os.close (); os = null; cs_info = null; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/169c163ee3bec1d18976423b3b9e2575533f5676/CodeSetInfoInterceptor.java/buggy/src/org/jacorb/orb/standardInterceptors/CodeSetInfoInterceptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3356,
694,
966,
10281,
12,
916,
38,
16823,
13,
565,
288,
9079,
368,
752,
326,
1123,
3639,
2358,
18,
362,
75,
18,
2248,
58,
67,
15072,
18,
1085,
694,
1841,
966,
2873,
67,
1376,
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,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3356,
694,
966,
10281,
12,
916,
38,
16823,
13,
565,
288,
9079,
368,
752,
326,
1123,
3639,
2358,
18,
362,
75,
18,
2248,
58,
67,
15072,
18,
1085,
694,
1841,
966,
2873,
67,
1376,
2... | |
updateFor(event); } | updateFor(event); } | public void sleeping(IJobChangeEvent event) { updateFor(event); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
5329,
310,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
2725,
1290,
12,
2575,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
5329,
310,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
2725,
1290,
12,
2575,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for (int b = fis.read(); b >= 0; b = fis.read()) { | for (int b = is.read(); b >= 0; b = is.read()) { | public void testDeployUndeploy() throws Exception { // Create a factory OMFactory factory = OMAbstractFactory.getOMFactory(); // Use the factory to create three elements OMNamespace depns = factory.createOMNamespace("http://www.apache.org/ode/pmapi","deployapi"); OMElement root = factory.createOMElement("deploy", null); OMElement namePart = factory.createOMElement("name", depns); namePart.setText("DynPartner"); OMElement zipPart = factory.createOMElement("package", depns); OMElement zipElmt = factory.createOMElement("zip", depns); // Add the zip to deploy // TODO figure out a way to get a process zip FileInputStream fis = new FileInputStream("/home/dusty/tmp/DynPartner.zip"); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); for (int b = fis.read(); b >= 0; b = fis.read()) { outputStream.write((byte) b); } String base64Enc = Base64.encode(outputStream.toByteArray()); OMText zipContent = factory.createOMText(base64Enc, "application/zip", true); root.addChild(namePart); root.addChild(zipPart); zipPart.addChild(zipElmt); zipElmt.addChild(zipContent); // Deploy sendToDeployment(root); // Prepare undeploy message root = factory.createOMElement("undeploy", depns); OMElement part = factory.createOMElement("processName", null); part.setText("DynPartner"); root.addChild(part); // Undeploy// sendToDeployment(root); } | 45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/40604da2488c0e0e9de3a307e5a05bd456b9a02a/DeploymentTest.java/clean/axis2/src/test/java/org/apache/ode/axis2/management/DeploymentTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10015,
984,
12411,
1435,
1216,
1185,
288,
3639,
368,
1788,
279,
3272,
3639,
28839,
1733,
3272,
273,
531,
5535,
3336,
1733,
18,
588,
1872,
1733,
5621,
3639,
368,
2672,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10015,
984,
12411,
1435,
1216,
1185,
288,
3639,
368,
1788,
279,
3272,
3639,
28839,
1733,
3272,
273,
531,
5535,
3336,
1733,
18,
588,
1872,
1733,
5621,
3639,
368,
2672,
326,
... |
replaceInstanceId = submissionElement.attributeValue("instance"); | replaceInstanceId = XFormsUtils.namespaceId(containingDocument, submissionElement.attributeValue("instance")); | private void extractSubmissionElement() { if (!submissionElementExtracted) { avtAction = submissionElement.attributeValue("action"); method = submissionElement.attributeValue("method"); method = Dom4jUtils.qNameToexplodedQName(Dom4jUtils.extractAttributeValueQName(submissionElement, "method")); validate = !"false".equals(submissionElement.attributeValue("validate")); relevant = !"false".equals(submissionElement.attributeValue("relevant")); version = submissionElement.attributeValue("version"); if (submissionElement.attributeValue("indent") != null) { indent = Boolean.valueOf(submissionElement.attributeValue("indent")).booleanValue(); } mediatype = submissionElement.attributeValue("mediatype"); encoding = submissionElement.attributeValue("encoding"); if (submissionElement.attributeValue("omitxmldeclaration") != null) { omitxmldeclaration = Boolean.valueOf(submissionElement.attributeValue("omit-xml-declaration")).booleanValue(); } if (submissionElement.attributeValue("standalone") != null) { standalone = new Boolean(submissionElement.attributeValue("standalone")); } cdatasectionelements = submissionElement.attributeValue("cdata-section-elements"); if (submissionElement.attributeValue("replace") != null) { replace = submissionElement.attributeValue("replace"); if (replace.equals("instance")) { replaceInstanceId = submissionElement.attributeValue("instance"); } } if (submissionElement.attributeValue("separator") != null) { separator = submissionElement.attributeValue("separator"); } includenamespaceprefixes = submissionElement.attributeValue("includenamespaceprefixes"); // Extension: username and password avtXXFormsUsername = submissionElement.attributeValue(XFormsConstants.XXFORMS_USERNAME_QNAME); avtXXFormsPassword = submissionElement.attributeValue(XFormsConstants.XXFORMS_PASSWORD_QNAME); // Remember that we did this submissionElementExtracted = true; } } | 51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/29c268698b1771b4cce444978708bede0fa7933e/XFormsModelSubmission.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2608,
17865,
1046,
1435,
288,
3639,
309,
16051,
12684,
1046,
4976,
329,
13,
288,
5411,
1712,
88,
1803,
273,
8515,
1046,
18,
4589,
620,
2932,
1128,
8863,
5411,
707,
273,
8515,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2608,
17865,
1046,
1435,
288,
3639,
309,
16051,
12684,
1046,
4976,
329,
13,
288,
5411,
1712,
88,
1803,
273,
8515,
1046,
18,
4589,
620,
2932,
1128,
8863,
5411,
707,
273,
8515,
1... |
public void complete() throws IOException { System.out.flush(); System.err.flush(); if (inputStream != null) { inputStream.close(); } outputStream.close(); errorStream.close(); if (baos != null) { setPropertyFromBAOS(baos, outputProperty); } if (errorBaos != null) { setPropertyFromBAOS(errorBaos, errorProperty); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/77db23b64b1c6031498058a2e35fb4240ef59e24/Redirector.java/clean/src/main/org/apache/tools/ant/taskdefs/Redirector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3912,
1435,
1216,
1860,
288,
3639,
2332,
18,
659,
18,
11330,
5621,
3639,
2332,
18,
370,
18,
11330,
5621,
7734,
309,
261,
2630,
1228,
480,
446,
13,
288,
5411,
10010,
18,
4412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3912,
1435,
1216,
1860,
288,
3639,
2332,
18,
659,
18,
11330,
5621,
3639,
2332,
18,
370,
18,
11330,
5621,
7734,
309,
261,
2630,
1228,
480,
446,
13,
288,
5411,
10010,
18,
4412,
... | ||
g.setColor(saved_color); g.setFont(f); | protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, textRect); return; } Color fg = tabPane.getForegroundAt(tabIndex); if (fg == null) fg = tabPane.getForeground(); Color bg = tabPane.getBackgroundAt(tabIndex); if (bg == null) bg = tabPane.getBackground(); Color saved_color = g.getColor(); Font f = g.getFont(); g.setFont(font); if (tabPane.isEnabledAt(tabIndex)) { g.setColor(fg); int mnemIndex = tabPane.getDisplayedMnemonicIndexAt(tabIndex); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x, textRect.y + metrics.getAscent()); else g.drawString(title, textRect.x, textRect.y + metrics.getAscent()); } else { g.setColor(bg.brighter()); int mnemIndex = tabPane.getDisplayedMnemonicIndexAt(tabIndex); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x, textRect.y); else g.drawString(title, textRect.x, textRect.y); g.setColor(bg.darker()); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x + 1, textRect.y + 1); else g.drawString(title, textRect.x + 1, textRect.y + 1); } g.setColor(saved_color); g.setFont(f); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BasicTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
12574,
1528,
12,
17558,
314,
16,
509,
3246,
12420,
16,
10063,
3512,
16,
21821,
10063,
5653,
4309,
16,
509,
3246,
1016,
16,
514,
2077,
16,
21821,
13264,
977,
6120,
16,
1250,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
12574,
1528,
12,
17558,
314,
16,
509,
3246,
12420,
16,
10063,
3512,
16,
21821,
10063,
5653,
4309,
16,
509,
3246,
1016,
16,
514,
2077,
16,
21821,
13264,
977,
6120,
16,
1250,
209... | |
comp.method.compile_push_string (symbol.toString ()); | comp.compileConstant (symbol); if (comp.immediate) comp.method.compile_checkcast (comp.scmSymbolType); | public void compile (Compilation comp, boolean ignore_result) { if (ignore_result) return; if (binding != null) compile_load (binding, comp); else { comp.method.compile_push_string (symbol.toString ()); comp.method.compile_invoke_static (comp.lookupGlobalMethod); } } | 40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/7c191f321e6419d724006a46486f427814f6e569/ReferenceExp.java/buggy/kawa/lang/ReferenceExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4074,
261,
19184,
1161,
16,
1250,
2305,
67,
2088,
13,
225,
288,
565,
309,
261,
6185,
67,
2088,
13,
1377,
327,
31,
565,
309,
261,
7374,
480,
446,
13,
1377,
4074,
67,
945,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4074,
261,
19184,
1161,
16,
1250,
2305,
67,
2088,
13,
225,
288,
565,
309,
261,
6185,
67,
2088,
13,
1377,
327,
31,
565,
309,
261,
7374,
480,
446,
13,
1377,
4074,
67,
945,
26... |
else | } else { | private void createRegisteredFilters(Composite bottomComposite) { Composite listArea = new Composite(bottomComposite, SWT.NONE); listArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); listArea.setLayout(new GridLayout()); Label title = new Label(listArea, SWT.NONE); title.setText(MarkerMessages.ProblemFilterDialog_System_Filters_Title); definedList = CheckboxTableViewer.newCheckList(listArea, SWT.BORDER); definedList.setContentProvider(new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ public Object[] getElements(Object inputElement) { return MarkerSupportRegistry.getInstance() .getRegisteredFilters().toArray(); } /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { // Do nothing } /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { // Do nothing } }); definedList.setLabelProvider(new LabelProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) */ public String getText(Object element) { return ((MarkerFilter) element).getName(); } }); definedList .addSelectionChangedListener(new ISelectionChangedListener() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent) */ public void selectionChanged(SelectionChangedEvent event) { ISelection selection = event.getSelection(); if (selection instanceof IStructuredSelection) { Object selected = ((IStructuredSelection) selection) .getFirstElement(); if (selected == null) systemSettingsLabel.setText(Util.EMPTY_STRING); else systemSettingsLabel .setText(getSystemFilterString((ProblemFilter) selected)); } else systemSettingsLabel.setText(Util.EMPTY_STRING); showSystemLabel(true); } }); Iterator definedFilters = MarkerSupportRegistry.getInstance() .getRegisteredFilters().iterator(); definedList.setInput(this); while (definedFilters.hasNext()) { MarkerFilter next = (MarkerFilter) definedFilters.next(); definedList.setChecked(next, next.isEnabled()); } definedList.getControl().setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true)); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/DialogProblemFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
10868,
5422,
12,
9400,
5469,
9400,
13,
288,
202,
202,
9400,
666,
5484,
273,
394,
14728,
12,
9176,
9400,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1098,
5484,
18,
542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
10868,
5422,
12,
9400,
5469,
9400,
13,
288,
202,
202,
9400,
666,
5484,
273,
394,
14728,
12,
9176,
9400,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1098,
5484,
18,
542... |
throw new IllegalArgumentException("Illegal name argument '" + name + "' (parent is " + parent == null ? "" : "not " + "null)"); | throw new IllegalArgumentException("Illegal name argument '" + name + "' (parent is " + parent == null ? "" : "not " + "null)"); | protected AbstractPreferences(AbstractPreferences parent, String name) { if ((name == null) // name should be given || (name.length() > MAX_NAME_LENGTH) // 80 characters max || (parent == null && name.length() != 0) // root has no name || (parent != null && name.length() == 0) // all other nodes do || (name.indexOf('/') != -1)) // must not contain '/' throw new IllegalArgumentException("Illegal name argument '" + name + "' (parent is " + parent == null ? "" : "not " + "null)"); this.parent = parent; this.name = name; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
12377,
12,
7469,
12377,
982,
16,
514,
508,
13,
288,
202,
202,
430,
14015,
529,
422,
446,
13,
368,
508,
1410,
506,
864,
1082,
202,
20081,
261,
529,
18,
2469,
1435,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4115,
12377,
12,
7469,
12377,
982,
16,
514,
508,
13,
288,
202,
202,
430,
14015,
529,
422,
446,
13,
368,
508,
1410,
506,
864,
1082,
202,
20081,
261,
529,
18,
2469,
1435,
405,
... |
void signalEntryFlush(String key, String cacheName) { | void signalEntryFlush(String key) { | void signalEntryFlush(String key, String cacheName) { if (log.isDebugEnabled()) { log.debug("flushEntry called for cache '" + cacheName + "', key '" + key + "'"); } if (!shuttingDown) { bus.sendNotification(new ClusterNotification(ClusterNotification.FLUSH_KEY, cacheName, key)); } } | 58834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58834/d500f24c8aede88f65f71296055255d1ee78d231/ClusterManager.java/clean/src/plugins/clustersupport/java/com/opensymphony/oscache/plugins/clustersupport/ClusterManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4277,
1622,
8207,
12,
780,
498,
13,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
2932,
11330,
1622,
2566,
364,
1247,
2119,
397,
18154,
397,
14912,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4277,
1622,
8207,
12,
780,
498,
13,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
2932,
11330,
1622,
2566,
364,
1247,
2119,
397,
18154,
397,
14912,... |
if (count <= 0 || count > choiceSize) { throw new IllegalArgumentException("'count' must be greater than 0 "+ "and smaller than or equal "+ " to the size of the collection."); | if (count < 0 || count > choiceSize) { throw new IllegalArgumentException("'count' negative "+ "or greater than collection size."); } if (count == 0) { return Collections.EMPTY_LIST; | public static List randomSelection(Collection c, int count) { int choiceSize = c.size(); if (count <= 0 || count > choiceSize) { throw new IllegalArgumentException("'count' must be greater than 0 "+ "and smaller than or equal "+ " to the size of the collection."); } Object[] arr = c.toArray(); ArrayList result = new ArrayList(count); while (--count > 0) { int idx = random.nextInt(choiceSize); result.add(arr[idx]); arr[idx] = arr[choiceSize - 1]; // Replace chosen item with last item. choiceSize--; } result.add(arr[0]); return result; } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/831740f07fcfeb6cb3ae8a5599894e56843efba9/CollectionUtil.java/buggy/src/org/lockss/util/CollectionUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
987,
2744,
6233,
12,
2532,
276,
16,
509,
1056,
13,
288,
565,
509,
6023,
1225,
273,
276,
18,
1467,
5621,
565,
309,
261,
1883,
1648,
374,
747,
1056,
405,
6023,
1225,
13,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
2744,
6233,
12,
2532,
276,
16,
509,
1056,
13,
288,
565,
509,
6023,
1225,
273,
276,
18,
1467,
5621,
565,
309,
261,
1883,
1648,
374,
747,
1056,
405,
6023,
1225,
13,
288,
... |
reportGenericSchemaError("error in content of simpleType"); | Object[] args = { qualifiedName}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "InvalidSTContent", args, XMLErrorReporter.SEVERITY_ERROR); | private DatatypeValidator traverseSimpleTypeDecl(Element simpleTypeDecl, Object[] attrValues, XSDocumentInfo schemaDoc, boolean isGlobal) { String nameProperty = (String)attrValues[XSAttributeChecker.ATTIDX_NAME]; String qualifiedName = nameProperty; Hashtable fFacetData = null; //--------------------------------------------------- // set qualified name //--------------------------------------------------- if (nameProperty == null) { // anonymous simpleType qualifiedName = fSchemaDoc.fTargetNamespace == null? ",#s#"+(fSimpleTypeAnonCount++): fSchemaDoc.fTargetNamespace+",#S#"+(fSimpleTypeAnonCount++); //REVISIT: // add to symbol table? } else { qualifiedName = fSchemaDoc.fTargetNamespace == null? ","+nameProperty: fSchemaDoc.fTargetNamespace+","+nameProperty; //REVISIT: // add to symbol table? } //---------------------------------------------------------- // REVISIT! // update _final_ registry //---------------------------------------------------------- XInt finalAttr = (XInt)attrValues[XSAttributeChecker.ATTIDX_FINAL]; int finalProperty = finalAttr == null ? schemaDoc.fFinalDefault : finalAttr.intValue(); //---------------------------------------------------------------------- //annotation?,(list|restriction|union) //---------------------------------------------------------------------- Element content = DOMUtil.getFirstChildElement(simpleTypeDecl); content = checkContent(content, attrValues, schemaDoc); if (content == null) { reportGenericSchemaError("no child element found for simpleType '"+ nameProperty+"'"); return null; } // General Attribute Checking Object[] contentAttrs = fAttrChecker.checkAttributes(content, false, schemaDoc); // REVISIT: when to return the array fAttrChecker.returnAttrArray(contentAttrs, schemaDoc); //---------------------------------------------------------------------- //use content.getLocalName for the cases there "xsd:" is a prefix, ei. "xsd:list" //---------------------------------------------------------------------- String varietyProperty = DOMUtil.getLocalName(content); //content.getLocalName(); QName baseTypeName = null; Vector memberTypes = null; Vector dTValidators = null; int size = 0; boolean list = false; boolean union = false; boolean restriction = false; int numOfTypes = 0; //list/restriction = 1, union = "+" if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { //traverse List baseTypeName = (QName)contentAttrs[XSAttributeChecker.ATTIDX_ITEMTYPE]; list = true; if (fListName.length() != 0) { // parent is <list> datatype reportCosListOfAtomic(); return null; } else { fListName = qualifiedName; } } else if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { //traverse Restriction baseTypeName = (QName)contentAttrs[XSAttributeChecker.ATTIDX_BASE]; //content.getAttribute( SchemaSymbols.ATT_BASE ); restriction= true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { //traverse union union = true; memberTypes = (Vector)contentAttrs[XSAttributeChecker.ATTIDX_MEMBERTYPES]; //content.getAttribute( SchemaSymbols.ATT_MEMBERTYPES); if (memberTypes != null) { size = memberTypes.size(); } else { size = 1; //at least one must be seen as <simpleType> decl } dTValidators = new Vector (size, 2); } else { Object[] args = { varietyProperty}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "FeatureUnsupported", args, XMLErrorReporter.SEVERITY_ERROR); } if (DOMUtil.getNextSiblingElement(content) != null) { // REVISIT: Localize reportGenericSchemaError("error in content of simpleType"); } DatatypeValidator baseValidator = null; if (baseTypeName == null && memberTypes == null) { //--------------------------- //must 'see' <simpleType> //--------------------------- //content = {annotation?,simpleType?...} content = DOMUtil.getFirstChildElement(content); //check content (annotation?, ...) content = checkContent(content, contentAttrs, schemaDoc); if (content == null) { reportGenericSchemaError("no child element found for simpleType '"+ nameProperty+"'"); return null; } if (DOMUtil.getLocalName(content).equals( SchemaSymbols.ELT_SIMPLETYPE )) { baseValidator = traverseLocal(content, fSchemaDoc, fGrammar); if (baseValidator != null && union) { dTValidators.addElement((DatatypeValidator)baseValidator); } if (baseValidator == null) { Object[] args = {content.getAttribute( SchemaSymbols.ATT_BASE )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "UnknownBaseDatatype", args, XMLErrorReporter.SEVERITY_ERROR); return null; } } else { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); return null; } } //end - must see simpleType? else { //----------------------------- //base was provided - get proper validator. //----------------------------- numOfTypes = 1; if (union) { numOfTypes= size; } //-------------------------------------------------------------------- // this loop is also where we need to find out whether the type being used as // a base (or itemType or whatever) allows such things. //-------------------------------------------------------------------- int baseRefContext = (restriction? SchemaSymbols.RESTRICTION:0); baseRefContext = baseRefContext | (union? SchemaSymbols.UNION:0); baseRefContext = baseRefContext | (list ? SchemaSymbols.LIST:0); for (int i=0; i<numOfTypes; i++) { //find all validators if (union) { baseTypeName = (QName)memberTypes.elementAt(i); } baseValidator = findDTValidator ( simpleTypeDecl, baseTypeName, baseRefContext); if (baseValidator == null) { reportGenericSchemaError("base type not found: '"+baseTypeName.uri+","+baseTypeName.localpart+"'"); baseValidator = (DatatypeValidator)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_STRING); } // ------------------------------ // (variety is list)cos-list-of-atomic // ------------------------------ if (fListName.length() != 0) { if (baseValidator instanceof ListDatatypeValidator) { reportCosListOfAtomic(); return null; } //----------------------------------------------------- // if baseValidator is of type (union) need to look // at Union validators to make sure that List is not one of them //----------------------------------------------------- if (isListDatatype(baseValidator)) { reportCosListOfAtomic(); return null; } } if (union) { dTValidators.addElement((DatatypeValidator)baseValidator); //add validator to structure } } } //end - base is available // ------------------------------------------ // move to next child // <base==empty)->[simpleType]->[facets] OR // <base!=empty)->[facets] // ------------------------------------------ if (baseTypeName == null) { content = DOMUtil.getNextSiblingElement( content ); } else { content = DOMUtil.getFirstChildElement(content); } // ------------------------------------------ //get more types for union if any // ------------------------------------------ if (union) { int index=size; if (memberTypes != null) { content = checkContent(content, contentAttrs, schemaDoc); } while (content!=null) { baseValidator = traverseLocal(content, fSchemaDoc, fGrammar); if (baseValidator != null) { if (fListName.length() != 0 && baseValidator instanceof ListDatatypeValidator) { reportCosListOfAtomic(); return null; } dTValidators.addElement((DatatypeValidator)baseValidator); } if (baseValidator == null) { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ), simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "UnknownBaseDatatype", args, XMLErrorReporter.SEVERITY_ERROR); baseValidator = (DatatypeValidator)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_STRING); } content = DOMUtil.getNextSiblingElement( content ); } } // end - traverse Union if (fListName.length() != 0) { // reset fListName, meaning that we are done with // traversing <list> and its itemType resolves to atomic value if (fListName.equals(qualifiedName)) { fListName = fSchemaHandler.EMPTY_STRING; } } if (restriction && content != null) { fFacetInfo fi = traverseFacets(content, contentAttrs,nameProperty, baseValidator, schemaDoc, fGrammar); fFacetData = fi.facetdata; } DatatypeValidator newDV = null; if (list) { try { newDV = new ListDatatypeValidator(baseValidator, fFacetData, true); } catch (InvalidDatatypeFacetException e) { reportGenericSchemaError(e.getMessage()); } } else if (restriction) { newDV = createRestrictedValidator(baseValidator, fFacetData); } else { //union newDV = new UnionDatatypeValidator(dTValidators); } if (newDV != null && isGlobal) { newDV.setFinalSet(finalProperty); ((AbstractDatatypeValidator)newDV).fLocalName = nameProperty; fGrammar.addGlobalTypeDecl(newDV); } return newDV; } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/8973a4e0a87c8b8fcad9e9b1f2a9f9b642609e45/XSDSimpleTypeTraverser.java/clean/src/org/apache/xerces/impl/v2/XSDSimpleTypeTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
21168,
5126,
10080,
5784,
559,
3456,
12,
1046,
4143,
559,
3456,
16,
1033,
8526,
1604,
1972,
16,
4766,
5397,
1139,
55,
2519,
966,
1963,
1759,
16,
1250,
353,
5160,
13,
288,
3639,
514,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21168,
5126,
10080,
5784,
559,
3456,
12,
1046,
4143,
559,
3456,
16,
1033,
8526,
1604,
1972,
16,
4766,
5397,
1139,
55,
2519,
966,
1963,
1759,
16,
1250,
353,
5160,
13,
288,
3639,
514,... |
private int addForwardGoto(int gotoOp, int iCodeTop) { iCodeTop = addByte(gotoOp, iCodeTop); | private int addForwardGoto(int gotoOp, int iCodeTop) { iCodeTop = addToken(gotoOp, iCodeTop); | private int addForwardGoto(int gotoOp, int iCodeTop) { iCodeTop = addByte(gotoOp, iCodeTop); iCodeTop = addShort(0, iCodeTop); return iCodeTop; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/b4041d1788a1c2647ff0fba69f0305761a5ff3bf/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
8514,
43,
6302,
12,
474,
2897,
3817,
16,
509,
277,
1085,
3401,
13,
288,
3639,
277,
1085,
3401,
273,
527,
3216,
12,
75,
6302,
3817,
16,
277,
1085,
3401,
1769,
3639,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
8514,
43,
6302,
12,
474,
2897,
3817,
16,
509,
277,
1085,
3401,
13,
288,
3639,
277,
1085,
3401,
273,
527,
3216,
12,
75,
6302,
3817,
16,
277,
1085,
3401,
1769,
3639,
277,
... |
PageFormat() { this.paper = new Paper(); this.orientation = PORTRAIT; } | public PageFormat() { this.paper = new Paper(); this.orientation = PORTRAIT; } | PageFormat(){ this.paper = new Paper(); this.orientation = PORTRAIT;} | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/3878be593002f301580025b16c264e41f364beae/PageFormat.java/buggy/libraries/javalib/external/classpath/java/awt/print/PageFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3460,
1630,
1435,
95,
225,
333,
18,
27400,
273,
394,
20971,
5621,
225,
333,
18,
19235,
273,
20987,
2849,
1285,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3460,
1630,
1435,
95,
225,
333,
18,
27400,
273,
394,
20971,
5621,
225,
333,
18,
19235,
273,
20987,
2849,
1285,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
this.clientList = clientList; | this( new LinkedList<VpnClient>()); | public ClientList( List<VpnClient> clientList ) { this.clientList = clientList; } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/b38e01d9c4ce757d2e03478dd806dc130acda0f1/ClientList.java/buggy/tran/openvpn/api/com/metavize/tran/openvpn/ClientList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2445,
682,
12,
987,
32,
18251,
1227,
34,
1004,
682,
262,
565,
288,
3639,
333,
12,
394,
10688,
32,
18251,
1227,
34,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
2445,
682,
12,
987,
32,
18251,
1227,
34,
1004,
682,
262,
565,
288,
3639,
333,
12,
394,
10688,
32,
18251,
1227,
34,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
buf = (buf & 0xFFFF00) | (inb[i]); | buf = (buf & 0xFFFF00) | ((inb[i]) & 0x0000FF); | public final void translate(ByteBuf in, ByteBuf out) { byte inb[] = in.toBytes(); int in_length = in.length(); for (int i = 0; i < in_length; i++) { if (buf_bytes == 0) buf = (buf & 0x00FFFF) | (inb[i] << 16); else if (buf_bytes == 1) buf = (buf & 0xFF00FF) | (inb[i] << 8); else buf = (buf & 0xFFFF00) | (inb[i]); if ((++buf_bytes) == 3) { encode_token(); if (line_length >= 72) flush_line(out); } } } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/15fbf6061f4360b49d41bae657a2681ec3516a33/MimeBase64Encoder.java/clean/grendel/mime/encoder/MimeBase64Encoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
4204,
12,
3216,
5503,
316,
16,
17120,
596,
13,
288,
565,
1160,
316,
70,
8526,
273,
316,
18,
869,
2160,
5621,
565,
509,
316,
67,
2469,
273,
316,
18,
2469,
5621,
565,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
4204,
12,
3216,
5503,
316,
16,
17120,
596,
13,
288,
565,
1160,
316,
70,
8526,
273,
316,
18,
869,
2160,
5621,
565,
509,
316,
67,
2469,
273,
316,
18,
2469,
5621,
565,
36... |
int yy_input; int yy_action; | int zzInput; int zzAction; | public Yytoken yylex() throws java.io.IOException { int yy_input; int yy_action; // cached fields: int yy_currentPos_l; int yy_startRead_l; int yy_markedPos_l; int yy_endRead_l = yy_endRead; char [] yy_buffer_l = yy_buffer; char [] yycmap_l = yycmap; int [] yytrans_l = yytrans; int [] yy_rowMap_l = yy_rowMap; byte [] yy_attr_l = YY_ATTRIBUTE; while (true) { yy_markedPos_l = yy_markedPos; yy_action = -1; yy_startRead_l = yy_currentPos_l = yy_currentPos = yy_startRead = yy_markedPos_l; yy_state = yy_lexical_state; yy_forAction: { while (true) { if (yy_currentPos_l < yy_endRead_l) yy_input = yy_buffer_l[yy_currentPos_l++]; else if (yy_atEOF) { yy_input = YYEOF; break yy_forAction; } else { // store back cached positions yy_currentPos = yy_currentPos_l; yy_markedPos = yy_markedPos_l; boolean eof = yy_refill(); // get translated positions and possibly new buffer yy_currentPos_l = yy_currentPos; yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; yy_endRead_l = yy_endRead; if (eof) { yy_input = YYEOF; break yy_forAction; } else { yy_input = yy_buffer_l[yy_currentPos_l++]; } } int yy_next = yytrans_l[ yy_rowMap_l[yy_state] + yycmap_l[yy_input] ]; if (yy_next == -1) break yy_forAction; yy_state = yy_next; int yy_attributes = yy_attr_l[yy_state]; if ( (yy_attributes & 1) == 1 ) { yy_action = yy_state; yy_markedPos_l = yy_currentPos_l; if ( (yy_attributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yy_markedPos = yy_markedPos_l; switch (yy_action) { case 78: case 98: case 189: case 199: case 205: case 230: case 246: case 262: { if(!deleteErrors) { throwError("Unknown @identifier "+yytext()); } else { String s = yytext(); if(debug) log("Discarded identifier: "+s); // Ignore } } case 304: break; case 117: case 133: case 174: case 176: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 305: break; case 105: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 306: break; case 26: case 94: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 307: break; case 28: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 308: break; case 188: case 198: case 219: case 236: case 242: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processURL(s); if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 309: break; case 106: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 310: break; case 146: { String s = yytext(); w.write(s); if(debug) log("Matched @media: "+s); } case 311: break; case 74: case 75: case 95: case 97: case 119: case 120: case 141: case 142: case 164: case 165: case 178: case 179: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 312: break; case 37: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 313: break; case 54: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 314: break; case 125: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 315: break; case 92: case 152: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 316: break; case 2: case 5: case 13: case 30: case 41: case 57: case 73: case 89: case 109: case 130: case 151: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 317: break; case 34: case 59: case 60: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 318: break; case 38: case 40: case 71: case 72: case 93: case 110: case 111: case 131: case 132: case 153: case 173: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 319: break; case 281: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 320: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 321: break; case 136: case 138: case 140: case 155: case 160: case 163: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 322: break; case 53: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 323: break; case 121: case 143: case 166: case 180: case 194: case 213: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 324: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 325: break; case 10: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 326: break; case 248: case 266: case 280: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 327: break; case 1: case 3: case 7: case 8: case 11: case 14: case 19: case 20: case 21: case 22: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 328: break; case 225: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 329: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 330: break; case 6: case 9: case 12: case 18: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 331: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 332: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 333: break; case 58: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 334: break; default: if (yy_input == YYEOF && yy_startRead == yy_currentPos) { yy_atEOF = true; return null; } else { yy_ScanError(YY_NO_MATCH); } } } } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/689ed6b27a2e7acac33d90a4e6fea2ddf018345b/CSSTokenizerFilter.java/clean/src/freenet/clients/http/filter/CSSTokenizerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
67,
2630,
31,
565,
509,
9016,
67,
1128,
31,
565,
368,
3472,
1466,
30,
565,
509,
9016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
67,
2630,
31,
565,
509,
9016,
67,
1128,
31,
565,
368,
3472,
1466,
30,
565,
509,
9016,
... |
&& removeTaskAction.isEnabled()) removeTaskAction.run(); | && removeTaskAction.isEnabled()) { removeTaskAction.run(); } | void handleKeyPressed(KeyEvent event) { if (event.character == SWT.DEL && event.stateMask == 0 && removeTaskAction.isEnabled()) removeTaskAction.run(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TaskList.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
653,
24624,
12,
653,
1133,
871,
13,
288,
3639,
309,
261,
2575,
18,
11560,
422,
348,
8588,
18,
24733,
597,
871,
18,
2019,
5796,
422,
374,
7734,
597,
1206,
2174,
1803,
18,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
653,
24624,
12,
653,
1133,
871,
13,
288,
3639,
309,
261,
2575,
18,
11560,
422,
348,
8588,
18,
24733,
597,
871,
18,
2019,
5796,
422,
374,
7734,
597,
1206,
2174,
1803,
18,
291,... |
assertAxisReturns(getRestrictedConnection(), "[Store].level.members", "[Store].[All Stores].[Mexico]" + nl + "[Store].[All Stores].[USA]"); } | assertAxisReturns(getRestrictedConnection(), "[Store].level.members", "[Store].[All Stores].[Mexico]" + nl + "[Store].[All Stores].[USA]"); } | public void testGrantHierarchy1a() { // assert: can access Mexico (explicitly granted) // assert: can not access Canada (explicitly denied) // assert: can access USA (rule 3 - parent of allowed member San Francisco) assertAxisReturns(getRestrictedConnection(), "[Store].level.members", "[Store].[All Stores].[Mexico]" + nl + "[Store].[All Stores].[USA]"); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/AccessControlTest.java/clean/testsrc/main/mondrian/test/AccessControlTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
9021,
12074,
21,
69,
1435,
288,
202,
202,
759,
1815,
30,
848,
2006,
490,
338,
10764,
261,
16511,
715,
17578,
13,
202,
202,
759,
1815,
30,
848,
486,
2006,
4480,
1652... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9021,
12074,
21,
69,
1435,
288,
202,
202,
759,
1815,
30,
848,
2006,
490,
338,
10764,
261,
16511,
715,
17578,
13,
202,
202,
759,
1815,
30,
848,
486,
2006,
4480,
1652... |
else { receivedText.append(str); } } return count; } | public int read(char cbuf[], int off, int len) throws IOException { int count = myReader.read(cbuf, off, len); if (count > 0) { String str = new String(cbuf, off, count); int index = str.lastIndexOf(">"); if (index != -1) { receivedText.append(str.substring(0, index + 1)); receivedText.append(NEWLINE); if (str.length() > index) { receivedText.append(str.substring(index + 1)); } } else { receivedText.append(str); } } return count; } | 45655 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45655/37a3f14d3b1293770f4fcb7643a31241c2b15ef7/EnhancedDebugger.java/clean/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
509,
855,
12,
3001,
2875,
696,
63,
6487,
509,
3397,
16,
509,
562,
13,
1216,
1860,
288,
7734,
509,
1056,
273,
3399,
2514,
18,
896,
12,
71,
4385,
16,
3397,
16,
562,
1769,
7734,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
509,
855,
12,
3001,
2875,
696,
63,
6487,
509,
3397,
16,
509,
562,
13,
1216,
1860,
288,
7734,
509,
1056,
273,
3399,
2514,
18,
896,
12,
71,
4385,
16,
3397,
16,
562,
1769,
7734,
3... | |
File moduleFile = new File( myDir, modulePath ).getCanonicalFile(); moduleFiles.put( moduleFile, modulePath ); } | moduleAdjustments.put( moduleName, adjustment ); | public String getModulePathAdjustment( MavenProject moduleProject ) throws IOException { File module = moduleProject.getFile(); if ( module == null ) { return null; } module = module.getCanonicalFile(); if ( moduleFiles == null ) { moduleFiles = new HashMap(); List modules = getModules(); File myFile = getFile(); if ( myFile != null ) { File myDir = myFile.getCanonicalFile().getParentFile(); if ( modules != null ) { for ( Iterator it = modules.iterator(); it.hasNext(); ) { String modulePath = (String) it.next(); File moduleFile = new File( myDir, modulePath ).getCanonicalFile(); moduleFiles.put( moduleFile, modulePath ); } } } } return (String) moduleFiles.get( module ); } | 47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/d02311cc6bea7ebf400f1dd8877697f8092baf53/MavenProject.java/clean/maven-project/src/main/java/org/apache/maven/project/MavenProject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11251,
743,
19985,
12,
17176,
4109,
1605,
4109,
262,
1216,
1860,
565,
288,
3639,
1387,
1605,
273,
1605,
4109,
18,
29925,
5621,
7734,
309,
261,
1605,
422,
446,
262,
3639,
288,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11251,
743,
19985,
12,
17176,
4109,
1605,
4109,
262,
1216,
1860,
565,
288,
3639,
1387,
1605,
273,
1605,
4109,
18,
29925,
5621,
7734,
309,
261,
1605,
422,
446,
262,
3639,
288,
5... |
Bitstream[] myBitstreams = myBundles[i].getBitstreams(); for (int k = 0; k < myBitstreams.length; k++) { filterBitstream(c, myItem, myBitstreams[k]); } | done |= filterBitstream(c, myItem, myBitstreams[k]); | public static void filterItem(Context c, Item myItem) throws Exception { // get 'original' bundles Bundle[] myBundles = myItem.getBundles(); for (int i = 0; i < myBundles.length; i++) { // could have multiple 'ORIGINAL' bundles (hmm, probably not) if ("ORIGINAL".equals(myBundles[i].getName())) { // now look at all of the bitstreams Bitstream[] myBitstreams = myBundles[i].getBitstreams(); for (int k = 0; k < myBitstreams.length; k++) { filterBitstream(c, myItem, myBitstreams[k]); } } } } | 1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/023d79e6144ffc2d11960ed6775770e4300da5e6/MediaFilterManager.java/buggy/dspace/src/org/dspace/app/mediafilter/MediaFilterManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1034,
1180,
12,
1042,
276,
16,
4342,
3399,
1180,
13,
1216,
1185,
565,
288,
3639,
368,
336,
296,
8830,
11,
11408,
3639,
8539,
8526,
3399,
16151,
273,
3399,
1180,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1034,
1180,
12,
1042,
276,
16,
4342,
3399,
1180,
13,
1216,
1185,
565,
288,
3639,
368,
336,
296,
8830,
11,
11408,
3639,
8539,
8526,
3399,
16151,
273,
3399,
1180,
18,
588,
... |
AggregateDocumentTransform documentTransform = new AggregateDocumentTransform(new NewEnglandJournalOfMedicinePdfTransform(), new TransformEachPage(new ExtractText(outputStream))); | ConditionalDocumentTransform documentTransform = new ConditionalDocumentTransform(new TransformFirstPage(new EraseVariableMessage2()), new TransformEachPageExceptFirst(new EraseVariableMessage2()), new TransformEachPage(new ExtractText(outputStream))); | public synchronized boolean transform(PdfDocument pdfDocument) throws IOException { logger.debug2("Begin simplified document transform"); if (outputStream == null) { outputStream = new NullOutputStream(); } AggregateDocumentTransform documentTransform = new AggregateDocumentTransform(new NewEnglandJournalOfMedicinePdfTransform(), new TransformEachPage(new ExtractText(outputStream))); boolean ret = documentTransform.transform(pdfDocument); logger.debug2("Simplified document transform result: " + ret); return ret; } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/04b8277b8435e7cdc04d5e98d95ac8ffe6d32da2/NewEnglandJournalOfMedicinePdfTransform.java/clean/plugins/src/org/lockss/plugin/highwire/NewEnglandJournalOfMedicinePdfTransform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
2510,
12,
18562,
2519,
8169,
2519,
13,
1216,
1860,
288,
1377,
1194,
18,
4148,
22,
2932,
8149,
20482,
1668,
2510,
8863,
1377,
309,
261,
2844,
1228,
422,
446,
13,
288,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
2510,
12,
18562,
2519,
8169,
2519,
13,
1216,
1860,
288,
1377,
1194,
18,
4148,
22,
2932,
8149,
20482,
1668,
2510,
8863,
1377,
309,
261,
2844,
1228,
422,
446,
13,
288,
363... |
if (connector.getProtocol().equalsIgnoreCase(protocol)) { | if (connector.supportsProtocol(protocol)) { | public static UMOConnector getConnectorByProtocol(String protocol) { UMOConnector connector; Map connectors = MuleManager.getInstance().getConnectors(); for (Iterator iterator = connectors.values().iterator(); iterator.hasNext();) { connector = (UMOConnector) iterator.next(); if (connector.getProtocol().equalsIgnoreCase(protocol)) { return connector; } } return null; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/9f4495ef09a3c9c9988332d7072fc62fa9d655e1/ConnectorFactory.java/clean/src/java/org/mule/providers/service/ConnectorFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
587,
5980,
7487,
336,
7487,
858,
5752,
12,
780,
1771,
13,
565,
288,
3639,
587,
5980,
7487,
8703,
31,
3639,
1635,
28473,
273,
490,
725,
1318,
18,
588,
1442,
7675,
588,
7487,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
587,
5980,
7487,
336,
7487,
858,
5752,
12,
780,
1771,
13,
565,
288,
3639,
587,
5980,
7487,
8703,
31,
3639,
1635,
28473,
273,
490,
725,
1318,
18,
588,
1442,
7675,
588,
7487,
8... |
public void testLLR() throws Exception { //read in the source final Reader reader = new InputStreamReader( getClass().getResourceAsStream( "test_JoinNodeModifyTuple.drl" ) ); final DrlParser parser = new DrlParser(); final PackageDescr packageDescr = parser.parse( reader ); //pre build the package final PackageBuilder builder = new PackageBuilder(); builder.addPackage( packageDescr ); final Package pkg = builder.getPackage(); //add the package to a rulebase final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); //load up the rulebase final WorkingMemory wm = ruleBase.newWorkingMemory(); try { // 1st time org.drools.Target tgt = new org.drools.Target(); tgt.setLabel( "Santa-Anna" ); tgt.setLat( new Float( 60.26544f ) ); tgt.setLon( new Float( 28.952137f ) ); tgt.setCourse( new Float( 145.0f ) ); tgt.setSpeed( new Float( 12.0f ) ); tgt.setTime( new Float( 1.8666667f ) ); wm.assertObject( tgt ); tgt = new org.drools.Target(); tgt.setLabel( "Santa-Maria" ); tgt.setLat( new Float( 60.236874f ) ); tgt.setLon( new Float( 28.992579f ) ); tgt.setCourse( new Float( 325.0f ) ); tgt.setSpeed( new Float( 8.0f ) ); tgt.setTime( new Float( 1.8666667f ) ); wm.assertObject( tgt ); wm.fireAllRules(); // 2nd time tgt = new org.drools.Target(); tgt.setLabel( "Santa-Anna" ); tgt.setLat( new Float( 60.265343f ) ); tgt.setLon( new Float( 28.952267f ) ); tgt.setCourse( new Float( 145.0f ) ); tgt.setSpeed( new Float( 12.0f ) ); tgt.setTime( new Float( 1.9f ) ); wm.assertObject( tgt ); tgt = new org.drools.Target(); tgt.setLabel( "Santa-Maria" ); tgt.setLat( new Float( 60.236935f ) ); tgt.setLon( new Float( 28.992493f ) ); tgt.setCourse( new Float( 325.0f ) ); tgt.setSpeed( new Float( 8.0f ) ); tgt.setTime( new Float( 1.9f ) ); wm.assertObject( tgt ); wm.fireAllRules(); // 3d time tgt = new org.drools.Target(); tgt.setLabel( "Santa-Anna" ); tgt.setLat( new Float( 60.26525f ) ); tgt.setLon( new Float( 28.952396f ) ); tgt.setCourse( new Float( 145.0f ) ); tgt.setSpeed( new Float( 12.0f ) ); tgt.setTime( new Float( 1.9333333f ) ); wm.assertObject( tgt ); tgt = new org.drools.Target(); tgt.setLabel( "Santa-Maria" ); tgt.setLat( new Float( 60.236996f ) ); tgt.setLon( new Float( 28.992405f ) ); tgt.setCourse( new Float( 325.0f ) ); tgt.setSpeed( new Float( 8.0f ) ); tgt.setTime( new Float( 1.9333333f ) ); wm.assertObject( tgt ); wm.fireAllRules(); // 4th time tgt = new org.drools.Target(); tgt.setLabel( "Santa-Anna" ); tgt.setLat( new Float( 60.265163f ) ); tgt.setLon( new Float( 28.952526f ) ); tgt.setCourse( new Float( 145.0f ) ); tgt.setSpeed( new Float( 12.0f ) ); tgt.setTime( new Float( 1.9666667f ) ); wm.assertObject( tgt ); tgt = new org.drools.Target(); tgt.setLabel( "Santa-Maria" ); tgt.setLat( new Float( 60.237057f ) ); tgt.setLon( new Float( 28.99232f ) ); tgt.setCourse( new Float( 325.0f ) ); tgt.setSpeed( new Float( 8.0f ) ); tgt.setTime( new Float( 1.9666667f ) ); wm.assertObject( tgt ); wm.fireAllRules(); } catch ( RuntimeException e ) { Assert.fail("Test is not supposed to throw any exception"); } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/8bf342687afa7ece5d554db21146984eff9076c8/IntegrationCases.java/clean/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4503,
54,
1435,
1216,
1185,
288,
3639,
368,
896,
316,
326,
1084,
3639,
727,
5393,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
315,
3813,
67,
4572,
907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4503,
54,
1435,
1216,
1185,
288,
3639,
368,
896,
316,
326,
1084,
3639,
727,
5393,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
315,
3813,
67,
4572,
907,
... | ||
Definition definition = wsdlReader.readWSDL(wsdlURI.toString(), new InputSource(importInputStream)); | DefinitionsDocument definition = DefinitionsDocument.Factory.parse(importInputStream); wsdlMap.put(wsdlURI, definition); importInputStream.close(); | public InputSource getImportInputSource(String parentLocation, String relativeLocation) { URI parentURI = URI.create(parentLocation); latestImportURI = parentURI.resolve(relativeLocation); InputStream importInputStream = null; try { ZipEntry entry = moduleFile.getEntry(latestImportURI.toString()); importInputStream = moduleFile.getInputStream(entry); try { Definition definition = wsdlReader.readWSDL(wsdlURI.toString(), new InputSource(importInputStream)); wsdlMap.put(latestImportURI, definition); importInputStream.close(); } catch (WSDLException e) { //probably was a schema rather than wsdl. If there are real problems they will show up later. } importInputStream = moduleFile.getInputStream(entry); } catch (Exception e) { throw new RuntimeException("Could not open stream to import file", e); } InputSource inputSource = new InputSource(importInputStream); inputSource.setSystemId(getLatestImportURI()); return inputSource; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/f37a89532bf5cf4fe7a84074dedd505ad89974be/SchemaInfoBuilder.java/clean/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/SchemaInfoBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
23699,
336,
5010,
1210,
1830,
12,
780,
982,
2735,
16,
514,
3632,
2735,
13,
288,
5411,
3699,
982,
3098,
273,
3699,
18,
2640,
12,
2938,
2735,
1769,
5411,
4891,
5010,
3098,
273,
982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23699,
336,
5010,
1210,
1830,
12,
780,
982,
2735,
16,
514,
3632,
2735,
13,
288,
5411,
3699,
982,
3098,
273,
3699,
18,
2640,
12,
2938,
2735,
1769,
5411,
4891,
5010,
3098,
273,
982,
... |
lblAggregate = new Label(cmpAggregate, SWT.NONE); GridData gdLBLAggregate = new GridData(); lblAggregate.setLayoutData(gdLBLAggregate); lblAggregate.setText(Messages.getString("SeriesGroupingComposite.Lbl.AggregateExpression")); | lblAggregate = new Label( cmpAggregate, SWT.NONE ); GridData gdLBLAggregate = new GridData( ); lblAggregate.setLayoutData( gdLBLAggregate ); lblAggregate.setText( Messages.getString( "SeriesGroupingComposite.Lbl.AggregateExpression" ) ); | private void placeComponents() { // Layout for content composite GridLayout glContent = new GridLayout(); glContent.numColumns = 4; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; glContent.marginWidth = 7; glContent.marginHeight = 7; this.setLayout(new FillLayout()); // Content composite grpContent = new Group(this, SWT.NONE); grpContent.setLayout(glContent); grpContent.setText(Messages.getString("SeriesGroupingComposite.Lbl.Grouping")); //$NON-NLS-1$ btnEnabled = new Button(grpContent, SWT.CHECK); GridData gdBTNEnabled = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); gdBTNEnabled.horizontalSpan = 4; btnEnabled.setLayoutData(gdBTNEnabled); btnEnabled.setText(Messages.getString("SeriesGroupingComposite.Lbl.Enabled")); //$NON-NLS-1$ btnEnabled.addSelectionListener(this); if (sd.eIsSet(DataPackage.eINSTANCE.getSeriesDefinition_Grouping())) { btnEnabled.setSelection(getGrouping().isEnabled()); } else { btnEnabled.setSelection(false); } boolean bEnableUI = btnEnabled.getSelection(); lblType = new Label(grpContent, SWT.NONE); GridData gdLBLType = new GridData(); lblType.setLayoutData(gdLBLType); lblType.setText(Messages.getString("SeriesGroupingComposite.Lbl.Type")); //$NON-NLS-1$ lblType.setEnabled(bEnableUI & bTypeEnabled); cmbType = new Combo(grpContent, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBType = new GridData(GridData.FILL_HORIZONTAL); cmbType.setLayoutData(gdCMBType); cmbType.addSelectionListener(this); cmbType.setEnabled(bEnableUI & bTypeEnabled); lblUnit = new Label(grpContent, SWT.NONE); GridData gdLBLUnit = new GridData(); lblUnit.setLayoutData(gdLBLUnit); lblUnit.setText(Messages.getString("SeriesGroupingComposite.Lbl.Unit")); //$NON-NLS-1$ cmbUnit = new Combo(grpContent, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBUnit = new GridData(GridData.FILL_HORIZONTAL); cmbUnit.setLayoutData(gdCMBUnit); cmbUnit.addSelectionListener(this); lblInterval = new Label(grpContent, SWT.NONE); GridData gdLBLInterval = new GridData(); lblInterval.setLayoutData(gdLBLInterval); lblInterval.setText(Messages.getString("SeriesGroupingComposite.Lbl.Interval")); //$NON-NLS-1$ int iGroupInterval = 2; if (sd.getGrouping() != null) { iGroupInterval = sd.getGrouping().getGroupingInterval(); } iscInterval = new IntegerSpinControl(grpContent, SWT.NONE, iGroupInterval); GridData gdISCInterval = new GridData(); gdISCInterval.widthHint = 80; iscInterval.setLayoutData(gdISCInterval); iscInterval.setMinimum(1); iscInterval.addListener(this); Label lblDummy = new Label(grpContent, SWT.NONE); GridData gdLBLDummy = new GridData(GridData.FILL_HORIZONTAL); gdLBLDummy.horizontalSpan = 2; lblDummy.setLayoutData(gdLBLDummy); // Layout for aggregate composite GridLayout glAggregate = new GridLayout(); glAggregate.numColumns = 2; glAggregate.marginHeight = 0; glAggregate.marginWidth = 0; glAggregate.horizontalSpacing = 5; glAggregate.verticalSpacing = 5; Composite cmpAggregate = new Composite(grpContent, SWT.NONE); GridData gdCMPAggregate = new GridData(); gdCMPAggregate.horizontalSpan = 4; cmpAggregate.setLayoutData(gdCMPAggregate); cmpAggregate.setLayout(glAggregate); lblAggregate = new Label(cmpAggregate, SWT.NONE); GridData gdLBLAggregate = new GridData(); lblAggregate.setLayoutData(gdLBLAggregate); lblAggregate.setText(Messages.getString("SeriesGroupingComposite.Lbl.AggregateExpression")); //$NON-NLS-1$ cmbAggregate = new Combo(cmpAggregate, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBAggregate = new GridData(); cmbAggregate.setLayoutData(gdCMBAggregate); cmbAggregate.addSelectionListener(this); populateLists(); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/35e5ac52b1d08645abccb0fa32df6279923b4897/SeriesGroupingComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/SeriesGroupingComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
368,
9995,
364,
913,
9635,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
1059,
31,
3639,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3166,
7171,
1435,
565,
288,
3639,
368,
9995,
364,
913,
9635,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
1059,
31,
3639,
51... |
public static JavadocTigerDelegate create(ElementContext ctx) { if (!isTigerJavadocAvailable(ctx.getLogger())) return null; | public static JavadocTigerDelegate create(JamLogger logger) { if (!isTigerJavadocAvailable(logger)) return null; | public static JavadocTigerDelegate create(ElementContext ctx) { if (!isTigerJavadocAvailable(ctx.getLogger())) return null; // ok, if we could load that, let's new up the extractor delegate try { JavadocTigerDelegate out = (JavadocTigerDelegate) Class.forName(JAVADOC_DELEGATE_IMPL).newInstance(); out.init(ctx); return out; } catch (ClassNotFoundException e) { ctx.getLogger().error(e); } catch (IllegalAccessException e) { ctx.getLogger().error(e); } catch (InstantiationException e) { ctx.getLogger().error(e); } return null; } | 4519 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4519/b1deed3c7d9c1c9325f9de7cd36b0c47902debfa/JavadocTigerDelegate.java/buggy/annogen/trunk/jam/core/src/org/codehaus/jam/internal/javadoc/JavadocTigerDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
5195,
56,
360,
264,
9586,
752,
12,
1046,
1042,
1103,
13,
225,
288,
565,
309,
16051,
291,
56,
360,
264,
24060,
5268,
12,
5900,
18,
588,
3328,
1435,
3719,
327,
446,
31,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5195,
56,
360,
264,
9586,
752,
12,
1046,
1042,
1103,
13,
225,
288,
565,
309,
16051,
291,
56,
360,
264,
24060,
5268,
12,
5900,
18,
588,
3328,
1435,
3719,
327,
446,
31,
565,
... |
case 232: { | case 231: { | public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= Commentsopt PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { Object comment = btParser.getSym(1); PackageNode a = (PackageNode) btParser.getSym(2); List b = (List) btParser.getSym(3), c = (List) btParser.getSym(4); Node n = nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c); if (comment != null) { n.setComment(comment.toString()); } btParser.setSym1(n); break; } // // Rule 45: Comments ::= Comment // case 45: { Object comment = comment(btParser.getToken(1)); btParser.setSym1(comment); break; } // // Rule 46: Comments ::= Comments Comment // case 46: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 47: ImportDeclarations ::= ImportDeclaration // case 47: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 48: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: TypeDeclarations ::= Commentsopt TypeDeclaration // case 49: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(2); if (a != null) l.add(a); if (comment != null) { a.setComment(comment.toString()); } btParser.setSym1(l); break; } // // Rule 50: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 50: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 51: PackageDeclaration ::= package PackageName SEMICOLON // case 51: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 52: ImportDeclaration ::= SingleTypeImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 53: break; // // Rule 54: ImportDeclaration ::= SingleStaticImportDeclaration // case 54: break; // // Rule 55: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 55: break; // // Rule 56: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 56: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 57: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 57: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 58: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 58: bad_rule = 58; break; // // Rule 59: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 59: bad_rule = 59; break; // // Rule 60: TypeDeclaration ::= ClassDeclaration // case 60: break; // // Rule 61: TypeDeclaration ::= InterfaceDeclaration // case 61: break; // // Rule 62: TypeDeclaration ::= SEMICOLON // case 62: { btParser.setSym1(null); break; } // // Rule 63: ClassDeclaration ::= NormalClassDeclaration // case 63: break; // // Rule 64: NormalClassDeclaration ::= Commentsopt ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 64: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(5); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); Node n = a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e); if (comment != null) n.setComment(comment.toString()); btParser.setSym1(n); break; } // // Rule 65: ClassModifiers ::= ClassModifier // case 65: break; // // Rule 66: ClassModifiers ::= ClassModifiers ClassModifier // case 66: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 67: ClassModifier ::= public // case 67: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 68: ClassModifier ::= protected // case 68: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 69: ClassModifier ::= private // case 69: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 70: ClassModifier ::= abstract // case 70: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 71: ClassModifier ::= static // case 71: { btParser.setSym1(Flags.STATIC); break; } // // Rule 72: ClassModifier ::= final // case 72: { btParser.setSym1(Flags.FINAL); break; } // // Rule 73: ClassModifier ::= strictfp // case 73: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 74: TypeParameters ::= LESS TypeParameterList GREATER // case 74: bad_rule = 74; break; // // Rule 75: TypeParameterList ::= TypeParameter // case 75: bad_rule = 75; break; // // Rule 76: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 76: bad_rule = 76; break; // // Rule 77: Super ::= extends ClassType // case 77: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 78: Interfaces ::= implements InterfaceTypeList // case 78: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 79: InterfaceTypeList ::= InterfaceType // case 79: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 80: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 80: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 81: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 81: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 82: ClassBodyDeclarations ::= ClassBodyDeclaration // case 82: break; // // Rule 83: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 83: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 84: ClassBodyDeclaration ::= ClassMemberDeclaration // case 84: break; // // Rule 85: ClassBodyDeclaration ::= InstanceInitializer // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 86: ClassBodyDeclaration ::= StaticInitializer // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 87: ClassBodyDeclaration ::= ConstructorDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= FieldDeclaration // case 88: break; // // Rule 89: ClassMemberDeclaration ::= MethodDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= ClassDeclaration // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 91: ClassMemberDeclaration ::= InterfaceDeclaration // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: ClassMemberDeclaration ::= SEMICOLON // case 92: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 93: FieldDeclaration ::= Commentsopt FieldModifiersopt Type VariableDeclarators SEMICOLON // case 93: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(2); TypeNode b = (TypeNode) btParser.getSym(3); List c = (List) btParser.getSym(4); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } if (comment != null) ((Node) l.get(0)).setComment(comment.toString()); btParser.setSym1(l); break; } // // Rule 94: VariableDeclarators ::= VariableDeclarator // case 94: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 95: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 95: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 96: VariableDeclarator ::= VariableDeclaratorId // case 96: break; // // Rule 97: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 98: VariableDeclaratorId ::= identifier // case 98: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 99: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 99: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 100: VariableInitializer ::= Expression // case 100: break; // // Rule 101: VariableInitializer ::= ArrayInitializer // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifier // case 102: break; // // Rule 103: FieldModifiers ::= FieldModifiers FieldModifier // case 103: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 104: FieldModifier ::= public // case 104: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 105: FieldModifier ::= protected // case 105: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 106: FieldModifier ::= private // case 106: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 107: FieldModifier ::= static // case 107: { btParser.setSym1(Flags.STATIC); break; } // // Rule 108: FieldModifier ::= final // case 108: { btParser.setSym1(Flags.FINAL); break; } // // Rule 109: FieldModifier ::= transient // case 109: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 110: FieldModifier ::= volatile // case 110: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 111: MethodDeclaration ::= Commentsopt MethodHeader MethodBody // case 111: { Object comment = btParser.getSym(1); MethodDecl a = (MethodDecl) btParser.getSym(2); Block b = (Block) btParser.getSym(3); if (comment != null) a.setComment(comment.toString()); btParser.setSym1(a.body(b)); break; } // // Rule 112: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 112: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 113: ResultType ::= Type // case 113: break; // // Rule 114: ResultType ::= void // case 114: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 115: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 115: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 116: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 116: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 117: FormalParameterList ::= LastFormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameter // case 119: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 120: FormalParameters ::= FormalParameters COMMA FormalParameter // case 120: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 121: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 121: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 123: VariableModifiers ::= VariableModifiers VariableModifier // case 123: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 124: VariableModifier ::= final // case 124: { btParser.setSym1(Flags.FINAL); break; } // // Rule 125: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 125: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 126: MethodModifiers ::= MethodModifier // case 126: break; // // Rule 127: MethodModifiers ::= MethodModifiers MethodModifier // case 127: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 128: MethodModifier ::= public // case 128: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 129: MethodModifier ::= protected // case 129: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 130: MethodModifier ::= private // case 130: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 131: MethodModifier ::= abstract // case 131: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 132: MethodModifier ::= static // case 132: { btParser.setSym1(Flags.STATIC); break; } // // Rule 133: MethodModifier ::= final // case 133: { btParser.setSym1(Flags.FINAL); break; } // // Rule 134: MethodModifier ::= synchronized // case 134: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 135: MethodModifier ::= native // case 135: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 136: MethodModifier ::= strictfp // case 136: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 137: Throws ::= throws ExceptionTypeList // case 137: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 138: ExceptionTypeList ::= ExceptionType // case 138: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 139: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 139: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 140: ExceptionType ::= ClassType // case 140: break; // // Rule 141: ExceptionType ::= TypeVariable // case 141: break; // // Rule 142: MethodBody ::= Block // case 142: break; // // Rule 143: MethodBody ::= SEMICOLON // case 143: btParser.setSym1(null); break; // // Rule 144: InstanceInitializer ::= Block // case 144: break; // // Rule 145: StaticInitializer ::= static Block // case 145: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 146: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 146: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 147: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 147: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 148: SimpleTypeName ::= identifier // case 148: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 149: ConstructorModifiers ::= ConstructorModifier // case 149: break; // // Rule 150: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 150: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 151: ConstructorModifier ::= public // case 151: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 152: ConstructorModifier ::= protected // case 152: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 153: ConstructorModifier ::= private // case 153: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 154: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 154: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 155: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 157: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 157: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 158: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 158: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 159: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 159: bad_rule = 159; break; // // Rule 160: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 160: bad_rule = 160; break; // // Rule 161: EnumConstants ::= EnumConstant // case 161: bad_rule = 161; break; // // Rule 162: EnumConstants ::= EnumConstants COMMA EnumConstant // case 162: bad_rule = 162; break; // // Rule 163: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 163: bad_rule = 163; break; // // Rule 164: Arguments ::= LPAREN ArgumentListopt RPAREN // case 164: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 165: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 165: bad_rule = 165; break; // // Rule 166: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 166: break; // // Rule 167: NormalInterfaceDeclaration ::= Commentsopt InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 167: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(5); ClassBody d = (ClassBody) btParser.getSym(6); Node n = nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d); if (comment != null) n.setComment( comment.toString() ); btParser.setSym1(n); break; } // // Rule 168: InterfaceModifiers ::= InterfaceModifier // case 168: break; // // Rule 169: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 169: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 170: InterfaceModifier ::= public // case 170: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 171: InterfaceModifier ::= protected // case 171: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 172: InterfaceModifier ::= private // case 172: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 173: InterfaceModifier ::= abstract // case 173: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 174: InterfaceModifier ::= static // case 174: { btParser.setSym1(Flags.STATIC); break; } // // Rule 175: InterfaceModifier ::= strictfp // case 175: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 176: ExtendsInterfaces ::= extends InterfaceType // case 176: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 177: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 177: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 178: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 178: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 179: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 180: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ConstantDeclaration // case 181: break; // // Rule 182: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ClassDeclaration // case 183: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 184: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 185: InterfaceMemberDeclaration ::= SEMICOLON // case 185: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 186: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 186: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 187: ConstantModifiers ::= ConstantModifier // case 187: break; // // Rule 188: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 188: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 189: ConstantModifier ::= public // case 189: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 190: ConstantModifier ::= static // case 190: { btParser.setSym1(Flags.STATIC); break; } // // Rule 191: ConstantModifier ::= final // case 191: { btParser.setSym1(Flags.FINAL); break; } // // Rule 192: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 192: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 193: AbstractMethodModifiers ::= AbstractMethodModifier // case 193: break; // // Rule 194: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 194: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 195: AbstractMethodModifier ::= public // case 195: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 196: AbstractMethodModifier ::= abstract // case 196: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 197: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 205: bad_rule = 205; break; // // Rule 206: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 206: bad_rule = 206; break; // // Rule 207: AnnotationTypeElementDeclaration ::= SEMICOLON // case 207: bad_rule = 207; break; // // Rule 208: DefaultValue ::= default ElementValue // case 208: bad_rule = 208; break; // // Rule 209: Annotations ::= Annotation // case 209: bad_rule = 209; break; // // Rule 210: Annotations ::= Annotations Annotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= NormalAnnotation // case 211: bad_rule = 211; break; // // Rule 212: Annotation ::= MarkerAnnotation // case 212: bad_rule = 212; break; // // Rule 213: Annotation ::= SingleElementAnnotation // case 213: bad_rule = 213; break; // // Rule 214: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePairs ::= ElementValuePair // case 215: bad_rule = 215; break; // // Rule 216: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 216: bad_rule = 216; break; // // Rule 217: ElementValuePair ::= SimpleName EQUAL ElementValue // case 217: bad_rule = 217; break; // // Rule 218: SimpleName ::= identifier // case 218: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 219: ElementValue ::= ConditionalExpression // case 219: bad_rule = 219; break; // // Rule 220: ElementValue ::= Annotation // case 220: bad_rule = 220; break; // // Rule 221: ElementValue ::= ElementValueArrayInitializer // case 221: bad_rule = 221; break; // // Rule 222: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 222: bad_rule = 222; break; // // Rule 223: ElementValues ::= ElementValue // case 223: bad_rule = 223; break; // // Rule 224: ElementValues ::= ElementValues COMMA ElementValue // case 224: bad_rule = 224; break; // // Rule 225: MarkerAnnotation ::= AT TypeName // case 225: bad_rule = 225; break; // // Rule 226: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 226: bad_rule = 226; break; // // Rule 227: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 227: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 228: VariableInitializers ::= VariableInitializer // case 228: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 229: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 229: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 230: Block ::= LBRACE BlockStatementsopt RBRACE // case 230: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 231: BlockStatements ::= BlockStatement // case 231: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 232: BlockStatements ::= BlockStatements BlockStatement // case 232: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= LocalVariableDeclarationStatement // case 233: break; // // Rule 234: BlockStatement ::= ClassDeclaration // case 234: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 235: BlockStatement ::= Statement // case 235: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 236: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 236: break; // // Rule 237: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 237: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 238: Statement ::= StatementWithoutTrailingSubstatement // case 238: break; // // Rule 239: Statement ::= LabeledStatement // case 239: break; // // Rule 240: Statement ::= IfThenStatement // case 240: break; // // Rule 241: Statement ::= IfThenElseStatement // case 241: break; // // Rule 242: Statement ::= WhileStatement // case 242: break; // // Rule 243: Statement ::= ForStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= Block // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= AssertStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= DoStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= BreakStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 253: break; // // Rule 254: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 254: break; // // Rule 255: StatementWithoutTrailingSubstatement ::= TryStatement // case 255: break; // // Rule 256: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 256: break; // // Rule 257: StatementNoShortIf ::= LabeledStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 258: break; // // Rule 259: StatementNoShortIf ::= WhileStatementNoShortIf // case 259: break; // // Rule 260: StatementNoShortIf ::= ForStatementNoShortIf // case 260: break; // // Rule 261: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 262: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 262: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 263: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 263: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 264: EmptyStatement ::= SEMICOLON // case 264: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 265: LabeledStatement ::= identifier COLON Statement // case 265: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 266: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 266: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 267: ExpressionStatement ::= StatementExpression SEMICOLON // case 267: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 268: StatementExpression ::= Assignment // case 268: break; // // Rule 269: StatementExpression ::= PreIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PreDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= PostIncrementExpression // case 271: break; // // Rule 272: StatementExpression ::= PostDecrementExpression // case 272: break; // // Rule 273: StatementExpression ::= MethodInvocation // case 273: break; // // Rule 274: StatementExpression ::= ClassInstanceCreationExpression // case 274: break; // // Rule 275: AssertStatement ::= assert Expression SEMICOLON // case 275: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 276: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 276: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 277: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 277: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 278: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 278: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 279: break; // // Rule 280: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 280: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 281: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 281: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 282: SwitchLabels ::= SwitchLabel // case 282: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 283: SwitchLabels ::= SwitchLabels SwitchLabel // case 283: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 284: SwitchLabel ::= case ConstantExpression COLON // case 284: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 285: SwitchLabel ::= case EnumConstant COLON // case 285: bad_rule = 285; break; // // Rule 286: SwitchLabel ::= default COLON // case 286: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 287: EnumConstant ::= identifier // case 287: bad_rule = 287; break; // // Rule 288: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 288: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 289: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 289: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 290: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 290: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 291: ForStatement ::= BasicForStatement // case 291: break; // // Rule 292: ForStatement ::= EnhancedForStatement // case 292: break; // // Rule 293: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 293: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 294: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 294: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 295: ForInit ::= StatementExpressionList // case 295: break; // // Rule 296: ForInit ::= LocalVariableDeclaration // case 296: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 297: ForUpdate ::= StatementExpressionList // case 297: break; // // Rule 298: StatementExpressionList ::= StatementExpression // case 298: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 299: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 299: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 300: BreakStatement ::= break identifieropt SEMICOLON // case 300: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 301: ContinueStatement ::= continue identifieropt SEMICOLON // case 301: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 302: ReturnStatement ::= return Expressionopt SEMICOLON // case 302: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 303: ThrowStatement ::= throw Expression SEMICOLON // case 303: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 304: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 304: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 305: TryStatement ::= try Block Catches // case 305: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 306: TryStatement ::= try Block Catchesopt Finally // case 306: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 307: Catches ::= CatchClause // case 307: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 308: Catches ::= Catches CatchClause // case 308: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 309: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 309: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 310: Finally ::= finally Block // case 310: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 311: Primary ::= PrimaryNoNewArray // case 311: break; // // Rule 312: Primary ::= ArrayCreationExpression // case 312: break; // // Rule 313: PrimaryNoNewArray ::= Literal // case 313: break; // // Rule 314: PrimaryNoNewArray ::= Type DOT class // case 314: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 315: PrimaryNoNewArray ::= void DOT class // case 315: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 316: PrimaryNoNewArray ::= this // case 316: { btParser.setSym1(nf.This(pos())); break; } // // Rule 317: PrimaryNoNewArray ::= ClassName DOT this // case 317: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 318: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 318: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 319: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 319: break; // // Rule 320: PrimaryNoNewArray ::= FieldAccess // case 320: break; // // Rule 321: PrimaryNoNewArray ::= MethodInvocation // case 321: break; // // Rule 322: PrimaryNoNewArray ::= ArrayAccess // case 322: break; // // Rule 323: Literal ::= IntegerLiteral // case 323: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 324: Literal ::= LongLiteral // case 324: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 325: Literal ::= FloatingPointLiteral // case 325: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 326: Literal ::= DoubleLiteral // case 326: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 327: Literal ::= BooleanLiteral // case 327: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 328: Literal ::= CharacterLiteral // case 328: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 329: Literal ::= StringLiteral // case 329: { String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 2))); break; } // // Rule 330: Literal ::= null // case 330: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 331: BooleanLiteral ::= true // case 331: break; // // Rule 332: BooleanLiteral ::= false // case 332: break; // // Rule 333: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 334: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 334: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 335: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 335: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 336: ArgumentList ::= Expression // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: ArgumentList ::= ArgumentList COMMA Expression // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 338: DimExprs ::= DimExpr // case 338: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 339: DimExprs ::= DimExprs DimExpr // case 339: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 340: DimExpr ::= LBRACKET Expression RBRACKET // case 340: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 341: Dims ::= LBRACKET RBRACKET // case 341: { btParser.setSym1(new Integer(1)); break; } // // Rule 342: Dims ::= Dims LBRACKET RBRACKET // case 342: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 343: FieldAccess ::= Primary DOT identifier // case 343: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 344: FieldAccess ::= super DOT identifier // case 344: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 345: FieldAccess ::= ClassName DOT super DOT identifier // case 345: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 346: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 346: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 347: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 347: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 348: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 348: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 349: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 350: PostfixExpression ::= Primary // case 350: break; // // Rule 351: PostfixExpression ::= ExpressionName // case 351: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 352: PostfixExpression ::= PostIncrementExpression // case 352: break; // // Rule 353: PostfixExpression ::= PostDecrementExpression // case 353: break; // // Rule 354: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 354: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 355: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 355: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 356: UnaryExpression ::= PreIncrementExpression // case 356: break; // // Rule 357: UnaryExpression ::= PreDecrementExpression // case 357: break; // // Rule 358: UnaryExpression ::= PLUS UnaryExpression // case 358: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 359: UnaryExpression ::= MINUS UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 361: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 362: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 363: break; // // Rule 364: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 365: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 367: MultiplicativeExpression ::= UnaryExpression // case 367: break; // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 369: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 369: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 371: AdditiveExpression ::= MultiplicativeExpression // case 371: break; // // Rule 372: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 373: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 374: ShiftExpression ::= AdditiveExpression // case 374: break; // // Rule 375: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 376: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 376: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 377: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 377: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 378: RelationalExpression ::= ShiftExpression // case 378: break; // // Rule 379: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 381: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 383: EqualityExpression ::= RelationalExpression // case 383: break; // // Rule 384: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 385: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 386: AndExpression ::= EqualityExpression // case 386: break; // // Rule 387: AndExpression ::= AndExpression AND EqualityExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 388: ExclusiveOrExpression ::= AndExpression // case 388: break; // // Rule 389: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 390: InclusiveOrExpression ::= ExclusiveOrExpression // case 390: break; // // Rule 391: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 392: ConditionalAndExpression ::= InclusiveOrExpression // case 392: break; // // Rule 393: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 394: ConditionalOrExpression ::= ConditionalAndExpression // case 394: break; // // Rule 395: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 396: ConditionalExpression ::= ConditionalOrExpression // case 396: break; // // Rule 397: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 398: AssignmentExpression ::= ConditionalExpression // case 398: break; // // Rule 399: AssignmentExpression ::= Assignment // case 399: break; // // Rule 400: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 400: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 401: LeftHandSide ::= ExpressionName // case 401: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 402: LeftHandSide ::= FieldAccess // case 402: break; // // Rule 403: LeftHandSide ::= ArrayAccess // case 403: break; // // Rule 404: AssignmentOperator ::= EQUAL // case 404: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 405: AssignmentOperator ::= MULTIPLY_EQUAL // case 405: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= DIVIDE_EQUAL // case 406: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= REMAINDER_EQUAL // case 407: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= PLUS_EQUAL // case 408: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= MINUS_EQUAL // case 409: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 410: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= GREATER GREATER EQUAL // case 411: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 412: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= AND_EQUAL // case 413: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= XOR_EQUAL // case 414: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= OR_EQUAL // case 415: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 416: Expression ::= AssignmentExpression // case 416: break; // // Rule 417: ConstantExpression ::= Expression // case 417: break; // // Rule 418: Dimsopt ::= // case 418: { btParser.setSym1(new Integer(0)); break; } // // Rule 419: Dimsopt ::= Dims // case 419: break; // // Rule 420: Catchesopt ::= // case 420: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 421: Catchesopt ::= Catches // case 421: break; // // Rule 422: identifieropt ::= // case 422: btParser.setSym1(null); break; // // Rule 423: identifieropt ::= identifier // case 423: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 424: ForUpdateopt ::= // case 424: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 425: ForUpdateopt ::= ForUpdate // case 425: break; // // Rule 426: Expressionopt ::= // case 426: btParser.setSym1(null); break; // // Rule 427: Expressionopt ::= Expression // case 427: break; // // Rule 428: ForInitopt ::= // case 428: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 429: ForInitopt ::= ForInit // case 429: break; // // Rule 430: SwitchLabelsopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 431: SwitchLabelsopt ::= SwitchLabels // case 431: break; // // Rule 432: SwitchBlockStatementGroupsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 433: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 433: break; // // Rule 434: VariableModifiersopt ::= // case 434: { btParser.setSym1(Flags.NONE); break; } // // Rule 435: VariableModifiersopt ::= VariableModifiers // case 435: break; // // Rule 436: VariableInitializersopt ::= // case 436: btParser.setSym1(null); break; // // Rule 437: VariableInitializersopt ::= VariableInitializers // case 437: break; // // Rule 438: ElementValuesopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuesopt ::= ElementValues // case 439: bad_rule = 439; break; // // Rule 440: ElementValuePairsopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuePairsopt ::= ElementValuePairs // case 441: bad_rule = 441; break; // // Rule 442: DefaultValueopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: DefaultValueopt ::= DefaultValue // case 443: break; // // Rule 444: AnnotationTypeElementDeclarationsopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 445: bad_rule = 445; break; // // Rule 446: AbstractMethodModifiersopt ::= // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 447: break; // // Rule 448: ConstantModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: ConstantModifiersopt ::= ConstantModifiers // case 449: break; // // Rule 450: InterfaceMemberDeclarationsopt ::= // case 450: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 451: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 451: break; // // Rule 452: ExtendsInterfacesopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 453: ExtendsInterfacesopt ::= ExtendsInterfaces // case 453: break; // // Rule 454: InterfaceModifiersopt ::= // case 454: { btParser.setSym1(Flags.NONE); break; } // // Rule 455: InterfaceModifiersopt ::= InterfaceModifiers // case 455: break; // // Rule 456: ClassBodyopt ::= // case 456: btParser.setSym1(null); break; // // Rule 457: ClassBodyopt ::= ClassBody // case 457: break; // // Rule 458: Argumentsopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: Argumentsopt ::= Arguments // case 459: bad_rule = 459; break; // // Rule 460: EnumBodyDeclarationsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 461: bad_rule = 461; break; // // Rule 462: ,opt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: ,opt ::= COMMA // case 463: break; // // Rule 464: EnumConstantsopt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: EnumConstantsopt ::= EnumConstants // case 465: bad_rule = 465; break; // // Rule 466: ArgumentListopt ::= // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 467: ArgumentListopt ::= ArgumentList // case 467: break; // // Rule 468: BlockStatementsopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 469: BlockStatementsopt ::= BlockStatements // case 469: break; // // Rule 470: ExplicitConstructorInvocationopt ::= // case 470: btParser.setSym1(null); break; // // Rule 471: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 471: break; // // Rule 472: ConstructorModifiersopt ::= // case 472: { btParser.setSym1(Flags.NONE); break; } // // Rule 473: ConstructorModifiersopt ::= ConstructorModifiers // case 473: break; // // Rule 474: ...opt ::= // case 474: btParser.setSym1(null); break; // // Rule 475: ...opt ::= ELLIPSIS // case 475: break; // // Rule 476: FormalParameterListopt ::= // case 476: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 477: FormalParameterListopt ::= FormalParameterList // case 477: break; // // Rule 478: Throwsopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 479: Throwsopt ::= Throws // case 479: break; // // Rule 480: MethodModifiersopt ::= // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: MethodModifiersopt ::= MethodModifiers // case 481: break; // // Rule 482: FieldModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: FieldModifiersopt ::= FieldModifiers // case 483: break; // // Rule 484: ClassBodyDeclarationsopt ::= // case 484: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 485: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 485: break; // // Rule 486: Interfacesopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 487: Interfacesopt ::= Interfaces // case 487: break; // // Rule 488: Superopt ::= // case 488: btParser.setSym1(null); break; // // Rule 489: Superopt ::= Super // case 489: break; // // Rule 490: TypeParametersopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: TypeParametersopt ::= TypeParameters // case 491: break; // // Rule 492: ClassModifiersopt ::= // case 492: { btParser.setSym1(Flags.NONE); break; } // // Rule 493: ClassModifiersopt ::= ClassModifiers // case 493: break; // // Rule 494: Annotationsopt ::= // case 494: btParser.setSym1(null); break; // // Rule 495: Annotationsopt ::= Annotations // case 495: bad_rule = 495; break; // // Rule 496: TypeDeclarationsopt ::= // case 496: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 497: TypeDeclarationsopt ::= TypeDeclarations // case 497: break; // // Rule 498: ImportDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 499: ImportDeclarationsopt ::= ImportDeclarations // case 499: break; // // Rule 500: PackageDeclarationopt ::= // case 500: btParser.setSym1(null); break; // // Rule 501: PackageDeclarationopt ::= PackageDeclaration // case 501: break; // // Rule 502: WildcardBoundsOpt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: WildcardBoundsOpt ::= WildcardBounds // case 503: bad_rule = 503; break; // // Rule 504: AdditionalBoundListopt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: AdditionalBoundListopt ::= AdditionalBoundList // case 505: bad_rule = 505; break; // // Rule 506: TypeBoundopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: TypeBoundopt ::= TypeBound // case 507: bad_rule = 507; break; // // Rule 508: TypeArgumentsopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeArgumentsopt ::= TypeArguments // case 509: bad_rule = 509; break; // // Rule 510: Commentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: Commentsopt ::= Comments // case 511: break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: break; // // Rule 522: PlaceType ::= activity // case 522: break; // // Rule 523: PlaceType ::= method // case 523: break; // // Rule 524: PlaceType ::= current // case 524: break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET RBRACKET ArrayInitializer // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET Expression // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, d)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET Expression // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 550: ArrayBaseType ::= PrimitiveType // case 550: break; // // Rule 551: ArrayBaseType ::= ClassOrInterfaceType // case 551: break; // // Rule 552: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 552: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 553: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 553: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 554: Statement ::= NowStatement // case 554: break; // // Rule 555: Statement ::= ClockedStatement // case 555: break; // // Rule 556: Statement ::= AsyncStatement // case 556: break; // // Rule 557: Statement ::= AtomicStatement // case 557: break; // // Rule 558: Statement ::= WhenStatement // case 558: break; // // Rule 559: Statement ::= ForEachStatement // case 559: break; // // Rule 560: Statement ::= AtEachStatement // case 560: break; // // Rule 561: Statement ::= FinishStatement // case 561: break; // // Rule 562: StatementWithoutTrailingSubstatement ::= NextStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 563: break; // // Rule 564: StatementNoShortIf ::= NowStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= ClockedStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= AsyncStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtomicStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= WhenStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= ForEachStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= AtEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= FinishStatementNoShortIf // case 571: break; // // Rule 572: NowStatement ::= now LPAREN Clock RPAREN Statement // case 572: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 573: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 573: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 574: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 574: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 575: AsyncStatement ::= async LPAREN here RPAREN Statement // case 575: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 576: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 576: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 577: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 577: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 578: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 578: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 579: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 579: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 580: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 580: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 581: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: FinishStatement ::= finish Statement // case 583: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 584: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 584: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 585: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 585: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 586: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 586: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 587: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 588: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 588: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 589: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 590: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 590: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 591: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 591: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 592: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 592: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 593: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 594: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 595: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 595: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 596: PlaceExpression ::= here // case 596: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 597: PlaceExpression ::= this // case 597: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 598: PlaceExpression ::= Expression // case 598: break; // // Rule 599: PlaceExpression ::= ArrayAccess // case 599: bad_rule = 599; break; // // Rule 600: NextStatement ::= next SEMICOLON // case 600: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 601: AwaitStatement ::= await Expression SEMICOLON // case 601: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 602: ClockList ::= Clock // case 602: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 603: ClockList ::= ClockList COMMA Clock // case 603: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 604: Clock ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 605: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 605: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 606: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 606: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 607: RelationalExpression ::= RelationalExpression instanceof Type // case 607: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 608: ExpressionName ::= here // case 608: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 609: Primary ::= FutureExpression // case 609: break; // // Rule 610: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 610: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 611: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 611: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 612: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: ConcreteDistributionopt ::= // case 631: btParser.setSym1(null); break; // // Rule 632: ConcreteDistributionopt ::= ConcreteDistribution // case 632: break; // // Rule 633: PlaceExpressionSingleListopt ::= // case 633: btParser.setSym1(null); break; // // Rule 634: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 634: break; // // Rule 635: ArgumentListopt ::= // case 635: btParser.setSym1(null); break; // // Rule 636: ArgumentListopt ::= ArgumentList // case 636: break; // // Rule 637: DepParametersopt ::= // case 637: btParser.setSym1(null); break; // // Rule 638: DepParametersopt ::= DepParameters // case 638: break; // // Rule 639: Unsafeopt ::= // case 639: btParser.setSym1(null); break; // // Rule 640: Unsafeopt ::= unsafe // case 640: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } default: break; } return; } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/a0ef25c366453f5aff64a3c99c145987b17c8f23/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
... |
String sig = JavaMembers.liveConnectSignature(ctor.argTypes); this.functionName = "<init>".concat(sig); | public NativeJavaConstructor(MemberBox ctor) { this.ctor = ctor; String sig = JavaMembers.liveConnectSignature(ctor.argTypes); this.functionName = "<init>".concat(sig); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/bcf9f007878d03ecebb8f7a68970dc86c51376f1/NativeJavaConstructor.java/clean/js/rhino/src/org/mozilla/javascript/NativeJavaConstructor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16717,
5852,
6293,
12,
4419,
3514,
15120,
13,
565,
288,
3639,
333,
18,
30206,
273,
15120,
31,
3639,
514,
3553,
273,
5110,
6918,
18,
16472,
5215,
5374,
12,
30206,
18,
3175,
2016,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
16717,
5852,
6293,
12,
4419,
3514,
15120,
13,
565,
288,
3639,
333,
18,
30206,
273,
15120,
31,
3639,
514,
3553,
273,
5110,
6918,
18,
16472,
5215,
5374,
12,
30206,
18,
3175,
2016,
176... | |
element.uri = fNamespaceSupport.getURI(eprefix); | element.uri = fNamespaceContext.getURI(eprefix); | protected void endNamespaceScope(QName element, Augmentations augs, boolean isEmpty) throws XNIException { // bind element String eprefix = element.prefix != null ? element.prefix : XMLSymbols.EMPTY_STRING; element.uri = fNamespaceSupport.getURI(eprefix); if (element.uri != null) { element.prefix = eprefix; } // call handlers if (fDocumentHandler != null) { if (!isEmpty) { fDocumentHandler.endElement(element, augs); } } // end prefix mappings if (fDocumentHandler != null) { int count = fNamespaceSupport.getDeclaredPrefixCount(); for (int i = count - 1; i >= 0; i--) { String prefix = fNamespaceSupport.getDeclaredPrefixAt(i); fDocumentHandler.endPrefixMapping(prefix, augs); } } // pop context fNamespaceSupport.popContext(); } // endNamespaceScope(QName,boolean) | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/06b159534b171f17bcb9e74a4dd746b45dffe1a9/XMLNSDTDValidator.java/clean/src/org/apache/xerces/impl/dtd/XMLNSDTDValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
679,
3402,
3876,
12,
13688,
930,
16,
432,
14870,
1012,
279,
9024,
16,
1250,
2709,
13,
3639,
1216,
1139,
50,
45,
503,
288,
3639,
368,
1993,
930,
3639,
514,
425,
3239,
273,
930... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
3402,
3876,
12,
13688,
930,
16,
432,
14870,
1012,
279,
9024,
16,
1250,
2709,
13,
3639,
1216,
1139,
50,
45,
503,
288,
3639,
368,
1993,
930,
3639,
514,
425,
3239,
273,
930... |
return literal; | return String.valueOf( literal ); | public String getLiteralString() { return literal; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/18d9318d4df0c5bcdcd8b34cf92c3445bcb408e6/ASTLiteralExpression.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/expression/ASTLiteralExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
6177,
780,
1435,
288,
202,
202,
2463,
7158,
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... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
6177,
780,
1435,
288,
202,
202,
2463,
7158,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
PsiFile[] files = myManager.getCacheManager().getFilesWithWord(searcher.getPattern(), occurrenceMask, scope); | PsiFile[] files = myManager.getCacheManager().getFilesWithWord(searcher.getPattern(), searchContext, scope); | private boolean processElementsWithWordInGlobalScope(PsiElementProcessorEx processor, GlobalSearchScope scope, StringSearcher searcher, TokenSet elementTypes, short occurrenceMask) { ProgressIndicator progress = ProgressManager.getInstance().getProgressIndicator(); if (progress != null) { progress.pushState(); progress.setText("Scanning files..."); } myManager.startBatchFilesProcessingMode(); try { PsiFile[] files = myManager.getCacheManager().getFilesWithWord(searcher.getPattern(), occurrenceMask, scope); if (progress != null) { progress.setText("Searching for " + searcher.getPattern() + "..."); } for (int i = 0; i < files.length; i++) { ProgressManager.getInstance().checkCanceled(); PsiFile file = files[i]; PsiFile[] psiRoots = file.getPsiRoots(); for (int j = 0; j < psiRoots.length; j++) { PsiFile psiRoot = psiRoots[j]; if (!LowLevelSearchUtil.processElementsContainingWordInElement(processor, psiRoot, searcher, elementTypes, progress)) { return false; } } if (progress != null) { double fraction = (double)i / files.length; progress.setFraction(fraction); } myManager.dropResolveCaches(); } } finally { if (progress != null) { progress.popState(); } myManager.finishBatchFilesProcessingMode(); } return true; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/57ac9224412cde7806fda672ad210899f7a8d81d/PsiSearchHelperImpl.java/buggy/source/com/intellij/psi/impl/search/PsiSearchHelperImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
1207,
3471,
1190,
3944,
382,
5160,
3876,
12,
52,
7722,
1046,
5164,
424,
6659,
16,
4766,
15604,
8510,
2979,
3876,
2146,
16,
4766,
15604,
514,
2979,
264,
27349,
16,
4766,
15604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
1207,
3471,
1190,
3944,
382,
5160,
3876,
12,
52,
7722,
1046,
5164,
424,
6659,
16,
4766,
15604,
8510,
2979,
3876,
2146,
16,
4766,
15604,
514,
2979,
264,
27349,
16,
4766,
15604,
... |
push(0.0); dstore(lVar.getJRegister()); | cfw.addPush(0.0); cfw.addDStore(lVar.getJRegister()); | private void generatePrologue(Context cx, int directParameterCount) { if (inFunction && !itsUseDynamicScope && directParameterCount == -1) { // Unless we're either using dynamic scope or we're in a // direct call, use the enclosing scope of the function as our // variable object. aload(funObjLocal); classFile.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()Lorg/mozilla/javascript/Scriptable;"); astore(variableObjectLocal); } if (directParameterCount > 0) { for (int i = 0; i < (3 * directParameterCount); i++) reserveWordLocal(i + 4); // reserve 'args' } // reserve 'args[]' argsLocal = reserveWordLocal(directParameterCount <= 0 ? 4 : (3 * directParameterCount) + 4); // These locals are to be pre-allocated since they need function scope. // They are primarily used by the exception handling mechanism int localCount = scriptOrFn.getLocalCount(); if (localCount != 0) { itsLocalAllocationBase = (short)(argsLocal + 1); for (int i = 0; i < localCount; i++) { reserveWordLocal(itsLocalAllocationBase + i); } } if (inFunction && fnCurrent.getCheckThis()) { // Nested functions must check their 'this' value to // insure it is not an activation object: // see 10.1.6 Activation Object aload(thisObjLocal); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); astore(thisObjLocal); } hasVarsInRegs = inFunction && !fnCurrent.requiresActivation(); if (hasVarsInRegs) { // No need to create activation. Pad arguments if need be. int parmCount = scriptOrFn.getParamCount(); if (inFunction && parmCount > 0 && directParameterCount < 0) { // Set up args array // check length of arguments, pad if need be aload(argsLocal); addByteCode(ByteCode.ARRAYLENGTH); push(parmCount); int label = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, label); aload(argsLocal); push(parmCount); addScriptRuntimeInvoke("padArguments", "([Ljava/lang/Object;I" +")[Ljava/lang/Object;"); astore(argsLocal); markLabel(label); } // REMIND - only need to initialize the vars that don't get a value // before the next call and are used in the function short firstUndefVar = -1; for (int i = 0; i < fnCurrent.getVarCount(); i++) { OptLocalVariable lVar = fnCurrent.getVar(i); if (lVar.isNumber()) { lVar.assignJRegister(getNewWordPairLocal()); push(0.0); dstore(lVar.getJRegister()); } else if (lVar.isParameter()) { if (directParameterCount < 0) { lVar.assignJRegister(getNewWordLocal()); aload(argsLocal); push(i); addByteCode(ByteCode.AALOAD); astore(lVar.getJRegister()); } } else { lVar.assignJRegister(getNewWordLocal()); if (firstUndefVar == -1) { pushUndefined(); firstUndefVar = lVar.getJRegister(); } else { aload(firstUndefVar); } astore(lVar.getJRegister()); } lVar.setStartPC(classFile.getCurrentCodeOffset()); } // Indicate that we should generate debug information for // the variable table. (If we're generating debug info at // all.) debugVars = fnCurrent.getVarsArray(); // Skip creating activation object. return; } if (directParameterCount > 0) { // We're going to create an activation object, so we // need to get an args array with all the arguments in it. aload(argsLocal); push(directParameterCount); addOptRuntimeInvoke("padStart", "([Ljava/lang/Object;I)[Ljava/lang/Object;"); astore(argsLocal); for (int i=0; i < directParameterCount; i++) { aload(argsLocal); push(i); // "3" is 1 for Object parm and 2 for double parm, and // "4" is to account for the context, etc. parms aload((short) (3*i+4)); addByteCode(ByteCode.AASTORE); } } String debugVariableName; if (inFunction) { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); aload(argsLocal); addScriptRuntimeInvoke("initVarObj", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "activation"; } else { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); push(0); addScriptRuntimeInvoke("initScript", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"Z" +")Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "global"; } astore(variableObjectLocal); int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; i++) { OptFunctionNode fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); if (fn.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, FunctionNode.FUNCTION_STATEMENT); } } // default is to generate debug info if (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()) { OptLocalVariable lv = new OptLocalVariable(debugVariableName, false); lv.assignJRegister(variableObjectLocal); lv.setStartPC(classFile.getCurrentCodeOffset()); debugVars = new OptLocalVariable[1]; debugVars[0] = lv; } if (!inFunction) { // OPT: use dataflow to prove that this assignment is dead scriptResultLocal = getNewWordLocal(); pushUndefined(); astore(scriptResultLocal); } if (inFunction) { if (fnCurrent.itsContainsCalls0) { itsZeroArgArray = getNewWordLocal(); classFile.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); astore(itsZeroArgArray); } if (fnCurrent.itsContainsCalls1) { itsOneArgArray = getNewWordLocal(); push(1); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); astore(itsOneArgArray); } } } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
12,
1042,
9494,
16,
509,
2657,
1662,
1380,
13,
565,
288,
3639,
309,
261,
267,
2083,
597,
401,
1282,
3727,
9791,
3876,
597,
5411,
2657,
1662,
1380,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
626,
1330,
344,
12,
1042,
9494,
16,
509,
2657,
1662,
1380,
13,
565,
288,
3639,
309,
261,
267,
2083,
597,
401,
1282,
3727,
9791,
3876,
597,
5411,
2657,
1662,
1380,
422,
... |
log.logWarn("Unknown service principal: " + servicePrincipal); | log.logWarn("Unexpected service principal: " + servicePrincipal); | private void showLoginPage(final HttpServletRequest request, final HttpServletResponse response, String errorType) throws IOException, ServletException { // Get configuration. final Properties config = getConfig(); HashMap serviceProperties = null; // Get the login ticket name and set the base authentication page URL. final String loginTicketId = request.getParameter(config.getProperty(RequestUtil.PROP_LOGIN_TICKET_PARAM)); request.setAttribute(RequestUtil.ATTR_BASE_URL, config.getProperty(RequestUtil.PROP_LOGIN_URL_PREFIX) + "?" + config.getProperty(RequestUtil.PROP_LOGIN_TICKET_PARAM) + "=" + loginTicketId); // Get service properties and set security level. try { serviceProperties = MoriaController.getServiceProperties(loginTicketId); request.setAttribute(RequestUtil.ATTR_SEC_LEVEL, "" + MoriaController.getSecLevel(loginTicketId)); // TODO: Move error handling into doGet instead, where // MoriaControllerException is ignored. } catch (UnknownTicketException e) { errorType = RequestUtil.ERROR_UNKNOWN_TICKET; } catch (IllegalInputException e) { errorType = RequestUtil.ERROR_UNKNOWN_TICKET; } catch (InoperableStateException e) { errorType = RequestUtil.ERROR_MORIA_DOWN; } // Set error message, if any. request.setAttribute(RequestUtil.ATTR_ERROR_TYPE, errorType); // This entire section is skipped if no service could be looked up due // to a problem with the login ticket. if (serviceProperties != null) { // Decide which language to use for login page. final String serviceLanguage = (String) serviceProperties.get(RequestUtil.CONFIG_LANG); String cookieLanguage = null; if (request.getCookies() != null) cookieLanguage = RequestUtil.getCookieValue((String) config.get(RequestUtil.PROP_COOKIE_LANG), request.getCookies()); final ResourceBundle bundle = RequestUtil.getBundle(RequestUtil.BUNDLE_LOGIN, request.getParameter(RequestUtil.PARAM_LANG), cookieLanguage, serviceLanguage, request.getHeader("Accept-Language"), (String) config.get(RequestUtil.PROP_LOGIN_DEFAULT_LANGUAGE)); request.setAttribute(RequestUtil.ATTR_BUNDLE, bundle); request.setAttribute(RequestUtil.ATTR_LANGUAGES, RequestUtil.parseConfig(getConfig(), RequestUtil.PROP_LANGUAGE, RequestUtil.PROP_COMMON)); // Set/update the user's language cookie. request.setAttribute(RequestUtil.ATTR_SELECTED_LANG, bundle.getLocale()); if (request.getParameter(RequestUtil.PARAM_LANG) != null) { response.addCookie(RequestUtil.createCookie((String) config.get(RequestUtil.PROP_COOKIE_LANG), request.getParameter(RequestUtil.PARAM_LANG), new Integer((String) config.get(RequestUtil.PROP_COOKIE_LANG_TTL)).intValue())); } // Resolve list of allowed organizations, removing those that are // not. TreeMap allowedOrganizations = RequestUtil.parseConfig(getConfig(), RequestUtil.PROP_ORG, bundle.getLocale().getLanguage()); final String servicePrincipal = (String) serviceProperties.get(RequestUtil.CONFIG_SERVICE_PRINCIPAL); Iterator i = allowedOrganizations.values().iterator(); while (i.hasNext()) try { if (!MoriaController.isOrganizationAllowedForService(servicePrincipal, (String) i.next())) i.remove(); } catch (UnknownServicePrincipalException e) { // This is ignored; an unknown service principal should // never even reach this stage - and the worst consequence // will be an empty organization list. log.logWarn("Unknown service principal: " + servicePrincipal); } request.setAttribute(RequestUtil.ATTR_ORGANIZATIONS, allowedOrganizations); // Get organization from URL parameter, service configuration and // user cookie, with the latter prioritized highest. String selectedOrg = request.getParameter(RequestUtil.PARAM_ORG); selectedOrg = (String) serviceProperties.get(RequestUtil.CONFIG_HOME); if (request.getCookies() != null) selectedOrg = RequestUtil.getCookieValue((String) config.get(RequestUtil.PROP_COOKIE_ORG), request.getCookies()); request.setAttribute(RequestUtil.ATTR_SELECTED_ORG, selectedOrg); // Set service display name and URL. request.setAttribute(RequestUtil.ATTR_CLIENT_NAME, serviceProperties.get(RequestUtil.CONFIG_DISPLAY_NAME)); request.setAttribute(RequestUtil.ATTR_CLIENT_URL, serviceProperties.get(RequestUtil.CONFIG_URL)); } // Set link to the FAQ. request.setAttribute("faqlink", config.get(RequestUtil.FAQ_LINK)); // Process JSP. final RequestDispatcher rd = getServletContext().getNamedDispatcher("Login.JSP"); rd.forward(request, response); } | 1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/91743e39ad98329dcf2648781119ce3897fff872/LoginServlet.java/clean/moria2/modules/moria-web/src/java/no/feide/moria/servlet/LoginServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2405,
5358,
1964,
12,
6385,
9984,
590,
16,
1171,
9079,
727,
12446,
766,
16,
1171,
9079,
514,
555,
559,
13,
565,
1216,
1860,
16,
16517,
288,
3639,
368,
968,
1664,
18,
3639,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
5358,
1964,
12,
6385,
9984,
590,
16,
1171,
9079,
727,
12446,
766,
16,
1171,
9079,
514,
555,
559,
13,
565,
1216,
1860,
16,
16517,
288,
3639,
368,
968,
1664,
18,
3639,
72... |
FSRevisionNode currentNode = FSReader.getRevisionNode(myReposRootDir, path, root, 0); if( FSID.checkIdsRelated(curNode.getId(), currentNode.getId()) == false ){ | FSRevisionNode currentNode = myRevNodesPool.getRevisionNode(root, path, myReposRootDir); if(!FSID.checkIdsRelated(curNode.getId(), currentNode.getId())){ | public int getLocations(String pathCame, long pegRevision, long[] revisions, ISVNLocationEntryHandler handler) throws SVNException { assertValidRevision(pegRevision); for (int i = 0; i < revisions.length; i++) { assertValidRevision(revisions[i]); } try{ openRepository(); pathCame = getRepositoryPath(pathCame); ArrayList locationEntries = new ArrayList(0); long[] locationRevs = new long[revisions.length]; long revision; FSRevisionNode root = null; String parentPath = super.getRepositoryPath(pathCame); //check if parentPath is really absolute path relatively to repository if(parentPath.charAt(0) != '/'){ parentPath = "/".concat(parentPath); } //Sort revisions from greatest downward Arrays.sort(revisions); for(int count = 0; count < revisions.length; ++count){ locationRevs[count] = revisions[revisions.length-(count+1)]; } //Ignore revisions R that are younger than the pegRevisions where //path@pegRevision is not an ancestor of path@R. int count = 0; boolean resultAncestry = false; for(count=0; count<locationRevs.length && locationRevs[count]>pegRevision; ++count){ try{ resultAncestry = FSNodeHistory.checkAncestryOfPegPath(myReposRootDir, parentPath, pegRevision, locationRevs[count], myRevNodesPool); }catch(SVNException ex){ /*TODO determine exception for FSFileNotFoundInSpecifiedRevisionException*/ continue; } if(true == resultAncestry){ break; } } if(count >= locationRevs.length){ return 0; } revision = resultAncestry ? locationRevs[count] : pegRevision; String path = parentPath; while(count < revisions.length){ //Find the target of the innermost copy relevant to path@revision. //The copy may be of path itself, or of a parent directory. root = FSReader.getRootRevNode(myReposRootDir, revision); FSClosestCopy tempClCopy = closestCopy(myReposRootDir, root, path); if(tempClCopy == null){ break; } FSRevisionNode croot = tempClCopy.getRevisionNode(); if(croot == null){ break; } String cpath = tempClCopy.getPath(); //Assign the current path to all younger revisions until we reach //the copy target rev long crev = croot.getId().isTxn() ? FSConstants.SVN_INVALID_REVNUM : croot.getId().getRevision(); while((count < revisions.length) && (locationRevs[count] >= crev)){ locationEntries.add(new SVNLocationEntry(locationRevs[count], path)); ++count; } // Follow the copy to its source. Ignore all revs between the // copy target rev and the copy source rev (non-inclusive). SVNLocationEntry sEntry = FSReader.copiedFrom(myReposRootDir, croot, cpath, myRevNodesPool); /*!!here is inconsitance with code of svn: they write locationRevs[count] > sEntry.getRevision()*/ while((count < revisions.length) && locationRevs[count] >= sEntry.getRevision() ){ ++count; } /* Ultimately, it's not the path of the closest copy's source that we care about -- it's our own path's location in the copy source revision. So we'll tack the relative path that expresses the difference between the copy destination and our path in the copy revision onto the copy source path to determine this information. In other words, if our path is "/branches/my-branch/foo/bar", and we know that the closest relevant copy was a copy of "/trunk" to "/branches/my-branch", then that relative path under the copy destination is "/foo/bar". Tacking that onto the copy source path tells us that our path was located at "/trunk/foo/bar" before the copy. */ String reminder = path.equals(cpath) ? new String("") : new String(SVNPathUtil.pathIsChild(cpath, path)); path = SVNPathUtil.concatToAbs(sEntry.getPath(), reminder); revision = sEntry.getRevision(); } /* There are no copies relevant to path@revision. So any remaining revisions either predate the creation of path@revision or have the node existing at the same path. We will look up path@lrev for each remaining location-revision and make sure it is related to path@revision. */ root = FSReader.getRootRevNode(myReposRootDir, revision); FSRevisionNode curNode = FSReader.getRevisionNode(myReposRootDir, path, root, 0); while(count < revisions.length){ SVNNodeKind kind = null; root = FSReader.getRootRevNode(myReposRootDir, locationRevs[count]); kind = this.checkNodeKind(path, FSRoot.createRevisionRoot(root.getId().getRevision(), root)); if(kind == SVNNodeKind.NONE){ break; } FSRevisionNode currentNode = FSReader.getRevisionNode(myReposRootDir, path, root, 0); if( FSID.checkIdsRelated(curNode.getId(), currentNode.getId()) == false ){ break; } locationEntries.add(new SVNLocationEntry(locationRevs[count], path)); ++count; } for(count = 0; count < locationEntries.size(); count++) { /*sure we have handler*/ if(handler != null){ handler.handleLocationEntry((SVNLocationEntry)locationEntries.get(count)); } } return count; }finally{ closeRepository(); } } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/3de4e7e298b05186659154d8fdb3899509e55875/FSRepository.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/fs/FSRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
10985,
12,
780,
589,
39,
339,
16,
1525,
29231,
7939,
16,
1525,
8526,
18325,
16,
4437,
58,
50,
2735,
1622,
1503,
1838,
13,
1216,
29537,
50,
503,
288,
3639,
1815,
1556,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
10985,
12,
780,
589,
39,
339,
16,
1525,
29231,
7939,
16,
1525,
8526,
18325,
16,
4437,
58,
50,
2735,
1622,
1503,
1838,
13,
1216,
29537,
50,
503,
288,
3639,
1815,
1556,
79... |
if (filterText.length() > 0 && !initial) { | if (text.length() > 0 && !initial) { | public IStatus runInUIThread(IProgressMonitor monitor) { if(treeViewer.getControl().isDisposed()) return Status.CANCEL_STATUS; String filterText = getFilterControl().getText(); boolean initial = initialText != null && filterText.equals(initialText); if (initial) { patternFilter.setPattern(null); } else { patternFilter.setPattern(filterText); } treeViewer.getControl().setRedraw(false); treeViewer.refresh(true); treeViewer.getControl().setRedraw(true); if (filterText.length() > 0 && !initial) { treeViewer.expandAll(); TreeItem[] items = getViewer().getTree().getItems(); if (items.length > 0) treeViewer.getTree().showItem(items[0]); // to prevent scrolling // enabled toolbar is a hint that there is text to clear // and the list is currently being filtered filterToolBar.getControl().setVisible(true); } else { // disabled toolbar is a hint that there is no text to clear // and the list is currently not filtered filterToolBar.getControl().setVisible(viewerFilter != null); } return Status.OK_STATUS; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8ace32e81c7ef203f8263e7b2196eecce70041f7/FilteredTree.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FilteredTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
430,
12,
3413,
18415,
18,
588,
3367,
7675,
291,
1669,
7423,
10756,
6862,
202,
2463,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
430,
12,
3413,
18415,
18,
588,
3367,
7675,
291,
1669,
7423,
10756,
6862,
202,
2463,
268... |
remove(lineStart,whiteSpace); insert(lineStart,MiscUtilities | insert(lineStart + whiteSpace,MiscUtilities | public void shiftIndentLeft(int[] lines) { int tabSize = getTabSize(); int indentSize = getIndentSize(); boolean noTabs = getBooleanProperty("noTabs"); try { beginCompoundEdit(); for(int i = 0; i < lines.length; i++) { int lineStart = getLineStartOffset(lines[i]); String line = getLineText(lines[i]); int whiteSpace = MiscUtilities .getLeadingWhiteSpace(line); if(whiteSpace == 0) continue; int whiteSpaceWidth = Math.max(0,MiscUtilities .getLeadingWhiteSpaceWidth(line,tabSize) - indentSize); remove(lineStart,whiteSpace); insert(lineStart,MiscUtilities .createWhiteSpace(whiteSpaceWidth, (noTabs ? 0 : tabSize))); } } finally { endCompoundEdit(); } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/1e5c06d33babc111443f974871ef7e451f1c9ba4/Buffer.java/buggy/org/gjt/sp/jedit/Buffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4654,
7790,
3910,
12,
474,
8526,
2362,
13,
202,
95,
202,
202,
474,
3246,
1225,
273,
3181,
378,
1225,
5621,
202,
202,
474,
3504,
1225,
273,
336,
7790,
1225,
5621,
202,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4654,
7790,
3910,
12,
474,
8526,
2362,
13,
202,
95,
202,
202,
474,
3246,
1225,
273,
3181,
378,
1225,
5621,
202,
202,
474,
3504,
1225,
273,
336,
7790,
1225,
5621,
202,
202... |
if (wizard != null) { StructuredSelection selection = new StructuredSelection(wizard); viewer.setSelection(selection); } | if (wizard == null) return; StructuredSelection selection = new StructuredSelection(wizard); viewer.setSelection(selection); | private void restoreWidgetValues() { String wizardId = getDialogSettings().get(STORE_SELECTED_WIZARD_ID); WorkbenchWizardElement wizard = findWizard(wizardId); if (wizard != null) { StructuredSelection selection = new StructuredSelection(wizard); viewer.setSelection(selection); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/dd8dee3285325dfa4734d7dc692d538bc1bf9381/WorkbenchWizardListSelectionPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchWizardListSelectionPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5217,
4609,
1972,
1435,
288,
202,
565,
514,
24204,
548,
273,
31774,
2628,
7675,
588,
12,
13651,
67,
4803,
2056,
67,
59,
6867,
8085,
67,
734,
1769,
3639,
4147,
22144,
27130... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5217,
4609,
1972,
1435,
288,
202,
565,
514,
24204,
548,
273,
31774,
2628,
7675,
588,
12,
13651,
67,
4803,
2056,
67,
59,
6867,
8085,
67,
734,
1769,
3639,
4147,
22144,
27130... |
throw e; | String userMsg = messages.getMessage("dispatch.method.user", mapping.getPath()); throw new NoSuchMethodException(userMsg); | protected ActionForward dispatchMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String name) throws Exception { // Make sure we have a valid method name to call. // This may be null if the user hacks the query string. if (name == null) { return this.unspecified(mapping, form, request, response); } // Identify the method object to be dispatched to Method method = null; try { method = getMethod(name); } catch (NoSuchMethodException e) { String message = messages.getMessage("dispatch.method", mapping.getPath(), name); log.error(message, e); throw e; } return dispatchMethod(mapping, form, request, response, name, method); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/c726db61687a40e958415ee9bfb73d8b3f83de44/ActionDispatcher.java/clean/src/share/org/apache/struts/actions/ActionDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4382,
8514,
3435,
1305,
12,
1803,
3233,
2874,
16,
4766,
6647,
4382,
1204,
646,
16,
4766,
6647,
9984,
590,
16,
4766,
6647,
12446,
766,
16,
4766,
6647,
514,
508,
13,
1216,
1185,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4382,
8514,
3435,
1305,
12,
1803,
3233,
2874,
16,
4766,
6647,
4382,
1204,
646,
16,
4766,
6647,
9984,
590,
16,
4766,
6647,
12446,
766,
16,
4766,
6647,
514,
508,
13,
1216,
1185,
288,
... |
{ return c.getPeer() instanceof LightweightPeer; } | { return c.getPeer() instanceof LightweightPeer; } | public static boolean isLightweightComponent(Component c) { return c.getPeer() instanceof LightweightPeer; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
353,
12128,
4865,
1841,
12,
1841,
276,
13,
202,
95,
202,
202,
2463,
276,
18,
588,
6813,
1435,
1276,
15992,
4865,
6813,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1250,
353,
12128,
4865,
1841,
12,
1841,
276,
13,
202,
95,
202,
202,
2463,
276,
18,
588,
6813,
1435,
1276,
15992,
4865,
6813,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,... |
DataItemDesign dataItem = ( DataItemDesign )item; dataItem.setSuppressDuplicate( true ); | ReportItemDesign item = cell.getContent( k ); if ( item instanceof DataItemDesign ) { DataItemDesign dataItem = (DataItemDesign) item; dataItem.setSuppressDuplicate( true ); } | public void visitTable( TableHandle handle ) { // Create Table Item TableItemDesign table = new TableItemDesign( ); table.setRepeatHeader( handle.repeatHeader( ) ); setupListingItem( table, handle ); // Handle table caption String caption = handle.getCaption( ); String captionKey = handle.getCaptionKey( ); if ( caption != null || captionKey != null ) { table.setCaption( captionKey, caption ); } // Handle table Columns SlotHandle columnSlot = handle.getColumns( ); for ( int i = 0; i < columnSlot.getCount( ); i++ ) { ColumnHandle columnHandle = (ColumnHandle) columnSlot.get( i ); apply( columnHandle ); if ( currentElement != null ) { ColumnDesign columnDesign = (ColumnDesign) currentElement; for ( int j = 0; j < columnHandle.getRepeatCount( ); j++ ) { table.addColumn( columnDesign ); } } } // Handle Table Header SlotHandle headerSlot = handle.getHeader( ); TableBandDesign header = createTableBand( headerSlot ); header.setBandType( TableBandDesign.BAND_HEADER ); table.setHeader( header ); // Handle grouping in table SlotHandle groupSlot = handle.getGroups( ); for ( int i = 0; i < groupSlot.getCount( ); i++ ) { apply( groupSlot.get( i ) ); if ( currentElement != null ) { GroupDesign group = (GroupDesign) currentElement; group.setGroupLevel( i ); table.addGroup( group ); } } // Handle detail section SlotHandle detailSlot = handle.getDetail( ); TableBandDesign detail = createTableBand( detailSlot ); detail.setBandType( TableBandDesign.BAND_DETAIL ); table.setDetail( detail ); // Handle table footer SlotHandle footerSlot = handle.getFooter( ); TableBandDesign footer = createTableBand( footerSlot ); footer.setBandType( TableBandDesign.BAND_FOOTER ); table.setFooter( footer ); new TableItemDesignLayout( ).layout( table ); //setup the supressDuplicate property of the data items in the //detail band detail = (TableBandDesign) table.getDetail( ); for ( int i = 0; i < detail.getRowCount( ); i++ ) { RowDesign row = detail.getRow(i); for (int j = 0; j < row.getCellCount( ); j++) { CellDesign cell = row.getCell( j ); ColumnDesign column = table.getColumn( cell.getColumn( ) ); if ( column.getSuppressDuplicate( ) ) { for ( int k = 0; k < cell.getContentCount( ); k++ ) { ReportItemDesign item = cell.getContent( k ); if ( item instanceof DataItemDesign ) { DataItemDesign dataItem = ( DataItemDesign )item; dataItem.setSuppressDuplicate( true ); } } } if ( !column.hasDataItemsInDetail( ) ) { for ( int k = 0; k < cell.getContentCount( ); k++ ) { ReportItemDesign item = cell.getContent( k ); if ( item instanceof DataItemDesign ) { column.setHasDataItemsInDetail( true ); break; } } } } } currentElement = table; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/aae2e17b3a4d3ea45b489ef2f0c59ab5e9576e76/EngineIRVisitor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1388,
12,
3555,
3259,
1640,
262,
202,
95,
202,
202,
759,
1788,
3555,
4342,
202,
202,
1388,
1180,
15478,
1014,
273,
394,
3555,
1180,
15478,
12,
11272,
202,
202,
2121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
1388,
12,
3555,
3259,
1640,
262,
202,
95,
202,
202,
759,
1788,
3555,
4342,
202,
202,
1388,
1180,
15478,
1014,
273,
394,
3555,
1180,
15478,
12,
11272,
202,
202,
2121,
... |
iVisited.accept(_Payload); | _Payload.visitHashNode(iVisited); | public void visitHashNode(HashNode iVisited) { iVisited.accept(_Payload); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/clean/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
2310,
907,
12,
2310,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
2310,
907,
12,
2310,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
internalWorked((double) work); | internalWorked(work); | public void worked(int work) { internalWorked((double) work); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1a9cecd63f2d83ca30cee9aec5659bf7c2b3803d/JobProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
28613,
12,
474,
1440,
13,
288,
1082,
202,
7236,
2421,
329,
12443,
9056,
13,
1440,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
28613,
12,
474,
1440,
13,
288,
1082,
202,
7236,
2421,
329,
12443,
9056,
13,
1440,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
protected abstract void doSetValue(Object value); | final protected void doSetValue(Object value) { Object currentValue = doGetValue(); ValueDiff diff = Diffs.createValueDiff(currentValue, value); boolean okToProceed = fireValueChanging(diff); if (!okToProceed) { throw new ChangeVetoException("Change not permitted"); } doSetApprovedValue(value); fireValueChange(diff); } | protected abstract void doSetValue(Object value); | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c8f2cc5874f2e6247a2cbb9878a80029b7203e0a/AbstractVetoableValue.java/buggy/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/value/AbstractVetoableValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8770,
918,
741,
694,
620,
12,
921,
460,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8770,
918,
741,
694,
620,
12,
921,
460,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
m_pollerConfig.setNodeOutageProcessingEnabled(true); | m_pollerConfig.setNodeOutageProcessingEnabled(true); | public void testInterfaceReparented() { m_pollerConfig.setNodeOutageProcessingEnabled(true); MockNode node1 = m_network.getNode(1); MockNode node2 = m_network.getNode(2); MockInterface dotTwo = m_network.getInterface(1, "192.168.1.2"); MockInterface dotThree = m_network.getInterface(2, "192.168.1.3"); Event reparentEvent = MockUtil.createReparentEvent("Test", "192.168.1.2", 1, 2); // we are going to reparent to node 2 so when we bring down its only // current interface we expect an interface down not the whole node. anticipateDown(dotThree); startDaemons(); sleep(2000); // move the reparted interface and send a reparented event dotTwo.moveTo(node2); m_db.reparentInterface(dotTwo.getIpAddr(), node1.getNodeId(), node2.getNodeId()); // send the reparent event to the daemons m_eventMgr.sendEventToListeners(reparentEvent); // now bring down the other interface on the new node // System.err.println("Bring Down:"+node2Iface); dotThree.bringDown(); verifyAnticipated(2000); resetAnticipated(); anticipateDown(node2); // System.err.println("Bring Down:"+reparentedIface); dotTwo.bringDown(); //sleep(5000); verifyAnticipated(2000); } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/e3db1312e8cc2636034eb4d7b29db88850613e3b/PollerTest.java/buggy/opennms-services/src/test/java/org/opennms/netmgt/poller/PollerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1358,
426,
2938,
329,
1435,
288,
3639,
312,
67,
3915,
749,
809,
18,
542,
907,
1182,
410,
7798,
1526,
12,
3767,
1769,
3639,
7867,
907,
756,
21,
273,
312,
67,
5185,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1358,
426,
2938,
329,
1435,
288,
3639,
312,
67,
3915,
749,
809,
18,
542,
907,
1182,
410,
7798,
1526,
12,
3767,
1769,
3639,
7867,
907,
756,
21,
273,
312,
67,
5185,
18,
... |
if (group.isUser(user)) { groups.add(group); } | groups.add(group); | private Map<JID,List<Group>> getSharedUsers(Collection<Group> sharedGroups) { // Get the users to process from the shared groups. Users that belong to different groups // will have one entry in the map associated with all the groups Map<JID,List<Group>> sharedGroupUsers = new HashMap<JID,List<Group>>(); for (Group group : sharedGroups) { // Get all the users that should be in this roster Collection<String> users = XMPPServer.getInstance().getRosterManager() .getSharedUsersForRoster(group, this); // Add the users of the group to the general list of users to process for (String user : users) { // Add the user to the answer if the user doesn't belong to the personal roster // (since we have already added the user to the answer) JID jid = XMPPServer.getInstance().createJID(user, null); if (!isRosterItem(jid) && !getUsername().equals(user)) { List<Group> groups = sharedGroupUsers.get(jid); if (groups == null) { groups = new ArrayList<Group>(); sharedGroupUsers.put(jid, groups); } // Only associate the group with the user if the user is an actual user of // the group if (group.isUser(user)) { groups.add(group); } } } } return sharedGroupUsers; } | 6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/729323036e79362be9a7ca3f6f388483ae4e3129/Roster.java/clean/src/java/org/jivesoftware/messenger/roster/Roster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1635,
32,
46,
734,
16,
682,
32,
1114,
9778,
23427,
6588,
12,
2532,
32,
1114,
34,
5116,
3621,
13,
288,
3639,
368,
968,
326,
3677,
358,
1207,
628,
326,
5116,
3252,
18,
12109,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1635,
32,
46,
734,
16,
682,
32,
1114,
9778,
23427,
6588,
12,
2532,
32,
1114,
34,
5116,
3621,
13,
288,
3639,
368,
968,
326,
3677,
358,
1207,
628,
326,
5116,
3252,
18,
12109,
716,
... |
indexOfNextSummary = contents.indexOf(JavadocConstants.ANNOTATION_TYPE_MEMBER_SUMMARY); | indexOfNextSummary = contents.indexOf(JavadocConstants.ANNOTATION_TYPE_REQUIRED_MEMBER_SUMMARY); if (indexOfNextSummary == -1) { indexOfNextSummary = contents.indexOf(JavadocConstants.ANNOTATION_TYPE_OPTIONAL_MEMBER_SUMMARY); } | public String getAttachedJavadoc(IProgressMonitor monitor, String defaultEncoding) throws JavaModelException { final String contents = getJavadocContents(monitor, defaultEncoding); if (contents == null) return null; final int indexOfStartOfClassData = contents.indexOf(JavadocConstants.START_OF_CLASS_DATA); if (indexOfStartOfClassData == -1) throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.UNKNOWN_JAVADOC_FORMAT, this)); int indexOfNextSummary = contents.indexOf(JavadocConstants.NESTED_CLASS_SUMMARY); if (this.isEnum() && indexOfNextSummary == -1) { // try to find enum constant summary start indexOfNextSummary = contents.indexOf(JavadocConstants.ENUM_CONSTANT_SUMMARY); } if (this.isAnnotation() && indexOfNextSummary == -1) { // try to find enum constant summary start indexOfNextSummary = contents.indexOf(JavadocConstants.ANNOTATION_TYPE_MEMBER_SUMMARY); } if (indexOfNextSummary == -1) { // try to find field summary start indexOfNextSummary = contents.indexOf(JavadocConstants.FIELD_SUMMARY); } if (indexOfNextSummary == -1) { // try to find constructor summary start indexOfNextSummary = contents.indexOf(JavadocConstants.CONSTRUCTOR_SUMMARY); } if (indexOfNextSummary == -1) { // try to find method summary start indexOfNextSummary = contents.indexOf(JavadocConstants.METHOD_SUMMARY); } if (indexOfNextSummary == -1) { // we take the end of class data indexOfNextSummary = contents.indexOf(JavadocConstants.END_OF_CLASS_DATA); } if (indexOfNextSummary == -1) { throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.UNKNOWN_JAVADOC_FORMAT, this)); } return contents.substring(indexOfStartOfClassData + JavadocConstants.START_OF_CLASS_DATA_LENGTH, indexOfNextSummary);} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c7fbe2a2d1b6d3ec6a6c0f254618a9d026f57e4d/BinaryType.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
514,
336,
14890,
24060,
12,
45,
5491,
7187,
6438,
16,
514,
805,
4705,
13,
1216,
5110,
1488,
503,
288,
202,
6385,
514,
2939,
273,
9285,
4805,
6323,
12,
10259,
16,
805,
4705,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
336,
14890,
24060,
12,
45,
5491,
7187,
6438,
16,
514,
805,
4705,
13,
1216,
5110,
1488,
503,
288,
202,
6385,
514,
2939,
273,
9285,
4805,
6323,
12,
10259,
16,
805,
4705,
1769,
202,
... |
public List<Tasklet> getTaskletsAssignedToCorrector( long taskId, String correctorId, boolean corrected ) throws TaskApiException; | public List<Tasklet> getTaskletsAssignedToCorrector( long taskId, String correctorId ) throws TaskApiException; | public List<Tasklet> getTaskletsAssignedToCorrector( long taskId, String correctorId, boolean corrected ) throws TaskApiException; | 51025 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51025/270c807631ac3630a4cc7fe35062faf85ad183aa/TaskletContainer.java/buggy/taskmodel/taskmodel-api/src/de/thorstenberger/taskmodel/TaskletContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
32,
2174,
1810,
34,
11478,
17307,
20363,
774,
16147,
280,
12,
1525,
15321,
16,
514,
3434,
280,
548,
16,
1250,
19864,
262,
1216,
3837,
15485,
31,
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,
0,
0,
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,
987,
32,
2174,
1810,
34,
11478,
17307,
20363,
774,
16147,
280,
12,
1525,
15321,
16,
514,
3434,
280,
548,
16,
1250,
19864,
262,
1216,
3837,
15485,
31,
2,
-100,
-100,
-100,
-100,
... |
System.err.println("in getSchema, namespace is " + schemaNamespace + " and schemaHint is " + schemaHint); | private Document getSchema(String schemaNamespace, String schemaHint) { // contents of this method will depend on the system we adopt for entity resolution--i.e., XMLEntityHandler, EntityHandler, etc. XMLInputSource schemaSource=null; System.err.println("in getSchema, namespace is " + schemaNamespace + " and schemaHint is " + schemaHint); try { schemaSource = fEntityResolver.resolveEntity(schemaNamespace, schemaHint, null); if (schemaSource != null) { System.err.println("===="); DOMParser schemaParser = new DOMParser(fSymbolTable); // set ErrorHandler and EntityResolver (doesn't seem that // XMLErrorHandler or XMLEntityResolver will work with // standard DOMParser... //REVISIT: shouldn't we reuse the same domparser, instead of //create a new one for each document? //REVISIT: disable deferred dom expansion. there are bugs. try { schemaParser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); } catch (Exception e) {} // set appropriate features schemaParser.parse(schemaSource); return schemaParser.getDocument(); } } catch (IOException ex) { // REVISIT: report an error! ex.printStackTrace(); } return null; } // getSchema(String, String): Document | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/0f2aae2c22c5dc0957f0413b6320b4c5497482e8/XSDHandler.java/buggy/src/org/apache/xerces/impl/v2/XSDHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4319,
11088,
12,
780,
1963,
3402,
16,
1171,
9079,
514,
1963,
7002,
13,
288,
3639,
368,
2939,
434,
333,
707,
903,
2447,
603,
326,
2619,
732,
1261,
3838,
364,
1522,
7861,
413,
77,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4319,
11088,
12,
780,
1963,
3402,
16,
1171,
9079,
514,
1963,
7002,
13,
288,
3639,
368,
2939,
434,
333,
707,
903,
2447,
603,
326,
2619,
732,
1261,
3838,
364,
1522,
7861,
413,
77,
1... | |
logFileName = fname; logMessage("------------------------------------------"); | originalOut = System.out; try { FileOutputStream tmpOutputStream = new FileOutputStream(fname); fileRedirecter = new PrintStream(tmpOutputStream); System.setOut(fileRedirecter); System.setErr(fileRedirecter); } catch (Exception e) { System.out.println("EXCEPTION when writing to LOGFILE"); } fileRedirecter.println("------------------------------------------"); | public static void logToFile(String fname) { Debug.debugLevel = 3; logFile = true; logFileName = fname; logMessage("------------------------------------------"); //$NON-NLS-1$ msg("logging to file \""+ fname + "\" has been enabled"); //$NON-NLS-1$, //$NON-NLS-2$ } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/d2e885d994010a7e077ce98b9d7471f213904d35/Debug.java/clean/jfritz/src/de/moonflower/jfritz/utils/Debug.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
613,
15450,
12,
780,
5299,
13,
288,
202,
202,
2829,
18,
4148,
2355,
273,
890,
31,
202,
202,
1330,
812,
273,
638,
31,
202,
202,
1330,
4771,
273,
5299,
31,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
613,
15450,
12,
780,
5299,
13,
288,
202,
202,
2829,
18,
4148,
2355,
273,
890,
31,
202,
202,
1330,
812,
273,
638,
31,
202,
202,
1330,
4771,
273,
5299,
31,
202,
202,... |
foe = createFOE(processInstance); | foe = createFOE(currentProcess); | private Map transitionTaskFromStack(ITaskInstance currentTask) throws TransitionException, DefinitionNotFoundException { if (log.isInfoEnabled()) { log.info("transitionTask is initialising for TaskInstance " + currentTask); } if (currentTask.getState() == ITaskInstance.STATE_INITIALISING) { // run the constructor try { doTaskConstruct(currentTask); } catch (Exception e) { String emsg = "Error during construction of Task " + currentTask; log.error(emsg, e); throw new TransitionException(emsg, e); } } else { runTask(currentTask); } // check the state of the task now it has been run if (currentTask.getState() != ITaskInstance.STATE_AWAITINGCOMPLETE) { // task has some state other than "completed" so exit if (log.isInfoEnabled()) { log .info("transitionTask - task will not be transitioned as it has a state of " + currentTask.getState() + " - GUID " + currentTask.getTaskInstanceId()); } return new HashMap(); } // do transition - get outbound routing, check for locks, etc // make a note of any TaskDef that is SyncLocked by this TaskDef - // SyncLocked tasks can be run once this task has completed ITaskDefinition taskDef = currentTask.getTaskDefinition(); List createList = runRouting(taskDef, currentTask); if (createList.size() == 0 && taskDef.getRoutingOut().size() > 0) { // routing exists, but none ran. try { ITransaction t = stateFactory.beginTransaction(); currentTask.setState(ITaskInstance.STATE_ERRORROUTING); stateFactory.saveObject(currentTask); t.commit(); } catch (Exception e) { log.error(e); throw new TransitionException(e); } throw new TransitionException("Routing exists for TaskInstance " + currentTask + " but none ran!"); } /* * we now have a list of tasks to create. Before we start creating them, * we need to LOCK the ProcessInstance from changes by other Engine * instances. As this can be a little costly (especially when plugged * into a DB states provider) there should probably be a config option * to specify whether multiple engines are in use to either * enable/disable this behaviour. */ Map createdTasks = new HashMap(); IProcessInstance processInstance = currentTask.getProcessInstance(); try { stateFactory.acquireLock(processInstance,this); } catch (LockException e) { String emsg = "Failed to aquire an exclusive lock on the Process Instance"; log.error(emsg,e); throw new TransitionException(emsg,e); } ITransaction t; try { t = stateFactory.beginTransaction(); } catch (Exception e) { String emsg = "Failure to create states transaction before creating new tasks"; log.error(emsg, e); throw new TransitionException(emsg, e); } IFOE foeSerial = null; for (Iterator it = createList.iterator(); it.hasNext();) { ITaskInstance newTaskInstance; IRoutingDefinition routingDef = (IRoutingDefinition) it.next(); ITaskDefinition newTaskDef = routingDef.getDestinationTaskDefinition(); try { IFOE foe; if (routingDef.getParallel()) { /* * a parallel routing always creates a new FOE */ foe = createFOE(processInstance); } else { /* * Serial routing always re-uses an existing FOE */ if (foeSerial == null) { if (taskDef.isSynchronised()) { /* * As we sync'd, there may be multiple FOEs that are * combining, so therefore we need to create a new * FOE for execution to continue down. */ foeSerial = createFOE(processInstance); } else { /* * use the FOE of the current task... */ foeSerial = currentTask.getFOE(); } } foe = foeSerial; } newTaskInstance = createTask(newTaskDef, processInstance, foe); } catch (Exception e) { // pokemon stylee... catch 'em all String emsg = "Failed to create new task Instance for task definition " + newTaskDef; log.error(emsg, e); throw new TransitionException(emsg, e); } /* * createTask may return an existing task instance in the case of a * sync task that is being hit by multiple routings, so we check * before we add it to the list of unique tasks created */ if (!createdTasks.containsKey(newTaskInstance.getTaskInstanceId())) { createdTasks.put(newTaskInstance.getTaskInstanceId(), newTaskInstance); } } /* * we need to see if there is an existing SyncTaskInstance that was * waiting for this task to complete This check is only necessary when * the route taken by the task removes its lock on the synctask, but * does not route toward the synctask (escape route) */ // get the list of sync tasks that this task can block Map syncList = taskSync.getPotentialTaskLocks(taskDef); // iterate over the processInstance's list of tasks, looking for a Sync // Task that is blocked by the current task for (Iterator it = currentTask.getProcessInstance().getTaskInstances() .iterator(); it.hasNext();) { ITaskInstance checkTask = (ITaskInstance) it.next(); if (syncList.containsKey(checkTask.getTaskDefinition().getId())) { // sync task found, so add to the create list if (!createdTasks.containsKey(checkTask.getTaskInstanceId())) { if (log.isInfoEnabled()) { log .info("adding SyncTask " + checkTask + " that may now be runnable due to completion of taskInstance " + currentTask); } createdTasks.put(checkTask.getTaskInstanceId(), checkTask); } } } // remove completed task try { currentTask.setState(ITaskInstance.STATE_COMPLETE); stateFactory.saveObject(currentTask); stateFactory.deleteObject(currentTask); t.commit(); } catch (Exception e) { String emsg = "Failed to commit new tasks and finalise task completion"; log.error(emsg, e); throw new TransitionException(emsg, e); } try { // unlock processInstance stateFactory.releaseLock(processInstance, this); } catch (LockException e) { String emsg = "Failed to release the exclusive lock on the Process Instance"; log.error(emsg, e); throw new TransitionException(emsg, e); } return createdTasks; } | 9195 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9195/1fc0c0a45dce898ed6fa68820a8dfc8b5ae0020e/Engine.java/buggy/zebra/src/java/zebra-core/src/java/com/anite/zebra/core/Engine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1635,
6007,
2174,
1265,
2624,
12,
1285,
835,
1442,
783,
2174,
13,
1082,
202,
15069,
16515,
503,
16,
10849,
3990,
288,
202,
202,
430,
261,
1330,
18,
291,
966,
1526,
10756,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1635,
6007,
2174,
1265,
2624,
12,
1285,
835,
1442,
783,
2174,
13,
1082,
202,
15069,
16515,
503,
16,
10849,
3990,
288,
202,
202,
430,
261,
1330,
18,
291,
966,
1526,
10756,
288,
... |
newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() * ((Integer)it.getConstant()).intValue())); | newValue = new Item("I", ((Integer) it2.getConstant()) * ((Integer) it.getConstant())); | private void pushByIntMath(int seen, Item it, Item it2) { if (DEBUG) System.out.println("pushByIntMath: " + it.getConstant() + " " + it2.getConstant() ); Item newValue = new Item("I"); try { if ((it.getConstant() != null) && it2.getConstant() != null) { if (seen == IADD) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() + ((Integer)it.getConstant()).intValue())); else if (seen == ISUB) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() - ((Integer)it.getConstant()).intValue())); else if (seen == IMUL) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() * ((Integer)it.getConstant()).intValue())); else if (seen == IDIV) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() / ((Integer)it.getConstant()).intValue())); else if (seen == IAND) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() & ((Integer)it.getConstant()).intValue())); else if (seen == IOR) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() | ((Integer)it.getConstant()).intValue())); else if (seen == IXOR) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() ^ ((Integer)it.getConstant()).intValue())); else if (seen == ISHL) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() << ((Integer)it.getConstant()).intValue())); else if (seen == ISHR) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() >> ((Integer)it.getConstant()).intValue())); else if (seen == IREM) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() % ((Integer)it.getConstant()).intValue())); else if (seen == IUSHR) newValue = new Item("I", new Integer(((Integer)it2.getConstant()).intValue() >>> ((Integer)it.getConstant()).intValue())); } else if (it2.getConstant() != null && seen == ISHL && ((Integer)it2.getConstant()).intValue() >= 8) newValue.specialKind = Item.LOW_8_BITS_CLEAR; else if (it2.getConstant() != null && seen == IAND && (((Integer)it2.getConstant()).intValue() & 0xff) == 0) newValue.specialKind = Item.LOW_8_BITS_CLEAR; } catch (RuntimeException e) { // ignore it } if (DEBUG) System.out.println("push: " + newValue); push(newValue); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/f90ede82703ab0e0ceef607f164a2d1b97578da3/OpcodeStack.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/OpcodeStack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
202,
1152,
918,
1817,
858,
1702,
10477,
12,
474,
5881,
16,
4342,
518,
16,
4342,
518,
22,
13,
288,
1082,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
6206,
858,
1702,
10477,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
1152,
918,
1817,
858,
1702,
10477,
12,
474,
5881,
16,
4342,
518,
16,
4342,
518,
22,
13,
288,
1082,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
6206,
858,
1702,
10477,
30,
... |
for (int i = 0; i < fListeners.size(); i++) ((IOperationHistoryListener) fListeners.get(i)) | for (int i = 0; i < listeners.size(); i++) try { ((IOperationHistoryListener) listeners.get(i)) | protected void notifyAdd(IUndoableOperation operation) { OperationHistoryEvent event = new OperationHistoryEvent( OperationHistoryEvent.OPERATION_ADDED, this, operation); preNotifyOperation(operation, event); for (int i = 0; i < fListeners.size(); i++) ((IOperationHistoryListener) fListeners.get(i)) .historyNotification(event); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c24712ce346ce29a0831c2b0fa927c9b540a7987/DefaultOperationHistory.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5066,
986,
12,
45,
31224,
429,
2988,
1674,
13,
288,
202,
202,
2988,
5623,
1133,
871,
273,
394,
4189,
5623,
1133,
12,
9506,
202,
2988,
5623,
1133,
18,
22040,
67,
1880,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5066,
986,
12,
45,
31224,
429,
2988,
1674,
13,
288,
202,
202,
2988,
5623,
1133,
871,
273,
394,
4189,
5623,
1133,
12,
9506,
202,
2988,
5623,
1133,
18,
22040,
67,
1880,
76... |
return _map.getBytes(string); | byte[] result = _map.getBytes(string); if (result == null) { throw new MessageFormatException("getBytes couldn't find " + string + " item."); } return result; | public byte[] getBytes(String string) throws JMSException { return _map.getBytes(string); } | 45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/f03bf5db1d823c8c01435eea6dc1f5ab6feac265/JMSMapMessage.java/buggy/qpid/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
8425,
12,
780,
533,
13,
1216,
20343,
565,
288,
540,
1160,
8526,
563,
273,
389,
1458,
18,
588,
2160,
12,
1080,
1769,
225,
309,
261,
2088,
422,
446,
13,
288,
604,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
8425,
12,
780,
533,
13,
1216,
20343,
565,
288,
540,
1160,
8526,
563,
273,
389,
1458,
18,
588,
2160,
12,
1080,
1769,
225,
309,
261,
2088,
422,
446,
13,
288,
604,
394,
... |
WorkbenchPlugin.log("Error reading about info file for feature: " + featuresInfo[i].getFeatureId(), e.getStatus()); | if (WorkbenchPlugin.DEBUG) WorkbenchPlugin.log("Error reading about info file for feature: " + featuresInfo[i].getFeatureId(), e.getStatus()); | private void readFeaturesInfo() { ArrayList aboutInfos = new ArrayList(); IPlatformConfiguration.IFeatureEntry[] featureEntries = BootLoader.getCurrentPlatformConfiguration().getConfiguredFeatureEntries(); for (int i = 0; i < featureEntries.length; i++) { IPlatformConfiguration.IFeatureEntry entry = featureEntries[i]; String id = entry.getFeatureIdentifier(); String ver = entry.getFeatureVersion(); try { PluginVersionIdentifier vid = new PluginVersionIdentifier(ver); AboutInfo info = new AboutInfo(id, vid); aboutInfos.add(info); } catch (RuntimeException e) { WorkbenchPlugin.log("Error parsing version \"" + ver + "\" for plugin: " + id + " in Workbench.readFeaturesInfo()"); // continue } } // ensure a consistent ordering Collections.sort(aboutInfos, new Comparator() { Collator coll = Collator.getInstance(); public int compare(Object a, Object b) { AboutInfo infoA = (AboutInfo) a; AboutInfo infoB = (AboutInfo) b; int c = coll.compare(infoA.getFeatureId(), infoB.getFeatureId()); if (c == 0) { c = infoA.getVersionId().isGreaterThan(infoB.getVersionId()) ? 1 : -1; } return c; } }); featuresInfo = new AboutInfo[aboutInfos.size()]; aboutInfos.toArray(featuresInfo); for (int i = 0; i < featuresInfo.length; i++) { try { featuresInfo[i].readINIFile(); } catch (CoreException e) { WorkbenchPlugin.log("Error reading about info file for feature: " + featuresInfo[i].getFeatureId(), e.getStatus()); //$NON-NLS-1$ } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ff8f315253468258a2dcdd64b582863aa5f7b06c/Workbench.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
855,
8696,
966,
1435,
288,
202,
202,
19558,
2973,
7655,
273,
394,
2407,
5621,
9506,
202,
45,
8201,
1750,
18,
45,
4595,
1622,
8526,
2572,
5400,
273,
1875,
202,
15817,
2886,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
8696,
966,
1435,
288,
202,
202,
19558,
2973,
7655,
273,
394,
2407,
5621,
9506,
202,
45,
8201,
1750,
18,
45,
4595,
1622,
8526,
2572,
5400,
273,
1875,
202,
15817,
2886,... |
public PatternDescr lhs_exist() throws RecognitionException { PatternDescr d; Token loc=null; PatternDescr column = null; d = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:881:17: (loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:881:17: loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) { loc=(Token)input.LT(1); match(input,54,FOLLOW_54_in_lhs_exist2474); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:881:30: ( '(' column= lhs_column ')' | column= lhs_column ) int alt58=2; int LA58_0 = input.LA(1); if ( LA58_0==21 ) { alt58=1; } else if ( LA58_0==ID ) { alt58=2; } else { NoViableAltException nvae = new NoViableAltException("881:30: ( \'(\' column= lhs_column \')\' | column= lhs_column )", 58, 0, input); throw nvae; } switch (alt58) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:881:31: '(' column= lhs_column ')' { match(input,21,FOLLOW_21_in_lhs_exist2477); following.push(FOLLOW_lhs_column_in_lhs_exist2481); column=lhs_column(); following.pop(); match(input,23,FOLLOW_23_in_lhs_exist2483); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:881:59: column= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_exist2489); column=lhs_column(); following.pop(); } break; } d = new ExistsDescr( (ColumnDescr) column ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/31d63bcc9d3d8766c62d2c237554a38462a57456/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
7398,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
6830,
16198,
1057,
273,
446,
31,
540,
202,
202,
72,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
7398,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
6830,
16198,
1057,
273,
446,
31,
540,
202,
202,
72,
273,
446,
... | ||
history.openOperation(op4); | ICompositeOperation batch = new TriggeredOperations(op4, history); history.openOperation(batch, IOperationHistory.EXECUTE); | public void testMultipleOpenOperation() throws ExecutionException { // clear out history which will also reset operation execution counts history.dispose(IOperationHistory.GLOBAL_UNDO_CONTEXT, true, true, false); history.openOperation(op1); op1.execute(null, null); op2.execute(null, null); history.add(op2); history.execute(op3, null, null); history.openOperation(op4); IUndoableOperation op = history.getUndoOperation(IOperationHistory.GLOBAL_UNDO_CONTEXT); assertNull("Unexpected nested open should not add original", op); history.closeOperation(true, true); op = history.getUndoOperation(IOperationHistory.GLOBAL_UNDO_CONTEXT); assertSame("Second operation should be closed", op, op4); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c5bc2e0c8b2f8ab5abdf74d2c30f8849d1acac3e/OperationsAPITest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/OperationsAPITest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8438,
3678,
2988,
1435,
1216,
20205,
288,
202,
202,
759,
2424,
596,
4927,
1492,
903,
2546,
2715,
1674,
4588,
6880,
202,
202,
8189,
18,
2251,
4150,
12,
45,
2988,
5623,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8438,
3678,
2988,
1435,
1216,
20205,
288,
202,
202,
759,
2424,
596,
4927,
1492,
903,
2546,
2715,
1674,
4588,
6880,
202,
202,
8189,
18,
2251,
4150,
12,
45,
2988,
5623,... |
String tmp = sSeedPath; if (tmp.endsWith("/")) tmp = tmp.substring(0, tmp.length() - 1); | String tmp = sSeedPath; if (tmp.endsWith("/")) tmp = tmp.substring(0, tmp.length() - 1); | public static String getModuleName() { if (sModuleName == null) { // Need sSeedPath and sRootUrl // sSeedPath: /trunk/statsvn/package.html // sRootUrl: svn://svn.statsvn.org/statsvn/trunk/statsvn String tmp = sSeedPath; if (tmp.endsWith("/")) tmp = tmp.substring(0, tmp.length() - 1); while (!sRootUrl.endsWith(tmp)) { if (!tmp.endsWith("/")) tmp += "/"; // tricking method to think it is receiving a directory. tmp = FileUtils.getParentDirectoryPath(tmp); if (tmp.endsWith("/")) tmp = tmp.substring(0, tmp.length() - 1); } sModuleName = tmp; } return sModuleName; } | 49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/4ed48d8bde78a01f83587d8c00acc358720cc04e/SvnInfoUtils.java/clean/src/net/sf/statcvs/util/SvnInfoUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
11251,
461,
1435,
288,
3639,
309,
261,
87,
22542,
422,
446,
13,
288,
5411,
368,
12324,
272,
12702,
743,
471,
272,
2375,
1489,
5411,
368,
272,
12702,
743,
30,
342,
26133,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
11251,
461,
1435,
288,
3639,
309,
261,
87,
22542,
422,
446,
13,
288,
5411,
368,
12324,
272,
12702,
743,
471,
272,
2375,
1489,
5411,
368,
272,
12702,
743,
30,
342,
26133,
... |
if (mainPage.canFinishEarly()) return true; | if (mainPage.canFinishEarly()) { return true; } | public boolean canFinish() { // we can finish if the first page is current and the the page can finish early. if (getContainer().getCurrentPage() == mainPage) { if (mainPage.canFinishEarly()) return true; } return super.canFinish(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/NewWizard.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
848,
11641,
1435,
288,
540,
368,
732,
848,
4076,
309,
326,
1122,
1363,
353,
783,
471,
326,
326,
1363,
848,
4076,
11646,
18,
202,
377,
202,
430,
261,
588,
2170,
7675,
588,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
848,
11641,
1435,
288,
540,
368,
732,
848,
4076,
309,
326,
1122,
1363,
353,
783,
471,
326,
326,
1363,
848,
4076,
11646,
18,
202,
377,
202,
430,
261,
588,
2170,
7675,
588,
39... |
if ("java.lang.Object".equals(superclassName)) { | if("java.lang.Object".equals(superclassName)){ | private boolean exposedInInterface(PsiMethod method) { final PsiMethod[] superMethods = PsiSuperMethodUtil.findSuperMethods(method); for (int i = 0; i < superMethods.length; i++) { final PsiMethod superMethod = superMethods[i]; final PsiClass superClass = superMethod.getContainingClass(); if (superClass.isInterface()) { return true; } final String superclassName = superClass.getQualifiedName(); if ("java.lang.Object".equals(superclassName)) { return true; } if (exposedInInterface(superMethod)) { return true; } } return false; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/PublicMethodNotExposedInInterfaceInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/abstraction/PublicMethodNotExposedInInterfaceInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
16265,
382,
1358,
12,
52,
7722,
1305,
707,
13,
288,
5411,
727,
453,
7722,
1305,
8526,
2240,
4712,
273,
453,
7722,
8051,
1305,
1304,
18,
4720,
8051,
4712,
12,
2039,
1769,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
16265,
382,
1358,
12,
52,
7722,
1305,
707,
13,
288,
5411,
727,
453,
7722,
1305,
8526,
2240,
4712,
273,
453,
7722,
8051,
1305,
1304,
18,
4720,
8051,
4712,
12,
2039,
1769,
5411,... |
super(clazz, ""); PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class) && !Modifier.isAbstract(clazz.getSuperclass().getModifiers())) { this.root = false; } this.propertyMap = new HashMap(); this.relationshipMap = getAssociationMap(); evaluateConstraints(); if(getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class) != null) this.mappedBy = (String)getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class); | super(clazz, ""); PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class) && !Modifier.isAbstract(clazz.getSuperclass().getModifiers())) { this.root = false; } this.propertyMap = new HashMap(); this.relationshipMap = getAssociationMap(); evaluateConstraints(); if(getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class) != null) this.mappedBy = (String)getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class); | public DefaultGrailsDomainClass(Class clazz) { super(clazz, ""); PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class) && !Modifier.isAbstract(clazz.getSuperclass().getModifiers())) { this.root = false; } this.propertyMap = new HashMap(); this.relationshipMap = getAssociationMap(); // process the constraints evaluateConstraints(); // get mapped by setting if(getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class) != null) this.mappedBy = (String)getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class); Class belongsTo = (Class)getPropertyValue(GrailsDomainClassProperty.BELONGS_TO, Class.class); if(belongsTo == null) { List ownersProp = (List)getPropertyValue(GrailsDomainClassProperty.BELONGS_TO, List.class); if(ownersProp != null) { this.owners = ownersProp; } } else { this.owners = new ArrayList(); this.owners.add(belongsTo); } // First go through the properties of the class and create domain properties // populating into a map for(int i = 0; i < propertyDescriptors.length; i++) { PropertyDescriptor descriptor = propertyDescriptors[i]; // ignore certain properties if(isNotConfigurational(descriptor) ) { GrailsDomainClassProperty property = new DefaultGrailsDomainClassProperty(this, descriptor); this.propertyMap.put(property.getName(), property); if(property.isIdentity()) { this.identifier = property; } else if(property.getName().equals( GrailsDomainClassProperty.VERSION )) { this.version = property; } } } // if no identifier property throw exception if(this.identifier == null) { throw new GrailsDomainException("Identity property not found, but required in domain class ["+getFullName()+"]" ); } // if no version property throw exception if(this.version == null) { throw new GrailsDomainException("Version property not found, but required in domain class ["+getFullName()+"]" ); } // set properties from map values this.properties = (GrailsDomainClassProperty[])this.propertyMap.values().toArray( new GrailsDomainClassProperty[this.propertyMap.size()] ); // establish relationships establishRelationships(); // set persistant properties Collection tempList = new ArrayList(); for(Iterator i = this.propertyMap.values().iterator();i.hasNext();) { GrailsDomainClassProperty currentProp = (GrailsDomainClassProperty)i.next(); if(currentProp.isPersistent() && !currentProp.isIdentity() && !currentProp.getName().equals( GrailsDomainClassProperty.VERSION )) { tempList.add(currentProp); } } this.persistantProperties = (GrailsDomainClassProperty[])tempList.toArray( new GrailsDomainClassProperty[tempList.size()]); } | 28089 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28089/58974951e3276884850340e13cf2bb066cb110b9/DefaultGrailsDomainClass.java/clean/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2989,
14571,
14573,
3748,
797,
12,
797,
4003,
13,
288,
202,
202,
9565,
12,
830,
3638,
16,
1408,
1769,
202,
202,
1396,
3187,
8526,
1272,
12705,
273,
13223,
7675,
588,
1396,
12705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2989,
14571,
14573,
3748,
797,
12,
797,
4003,
13,
288,
202,
202,
9565,
12,
830,
3638,
16,
1408,
1769,
202,
202,
1396,
3187,
8526,
1272,
12705,
273,
13223,
7675,
588,
1396,
12705... |
pushConsumer_.connect_sequence_push_supplier(SequencePushSupplierHelper.narrow(senderTie._this(testCase_.getORB()))); | pushConsumer_.connect_sequence_push_supplier(SequencePushSupplierHelper.narrow(senderTie ._this(orb_))); | public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded, AlreadyConnected { SequencePushSupplierPOATie senderTie = new SequencePushSupplierPOATie(this); SupplierAdmin supplierAdmin = channel.default_supplier_admin(); IntHolder _proxyIdHolder = new IntHolder(); pushConsumer_ = SequenceProxyPushConsumerHelper.narrow(supplierAdmin.obtain_notification_push_consumer(ClientType.SEQUENCE_EVENT,_proxyIdHolder)); Assert.assertEquals(ProxyType._PUSH_SEQUENCE, pushConsumer_.MyType().value()); pushConsumer_.connect_sequence_push_supplier(SequencePushSupplierHelper.narrow(senderTie._this(testCase_.getORB()))); connected_ = true; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b2aa91a672be3f8bd14c3402b93d9a1d919f304c/SequencePushSender.java/buggy/test/regression/src/org/jacorb/test/notification/SequencePushSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3077,
12,
1133,
2909,
1904,
16,
13491,
1250,
999,
1162,
13185,
9941,
13,
3639,
1216,
7807,
3039,
10069,
16,
9079,
17009,
8932,
565,
288,
3639,
8370,
7621,
13254,
2419,
789,
1385,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3077,
12,
1133,
2909,
1904,
16,
13491,
1250,
999,
1162,
13185,
9941,
13,
3639,
1216,
7807,
3039,
10069,
16,
9079,
17009,
8932,
565,
288,
3639,
8370,
7621,
13254,
2419,
789,
1385,... |
LoggingTool logger = new LoggingTool(this); logger.debug("Entering Hydrogen Placement..."); org.openscience.cdk.interfaces.Atom atom = null; for (int f = 0; f < atomContainer.getAtomCount();f++) { atom = atomContainer.getAtomAt(f); if (!atom.getSymbol().equals("H")) { if (debug1) System.out.println("Now placing hydrogens at atom " + f); logger.debug("Now placing hydrogens at atom " + f); placeHydrogens2D(atomContainer, atom, bondLength); } } logger.debug("Hydrogen Placement finished"); | LoggingTool logger = new LoggingTool(this); logger.debug("Entering Hydrogen Placement..."); org.openscience.cdk.interfaces.Atom atom = null; for (int f = 0; f < atomContainer.getAtomCount();f++) { atom = atomContainer.getAtomAt(f); if (debug1) System.out.println("Now placing hydrogens at atom " + f); logger.debug("Now placing hydrogens at atom " + f); placeHydrogens2D(atomContainer, atom, bondLength); } logger.debug("Hydrogen Placement finished"); | public void placeHydrogens2D(AtomContainer atomContainer, double bondLength){ LoggingTool logger = new LoggingTool(this); logger.debug("Entering Hydrogen Placement..."); org.openscience.cdk.interfaces.Atom atom = null; for (int f = 0; f < atomContainer.getAtomCount();f++) { atom = atomContainer.getAtomAt(f); if (!atom.getSymbol().equals("H")) { if (debug1) System.out.println("Now placing hydrogens at atom " + f); logger.debug("Now placing hydrogens at atom " + f); placeHydrogens2D(atomContainer, atom, bondLength); } } logger.debug("Hydrogen Placement finished"); } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/c810cee5f5bc0b5b6ed75a1a78d50d0f07e386e6/HydrogenPlacer.java/buggy/src/org/openscience/cdk/layout/HydrogenPlacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
3166,
17507,
9005,
23730,
22,
40,
12,
3641,
2170,
22487,
16,
1645,
8427,
1782,
15329,
202,
202,
7735,
6364,
1194,
273,
394,
10253,
6364,
12,
2211,
1769,
202,
202,
4901... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
918,
3166,
17507,
9005,
23730,
22,
40,
12,
3641,
2170,
22487,
16,
1645,
8427,
1782,
15329,
202,
202,
7735,
6364,
1194,
273,
394,
10253,
6364,
12,
2211,
1769,
202,
202,
4901... |
wOK.setText(Messages.getString("MappingOutputDialog.OK.Button")); | wOK.setText(Messages.getString("System.Button.OK")); | public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MIN | SWT.MAX); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { input.setChanged(); } }; changed = input.hasChanged(); FormLayout formLayout = new FormLayout(); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(Messages.getString("MappingOutputDialog.Shell.Title")); //$NON-NLS-1$ int middle = props.getMiddlePct(); int margin = Const.MARGIN; // Stepname line wlStepname = new Label(shell, SWT.RIGHT); wlStepname.setText(Messages.getString("MappingOutputDialog.Stepname.Label")); //$NON-NLS-1$ props.setLook(wlStepname); fdlStepname = new FormData(); fdlStepname.left = new FormAttachment(0, 0); fdlStepname.right = new FormAttachment(middle, -margin); fdlStepname.top = new FormAttachment(0, margin); wlStepname.setLayoutData(fdlStepname); wStepname = new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wStepname.setText(stepname); props.setLook(wStepname); wStepname.addModifyListener(lsMod); fdStepname = new FormData(); fdStepname.left = new FormAttachment(middle, 0); fdStepname.top = new FormAttachment(0, margin); fdStepname.right = new FormAttachment(100, 0); wStepname.setLayoutData(fdStepname); wlFields = new Label(shell, SWT.NONE); wlFields.setText(Messages.getString("MappingOutputDialog.Fields.Label")); //$NON-NLS-1$ props.setLook(wlFields); fdlFields = new FormData(); fdlFields.left = new FormAttachment(0, 0); fdlFields.top = new FormAttachment(wStepname, margin); wlFields.setLayoutData(fdlFields); final int FieldsRows = input.getFieldName().length; ColumnInfo[] colinf = new ColumnInfo[] { new ColumnInfo(Messages.getString("MappingOutputDialog.ColumnInfo.Name"), ColumnInfo.COLUMN_TYPE_TEXT, false), //$NON-NLS-1$ new ColumnInfo(Messages.getString("MappingOutputDialog.ColumnInfo.Type"), ColumnInfo.COLUMN_TYPE_CCOMBO, Value.getTypes()), //$NON-NLS-1$ new ColumnInfo(Messages.getString("MappingOutputDialog.ColumnInfo.Length"), ColumnInfo.COLUMN_TYPE_TEXT, false), //$NON-NLS-1$ new ColumnInfo(Messages.getString("MappingOutputDialog.ColumnInfo.Precision"), ColumnInfo.COLUMN_TYPE_TEXT, false), //$NON-NLS-1$ new ColumnInfo(Messages.getString("MappingOutputDialog.ColumnInfo.Added"), ColumnInfo.COLUMN_TYPE_CCOMBO, new String[] {"Y", "N"}, true) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }; wFields = new TableView(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI, colinf, FieldsRows, lsMod, props); fdFields = new FormData(); fdFields.left = new FormAttachment(0, 0); fdFields.top = new FormAttachment(wlFields, margin); fdFields.right = new FormAttachment(100, 0); fdFields.bottom = new FormAttachment(100, -50); wFields.setLayoutData(fdFields); // Some buttons wOK = new Button(shell, SWT.PUSH); wOK.setText(Messages.getString("MappingOutputDialog.OK.Button")); //$NON-NLS-1$ wGet = new Button(shell, SWT.PUSH); wGet.setText(Messages.getString("MappingOutputDialog.GetFields.Button")); //$NON-NLS-1$ wCancel = new Button(shell, SWT.PUSH); wCancel.setText(Messages.getString("System.Button.Cancel")); //$NON-NLS-1$ setButtonPositions(new Button[] { wOK, wGet, wCancel }, margin, wFields); // Add listeners lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; lsGet = new Listener() { public void handleEvent(Event e) { get(); } }; wCancel.addListener(SWT.Selection, lsCancel); wGet.addListener(SWT.Selection, lsGet); wOK.addListener(SWT.Selection, lsOK); lsDef = new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wStepname.addSelectionListener(lsDef); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener(new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } }); // Set the shell size, based upon previous time... setSize(); getData(); input.setChanged(changed); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return stepname; } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/2ec49065645641cf193aa2ca54e8173eea794745/MappingOutputDialog.java/buggy/src/be/ibridge/kettle/trans/step/mappingoutput/MappingOutputDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1696,
1435,
565,
288,
3639,
19433,
982,
273,
5089,
5621,
3639,
9311,
2562,
273,
982,
18,
588,
4236,
5621,
3639,
5972,
273,
394,
19433,
12,
2938,
16,
348,
8588,
18,
2565,
18683,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1696,
1435,
565,
288,
3639,
19433,
982,
273,
5089,
5621,
3639,
9311,
2562,
273,
982,
18,
588,
4236,
5621,
3639,
5972,
273,
394,
19433,
12,
2938,
16,
348,
8588,
18,
2565,
18683,... |
success=app.doStart((String[])args); if (!success) | success=app.doStart((String[])arg); if (!success) { | synchronized int Execute() { int task; try { task=((Integer)todo.pop()).intValue(); } catch (java.util.EmptyStackException e) { return REMOVE; } System.out.println("ApplicationTask: Executing task "+task); boolean success=false; switch (task) { //calling the non-API methods! case INIT: System.out.println("ApplicationTask: Calling doInit on application"); if (!(success=((DVBJApplication)app).doInit())) vdr.mhp.Osd.LoadingFailed(); break; case START: System.out.println("ApplicationTask: Calling doStart on application"); if (args==null) success=app.doStart(); else success=app.doStart((String[])args); if (!success) vdr.mhp.Osd.StartingFailed(); break; case PAUSE: success=app.doPause(); break; case RESUME: success=app.doResume(); break; case STOP: System.out.println("ApplicationTask: Calling doStop on application"); if (acquiring) stopAcquiring(); boolean force = (args==null) ? true : ((Boolean)args).booleanValue(); success=app.doStop(force); break; case LOAD: //this one is a bit special: we do everything from the ApplicationManager, //MHPApplication does not do real work. if (!acquiring) startAcquiring(); //poll if loading the carousel finished //System.out.print("ApplicationTask, loading: is app acquired?"); if (ApplicationManager.LoadingManagerInterface.isAcquired(app)) { //just set the state to LOADED //System.out.println(" Yes"); success=((DVBJApplication)app).doLoad(); } else { //again push load on top of todo //System.out.println(" No, push to delayedList"); todo.push(new Integer(LOAD)); //return this value to indicate that the task //shall be executed again, but only after a delay //to avoid busy waiting return APPEND_DELAYED; } break; case SEND_ERROR: success=true; //is sent below break; } //send event when everything is done if (todo.empty() && event!=null) { app.sendAppStateChangeEvent(event); } if (todo.empty() || !success) return REMOVE; else return APPEND; } | 13401 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13401/b97847bb3808589b27bc3c17e92278a90db51eaf/ApplicationManager.java/clean/trunk/mhp/java/vdr/mhp/ApplicationManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3852,
509,
7903,
1435,
288,
1377,
509,
1562,
31,
1377,
775,
288,
540,
1562,
33,
12443,
4522,
13,
9012,
18,
5120,
1435,
2934,
474,
620,
5621,
1377,
289,
1044,
261,
6290,
18,
1367,
18,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3852,
509,
7903,
1435,
288,
1377,
509,
1562,
31,
1377,
775,
288,
540,
1562,
33,
12443,
4522,
13,
9012,
18,
5120,
1435,
2934,
474,
620,
5621,
1377,
289,
1044,
261,
6290,
18,
1367,
18,
19... |
public abstract MemoryResource claimChildResource(int offset, int size, boolean allowOverlaps) | public abstract MemoryResource claimChildResource(Extent size, int align) | public abstract MemoryResource claimChildResource(int offset, int size, boolean allowOverlaps) throws IndexOutOfBoundsException, ResourceNotFreeException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/MemoryResource.java/clean/core/src/core/org/jnode/system/MemoryResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8770,
9251,
1420,
7516,
1763,
1420,
12,
474,
1384,
16,
509,
963,
16,
1250,
1699,
17411,
87,
13,
202,
15069,
17768,
16,
2591,
1248,
9194,
503,
31,
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,
0,
0,
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,
8770,
9251,
1420,
7516,
1763,
1420,
12,
474,
1384,
16,
509,
963,
16,
1250,
1699,
17411,
87,
13,
202,
15069,
17768,
16,
2591,
1248,
9194,
503,
31,
2,
-100,
-100,
-100,
-100,
-1... |
event.feedback = DND.FEEDBACK_SCROLL | DND.FEEDBACK_SELECT; | event.feedback = DND.FEEDBACK_SCROLL | DND.FEEDBACK_SELECT; | public void dragOver( DropTargetEvent event ) { event.feedback = DND.FEEDBACK_SCROLL | DND.FEEDBACK_SELECT; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/cb59eec61fac3f70118834d4b7418d08c64f26a0/SQLDataSetEditorPage.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
8823,
4851,
12,
10895,
2326,
1133,
871,
262,
1082,
202,
95,
9506,
202,
2575,
18,
12571,
273,
463,
2908,
18,
29195,
8720,
67,
2312,
14555,
25083,
202,
96,
463,
2908,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
8823,
4851,
12,
10895,
2326,
1133,
871,
262,
1082,
202,
95,
9506,
202,
2575,
18,
12571,
273,
463,
2908,
18,
29195,
8720,
67,
2312,
14555,
25083,
202,
96,
463,
2908,
18,
... |
public void setCssText( String cssText ) throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); | public void setCssText(String cssText) throws DOMException { throw new DOMException(DOMException.INVALID_ACCESS_ERR, "This is a color"); | public void setCssText( String cssText ) throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/a02f21737e5cac245dc17710370c9c1eda2116b3/DefaultCSSPrimitiveValue.java/buggy/src/java/org/xhtmlrenderer/css/impl/DefaultCSSPrimitiveValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
444,
7359,
1528,
12,
514,
31233,
262,
7734,
1216,
4703,
503,
288,
7734,
604,
394,
4703,
503,
12,
4703,
503,
18,
9347,
67,
13204,
67,
9712,
16,
315,
2503,
353,
279,
2036,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
444,
7359,
1528,
12,
514,
31233,
262,
7734,
1216,
4703,
503,
288,
7734,
604,
394,
4703,
503,
12,
4703,
503,
18,
9347,
67,
13204,
67,
9712,
16,
315,
2503,
353,
279,
2036,
6,
... |
try { lineNumber = mapping.getLineNumberForOffset(parser.getLastErrorOffset()); } catch (Exception ex) {} | lineNumber = parser.getLastErrorLine(); | static protected void reportException (Throwable e, String file, IParser parser, ILineOffsetReconciler mapping){ String output = null; int lineNumber = -1; try { lineNumber = mapping.getLineNumberForOffset(parser.getLastErrorOffset()); } catch (Exception ex) {} if (e instanceof AssertionFailedError) { output = file + ": Parse failed on line "; //$NON-NLS-1$ output += lineNumber + "\n"; //$NON-NLS-1$ } else { output = file + ": " + e.getClass().toString(); //$NON-NLS-1$ output += " on line " + lineNumber + "\n"; //$NON-NLS-1$ //$NON-NLS-2$ } try { if (report != null) { report.write(output.getBytes()); } } catch (IOException ex) {} fail(output); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/226defa14a6967e9fb25044745732169a2192074/TortureTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/TortureTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
4750,
918,
2605,
503,
261,
15155,
425,
16,
514,
585,
16,
467,
2678,
2082,
16,
467,
1670,
2335,
426,
11504,
2895,
2874,
15329,
202,
202,
780,
876,
273,
446,
31,
202,
202,
474,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
4750,
918,
2605,
503,
261,
15155,
425,
16,
514,
585,
16,
467,
2678,
2082,
16,
467,
1670,
2335,
426,
11504,
2895,
2874,
15329,
202,
202,
780,
876,
273,
446,
31,
202,
202,
474,... |
m_agent = MockSnmpAgent.createAgentAndRun(new File(testData), | m_agent = MockSnmpAgent.createAgentAndRun(new FileSystemResource(testData), | private void initializeAgent(String testData) throws InterruptedException { m_agent = MockSnmpAgent.createAgentAndRun(new File(testData), "127.0.0.1/1691"); } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/c1ac4c72b80eea3d8656d513b499a663a9eabaef/SnmpCollectorTest.java/buggy/opennms-services/src/test/java/org/opennms/netmgt/collectd/SnmpCollectorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4046,
3630,
12,
780,
1842,
751,
13,
1216,
7558,
288,
3639,
312,
67,
5629,
273,
7867,
10461,
1291,
3630,
18,
2640,
3630,
1876,
1997,
12,
2704,
10931,
1420,
12,
3813,
751,
3631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
918,
4046,
3630,
12,
780,
1842,
751,
13,
1216,
7558,
288,
3639,
312,
67,
5629,
273,
7867,
10461,
1291,
3630,
18,
2640,
3630,
1876,
1997,
12,
2704,
10931,
1420,
12,
3813,
751,
3631,
... |
public AllocationResult(AllocationResult ar1, AllocationResult ar2) { assert isAVVValid(ar1.avResults); assert isAVVValid(ar2.avResults); int len1 = ar1.avResults.length; int len2 = ar2.avResults.length; List mergedavs = new ArrayList(len1 + len2); outer: for (int i = 0; i < len2; i++) { AspectValue av2 = ar2.avResults[i]; int aspectType = av2.getAspectType(); for (int j = 0; j < len1; j++) { if (aspectType == ar1.avResults[j].getAspectType()) { continue outer; } } mergedavs.add(av2); } mergedavs.addAll(Arrays.asList(ar1.avResults)); int nAspects = mergedavs.size(); avResults = (AspectValue[]) mergedavs.toArray(new AspectValue[nAspects]); confrating = (ar1.confrating * len1 + ar2.confrating * (nAspects - len1)) / nAspects; if (ar1.auxqueries != null) { auxqueries = (String[]) ar1.auxqueries.clone(); } if (ar2.auxqueries != null) { String[] mergedQueries = assureAuxqueries(); for (int i = 0; i < AQTYPE_COUNT; i++) { if (mergedQueries[i] == null) mergedQueries[i] = ar2.auxqueries[i]; } } isSuccess = ar1.isSuccess() || ar2.isSuccess(); | public AllocationResult(double rating, boolean success, AspectValue[] aspectvalues) { isSuccess = success; confrating = (float) rating; avResults = cloneAndCheckAVV(aspectvalues); phasedavrs = null; clearMemos(); | public AllocationResult(AllocationResult ar1, AllocationResult ar2) { assert isAVVValid(ar1.avResults); assert isAVVValid(ar2.avResults); int len1 = ar1.avResults.length; int len2 = ar2.avResults.length; List mergedavs = new ArrayList(len1 + len2); outer: for (int i = 0; i < len2; i++) { AspectValue av2 = ar2.avResults[i]; int aspectType = av2.getAspectType(); for (int j = 0; j < len1; j++) { if (aspectType == ar1.avResults[j].getAspectType()) { continue outer; // Already have this AspectType } } mergedavs.add(av2); } mergedavs.addAll(Arrays.asList(ar1.avResults)); int nAspects = mergedavs.size(); avResults = (AspectValue[]) mergedavs.toArray(new AspectValue[nAspects]); confrating = (ar1.confrating * len1 + ar2.confrating * (nAspects - len1)) / nAspects; if (ar1.auxqueries != null) { auxqueries = (String[]) ar1.auxqueries.clone(); } if (ar2.auxqueries != null) { String[] mergedQueries = assureAuxqueries(); for (int i = 0; i < AQTYPE_COUNT; i++) { if (mergedQueries[i] == null) mergedQueries[i] = ar2.auxqueries[i]; } } isSuccess = ar1.isSuccess() || ar2.isSuccess(); } | 10687 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10687/3a7cfda88b62d8b21f3d19123c01fa980cce8e89/AllocationResult.java/clean/planning/src/org/cougaar/planning/ldm/plan/AllocationResult.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24242,
1253,
12,
17353,
1253,
419,
21,
16,
24242,
1253,
419,
22,
13,
288,
565,
1815,
353,
5856,
58,
1556,
12,
297,
21,
18,
842,
3447,
1769,
565,
1815,
353,
5856,
58,
1556,
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,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24242,
1253,
12,
17353,
1253,
419,
21,
16,
24242,
1253,
419,
22,
13,
288,
565,
1815,
353,
5856,
58,
1556,
12,
297,
21,
18,
842,
3447,
1769,
565,
1815,
353,
5856,
58,
1556,
12,
2... |
if (jj_3R_90()) return true; | if (jj_3R_89()) return true; | final private boolean jj_3_47() { if (jj_scan_token(AT)) return true; if (jj_3R_90()) return true; if (jj_scan_token(LPAREN)) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/204bebdbecd44fd7e3376db20b9709780ab79771/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
9462,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
789,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6675,
10756,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
9462,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
789,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6675,
10756,
327,... |
private String generatePeerCircleStyleString (double peerLocation) { | private String generatePeerCircleStyleString (double peerLocation, boolean offsetMe, double strength) { | private String generatePeerCircleStyleString (double peerLocation) { peerLocation *= Math.PI * 2; // int x = (int)(PEER_CIRCLE_RADIUS + Math.sin(peerLocation) * PEER_CIRCLE_RADIUS); int y = (int)(PEER_CIRCLE_RADIUS - Math.cos(peerLocation) * PEER_CIRCLE_RADIUS); // return "position: absolute; top: " + y + "px; left: " + x + "px"; } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/509340ba9541d1954856c0eed86c569371a2a26e/StatisticsToadlet.java/buggy/src/freenet/clients/http/StatisticsToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
2103,
6813,
19490,
2885,
780,
261,
9056,
4261,
2735,
13,
288,
202,
202,
12210,
2735,
6413,
2361,
18,
1102,
380,
576,
31,
202,
202,
759,
202,
202,
474,
619,
273,
261,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
2103,
6813,
19490,
2885,
780,
261,
9056,
4261,
2735,
13,
288,
202,
202,
12210,
2735,
6413,
2361,
18,
1102,
380,
576,
31,
202,
202,
759,
202,
202,
474,
619,
273,
261,
474... |
public boolean matches(ResolvedType typeX) { if (!typePattern.matchesStatically(typeX)) return false; if (typeX.getWorld().getLint().typeNotExposedToWeaver.isEnabled() && !typeX.isExposedToWeaver()) { typeX.getWorld().getLint().typeNotExposedToWeaver.signal(typeX.getName(), getSourceLocation()); } return true; | public boolean matches(ResolvedMember rm,World world) { return sigPattern.matches(rm,world,false); | public boolean matches(ResolvedType typeX) { if (!typePattern.matchesStatically(typeX)) return false; if (typeX.getWorld().getLint().typeNotExposedToWeaver.isEnabled() && !typeX.isExposedToWeaver()) { typeX.getWorld().getLint().typeNotExposedToWeaver.signal(typeX.getName(), getSourceLocation()); } return true; } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/75f50930796059524f6e3435037fd3bea69503d4/DeclareAnnotation.java/buggy/weaver/src/org/aspectj/weaver/patterns/DeclareAnnotation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1885,
12,
12793,
559,
618,
60,
13,
288,
202,
202,
430,
16051,
723,
3234,
18,
8436,
5788,
1230,
12,
723,
60,
3719,
327,
629,
31,
202,
202,
430,
261,
723,
60,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1885,
12,
12793,
559,
618,
60,
13,
288,
202,
202,
430,
16051,
723,
3234,
18,
8436,
5788,
1230,
12,
723,
60,
3719,
327,
629,
31,
202,
202,
430,
261,
723,
60,
18,
588,
... |
} else { super.acceptClassFiles(classFiles, null); | } super.acceptClassFiles(classFiles, null); | public boolean acceptClassFiles(org.eclipse.jdt.internal.compiler.ClassFile[] classFiles, char[] codeSnippetClassName) { if (jdiStackFrame == null) { return super.acceptClassFiles(classFiles, codeSnippetClassName); } else { // Send but don't run super.acceptClassFiles(classFiles, null); // Run if needed if (codeSnippetClassName != null) { boolean success = jdiStackFrame.run(new String(codeSnippetClassName)); if (success) { TargetInterface.Result result = target.getResult(); if (result.displayString == null) { this.acceptResult(new EvaluationResult(null, EvaluationResult.T_CODE_SNIPPET, null, null)); } else { this.acceptResult(new EvaluationResult(null, EvaluationResult.T_CODE_SNIPPET, result.displayString, result.typeName)); } } return success; } else { return true; } } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/bb9caf310cba60ea26e86d0cc9ab1b54feb67156/DebugEvaluationTest.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/DebugEvaluationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
2791,
797,
2697,
12,
3341,
18,
20416,
18,
78,
7510,
18,
7236,
18,
9576,
18,
797,
812,
8526,
667,
2697,
16,
1149,
8526,
981,
19614,
3834,
13,
288,
1082,
202,
430,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
2791,
797,
2697,
12,
3341,
18,
20416,
18,
78,
7510,
18,
7236,
18,
9576,
18,
797,
812,
8526,
667,
2697,
16,
1149,
8526,
981,
19614,
3834,
13,
288,
1082,
202,
430,
261,
... |
throw new IllegalArgumentException(); | return null; | public ITypeBinding resolveWellKnownType(String name) { if (name == null) { throw new IllegalArgumentException(); } return getBindingResolver().resolveWellKnownType(name); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/1f258635fb49ca32f9def120a3d2f7561eca1435/AST.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
559,
5250,
2245,
59,
1165,
11925,
559,
12,
780,
508,
13,
288,
202,
202,
430,
261,
529,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
97,
202,
202,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
559,
5250,
2245,
59,
1165,
11925,
559,
12,
780,
508,
13,
288,
202,
202,
430,
261,
529,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
97,
202,
202,
246... |
Thread thread = Thread.currentThread (); if (thread instanceof Future) ((Future) thread).err = e; else err = e; | errLocation.set(e); | static public void setErrDefault (OutPort e) { Thread thread = Thread.currentThread (); if (thread instanceof Future) ((Future) thread).err = e; else err = e; } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/d0a8e6b6450623d94052b4fea79cc7af8eb6fb08/OutPort.java/clean/gnu/mapping/OutPort.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1071,
918,
444,
2524,
1868,
261,
1182,
2617,
425,
13,
225,
288,
565,
4884,
2650,
273,
4884,
18,
2972,
3830,
261,
1769,
565,
309,
261,
5930,
1276,
9108,
13,
1377,
14015,
4118,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1071,
918,
444,
2524,
1868,
261,
1182,
2617,
425,
13,
225,
288,
565,
4884,
2650,
273,
4884,
18,
2972,
3830,
261,
1769,
565,
309,
261,
5930,
1276,
9108,
13,
1377,
14015,
4118,
13,
2... |
public boolean isDefaultGroup(String groupName) { if ((groupName == null) || (groupName.length() == 0)) { return false; } return m_groupAdministrators.equals(groupName) || m_groupProjectmanagers.equals(groupName) || m_groupUsers.equals(groupName) || m_groupGuests.equals(groupName); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/ffc41838b2d111ebeb91e9a4f240187165ad24d5/CmsDefaultUsers.java/buggy/src/org/opencms/db/CmsDefaultUsers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
20652,
1114,
12,
780,
11619,
13,
288,
7734,
309,
14015,
1655,
461,
422,
446,
13,
747,
261,
1655,
461,
18,
2469,
1435,
422,
374,
3719,
288,
5411,
327,
629,
31,
3639,
289,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
20652,
1114,
12,
780,
11619,
13,
288,
7734,
309,
14015,
1655,
461,
422,
446,
13,
747,
261,
1655,
461,
18,
2469,
1435,
422,
374,
3719,
288,
5411,
327,
629,
31,
3639,
289,
363... | ||
if (!myCaller.DefaultParmsCall(10).equals(myBase.getClass().getSimpleName() + "::DefaultParms(int, double)")) throw new RuntimeException("failed"); | if (!myCaller.DefaultParmsCall(10).equals(baseSimpleName + "::DefaultParms(int, double)")) throw new RuntimeException("failed"); | void makeCalls(Caller myCaller, Base myBase) { myCaller.set(myBase); DoubleHolder dh = new DoubleHolder(444.555); // Class pointer, reference and pass by value tests if (myCaller.ValCall(dh).getVal() != dh.getVal()) throw new RuntimeException("failed"); if (myCaller.RefCall(dh).getVal() != dh.getVal()) throw new RuntimeException("failed"); if (myCaller.PtrCall(dh).getVal() != dh.getVal()) throw new RuntimeException("failed"); // Fully overloaded method test (all methods in base class are overloaded) if (!myCaller.FullyOverloadedCall(10).equals(myBase.getClass().getSimpleName() + "::FullyOverloaded(int)")) { System.out.println(myCaller.FullyOverloadedCall(10) + "----" + (myBase.getClass().getSimpleName() + "::FullyOverloaded(int)")); throw new RuntimeException("failed"); } if (!myCaller.FullyOverloadedCall(true).equals(myBase.getClass().getSimpleName() + "::FullyOverloaded(bool)")) throw new RuntimeException("failed"); // Semi overloaded method test (some methods in base class are overloaded) if (!myCaller.SemiOverloadedCall(-678).equals(myBase.getClass().getSimpleName() + "::SemiOverloaded(int)")) throw new RuntimeException("failed"); if (!myCaller.SemiOverloadedCall(true).equals("Base" + "::SemiOverloaded(bool)")) throw new RuntimeException("failed"); // Default parameters methods test if (!(myCaller.DefaultParmsCall(10, 2.2)).equals(myBase.getClass().getSimpleName() + "::DefaultParms(int, double)")) throw new RuntimeException("failed"); if (myBase instanceof JavaDerived) { // special handling for Java derived classes, there is no way to do this any other way if (!myCaller.DefaultParmsCall(10).equals(myBase.getClass().getSimpleName() + "::DefaultParms(int, double)")) throw new RuntimeException("failed"); } else { if (!myCaller.DefaultParmsCall(10).equals(myBase.getClass().getSimpleName() + "::DefaultParms(int)")) throw new RuntimeException("failed"); } myCaller.reset(); } | 47242 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47242/d06e64c4684a1df7298bf4dd01824fb4f46439da/director_classes_runme.java/clean/Examples/test-suite/java/director_classes_runme.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1221,
10125,
12,
11095,
3399,
11095,
16,
3360,
3399,
2171,
13,
225,
288,
565,
3399,
11095,
18,
542,
12,
4811,
2171,
1769,
565,
3698,
6064,
11007,
273,
394,
3698,
6064,
12,
6334,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1221,
10125,
12,
11095,
3399,
11095,
16,
3360,
3399,
2171,
13,
225,
288,
565,
3399,
11095,
18,
542,
12,
4811,
2171,
1769,
565,
3698,
6064,
11007,
273,
394,
3698,
6064,
12,
6334,
24,
... |
if (typeCode == null) { String[] members = new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" }; typeCode = OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus", members ); } return typeCode; | String[] members = new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" }; return OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus", members ); | public static TypeCode type() { if (typeCode == null) { String[] members = new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" }; typeCode = OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus", members ); } return typeCode; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/69bc0cc80cc62a9c38f3e78efa1e73074699ed1b/CompletionStatusHelper.java/clean/org/omg/CORBA/CompletionStatusHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
30332,
618,
1435,
225,
288,
565,
309,
261,
723,
1085,
422,
446,
13,
1377,
288,
3639,
514,
8526,
4833,
273,
1850,
394,
514,
8526,
288,
315,
15795,
40,
67,
29081,
3113,
315,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30332,
618,
1435,
225,
288,
565,
309,
261,
723,
1085,
422,
446,
13,
1377,
288,
3639,
514,
8526,
4833,
273,
1850,
394,
514,
8526,
288,
315,
15795,
40,
67,
29081,
3113,
315,
15... |
while(rs.next()) { output.println("Table " + rs.getString(3)); output.println(" catalog " + rs.getString(1)); output.println(" schema " + rs.getString(2)); output.println(" name " + rs.getString(3)); output.println(" type " + rs.getString(4)); output.println(" remarks " + rs.getString(5)); } | while (rs.next()) { output.println("Table " + rs.getString(3)); output.println(" catalog " + rs.getString(1)); output.println(" schema " + rs.getString(2)); output.println(" name " + rs.getString(3)); output.println(" type " + rs.getString(4)); output.println(" remarks " + rs.getString(5)); } } catch (java.sql.SQLException e) { passed = false; output.println("Exception caught. " + e.getMessage()); e.printStackTrace(); } assertTrue(passed); | public void testxx0051() throws Exception { boolean passed = true; int i; int count = 0; Statement stmt = con.createStatement(); try { String types[] = {"TABLE"}; DatabaseMetaData dbMetaData = con.getMetaData( ); ResultSet rs = dbMetaData.getTables( null, "%", "t%", types); while(rs.next()) { output.println("Table " + rs.getString(3)); output.println(" catalog " + rs.getString(1)); output.println(" schema " + rs.getString(2)); output.println(" name " + rs.getString(3)); output.println(" type " + rs.getString(4)); output.println(" remarks " + rs.getString(5)); } } catch(java.sql.SQLException e) { passed = false; output.println("Exception caught. " + e.getMessage()); e.printStackTrace(); } assertTrue(passed); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/662fbbf0e5f04956f22a56e58dae82d6c816a2c6/CSUnitTest.java/buggy/src/test/net/sourceforge/jtds/test/CSUnitTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5279,
713,
10593,
1435,
1216,
1185,
288,
565,
1250,
2275,
273,
638,
31,
565,
509,
540,
277,
31,
565,
509,
540,
1056,
565,
273,
374,
31,
565,
8056,
282,
3480,
377,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
5279,
713,
10593,
1435,
1216,
1185,
288,
565,
1250,
2275,
273,
638,
31,
565,
509,
540,
277,
31,
565,
509,
540,
1056,
565,
273,
374,
31,
565,
8056,
282,
3480,
377,
273,
... |
public void detectNewRow( String path ) | public void detectNewRow( String path, boolean start ) | public void detectNewRow( String path ) { } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/857f08d2976a6c670029ef1e5217acb85d868190/SaxParserComplexNestedQueryHelper.java/buggy/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/SaxParserComplexNestedQueryHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5966,
1908,
1999,
12,
514,
589,
262,
202,
95,
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,
... | [
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,
225,
202,
482,
918,
5966,
1908,
1999,
12,
514,
589,
262,
202,
95,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
protected void init() { SpriteEditor.initSptNames(rom.getPath()); mainWindow = createBaseWindow(this); mainWindow.setTitle(this.getDescription()); //mainWindow.setSize(600, 510); mainWindow.getContentPane().add( new JSearchableComboBox(selector = createJComboBoxFromArray( new String[NUM_ENTRIES * 16], false), "Sprite: "), BorderLayout.NORTH); selector.setActionCommand("spriteSelector"); selector.addActionListener(this); JPanel entry = new JPanel(new BorderLayout()); JPanel entryEast = new JPanel(); entryEast.setLayout(new BoxLayout(entryEast, BoxLayout.Y_AXIS)); entryEast.add(getLabeledComponent("Address: ", addressLabel = new JLabel())); entryEast.add(getLabeledComponent("Palette: ", palNum = createJComboBoxFromArray(new Object[8]))); palNum.setActionCommand("palNumChanged"); palNum.addActionListener(this); tilesetBox = new Box(BoxLayout.Y_AXIS) { public void setEnabled(boolean b) { super.setEnabled(b); tileset.setEnabled(b); tilesetPal.setEnabled(b); } }; tilesetBox.add(getLabeledComponent("Tileset: ", tileset = createComboBox(TileEditor.TILESET_NAMES, this))); tileset.setActionCommand("tilesetSel"); tilesetBox.add(getLabeledComponent("Tileset Palette:", tilesetPal = new JComboBox())); tilesetPal.setActionCommand("palNumChanged"); tilesetPal.addActionListener(this); tileset.setSelectedIndex(0); entryEast.add(tilesetBox); tilesetBox.setEnabled(false); entryEast.add(HackModule.pairComponents(getLabeledComponent("Zoom: ", pairComponents(zoom = new JTextField(4), new JLabel("%"), true)), new JLabel(), false)); zoom.setText("1000"); zoom.getDocument().addDocumentListener(this); DrawingToolset dt = new DrawingToolset(this); entryEast.add(dt); entry .add(pairComponents(entryEast, dt, false, true), BorderLayout.EAST); spal = new SpritePalette(16); spal.setActionCommand("spal"); spal.addActionListener(this); JPanel spalWrapper = new JPanel(new FlowLayout()); spalWrapper.add(spal); entry.add(spalWrapper, BorderLayout.SOUTH); spriteDrawingArea = new IntArrDrawingArea(dt, spal); spriteDrawingArea.setZoom(10); spriteDrawingArea.setPreferredSize(new Dimension(10 * 32, 10 * 32)); entry .add(jsp = new JScrollPane(spriteDrawingArea), BorderLayout.CENTER); mainWindow.getContentPane().add(entry, BorderLayout.CENTER); //menu JMenuBar mb = new JMenuBar(); JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic('f'); fileMenu.add(HackModule.createJMenuItem("Import sprite...", 'i', null, "importImg", this)); fileMenu.add(HackModule.createJMenuItem("Export sprite...", 'e', null, "exportImg", this)); mb.add(fileMenu); JMenu editMenu = HackModule.createEditMenu(this, true); editMenu.addSeparator(); editMenu.add(HackModule.createJMenuItem("H-Flip", 'h', null, "hFlip", this)); editMenu.add(HackModule.createJMenuItem("V-Flip", 'v', null, "vFlip", this)); mb.add(editMenu); JMenu optionsMenu = new JMenu("Options"); optionsMenu.setMnemonic('o'); showRepeats = new JCheckBoxMenuItem("Show repeat sprites"); showRepeats.setMnemonic('s'); showRepeats.setSelected(false); showRepeats.setActionCommand("showRepeats"); showRepeats.addActionListener(this); optionsMenu.add(showRepeats); gridLines = new JCheckBoxMenuItem("Show gridLines"); gridLines.setMnemonic('g'); gridLines.setSelected(true); gridLines.setActionCommand("gridLines"); gridLines.addActionListener(this); optionsMenu.add(gridLines); optionsMenu.add(HackModule.createJMenuItem("Set background color", 'b', null, "setBgColor", this)); optionsMenu.add(HackModule.createJMenuItem("Jump to SPT Editor", 'j', null, "jumpSPT", this)); mb.add(optionsMenu); mainWindow.setJMenuBar(mb); addDataListener(sptNames, new ListDataListener() { public void contentsChanged(ListDataEvent lde) { initSelector(showRepeats.isSelected()); } public void intervalAdded(ListDataEvent arg0) {} public void intervalRemoved(ListDataEvent arg0) {} }); mainWindow.pack(); } | 3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/ef07b78cd4ebfc09d1eefc60ee0b85cd6b82404b/SpriteEditor.java/clean/src/net/starmen/pkhack/eb/SpriteEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
1435,
565,
288,
3639,
5878,
796,
6946,
18,
2738,
55,
337,
1557,
12,
520,
18,
588,
743,
10663,
3639,
2774,
3829,
273,
752,
2171,
3829,
12,
2211,
1769,
3639,
2774,
3829,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
1435,
565,
288,
3639,
5878,
796,
6946,
18,
2738,
55,
337,
1557,
12,
520,
18,
588,
743,
10663,
3639,
2774,
3829,
273,
752,
2171,
3829,
12,
2211,
1769,
3639,
2774,
3829,
... | ||
public void widgetSelected( SelectionEvent e ) { saveDecision = !saveDecision; } | public void widgetSelected( SelectionEvent e ) { saveDecision = !saveDecision; } | protected Control createCustomArea( Composite parent ) { Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.marginWidth = 20; // gridLayout.marginTop = 15; container.setLayout( gridLayout ); Button chkbox = new Button( container, SWT.CHECK ); chkbox.setText( REMEMBER_DECISION ); chkbox.addSelectionListener( new SelectionListener( ) { public void widgetSelected( SelectionEvent e ) { saveDecision = !saveDecision; } public void widgetDefaultSelected( SelectionEvent e ) { saveDecision = false; } } ); return super.createCustomArea( parent ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/6f2bf55f121981dcb9b70c8145124efef6d7ada0/ExportToLibraryAction.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/ExportToLibraryAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
15106,
202,
1117,
8888,
752,
3802,
5484,
12,
14728,
982,
262,
6862,
1082,
202,
95,
6862,
9506,
202,
9400,
1478,
273,
394,
14728,
12,
982,
16,
6862,
25083,
202,
55,
8588,
18,
9826,
11272,
6862,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15106,
202,
1117,
8888,
752,
3802,
5484,
12,
14728,
982,
262,
6862,
1082,
202,
95,
6862,
9506,
202,
9400,
1478,
273,
394,
14728,
12,
982,
16,
6862,
25083,
202,
55,
8588,
18,
9826,
11272,
6862,... |
if (parent != null) { String prefix = element.getNamespacePrefix(); if (!element.getNamespaceURI(prefix) .equals(parent.getNamespaceURI(prefix))) { contentHandler.endPrefixMapping(prefix); } for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!element.getNamespaceURI(attPrefix) .equals(parent.getNamespaceURI(attPrefix)) && !element.getNamespacePrefix().equals( attPrefix) && !"xml".equals(attPrefix)) { contentHandler.endPrefixMapping(attPrefix); } } } else { String prefix = element.getNamespacePrefix(); if (!prefix.equals("") && !"xml".equals(prefix)) { contentHandler.endPrefixMapping(prefix); } for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!attPrefix.equals("") && !attPrefix .equals(element.getNamespacePrefix()) && !"xml".equals(attPrefix)) { contentHandler.endPrefixMapping(attPrefix); } } } | private void convertElement(Element element) throws SAXException { locator.setSystemId(element.getBaseURI()); ParentNode parentNode = element.getParent(); Element parent = null; if (parentNode instanceof Element) { parent = (Element) parentNode; } // start prefix mapping for (int i = 0; i < element.getNamespaceDeclarationCount(); i++) { String prefix = element.getNamespacePrefix(i); convertNamespace(element, prefix); } if (parent != null) { // now handle element's prefix if not declared on ancestor String prefix = element.getNamespacePrefix(); if (!element.getNamespaceURI(prefix) .equals(parent.getNamespaceURI(prefix))) { contentHandler.startPrefixMapping(prefix, element.getNamespaceURI(prefix)); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!element.getNamespaceURI(attPrefix) .equals(parent.getNamespaceURI(attPrefix)) && !element.getNamespacePrefix() .equals(attPrefix) // SAX never calls startPrefixMapping for the xml prefix && !"xml".equals(attPrefix)) { contentHandler.startPrefixMapping(attPrefix, element.getNamespaceURI(attPrefix)); } } } else { // declare all prefixes String prefix = element.getNamespacePrefix(); if (!prefix.equals("") && !"xml".equals(prefix)) { contentHandler.startPrefixMapping(prefix, element.getNamespaceURI()); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if ("xml".equals(attPrefix)) { continue; } else if (!attPrefix.equals("") && !attPrefix.equals(element.getNamespacePrefix())){ contentHandler.startPrefixMapping(attPrefix, att.getNamespaceURI()); } } } // add attributes AttributesImpl saxAttributes = new AttributesImpl(); for (int i = 0; i < element.getAttributeCount(); i++) { Attribute attribute = element.getAttribute(i); // The base URIs provided by the locator have already // accounted for any xml:base attributes. We do not // also pass in xml:base attributes or some relative base // URIs could be applied twice. if ("base".equals(attribute.getLocalName()) && "http://www.w3.org/XML/1998/namespace".equals(attribute.getNamespaceURI()) && stripBaseAttributes) { continue; } saxAttributes.addAttribute(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getQualifiedName(), getSAXType(attribute), attribute.getValue()); } contentHandler.startElement( element.getNamespaceURI(), element.getLocalName(), element.getQualifiedName(), saxAttributes); for (int i = 0; i < element.getChildCount(); i++) { process(element.getChild(i)); } contentHandler.endElement(element.getNamespaceURI(), element.getLocalName(), element.getQualifiedName()); // end prefix mappings for (int i = 0; i < element.getNamespaceDeclarationCount(); i++) { String prefix = element.getNamespacePrefix(i); if (parent == null) { String uri = element.getNamespaceURI(prefix); if ("".equals(uri)) continue; contentHandler.endPrefixMapping(prefix); } } if (parent != null) { // Now handle element's prefix if not declared on ancestor String prefix = element.getNamespacePrefix(); if (!element.getNamespaceURI(prefix) .equals(parent.getNamespaceURI(prefix))) { contentHandler.endPrefixMapping(prefix); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!element.getNamespaceURI(attPrefix) .equals(parent.getNamespaceURI(attPrefix)) && !element.getNamespacePrefix().equals( attPrefix) && !"xml".equals(attPrefix)) { contentHandler.endPrefixMapping(attPrefix); } } } else { // undeclare all prefixes String prefix = element.getNamespacePrefix(); if (!prefix.equals("") && !"xml".equals(prefix)) { contentHandler.endPrefixMapping(prefix); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!attPrefix.equals("") && !attPrefix .equals(element.getNamespacePrefix()) && !"xml".equals(attPrefix)) { contentHandler.endPrefixMapping(attPrefix); } } } } | 8327 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8327/c60719f03d483bce4d54a3c9be895842bab622b9/SAXConverter.java/clean/src/nu/xom/converters/SAXConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1765,
1046,
12,
1046,
930,
13,
1216,
14366,
288,
7734,
8871,
18,
542,
3163,
548,
12,
2956,
18,
588,
2171,
3098,
10663,
7734,
9520,
907,
7234,
273,
930,
18,
588,
3054,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1765,
1046,
12,
1046,
930,
13,
1216,
14366,
288,
7734,
8871,
18,
542,
3163,
548,
12,
2956,
18,
588,
2171,
3098,
10663,
7734,
9520,
907,
7234,
273,
930,
18,
588,
3054,
5621,
3... | |
private void initDisplayArea( ) { if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals( selectedType ) ) { if ( inputHandle.getURI( ) != null ) { locationEditor.setText( inputHandle.getURI( ) ); } if ( inputHandle.getTargetWindow( ) != null ) { targetChooser.setText( ChoiceSetFactory.getDisplayNameFromChoiceSet( inputHandle.getTargetWindow( ), CHOICESET_TARGET ) ); } else { targetChooser.select( 0 ); } } else if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals( selectedType ) ) { if ( inputHandle.getTargetBookmark( ) != null ) { bookmarkEditor.setText( inputHandle.getTargetBookmark( ) ); } initBookmarkList( SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) ); } else if ( DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH.equals( selectedType ) ) { // if ( inputHandle.getTargetBookmark( ) != null ) // { // bookmarkEditor.setText( inputHandle.getTargetBookmark( ) ); // } // if ( inputHandle.getReportName( ) != null ) // { // locationEditor.setText( inputHandle.getReportName( ) ); // } // else // { // initParamterBindings( ); // initBookmarkList( null ); // } // if ( inputHandle.getTargetWindow( ) != null ) // { // targetChooser.setText( // ChoiceSetFactory.getDisplayNameFromChoiceSet( // inputHandle.getTargetWindow( ), // CHOICESET_TARGET ) ); // } // else // { // targetChooser.select( 0 ); // } // if ( inputHandle.getFormatType( ) != null ) // { // formatChooser.setText( // ChoiceSetFactory.getDisplayNameFromChoiceSet( // inputHandle.getFormatType( ), // CHOICESET_FORMAT ) ); // } // else // { // formatChooser.select( 0 ); // } // TODO if ( DesignChoiceConstants.ACTION_TARGET_FILE_TYPE_REPORT_DOCUMENT.equals( inputHandle.getTargetFileType( ) ) ) { reportDocumentButton.setSelection( true ); if ( inputHandle.getReportName( ) != null ) { documentEditor.setText( inputHandle.getReportName( ) ); } selectRadio( targetGroup, reportDocumentButton ); } else { reportDesignButton.setSelection( true ); if ( inputHandle.getReportName( ) != null ) { locationEditor.setText( inputHandle.getReportName( ) ); } selectRadio( targetGroup, reportDesignButton ); } //edit mode, initail pre-setting if ( inputHandle.getReportName( ) != null ) { initTargetReport( inputHandle.getReportName( ) ); } if ( DesignChoiceConstants.ACTION_BOOKMARK_TYPE_BOOKMARK.equals( inputHandle.getTargetBookmarkType( ) ) ) { targetBookmarkButton.setSelection( true ); initAnchorChooser( targetReportHandle, false ); } else if ( DesignChoiceConstants.ACTION_BOOKMARK_TYPE_TOC.equals( inputHandle.getTargetBookmarkType( ) ) ) { tocButton.setSelection( true ); initAnchorChooser( targetReportHandle, true ); } if ( inputHandle.getTargetBookmark( ) != null ) { bookmarkEditor.setText( inputHandle.getTargetBookmark( ) ); } if ( DesignChoiceConstants.TARGET_NAMES_TYPE_BLANK.equals( inputHandle.getTargetWindow( ) ) ) { newWindowButton.setSelection( true ); } else { sameWindowButton.setSelection( true ); } if ( DesignChoiceConstants.FORMAT_TYPE_PDF.equals( inputHandle.getFormatType( ) ) ) { pdfButton.setSelection( true ); } else { htmlButton.setSelection( true ); } } updateButtons( ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/0c20a71f98e5121addd416f2d84779ad7174c7ba/HyperlinkBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
4236,
5484,
12,
262,
202,
95,
202,
202,
430,
261,
29703,
10538,
2918,
18,
12249,
67,
10554,
67,
2399,
67,
44,
61,
3194,
10554,
18,
14963,
12,
3170,
559,
262,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
4236,
5484,
12,
262,
202,
95,
202,
202,
430,
261,
29703,
10538,
2918,
18,
12249,
67,
10554,
67,
2399,
67,
44,
61,
3194,
10554,
18,
14963,
12,
3170,
559,
262,
262,
... | ||
public void saveRequested() { if (MylarTaskListPlugin.getDefault() != null && MylarTaskListPlugin.getDefault().isShellActive() || forceBackgroundSave) { try { saveTaskListAndContexts(); // MylarStatusHandler.log("Automatically saved task list", // this); } catch (Exception e) { MylarStatusHandler.fail(e, "Could not auto save task list", false); } } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f99c5ccf9793e2db3d60101618a099c85fcc7ba1/TaskListSaveManager.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/util/TaskListSaveManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
11244,
1435,
288,
202,
202,
430,
261,
12062,
7901,
2174,
682,
3773,
18,
588,
1868,
1435,
480,
446,
597,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
291,
13220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
11244,
1435,
288,
202,
202,
430,
261,
12062,
7901,
2174,
682,
3773,
18,
588,
1868,
1435,
480,
446,
597,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
291,
13220,
... | ||
private void setMax(int max) { this.max = new SimplePosition(false,false,max); } | void setMax(int max) { this.max = new SimplePosition(false,false,max); } | private void setMax(int max) { this.max = new SimplePosition(false,false,max); } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/dc62a0a7cf481c21c3be647214959067a3b98f61/SimpleRichLocation.java/buggy/src/org/biojavax/bio/seq/SimpleRichLocation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10851,
12,
474,
943,
13,
288,
225,
333,
18,
1896,
273,
394,
4477,
2555,
12,
5743,
16,
5743,
16,
1896,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
10851,
12,
474,
943,
13,
288,
225,
333,
18,
1896,
273,
394,
4477,
2555,
12,
5743,
16,
5743,
16,
1896,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.