rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
+ "<value-of>GlobalBirt.CurrentPage</value-of>" ;
|
+ "<value-of>pageNumber</value-of>" ;
|
public boolean preHandleMouseUp( ) { ModuleHandle reportDesignHandle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); // ElementFactory factory = reportDesignHandle.getElementFactory( ); DesignElementFactory factory = DesignElementFactory.getInstance( reportDesignHandle ); String type = (String) getRequest( ).getNewObjectType( ); GridHandle grid = null; if ( IReportElementConstants.AUTOTEXT_AUTHOR_PAGE_DATE.equals( type ) ) { grid = factory.newGridItem( null, 3, 1 ); try { List cellList = ( (RowHandle) grid.getRows( ).get( 0 ) ).getCells( ) .getContents( ); TextItemHandle textHandle = factory.newTextItem( null ); String text = AUTOTEXT_LABEL_CREATE_BY; if ( reportDesignHandle.getAuthor( ) != null ) { text += reportDesignHandle.getAuthor( ); } textHandle.setContent( text ); ( (CellHandle) cellList.get( 0 ) ).getContent( ) .add( textHandle ); text = AUTOTEXT_LABEL_PAGE + "<value-of>GlobalBirt.CurrentPage</value-of>" ; //$NON-NLS-1$ textHandle = factory.newTextItem( null ); textHandle.setContent( text ); ( (CellHandle) cellList.get( 1 ) ).getContent( ) .add( textHandle ); textHandle = factory.newTextItem( null ); textHandle.setContent( "<value-of>new Date()</value-of>" ); //$NON-NLS-1$ textHandle.setContentType( DesignChoiceConstants.TEXT_CONTENT_TYPE_HTML ); ( (CellHandle) cellList.get( 2 ) ).getContent( ) .add( textHandle ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } } else if ( IReportElementConstants.AUTOTEXT_CONFIDENTIAL_PAGE.equals( type ) ) { grid = factory.newGridItem( null, 2, 1 ); try { List cellList = ( (RowHandle) grid.getRows( ).get( 0 ) ).getCells( ) .getContents( ); TextItemHandle textHandle = factory.newTextItem( null ); textHandle.setContent( AUTOTEXT_TEXT_CONFIDENTIAL ); textHandle.setContentType( DesignChoiceConstants.TEXT_CONTENT_TYPE_HTML ); ( (CellHandle) cellList.get( 0 ) ).getContent( ) .add( textHandle ); String text = AUTOTEXT_LABEL_PAGE + "<value-of>GlobalBirt.CurrentPage</value-of>" ; //$NON-NLS-1$ textHandle = factory.newTextItem( null ); textHandle.setContent( text ); ( (CellHandle) cellList.get( 1 ) ).getContent( ) .add( textHandle ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } } else if ( IReportElementConstants.REPORT_ELEMENT_GRID.equals( type ) ) { TableOptionDialog dlg = new TableOptionDialog( UIUtil.getDefaultShell( ), false ); if ( dlg.open( ) == Window.OK && dlg.getResult( ) instanceof int[] ) { int[] data = (int[]) dlg.getResult( ); grid = factory.newGridItem( null, data[1], data[0] ); } else { return false; } } else { return false; } InsertInLayoutUtil.setInitWidth( grid ); setModel( grid ); return super.preHandleMouseUp( ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/71aff369c2b93e91b8fc3e55ab97c707f28b8c23/BasePaletteFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/palette/BasePaletteFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
675,
3259,
9186,
1211,
12,
262,
202,
202,
95,
1082,
202,
3120,
3259,
2605,
15478,
3259,
273,
3877,
3259,
4216,
18,
588,
1442,
12,
262,
6862,
202,
18,
588,
4820,
15478,
3259,
12,
11272,
1082,
202,
759,
3010,
1733,
3272,
273,
2605,
15478,
3259,
18,
21336,
1733,
12,
11272,
1082,
202,
15478,
1046,
1733,
3272,
273,
29703,
1046,
1733,
18,
588,
1442,
12,
2605,
15478,
3259,
11272,
1082,
202,
780,
618,
273,
261,
780,
13,
4328,
12,
262,
18,
588,
1908,
17610,
12,
11272,
1082,
202,
6313,
3259,
3068,
273,
446,
31,
1082,
202,
430,
261,
467,
4820,
1046,
2918,
18,
18909,
5151,
67,
7131,
916,
67,
11219,
67,
4594,
18,
14963,
12,
618,
262,
262,
1082,
202,
95,
9506,
202,
5222,
273,
3272,
18,
2704,
6313,
1180,
12,
446,
16,
890,
16,
404,
11272,
9506,
202,
698,
9506,
202,
95,
6862,
202,
682,
2484,
682,
273,
261,
261,
1999,
3259,
13,
3068,
18,
588,
4300,
12,
262,
18,
588,
12,
374,
262,
262,
18,
588,
10505,
12,
262,
6862,
1082,
202,
18,
588,
6323,
12,
11272,
6862,
202,
1528,
1180,
3259,
977,
3259,
273,
3272,
18,
2704,
1528,
1180,
12,
446,
11272,
6862,
202,
780,
977,
273,
17191,
5151,
67,
13545,
67,
9344,
67,
6486,
31,
6862,
202,
430,
261,
2605,
15478,
3259,
18,
588,
3594,
12,
262,
480,
446,
262,
6862,
202,
95,
25083,
202,
955,
1011,
2605,
15478,
3259,
18,
588,
3594,
12,
11272,
6862,
202,
97,
6862,
202,
955,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
675,
3259,
9186,
1211,
12,
262,
202,
202,
95,
1082,
202,
3120,
3259,
2605,
15478,
3259,
273,
3877,
3259,
4216,
18,
588,
1442,
12,
262,
6862,
202,
18,
588,
4820,
15478,
3259,
12,
11272,
1082,
202,
759,
3010,
1733,
3272,
273,
2605,
15478,
3259,
18,
21336,
1733,
12,
11272,
1082,
202,
15478,
1046,
1733,
3272,
273,
29703,
1046,
1733,
18,
588,
1442,
12,
2605,
15478,
3259,
11272,
1082,
202,
780,
618,
273,
261,
780,
13,
4328,
12,
262,
18,
588,
1908,
17610,
12,
11272,
1082,
202,
6313,
3259,
3068,
273,
446,
31,
1082,
202,
430,
261,
467,
4820,
1046,
2918,
18,
18909,
5151,
67,
7131,
916,
67,
11219,
67,
4594,
18,
14963,
12,
618,
262,
2
] |
.substring(OAI_ID_PREFIX.length()), true);
|
.substring(OAI_ID_PREFIX.length()), true);
|
public String getRecord(String identifier, String metadataPrefix) throws OAIInternalServerError, CannotDisseminateFormatException, IdDoesNotExistException { log .info(LogManager.getHeader(null, "oai_request", "verb=getRecord,identifier=" + ((identifier == null) ? "null" : identifier) + ",metadataPrefix=" + ((metadataPrefix == null) ? "null" : metadataPrefix))); Context context = null; HarvestedItemInfo itemInfo = null; // First get the item from the DB try { // Valid IDs start with oai:hostname: if (identifier.startsWith(OAI_ID_PREFIX)) { context = new Context(); itemInfo = Harvest.getSingle(context, identifier .substring(OAI_ID_PREFIX.length()), // Strip prefix to // get raw handle true); } } catch (SQLException se) { // Log the error log.warn(LogManager.getHeader(context, "database_error", ""), se); throw new OAIInternalServerError(se.toString()); } finally { if (context != null) { context.abort(); } } String schemaURL = null; if (itemInfo == null) { log.info(LogManager.getHeader(null, "oai_error", "id_does_not_exist")); throw new IdDoesNotExistException(identifier); } else if ((schemaURL = getCrosswalks().getSchemaURL(metadataPrefix)) == null) { log.info(LogManager.getHeader(null, "oai_error", "cannot_disseminate_format")); throw new CannotDisseminateFormatException(metadataPrefix); } return getRecordFactory().create(itemInfo, schemaURL, metadataPrefix); }
|
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/931cea5fe9a8f6be2278ec049164087305e38783/DSpaceOAICatalog.java/buggy/dspace/src/org/dspace/app/oai/DSpaceOAICatalog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11674,
12,
780,
2756,
16,
514,
1982,
2244,
13,
5411,
1216,
531,
18194,
12371,
16,
14143,
1669,
307,
1154,
340,
9291,
16,
5411,
3124,
26621,
565,
288,
3639,
613,
7734,
263,
1376,
12,
1343,
1318,
18,
588,
1864,
12,
2011,
16,
315,
83,
10658,
67,
2293,
3113,
13491,
315,
16629,
33,
588,
2115,
16,
5644,
1546,
27573,
397,
14015,
5644,
422,
446,
13,
692,
315,
2011,
6,
294,
2756,
13,
27573,
397,
3104,
4165,
2244,
1546,
27573,
397,
14015,
4165,
2244,
422,
446,
13,
692,
315,
2011,
6,
4766,
3639,
294,
1982,
2244,
3719,
1769,
3639,
1772,
819,
273,
446,
31,
3639,
670,
297,
90,
3149,
1180,
966,
761,
966,
273,
446,
31,
3639,
368,
5783,
336,
326,
761,
628,
326,
2383,
3639,
775,
3639,
288,
5411,
368,
2364,
7115,
787,
598,
320,
10658,
30,
10358,
30,
5411,
309,
261,
5644,
18,
17514,
1190,
12,
51,
18194,
67,
734,
67,
6307,
3719,
5411,
288,
7734,
819,
273,
394,
1772,
5621,
7734,
761,
966,
273,
670,
297,
26923,
18,
588,
5281,
12,
2472,
16,
2756,
13491,
263,
28023,
12,
51,
18194,
67,
734,
67,
6307,
18,
2469,
1435,
3631,
368,
15589,
1633,
358,
4766,
18701,
368,
336,
1831,
1640,
13491,
638,
1769,
5411,
289,
3639,
289,
3639,
1044,
261,
23116,
695,
13,
3639,
288,
5411,
368,
1827,
326,
555,
5411,
613,
18,
8935,
12,
1343,
1318,
18,
588,
1864,
12,
2472,
16,
315,
6231,
67,
1636,
3113,
1408,
3631,
695,
1769,
5411,
604,
394,
531,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11674,
12,
780,
2756,
16,
514,
1982,
2244,
13,
5411,
1216,
531,
18194,
12371,
16,
14143,
1669,
307,
1154,
340,
9291,
16,
5411,
3124,
26621,
565,
288,
3639,
613,
7734,
263,
1376,
12,
1343,
1318,
18,
588,
1864,
12,
2011,
16,
315,
83,
10658,
67,
2293,
3113,
13491,
315,
16629,
33,
588,
2115,
16,
5644,
1546,
27573,
397,
14015,
5644,
422,
446,
13,
692,
315,
2011,
6,
294,
2756,
13,
27573,
397,
3104,
4165,
2244,
1546,
27573,
397,
14015,
4165,
2244,
422,
446,
13,
692,
315,
2011,
6,
4766,
3639,
294,
1982,
2244,
3719,
1769,
3639,
1772,
819,
273,
446,
31,
3639,
670,
297,
90,
3149,
1180,
966,
761,
966,
273,
446,
31,
3639,
368,
5783,
2
] |
String hexval = new String(hexChars); try { long read = Fields.hexToLong(hexval); if (read == 0) throw new URLEncodedFormatException("Can't encode" + " 00"); buf.append(new Character((char) read)); } catch (NumberFormatException nfe) { throw new URLEncodedFormatException(s); }
|
String hexval = new String(hexChars); try { long read = Fields.hexToLong(hexval); if (read == 0) throw new URLEncodedFormatException("Can't encode" + " 00"); decodedBytes.write((int) read); } catch (NumberFormatException nfe) { throw new URLEncodedFormatException(s); } } else decodedBytes.write(c);
|
public static String decode(String s) throws URLEncodedFormatException { if (s.length()==0) return ""; int len = s.length(); StringBuffer buf = new StringBuffer(); for (int i = 0; i < len; i++) { char c = s.charAt(i); if (Character.isLetterOrDigit(c)) buf.append(c); else if (c == '+') buf.append(' '); else if (safeCharList.indexOf(c) != -1) buf.append(c); else if (c == '%') { if (i >= len - 2) { throw new URLEncodedFormatException(s); } else { char[] hexChars = new char[2]; hexChars[0] = s.charAt(++i); hexChars[1] = s.charAt(++i); String hexval = new String(hexChars); try { long read = Fields.hexToLong(hexval); if (read == 0) throw new URLEncodedFormatException("Can't encode" + " 00"); buf.append(new Character((char) read)); } catch (NumberFormatException nfe) { throw new URLEncodedFormatException(s); } } } else buf.append(c); // throw new URLEncodedFormatException(s); } return buf.toString(); }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/144c6fa8b4af3023cb6f0c50203b29af750a73e7/URLDecoder.java/buggy/src/freenet/support/URLDecoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2495,
12,
780,
272,
13,
1216,
1976,
10397,
9291,
288,
202,
430,
261,
87,
18,
2469,
1435,
631,
20,
13,
327,
1408,
31,
202,
474,
562,
273,
272,
18,
2469,
5621,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
565,
1149,
276,
273,
272,
18,
3001,
861,
12,
77,
1769,
202,
565,
309,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
71,
3719,
202,
202,
4385,
18,
6923,
12,
71,
1769,
202,
565,
469,
309,
261,
71,
422,
15126,
6134,
202,
202,
4385,
18,
6923,
2668,
28005,
202,
565,
469,
309,
261,
4626,
2156,
682,
18,
31806,
12,
71,
13,
480,
300,
21,
13,
202,
202,
4385,
18,
6923,
12,
71,
1769,
202,
565,
469,
309,
261,
71,
422,
1995,
6134,
288,
202,
202,
430,
261,
77,
1545,
562,
300,
576,
13,
288,
377,
1082,
565,
604,
394,
1976,
10397,
9291,
12,
87,
1769,
202,
202,
97,
469,
288,
1082,
565,
1149,
8526,
3827,
7803,
273,
394,
1149,
63,
22,
15533,
1082,
565,
3827,
7803,
63,
20,
65,
273,
272,
18,
3001,
861,
12,
9904,
77,
1769,
1082,
565,
3827,
7803,
63,
21,
65,
273,
272,
18,
3001,
861,
12,
9904,
77,
1769,
1082,
565,
514,
3827,
1125,
273,
394,
514,
12,
7118,
7803,
1769,
1082,
565,
775,
288,
13491,
1525,
855,
273,
7190,
18,
7118,
30220,
12,
7118,
1125,
1769,
13491,
309,
261,
896,
422,
374,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2495,
12,
780,
272,
13,
1216,
1976,
10397,
9291,
288,
202,
430,
261,
87,
18,
2469,
1435,
631,
20,
13,
327,
1408,
31,
202,
474,
562,
273,
272,
18,
2469,
5621,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
565,
1149,
276,
273,
272,
18,
3001,
861,
12,
77,
1769,
202,
565,
309,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
71,
3719,
202,
202,
4385,
18,
6923,
12,
71,
1769,
202,
565,
469,
309,
261,
71,
422,
15126,
6134,
202,
202,
4385,
18,
6923,
2668,
28005,
202,
565,
469,
309,
261,
4626,
2156,
682,
18,
31806,
12,
71,
2
] |
AST tmp938_AST_in = (AST)_t;
|
AST tmp942_AST_in = (AST)_t;
|
public final void ddegetstate(AST _t) throws RecognitionException { AST ddegetstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t342 = _t; AST tmp935_AST_in = (AST)_t; match(_t,DDE); _t = _t.getFirstChild(); AST tmp936_AST_in = (AST)_t; match(_t,GET); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp937_AST_in = (AST)_t; match(_t,TARGET); _t = _t.getNextSibling(); fld(_t,CQ.UPDATING); _t = _retTree; AST tmp938_AST_in = (AST)_t; match(_t,ITEM); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TIME: { AST __t344 = _t; AST tmp939_AST_in = (AST)_t; match(_t,TIME); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t344; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp940_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t342; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
302,
323,
588,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
302,
323,
588,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
5026,
22,
273,
389,
88,
31,
202,
202,
9053,
1853,
29,
4763,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
40,
1639,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
29,
5718,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
3264,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
8692,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
9053,
1853,
29,
6418,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
16374,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
19794,
24899,
88,
16,
39,
53,
18,
3079,
11102,
1360,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
9053,
1853,
29,
7414,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
12674,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
8692,
24899,
88,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
302,
323,
588,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
302,
323,
588,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
5026,
22,
273,
389,
88,
31,
202,
202,
9053,
1853,
29,
4763,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
40,
1639,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
29,
5718,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
3264,
1769,
2
] |
application.getSettings().setStripWicketTags(false);
|
application.getMarkupSettings().setStripWicketTags(false);
|
public void testRenderHomePage_1() throws Exception { application.getSettings().setStripWicketTags(false); executeTest(Href_1.class, "HrefExpectedResult_1.html"); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/8294ee3b065bff22b5be9701606c00af9fd02f3d/HrefTest.java/buggy/wicket/src/test/wicket/markup/html/link/HrefTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3420,
8684,
1964,
67,
21,
1435,
1216,
1185,
202,
95,
202,
202,
3685,
18,
588,
2628,
7675,
542,
16632,
59,
29378,
3453,
12,
5743,
1769,
202,
565,
1836,
4709,
12,
15962,
67,
21,
18,
1106,
16,
315,
15962,
6861,
1253,
67,
21,
18,
2620,
8863,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3420,
8684,
1964,
67,
21,
1435,
1216,
1185,
202,
95,
202,
202,
3685,
18,
588,
2628,
7675,
542,
16632,
59,
29378,
3453,
12,
5743,
1769,
202,
565,
1836,
4709,
12,
15962,
67,
21,
18,
1106,
16,
315,
15962,
6861,
1253,
67,
21,
18,
2620,
8863,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); PrepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch(v2.getKind()) { case Item.REGISTER: os.writeCMP(r1, v2.getRegister()); break; case Item.LOCAL: os.writeCMP(r1, v2.getOffsetToFP(), FP); break; case Item.CONSTANT: int c2 = v2.getValue(); os.writeCMP(r1, c2); break; } v2.release(eContext); vstack.pushItem(v1); os.writeJCC(helper.getInstrLabel(address), jccOpcode); }
|
IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); PrepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.REGISTER: os.writeCMP(r1, v2.getRegister()); break; case Item.LOCAL: os.writeCMP(r1, v2.getOffsetToFP(), FP); break; case Item.CONSTANT: int c2 = v2.getValue(); os.writeCMP(r1, c2); break; } v2.release(eContext); vstack.pushItem(v1); os.writeJCC(helper.getInstrLabel(address), jccOpcode); }
|
private final void visit_if_xcmp(int address, int jccOpcode) { IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); PrepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch(v2.getKind()) { case Item.REGISTER: os.writeCMP(r1, v2.getRegister()); break; case Item.LOCAL: os.writeCMP(r1, v2.getOffsetToFP(), FP); break; case Item.CONSTANT: int c2 = v2.getValue(); os.writeCMP(r1, c2); break; } v2.release(eContext); vstack.pushItem(v1); os.writeJCC(helper.getInstrLabel(address), jccOpcode); // helper.writePOP(S0); // Value2// helper.writePOP(T0); // Value1// os.writeCMP(T0, S0);// os.writeJCC(helper.getInstrLabel(address), jccOpcode); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/d402ee1c5f9ab6d1c5b4f597b70658827f1f304d/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
3757,
67,
430,
67,
6511,
1291,
12,
474,
1758,
16,
509,
525,
952,
22808,
13,
288,
202,
202,
1702,
1180,
331,
22,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
1702,
1180,
331,
21,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
7543,
1290,
2988,
12,
90,
21,
16,
331,
22,
1769,
9506,
202,
3996,
436,
21,
273,
331,
21,
18,
588,
3996,
5621,
9506,
202,
9610,
12,
90,
22,
18,
588,
5677,
10756,
288,
1082,
202,
3593,
4342,
18,
27511,
30,
9506,
202,
538,
18,
2626,
39,
4566,
12,
86,
21,
16,
331,
22,
18,
588,
3996,
10663,
9506,
202,
8820,
31,
1082,
202,
3593,
4342,
18,
14922,
30,
9506,
202,
538,
18,
2626,
39,
4566,
12,
86,
21,
16,
331,
22,
18,
588,
2335,
774,
30246,
9334,
28740,
1769,
9506,
202,
8820,
31,
1082,
202,
3593,
4342,
18,
25878,
30,
9506,
202,
474,
276,
22,
273,
331,
22,
18,
24805,
5621,
9506,
202,
538,
18,
2626,
39,
4566,
12,
86,
21,
16,
276,
22,
1769,
9506,
202,
8820,
31,
202,
202,
97,
202,
202,
90,
22,
18,
9340,
12,
73,
1042,
1769,
202,
202,
90,
3772,
18,
6206,
1180,
12,
90,
21,
1769,
202,
202,
538,
18,
2626,
46,
6743,
12,
4759,
18,
588,
382,
701,
2224,
12,
2867,
3631,
525,
952,
22808,
1769,
202,
202,
759,
202,
202,
4759,
18,
2626,
30374,
12,
55,
20,
1769,
368,
1445,
22,
759,
202,
202,
4759,
18,
2626,
30374,
12,
56,
20,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
3757,
67,
430,
67,
6511,
1291,
12,
474,
1758,
16,
509,
525,
952,
22808,
13,
288,
202,
202,
1702,
1180,
331,
22,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
1702,
1180,
331,
21,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
7543,
1290,
2988,
12,
90,
21,
16,
331,
22,
1769,
9506,
202,
3996,
436,
21,
273,
331,
21,
18,
588,
3996,
5621,
9506,
202,
9610,
12,
90,
22,
18,
588,
5677,
10756,
288,
1082,
202,
3593,
4342,
18,
27511,
30,
9506,
202,
538,
18,
2626,
39,
4566,
12,
86,
21,
16,
331,
22,
18,
588,
3996,
10663,
9506,
202,
8820,
31,
1082,
202,
3593,
4342,
18,
14922,
30,
9506,
202,
538,
18,
2
] |
String name = pClass.getName();
|
String name= pClass.getName();
|
private static int getLevel(Class pClass) { String name = pClass.getName(); loglog4testng("Getting level for logger " + name); while (true) { Integer level = loggerLevels.get(name); if (level != null) { loglog4testng("Found level " + level + " for logger " + name); return level.intValue(); } int dot = name.lastIndexOf('.'); if (dot != -1) { loglog4testng("Found level " + rootLoggerLevel + " for root logger"); // Logger name not found. Defaults to root logger level. return rootLoggerLevel; } name = name.substring(0, dot); } }
|
47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/96769faec3ab62f18300a49b416f1c5e2f108496/Logger.java/clean/src/main/org/testng/log4testng/Logger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
17236,
12,
797,
27463,
13,
288,
565,
514,
508,
33,
27463,
18,
17994,
5621,
565,
613,
1330,
24,
3813,
3368,
2932,
19213,
1801,
364,
1194,
315,
397,
508,
1769,
565,
1323,
261,
3767,
13,
288,
1377,
2144,
1801,
273,
1194,
12240,
18,
588,
12,
529,
1769,
1377,
309,
261,
2815,
480,
446,
13,
288,
3639,
613,
1330,
24,
3813,
3368,
2932,
2043,
1801,
315,
397,
1801,
397,
315,
364,
1194,
315,
397,
508,
1769,
3639,
327,
1801,
18,
474,
620,
5621,
1377,
289,
1377,
509,
3928,
273,
508,
18,
2722,
31985,
2668,
1093,
1769,
1377,
309,
261,
9811,
480,
300,
21,
13,
288,
1850,
613,
1330,
24,
3813,
3368,
2932,
2043,
1801,
315,
397,
1365,
3328,
2355,
397,
315,
364,
1365,
1194,
8863,
3639,
368,
4242,
508,
486,
1392,
18,
14159,
358,
1365,
1194,
1801,
18,
3639,
327,
1365,
3328,
2355,
31,
3639,
289,
1377,
508,
273,
508,
18,
28023,
12,
20,
16,
3928,
1769,
565,
289,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
17236,
12,
797,
27463,
13,
288,
565,
514,
508,
33,
27463,
18,
17994,
5621,
565,
613,
1330,
24,
3813,
3368,
2932,
19213,
1801,
364,
1194,
315,
397,
508,
1769,
565,
1323,
261,
3767,
13,
288,
1377,
2144,
1801,
273,
1194,
12240,
18,
588,
12,
529,
1769,
1377,
309,
261,
2815,
480,
446,
13,
288,
3639,
613,
1330,
24,
3813,
3368,
2932,
2043,
1801,
315,
397,
1801,
397,
315,
364,
1194,
315,
397,
508,
1769,
3639,
327,
1801,
18,
474,
620,
5621,
1377,
289,
1377,
509,
3928,
273,
508,
18,
2722,
31985,
2668,
1093,
1769,
1377,
309,
261,
9811,
480,
300,
21,
13,
288,
1850,
613,
1330,
24,
3813,
3368,
2932,
2043,
1801,
315,
397,
1365,
2
] |
vstack.push(result);
|
vstack.push(result);
|
public final void visit_irem() { // Pre-claim result in EDX L1AHelper.requestRegister(eContext, EDX); final IntItem result = IntItem.createReg(EDX); eContext.getPool().transferOwnerTo(EDX, result); final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); // v1 must be in EAX L1AHelper.requestRegister(eContext, EAX, v1); // Load v2.loadIf(eContext, ~Item.Kind.LOCAL); v1.loadTo(eContext, EAX); // Calculate os.writeCDQ(); // EAX -> EDX:EAX if (v2.isLocal()) { os.writeIDIV_EAX(FP, v2.getOffsetToFP()); } else { os.writeIDIV_EAX(v2.getRegister()); } // Result vstack.push(result); // Release v1.release(eContext); v2.release(eContext); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
577,
81,
1435,
288,
202,
202,
759,
2962,
17,
14784,
563,
316,
15585,
60,
202,
202,
48,
21,
37,
2276,
18,
2293,
3996,
12,
73,
1042,
16,
15585,
60,
1769,
202,
202,
6385,
3094,
1180,
563,
273,
3094,
1180,
18,
2640,
1617,
12,
2056,
60,
1769,
202,
202,
73,
1042,
18,
588,
2864,
7675,
13866,
5541,
774,
12,
2056,
60,
16,
563,
1769,
202,
202,
6385,
3094,
1180,
331,
22,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
6385,
3094,
1180,
331,
21,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
759,
331,
21,
1297,
506,
316,
512,
2501,
202,
202,
48,
21,
37,
2276,
18,
2293,
3996,
12,
73,
1042,
16,
512,
2501,
16,
331,
21,
1769,
202,
202,
759,
4444,
202,
202,
90,
22,
18,
945,
2047,
12,
73,
1042,
16,
4871,
1180,
18,
5677,
18,
14922,
1769,
202,
202,
90,
21,
18,
945,
774,
12,
73,
1042,
16,
512,
2501,
1769,
202,
202,
759,
9029,
202,
202,
538,
18,
2626,
10160,
53,
5621,
368,
512,
2501,
317,
15585,
60,
30,
41,
2501,
202,
202,
430,
261,
90,
22,
18,
291,
2042,
10756,
288,
1082,
202,
538,
18,
2626,
734,
8188,
67,
41,
2501,
12,
30246,
16,
331,
22,
18,
588,
2335,
774,
30246,
10663,
202,
202,
97,
469,
288,
1082,
202,
538,
18,
2626,
734,
8188,
67,
41,
2501,
12,
90,
22,
18,
588,
3996,
10663,
202,
202,
97,
202,
202,
759,
3438,
202,
202,
90,
3772,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
577,
81,
1435,
288,
202,
202,
759,
2962,
17,
14784,
563,
316,
15585,
60,
202,
202,
48,
21,
37,
2276,
18,
2293,
3996,
12,
73,
1042,
16,
15585,
60,
1769,
202,
202,
6385,
3094,
1180,
563,
273,
3094,
1180,
18,
2640,
1617,
12,
2056,
60,
1769,
202,
202,
73,
1042,
18,
588,
2864,
7675,
13866,
5541,
774,
12,
2056,
60,
16,
563,
1769,
202,
202,
6385,
3094,
1180,
331,
22,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
6385,
3094,
1180,
331,
21,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
759,
331,
21,
1297,
506,
316,
512,
2501,
202,
202,
48,
21,
37,
2276,
18,
2293,
3996,
12,
73,
1042,
16,
2
] |
File inactiveCacheFile = getInactiveCacheFile(); File inactivePropsFile = getInactivePropsFile();
|
if (lastVersion > 0) { File inactiveCacheFile = getInactiveCacheFile(); File inactivePropsFile = getInactivePropsFile();
|
public synchronized void restoreLastVersion() { if (isDeleted()) { markAsNotDeleted(); return; } if (isInactive()) { int lastVersion = determineLastActiveVersion(); File inactiveCacheFile = getInactiveCacheFile(); File inactivePropsFile = getInactivePropsFile(); if (!inactiveCacheFile.renameTo(currentCacheFile) || !inactivePropsFile.renameTo(currentPropsFile)) { logger.error("Couldn't rename inactive versions: "+url); throw new LockssRepository.RepositoryStateException("Couldn't rename inactive versions."); } currentVersion = lastVersion; // store the deletion value nodeProps.setProperty(INACTIVE_CONTENT_PROPERTY, "false"); writeNodeProperties(); return; } if ((!hasContent()) || (getCurrentVersion() == 1)) { logger.error("Version restore attempted on node without previous versions."); throw new UnsupportedOperationException("Node must have previous versions."); } int lastVersion = getCurrentVersion() - 1; File lastContentFile = getVersionedCacheFile(lastVersion); File lastPropsFile = getVersionedPropsFile(lastVersion); // delete current version currentCacheFile.delete(); currentPropsFile.delete(); // rename old version to current if (!lastContentFile.renameTo(currentCacheFile) || !lastPropsFile.renameTo(currentPropsFile)) { logger.error("Couldn't rename old versions: "+url); throw new LockssRepository.RepositoryStateException("Couldn't rename old versions."); } currentVersion--; curProps = null; }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/0258f0bdc8c307aa045b6a94f9792b51ef33391a/RepositoryNodeImpl.java/buggy/src/org/lockss/repository/RepositoryNodeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
5217,
3024,
1444,
1435,
288,
565,
309,
261,
291,
7977,
10756,
288,
1377,
2267,
1463,
1248,
7977,
5621,
1377,
327,
31,
565,
289,
565,
309,
261,
291,
24384,
10756,
288,
1377,
509,
1142,
1444,
273,
4199,
3024,
3896,
1444,
5621,
1377,
1387,
16838,
31371,
273,
7854,
3535,
31371,
5621,
1377,
1387,
16838,
5047,
812,
273,
7854,
3535,
5047,
812,
5621,
1377,
309,
16051,
27366,
31371,
18,
18539,
774,
12,
2972,
31371,
13,
747,
1850,
401,
27366,
5047,
812,
18,
18539,
774,
12,
2972,
5047,
812,
3719,
288,
3639,
1194,
18,
1636,
2932,
16342,
1404,
6472,
16838,
5244,
30,
13773,
718,
1769,
3639,
604,
394,
3488,
1049,
3305,
18,
3305,
5060,
2932,
16342,
1404,
6472,
16838,
5244,
1199,
1769,
1377,
289,
1377,
23344,
273,
1142,
1444,
31,
1377,
368,
1707,
326,
10899,
460,
1377,
756,
5047,
18,
542,
1396,
12,
706,
13301,
67,
9689,
67,
9900,
16,
315,
5743,
8863,
1377,
1045,
907,
2297,
5621,
1377,
327,
31,
565,
289,
565,
309,
14015,
5,
5332,
1350,
10756,
747,
261,
588,
3935,
1444,
1435,
422,
404,
3719,
288,
1377,
1194,
18,
1636,
2932,
1444,
5217,
18121,
603,
756,
2887,
2416,
5244,
1199,
1769,
1377,
604,
394,
13172,
2932,
907,
1297,
1240,
2416,
5244,
1199,
1769,
565,
289,
565,
509,
1142,
1444,
273,
5175,
1444,
1435,
300,
404,
31,
565,
1387,
1142,
1350,
812,
273,
8343,
329,
31371,
12,
2722,
1444,
1769,
565,
1387,
1142,
5047,
812,
273,
8343,
329,
5047,
812,
12,
2722,
1444,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
5217,
3024,
1444,
1435,
288,
565,
309,
261,
291,
7977,
10756,
288,
1377,
2267,
1463,
1248,
7977,
5621,
1377,
327,
31,
565,
289,
565,
309,
261,
291,
24384,
10756,
288,
1377,
509,
1142,
1444,
273,
4199,
3024,
3896,
1444,
5621,
1377,
1387,
16838,
31371,
273,
7854,
3535,
31371,
5621,
1377,
1387,
16838,
5047,
812,
273,
7854,
3535,
5047,
812,
5621,
1377,
309,
16051,
27366,
31371,
18,
18539,
774,
12,
2972,
31371,
13,
747,
1850,
401,
27366,
5047,
812,
18,
18539,
774,
12,
2972,
5047,
812,
3719,
288,
3639,
1194,
18,
1636,
2932,
16342,
1404,
6472,
16838,
5244,
30,
13773,
718,
1769,
3639,
604,
394,
3488,
1049,
3305,
18,
3305,
5060,
2932,
16342,
1404,
6472,
16838,
2
] |
targetModule = getEffectiveModule( );
|
{ if ( imageRef.getLibraryNamespace( ) != null ) targetModule = getEffectiveModule( ) .getLibraryWithNamespace( imageRef.getLibraryNamespace( ) ); else targetModule = getEffectiveModule( ); }
|
public EmbeddedImageHandle getEmbeddedImage( ) { if ( !DesignChoiceConstants.IMAGE_REF_TYPE_EMBED .equals( getStringProperty( ImageItem.SOURCE_PROP ) ) ) return null; StructRefValue imageRef = (StructRefValue) getElement( ).getProperty( getModule( ), IImageItemModel.IMAGE_NAME_PROP ); if ( imageRef == null ) return null; // the structure is resolve, then find the owner module and construct // the embedded image handle if ( imageRef.isResolved( ) ) { EmbeddedImage image = (EmbeddedImage) imageRef.getTargetStructure( ); DesignElement owner = getElement( ); while ( owner != null ) { if ( owner.getLocalProperty( module, IImageItemModel.IMAGE_NAME_PROP ) == imageRef ) { Module targetModule = null; // if find the image in this parent or virtual parent, then // getRoot must not be null if ( owner != getElement( ) ) targetModule = owner.getRoot( ); // if find the image in element itself, the element maybe // not in any tree else targetModule = getEffectiveModule( ); assert targetModule != null; // find the position of the image in the target module and // construct the handle List images = targetModule.getListProperty( targetModule, Module.IMAGES_PROP ); int posn = images.indexOf( image ); PropertyHandle propHandle = targetModule.getHandle( targetModule ).getPropertyHandle( Module.IMAGES_PROP ); assert posn != -1; EmbeddedImageHandle imageHandle = new EmbeddedImageHandle( propHandle, posn ); return imageHandle; } // recursively find the image and construct the handle if it has // parent or virtual parent owner = owner.isVirtualElement( ) ? owner.getVirtualParent( ) : owner.getExtendsElement( ); } } return null; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/f7d981acf4bf857fa448418a9d336e47831e5de6/ImageHandle.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ImageHandle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21829,
2040,
3259,
336,
14980,
2040,
12,
262,
202,
95,
202,
202,
430,
261,
401,
15478,
10538,
2918,
18,
13603,
67,
10771,
67,
2399,
67,
3375,
22235,
9506,
202,
18,
14963,
12,
4997,
1396,
12,
3421,
1180,
18,
6537,
67,
15811,
262,
262,
262,
1082,
202,
2463,
446,
31,
202,
202,
3823,
30556,
1316,
1957,
273,
261,
3823,
30556,
13,
7426,
12,
262,
18,
588,
1396,
12,
9506,
202,
588,
3120,
12,
262,
16,
467,
2040,
1180,
1488,
18,
13603,
67,
1985,
67,
15811,
11272,
202,
202,
430,
261,
1316,
1957,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
759,
326,
3695,
353,
2245,
16,
1508,
1104,
326,
3410,
1605,
471,
4872,
202,
202,
759,
326,
7488,
1316,
1640,
202,
202,
430,
261,
1316,
1957,
18,
291,
12793,
12,
262,
262,
202,
202,
95,
1082,
202,
14980,
2040,
1316,
273,
261,
14980,
2040,
13,
1316,
1957,
18,
588,
2326,
6999,
12,
11272,
1082,
202,
15478,
1046,
3410,
273,
7426,
12,
11272,
1082,
202,
17523,
261,
3410,
480,
446,
262,
1082,
202,
95,
9506,
202,
430,
261,
3410,
18,
588,
2042,
1396,
12,
1605,
16,
25083,
202,
45,
2040,
1180,
1488,
18,
13603,
67,
1985,
67,
15811,
262,
422,
1316,
1957,
262,
9506,
202,
95,
6862,
202,
3120,
1018,
3120,
273,
446,
31,
6862,
202,
759,
309,
1104,
326,
1316,
316,
333,
982,
578,
5024,
982,
16,
1508,
6862,
202,
759,
7656,
1297,
486,
506,
446,
6862,
202,
430,
261,
3410,
480,
7426,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21829,
2040,
3259,
336,
14980,
2040,
12,
262,
202,
95,
202,
202,
430,
261,
401,
15478,
10538,
2918,
18,
13603,
67,
10771,
67,
2399,
67,
3375,
22235,
9506,
202,
18,
14963,
12,
4997,
1396,
12,
3421,
1180,
18,
6537,
67,
15811,
262,
262,
262,
1082,
202,
2463,
446,
31,
202,
202,
3823,
30556,
1316,
1957,
273,
261,
3823,
30556,
13,
7426,
12,
262,
18,
588,
1396,
12,
9506,
202,
588,
3120,
12,
262,
16,
467,
2040,
1180,
1488,
18,
13603,
67,
1985,
67,
15811,
11272,
202,
202,
430,
261,
1316,
1957,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
759,
326,
3695,
353,
2245,
16,
1508,
1104,
326,
3410,
1605,
471,
4872,
202,
202,
2
] |
private static void paintInline( Context c, InlineBox inline, int lx, int ly, LineBox line ) { if ( InlineLayout.isReplaced( inline.node ) ) { //u.p("painting a replaced block: " + inline); c.getGraphics().translate( line.x, line.y + ( line.baseline - inline.height ) ); Renderer rend = LayoutFactory.getRenderer( inline.node ); //u.p("inline node = " + inline.node); //u.p("got the layout: " + layout); rend.paint( c, inline ); c.getGraphics().translate( -line.x, -( line.y + ( line.baseline - inline.height ) ) ); if ( c.debugDrawInlineBoxes() ) { GraphicsUtil.draw( c.getGraphics(), new Rectangle( lx + inline.x + 1, ly + inline.y + 1 - inline.height, inline.width - 2, inline.height - 2 ), Color.green ); } return; } if ( InlineLayout.isFloatedBlock( inline.node, c ) ) { //u.p("painting a floated block: " + inline); //u.p("line = " + line); Rectangle oe = c.getExtents(); //inline.x = 0; //u.p("extents = " + c.getExtents()); c.setExtents( new Rectangle( oe.x, 0, oe.width, oe.height ) ); int xoff = line.x + inline.x; int yoff = line.y + ( line.baseline - inline.height ) + inline.y; c.getGraphics().translate( xoff, yoff ); Renderer rend = LayoutFactory.getRenderer( inline.node ); rend.paint( c, inline.sub_block ); c.getGraphics().translate( -xoff, -yoff ); c.setExtents( oe ); return; } if ( inline.is_break ) { return; } Graphics g = c.getGraphics(); // handle relative if ( inline.relative ) { g.translate( inline.left, inline.top ); } c.updateSelection( inline ); // calculate the x and y relative to the baseline of the line (ly) and the // left edge of the line (lx) //String text = inline.text.substring(inline.start_index,inline.end_index); String text = inline.getSubstring(); int iy = ly + inline.y; int ix = lx + inline.x; // draw a selection rectangle paintSelection( c, inline, lx, ly ); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont( inline.getFont() ); Color oldcolor = c.getGraphics().getColor(); c.getGraphics().setColor( inline.color ); //draw the line //u.p("drawing: " + text + " at " + x + "," + iy); if ( text != null && text.length() > 0 ) { c.getGraphics().drawString( text, ix, iy ); } c.getGraphics().setColor( oldcolor ); //draw any text decoration Font cur_font = c.getGraphics().getFont(); LineMetrics lm = cur_font.getLineMetrics( text, ( (Graphics2D)c.getGraphics() ).getFontRenderContext() ); if ( inline.underline ) { float down = lm.getUnderlineOffset(); float thick = lm.getUnderlineThickness(); g.fillRect( ix, iy + (int)down, g.getFontMetrics().stringWidth( text ), (int)thick ); } if ( inline.strikethrough ) { float down = lm.getStrikethroughOffset(); float thick = lm.getStrikethroughThickness(); g.fillRect( ix, iy + (int)down, g.getFontMetrics().stringWidth( text ), (int)thick ); } if ( inline.overline ) { float down = lm.getAscent(); float thick = lm.getUnderlineThickness(); g.fillRect( ix, iy - (int)down, g.getFontMetrics().stringWidth( text ), (int)thick ); } if ( c.debugDrawInlineBoxes() ) { GraphicsUtil.draw( c.getGraphics(), new Rectangle( lx + inline.x + 1, ly + inline.y + 1 - inline.height, inline.width - 2, inline.height - 2 ), Color.green ); } // restore the old font c.getGraphics().setFont( oldfont ); // handle relative if ( inline.relative ) { g.translate( -inline.left, -inline.top ); } }
|
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/dab5f0ea0f21b11bc9059602a912aff22532b469/InlinePainter.java/clean/src/java/org/xhtmlrenderer/render/InlinePainter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6015,
270,
395,
2126,
6459,
84,
1598,
10870,
12,
1042,
71,
16,
10870,
3514,
10047,
16,
474,
80,
92,
16,
474,
715,
16,
1670,
3514,
1369,
15329,
430,
12,
10870,
3744,
18,
291,
5729,
72,
12,
10047,
18,
2159,
3719,
95,
759,
89,
18,
84,
2932,
84,
1598,
310,
834,
964,
1966,
739,
2773,
15,
10047,
1769,
71,
18,
588,
17558,
7675,
13929,
12,
1369,
18,
92,
16,
1369,
18,
93,
15,
12,
1369,
18,
27818,
17,
10047,
18,
4210,
10019,
6747,
20262,
33,
3744,
1733,
18,
588,
6747,
12,
10047,
18,
2159,
1769,
759,
89,
18,
84,
2932,
267,
7511,
20680,
1546,
15,
10047,
18,
2159,
1769,
759,
89,
18,
84,
2932,
13212,
451,
292,
2012,
2773,
15,
6741,
1769,
20262,
18,
84,
1598,
12,
71,
16,
10047,
1769,
71,
18,
588,
17558,
7675,
13929,
19236,
1369,
18,
92,
16,
17,
12,
1369,
18,
93,
15,
12,
1369,
18,
27818,
17,
10047,
18,
4210,
3719,
1769,
430,
12,
71,
18,
4148,
6493,
10870,
29521,
10756,
95,
17558,
1304,
18,
9446,
12,
71,
18,
588,
17558,
9334,
2704,
19463,
12,
80,
92,
15,
10047,
18,
92,
15,
21,
16,
715,
15,
10047,
18,
93,
15,
21,
17,
10047,
18,
4210,
16,
10047,
18,
2819,
17,
22,
16,
10047,
18,
4210,
17,
22,
3631,
2957,
18,
11571,
1769,
97,
2463,
31,
97,
430,
12,
10870,
3744,
18,
291,
42,
383,
690,
1768,
12,
10047,
18,
2159,
16,
71,
3719,
95,
759,
89,
18,
84,
2932,
84,
1598,
310,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6015,
270,
395,
2126,
6459,
84,
1598,
10870,
12,
1042,
71,
16,
10870,
3514,
10047,
16,
474,
80,
92,
16,
474,
715,
16,
1670,
3514,
1369,
15329,
430,
12,
10870,
3744,
18,
291,
5729,
72,
12,
10047,
18,
2159,
3719,
95,
759,
89,
18,
84,
2932,
84,
1598,
310,
834,
964,
1966,
739,
2773,
15,
10047,
1769,
71,
18,
588,
17558,
7675,
13929,
12,
1369,
18,
92,
16,
1369,
18,
93,
15,
12,
1369,
18,
27818,
17,
10047,
18,
4210,
10019,
6747,
20262,
33,
3744,
1733,
18,
588,
6747,
12,
10047,
18,
2159,
1769,
759,
89,
18,
84,
2932,
267,
7511,
20680,
1546,
15,
10047,
18,
2159,
1769,
759,
89,
18,
84,
2932,
13212,
451,
292,
2012,
2773,
15,
2
] |
||
throw getRuntime().newNameError(name + " is not struct member");
|
throw notStructMemberError(name);
|
public IRubyObject set(IRubyObject value) { String name = getRuntime().getCurrentContext().getFrameLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i] = value; } } throw getRuntime().newNameError(name + " is not struct member"); }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/1278c5bb3507a052d150d814f15453542ae41aed/RubyStruct.java/buggy/src/org/jruby/RubyStruct.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
444,
12,
7937,
10340,
921,
460,
13,
288,
3639,
514,
508,
273,
18814,
7675,
588,
3935,
1042,
7675,
588,
3219,
3024,
2622,
5621,
3639,
309,
261,
529,
18,
5839,
1190,
2932,
1546,
3719,
288,
5411,
508,
273,
508,
18,
28023,
12,
20,
16,
508,
18,
2469,
1435,
300,
404,
1769,
3639,
289,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
1815,
401,
5990,
18,
291,
12616,
1435,
294,
315,
318,
13227,
1958,
14432,
3639,
5612,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3140,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
309,
261,
5990,
18,
4099,
12,
77,
2934,
345,
5335,
7675,
14963,
12,
529,
3719,
288,
7734,
327,
924,
63,
77,
65,
273,
460,
31,
5411,
289,
3639,
289,
3639,
604,
486,
3823,
4419,
668,
12,
529,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
444,
12,
7937,
10340,
921,
460,
13,
288,
3639,
514,
508,
273,
18814,
7675,
588,
3935,
1042,
7675,
588,
3219,
3024,
2622,
5621,
3639,
309,
261,
529,
18,
5839,
1190,
2932,
1546,
3719,
288,
5411,
508,
273,
508,
18,
28023,
12,
20,
16,
508,
18,
2469,
1435,
300,
404,
1769,
3639,
289,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
1815,
401,
5990,
18,
291,
12616,
1435,
294,
315,
318,
13227,
1958,
14432,
3639,
5612,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3140,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
309,
261,
5990,
18,
4099,
12,
2
] |
if (certs != null)
|
if (certs == null)
|
CodeSource getCodeSource() { Certificate[] certs = getCertificates(); if (certs != null) return loader.noCertCodeSource; else return new CodeSource(loader.baseURL, certs); }
|
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/7808faef8b93f63b1d01c4acf6fd5ed7685528a2/URLClassLoader.java/clean/libjava/java/net/URLClassLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3356,
1830,
6583,
1830,
1435,
565,
288,
1377,
6660,
8526,
13870,
273,
1927,
7696,
5621,
1377,
309,
261,
24596,
480,
446,
13,
202,
2463,
4088,
18,
2135,
5461,
1085,
1830,
31,
1377,
469,
202,
2463,
394,
3356,
1830,
12,
6714,
18,
1969,
1785,
16,
13870,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3356,
1830,
6583,
1830,
1435,
565,
288,
1377,
6660,
8526,
13870,
273,
1927,
7696,
5621,
1377,
309,
261,
24596,
480,
446,
13,
202,
2463,
4088,
18,
2135,
5461,
1085,
1830,
31,
1377,
469,
202,
2463,
394,
3356,
1830,
12,
6714,
18,
1969,
1785,
16,
13870,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (sqlCommand.length() != 0) { runStatements(new StringReader(sqlCommand)); } if (srcFile != null) { runStatements(new FileReader(srcFile)); } if (!autocommit) { conn.commit();
|
for (Enumeration e = transactions.elements(); e.hasMoreElements();) { ((Transaction) e.nextElement()).runTransaction(); if (!autocommit) { log("Commiting transaction", Project.MSG_VERBOSE); conn.commit(); }
|
public void execute() throws BuildException { sqlCommand = sqlCommand.trim(); if (srcFile == null && sqlCommand.length() == 0) { throw new BuildException("Source file or sql statement must be set!", location); } if (driver == null) { throw new BuildException("Driver attribute must be set!", location); } if (userId == null) { throw new BuildException("User Id attribute must be set!", location); } if (password == null) { throw new BuildException("Password attribute must be set!", location); } if (url == null) { throw new BuildException("Url attribute must be set!", location); } if (srcFile != null && !srcFile.exists()) { throw new BuildException("Source file does not exist!", location); } Driver driverInstance = null; // Load the driver using the try { Class dc; if (classpath != null) { log("Loading " + driver + " using AntClassLoader with classpath " + classpath, Project.MSG_VERBOSE); loader = new AntClassLoader(project, classpath, false); dc = loader.loadClass(driver); } else { log("Loading " + driver + " using system loader.", Project.MSG_VERBOSE); dc = Class.forName(driver); } driverInstance = (Driver) dc.newInstance(); }catch(ClassNotFoundException e){ throw new BuildException("Class Not Found: JDBC driver " + driver + " could not be loaded", location); }catch(IllegalAccessException e){ throw new BuildException("Illegal Access: JDBC driver " + driver + " could not be loaded", location); }catch(InstantiationException e) { throw new BuildException("Instantiation Exception: JDBC driver " + driver + " could not be loaded", location); } try{ log("connecting to " + url, Project.MSG_VERBOSE ); Properties info = new Properties(); info.put("user", userId); info.put("password", password); conn = driverInstance.connect(url, info); if (conn == null) { // Driver doesn't understand the URL throw new SQLException("No suitable Driver for "+url); } conn.setAutoCommit(autocommit); statement = conn.createStatement(); if (sqlCommand.length() != 0) { runStatements(new StringReader(sqlCommand)); } if (srcFile != null) { runStatements(new FileReader(srcFile)); } if (!autocommit) { conn.commit(); } } catch(IOException e){ if (!autocommit && conn != null) { try { conn.rollback(); } catch (SQLException ex) {} } throw new BuildException(e, location); } catch(SQLException e){ if (!autocommit && conn != null) { try { conn.rollback(); } catch (SQLException ex) {} } throw new BuildException(e, location); } finally { try { if (statement != null) { statement.close(); } if (conn != null) { conn.close(); } } catch (SQLException e) {} } log("SQL statements executed successfully", Project.MSG_VERBOSE); }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/33107ab10098823c23924741100a6c3faf9fd267/SQLExec.java/buggy/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
1847,
2189,
273,
1847,
2189,
18,
5290,
5621,
3639,
309,
261,
4816,
812,
422,
446,
597,
1847,
2189,
18,
2469,
1435,
422,
374,
13,
288,
5411,
604,
394,
18463,
2932,
1830,
585,
578,
1847,
3021,
1297,
506,
444,
5,
3113,
2117,
1769,
3639,
289,
3639,
309,
261,
7407,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
4668,
1566,
1297,
506,
444,
5,
3113,
2117,
1769,
3639,
289,
3639,
309,
261,
18991,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
1299,
3124,
1566,
1297,
506,
444,
5,
3113,
2117,
1769,
3639,
289,
3639,
309,
261,
3664,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
3913,
1566,
1297,
506,
444,
5,
3113,
2117,
1769,
3639,
289,
3639,
309,
261,
718,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
1489,
1566,
1297,
506,
444,
5,
3113,
2117,
1769,
3639,
289,
3639,
309,
261,
4816,
812,
480,
446,
597,
401,
4816,
812,
18,
1808,
10756,
288,
5411,
604,
394,
18463,
2932,
1830,
585,
1552,
486,
1005,
5,
3113,
2117,
1769,
3639,
289,
3639,
9396,
3419,
1442,
273,
446,
31,
3639,
368,
4444,
326,
3419,
1450,
326,
540,
775,
288,
5411,
1659,
6744,
31,
5411,
309,
261,
26302,
480,
446,
13,
288,
202,
202,
1330,
2932,
10515,
315,
397,
3419,
397,
315,
1450,
18830,
7805,
598,
10006,
315,
397,
10006,
16,
5420,
18,
11210,
67,
21900,
1769,
7734,
4088,
273,
394,
18830,
7805,
12,
4406,
16,
10006,
16,
629,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
1847,
2189,
273,
1847,
2189,
18,
5290,
5621,
3639,
309,
261,
4816,
812,
422,
446,
597,
1847,
2189,
18,
2469,
1435,
422,
374,
13,
288,
5411,
604,
394,
18463,
2932,
1830,
585,
578,
1847,
3021,
1297,
506,
444,
5,
3113,
2117,
1769,
3639,
289,
3639,
309,
261,
7407,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
4668,
1566,
1297,
506,
444,
5,
3113,
2117,
1769,
3639,
289,
3639,
309,
261,
18991,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
1299,
3124,
1566,
1297,
506,
444,
5,
3113,
2117,
1769,
3639,
289,
3639,
309,
261,
3664,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
3913,
1566,
1297,
506,
2
] |
int idx = 0;
|
idx = 0;
|
private void load(Preferences node) throws BackingStoreException { // Load preferences name = node.name(); // Type type = node.get(PREF_TYPE, ""); // Specification Version specificationVersion = node.get(PREF_SPECIFICATION_VERISION, null); // Location location = node.get(PREF_LOCATION, ""); // Default Settings defaultSettings = "true".equalsIgnoreCase(node.get(PREF_DEFAULT_SETTINGS, "false")); // Main class mainClass = node.get(PREF_MAINCLASS, ""); // Libraries Preferences librariesNode = node.node(PREF_LIBRARIES); String [] libraryNames = librariesNode.childrenNames(); libraries.clear(); if (libraryNames != null) { for (int i=0; i<libraryNames.length; i++) { Preferences libraryNode = librariesNode.node(libraryNames[i]); try { OsgiLibrary library = new OsgiLibrary(new File(libraryNode.get(PREF_JAR, ""))); library.setSourceDirectory(libraryNode.get(PREF_SOURCE, null)); libraries.add(library); } catch (Exception e) {} } } // Default definition defaultDefinition = "true".equalsIgnoreCase(node.get(PREF_DEFAULT_DEFINITION, "false")); // Bundles Preferences bundlesNode = node.node(PREF_BUNDLES); String [] bundleNames = bundlesNode.childrenNames(); bundles.clear(); if (bundleNames != null) { for (int i=0; i<bundleNames.length; i++) { Preferences bundleNode = bundlesNode.node(bundleNames[i]); try { OsgiBundle bundle = new OsgiBundle(new File(bundleNode.get(PREF_JAR, ""))); bundle.setSourceDirectory(bundleNode.get(PREF_SOURCE, null)); bundles.add(bundle); } catch (Exception e) {} } } // Properties Preferences propertiesNode = node.node(PREF_PROPERTIES); properties.clear(); int idx = 0; while (propertiesNode.nodeExists("Property "+idx)) { Preferences propertyNode = propertiesNode.node("Property "+idx); idx++; // Name String value = propertyNode.get(PREF_PROPERTY_NAME, null); if (value == null) continue; SystemProperty property = new SystemProperty(value); // Default value value = propertyNode.get(PREF_PROPERTY_DEFAULT, null); if (value != null && value.trim().length() > 0) { property.setDefaultValue(value); } // Description value = propertyNode.get(PREF_PROPERTY_DESCRIPTION, null); if (value != null && value.trim().length() > 0) { property.setDescription(value); } // Group value = propertyNode.get(PREF_PROPERTY_GROUP, null); if (value != null && value.trim().length() > 0) { property.setGroup(value); } // Allowed values value = propertyNode.get(PREF_PROPERTY_ALLOWED, null); if (value != null && value.trim().length() > 0) { ArrayList values = new ArrayList(); StringTokenizer st = new StringTokenizer(value, ","); while(st.hasMoreTokens()) { String token = st.nextToken(); values.add(token); } property.setAllowedValues(values); } properties.add(property); } }
|
14547 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14547/c47a7f2616c12043b7d9877aa33aae915c4e72ef/OsgiInstall.java/buggy/org.knopflerfish.eclipse.core/src/org/knopflerfish/eclipse/core/OsgiInstall.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1262,
12,
12377,
756,
13,
1216,
4297,
310,
21151,
288,
565,
368,
4444,
12750,
565,
508,
273,
756,
18,
529,
5621,
3639,
368,
1412,
565,
618,
273,
756,
18,
588,
12,
3670,
42,
67,
2399,
16,
1408,
1769,
3639,
368,
20000,
4049,
377,
7490,
1444,
273,
756,
18,
588,
12,
3670,
42,
67,
13847,
14865,
67,
2204,
45,
3686,
16,
446,
1769,
3639,
368,
7050,
565,
2117,
273,
756,
18,
588,
12,
3670,
42,
67,
15277,
16,
1408,
1769,
565,
368,
2989,
8709,
377,
805,
2628,
273,
315,
3767,
9654,
14963,
5556,
12,
2159,
18,
588,
12,
3670,
42,
67,
5280,
67,
19428,
16,
315,
5743,
7923,
1769,
565,
368,
12740,
667,
565,
2774,
797,
273,
756,
18,
588,
12,
3670,
42,
67,
19803,
5237,
16,
1408,
1769,
3639,
368,
10560,
11042,
565,
28310,
14732,
907,
273,
756,
18,
2159,
12,
3670,
42,
67,
2053,
7192,
985,
8805,
1769,
565,
514,
5378,
5313,
1557,
273,
14732,
907,
18,
5906,
1557,
5621,
565,
14732,
18,
8507,
5621,
565,
309,
261,
12083,
1557,
480,
446,
13,
288,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
12083,
1557,
18,
2469,
31,
277,
27245,
288,
3639,
28310,
5313,
907,
273,
14732,
907,
18,
2159,
12,
12083,
1557,
63,
77,
19226,
3639,
775,
288,
1850,
531,
17537,
9313,
5313,
273,
394,
531,
17537,
9313,
12,
2704,
1387,
12,
12083,
907,
18,
588,
12,
3670,
42,
67,
46,
985,
16,
1408,
3719,
1769,
1850,
5313,
18,
542,
1830,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1262,
12,
12377,
756,
13,
1216,
4297,
310,
21151,
288,
565,
368,
4444,
12750,
565,
508,
273,
756,
18,
529,
5621,
3639,
368,
1412,
565,
618,
273,
756,
18,
588,
12,
3670,
42,
67,
2399,
16,
1408,
1769,
3639,
368,
20000,
4049,
377,
7490,
1444,
273,
756,
18,
588,
12,
3670,
42,
67,
13847,
14865,
67,
2204,
45,
3686,
16,
446,
1769,
3639,
368,
7050,
565,
2117,
273,
756,
18,
588,
12,
3670,
42,
67,
15277,
16,
1408,
1769,
565,
368,
2989,
8709,
377,
805,
2628,
273,
315,
3767,
9654,
14963,
5556,
12,
2159,
18,
588,
12,
3670,
42,
67,
5280,
67,
19428,
16,
315,
5743,
7923,
1769,
565,
368,
12740,
667,
565,
2774,
797,
273,
2
] |
System.out.println("message set. content should be " + multipart.toString() );
|
public void send() { if (getMessageWindow() != null) { try { URLName urlName; urlName = msgWindow.populateMessageHeaders(getMessage()); if (urlName != null) { if (attachments != null && attachments.size() > 0) { MimeBodyPart mbp = new MimeBodyPart(); mbp.setContent(msgWindow.getMessageText(), msgWindow.getMessageContentType()); MimeMultipart multipart = new MimeMultipart(); multipart.addBodyPart(mbp); for (int i = 0; i < attachments.size(); i++) multipart.addBodyPart((BodyPart)attachments.elementAt(i)); multipart.setSubType("mixed"); getMessage().setContent(multipart); getMessage().saveChanges(); System.out.println("message set. content should be " + multipart.toString() ); } else { System.out.println("no attachment."); getMessage().setContent(msgWindow.getMessageText(), msgWindow.getMessageContentType()); } ((MessagePanel)getMessageWindow().getDesktopPane()).getMainPanel().getMailQueue().sendMessage(getMessage(), urlName); } getMessageWindow().setModified(false); getMessageWindow().closeMessageWindow(); } catch (MessagingException me) { if (me instanceof SendFailedException) { JOptionPane.showInternalMessageDialog(getMessageWindow().getDesktopPane(), Pooka.getProperty("error.MessageWindow.sendFailed", "Failed to send Message.") + "\n" + me.getMessage()); me.printStackTrace(System.out); } else { JOptionPane.showInternalMessageDialog(getMessageWindow().getDesktopPane(), Pooka.getProperty("error.MessageWindow.sendFailed", "Failed to send Message.") + "\n" + me.getMessage()); me.printStackTrace(System.out); } } } }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/0b9d87a6d8d3d55bd10f46089f7f47d9b2cb082f/NewMessageProxy.java/clean/net/suberic/pooka/gui/NewMessageProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
1435,
288,
202,
430,
261,
24906,
3829,
1435,
480,
446,
13,
288,
3196,
565,
775,
288,
202,
202,
1785,
461,
880,
461,
31,
9506,
202,
718,
461,
273,
1234,
3829,
18,
19936,
1079,
3121,
12,
24906,
10663,
202,
202,
430,
261,
718,
461,
480,
446,
13,
288,
1082,
565,
309,
261,
17828,
480,
446,
597,
10065,
18,
1467,
1435,
405,
374,
13,
288,
1082,
202,
13320,
2250,
1988,
4903,
84,
273,
394,
22059,
2250,
1988,
5621,
1082,
202,
1627,
84,
18,
542,
1350,
12,
3576,
3829,
18,
24906,
1528,
9334,
1234,
3829,
18,
24906,
8046,
10663,
1082,
202,
13320,
12024,
10263,
273,
394,
22059,
12024,
5621,
1082,
202,
16404,
18,
1289,
2250,
1988,
12,
1627,
84,
1769,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
10065,
18,
1467,
5621,
277,
27245,
4697,
565,
10263,
18,
1289,
2250,
1988,
12443,
2250,
1988,
13,
17828,
18,
2956,
861,
12,
77,
10019,
1082,
202,
16404,
18,
542,
30511,
2932,
19562,
8863,
1082,
202,
24906,
7675,
542,
1350,
12,
16404,
1769,
1082,
202,
24906,
7675,
5688,
7173,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2150,
444,
18,
225,
913,
1410,
506,
315,
397,
10263,
18,
10492,
1435,
11272,
1082,
565,
289,
469,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2135,
6042,
1199,
1769,
1082,
202,
24906,
7675,
542,
1350,
12,
3576,
3829,
18,
24906,
1528,
9334,
1234,
3829,
18,
24906,
8046,
10663,
1082,
565,
289,
202,
3639,
1082,
565,
14015,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
1435,
288,
202,
430,
261,
24906,
3829,
1435,
480,
446,
13,
288,
3196,
565,
775,
288,
202,
202,
1785,
461,
880,
461,
31,
9506,
202,
718,
461,
273,
1234,
3829,
18,
19936,
1079,
3121,
12,
24906,
10663,
202,
202,
430,
261,
718,
461,
480,
446,
13,
288,
1082,
565,
309,
261,
17828,
480,
446,
597,
10065,
18,
1467,
1435,
405,
374,
13,
288,
1082,
202,
13320,
2250,
1988,
4903,
84,
273,
394,
22059,
2250,
1988,
5621,
1082,
202,
1627,
84,
18,
542,
1350,
12,
3576,
3829,
18,
24906,
1528,
9334,
1234,
3829,
18,
24906,
8046,
10663,
1082,
202,
13320,
12024,
10263,
273,
394,
22059,
12024,
5621,
1082,
202,
16404,
18,
1289,
2250,
1988,
12,
1627,
2
] |
|
+ classRequested.getName() + "' value='" + data + "'", null);
|
+ classRequested.getName() + "' value=null", null);
|
public static Object convert(Object data, Class classRequested) throws FacesException { if (classRequested == null) { return data; } if (data == null) { if (classRequested.isPrimitive() == false) { return null; } ClassConvertor cv = (ClassConvertor) classConvertors .get(classRequested); if (cv != null) { return cv.getNullValue(); } throw new FacesException("Can not convert primitive class '" + classRequested.getName() + "' value='" + data + "'", null); } Class cl = data.getClass(); if (cl == classRequested || classRequested.isAssignableFrom(cl)) { return data; } if (cl.equals(String.class)) { Callback Callback = (Callback) callbacksFromString .get(classRequested); if (Callback != null) { return Callback.convert(data); } } ClassConvertor cv = (ClassConvertor) classConvertors .get(classRequested); if (cv != null) { Object ret = cv.convert(cl, data); if (ret != null) { return ret; } } throw new FacesException("Can not convert class '" + cl.getName() + "' to class '" + classRequested.getName() + "' value='" + data + "'", null); }
|
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/Convertor.java/clean/org.rcfaces.core/src/org/rcfaces/core/internal/util/Convertor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1765,
12,
921,
501,
16,
1659,
667,
11244,
13,
5411,
1216,
12268,
503,
288,
3639,
309,
261,
1106,
11244,
422,
446,
13,
288,
5411,
327,
501,
31,
3639,
289,
3639,
309,
261,
892,
422,
446,
13,
288,
5411,
309,
261,
1106,
11244,
18,
291,
9840,
1435,
422,
629,
13,
288,
7734,
327,
446,
31,
5411,
289,
5411,
1659,
2723,
280,
8951,
273,
261,
797,
2723,
280,
13,
667,
2723,
1383,
10792,
263,
588,
12,
1106,
11244,
1769,
5411,
309,
261,
19774,
480,
446,
13,
288,
7734,
327,
8951,
18,
588,
2041,
620,
5621,
5411,
289,
5411,
604,
394,
12268,
503,
2932,
2568,
486,
1765,
8225,
667,
2119,
10792,
397,
667,
11244,
18,
17994,
1435,
397,
2491,
460,
33,
2011,
3113,
446,
1769,
3639,
289,
3639,
1659,
927,
273,
501,
18,
588,
797,
5621,
3639,
309,
261,
830,
422,
667,
11244,
747,
667,
11244,
18,
291,
7961,
1265,
12,
830,
3719,
288,
5411,
327,
501,
31,
3639,
289,
3639,
309,
261,
830,
18,
14963,
12,
780,
18,
1106,
3719,
288,
5411,
8444,
8444,
273,
261,
2428,
13,
6689,
9193,
10792,
263,
588,
12,
1106,
11244,
1769,
5411,
309,
261,
2428,
480,
446,
13,
288,
7734,
327,
8444,
18,
6283,
12,
892,
1769,
5411,
289,
3639,
289,
3639,
1659,
2723,
280,
8951,
273,
261,
797,
2723,
280,
13,
667,
2723,
1383,
7734,
263,
588,
12,
1106,
11244,
1769,
3639,
309,
261,
19774,
480,
446,
13,
288,
5411,
1033,
325,
273,
8951,
18,
6283,
12,
830,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1765,
12,
921,
501,
16,
1659,
667,
11244,
13,
5411,
1216,
12268,
503,
288,
3639,
309,
261,
1106,
11244,
422,
446,
13,
288,
5411,
327,
501,
31,
3639,
289,
3639,
309,
261,
892,
422,
446,
13,
288,
5411,
309,
261,
1106,
11244,
18,
291,
9840,
1435,
422,
629,
13,
288,
7734,
327,
446,
31,
5411,
289,
5411,
1659,
2723,
280,
8951,
273,
261,
797,
2723,
280,
13,
667,
2723,
1383,
10792,
263,
588,
12,
1106,
11244,
1769,
5411,
309,
261,
19774,
480,
446,
13,
288,
7734,
327,
8951,
18,
588,
2041,
620,
5621,
5411,
289,
5411,
604,
394,
12268,
503,
2932,
2568,
486,
1765,
8225,
667,
2119,
10792,
397,
667,
11244,
18,
17994,
1435,
397,
2
] |
WikiBase.getInstance().purgeVersionsOlderThan(this.virtualWiki, date);
|
WikiBase.getInstance().purgeVersionsOlderThan(virtualWiki, date);
|
private void purgeVersions(HttpServletRequest request, ModelAndView next) throws Exception { next.addObject(WikiServlet.PARAMETER_ACTION, WikiServlet.ACTION_ADMIN); next.addObject(WikiServlet.PARAMETER_SPECIAL, new Boolean(true)); next.addObject(JMController.PARAMETER_TITLE, "Special:Admin"); try { DateFormat dateFormat = DateFormat.getInstance(); DBDate date = new DBDate(dateFormat.parse(request.getParameter("purgedate"))); WikiBase.getInstance().purgeVersionsOlderThan(this.virtualWiki, date); } catch (Exception e) { logger.error("Failure while purging versions", e); this.message = "Failure while purging versions: " + e.getMessage(); } }
|
50517 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50517/833f6fd2eb2ba7b5f7e0cb4c70619b7f11c78bc0/AdminController.java/buggy/src/java/org/jmwiki/servlets/AdminController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
11668,
5940,
12,
2940,
18572,
590,
16,
3164,
1876,
1767,
1024,
13,
1216,
1185,
288,
202,
202,
4285,
18,
1289,
921,
12,
25438,
4745,
18,
9819,
67,
12249,
16,
28268,
4745,
18,
12249,
67,
15468,
1769,
202,
202,
4285,
18,
1289,
921,
12,
25438,
4745,
18,
9819,
67,
13847,
6365,
16,
394,
3411,
12,
3767,
10019,
202,
202,
4285,
18,
1289,
921,
12,
46,
49,
2933,
18,
9819,
67,
14123,
16,
315,
12193,
30,
4446,
8863,
202,
202,
698,
288,
1082,
202,
11878,
16996,
273,
18371,
18,
588,
1442,
5621,
1082,
202,
2290,
1626,
1509,
273,
394,
2383,
1626,
12,
712,
1630,
18,
2670,
12,
2293,
18,
588,
1662,
2932,
12688,
2423,
340,
6,
3719,
1769,
1082,
202,
25438,
2171,
18,
588,
1442,
7675,
26422,
5940,
51,
80,
765,
9516,
12,
2211,
18,
12384,
25438,
16,
1509,
1769,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
4901,
18,
1636,
2932,
5247,
1323,
5405,
1998,
5244,
3113,
425,
1769,
1082,
202,
2211,
18,
2150,
273,
315,
5247,
1323,
5405,
1998,
5244,
30,
315,
397,
425,
18,
24906,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
11668,
5940,
12,
2940,
18572,
590,
16,
3164,
1876,
1767,
1024,
13,
1216,
1185,
288,
202,
202,
4285,
18,
1289,
921,
12,
25438,
4745,
18,
9819,
67,
12249,
16,
28268,
4745,
18,
12249,
67,
15468,
1769,
202,
202,
4285,
18,
1289,
921,
12,
25438,
4745,
18,
9819,
67,
13847,
6365,
16,
394,
3411,
12,
3767,
10019,
202,
202,
4285,
18,
1289,
921,
12,
46,
49,
2933,
18,
9819,
67,
14123,
16,
315,
12193,
30,
4446,
8863,
202,
202,
698,
288,
1082,
202,
11878,
16996,
273,
18371,
18,
588,
1442,
5621,
1082,
202,
2290,
1626,
1509,
273,
394,
2383,
1626,
12,
712,
1630,
18,
2670,
12,
2293,
18,
588,
1662,
2932,
12688,
2423,
340,
6,
3719,
2
] |
kasiMenu_grupiActionPerformed(evt);
|
kasiMenu_kasiActionPerformed(evt);
|
public void actionPerformed(java.awt.event.ActionEvent evt) { kasiMenu_grupiActionPerformed(evt); }
|
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/ba6fed56cb52b278f5b34b26ee3d38610f6a9303/sales_main.java/buggy/src/imakante/sales/sales_main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
417,
31653,
4599,
67,
79,
31653,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
417,
31653,
4599,
67,
79,
31653,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
save(false);
|
save(true);
|
public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == searchCurrentBuffer) hyperSearch.setSelected(false); else if(source == searchSelection || source == searchAllBuffers || source == searchDirectory) hyperSearch.setSelected(true); save(false); updateEnabled(); }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/06b9d30f26ad82d14a1d9a99891f02c832e212d1/SearchDialog.java/clean/org/gjt/sp/jedit/search/SearchDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1623,
3935,
1892,
13,
9506,
202,
17203,
2979,
18,
542,
7416,
12,
5743,
1769,
1082,
202,
12107,
309,
12,
3168,
422,
1623,
6233,
9506,
202,
20081,
1084,
422,
1623,
1595,
13699,
9506,
202,
20081,
1084,
422,
1623,
2853,
13,
9506,
202,
17203,
2979,
18,
542,
7416,
12,
3767,
1769,
1082,
202,
5688,
12,
5743,
1769,
1082,
202,
2725,
1526,
5621,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1623,
3935,
1892,
13,
9506,
202,
17203,
2979,
18,
542,
7416,
12,
5743,
1769,
1082,
202,
12107,
309,
12,
3168,
422,
1623,
6233,
9506,
202,
20081,
1084,
422,
1623,
1595,
13699,
9506,
202,
20081,
1084,
422,
1623,
2853,
13,
9506,
202,
17203,
2979,
18,
542,
7416,
12,
3767,
1769,
1082,
202,
5688,
12,
5743,
1769,
1082,
202,
2725,
1526,
5621,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
msg.append(" -find <file> search for buildfile towards the root of the" + lSep); msg.append(" filesystem and use it" + lSep);
|
msg.append(" -find <file> (s)earch for buildfile towards the root of" + lSep); msg.append(" -s <file> the filesystem and use it" + lSep);
|
private static void printUsage() { String lSep = System.getProperty("line.separator"); StringBuffer msg = new StringBuffer(); msg.append("ant [options] [target [target2 [target3] ...]]" + lSep); msg.append("Options: " + lSep); msg.append(" -help print this message" + lSep); msg.append(" -projecthelp print project help information" + lSep); msg.append(" -version print the version information and exit" + lSep); msg.append(" -diagnostics print information that might be helpful to" + lSep); msg.append(" diagnose or report problems." + lSep); msg.append(" -quiet, -q be extra quiet" + lSep); msg.append(" -verbose, -v be extra verbose" + lSep); msg.append(" -debug print debugging information" + lSep); msg.append(" -emacs produce logging information without adornments" + lSep); msg.append(" -logfile <file> use given file for log" + lSep); msg.append(" -l <file> ''" + lSep); msg.append(" -logger <classname> the class which is to perform logging" + lSep); msg.append(" -listener <classname> add an instance of class as a project listener" + lSep); msg.append(" -noinput do not allow interactive input" + lSep); msg.append(" -buildfile <file> use given buildfile" + lSep); msg.append(" -file <file> ''" + lSep); msg.append(" -f <file> ''" + lSep); msg.append(" -D<property>=<value> use value for given property" + lSep); msg.append(" -keep-going, -k execute all targets that do not depend" + lSep); msg.append(" on failed target(s)" + lSep); msg.append(" -propertyfile <name> load all properties from file with -D" + lSep); msg.append(" properties taking precedence" + lSep); msg.append(" -inputhandler <class> the class which will handle input requests" + lSep); msg.append(" -find <file> search for buildfile towards the root of the" + lSep); msg.append(" filesystem and use it" + lSep); System.out.println(msg.toString()); }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/58c13cd7434297de46f802523246836558272411/Main.java/buggy/src/main/org/apache/tools/ant/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1172,
5357,
1435,
288,
3639,
514,
328,
5097,
273,
2332,
18,
588,
1396,
2932,
1369,
18,
11287,
8863,
3639,
6674,
1234,
273,
394,
6674,
5621,
3639,
1234,
18,
6923,
2932,
970,
306,
2116,
65,
306,
3299,
306,
3299,
22,
306,
3299,
23,
65,
1372,
65,
4279,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
1320,
30,
315,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
5201,
5375,
1172,
333,
883,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
4406,
5201,
6647,
1172,
1984,
2809,
1779,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
1589,
9079,
1172,
326,
1177,
1779,
471,
2427,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
12264,
13936,
6647,
1172,
1779,
716,
4825,
506,
28063,
358,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
7682,
6643,
2135,
307,
578,
2605,
9688,
1199,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
20380,
16,
300,
85,
2398,
506,
2870,
10902,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
11369,
16,
300,
90,
6647,
506,
2870,
3988,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
4148,
1171,
1172,
10450,
1779,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
351,
28965,
1171,
11402,
2907,
1779,
2887,
1261,
14245,
1346,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1172,
5357,
1435,
288,
3639,
514,
328,
5097,
273,
2332,
18,
588,
1396,
2932,
1369,
18,
11287,
8863,
3639,
6674,
1234,
273,
394,
6674,
5621,
3639,
1234,
18,
6923,
2932,
970,
306,
2116,
65,
306,
3299,
306,
3299,
22,
306,
3299,
23,
65,
1372,
65,
4279,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
1320,
30,
315,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
5201,
5375,
1172,
333,
883,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
4406,
5201,
6647,
1172,
1984,
2809,
1779,
6,
397,
328,
5097,
1769,
3639,
1234,
18,
6923,
2932,
225,
300,
1589,
9079,
1172,
326,
1177,
1779,
471,
2427,
6,
397,
2
] |
cdrBufOutput output = new cdrBufOutput();
|
BufferedCdrOutput output = new BufferedCdrOutput();
|
public static boolean insertSysException(Any into, SystemException exception) { try { cdrBufOutput output = new cdrBufOutput(); String m_exception_id = getRepositoryId(exception.getClass()); output.write_string(m_exception_id); output.write_ulong(exception.minor); CompletionStatusHelper.write(output, exception.completed); String name = getDefaultName(m_exception_id); universalHolder h = new universalHolder(output); into.insert_Streamable(h); recordTypeCode r = new recordTypeCode(TCKind.tk_except); r.setId(m_exception_id); r.setName(name); into.type(r); return true; } catch (Exception ex) { ex.printStackTrace(); return false; } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/ObjectCreator.java/clean/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
2243,
12712,
503,
12,
2961,
1368,
16,
26731,
1520,
13,
225,
288,
565,
775,
1377,
288,
3639,
5987,
39,
3069,
1447,
876,
273,
394,
5987,
39,
3069,
1447,
5621,
3639,
514,
312,
67,
4064,
67,
350,
273,
8261,
548,
12,
4064,
18,
588,
797,
10663,
3639,
876,
18,
2626,
67,
1080,
12,
81,
67,
4064,
67,
350,
1769,
3639,
876,
18,
2626,
67,
332,
932,
12,
4064,
18,
17364,
1769,
3639,
20735,
1482,
2276,
18,
2626,
12,
2844,
16,
1520,
18,
13615,
1769,
3639,
514,
508,
273,
4829,
461,
12,
81,
67,
4064,
67,
350,
1769,
3639,
26182,
6064,
366,
273,
394,
26182,
6064,
12,
2844,
1769,
3639,
1368,
18,
6387,
67,
1228,
429,
12,
76,
1769,
3639,
1409,
15460,
436,
273,
394,
1409,
15460,
12,
56,
3507,
728,
18,
16099,
67,
14137,
1769,
3639,
436,
18,
542,
548,
12,
81,
67,
4064,
67,
350,
1769,
3639,
436,
18,
542,
461,
12,
529,
1769,
3639,
1368,
18,
723,
12,
86,
1769,
3639,
327,
638,
31,
1377,
289,
565,
1044,
261,
503,
431,
13,
1377,
288,
3639,
431,
18,
1188,
6332,
5621,
3639,
327,
629,
31,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
2243,
12712,
503,
12,
2961,
1368,
16,
26731,
1520,
13,
225,
288,
565,
775,
1377,
288,
3639,
5987,
39,
3069,
1447,
876,
273,
394,
5987,
39,
3069,
1447,
5621,
3639,
514,
312,
67,
4064,
67,
350,
273,
8261,
548,
12,
4064,
18,
588,
797,
10663,
3639,
876,
18,
2626,
67,
1080,
12,
81,
67,
4064,
67,
350,
1769,
3639,
876,
18,
2626,
67,
332,
932,
12,
4064,
18,
17364,
1769,
3639,
20735,
1482,
2276,
18,
2626,
12,
2844,
16,
1520,
18,
13615,
1769,
3639,
514,
508,
273,
4829,
461,
12,
81,
67,
4064,
67,
350,
1769,
3639,
26182,
6064,
366,
273,
394,
26182,
6064,
12,
2844,
1769,
3639,
1368,
18,
6387,
67,
1228,
429,
12,
2
] |
int zoom = DataTools.read4SignedBytes(in, little);
|
int zoom = in.readInt();
|
protected void initStandardMetadata() { try { Hashtable ifd = ifds[0]; super.initStandardMetadata(); Integer obj = new Integer(0); int offset; Integer k = new Integer(UIC4TAG); long[] temp = (long[]) ifd.get(k); Long[] q = new Long[temp.length]; for (int i=0; i<q.length; i++) q[i] = new Long(temp[i]); if (q == null) offset = -1; Integer w = new Integer(q[1].intValue()); if (w == null) offset = -1; else offset = w.intValue(); if (offset < 0) throw new FormatException("UIC4TAG not found"); in.seek(offset); int currentcode = -1; byte[] toread; TiffRational[] temp2 = (TiffRational[]) ifd.get(new Integer(METAMORPH_ID)); Long[] v = new Long[temp2.length]; for (int i=0; i<v.length; i++) v[i] = new Long(temp2[i].longValue()); if (v == null) throw new FormatException("Metamorph ID not found"); int planes = v[1].intValue(); boolean little = TiffTools.isLittleEndian(ifd); while ((currentcode < 66) && ((in.length() - in.getFilePointer()) > 2)) { currentcode = DataTools.read2SignedBytes(in, little); // variable declarations, because switch is dumb int num, denom; int xnum, xdenom, ynum, ydenom; double xpos, ypos; String thedate, thetime; switch (currentcode) { case 0: String autoscale = DataTools.read4SignedBytes(in, little) == 0 ? "no auto-scaling" : "16-bit to 8-bit scaling"; put("AutoScale", autoscale); break; case 1: put("MinScale", DataTools.read4SignedBytes(in, little)); break; case 2: put("MaxScale", DataTools.read4SignedBytes(in, little)); break; case 3: int calib = DataTools.read4SignedBytes(in, little); String calibration = calib == 0 ? "on" : "off"; put("Spatial Calibration", calibration); break; case 4: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("XCalibration", new TiffRational(num, denom)); break; case 5: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("YCalibration", new TiffRational(num, denom)); break; case 6: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("CalibrationUnits", new String(toread)); break; case 7: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String name = new String(toread); put("Name", name); imageName = name; break; case 8: int thresh = DataTools.read4SignedBytes(in, little); String threshState = "off"; if (thresh == 1) threshState = "inside"; else if (thresh == 2) threshState = "outside"; put("ThreshState", threshState); break; case 9: put("ThreshStateRed", DataTools.read4SignedBytes(in, little)); break; // there is no 10 case 11: put("ThreshStateGreen", DataTools.read4SignedBytes(in, little)); break; case 12: put("ThreshStateBlue", DataTools.read4SignedBytes(in, little)); break; case 13: put("ThreshStateLo", DataTools.read4SignedBytes(in, little)); break; case 14: put("ThreshStateHi", DataTools.read4SignedBytes(in, little)); break; case 15: int zoom = DataTools.read4SignedBytes(in, little); put("Zoom", zoom);// OMETools.setAttribute(ome, "DisplayOptions", "Zoom", "" + zoom); break; case 16: // oh how we hate you Julian format... thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("DateTime", thedate + " " + thetime); imageCreationDate = thedate + " " + thetime; break; case 17: thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("LastSavedTime", thedate + " " + thetime); break; case 18: put("currentBuffer", DataTools.read4SignedBytes(in, little)); break; case 19: put("grayFit", DataTools.read4SignedBytes(in, little)); break; case 20: put("grayPointCount", DataTools.read4SignedBytes(in, little)); break; case 21: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayX", new TiffRational(num, denom)); break; case 22: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("gray", new TiffRational(num, denom)); break; case 23: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMin", new TiffRational(num, denom)); break; case 24: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMax", new TiffRational(num, denom)); break; case 25: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("grayUnitName", new String(toread)); break; case 26: int standardLUT = DataTools.read4SignedBytes(in, little); String standLUT; switch (standardLUT) { case 0: standLUT = "monochrome"; break; case 1: standLUT = "pseudocolor"; break; case 2: standLUT = "Red"; break; case 3: standLUT = "Green"; break; case 4: standLUT = "Blue"; break; case 5: standLUT = "user-defined"; break; default: standLUT = "monochrome"; break; } put("StandardLUT", standLUT); break; case 27: put("Wavelength", DataTools.read4SignedBytes(in, little)); break; case 28: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Stage Position Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 29: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Camera Offset Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 30: put("OverlayMask", DataTools.read4SignedBytes(in, little)); break; case 31: put("OverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 32: put("Overlay", DataTools.read4SignedBytes(in, little)); break; case 33: put("SpecialOverlayMask", DataTools.read4SignedBytes(in, little)); break; case 34: put("SpecialOverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 35: put("SpecialOverlay", DataTools.read4SignedBytes(in, little)); break; case 36: put("ImageProperty", DataTools.read4SignedBytes(in, little)); break; case 37: for (int i = 0; i<planes; i++) { num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String s = new String(toread); put("StageLabel Plane " + i, s); } break; case 38: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleLoInfo", new TiffRational(num, denom)); break; case 39: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleHiInfo", new TiffRational(num, denom)); break; case 40: for (int i=0;i<planes;i++) { num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AbsoluteZ Plane " + i, new TiffRational(num, denom)); } break; case 41: for (int i=0; i<planes; i++) { put("AbsoluteZValid Plane " + i, DataTools.read4SignedBytes(in, little)); } break; case 42: put("Gamma", DataTools.read4SignedBytes(in, little)); break; case 43: put("GammaRed", DataTools.read4SignedBytes(in, little)); break; case 44: put("GammaGreen", DataTools.read4SignedBytes(in, little)); break; case 45: put("GammaBlue", DataTools.read4SignedBytes(in, little)); break; } // end switch } } catch (NullPointerException n) { n.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (FormatException e) { e.printStackTrace(); } try { super.initStandardMetadata(); } catch (Throwable t) { t.printStackTrace(); } // parse (mangle) TIFF comment String descr = (String) metadata.get("Comment"); if (descr != null) { StringTokenizer st = new StringTokenizer(descr, "\n"); StringBuffer sb = new StringBuffer(); boolean first = true; while (st.hasMoreTokens()) { String line = st.nextToken(); int colon = line.indexOf(": "); if (colon < 0) { // normal line (not a key/value pair) if (line.trim().length() > 0) { // not a blank line sb.append(line); if (!line.endsWith(".")) sb.append("."); sb.append(" "); } first = false; continue; } if (first) { // first line could be mangled; make a reasonable guess int dot = line.lastIndexOf(".", colon); if (dot >= 0) { String s = line.substring(0, dot + 1); sb.append(s); if (!s.endsWith(".")) sb.append("."); sb.append(" "); } line = line.substring(dot + 1); colon -= dot + 1; first = false; } // add key/value pair embedded in comment as separate metadata String key = line.substring(0, colon); String value = line.substring(colon + 2); put(key, value); } // replace comment with trimmed version descr = sb.toString().trim(); if (descr.equals("")) metadata.remove("Comment"); else put("Comment", descr); } }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/2df09d33bfdc966378aae0cc09cb503afb983bc2/MetamorphReader.java/clean/loci/formats/in/MetamorphReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
8336,
2277,
1435,
288,
565,
775,
288,
1377,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
1377,
2240,
18,
2738,
8336,
2277,
5621,
1377,
2144,
1081,
273,
394,
2144,
12,
20,
1769,
1377,
509,
1384,
31,
1377,
2144,
417,
273,
394,
2144,
12,
57,
2871,
24,
7927,
1769,
1377,
1525,
8526,
1906,
273,
261,
5748,
63,
5717,
309,
72,
18,
588,
12,
79,
1769,
1377,
3407,
8526,
1043,
273,
394,
3407,
63,
5814,
18,
2469,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
85,
18,
2469,
31,
277,
27245,
1043,
63,
77,
65,
273,
394,
3407,
12,
5814,
63,
77,
19226,
1377,
309,
261,
85,
422,
446,
13,
1384,
273,
300,
21,
31,
1377,
2144,
341,
273,
394,
2144,
12,
85,
63,
21,
8009,
474,
620,
10663,
1377,
309,
261,
91,
422,
446,
13,
1384,
273,
300,
21,
31,
1377,
469,
1384,
273,
225,
341,
18,
474,
620,
5621,
1377,
309,
261,
3348,
411,
374,
13,
604,
394,
4077,
503,
2932,
57,
2871,
24,
7927,
486,
1392,
8863,
1377,
316,
18,
16508,
12,
3348,
1769,
1377,
509,
783,
710,
273,
300,
21,
31,
1377,
1160,
8526,
358,
896,
31,
1377,
399,
3048,
54,
8371,
8526,
1906,
22,
273,
261,
56,
3048,
54,
8371,
63,
5717,
3639,
309,
72,
18,
588,
12,
2704,
2144,
12,
18315,
2192,
916,
8939,
67,
734,
10019,
1377,
3407,
8526,
331,
273,
394,
3407,
63,
5814,
22,
18,
2469,
15533,
1377,
364,
261,
474,
277,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
8336,
2277,
1435,
288,
565,
775,
288,
1377,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
1377,
2240,
18,
2738,
8336,
2277,
5621,
1377,
2144,
1081,
273,
394,
2144,
12,
20,
1769,
1377,
509,
1384,
31,
1377,
2144,
417,
273,
394,
2144,
12,
57,
2871,
24,
7927,
1769,
1377,
1525,
8526,
1906,
273,
261,
5748,
63,
5717,
309,
72,
18,
588,
12,
79,
1769,
1377,
3407,
8526,
1043,
273,
394,
3407,
63,
5814,
18,
2469,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
85,
18,
2469,
31,
277,
27245,
1043,
63,
77,
65,
273,
394,
3407,
12,
5814,
63,
77,
19226,
1377,
309,
261,
85,
422,
446,
13,
1384,
273,
300,
2
] |
return getPreferredHorizontalSize();
|
{ int height = getThumbSize().height; if (slider.getPaintTicks() && slider.getMajorTickSpacing() > 0 || slider.getMinorTickSpacing() > 0) height += getTickLength(); if (slider.getPaintLabels()) height += getHeightOfTallestLabel(); height += insets.top + insets.bottom + focusInsets.top + focusInsets.bottom; return new Dimension(32767, height); }
|
public Dimension getMaximumSize(JComponent c) { if (slider.getOrientation() == JSlider.HORIZONTAL) return getPreferredHorizontalSize(); else return getPreferredVerticalSize(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicSliderUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
25194,
1225,
12,
46,
1841,
276,
13,
225,
288,
565,
309,
261,
28372,
18,
588,
14097,
1435,
422,
804,
21824,
18,
44,
20344,
13,
1377,
288,
225,
509,
2072,
273,
336,
18922,
1225,
7675,
4210,
31,
225,
309,
261,
28372,
18,
588,
12699,
16610,
1435,
597,
18442,
18,
588,
17581,
6264,
18006,
1435,
405,
374,
747,
18442,
18,
588,
19549,
6264,
18006,
1435,
405,
374,
13,
2072,
1011,
3181,
1200,
1782,
5621,
225,
309,
261,
28372,
18,
588,
12699,
5888,
10756,
2072,
1011,
9263,
951,
56,
454,
395,
2224,
5621,
225,
2072,
1011,
23576,
18,
3669,
397,
23576,
18,
9176,
397,
7155,
382,
4424,
18,
3669,
397,
7155,
382,
4424,
18,
9176,
31,
225,
327,
394,
13037,
12,
1578,
6669,
27,
16,
2072,
1769,
289,
565,
469,
1377,
327,
12822,
4193,
15704,
1225,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
25194,
1225,
12,
46,
1841,
276,
13,
225,
288,
565,
309,
261,
28372,
18,
588,
14097,
1435,
422,
804,
21824,
18,
44,
20344,
13,
1377,
288,
225,
509,
2072,
273,
336,
18922,
1225,
7675,
4210,
31,
225,
309,
261,
28372,
18,
588,
12699,
16610,
1435,
597,
18442,
18,
588,
17581,
6264,
18006,
1435,
405,
374,
747,
18442,
18,
588,
19549,
6264,
18006,
1435,
405,
374,
13,
2072,
1011,
3181,
1200,
1782,
5621,
225,
309,
261,
28372,
18,
588,
12699,
5888,
10756,
2072,
1011,
9263,
951,
56,
454,
395,
2224,
5621,
225,
2072,
1011,
23576,
18,
3669,
397,
23576,
18,
9176,
397,
7155,
382,
4424,
18,
3669,
397,
7155,
382,
4424,
18,
9176,
31,
225,
327,
394,
2
] |
Profile.logTime("Framework.initialze()", "done new URLStream/Content HandlerFactory");
|
Profile.logTime("Framework.initialze()", "done new URLStream/Content HandlerFactory");
|
protected void initialize(FrameworkAdaptor adaptor) { if (Profile.PROFILE && Profile.STARTUP) Profile.logEnter("Framework.initialze()", null); //$NON-NLS-1$ long start = System.currentTimeMillis(); this.adaptor = adaptor; active = false; installSecurityManager(); if (Debug.DEBUG && Debug.DEBUG_SECURITY) { Debug.println("SecurityManager: " + System.getSecurityManager()); //$NON-NLS-1$ Debug.println("ProtectionDomain of Framework.class: \n" + this.getClass().getProtectionDomain()); //$NON-NLS-1$ } /* initialize the adaptor */ adaptor.initialize(this); if (Profile.PROFILE && Profile.STARTUP) Profile.logTime("Framework.initialze()", "adapter initialized"); //$NON-NLS-1$//$NON-NLS-2$ try { adaptor.initializeStorage(); adaptor.compactStorage(); } catch (IOException e) /* fatal error */{ e.printStackTrace(); throw new RuntimeException(e.getMessage()); } if (Profile.PROFILE && Profile.STARTUP) Profile.logTime("Framework.initialze()", "adapter storage initialized"); //$NON-NLS-1$//$NON-NLS-2$ /* * This must be done before calling any of the framework getProperty * methods. */ initializeProperties(adaptor.getProperties()); /* initialize admin objects */ packageAdmin = new PackageAdminImpl(this); SecurityManager sm = System.getSecurityManager(); if (sm != null) { try { permissionAdmin = new PermissionAdminImpl(this, adaptor.getPermissionStorage()); } catch (IOException e) /* fatal error */{ e.printStackTrace(); throw new RuntimeException(e.getMessage()); } try { condPermAdmin = new ConditionalPermissionAdminImpl(this, adaptor.getPermissionStorage()); } catch (IOException e) /* fatal error */{ e.printStackTrace(); throw new RuntimeException(e.getMessage()); } } if (Profile.PROFILE && Profile.STARTUP) Profile.logTime("Framework.initialze()", "done init props & new PermissionAdminImpl"); //$NON-NLS-1$//$NON-NLS-2$ startLevelManager = new StartLevelManager(this); /* create the event manager and top level event dispatchers */ eventManager = new EventManager("Framework Event Dispatcher"); //$NON-NLS-1$ bundleEvent = new EventListeners(); bundleEventSync = new EventListeners(); serviceEvent = new EventListeners(); frameworkEvent = new EventListeners(); if (Profile.PROFILE && Profile.STARTUP) Profile.logTime("Framework.initialze()", "done new EventManager"); //$NON-NLS-1$ //$NON-NLS-2$ /* create the service registry */ serviceid = 1; serviceRegistry = adaptor.getServiceRegistry(); // Initialize the installLock; there is no way of knowing // what the initial size should be, at most it will be the number // of threads trying to install a bundle (probably a very low number). installLock = new Hashtable(10); /* create the system bundle */ createSystemBundle(); if (Profile.PROFILE && Profile.STARTUP) Profile.logTime("Framework.initialze()", "done createSystemBundle"); //$NON-NLS-1$ //$NON-NLS-2$ /* install URLStreamHandlerFactory */ URL.setURLStreamHandlerFactory(new StreamHandlerFactory(systemBundle.context, adaptor)); /* install ContentHandlerFactory for OSGi URLStreamHandler support */ URLConnection.setContentHandlerFactory(new ContentHandlerFactory(systemBundle.context)); if (Profile.PROFILE && Profile.STARTUP) Profile.logTime("Framework.initialze()", "done new URLStream/Content HandlerFactory"); //$NON-NLS-1$//$NON-NLS-2$ /* create bundle objects for all installed bundles. */ BundleData[] bundleDatas = adaptor.getInstalledBundles(); bundles = new BundleRepository(bundleDatas == null ? 10 : bundleDatas.length + 1, packageAdmin); /* add the system bundle to the Bundle Repository */ bundles.add(systemBundle); if (bundleDatas != null) { for (int i = 0; i < bundleDatas.length; i++) { try { AbstractBundle bundle = AbstractBundle.createBundle(bundleDatas[i], this); bundles.add(bundle); } catch (BundleException be) { // This is not a fatal error. Publish the framework event. publishFrameworkEvent(FrameworkEvent.ERROR, systemBundle, be); } } } if (Debug.DEBUG && Debug.DEBUG_GENERAL) System.out.println("Initialize the framework: " + (System.currentTimeMillis() - start)); //$NON-NLS-1$ if (Profile.PROFILE && Profile.STARTUP) Profile.logExit("Framework.initialze()"); }
|
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/249359ca66714f4fdf660bc095787ad0bc5b442a/Framework.java/buggy/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/Framework.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4046,
12,
13701,
29888,
9087,
13,
288,
202,
202,
430,
261,
4029,
18,
22462,
597,
11357,
18,
7570,
3079,
13,
1082,
202,
4029,
18,
1330,
10237,
2932,
13701,
18,
6769,
8489,
1435,
3113,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
5748,
787,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
2211,
18,
19195,
280,
273,
9087,
31,
202,
202,
3535,
273,
629,
31,
202,
202,
5425,
4368,
1318,
5621,
202,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
29209,
13,
288,
1082,
202,
2829,
18,
8222,
2932,
4368,
1318,
30,
315,
397,
2332,
18,
588,
4368,
1318,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2829,
18,
8222,
2932,
16938,
3748,
434,
13472,
18,
1106,
30,
521,
82,
6,
397,
333,
18,
588,
797,
7675,
588,
16938,
3748,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
20308,
4046,
326,
9087,
1195,
202,
202,
19195,
280,
18,
11160,
12,
2211,
1769,
202,
202,
430,
261,
4029,
18,
22462,
597,
11357,
18,
7570,
3079,
13,
1082,
202,
4029,
18,
1330,
950,
2932,
13701,
18,
6769,
8489,
1435,
3113,
315,
10204,
6454,
8863,
225,
4329,
3993,
17,
5106,
17,
21,
8,
759,
8,
3993,
17,
5106,
17,
22,
8,
202,
202,
698,
288,
1082,
202,
19195,
280,
18,
11160,
3245,
5621,
1082,
202,
19195,
280,
18,
21038,
3245,
5621,
202,
202,
97,
1044,
261,
14106,
425,
13,
1748,
10081,
555,
1195,
95,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4046,
12,
13701,
29888,
9087,
13,
288,
202,
202,
430,
261,
4029,
18,
22462,
597,
11357,
18,
7570,
3079,
13,
1082,
202,
4029,
18,
1330,
10237,
2932,
13701,
18,
6769,
8489,
1435,
3113,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
5748,
787,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
2211,
18,
19195,
280,
273,
9087,
31,
202,
202,
3535,
273,
629,
31,
202,
202,
5425,
4368,
1318,
5621,
202,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
29209,
13,
288,
1082,
202,
2829,
18,
8222,
2932,
4368,
1318,
30,
315,
397,
2332,
18,
588,
4368,
1318,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2829,
2
] |
cc.getAxisConfiguration().getTargetResolverChain().resolveTarget(mc);
|
TargetResolver targetResolver = cc.getAxisConfiguration().getTargetResolverChain(); if(targetResolver != null){ targetResolver.resolveTarget(mc); }
|
public void execute(boolean block) throws AxisFault { if (completed) { throw new AxisFault(Messages.getMessage("mepiscomplted")); } ConfigurationContext cc = sc.getConfigurationContext(); // set options on the message context if (mc.getSoapAction() == null || "".equals(mc.getSoapAction())) { mc.setSoapAction(options.getAction()); } mc.setOptions(options); mc.setAxisMessage(axisOp.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE)); // do Target Resolution cc.getAxisConfiguration().getTargetResolverChain().resolveTarget(mc); // setting message ID if it null // if the transport to use for sending is not specified, try to find it // from the URL TransportOutDescription senderTransport = options.getTransportOut(); if (senderTransport == null) { EndpointReference toEPR = (options.getTo() != null) ? options .getTo() : mc.getTo(); senderTransport = ClientUtils.inferOutTransport(cc .getAxisConfiguration(), toEPR, mc); } mc.setTransportOut(senderTransport); // create the operation context for myself OperationContext oc = new OperationContext(axisOp, sc); oc.addMessageContext(mc); addReferenceParameters(mc); // ship it out AxisEngine engine = new AxisEngine(cc); if (!block) { mc.setProperty(MessageContext.TRANSPORT_NON_BLOCKING, Boolean.TRUE); } engine.send(mc); // all done completed = true; }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/31b635ff4b70f87cd38fbb0908ed11bdb610403f/OutOnlyAxisOperation.java/buggy/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
6494,
1203,
13,
1216,
15509,
7083,
288,
3639,
309,
261,
13615,
13,
288,
5411,
604,
394,
15509,
7083,
12,
5058,
18,
24906,
2932,
81,
881,
291,
832,
412,
2344,
7923,
1769,
3639,
289,
3639,
4659,
1042,
4946,
273,
888,
18,
588,
1750,
1042,
5621,
3639,
368,
444,
702,
603,
326,
883,
819,
3639,
309,
261,
13952,
18,
588,
20601,
1803,
1435,
422,
446,
747,
1408,
18,
14963,
12,
13952,
18,
588,
20601,
1803,
1435,
3719,
288,
5411,
6108,
18,
542,
20601,
1803,
12,
2116,
18,
588,
1803,
10663,
3639,
289,
3639,
6108,
18,
542,
1320,
12,
2116,
1769,
3639,
6108,
18,
542,
6558,
1079,
12,
4890,
3817,
18,
24906,
12,
2651,
8914,
2918,
18,
8723,
67,
13545,
67,
5069,
67,
4051,
10019,
3639,
368,
741,
5916,
24933,
3639,
5916,
4301,
1018,
4301,
273,
4946,
18,
588,
6558,
1750,
7675,
588,
2326,
4301,
3893,
5621,
309,
12,
3299,
4301,
480,
446,
15329,
1018,
4301,
18,
10828,
2326,
12,
13952,
1769,
289,
3639,
368,
3637,
883,
1599,
309,
518,
446,
3639,
368,
309,
326,
4736,
358,
999,
364,
5431,
353,
486,
1269,
16,
775,
358,
1104,
518,
3639,
368,
628,
326,
1976,
3639,
9514,
1182,
3291,
5793,
6568,
273,
702,
18,
588,
6568,
1182,
5621,
3639,
309,
261,
15330,
6568,
422,
446,
13,
288,
5411,
6961,
2404,
358,
41,
8025,
273,
261,
2116,
18,
588,
774,
1435,
480,
446,
13,
692,
702,
10792,
263,
588,
774,
1435,
294,
6108,
18,
588,
774,
5621,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
6494,
1203,
13,
1216,
15509,
7083,
288,
3639,
309,
261,
13615,
13,
288,
5411,
604,
394,
15509,
7083,
12,
5058,
18,
24906,
2932,
81,
881,
291,
832,
412,
2344,
7923,
1769,
3639,
289,
3639,
4659,
1042,
4946,
273,
888,
18,
588,
1750,
1042,
5621,
3639,
368,
444,
702,
603,
326,
883,
819,
3639,
309,
261,
13952,
18,
588,
20601,
1803,
1435,
422,
446,
747,
1408,
18,
14963,
12,
13952,
18,
588,
20601,
1803,
1435,
3719,
288,
5411,
6108,
18,
542,
20601,
1803,
12,
2116,
18,
588,
1803,
10663,
3639,
289,
3639,
6108,
18,
542,
1320,
12,
2116,
1769,
3639,
6108,
18,
542,
6558,
1079,
12,
4890,
3817,
18,
24906,
12,
2651,
8914,
2918,
18,
2
] |
public synchronized SSKBlock fetch(NodeSSK key) {
|
public SSKBlock fetch(NodeSSK key) {
|
public synchronized SSKBlock fetch(NodeSSK key) { // Can we just lock on sskDatastore here? **FIXME** try { return sskDatastore.fetch(key, false); } catch (IOException e) { Logger.error(this, "Cannot fetch data: "+e, e); return null; } }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/79d31585331089fa241bcabc60a642461fd7972a/Node.java/clean/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
348,
11129,
1768,
2158,
12,
907,
1260,
47,
498,
13,
288,
202,
202,
759,
4480,
732,
2537,
2176,
603,
5202,
79,
21191,
2674,
35,
225,
2826,
25810,
636,
202,
202,
698,
288,
1082,
202,
2463,
5202,
79,
21191,
18,
5754,
12,
856,
16,
629,
1769,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
4515,
2158,
501,
30,
13773,
73,
16,
425,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
348,
11129,
1768,
2158,
12,
907,
1260,
47,
498,
13,
288,
202,
202,
759,
4480,
732,
2537,
2176,
603,
5202,
79,
21191,
2674,
35,
225,
2826,
25810,
636,
202,
202,
698,
288,
1082,
202,
2463,
5202,
79,
21191,
18,
5754,
12,
856,
16,
629,
1769,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
4515,
2158,
501,
30,
13773,
73,
16,
425,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
GenericDelegator delegator = dctx.getDelegator();
|
public static Map getCategoryVariantProducts(DispatchContext dctx, Map context) { Map results = new HashMap(); GenericDelegator delegator = dctx.getDelegator(); LocalDispatcher dispatcher = dctx.getDispatcher(); List productFeatures = (List) context.get("productFeatures"); String productCategoryId = (String) context.get("productCategoryId"); // get all the product members of the product category Map result = new HashMap(); try { result = dispatcher.runSync("getProductCategoryMembers", UtilMisc.toMap("categoryId", productCategoryId)); } catch (GenericServiceException ex) { Debug.logError("Cannot get category memebers for " + productCategoryId + " due to error: " + ex.getMessage(), module); return ServiceUtil.returnError(ex.getMessage()); } List memberProducts = (List) result.get("categoryMembers"); if ((memberProducts != null) && (memberProducts.size() > 0)) { // construct a Map of productFeatureTypeId -> productFeatureId from the productFeatures List Map featuresByType = new HashMap(); for (Iterator pFi = productFeatures.iterator(); pFi.hasNext(); ) { GenericValue nextFeature = (GenericValue) pFi.next(); featuresByType.put(nextFeature.getString("productFeatureTypeId"), nextFeature.getString("productFeatureId")); } List products = new ArrayList(); // final list of variant products for (Iterator mPi = memberProducts.iterator(); mPi.hasNext(); ) { // find variants for each member product of the category GenericValue memberProduct = (GenericValue) mPi.next(); try { result = dispatcher.runSync("getProductVariant", UtilMisc.toMap("productId", memberProduct.getString("productId"), "selectedFeatures", featuresByType)); } catch (GenericServiceException ex) { Debug.logError("Cannot get product variants for " + memberProduct.getString("productId") + " due to error: " + ex.getMessage(), module); return ServiceUtil.returnError(ex.getMessage()); } List variantProducts = (List) result.get("products"); if ((variantProducts != null) && (variantProducts.size() > 0)) { products.addAll(variantProducts); } else { Debug.logWarning("Product " + memberProduct.getString("productId") + " did not have any variants for the given features", module); } } if (products.size() == 0) { return ServiceUtil.returnError("No products which fit your requirements were found."); } else { results = ServiceUtil.returnSuccess(); results.put("products", products); } } else { Debug.logWarning("No products found in " + productCategoryId, module); } return results; }
|
22229 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22229/166c06edf1473c848416f568a51ea3863679a8a0/ProductFeatureServices.java/buggy/applications/product/src/org/ofbiz/product/feature/ProductFeatureServices.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
19110,
9356,
13344,
12,
5325,
1042,
302,
5900,
16,
1635,
819,
13,
288,
3639,
1635,
1686,
273,
394,
4317,
5621,
9079,
3566,
6681,
7393,
273,
302,
5900,
18,
588,
6681,
5621,
3639,
987,
3017,
8696,
273,
261,
682,
13,
819,
18,
588,
2932,
5896,
8696,
8863,
3639,
514,
3017,
21197,
273,
261,
780,
13,
819,
18,
588,
2932,
5896,
21197,
8863,
3639,
368,
336,
777,
326,
3017,
4833,
434,
326,
3017,
3150,
3639,
1635,
563,
273,
394,
4317,
5621,
3639,
775,
288,
5411,
563,
273,
7393,
18,
2681,
4047,
2932,
588,
4133,
4457,
6918,
3113,
3564,
11729,
71,
18,
869,
863,
2932,
4743,
548,
3113,
3017,
21197,
10019,
3639,
289,
1044,
261,
7014,
15133,
431,
13,
288,
5411,
4015,
18,
1330,
668,
2932,
4515,
336,
3150,
1663,
73,
2210,
364,
315,
397,
3017,
21197,
397,
315,
6541,
358,
555,
30,
315,
397,
431,
18,
24906,
9334,
1605,
1769,
5411,
327,
1956,
1304,
18,
2463,
668,
12,
338,
18,
24906,
10663,
3639,
289,
3639,
987,
3140,
13344,
273,
261,
682,
13,
563,
18,
588,
2932,
4743,
6918,
8863,
3639,
309,
14015,
5990,
13344,
480,
446,
13,
597,
261,
5990,
13344,
18,
1467,
1435,
405,
374,
3719,
288,
5411,
368,
4872,
279,
1635,
434,
3017,
4595,
11731,
317,
3017,
4595,
548,
628,
326,
3017,
8696,
987,
5411,
1635,
4467,
14145,
273,
394,
4317,
5621,
5411,
364,
261,
3198,
293,
42,
77,
273,
3017,
8696,
18,
9838,
5621,
293,
42,
77,
18,
5332,
2134,
5621,
262,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
19110,
9356,
13344,
12,
5325,
1042,
302,
5900,
16,
1635,
819,
13,
288,
3639,
1635,
1686,
273,
394,
4317,
5621,
9079,
3566,
6681,
7393,
273,
302,
5900,
18,
588,
6681,
5621,
3639,
987,
3017,
8696,
273,
261,
682,
13,
819,
18,
588,
2932,
5896,
8696,
8863,
3639,
514,
3017,
21197,
273,
261,
780,
13,
819,
18,
588,
2932,
5896,
21197,
8863,
3639,
368,
336,
777,
326,
3017,
4833,
434,
326,
3017,
3150,
3639,
1635,
563,
273,
394,
4317,
5621,
3639,
775,
288,
5411,
563,
273,
7393,
18,
2681,
4047,
2932,
588,
4133,
4457,
6918,
3113,
3564,
11729,
71,
18,
869,
863,
2932,
4743,
548,
3113,
3017,
21197,
10019,
3639,
289,
1044,
261,
7014,
15133,
431,
2
] |
|
return eaid; }
|
GIMatrix matrix = new GIMatrix(getExtendedAdjacenyMatrix(atomContainer)); GIMatrix tempMatrix = matrix; GIMatrix fixedMatrix = matrix; for (int i = 2; i < atomContainer.getAtomCount(); i++) { tempMatrix = tempMatrix.multiply(fixedMatrix); matrix = matrix.add(tempMatrix); } for (int i = 0; i < atomContainer.getAtomCount(); i++) { matrix.setValueAt(i,i,matrix.getValueAt(i,i)+1); } double eaid = matrix.trace(); if (debug) { System.out.println(); System.out.println("final matrix - the sum of the powers of EA matrix: "); System.out.println(); displayMatrix(matrix.getArrayValue()); System.out.println(); System.out.println("eaid number: "+ eaid); System.out.println(); } return eaid; }
|
public static double getEAIDNumber(AtomContainer atomContainer) throws org.openscience.cdk.exception.NoSuchAtomException, BadMatrixFormatException,IndexOutOfBoundsException { boolean debug = false; GIMatrix matrix = new GIMatrix(getExtendedAdjacenyMatrix(atomContainer)); GIMatrix tempMatrix = matrix; GIMatrix fixedMatrix = matrix; for (int i = 2; i < atomContainer.getAtomCount(); i++) { tempMatrix = tempMatrix.multiply(fixedMatrix); matrix = matrix.add(tempMatrix); } for (int i = 0; i < atomContainer.getAtomCount(); i++) { matrix.setValueAt(i,i,matrix.getValueAt(i,i)+1); } double eaid = matrix.trace(); if (debug) { System.out.println(); System.out.println("final matrix - the sum of the powers of EA matrix: "); System.out.println(); displayMatrix(matrix.getArrayValue()); System.out.println(); System.out.println("eaid number: "+ eaid); System.out.println(); } return eaid; }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/0971906b242e8b5a0e534a085a4db5801b729cca/HuLuIndexTool.java/clean/src/org/openscience/cdk/graph/invariant/HuLuIndexTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
4774,
37,
734,
1854,
12,
3641,
2170,
22487,
13,
1216,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
4064,
18,
28341,
3641,
503,
16,
1082,
202,
6434,
4635,
9291,
16,
30548,
202,
95,
202,
202,
6494,
1198,
273,
629,
31,
9506,
202,
43,
3445,
1942,
3148,
273,
394,
611,
3445,
1942,
12,
588,
11456,
17886,
1077,
275,
93,
4635,
12,
7466,
2170,
10019,
9506,
202,
43,
3445,
1942,
1906,
4635,
273,
3148,
31,
202,
202,
43,
3445,
1942,
5499,
4635,
273,
3148,
31,
202,
202,
1884,
261,
474,
277,
273,
576,
31,
277,
411,
22487,
18,
588,
3641,
1380,
5621,
277,
27245,
202,
202,
95,
1082,
202,
5814,
4635,
273,
1906,
4635,
18,
7027,
1283,
12,
12429,
4635,
1769,
1082,
202,
5667,
273,
3148,
18,
1289,
12,
5814,
4635,
1769,
6862,
202,
97,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
22487,
18,
588,
3641,
1380,
5621,
277,
27245,
202,
202,
95,
1082,
202,
5667,
18,
542,
620,
861,
12,
77,
16,
77,
16,
5667,
18,
24805,
861,
12,
77,
16,
77,
27921,
21,
1769,
9506,
202,
97,
202,
202,
9056,
425,
20736,
273,
3148,
18,
5129,
5621,
9506,
202,
430,
261,
4148,
13,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
6385,
3148,
300,
326,
2142,
434,
326,
7602,
414,
434,
512,
37,
3148,
30,
315,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
5621,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
4774,
37,
734,
1854,
12,
3641,
2170,
22487,
13,
1216,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
4064,
18,
28341,
3641,
503,
16,
1082,
202,
6434,
4635,
9291,
16,
30548,
202,
95,
202,
202,
6494,
1198,
273,
629,
31,
9506,
202,
43,
3445,
1942,
3148,
273,
394,
611,
3445,
1942,
12,
588,
11456,
17886,
1077,
275,
93,
4635,
12,
7466,
2170,
10019,
9506,
202,
43,
3445,
1942,
1906,
4635,
273,
3148,
31,
202,
202,
43,
3445,
1942,
5499,
4635,
273,
3148,
31,
202,
202,
1884,
261,
474,
277,
273,
576,
31,
277,
411,
22487,
18,
588,
3641,
1380,
5621,
277,
27245,
202,
202,
95,
1082,
202,
5814,
4635,
273,
1906,
4635,
18,
2
] |
IntegerField maxHitsField = dialog.addIntegerField("Maximum number of hits:", maxHits,5);
|
IntegerField maxHitsField = dialog.addIntegerField("Maximum number of hits:", maxHits,5,1,upperMaxHits);
|
public boolean queryOptions() { MesquiteInteger buttonPressed = new MesquiteInteger(1); ExtensibleDialog dialog = new ExtensibleDialog(MesquiteTrunk.mesquiteTrunk.containerOfModule(), "Top Blast Matches",buttonPressed); //MesquiteTrunk.mesquiteTrunk.containerOfModule() dialog.addLabel("Options for Top Blast Matches"); IntegerField maxHitsField = dialog.addIntegerField("Maximum number of hits:", maxHits,5); Checkbox saveFileCheckBox = dialog.addCheckBox("save results to file",saveResultsToFile); Checkbox fetchTaxonomyCheckBox = dialog.addCheckBox("fetch taxonomic lineage",fetchTaxonomy); Checkbox importCheckBox = dialog.addCheckBox("import top matches into matrix",importTopMatches); IntegerField maxTimeField = dialog.addIntegerField("Maximum time for BLAST response (seconds):", maxTime,5); dialog.completeAndShowDialog(true); if (buttonPressed.getValue()==0) { maxHits = maxHitsField.getValue(); saveResultsToFile = saveFileCheckBox.getState(); fetchTaxonomy = fetchTaxonomyCheckBox.getState(); importTopMatches = importCheckBox.getState(); maxTime=maxTimeField.getValue(); storePreferences(); } dialog.dispose(); return (buttonPressed.getValue()==0); }
|
56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/e196169095dd958806ffe4bba83752cbe67c02e6/TopBlastMatches.java/buggy/Source/mesquite/molec/TopBlastMatches/TopBlastMatches.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
843,
1320,
1435,
288,
202,
202,
49,
281,
372,
1137,
4522,
3568,
24624,
273,
394,
490,
281,
372,
1137,
4522,
12,
21,
1769,
202,
202,
2482,
773,
1523,
6353,
6176,
273,
394,
6419,
773,
1523,
6353,
12,
49,
281,
372,
1137,
1070,
1683,
18,
26244,
372,
1137,
1070,
1683,
18,
3782,
951,
3120,
9334,
315,
3401,
605,
2722,
21608,
3113,
5391,
24624,
1769,
225,
368,
49,
281,
372,
1137,
1070,
1683,
18,
26244,
372,
1137,
1070,
1683,
18,
3782,
951,
3120,
1435,
202,
202,
12730,
18,
1289,
2224,
2932,
1320,
364,
7202,
605,
2722,
21608,
8863,
9506,
202,
4522,
974,
943,
20950,
974,
273,
6176,
18,
1289,
4522,
974,
2932,
13528,
1300,
434,
11076,
2773,
16,
225,
943,
20950,
16,
25,
1769,
202,
202,
21272,
1923,
812,
19174,
273,
6176,
18,
1289,
19174,
2932,
5688,
1686,
358,
585,
3113,
5688,
3447,
15450,
1769,
202,
202,
21272,
2158,
18667,
19174,
273,
6176,
18,
1289,
19174,
2932,
5754,
5320,
4708,
335,
31766,
3113,
5754,
18667,
1769,
202,
202,
21272,
1930,
19174,
273,
6176,
18,
1289,
19174,
2932,
5666,
1760,
1885,
1368,
3148,
3113,
5666,
3401,
6869,
1769,
202,
202,
4522,
974,
25328,
974,
273,
6176,
18,
1289,
4522,
974,
2932,
13528,
813,
364,
605,
14378,
766,
261,
7572,
13,
2773,
16,
225,
25328,
16,
25,
1769,
202,
202,
12730,
18,
6226,
1876,
5706,
6353,
12,
3767,
1769,
202,
202,
430,
261,
5391,
24624,
18,
24805,
1435,
631,
20,
13,
225,
288,
1082,
202,
1896,
20950,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
843,
1320,
1435,
288,
202,
202,
49,
281,
372,
1137,
4522,
3568,
24624,
273,
394,
490,
281,
372,
1137,
4522,
12,
21,
1769,
202,
202,
2482,
773,
1523,
6353,
6176,
273,
394,
6419,
773,
1523,
6353,
12,
49,
281,
372,
1137,
1070,
1683,
18,
26244,
372,
1137,
1070,
1683,
18,
3782,
951,
3120,
9334,
315,
3401,
605,
2722,
21608,
3113,
5391,
24624,
1769,
225,
368,
49,
281,
372,
1137,
1070,
1683,
18,
26244,
372,
1137,
1070,
1683,
18,
3782,
951,
3120,
1435,
202,
202,
12730,
18,
1289,
2224,
2932,
1320,
364,
7202,
605,
2722,
21608,
8863,
9506,
202,
4522,
974,
943,
20950,
974,
273,
6176,
18,
1289,
4522,
974,
2932,
13528,
1300,
434,
11076,
2773,
2
] |
} else {
|
} else {
|
public boolean isSelected(File basedir, String filename, File file) { // throw BuildException on error validate(); int depth = -1; // If you felt daring, you could cache the basedir absolute path String abs_base = basedir.getAbsolutePath(); String abs_file = file.getAbsolutePath(); StringTokenizer tok_base = new StringTokenizer(abs_base, File.separator); StringTokenizer tok_file = new StringTokenizer(abs_file, File.separator); while (tok_file.hasMoreTokens()) { String filetoken = tok_file.nextToken(); if (tok_base.hasMoreTokens()) { String basetoken = tok_base.nextToken(); // Sanity check. Ditch it if you want faster performance if (!basetoken.equals(filetoken)) { throw new BuildException("File " + filename + " does not appear within " + abs_base + "directory"); } } else { depth += 1; if (max > -1 && depth > max) { return false; } } } if (tok_base.hasMoreTokens()) { throw new BuildException("File " + filename + " is outside of " + abs_base + "directory tree"); } if (min > -1 && depth < min) { return false; } return true; }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/4ee8397a70d3f74319f2de8b65c35ec4128bacf6/DepthSelector.java/clean/src/main/org/apache/tools/ant/types/selectors/DepthSelector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
20956,
12,
812,
15573,
16,
514,
1544,
16,
1387,
585,
13,
288,
3639,
368,
604,
18463,
603,
555,
3639,
1954,
5621,
3639,
509,
3598,
273,
300,
21,
31,
3639,
368,
971,
1846,
284,
20224,
302,
5968,
16,
1846,
3377,
1247,
326,
15573,
4967,
589,
3639,
514,
2417,
67,
1969,
273,
15573,
18,
588,
10368,
743,
5621,
3639,
514,
2417,
67,
768,
273,
585,
18,
588,
10368,
743,
5621,
3639,
16370,
946,
67,
1969,
273,
394,
16370,
12,
5113,
67,
1969,
16,
1387,
18,
11287,
1769,
3639,
16370,
946,
67,
768,
273,
394,
16370,
12,
5113,
67,
768,
16,
1387,
18,
11287,
1769,
3639,
1323,
261,
17692,
67,
768,
18,
5332,
7417,
5157,
10756,
288,
5411,
514,
661,
278,
969,
273,
946,
67,
768,
18,
4285,
1345,
5621,
5411,
309,
261,
17692,
67,
1969,
18,
5332,
7417,
5157,
10756,
288,
7734,
514,
2580,
278,
969,
273,
946,
67,
1969,
18,
4285,
1345,
5621,
7734,
368,
23123,
866,
18,
463,
1437,
518,
309,
1846,
2545,
12063,
9239,
7734,
309,
16051,
70,
2759,
969,
18,
14963,
12,
7540,
278,
969,
3719,
288,
10792,
604,
394,
18463,
2932,
812,
315,
397,
1544,
397,
13491,
315,
1552,
486,
9788,
3470,
315,
397,
2417,
67,
1969,
397,
315,
5149,
8863,
7734,
289,
5411,
289,
5411,
469,
288,
7734,
3598,
1011,
404,
31,
7734,
309,
261,
1896,
405,
300,
21,
597,
3598,
405,
943,
13,
288,
10792,
327,
629,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
261,
17692,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
20956,
12,
812,
15573,
16,
514,
1544,
16,
1387,
585,
13,
288,
3639,
368,
604,
18463,
603,
555,
3639,
1954,
5621,
3639,
509,
3598,
273,
300,
21,
31,
3639,
368,
971,
1846,
284,
20224,
302,
5968,
16,
1846,
3377,
1247,
326,
15573,
4967,
589,
3639,
514,
2417,
67,
1969,
273,
15573,
18,
588,
10368,
743,
5621,
3639,
514,
2417,
67,
768,
273,
585,
18,
588,
10368,
743,
5621,
3639,
16370,
946,
67,
1969,
273,
394,
16370,
12,
5113,
67,
1969,
16,
1387,
18,
11287,
1769,
3639,
16370,
946,
67,
768,
273,
394,
16370,
12,
5113,
67,
768,
16,
1387,
18,
11287,
1769,
3639,
1323,
261,
17692,
67,
768,
18,
5332,
7417,
5157,
10756,
288,
5411,
514,
2
] |
public void keyPressed(KeyEvent e) { if(e.isShiftDown()) { switch(e.getKeyCode()) { case KeyEvent.VK_UP: { if(actual>0) { playerChatText.setText(lines.get(actual-1)); actual--; } break; } case KeyEvent.VK_DOWN: { if(actual<lines.size()) { playerChatText.setText(lines.get(actual)); actual++; } break; } } } }
|
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/2c5d8c48e540e0e8bdaf2b72c3edd55f8838d406/StendhalChatLineListener.java/clean/src/games/stendhal/client/gui/StendhalChatLineListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
856,
24624,
12,
653,
1133,
73,
15329,
430,
12,
73,
18,
291,
10544,
4164,
10756,
95,
9610,
12,
73,
18,
588,
653,
1085,
10756,
95,
3593,
653,
1133,
18,
58,
47,
67,
3079,
18611,
430,
12,
18672,
34,
20,
15329,
14872,
14163,
1528,
18,
542,
1528,
12,
3548,
18,
588,
12,
18672,
17,
21,
10019,
18672,
413,
31,
97,
8820,
31,
97,
3593,
653,
1133,
18,
58,
47,
67,
12711,
18611,
430,
12,
18672,
32,
3548,
18,
1467,
10756,
95,
14872,
14163,
1528,
18,
542,
1528,
12,
3548,
18,
588,
12,
18672,
10019,
18672,
9904,
31,
97,
8820,
31,
9090,
9090,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
856,
24624,
12,
653,
1133,
73,
15329,
430,
12,
73,
18,
291,
10544,
4164,
10756,
95,
9610,
12,
73,
18,
588,
653,
1085,
10756,
95,
3593,
653,
1133,
18,
58,
47,
67,
3079,
18611,
430,
12,
18672,
34,
20,
15329,
14872,
14163,
1528,
18,
542,
1528,
12,
3548,
18,
588,
12,
18672,
17,
21,
10019,
18672,
413,
31,
97,
8820,
31,
97,
3593,
653,
1133,
18,
58,
47,
67,
12711,
18611,
430,
12,
18672,
32,
3548,
18,
1467,
10756,
95,
14872,
14163,
1528,
18,
542,
1528,
12,
3548,
18,
588,
12,
18672,
10019,
18672,
9904,
31,
97,
8820,
31,
9090,
9090,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
Selection s;
|
public void selectToMatchingBracket() { int bracket = TextUtilities.findMatchingBracket(buffer,caretLine, Math.max(0,caret - buffer.getLineStartOffset(caretLine) - 1)); if(bracket != -1) { // Hack if(bracket < caret) { extendSelection(bracket + 1,caret - 1); } else { extendSelection(caret,bracket); } return; } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/16fbd6a2398f65435904d2bd0e80999fad2a4797/JEditTextArea.java/buggy/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6233,
272,
31,
225,
918,
6233,
272,
31,
225,
2027,
774,
9517,
11450,
1435,
202,
95,
202,
202,
474,
6233,
272,
31,
225,
9843,
6233,
272,
31,
225,
273,
6233,
272,
31,
225,
3867,
11864,
18,
4720,
9517,
11450,
12,
4106,
16,
71,
20731,
1670,
16,
1082,
202,
10477,
18,
1896,
12,
20,
16,
71,
20731,
6233,
272,
31,
225,
300,
6233,
272,
31,
225,
1613,
18,
588,
1670,
1685,
2335,
12,
71,
20731,
1670,
13,
6233,
272,
31,
225,
300,
6233,
272,
31,
225,
404,
10019,
202,
202,
430,
12,
21025,
6233,
272,
31,
225,
480,
6233,
272,
31,
225,
300,
21,
13,
202,
202,
95,
1082,
202,
759,
6233,
272,
31,
225,
670,
484,
1082,
202,
430,
12,
21025,
6233,
272,
31,
225,
411,
6233,
272,
31,
225,
21683,
13,
1082,
202,
95,
9506,
202,
14313,
6233,
12,
21025,
6233,
272,
31,
225,
397,
6233,
272,
31,
225,
404,
16,
71,
20731,
6233,
272,
31,
225,
300,
6233,
272,
31,
225,
404,
1769,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
14313,
6233,
12,
71,
20731,
16,
21025,
1769,
1082,
202,
97,
1082,
202,
2463,
31,
202,
202,
97,
202,
97,
6233,
272,
31,
225,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6233,
272,
31,
225,
918,
6233,
272,
31,
225,
2027,
774,
9517,
11450,
1435,
202,
95,
202,
202,
474,
6233,
272,
31,
225,
9843,
6233,
272,
31,
225,
273,
6233,
272,
31,
225,
3867,
11864,
18,
4720,
9517,
11450,
12,
4106,
16,
71,
20731,
1670,
16,
1082,
202,
10477,
18,
1896,
12,
20,
16,
71,
20731,
6233,
272,
31,
225,
300,
6233,
272,
31,
225,
1613,
18,
588,
1670,
1685,
2335,
12,
71,
20731,
1670,
13,
6233,
272,
31,
225,
300,
6233,
272,
31,
225,
404,
10019,
202,
202,
430,
12,
21025,
6233,
272,
31,
225,
480,
6233,
272,
31,
225,
300,
21,
13,
202,
202,
95,
1082,
202,
759,
6233,
272,
31,
225,
670,
484,
2
] |
|
return NLS.class.getName().equals(superclass.getFullyQualifiedName());
|
return superclass != null && NLS.class.getName().equals(superclass.getFullyQualifiedName());
|
public boolean detectIsEclipseNLS() { if (getAccessorClassPackage() != null) { ICompilationUnit accessorCU= getAccessorClassPackage().getCompilationUnit(getAccessorClassName() + ".java"); //$NON-NLS-1$ IType type= accessorCU.getType(getAccessorClassName()); if (type.exists()) { try { String superclassName= type.getSuperclassName(); if (!"NLS".equals(superclassName) && !NLS.class.getName().equals(superclassName)) //$NON-NLS-1$ return false; IType superclass= type.newSupertypeHierarchy(null).getSuperclass(type); return NLS.class.getName().equals(superclass.getFullyQualifiedName()); } catch (JavaModelException e) { return false; } } } return false; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4f0ccd8518fb8b98841e199b860dd5a75a445a45/NLSRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSRefactoring.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
5966,
2520,
23057,
10472,
5106,
1435,
288,
202,
202,
430,
261,
588,
8235,
797,
2261,
1435,
480,
446,
13,
288,
1082,
202,
45,
19184,
2802,
9789,
16001,
33,
336,
8235,
797,
2261,
7675,
588,
19184,
2802,
12,
588,
8235,
3834,
1435,
397,
3552,
6290,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
45,
559,
618,
33,
9789,
16001,
18,
588,
559,
12,
588,
8235,
3834,
10663,
1082,
202,
430,
261,
723,
18,
1808,
10756,
288,
9506,
202,
698,
288,
6862,
202,
780,
12098,
461,
33,
618,
18,
588,
8051,
12434,
5621,
6862,
202,
430,
261,
4442,
5106,
9654,
14963,
12,
9565,
12434,
13,
597,
401,
5106,
18,
1106,
18,
17994,
7675,
14963,
12,
9565,
12434,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
2463,
629,
31,
6862,
202,
45,
559,
12098,
33,
618,
18,
2704,
8051,
723,
12074,
12,
2011,
2934,
588,
28471,
12,
723,
1769,
6862,
202,
2463,
29117,
18,
1106,
18,
17994,
7675,
14963,
12,
9565,
1106,
18,
588,
16999,
12345,
10663,
9506,
202,
97,
1044,
261,
5852,
1488,
503,
425,
13,
288,
6862,
202,
2463,
629,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
5966,
2520,
23057,
10472,
5106,
1435,
288,
202,
202,
430,
261,
588,
8235,
797,
2261,
1435,
480,
446,
13,
288,
1082,
202,
45,
19184,
2802,
9789,
16001,
33,
336,
8235,
797,
2261,
7675,
588,
19184,
2802,
12,
588,
8235,
3834,
1435,
397,
3552,
6290,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
45,
559,
618,
33,
9789,
16001,
18,
588,
559,
12,
588,
8235,
3834,
10663,
1082,
202,
430,
261,
723,
18,
1808,
10756,
288,
9506,
202,
698,
288,
6862,
202,
780,
12098,
461,
33,
618,
18,
588,
8051,
12434,
5621,
6862,
202,
430,
261,
4442,
5106,
9654,
14963,
12,
9565,
12434,
13,
597,
401,
5106,
18,
1106,
18,
17994,
7675,
14963,
12,
2
] |
public org.quickfix.field.TradeInputSource getTradeInputSource() throws FieldNotFound { org.quickfix.field.TradeInputSource value = new org.quickfix.field.TradeInputSource();
|
public quickfix.field.TradeInputSource getTradeInputSource() throws FieldNotFound { quickfix.field.TradeInputSource value = new quickfix.field.TradeInputSource();
|
public org.quickfix.field.TradeInputSource getTradeInputSource() throws FieldNotFound { org.quickfix.field.TradeInputSource value = new org.quickfix.field.TradeInputSource(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/clean/src/java/src/quickfix/fix43/TradeCaptureReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
22583,
1210,
1830,
336,
22583,
1210,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
22583,
1210,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
22583,
1210,
1830,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
22583,
1210,
1830,
336,
22583,
1210,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
22583,
1210,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
22583,
1210,
1830,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void parseMGRLVLLS(int time) throws DRDAProtocolException { int manager, managerLevel; int currentLevel; unknownManagers = new Vector(); knownManagers = new Vector(); errorManagers = new Vector(); errorManagersLevel = new Vector(); if (SanityManager.DEBUG) trace("Manager Levels");
|
private void parseMGRLVLLS(int time) throws DRDAProtocolException { int manager, managerLevel; int currentLevel; unknownManagers = new Vector(); knownManagers = new Vector(); errorManagers = new Vector(); errorManagersLevel = new Vector(); if (SanityManager.DEBUG) trace("Manager Levels");
|
private void parseMGRLVLLS(int time) throws DRDAProtocolException { int manager, managerLevel; int currentLevel; // set up vectors to keep track of manager information unknownManagers = new Vector(); knownManagers = new Vector(); errorManagers = new Vector(); errorManagersLevel = new Vector(); if (SanityManager.DEBUG) trace("Manager Levels"); while (reader.moreDdmData()) { manager = reader.readNetworkShort(); managerLevel = reader.readNetworkShort(); if (CodePoint.isKnownManager(manager)) { knownManagers.addElement(new Integer(manager)); //if the manager level hasn't been set, set it currentLevel = appRequester.getManagerLevel(manager); if (currentLevel == appRequester.MGR_LEVEL_UNKNOWN) appRequester.setManagerLevel(manager, managerLevel); else { //if the level is still the same we'll ignore it if (currentLevel != managerLevel) { //keep a list of conflicting managers errorManagers.addElement(new Integer(manager)); errorManagersLevel.addElement(new Integer (managerLevel)); } } } else unknownManagers.addElement(new Integer(manager)); if (SanityManager.DEBUG) trace("Manager = " + java.lang.Integer.toHexString(manager) + " ManagerLevel " + managerLevel); } sqlamLevel = appRequester.getManagerLevel(CodePoint.SQLAM); // did we have any errors if (errorManagers.size() > 0) { Object [] oa = new Object[errorManagers.size()*2]; int j = 0; for (int i = 0; i < errorManagers.size(); i++) { oa[j++] = errorManagers.elementAt(i); oa[j++] = errorManagersLevel.elementAt(i); } throw new DRDAProtocolException(DRDAProtocolException.DRDA_Proto_MGRLVLRM, this, 0, 0, oa); } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
49,
6997,
48,
58,
48,
3045,
12,
474,
813,
13,
1216,
16801,
9793,
5752,
503,
288,
202,
474,
3301,
16,
3301,
2355,
31,
202,
474,
783,
2355,
31,
202,
759,
444,
731,
10046,
358,
3455,
3298,
434,
3301,
1779,
202,
8172,
17570,
273,
394,
5589,
5621,
202,
2994,
17570,
273,
394,
5589,
5621,
202,
1636,
17570,
273,
394,
5589,
5621,
202,
1636,
17570,
2355,
273,
394,
5589,
5621,
202,
430,
261,
55,
10417,
1318,
18,
9394,
13,
202,
565,
2606,
2932,
1318,
4557,
87,
8863,
202,
17523,
261,
10530,
18,
10161,
40,
10956,
751,
10756,
288,
202,
565,
3301,
273,
2949,
18,
896,
3906,
4897,
5621,
202,
565,
3301,
2355,
273,
2949,
18,
896,
3906,
4897,
5621,
202,
565,
309,
261,
31536,
18,
291,
11925,
1318,
12,
4181,
3719,
288,
202,
202,
2994,
17570,
18,
1289,
1046,
12,
2704,
2144,
12,
4181,
10019,
202,
202,
759,
430,
326,
3301,
1801,
13342,
1404,
2118,
444,
16,
444,
518,
202,
202,
2972,
2355,
273,
595,
30260,
18,
588,
1318,
2355,
12,
4181,
1769,
202,
202,
430,
261,
2972,
2355,
422,
595,
30260,
18,
49,
6997,
67,
10398,
67,
14737,
13,
1082,
565,
595,
30260,
18,
542,
1318,
2355,
12,
4181,
16,
3301,
2355,
1769,
202,
202,
12107,
288,
1082,
565,
368,
430,
326,
1801,
353,
4859,
326,
1967,
732,
5614,
2305,
518,
1082,
565,
309,
261,
2972,
2355,
480,
3301,
2355,
13,
288,
1082,
202,
759,
10102,
279,
666,
434,
21462,
21103,
1082,
202,
1636,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
49,
6997,
48,
58,
48,
3045,
12,
474,
813,
13,
1216,
16801,
9793,
5752,
503,
288,
202,
474,
3301,
16,
3301,
2355,
31,
202,
474,
783,
2355,
31,
202,
759,
444,
731,
10046,
358,
3455,
3298,
434,
3301,
1779,
202,
8172,
17570,
273,
394,
5589,
5621,
202,
2994,
17570,
273,
394,
5589,
5621,
202,
1636,
17570,
273,
394,
5589,
5621,
202,
1636,
17570,
2355,
273,
394,
5589,
5621,
202,
430,
261,
55,
10417,
1318,
18,
9394,
13,
202,
565,
2606,
2932,
1318,
4557,
87,
8863,
202,
17523,
261,
10530,
18,
10161,
40,
10956,
751,
10756,
288,
202,
565,
3301,
273,
2949,
18,
896,
3906,
4897,
5621,
202,
565,
3301,
2355,
273,
2949,
18,
896,
3906,
2
] |
if (right instanceof CastExpr) right = ((CastExpr)right).getExpr(); if (right instanceof Step) _step = (Step)right;
|
if (right instanceof CastExpr) { right = ((CastExpr)right).getExpr(); } if (right instanceof Step) { _step = (Step)right; }
|
public Step getStep() { if (_step != null) return _step; if (_exp == null) return null; if (_exp instanceof EqualityExpr) { EqualityExpr exp = (EqualityExpr)_exp; Expression left = exp.getLeft(); Expression right = exp.getRight(); if (left instanceof CastExpr) left = ((CastExpr)left).getExpr(); if (left instanceof Step) _step = (Step)left; if (right instanceof CastExpr) right = ((CastExpr)right).getExpr(); if (right instanceof Step) _step = (Step)right; } return _step; }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/44b55b7c88b424e0adf3862a4914876f6ad4b7c1/Predicate.java/buggy/src/org/apache/xalan/xsltc/compiler/Predicate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8693,
30909,
1435,
288,
202,
430,
261,
67,
4119,
480,
446,
13,
327,
389,
4119,
31,
202,
430,
261,
67,
2749,
422,
446,
13,
327,
446,
31,
202,
430,
261,
67,
2749,
1276,
9057,
560,
4742,
13,
288,
202,
565,
9057,
560,
4742,
1329,
273,
261,
20273,
4742,
13,
67,
2749,
31,
202,
565,
5371,
2002,
273,
1329,
18,
588,
3910,
5621,
202,
565,
5371,
2145,
273,
1329,
18,
588,
4726,
5621,
202,
565,
309,
261,
4482,
1276,
19782,
4742,
13,
2002,
273,
14015,
9735,
4742,
13,
4482,
2934,
588,
4742,
5621,
202,
565,
309,
261,
4482,
1276,
8693,
13,
389,
4119,
273,
261,
4160,
13,
4482,
31,
202,
377,
202,
565,
309,
261,
4083,
1276,
19782,
4742,
13,
2145,
273,
14015,
9735,
4742,
13,
4083,
2934,
588,
4742,
5621,
202,
565,
309,
261,
4083,
1276,
8693,
13,
389,
4119,
273,
261,
4160,
13,
4083,
31,
202,
97,
202,
2463,
389,
4119,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8693,
30909,
1435,
288,
202,
430,
261,
67,
4119,
480,
446,
13,
327,
389,
4119,
31,
202,
430,
261,
67,
2749,
422,
446,
13,
327,
446,
31,
202,
430,
261,
67,
2749,
1276,
9057,
560,
4742,
13,
288,
202,
565,
9057,
560,
4742,
1329,
273,
261,
20273,
4742,
13,
67,
2749,
31,
202,
565,
5371,
2002,
273,
1329,
18,
588,
3910,
5621,
202,
565,
5371,
2145,
273,
1329,
18,
588,
4726,
5621,
202,
565,
309,
261,
4482,
1276,
19782,
4742,
13,
2002,
273,
14015,
9735,
4742,
13,
4482,
2934,
588,
4742,
5621,
202,
565,
309,
261,
4482,
1276,
8693,
13,
389,
4119,
273,
261,
4160,
13,
4482,
31,
202,
377,
202,
565,
309,
261,
4083,
1276,
19782,
2
] |
public void run() { if (treeSelection != null) { //TODO: Code to remove Element does here. Node deletionElement = (Element) treeSelection.getFirstElement(); Node deletionParent = deletionElement.getParentNode(); deletionParent.removeChild(deletionElement); treeViewer.refresh(); } }
|
2719 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2719/b99535819efd1875f5e5d41699cba4fa5e205f0f/SiteXMLView.java/buggy/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/views/SiteXMLView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
6459,
2681,
1435,
95,
9506,
202,
430,
12,
3413,
6233,
5,
33,
2011,
15329,
6862,
202,
759,
6241,
30,
29633,
278,
479,
8501,
1046,
2896,
4607,
822,
18,
6862,
202,
907,
19003,
285,
1046,
28657,
1046,
13,
3413,
6233,
18,
588,
3759,
1046,
5621,
25083,
202,
907,
19003,
285,
3054,
33,
19003,
285,
1046,
18,
588,
3054,
907,
5621,
6862,
202,
19003,
285,
3054,
18,
4479,
1763,
12,
19003,
285,
1046,
1769,
6862,
202,
3413,
18415,
18,
9144,
5621,
6862,
6862,
202,
97,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
6459,
2681,
1435,
95,
9506,
202,
430,
12,
3413,
6233,
5,
33,
2011,
15329,
6862,
202,
759,
6241,
30,
29633,
278,
479,
8501,
1046,
2896,
4607,
822,
18,
6862,
202,
907,
19003,
285,
1046,
28657,
1046,
13,
3413,
6233,
18,
588,
3759,
1046,
5621,
25083,
202,
907,
19003,
285,
3054,
33,
19003,
285,
1046,
18,
588,
3054,
907,
5621,
6862,
202,
19003,
285,
3054,
18,
4479,
1763,
12,
19003,
285,
1046,
1769,
6862,
202,
3413,
18415,
18,
9144,
5621,
6862,
6862,
202,
97,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
case 590: {
|
case 587: {
|
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("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 ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 45: ImportDeclarations ::= ImportDeclaration // case 45: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 46: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 46: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclaration // case 47: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 48: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: PackageDeclaration ::= package PackageName SEMICOLON // case 49: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 50: ImportDeclaration ::= SingleTypeImportDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= SingleStaticImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 53: break; // // Rule 54: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 55: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 55: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 56: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 56: bad_rule = 56; break; // // Rule 57: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 57: bad_rule = 57; break; // // Rule 58: TypeDeclaration ::= ClassDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= InterfaceDeclaration // case 59: break; // // Rule 60: TypeDeclaration ::= SEMICOLON // case 60: { btParser.setSym1(null); break; } // // Rule 61: ClassDeclaration ::= NormalClassDeclaration // case 61: break; // // Rule 62: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 62: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); if (a.isValue()) btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); else btParser.setSym1(nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 63: ClassModifiers ::= ClassModifier // case 63: break; // // Rule 64: ClassModifiers ::= ClassModifiers ClassModifier // case 64: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 65: ClassModifier ::= public // case 65: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 66: ClassModifier ::= protected // case 66: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 67: ClassModifier ::= private // case 67: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 68: ClassModifier ::= abstract // case 68: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 69: ClassModifier ::= static // case 69: { btParser.setSym1(Flags.STATIC); break; } // // Rule 70: ClassModifier ::= final // case 70: { btParser.setSym1(Flags.FINAL); break; } // // Rule 71: ClassModifier ::= strictfp // case 71: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 72: TypeParameters ::= LESS TypeParameterList GREATER // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 74: bad_rule = 74; break; // // Rule 75: Super ::= extends ClassType // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: Interfaces ::= implements InterfaceTypeList // case 76: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 77: InterfaceTypeList ::= InterfaceType // case 77: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 78: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 78: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 79: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 79: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclaration // case 80: break; // // Rule 81: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 81: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 82: ClassBodyDeclaration ::= ClassMemberDeclaration // case 82: break; // // Rule 83: ClassBodyDeclaration ::= InstanceInitializer // case 83: { 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 84: ClassBodyDeclaration ::= StaticInitializer // case 84: { 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 85: ClassBodyDeclaration ::= ConstructorDeclaration // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 86: ClassMemberDeclaration ::= FieldDeclaration // case 86: break; // // Rule 87: ClassMemberDeclaration ::= MethodDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= ClassDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= InterfaceDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= SEMICOLON // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 91: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators SEMICOLON // case 91: { 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 92: VariableDeclarators ::= VariableDeclarator // case 92: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 93: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 93: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 94: VariableDeclarator ::= VariableDeclaratorId // case 94: break; // // Rule 95: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 95: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 96: VariableDeclaratorId ::= identifier // case 96: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 97: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 98: VariableInitializer ::= Expression // case 98: break; // // Rule 99: VariableInitializer ::= ArrayInitializer // case 99: break; // // Rule 100: FieldModifiers ::= FieldModifier // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifiers FieldModifier // case 101: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 102: FieldModifier ::= public // case 102: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 103: FieldModifier ::= protected // case 103: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 104: FieldModifier ::= private // case 104: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 105: FieldModifier ::= static // case 105: { btParser.setSym1(Flags.STATIC); break; } // // Rule 106: FieldModifier ::= final // case 106: { btParser.setSym1(Flags.FINAL); break; } // // Rule 107: FieldModifier ::= transient // case 107: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 108: FieldModifier ::= volatile // case 108: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 109: MethodDeclaration ::= MethodHeader MethodBody // case 109: { MethodDecl a = (MethodDecl) btParser.getSym(1); Block b = (Block) btParser.getSym(2); btParser.setSym1(a.body(b)); break; } // // Rule 110: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 110: { 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 111: ResultType ::= Type // case 111: break; // // Rule 112: ResultType ::= void // case 112: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 113: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 113: { 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 114: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 114: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 115: FormalParameterList ::= LastFormalParameter // case 115: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 116: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 116: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 117: FormalParameters ::= FormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameters COMMA FormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 119: { 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 121: VariableModifiers ::= VariableModifiers VariableModifier // case 121: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 122: VariableModifier ::= final // case 122: { btParser.setSym1(Flags.FINAL); break; } // // Rule 123: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 123: { 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 124: MethodModifiers ::= MethodModifier // case 124: break; // // Rule 125: MethodModifiers ::= MethodModifiers MethodModifier // case 125: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 126: MethodModifier ::= public // case 126: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 127: MethodModifier ::= protected // case 127: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 128: MethodModifier ::= private // case 128: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 129: MethodModifier ::= abstract // case 129: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 130: MethodModifier ::= static // case 130: { btParser.setSym1(Flags.STATIC); break; } // // Rule 131: MethodModifier ::= final // case 131: { btParser.setSym1(Flags.FINAL); break; } // // Rule 132: MethodModifier ::= synchronized // case 132: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 133: MethodModifier ::= native // case 133: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 134: MethodModifier ::= strictfp // case 134: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 135: Throws ::= throws ExceptionTypeList // case 135: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 136: ExceptionTypeList ::= ExceptionType // case 136: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 137: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 137: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 138: ExceptionType ::= ClassType // case 138: break; // // Rule 139: ExceptionType ::= TypeVariable // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= SEMICOLON // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { 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 145: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 145: {//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 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 152: { 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 153: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: { 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 156: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: { 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 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants COMMA EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= LPAREN ArgumentListopt RPAREN // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= SEMICOLON // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { 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 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 190: { 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 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= SEMICOLON // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName EQUAL ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues COMMA ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= AT TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= LBRACE BlockStatementsopt RBRACE // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { 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 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { 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 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 260: { 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 261: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 261: { 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 262: EmptyStatement ::= SEMICOLON // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier COLON Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression SEMICOLON // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression SEMICOLON // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { 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 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression COLON // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant COLON // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default COLON // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 291: { 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 292: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 292: { 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 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { 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 297: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt SEMICOLON // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt SEMICOLON // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt SEMICOLON // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression SEMICOLON // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { 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 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type DOT class // case 312: { 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 313: PrimaryNoNewArray ::= void DOT class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName DOT this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { // 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 322: Literal ::= LongLiteral // case 322: { // 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 323: Literal ::= FloatingPointLiteral // case 323: { // 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 324: Literal ::= DoubleLiteral // case 324: { // 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 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 331: {//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 332: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 332: { 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 333: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: { 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 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList COMMA Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: ArrayCreationExpression ::= new PrimitiveType DimExprs Dimsopt // case 336: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 337: ArrayCreationExpression ::= new ClassOrInterfaceType DimExprs Dimsopt // case 337: { TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 338: ArrayCreationExpression ::= new PrimitiveType Dims ArrayInitializer // case 338: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 339: ArrayCreationExpression ::= new ClassOrInterfaceType Dims ArrayInitializer // case 339: { TypeNode a = (TypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 340: DimExprs ::= DimExpr // case 340: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 341: DimExprs ::= DimExprs DimExpr // case 341: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 342: DimExpr ::= LBRACKET Expression RBRACKET // case 342: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 343: Dims ::= LBRACKET RBRACKET // case 343: { btParser.setSym1(new Integer(1)); break; } // // Rule 344: Dims ::= Dims LBRACKET RBRACKET // case 344: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 345: FieldAccess ::= Primary DOT identifier // case 345: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 346: FieldAccess ::= super DOT identifier // case 346: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 347: FieldAccess ::= ClassName DOT super DOT identifier // case 347: { 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 348: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 348: { 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 349: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { 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 350: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 350: {//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 351: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 351: { 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 352: PostfixExpression ::= Primary // case 352: break; // // Rule 353: PostfixExpression ::= ExpressionName // case 353: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 354: PostfixExpression ::= PostIncrementExpression // case 354: break; // // Rule 355: PostfixExpression ::= PostDecrementExpression // case 355: break; // // Rule 356: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 356: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 357: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 357: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 358: UnaryExpression ::= PreIncrementExpression // case 358: break; // // Rule 359: UnaryExpression ::= PreDecrementExpression // case 359: break; // // Rule 360: UnaryExpression ::= PLUS UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 361: UnaryExpression ::= MINUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 363: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 364: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 365: break; // // Rule 366: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 367: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 369: MultiplicativeExpression ::= UnaryExpression // case 369: break; // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 371: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 372: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 373: AdditiveExpression ::= MultiplicativeExpression // case 373: break; // // Rule 374: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 374: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 375: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 376: ShiftExpression ::= AdditiveExpression // case 376: break; // // Rule 377: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 378: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 378: { // 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 379: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 379: { // 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 380: RelationalExpression ::= ShiftExpression // case 380: break; // // Rule 381: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 383: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 384: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 385: EqualityExpression ::= RelationalExpression // case 385: break; // // Rule 386: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 386: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 387: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 388: AndExpression ::= EqualityExpression // case 388: break; // // Rule 389: AndExpression ::= AndExpression AND EqualityExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 390: ExclusiveOrExpression ::= AndExpression // case 390: break; // // Rule 391: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 392: InclusiveOrExpression ::= ExclusiveOrExpression // case 392: break; // // Rule 393: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 394: ConditionalAndExpression ::= InclusiveOrExpression // case 394: break; // // Rule 395: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 396: ConditionalOrExpression ::= ConditionalAndExpression // case 396: break; // // Rule 397: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 398: ConditionalExpression ::= ConditionalOrExpression // case 398: break; // // Rule 399: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 399: { 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 400: AssignmentExpression ::= ConditionalExpression // case 400: break; // // Rule 401: AssignmentExpression ::= Assignment // case 401: break; // // Rule 402: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 402: { 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 403: LeftHandSide ::= ExpressionName // case 403: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 404: LeftHandSide ::= FieldAccess // case 404: break; // // Rule 405: LeftHandSide ::= ArrayAccess // case 405: break; // // Rule 406: AssignmentOperator ::= EQUAL // case 406: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 407: AssignmentOperator ::= MULTIPLY_EQUAL // case 407: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= DIVIDE_EQUAL // case 408: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= REMAINDER_EQUAL // case 409: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= PLUS_EQUAL // case 410: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= MINUS_EQUAL // case 411: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 412: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= GREATER GREATER EQUAL // case 413: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 414: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= AND_EQUAL // case 415: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 416: AssignmentOperator ::= XOR_EQUAL // case 416: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 417: AssignmentOperator ::= OR_EQUAL // case 417: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 418: Expression ::= AssignmentExpression // case 418: break; // // Rule 419: ConstantExpression ::= Expression // case 419: break; // // Rule 420: Dimsopt ::= // case 420: { btParser.setSym1(new Integer(0)); break; } // // Rule 421: Dimsopt ::= Dims // case 421: break; // // Rule 422: Catchesopt ::= // case 422: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 423: Catchesopt ::= Catches // case 423: break; // // Rule 424: identifieropt ::= // case 424: btParser.setSym1(null); break; // // Rule 425: identifieropt ::= identifier // case 425: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 426: ForUpdateopt ::= // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 427: ForUpdateopt ::= ForUpdate // case 427: break; // // Rule 428: Expressionopt ::= // case 428: btParser.setSym1(null); break; // // Rule 429: Expressionopt ::= Expression // case 429: break; // // Rule 430: ForInitopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 431: ForInitopt ::= ForInit // case 431: break; // // Rule 432: SwitchLabelsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 433: SwitchLabelsopt ::= SwitchLabels // case 433: break; // // Rule 434: SwitchBlockStatementGroupsopt ::= // case 434: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 435: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 435: break; // // Rule 436: VariableModifiersopt ::= // case 436: { btParser.setSym1(Flags.NONE); break; } // // Rule 437: VariableModifiersopt ::= VariableModifiers // case 437: break; // // Rule 438: VariableInitializersopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: VariableInitializersopt ::= VariableInitializers // case 439: break; // // Rule 440: ElementValuesopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuesopt ::= ElementValues // case 441: bad_rule = 441; break; // // Rule 442: ElementValuePairsopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: ElementValuePairsopt ::= ElementValuePairs // case 443: bad_rule = 443; break; // // Rule 444: DefaultValueopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: DefaultValueopt ::= DefaultValue // case 445: break; // // Rule 446: AnnotationTypeElementDeclarationsopt ::= // case 446: btParser.setSym1(null); break; // // Rule 447: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 447: bad_rule = 447; break; // // Rule 448: AbstractMethodModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 449: break; // // Rule 450: ConstantModifiersopt ::= // case 450: { btParser.setSym1(Flags.NONE); break; } // // Rule 451: ConstantModifiersopt ::= ConstantModifiers // case 451: break; // // Rule 452: InterfaceMemberDeclarationsopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 453: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 453: break; // // Rule 454: ExtendsInterfacesopt ::= // case 454: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 455: ExtendsInterfacesopt ::= ExtendsInterfaces // case 455: break; // // Rule 456: InterfaceModifiersopt ::= // case 456: { btParser.setSym1(Flags.NONE); break; } // // Rule 457: InterfaceModifiersopt ::= InterfaceModifiers // case 457: break; // // Rule 458: ClassBodyopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: ClassBodyopt ::= ClassBody // case 459: break; // // Rule 460: Argumentsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: Argumentsopt ::= Arguments // case 461: bad_rule = 461; break; // // Rule 462: EnumBodyDeclarationsopt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 463: bad_rule = 463; break; // // Rule 464: ,opt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: ,opt ::= COMMA // case 465: break; // // Rule 466: EnumConstantsopt ::= // case 466: btParser.setSym1(null); break; // // Rule 467: EnumConstantsopt ::= EnumConstants // case 467: bad_rule = 467; break; // // Rule 468: ArgumentListopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 469: ArgumentListopt ::= ArgumentList // case 469: break; // // Rule 470: BlockStatementsopt ::= // case 470: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 471: BlockStatementsopt ::= BlockStatements // case 471: break; // // Rule 472: ExplicitConstructorInvocationopt ::= // case 472: btParser.setSym1(null); break; // // Rule 473: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 473: break; // // Rule 474: ConstructorModifiersopt ::= // case 474: { btParser.setSym1(Flags.NONE); break; } // // Rule 475: ConstructorModifiersopt ::= ConstructorModifiers // case 475: break; // // Rule 476: ...opt ::= // case 476: btParser.setSym1(null); break; // // Rule 477: ...opt ::= ELLIPSIS // case 477: break; // // Rule 478: FormalParameterListopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 479: FormalParameterListopt ::= FormalParameterList // case 479: break; // // Rule 480: Throwsopt ::= // case 480: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 481: Throwsopt ::= Throws // case 481: break; // // Rule 482: MethodModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: MethodModifiersopt ::= MethodModifiers // case 483: break; // // Rule 484: FieldModifiersopt ::= // case 484: { btParser.setSym1(Flags.NONE); break; } // // Rule 485: FieldModifiersopt ::= FieldModifiers // case 485: break; // // Rule 486: ClassBodyDeclarationsopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 487: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 487: break; // // Rule 488: Interfacesopt ::= // case 488: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 489: Interfacesopt ::= Interfaces // case 489: break; // // Rule 490: Superopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: Superopt ::= Super // case 491: break; // // Rule 492: TypeParametersopt ::= // case 492: btParser.setSym1(null); break; // // Rule 493: TypeParametersopt ::= TypeParameters // case 493: break; // // Rule 494: ClassModifiersopt ::= // case 494: { btParser.setSym1(Flags.NONE); break; } // // Rule 495: ClassModifiersopt ::= ClassModifiers // case 495: break; // // Rule 496: Annotationsopt ::= // case 496: btParser.setSym1(null); break; // // Rule 497: Annotationsopt ::= Annotations // case 497: bad_rule = 497; break; // // Rule 498: TypeDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 499: TypeDeclarationsopt ::= TypeDeclarations // case 499: break; // // Rule 500: ImportDeclarationsopt ::= // case 500: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 501: ImportDeclarationsopt ::= ImportDeclarations // case 501: break; // // Rule 502: PackageDeclarationopt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: PackageDeclarationopt ::= PackageDeclaration // case 503: break; // // Rule 504: WildcardBoundsOpt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: WildcardBoundsOpt ::= WildcardBounds // case 505: bad_rule = 505; break; // // Rule 506: AdditionalBoundListopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: AdditionalBoundListopt ::= AdditionalBoundList // case 507: bad_rule = 507; break; // // Rule 508: TypeBoundopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeBoundopt ::= TypeBound // case 509: bad_rule = 509; break; // // Rule 510: TypeArgumentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: TypeArgumentsopt ::= TypeArguments // case 511: bad_rule = 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: bad_rule = 521; break; // // Rule 522: PlaceType ::= activity // case 522: bad_rule = 522; break; // // Rule 523: PlaceType ::= method // case 523: bad_rule = 523; break; // // Rule 524: PlaceType ::= current // case 524: bad_rule = 524; break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: bad_rule = 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); System.out.println("Parser parses X10ArrayType Type [.] as |" + t +"|"); 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 LBRACKET Expression RBRACKET // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(4); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c); btParser.setSym1(nf.NewArray(pos(), a, l)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType LBRACKET RBRACKET ArrayInitializer // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(5); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 0, d)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); System.out.println("parser: Parsed new " + a + " [. " + c + " ]"); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, null)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET Expression // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); System.out.println("parser: Parsed new " + a + " [. " + c + " ]" + d); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, d)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, null)); break; } // // Rule 550: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET Expression // case 550: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, d)); break; } // // Rule 551: ArrayBaseType ::= PrimitiveType // case 551: break; // // Rule 552: ArrayBaseType ::= ClassOrInterfaceType // case 552: break; // // Rule 553: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 553: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); 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 554: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 554: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 555: Statement ::= NowStatement // case 555: break; // // Rule 556: Statement ::= ClockedStatement // case 556: break; // // Rule 557: Statement ::= AsyncStatement // case 557: break; // // Rule 558: Statement ::= AtomicStatement // case 558: break; // // Rule 559: Statement ::= WhenStatement // case 559: break; // // Rule 560: Statement ::= ForEachStatement // case 560: break; // // Rule 561: Statement ::= AtEachStatement // case 561: break; // // Rule 562: Statement ::= FinishStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= NextStatement // case 563: break; // // Rule 564: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 564: break; // // Rule 565: StatementNoShortIf ::= NowStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ClockedStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AsyncStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= AtomicStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= WhenStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= ForEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= AtEachStatementNoShortIf // case 571: break; // // Rule 572: StatementNoShortIf ::= FinishStatementNoShortIf // case 572: break; // // Rule 573: NowStatement ::= now LPAREN Clock RPAREN Statement // case 573: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 574: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 574: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 575: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 575: { 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 576: AsyncStatement ::= async LPAREN here RPAREN Statement // case 576: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 577: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 577: { 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 578: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 578: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 579: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 579: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 580: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 580: { 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 581: ForEachStatement ::= foreach 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.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: AtEachStatement ::= ateach 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.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 583: { 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 584: FinishStatement ::= finish Statement // case 584: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 585: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 585: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 586: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 586: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 587: { 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 588: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 589: { 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 590: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 590: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 591: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 591: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 592: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 592: { 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 593: ForEachStatementNoShortIf ::= foreach 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.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 594: { 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 595: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 595: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 596: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 596: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 597: PlaceExpression ::= here // case 597: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 598: PlaceExpression ::= this // case 598: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 599: PlaceExpression ::= ExpressionName // case 599: { Expr e = (Expr) btParser.getSym(1); btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), e, "place")); break; } // // Rule 600: PlaceExpression ::= ArrayAccess // case 600: bad_rule = 600; break; // // Rule 601: NextStatement ::= next SEMICOLON // case 601: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 602: AwaitStatement ::= await Expression SEMICOLON // case 602: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 603: ClockList ::= Clock // case 603: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 604: ClockList ::= ClockList COMMA Clock // case 604: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 605: Clock ::= identifier // case 605: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 606: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 606: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 607: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 607: { 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 608: RelationalExpression ::= RelationalExpression instanceof Type // case 608: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 609: ExpressionName ::= here // case 609: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 610: Primary ::= FutureExpression // case 610: break; // // Rule 611: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 611: { 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 612: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 612: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 613: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 621: bad_rule = 621; break; // // Rule 622: PlaceTypeSpecifieropt ::= // case 622: btParser.setSym1(null); break; // // Rule 623: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 623: break; // // Rule 624: DepParametersopt ::= // case 624: btParser.setSym1(null); break; // // Rule 625: DepParametersopt ::= DepParameters // case 625: break; // // Rule 626: WhereClauseopt ::= // case 626: btParser.setSym1(null); break; // // Rule 627: WhereClauseopt ::= WhereClause // case 627: break; // // Rule 628: ObjectKindopt ::= // case 628: btParser.setSym1(null); break; // // Rule 629: ObjectKindopt ::= ObjectKind // case 629: break; // // Rule 630: ArrayInitializeropt ::= // case 630: btParser.setSym1(null); break; // // Rule 631: ArrayInitializeropt ::= ArrayInitializer // case 631: break; // // Rule 632: ConcreteDistributionopt ::= // case 632: btParser.setSym1(null); break; // // Rule 633: ConcreteDistributionopt ::= ConcreteDistribution // case 633: break; // // Rule 634: PlaceExpressionSingleListopt ::= // case 634: btParser.setSym1(null); break; // // Rule 635: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 635: break; // // Rule 636: ArgumentListopt ::= // case 636: btParser.setSym1(null); break; // // Rule 637: ArgumentListopt ::= ArgumentList // case 637: break; // // Rule 638: DepParametersopt ::= // case 638: btParser.setSym1(null); break; // // Rule 639: DepParametersopt ::= DepParameters // case 639: break; default: break; } return; }
|
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f14971e321c6a9348df794730cae61aaf3cfbf90/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
15858,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1670,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
6153,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1494,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
1368,
392,
2756,
8863,
7734,
289,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
576,
30,
225,
14488,
559,
493,
33,
16980,
559,
5411,
368,
5411,
648,
576,
30,
7734,
898,
31,
2398,
368,
5411,
368,
6781,
890,
30,
225,
14488,
559,
493,
33,
1250,
5411,
368,
5411,
648,
890,
30,
288,
7734,
10921,
2678,
18,
542,
11901,
21,
12,
82,
74,
18,
15512,
559,
907,
12,
917,
9334,
3742,
18,
5507,
1435,
10019,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
1059,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
15858,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
4202,
2
] |
this.field_225_fcPlcocx = field_225_fcPlcocx;
|
this.field_224_fcPlcocx = field_224_fcPlcocx;
|
public void setFcPlcocx(int field_225_fcPlcocx) { this.field_225_fcPlcocx = field_225_fcPlcocx; }
|
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/944c40af98f9912ed6835ed6cbadaea6cc8815cf/FIBAbstractType.java/clean/src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/definitions/FIBAbstractType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24340,
71,
1749,
71,
504,
92,
12,
474,
652,
67,
22,
2947,
67,
7142,
1749,
71,
504,
92,
13,
565,
288,
3639,
333,
18,
1518,
67,
23622,
67,
7142,
1749,
71,
504,
92,
273,
652,
67,
23622,
67,
7142,
1749,
71,
504,
92,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24340,
71,
1749,
71,
504,
92,
12,
474,
652,
67,
22,
2947,
67,
7142,
1749,
71,
504,
92,
13,
565,
288,
3639,
333,
18,
1518,
67,
23622,
67,
7142,
1749,
71,
504,
92,
273,
652,
67,
23622,
67,
7142,
1749,
71,
504,
92,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rec.origttl = in.readInt();
|
rec.origttl = in.readUnsignedInt();
|
rrFromWire(Name name, int type, int dclass, long ttl, int length, DataByteInputStream in)throws IOException{ SIGRecord rec = new SIGRecord(name, dclass, ttl); if (in == null) return rec; int start = in.getPos(); rec.covered = in.readUnsignedShort(); rec.alg = in.readByte(); rec.labels = in.readByte(); rec.origttl = in.readInt(); rec.expire = new Date(1000 * (long)in.readInt()); rec.timeSigned = new Date(1000 * (long)in.readInt()); rec.footprint = in.readShort(); rec.signer = new Name(in); rec.signature = new byte[length - (in.getPos() - start)]; in.read(rec.signature); return rec;}
|
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/81370f62d73bebd8d1008ff1fe16b14a1b81732c/SIGRecord.java/clean/org/xbill/DNS/SIGRecord.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
8354,
1265,
15249,
12,
461,
508,
16,
509,
618,
16,
509,
302,
1106,
16,
1525,
6337,
16,
509,
769,
16,
202,
282,
1910,
3216,
4348,
316,
13,
15069,
1860,
95,
202,
18513,
2115,
1950,
273,
394,
7004,
2115,
12,
529,
16,
302,
1106,
16,
6337,
1769,
202,
430,
261,
267,
422,
446,
13,
202,
202,
2463,
1950,
31,
202,
474,
787,
273,
316,
18,
588,
1616,
5621,
202,
3927,
18,
16810,
273,
316,
18,
896,
13290,
4897,
5621,
202,
3927,
18,
18413,
273,
316,
18,
896,
3216,
5621,
202,
3927,
18,
5336,
273,
316,
18,
896,
3216,
5621,
202,
3927,
18,
4949,
12546,
273,
316,
18,
896,
1702,
5621,
202,
3927,
18,
14070,
273,
394,
2167,
12,
18088,
380,
261,
5748,
13,
267,
18,
896,
1702,
10663,
202,
3927,
18,
957,
12294,
273,
394,
2167,
12,
18088,
380,
261,
5748,
13,
267,
18,
896,
1702,
10663,
202,
3927,
18,
10923,
1188,
273,
316,
18,
896,
4897,
5621,
202,
3927,
18,
2977,
264,
273,
394,
1770,
12,
267,
1769,
202,
3927,
18,
8195,
273,
394,
1160,
63,
2469,
300,
261,
267,
18,
588,
1616,
1435,
300,
787,
13,
15533,
202,
267,
18,
896,
12,
3927,
18,
8195,
1769,
202,
2463,
1950,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
8354,
1265,
15249,
12,
461,
508,
16,
509,
618,
16,
509,
302,
1106,
16,
1525,
6337,
16,
509,
769,
16,
202,
282,
1910,
3216,
4348,
316,
13,
15069,
1860,
95,
202,
18513,
2115,
1950,
273,
394,
7004,
2115,
12,
529,
16,
302,
1106,
16,
6337,
1769,
202,
430,
261,
267,
422,
446,
13,
202,
202,
2463,
1950,
31,
202,
474,
787,
273,
316,
18,
588,
1616,
5621,
202,
3927,
18,
16810,
273,
316,
18,
896,
13290,
4897,
5621,
202,
3927,
18,
18413,
273,
316,
18,
896,
3216,
5621,
202,
3927,
18,
5336,
273,
316,
18,
896,
3216,
5621,
202,
3927,
18,
4949,
12546,
273,
316,
18,
896,
1702,
5621,
202,
3927,
18,
14070,
273,
394,
2167,
12,
18088,
380,
2
] |
super("project", TemplateMessages.getString("JavaContextType.variable.description.project"), IJavaElement.JAVA_PROJECT);
|
super("enclosing_project", TemplateMessages.getString("JavaContextType.variable.description.enclosing.project"), IJavaElement.JAVA_PROJECT);
|
public Project() { super("project", TemplateMessages.getString("JavaContextType.variable.description.project"), IJavaElement.JAVA_PROJECT); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a0ea2a1a0d113ed52a3e6d8c5d45409afb8d88f0/CompilationUnitContextType.java/buggy/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/CompilationUnitContextType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
5420,
1435,
288,
1082,
202,
9565,
2932,
4406,
3113,
5035,
5058,
18,
588,
780,
2932,
5852,
1042,
559,
18,
6105,
18,
3384,
18,
4406,
6,
3631,
467,
5852,
1046,
18,
27264,
67,
17147,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5420,
1435,
288,
1082,
202,
9565,
2932,
4406,
3113,
5035,
5058,
18,
588,
780,
2932,
5852,
1042,
559,
18,
6105,
18,
3384,
18,
4406,
6,
3631,
467,
5852,
1046,
18,
27264,
67,
17147,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setIcon(EMPTY_ICON);
|
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); if (value instanceof DefaultMutableTreeNode) { boolean used = false; Object userObject = ((DefaultMutableTreeNode)value).getUserObject(); if (userObject instanceof Group) { Group group = (Group)userObject; final String name = group.getName(); setText(name != null ? name : group.getId()); Icon icon = expanded ? group.getOpenIcon() : group.getIcon(); if (icon == null) { icon = expanded ? getOpenIcon() : getClosedIcon(); } setIcon(icon); } else if (userObject instanceof String) { String actionId = (String)userObject; used = ((DefaultListModel)myActionsList.getModel()).lastIndexOf(actionId) >= 0; AnAction action = ActionManager.getInstance().getAction(actionId); setText(action != null ? action.getTemplatePresentation().getText() : actionId); Icon icon = EMPTY_ICON; if (action != null) { Icon actionIcon = action.getTemplatePresentation().getIcon(); if (actionIcon != null) { icon = actionIcon; } } setIcon(icon); } else if (userObject instanceof QuickList) { QuickList list = (QuickList)userObject; setIcon(EMPTY_ICON); setText(list.getDisplayName()); used = ((DefaultListModel)myActionsList.getModel()).lastIndexOf(list.getActionId()) >= 0; } else if (userObject instanceof Separator) { // TODO[vova,anton]: beautify setText("-------------"); setIcon(EMPTY_ICON); } else { throw new IllegalArgumentException("unknown userObject: " + userObject); } if (sel) { setForeground(UIManager.getColor("Tree.selectionForeground")); } else { Color foreground = used ? UIManager.getColor("textInactiveText") : UIManager.getColor("Tree.foreground"); setForeground(foreground); } } return this; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/245da178d413eea24d068084b4127ccf905c25f5/QuickListPanel.java/clean/source/com/intellij/openapi/keymap/impl/ui/QuickListPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5435,
15867,
4020,
6747,
1841,
12,
46,
2471,
2151,
16,
4766,
5375,
1033,
460,
16,
4766,
5375,
1250,
357,
16,
4766,
5375,
1250,
8406,
16,
4766,
5375,
1250,
7839,
16,
4766,
5375,
509,
1027,
16,
4766,
5375,
1250,
711,
9233,
13,
288,
1377,
2240,
18,
588,
2471,
4020,
6747,
1841,
12,
3413,
16,
460,
16,
357,
16,
8406,
16,
7839,
16,
1027,
16,
711,
9233,
1769,
1377,
309,
261,
1132,
1276,
2989,
19536,
12513,
13,
288,
3639,
1250,
1399,
273,
629,
31,
3639,
1033,
729,
921,
273,
14015,
1868,
19536,
12513,
13,
1132,
2934,
588,
1299,
921,
5621,
3639,
309,
261,
1355,
921,
1276,
3756,
13,
288,
1850,
3756,
1041,
273,
261,
1114,
13,
1355,
921,
31,
1850,
727,
514,
508,
273,
1041,
18,
17994,
5621,
1850,
7883,
12,
529,
480,
446,
692,
508,
294,
1041,
18,
26321,
10663,
1850,
16011,
4126,
273,
8406,
692,
1041,
18,
588,
3678,
5554,
1435,
294,
1041,
18,
588,
5554,
5621,
1850,
309,
261,
3950,
422,
446,
13,
288,
5411,
4126,
273,
8406,
692,
29607,
5554,
1435,
294,
1927,
13783,
5554,
5621,
1850,
289,
1850,
21481,
12,
3950,
1769,
3639,
289,
3639,
469,
309,
261,
1355,
921,
1276,
514,
13,
288,
1850,
514,
1301,
548,
273,
261,
780,
13,
1355,
921,
31,
1850,
1399,
273,
14015,
1868,
682,
1488,
13,
4811,
6100,
682,
18,
588,
1488,
1435,
2934,
2722,
31985,
12,
1128,
548,
13,
1545,
374,
31,
1850,
1922,
1803,
1301,
273,
4382,
1318,
18,
588,
1442,
7675,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5435,
15867,
4020,
6747,
1841,
12,
46,
2471,
2151,
16,
4766,
5375,
1033,
460,
16,
4766,
5375,
1250,
357,
16,
4766,
5375,
1250,
8406,
16,
4766,
5375,
1250,
7839,
16,
4766,
5375,
509,
1027,
16,
4766,
5375,
1250,
711,
9233,
13,
288,
1377,
2240,
18,
588,
2471,
4020,
6747,
1841,
12,
3413,
16,
460,
16,
357,
16,
8406,
16,
7839,
16,
1027,
16,
711,
9233,
1769,
1377,
309,
261,
1132,
1276,
2989,
19536,
12513,
13,
288,
3639,
1250,
1399,
273,
629,
31,
3639,
1033,
729,
921,
273,
14015,
1868,
19536,
12513,
13,
1132,
2934,
588,
1299,
921,
5621,
3639,
309,
261,
1355,
921,
1276,
3756,
13,
288,
1850,
3756,
1041,
273,
261,
1114,
13,
1355,
921,
31,
2
] |
|
{ return new String("Catalog"); }
|
{ return new String("Catalog"); }
|
public String getCatalogTerm() throws SQLException { return new String("Catalog"); }
|
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1927,
4392,
4065,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
394,
514,
2932,
9769,
8863,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1927,
4392,
4065,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
394,
514,
2932,
9769,
8863,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
addAlert(state, PERMISSION_POST_MESSAGE);
|
addAlert(state, rb.getString("youdonot3"));
|
public void doSend(RunData runData, Context context) { // access the portlet element id to find our state // %%% use CHEF api instead of Jetspeed to get state String peid = ((JetspeedRunData) runData).getJs_peid(); SessionState state = ((JetspeedRunData) runData).getPortletSessionState(peid); // read in the message input // %%% JANDERSE - The user enters plaintext, but messages are now stored as formatted text; // therefore, the plaintext must be converted to formatted text when it is returned from the browser. String message = runData.getParameters().getCleanString(FORM_MESSAGE); message = FormattedText.convertPlaintextToFormattedText(message); // ignore empty messages if ((message == null) || (message.length() == 0)) return; // deal with the channel not yet existing // TODO: we don't really need to read the channel to post... -ggolden // // TODO: TIMING // if (CurrentService.getInThread("DEBUG") == null) // CurrentService.setInThread("DEBUG", new StringBuffer()); // long startTime = System.currentTimeMillis(); ChatChannel channel = getChannel(state, (String) state.getAttribute(STATE_CHANNEL_REF)); // // TODO: TIMING // long endTime = System.currentTimeMillis(); // if (endTime-startTime > /*5*/000) // { // StringBuffer buf = (StringBuffer) CurrentService.getInThread("DEBUG"); // if (buf != null) // { // buf.insert(0,"ChatAction.doSend: " // + state.getAttribute(STATE_CHANNEL_REF) // + " time: " + (endTime - startTime)); // } // } // post the message if (channel != null) { try { ChatMessageEdit edit = channel.addChatMessage(); edit.setBody(message); channel.commitMessage(edit); } catch (PermissionException e) { addAlert(state, PERMISSION_POST_MESSAGE); } catch (Exception e) // %%% why? { addAlert(state, POST_PROBLEM_MESSAGE); M_log.warn("doSend()", e); } } else { addAlert(state, (String) state.getAttribute(STATE_CHANNEL_PROBLEM)); } } // doSend
|
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/f7519b4a8868ce43dfb2f6750a1dd19306ca2226/ChatAction.java/buggy/chat/chat-tool/tool/src/java/org/sakaiproject/chat/tool/ChatAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3826,
12,
1997,
751,
1086,
751,
16,
1772,
819,
13,
202,
95,
202,
202,
759,
2006,
326,
13114,
930,
612,
358,
1104,
3134,
919,
202,
202,
759,
738,
11438,
999,
14274,
42,
1536,
3560,
434,
804,
2413,
5868,
358,
336,
919,
202,
202,
780,
2804,
350,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
1086,
751,
2934,
588,
8382,
67,
347,
350,
5621,
202,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
1086,
751,
2934,
588,
18566,
2157,
1119,
12,
347,
350,
1769,
202,
202,
759,
855,
316,
326,
883,
810,
202,
202,
759,
738,
11438,
804,
1258,
4179,
1090,
300,
1021,
729,
3281,
414,
11917,
16,
1496,
2743,
854,
2037,
4041,
487,
4955,
977,
31,
202,
202,
759,
13526,
16,
326,
11917,
1297,
506,
5970,
358,
4955,
977,
1347,
518,
353,
2106,
628,
326,
4748,
18,
202,
202,
780,
883,
273,
1086,
751,
18,
588,
2402,
7675,
588,
7605,
780,
12,
4983,
67,
8723,
1769,
202,
202,
2150,
273,
4077,
2344,
1528,
18,
6283,
1749,
10133,
774,
18298,
1528,
12,
2150,
1769,
202,
202,
759,
2305,
1008,
2743,
202,
202,
430,
14015,
2150,
422,
446,
13,
747,
261,
2150,
18,
2469,
1435,
422,
374,
3719,
327,
31,
202,
202,
759,
10490,
598,
326,
1904,
486,
4671,
2062,
202,
202,
759,
2660,
30,
732,
2727,
1404,
8654,
1608,
358,
855,
326,
1904,
358,
1603,
2777,
300,
14253,
1673,
275,
202,
202,
759,
368,
2660,
30,
399,
3445,
1360,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3826,
12,
1997,
751,
1086,
751,
16,
1772,
819,
13,
202,
95,
202,
202,
759,
2006,
326,
13114,
930,
612,
358,
1104,
3134,
919,
202,
202,
759,
738,
11438,
999,
14274,
42,
1536,
3560,
434,
804,
2413,
5868,
358,
336,
919,
202,
202,
780,
2804,
350,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
1086,
751,
2934,
588,
8382,
67,
347,
350,
5621,
202,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
1086,
751,
2934,
588,
18566,
2157,
1119,
12,
347,
350,
1769,
202,
202,
759,
855,
316,
326,
883,
810,
202,
202,
759,
738,
11438,
804,
1258,
4179,
1090,
300,
1021,
729,
3281,
414,
11917,
16,
1496,
2743,
854,
2
] |
StringBuffer tableTemplate = new StringBuffer(defaultTableTemplate + "\n"); List publicFieldsFound = new ArrayList(); List publicMethodsFound = new ArrayList(); getPublicMembers(fixtureClass, publicFieldsFound, publicMethodsFound); addCellsForColumnFixture(tableTemplate, publicFieldsFound, publicMethodsFound); return tableTemplate; }
|
return makeFixtureTemplate(defaultTableTemplate, fixtureClass, ColumnFixture.class); }
|
private StringBuffer makeColumnFixtureTemplate(String defaultTableTemplate, Class fixtureClass) { StringBuffer tableTemplate = new StringBuffer(defaultTableTemplate + "\n"); List publicFieldsFound = new ArrayList(); List publicMethodsFound = new ArrayList(); getPublicMembers(fixtureClass, publicFieldsFound, publicMethodsFound); addCellsForColumnFixture(tableTemplate, publicFieldsFound, publicMethodsFound); return tableTemplate; }
|
47223 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47223/ec2576158a28bfaeeb5879001e3d4802a1e122b1/FixtureTemplateCreator.java/clean/src/fitnesse/FixtureTemplateCreator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6674,
1221,
1494,
26392,
2283,
12,
780,
805,
1388,
2283,
16,
1659,
16678,
797,
13,
202,
95,
202,
202,
780,
1892,
1014,
2283,
273,
394,
6674,
12,
1886,
1388,
2283,
397,
1548,
82,
8863,
202,
202,
682,
1071,
2314,
2043,
273,
394,
2407,
5621,
202,
202,
682,
1071,
4712,
2043,
273,
394,
2407,
5621,
202,
202,
588,
4782,
6918,
12,
904,
10970,
797,
16,
1071,
2314,
2043,
16,
1071,
4712,
2043,
1769,
202,
202,
1289,
10505,
1290,
1494,
26392,
12,
2121,
2283,
16,
1071,
2314,
2043,
16,
1071,
4712,
2043,
1769,
202,
202,
2463,
1014,
2283,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6674,
1221,
1494,
26392,
2283,
12,
780,
805,
1388,
2283,
16,
1659,
16678,
797,
13,
202,
95,
202,
202,
780,
1892,
1014,
2283,
273,
394,
6674,
12,
1886,
1388,
2283,
397,
1548,
82,
8863,
202,
202,
682,
1071,
2314,
2043,
273,
394,
2407,
5621,
202,
202,
682,
1071,
4712,
2043,
273,
394,
2407,
5621,
202,
202,
588,
4782,
6918,
12,
904,
10970,
797,
16,
1071,
2314,
2043,
16,
1071,
4712,
2043,
1769,
202,
202,
1289,
10505,
1290,
1494,
26392,
12,
2121,
2283,
16,
1071,
2314,
2043,
16,
1071,
4712,
2043,
1769,
202,
202,
2463,
1014,
2283,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final Block parent, final Indent indent, XmlFormattingPolicy policy) { final Block firstBlock = subBlocks.get(0); /* if (firstBlock instanceof AbstractBlock && !isTagDescription(((AbstractBlock)firstBlock).getNode()) && (policy.getShouldKeepWhiteSpaces() || policy.keepWhiteSpacesInsideTag(((XmlTagBlock)parent).getTag()))) { return new ReadOnlyBlock(subBlocks, parent, policy, indent); } else { return new SyntheticBlock(subBlocks, parent, indent, policy); } */ return new SyntheticBlock(subBlocks, parent, indent, policy);
|
final Block parent, final Indent indent, XmlFormattingPolicy policy, final Indent childIndent) { return new SyntheticBlock(subBlocks, parent, indent, policy, childIndent);
|
public static Block createSynteticBlock(final List<Block> subBlocks, final Block parent, final Indent indent, XmlFormattingPolicy policy) { final Block firstBlock = subBlocks.get(0); /* if (firstBlock instanceof AbstractBlock && !isTagDescription(((AbstractBlock)firstBlock).getNode()) && (policy.getShouldKeepWhiteSpaces() || policy.keepWhiteSpacesInsideTag(((XmlTagBlock)parent).getTag()))) { return new ReadOnlyBlock(subBlocks, parent, policy, indent); } else { return new SyntheticBlock(subBlocks, parent, indent, policy); } */ return new SyntheticBlock(subBlocks, parent, indent, policy); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/f60ec9ccfb32dfdeb9231297a53181ad9b7e8bc0/AbstractSyntheticBlock.java/buggy/source/com/intellij/psi/formatter/xml/AbstractSyntheticBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3914,
752,
10876,
496,
7943,
1768,
12,
6385,
987,
32,
1768,
34,
720,
6450,
16,
4766,
5375,
727,
3914,
982,
16,
4766,
5375,
727,
28653,
3504,
16,
4766,
5375,
5714,
23974,
2582,
3329,
13,
288,
565,
727,
3914,
1122,
1768,
273,
720,
6450,
18,
588,
12,
20,
1769,
565,
1748,
565,
309,
261,
3645,
1768,
1276,
4115,
1768,
597,
401,
291,
1805,
3291,
12443,
12,
7469,
1768,
13,
3645,
1768,
2934,
588,
907,
10756,
3639,
597,
261,
5086,
18,
588,
14309,
11523,
13407,
12077,
1435,
3639,
747,
3329,
18,
10102,
13407,
12077,
18619,
1805,
12443,
12,
4432,
1805,
1768,
13,
2938,
2934,
588,
1805,
1435,
20349,
288,
1377,
327,
394,
20617,
1768,
12,
1717,
6450,
16,
982,
16,
3329,
16,
3504,
1769,
565,
289,
469,
288,
1377,
327,
394,
16091,
16466,
1768,
12,
1717,
6450,
16,
982,
16,
3504,
16,
3329,
1769,
565,
289,
565,
1195,
565,
327,
394,
16091,
16466,
1768,
12,
1717,
6450,
16,
982,
16,
3504,
16,
3329,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3914,
752,
10876,
496,
7943,
1768,
12,
6385,
987,
32,
1768,
34,
720,
6450,
16,
4766,
5375,
727,
3914,
982,
16,
4766,
5375,
727,
28653,
3504,
16,
4766,
5375,
5714,
23974,
2582,
3329,
13,
288,
565,
727,
3914,
1122,
1768,
273,
720,
6450,
18,
588,
12,
20,
1769,
565,
1748,
565,
309,
261,
3645,
1768,
1276,
4115,
1768,
597,
401,
291,
1805,
3291,
12443,
12,
7469,
1768,
13,
3645,
1768,
2934,
588,
907,
10756,
3639,
597,
261,
5086,
18,
588,
14309,
11523,
13407,
12077,
1435,
3639,
747,
3329,
18,
10102,
13407,
12077,
18619,
1805,
12443,
12,
4432,
1805,
1768,
13,
2938,
2934,
588,
1805,
1435,
20349,
288,
1377,
327,
394,
20617,
1768,
12,
1717,
6450,
16,
2
] |
return null;
|
return null;
|
public Timestamp getTimestamp(int columnIndex) throws SQLException { String s = getString(columnIndex); DateFormat df = DateFormat.getDateInstance(); if (s != null) { try { java.sql.Date d = (java.sql.Date)df.parse(s); return new Timestamp(d.getTime()); } catch (ParseException e) { throw new SQLException("Bad Timestamp Format: " + s); } } return null; // SQL NULL }
|
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/0e583068579748ad528685fa6040636b374177c6/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8159,
11940,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
514,
272,
273,
4997,
12,
2827,
1016,
1769,
565,
18371,
3013,
273,
18371,
18,
588,
1626,
1442,
5621,
3639,
309,
261,
87,
480,
446,
13,
1377,
288,
202,
698,
202,
225,
288,
202,
565,
2252,
18,
4669,
18,
1626,
302,
273,
261,
6290,
18,
4669,
18,
1626,
13,
2180,
18,
2670,
12,
87,
1769,
202,
565,
327,
394,
8159,
12,
72,
18,
588,
950,
10663,
202,
225,
289,
1044,
261,
13047,
425,
13,
288,
202,
565,
604,
394,
6483,
2932,
6434,
8159,
4077,
30,
315,
397,
272,
1769,
202,
225,
289,
1377,
289,
565,
327,
446,
31,
202,
202,
759,
3063,
3206,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8159,
11940,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
514,
272,
273,
4997,
12,
2827,
1016,
1769,
565,
18371,
3013,
273,
18371,
18,
588,
1626,
1442,
5621,
3639,
309,
261,
87,
480,
446,
13,
1377,
288,
202,
698,
202,
225,
288,
202,
565,
2252,
18,
4669,
18,
1626,
302,
273,
261,
6290,
18,
4669,
18,
1626,
13,
2180,
18,
2670,
12,
87,
1769,
202,
565,
327,
394,
8159,
12,
72,
18,
588,
950,
10663,
202,
225,
289,
1044,
261,
13047,
425,
13,
288,
202,
565,
604,
394,
6483,
2932,
6434,
8159,
4077,
30,
315,
397,
272,
1769,
202,
225,
289,
1377,
289,
565,
327,
446,
31,
202,
202,
759,
3063,
3206,
225,
289,
2,
-100,
-100
] |
Node exn = createNewLocal(new Node(Token.VOID));
|
Node exn = createNewLocal(new Node(Token.EMPTY));
|
public Object createTryCatchFinally(Object tryblock, Object catchblocks, Object finallyblock, int lineno) { Node trynode = (Node)tryblock; boolean hasFinally = false; Node finallyNode = null; if (finallyblock != null) { finallyNode = (Node)finallyblock; hasFinally = (finallyNode.getType() != Token.BLOCK || finallyNode.hasChildren()); } // short circuit if (trynode.getType() == Token.BLOCK && !trynode.hasChildren() && !hasFinally) { return trynode; } Node catchNodes = (Node)catchblocks; boolean hasCatch = catchNodes.hasChildren(); // short circuit if (!hasFinally && !hasCatch) { // bc finally might be an empty block... return trynode; } Node pn = new Node(Token.TRY, trynode, lineno); Node finallyTarget = null; if (hasFinally) { // make a TARGET for the finally that the tcf node knows about finallyTarget = new Node(Token.TARGET); pn.putProp(Node.FINALLY_PROP, finallyTarget); // add jsr finally to the try block Node jsrFinally = new Node(Token.JSR); jsrFinally.putProp(Node.TARGET_PROP, finallyTarget); pn.addChildToBack(jsrFinally); } Node endTarget = new Node(Token.TARGET); Node GOTOToEnd = new Node(Token.GOTO); GOTOToEnd.putProp(Node.TARGET_PROP, endTarget); pn.addChildToBack(GOTOToEnd); if (hasCatch) { /* * Given try { throw 3; } catch (e: e instanceof Object) { print("object"); } catch (e2) { print(e2); } rewrite as try { throw 3; } catch (x) { o = newScope(); o.e = x; with (o) { if (e instanceof Object) { print("object"); } } o2 = newScope(); o2.e2 = x; with (o2) { if (true) { print(e2); } } } */ // make a TARGET for the catch that the tcf node knows about Node catchTarget = new Node(Token.TARGET); pn.putProp(Node.TARGET_PROP, catchTarget); // mark it pn.addChildToBack(catchTarget); // get the exception object and store it in a temp Node exn = createNewLocal(new Node(Token.VOID)); pn.addChildToBack(new Node(Token.POP, exn)); Node endCatch = new Node(Token.TARGET); // add [jsr finally?] goto end to each catch block // expects catchNode children to be (cond block) pairs. Node cb = catchNodes.getFirstChild(); while (cb != null) { Node catchStmt = new Node(Token.BLOCK); int catchLineNo = cb.getLineno(); Node name = cb.getFirstChild(); Node cond = name.getNext(); Node catchBlock = cond.getNext(); cb.removeChild(name); cb.removeChild(cond); cb.removeChild(catchBlock); Node newScope = createNewLocal(new Node(Token.NEWSCOPE)); Node initScope = new Node(Token.SETPROP, newScope, Node.newString( name.getString()), createUseLocal(exn)); catchStmt.addChildToBack(new Node(Token.POP, initScope)); catchBlock.addChildToBack(new Node(Token.LEAVEWITH)); Node GOTOToEndCatch = new Node(Token.GOTO); GOTOToEndCatch.putProp(Node.TARGET_PROP, endCatch); catchBlock.addChildToBack(GOTOToEndCatch); Node ifStmt = (Node) createIf(cond, catchBlock, null, catchLineNo); // Try..catch produces "with" code in order to limit // the scope of the exception object. // OPT: We should be able to figure out the correct // scoping at compile-time and avoid the // runtime overhead. Node withStmt = (Node) createWith(createUseLocal(newScope), ifStmt, catchLineNo); catchStmt.addChildToBack(withStmt); pn.addChildToBack(catchStmt); // move to next cb cb = cb.getNext(); } // Generate code to rethrow if no catch clause was executed Node rethrow = new Node(Token.THROW, createUseLocal(exn)); pn.addChildToBack(rethrow); pn.addChildToBack(endCatch); // add a JSR finally if needed if (hasFinally) { Node jsrFinally = new Node(Token.JSR); jsrFinally.putProp(Node.TARGET_PROP, finallyTarget); pn.addChildToBack(jsrFinally); Node GOTO = new Node(Token.GOTO); GOTO.putProp(Node.TARGET_PROP, endTarget); pn.addChildToBack(GOTO); } } if (hasFinally) { pn.addChildToBack(finallyTarget); Node returnTemp = createNewLocal(new Node(Token.VOID)); Node popAndMake = new Node(Token.POP, returnTemp); pn.addChildToBack(popAndMake); pn.addChildToBack(finallyNode); Node ret = createUseLocal(returnTemp); // add the magic prop that makes it output a RET ret.putProp(Node.TARGET_PROP, Boolean.TRUE); pn.addChildToBack(ret); } pn.addChildToBack(endTarget); return pn; }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/807d553c04eb8159dc56447b1a1504dc55853034/IRFactory.java/buggy/js/rhino/src/org/mozilla/javascript/IRFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
752,
7833,
14842,
29987,
12,
921,
775,
2629,
16,
1033,
1044,
7996,
16,
4766,
3639,
1033,
3095,
2629,
16,
509,
7586,
13,
565,
288,
3639,
2029,
775,
2159,
273,
261,
907,
13,
698,
2629,
31,
3639,
1250,
711,
29987,
273,
629,
31,
3639,
2029,
3095,
907,
273,
446,
31,
3639,
309,
261,
23417,
2629,
480,
446,
13,
288,
5411,
3095,
907,
273,
261,
907,
13,
23417,
2629,
31,
5411,
711,
29987,
273,
261,
23417,
907,
18,
588,
559,
1435,
480,
3155,
18,
11403,
12900,
747,
3095,
907,
18,
5332,
4212,
10663,
3639,
289,
3639,
368,
3025,
12937,
3639,
309,
261,
698,
2159,
18,
588,
559,
1435,
422,
3155,
18,
11403,
597,
401,
698,
2159,
18,
5332,
4212,
1435,
5411,
597,
401,
5332,
29987,
13,
3639,
288,
5411,
327,
775,
2159,
31,
3639,
289,
3639,
2029,
1044,
3205,
273,
261,
907,
13,
14683,
7996,
31,
3639,
1250,
711,
14842,
273,
1044,
3205,
18,
5332,
4212,
5621,
3639,
368,
3025,
12937,
3639,
309,
16051,
5332,
29987,
597,
401,
5332,
14842,
13,
225,
288,
5411,
368,
6533,
3095,
4825,
506,
392,
1008,
1203,
2777,
5411,
327,
775,
2159,
31,
3639,
289,
3639,
2029,
11059,
273,
394,
2029,
12,
1345,
18,
17805,
16,
775,
2159,
16,
7586,
1769,
3639,
2029,
3095,
2326,
273,
446,
31,
3639,
309,
261,
5332,
29987,
13,
288,
5411,
368,
1221,
279,
16964,
364,
326,
3095,
716,
326,
1715,
74,
756,
21739,
2973,
5411,
3095,
2326,
273,
394,
2029,
12,
1345,
18,
16374,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
752,
7833,
14842,
29987,
12,
921,
775,
2629,
16,
1033,
1044,
7996,
16,
4766,
3639,
1033,
3095,
2629,
16,
509,
7586,
13,
565,
288,
3639,
2029,
775,
2159,
273,
261,
907,
13,
698,
2629,
31,
3639,
1250,
711,
29987,
273,
629,
31,
3639,
2029,
3095,
907,
273,
446,
31,
3639,
309,
261,
23417,
2629,
480,
446,
13,
288,
5411,
3095,
907,
273,
261,
907,
13,
23417,
2629,
31,
5411,
711,
29987,
273,
261,
23417,
907,
18,
588,
559,
1435,
480,
3155,
18,
11403,
12900,
747,
3095,
907,
18,
5332,
4212,
10663,
3639,
289,
3639,
368,
3025,
12937,
3639,
309,
261,
698,
2159,
18,
588,
559,
1435,
422,
3155,
18,
11403,
597,
401,
698,
2159,
18,
5332,
2
] |
MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin();
|
MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin();
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3359,
1305,
12,
54,
10340,
548,
508,
16,
509,
1158,
338,
13,
288,
202,
202,
430,
261,
2211,
422,
4170,
10340,
7675,
588,
4818,
7675,
588,
921,
797,
10756,
288,
1082,
202,
588,
54,
10340,
7675,
8869,
12,
24,
1769,
202,
202,
97,
202,
202,
1305,
907,
1417,
273,
1623,
1305,
12,
529,
1769,
202,
202,
54,
10340,
3120,
4026,
273,
1417,
18,
588,
1305,
7571,
5621,
202,
202,
430,
261,
3432,
422,
446,
597,
353,
3120,
10756,
288,
1082,
202,
3432,
273,
4170,
10340,
7675,
588,
4818,
7675,
588,
921,
797,
7675,
3072,
1305,
12,
529,
1769,
1082,
202,
10012,
273,
1417,
18,
588,
1305,
7571,
5621,
202,
202,
97,
202,
202,
430,
261,
3432,
422,
446,
13,
288,
202,
202,
97,
202,
202,
430,
261,
3432,
18,
588,
2279,
338,
1435,
480,
1158,
338,
13,
288,
1082,
202,
430,
261,
2211,
422,
4026,
13,
288,
9506,
202,
3432,
18,
542,
2279,
338,
12,
2135,
338,
1769,
1082,
202,
97,
469,
288,
9506,
202,
1289,
1305,
12,
529,
16,
394,
2029,
1733,
12,
588,
54,
10340,
1435,
2934,
2704,
62,
8051,
9334,
1158,
338,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3359,
1305,
12,
54,
10340,
548,
508,
16,
509,
1158,
338,
13,
288,
202,
202,
430,
261,
2211,
422,
4170,
10340,
7675,
588,
4818,
7675,
588,
921,
797,
10756,
288,
1082,
202,
588,
54,
10340,
7675,
8869,
12,
24,
1769,
202,
202,
97,
202,
202,
1305,
907,
1417,
273,
1623,
1305,
12,
529,
1769,
202,
202,
54,
10340,
3120,
4026,
273,
1417,
18,
588,
1305,
7571,
5621,
202,
202,
430,
261,
3432,
422,
446,
597,
353,
3120,
10756,
288,
1082,
202,
3432,
273,
4170,
10340,
7675,
588,
4818,
7675,
588,
921,
797,
7675,
3072,
1305,
12,
529,
1769,
1082,
202,
10012,
273,
1417,
18,
588,
1305,
7571,
5621,
202,
202,
97,
202,
202,
430,
261,
2
] |
m_anticipator.anticipateEvent(node1.createDownEvent()); m_anticipator.anticipateEvent(icmpService.createDownEvent());
|
anticipateDown(node1); anticipateDown(icmpService);
|
public void testInterfaceReparented() { m_pollerConfig.setNodeOutageProcessingEnabled(true); MockNode node1 = m_network.getNode(1); MockNode node2 = m_network.getNode(2); MockInterface node1Iface = m_network.getInterface(1, "192.168.1.1"); MockInterface reparentedIface = m_network.getInterface(1, "192.168.1.2"); MockInterface node2Iface = m_network.getInterface(2, "192.168.1.3"); Event reparentEvent = MockUtil.createReparentEvent("Test", "192.168.1.2", 1, 2); // we are going to repart to node 2 so when we bring down its only // current interface we expect an interface down not the whole node. anticipateDown(node2Iface); startDaemons(); // move the reparted interface and send a reparted event reparentedIface.moveTo(node2); m_eventMgr.sendEventToListeners(reparentEvent); // now bring down the other interface on the new node // System.err.println("Bring Down:"+node2Iface); node2Iface.bringDown(); verifyAnticipated(2000); // FIXME: the event below is the CORRECT answer but the Poller isn't // doing that. I'm going to test for the INCORRECT answer so I can tell if I // change the behavior during refactoring. We now bring down the reparented // interface and we should get node2 down // m_anticipator.reset(); // m_anticipator.anticipateEvent(node2.createDownEvent()); // Critical service on the reparented interface MockService icmpService = m_network.getService(2, "192.168.1.2", "ICMP"); resetAnticipated(); m_anticipator.anticipateEvent(node1.createDownEvent()); m_anticipator.anticipateEvent(icmpService.createDownEvent()); // FIXME: END INCORRECT BEHAVIOR HERE // System.err.println("Bring Down:"+reparentedIface); reparentedIface.bringDown(); sleep(5000); verifyAnticipated(3000); }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/1b7e71797635707c6240118505031a07f85bb533/PollerTest.java/buggy/src/services/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,
588,
907,
12,
21,
1769,
3639,
7867,
907,
756,
22,
273,
312,
67,
5185,
18,
588,
907,
12,
22,
1769,
3639,
7867,
1358,
756,
21,
45,
865,
273,
312,
67,
5185,
18,
588,
1358,
12,
21,
16,
315,
15561,
18,
23329,
18,
21,
18,
21,
8863,
3639,
7867,
1358,
2071,
817,
329,
45,
865,
273,
312,
67,
5185,
18,
588,
1358,
12,
21,
16,
315,
15561,
18,
23329,
18,
21,
18,
22,
8863,
3639,
7867,
1358,
756,
22,
45,
865,
273,
312,
67,
5185,
18,
588,
1358,
12,
22,
16,
315,
15561,
18,
23329,
18,
21,
18,
23,
8863,
7734,
2587,
2071,
817,
1133,
273,
7867,
1304,
18,
2640,
426,
2938,
1133,
2932,
4709,
3113,
315,
15561,
18,
23329,
18,
21,
18,
22,
3113,
404,
16,
576,
1769,
3639,
368,
732,
854,
8554,
358,
2071,
485,
358,
756,
576,
1427,
1347,
732,
5186,
310,
2588,
2097,
1338,
3639,
368,
783,
1560,
732,
4489,
392,
1560,
2588,
486,
326,
7339,
756,
18,
3639,
17841,
24629,
340,
4164,
12,
2159,
22,
45,
865,
1769,
3639,
787,
12858,
87,
5621,
3639,
368,
3635,
326,
2071,
485,
329,
1560,
471,
1366,
279,
2071,
485,
329,
871,
3639,
2071,
817,
329,
45,
865,
18,
8501,
774,
12,
2159,
22,
1769,
3639,
312,
67,
2575,
9455,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
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,
588,
907,
12,
21,
1769,
3639,
7867,
907,
756,
22,
273,
312,
67,
5185,
18,
588,
907,
12,
22,
1769,
3639,
7867,
1358,
756,
21,
45,
865,
273,
312,
67,
5185,
18,
588,
1358,
12,
21,
16,
315,
15561,
18,
23329,
18,
21,
18,
21,
8863,
3639,
7867,
1358,
2071,
817,
329,
45,
865,
273,
312,
67,
5185,
18,
588,
1358,
12,
21,
16,
315,
15561,
18,
23329,
18,
21,
18,
22,
8863,
3639,
7867,
1358,
756,
22,
45,
865,
273,
312,
67,
2
] |
public TransactionTimer(SIPServerTransaction myTransaction) { this.myTransaction = myTransaction; this.sipStack = myTransaction.sipStack; }
|
public TransactionTimer() { if (sipStack.logWriter.isLoggingEnabled()) { sipStack.logWriter.logDebug("TransactionTimer() : " + getTransactionId()); } }
|
public TransactionTimer(SIPServerTransaction myTransaction) { this.myTransaction = myTransaction; this.sipStack = myTransaction.sipStack; }
|
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/SIPServerTransaction.java/clean/trunk/src/gov/nist/javax/sip/stack/SIPServerTransaction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
5947,
6777,
12,
17739,
2081,
3342,
3399,
3342,
13,
288,
5411,
333,
18,
4811,
3342,
273,
3399,
3342,
31,
5411,
333,
18,
28477,
2624,
273,
3399,
3342,
18,
28477,
2624,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5947,
6777,
12,
17739,
2081,
3342,
3399,
3342,
13,
288,
5411,
333,
18,
4811,
3342,
273,
3399,
3342,
31,
5411,
333,
18,
28477,
2624,
273,
3399,
3342,
18,
28477,
2624,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Query query = new Query(nutchConf);
|
Query query = new Query(conf);
|
public void testProhibitedTerm() throws Exception { Query query = new Query(nutchConf); query.addProhibitedTerm("bobo"); testQuery(query, "-bobo"); }
|
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/TestQuery.java/buggy/src/test/org/apache/nutch/searcher/TestQuery.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
626,
29993,
4065,
1435,
1216,
1185,
288,
565,
2770,
843,
273,
394,
2770,
12,
3923,
1769,
565,
843,
18,
1289,
626,
29993,
4065,
2932,
70,
947,
83,
8863,
565,
1842,
1138,
12,
2271,
16,
3701,
70,
947,
83,
8863,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
626,
29993,
4065,
1435,
1216,
1185,
288,
565,
2770,
843,
273,
394,
2770,
12,
3923,
1769,
565,
843,
18,
1289,
626,
29993,
4065,
2932,
70,
947,
83,
8863,
565,
1842,
1138,
12,
2271,
16,
3701,
70,
947,
83,
8863,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new PainterException("wrong arguments");
|
throw new PainterException("length: wrong arguments");
|
protected HashMap constructSystemDict() { HashMap systemDict = new HashMap(); // newpath systemDict.put("newpath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.newpath(); } }); // moveto systemDict.put("moveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.moveto(data[0], data[1]); } }); // rmoveto systemDict.put("rmoveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rmoveto(data[0], data[1]); } }); // lineto systemDict.put("lineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.lineto(data[0], data[1]); } }); // rlineto systemDict.put("rlineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rlineto(data[0], data[1]); } }); // arc systemDict.put("arc", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arc(data[0], data[1], data[2], data[3], data[4]); } }); // arcn systemDict.put("arcn", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arcn(data[0], data[1], data[2], data[3], data[4]); } }); // curveto systemDict.put("curveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.curveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // rcurveto systemDict.put("rcurveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.rcurveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // closepath systemDict.put("closepath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.closepath(); } }); // gsave systemDict.put("gsave", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.gsave(); } }); // grestore systemDict.put("grestore", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.grestore(); } }); // translate systemDict.put("translate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.translate(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } AffineTransform at = new AffineTransform(); at.translate( ( (Number) data[0]).doubleValue(), ( (Number) data[1]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // rotate systemDict.put("rotate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(1); at.rotate(data[0] * Math.PI / 180.0d); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; AffineTransform at = new AffineTransform(); data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[1]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } at.rotate( ( (Number) data[0]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // scale systemDict.put("scale", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.scale(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } entries[0] = ( (Number) data[0]).doubleValue(); entries[1] = 0.0d; entries[2] = 0.0d; entries[3] = ( (Number) data[1]).doubleValue(); entries[4] = 0.0d; entries[5] = 0.0d; for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // stroke systemDict.put("stroke", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.stroke(); } }); // fill systemDict.put("fill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.fill(); } }); // eofill systemDict.put("eofill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.eofill(); } }); // show systemDict.put("show", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } context.pencil.show( (String) data[0]); } }); // stringwidth systemDict.put("stringwidth", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; float[] result; Font font; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } font = context.pencil.graphics.getFont(); Rectangle2D rect = font.getStringBounds( (String) data[0], context.pencil.graphics. getFontRenderContext()); context.operands.push(new Float(rect.getWidth())); context.operands.push(new Float(rect.getHeight())); } }); // showpage systemDict.put("showpage", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.showpage(); } }); // findfont systemDict.put("findfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push(context.pencil.findFont( (String) patoken.value)); } }); // scalefont systemDict.put("scalefont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Font)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (Font) data[0]).deriveFont( ( (Number) data[1]). floatValue())); } }); // setfont systemDict.put("setfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Font)) { throw new PainterException("wrong arguments"); } context.pencil.graphics.setFont( (Font) data[0]); } }); // def systemDict.put("def", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } try { ( (HashMap) context.dictionaries.peek()).put(patoken.value, data[1]); } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } }); // bind systemDict.put("bind", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } context.engine.bindProcedure(patoken); context.operands.push(patoken); } }); // mul systemDict.put("mul", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] * data[1])); } }); // div systemDict.put("div", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] / data[1])); } }); // mod systemDict.put("mod", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); int a, b, m; a = (int) data[0]; b = (int) data[1]; m = a % b; context.operands.push(new Integer(m)); } }); // add systemDict.put("add", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] + data[1])); } }); // neg systemDict.put("neg", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double( -data[0])); } }); // sub systemDict.put("sub", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] - data[1])); } }); // atan systemDict.put("atan", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(Math.atan2(data[0], data[1]))); } }); // sin systemDict.put("sin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sin(data[0] * Math.PI / 180.0))); } }); // cos systemDict.put("cos", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.cos(data[0] * Math.PI / 180.0))); } }); // sqrt systemDict.put("sqrt", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sqrt(data[0]))); } }); // exch systemDict.put("exch", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); context.operands.push(data[1]); context.operands.push(data[0]); } }); // dup systemDict.put("dup", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); context.operands.push(data[0]); context.operands.push(data[0]); } }); // roll systemDict.put("roll", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; Object rollData[]; data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } int numberOfElements, numberOfPositions, i; numberOfElements = ( (Number) data[0]).intValue(); numberOfPositions = ( (Number) data[1]).intValue(); if (numberOfPositions == 0 || numberOfElements <= 0) { return; } rollData = context.popOperands(numberOfElements); if (numberOfPositions < 0) { numberOfPositions = -numberOfPositions; numberOfPositions = numberOfPositions % numberOfElements; // downward roll for (i = numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfPositions; i++) { context.operands.push(rollData[i]); } } else { numberOfPositions = numberOfPositions % numberOfElements; // upward roll for (i = numberOfElements - numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfElements - numberOfPositions; i++) { context.operands.push(rollData[i]); } } } }); // pop systemDict.put("pop", new PACommand() { public void execute(PAContext context) throws PainterException { context.popOperands(1); } }); // index systemDict.put("index", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } int index = ( (Number) data[0]).intValue(); try { context.operands.push(context.operands.elementAt(index)); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } }); // mark systemDict.put("mark", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new PAToken(null, PAToken.MARK)); } }); // cleartomark systemDict.put("cleartomark", new PACommand() { public void execute(PAContext context) throws PainterException { Object data; boolean finished = false; while (!finished) { try { data = context.operands.pop(); if (data instanceof PAToken) { if ( ( (PAToken) data).type == PAToken.MARK) { finished = true; } } } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } } }); // copy systemDict.put("copy", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); // decide if it's a simple copy or a composite object copy if ( (data[0] instanceof PAToken) && (data[1] instanceof PAToken)) { // composite object copy if ( ( (PAToken) data[0]).type == ( (PAToken) data[1]).type) { // our tokens are immutable so a copy is easy context.operands.push(data[0]); context.operands.push(data[0]); } else { throw new PainterException( "copy operation failed because composite objects on stack are not of same type"); } } else { // restore first arg, we're not interested in it in this simple case context.operands.push(data[0]); if (data[1] instanceof Number) { int index = ( (Number) data[1]).intValue(); int i, n; n = context.operands.size(); Object[] copyData = new Object[index]; for (i = n - index; i < n; i++) { try { copyData[i - n + index] = context.operands.elementAt(i); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } for (i = 0; i < index; i++) { context.operands.push(copyData[i]); } } else { throw new PainterException("I expect a number on stack, dude"); } } } }); // setgray systemDict.put("setgray", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.pencil.graphics.setPaint(new Color( (float) data[0], (float) data[0], (float) data[0])); } }); // setrgbcolor systemDict.put("setrgbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): color stuff still shaky // sethsbcolor systemDict.put("sethsbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): I have to convert these puppies myself to rgb ? // setcmykcolor systemDict.put("setcmykcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; int rd, gr, bl; data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); } }); // setlinewidth systemDict.put("setlinewidth", new PACommand() { private double minLineWidth(double w, AffineTransform at) { double matrix[] = new double[4]; at.getMatrix(matrix); double scale = matrix[0] * matrix[3] - matrix[1] * matrix[2]; double minlw = .25 / Math.sqrt(Math.abs(scale)); if (w < minlw) { w = minlw; } return w; } public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); data[0] = this.minLineWidth(data[0], context.pencil.graphics.getTransform()); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( (float) data[0], ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke( (float) data[0], BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setlinecap systemDict.put("setlinecap", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), (int) data[0], ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, (int) data[0], BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setmiterlimit systemDict.put("setmiterlimit", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), (float) data[0], ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, (float) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // setdash systemDict.put("setdash", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke); } }); // setlinejoin systemDict.put("setlinejoin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), (int) data[0], ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, (int) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // dumpstack systemDict.put("dumpstack", new PACommand() { public void execute(PAContext context) throws PainterException { Enumeration enumx = context.operands.elements(); System.out.println("-------------Stack--------------"); while (enumx.hasMoreElements()) { System.out.println(enumx.nextElement()); } System.out.println("--------------------------------"); } }); // for systemDict.put("for", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(4); if (! (data[3] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[3]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } int i0, i1, i2; i0 = ( (Number) data[0]).intValue(); i1 = ( (Number) data[1]).intValue(); i2 = ( (Number) data[2]).intValue(); if (i1 > 0) { for (int i = i0; i <= i2; i += i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } else { for (int i = i0; i >= i2; i -= i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } } }); // repeat systemDict.put("repeat", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); } } }); // true systemDict.put("true", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(true)); } }); // false systemDict.put("false", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(false)); } }); // lt systemDict.put("lt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 < d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) < 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // gt systemDict.put("gt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 > d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) > 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // ne systemDict.put("ne", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 != d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.equals(s1)) { context.operands.push(new Boolean(false)); } else { context.operands.push(new Boolean(true)); } } } }); // eq systemDict.put("eq", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 == d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) == 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // if systemDict.put("if", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof Boolean)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken); } } }); // ifelse systemDict.put("ifelse", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken1, patoken2; data = context.popOperands(3); if (! (data[0] instanceof Boolean)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken1 = (PAToken) data[1]; patoken2 = (PAToken) data[2]; if (! (patoken1.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if (! (patoken2.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken1); } else { context.engine.process(patoken2); } } }); // dict systemDict.put("dict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap()); } }); // userdict systemDict.put("userdict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap()); } }); // put systemDict.put("put", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(3); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } ( (HashMap) data[0]).put(patoken.value, data[2]); } }); // get systemDict.put("get", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap) && ! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof HashMap) { if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (HashMap) data[0]).get(patoken.value)); } else if (data[0] instanceof ArrayList) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (ArrayList) data[0]).get( ( (Number) data[1]). intValue())); } } }); // load systemDict.put("load", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push(context.findIdentifier(patoken.value)); } }); // length systemDict.put("length", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; int size = 0; data = context.popOperands(1); if (data[0] instanceof PAToken) { patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } size = ( (String) patoken.value).length(); } else if (data[0] instanceof HashMap) { size = ( (HashMap) data[0]).size(); } else if (data[0] instanceof ArrayList) { size = ( (ArrayList) data[0]).size(); } else if (data[0] instanceof String) { size = ( (String) data[0]).length(); } else { throw new PainterException("wrong arguments"); } context.operands.push(new Integer(size)); } }); // begin systemDict.put("begin", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } context.dictionaries.push(data[0]); } }); // end systemDict.put("end", new PACommand() { public void execute(PAContext context) throws PainterException { try { context.dictionaries.pop(); } catch (EmptyStackException e) { throw new PainterException("Dictionary stack is empty"); } } }); // undef systemDict.put("undef", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } // we don't do an actual undef because we don't care } }); // known systemDict.put("known", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findIdentifier(patoken.value); if (foundObject != null) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // where systemDict.put("where", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // aload systemDict.put("aload", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; data = context.popOperands(1); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); } context.operands.push(data[0]); } }); // forall systemDict.put("forall", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); context.engine.process(patoken); } } }); // currentflat PENDING(uweh):placeholder for now systemDict.put("currentflat", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Float(1.0f)); } }); // setflat PENDING(uweh):placeholder for now systemDict.put("setflat", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); } }); // round systemDict.put("round", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Long(Math.round(data[0]))); } }); // abs systemDict.put("abs", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.abs(data[0]))); } }); // transform systemDict.put("transform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); at.transform(data, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; at.transform(numberdata, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // itransform systemDict.put("itransform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); try { at.inverseTransform(data, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; try { at.inverseTransform(numberdata, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // currentpoint // PENDING(uweh): what about CTM, same thing when you construct path // this is different than ps, might not work in a few instances systemDict.put("currentpoint", new PACommand() { public void execute(PAContext context) throws PainterException { Point2D currentPoint = context.pencil.state.path.getCurrentPoint(); context.operands.push(new Double(currentPoint.getX())); context.operands.push(new Double(currentPoint.getY())); } }); // clippath systemDict.put("clippath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.clippath(); } }); // matrix systemDict.put("matrix", new PACommand() { public void execute(PAContext context) throws PainterException { ArrayList identityMatrix = new ArrayList(6); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); context.operands.push(identityMatrix); } }); // concatmatrix systemDict.put("concatmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList arrayOne, arrayTwo, arrayThree; AffineTransform atOne, atTwo; arrayOne = (ArrayList) data[0]; arrayTwo = (ArrayList) data[1]; arrayThree = (ArrayList) data[2]; double[] entries = new double[6]; if (! (arrayOne.size() == 6)) { throw new PainterException("wrong arguments"); } if (! (arrayTwo.size() == 6)) { throw new PainterException("wrong arguments"); } if (! (arrayThree.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayOne.get(i)).doubleValue(); } atOne = new AffineTransform(entries); for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayTwo.get(i)).doubleValue(); } atTwo = new AffineTransform(entries); atOne.concatenate(atTwo); atOne.getMatrix(entries); for (int i = 0; i < 6; i++) { arrayThree.set(i, new Double(entries[i])); } context.operands.push(arrayThree); } }); // pathbbox systemDict.put("pathbbox", new PACommand() { public void execute(PAContext context) throws PainterException { Rectangle2D pathBounds = context.pencil.state.path.getBounds2D(); context.operands.push(new Double(pathBounds.getMinX())); context.operands.push(new Double(pathBounds.getMinY())); context.operands.push(new Double(pathBounds.getMaxX())); context.operands.push(new Double(pathBounds.getMaxY())); } }); // truncate systemDict.put("truncate", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; double truncated; data = context.popNumberOperands(1); if (data[0] < 0) { truncated = Math.ceil(data[0]); } else { truncated = Math.floor(data[0]); } context.operands.push(new Double(truncated)); } }); // rand systemDict.put("rand", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Integer(randomNumberGenerator.nextInt(231))); } }); // srand systemDict.put("srand", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); randomNumberGenerator = new Random(Math.round(data[0])); } }); // cvi systemDict.put("cvi", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Integer(d)); } else { String s; s = (String) data[0]; context.operands.push(new Integer(s)); } } }); // usertime systemDict.put("usertime", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Long(System.currentTimeMillis())); } });// save systemDict.put("save", new PACommand() { public void execute(PAContext context) throws PainterException { // context.operands.push(new Long(System.currentTimeMillis())); } });// restore systemDict.put("restore", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } });// clear systemDict.put("clear", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } });// cleardictstack systemDict.put("cleardictstack", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } }); // charpath systemDict.put("charpath", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Boolean)) { throw new PainterException("wrong arguments"); } context.pencil.charpath( (String) data[0], ( (Boolean) data[1]).booleanValue()); } }); // PENDING(uweh): we only support procedure right now and always push false on the stack // stopped systemDict.put("stopped", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } context.engine.process(patoken); context.operands.push(new Boolean(false)); } }); return systemDict; }
|
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/08b9cb86387ddf1aef04a5e5fe9279f80315eadf/PAContext.java/clean/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4317,
4872,
3163,
5014,
1435,
288,
565,
4317,
2619,
5014,
273,
394,
4317,
5621,
565,
368,
25094,
565,
2619,
5014,
18,
458,
2932,
2704,
803,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
819,
18,
84,
21620,
18,
2704,
803,
5621,
1377,
289,
565,
15549,
565,
368,
5730,
11453,
565,
2619,
5014,
18,
458,
2932,
81,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
81,
1527,
11453,
12,
892,
63,
20,
6487,
501,
63,
21,
19226,
1377,
289,
565,
15549,
565,
368,
6692,
1527,
11453,
565,
2619,
5014,
18,
458,
2932,
8864,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
8864,
1527,
11453,
12,
892,
63,
20,
6487,
501,
63,
21,
19226,
1377,
289,
565,
15549,
565,
368,
4739,
11453,
565,
2619,
5014,
18,
458,
2932,
7511,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4317,
4872,
3163,
5014,
1435,
288,
565,
4317,
2619,
5014,
273,
394,
4317,
5621,
565,
368,
25094,
565,
2619,
5014,
18,
458,
2932,
2704,
803,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
819,
18,
84,
21620,
18,
2704,
803,
5621,
1377,
289,
565,
15549,
565,
368,
5730,
11453,
565,
2619,
5014,
18,
458,
2932,
81,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
81,
1527,
11453,
2
] |
sink.addTestSuite(documentimportnode03.class);
|
public static Test suite() { TestSuite sink= new TestSuite(); // sink.addTestSuite(attrgetownerelement01.class); sink.addTestSuite(attrgetownerelement02.class); sink.addTestSuite(attrgetownerelement03.class); // sink.addTestSuite(attrgetownerelement04.class); sink.addTestSuite(attrgetownerelement05.class); sink.addTestSuite(documentcreateattributeNS01.class); sink.addTestSuite(documentcreateattributeNS02.class); sink.addTestSuite(documentcreateattributeNS03.class); sink.addTestSuite(documentcreateattributeNS04.class); sink.addTestSuite(documentcreateattributeNS05.class); sink.addTestSuite(documentcreateattributeNS06.class); sink.addTestSuite(documentcreateattributeNS07.class); sink.addTestSuite(documentcreateelementNS01.class); sink.addTestSuite(documentcreateelementNS02.class); sink.addTestSuite(documentcreateelementNS05.class); sink.addTestSuite(documentcreateelementNS06.class); sink.addTestSuite(domimplementationcreatedocument03.class); sink.addTestSuite(domimplementationcreatedocument04.class); sink.addTestSuite(domimplementationcreatedocument05.class); sink.addTestSuite(domimplementationcreatedocument07.class); sink.addTestSuite(domimplementationcreatedocumenttype02.class); sink.addTestSuite(domimplementationcreatedocumenttype04.class); sink.addTestSuite(domimplementationhasfeature01.class); sink.addTestSuite(domimplementationhasfeature02.class); // sink.addTestSuite(documentgetelementbyid01.class); sink.addTestSuite(documentgetelementsbytagnameNS01.class); sink.addTestSuite(documentgetelementsbytagnameNS02.class); sink.addTestSuite(documentgetelementsbytagnameNS03.class); sink.addTestSuite(documentgetelementsbytagnameNS04.class); sink.addTestSuite(documentgetelementsbytagnameNS05.class); sink.addTestSuite(documentimportnode01.class); // sink.addTestSuite(documentimportnode02.class); sink.addTestSuite(documentimportnode03.class); // sink.addTestSuite(documentimportnode04.class); sink.addTestSuite(documentimportnode05.class); sink.addTestSuite(documentimportnode06.class); // sink.addTestSuite(documentimportnode07.class); sink.addTestSuite(documentimportnode08.class); sink.addTestSuite(documentimportnode09.class); // sink.addTestSuite(documentimportnode10.class); sink.addTestSuite(documentimportnode11.class); sink.addTestSuite(documentimportnode12.class); sink.addTestSuite(documentimportnode13.class); sink.addTestSuite(documentimportnode14.class); sink.addTestSuite(documentimportnode15.class); sink.addTestSuite(documentimportnode17.class); sink.addTestSuite(documentimportnode18.class); // sink.addTestSuite(documentimportnode19.class); // sink.addTestSuite(documentimportnode20.class); // sink.addTestSuite(documentimportnode21.class); // sink.addTestSuite(documentimportnode22.class); // sink.addTestSuite(documenttypeinternalSubset01.class); // sink.addTestSuite(documenttypepublicid01.class); // sink.addTestSuite(documenttypesystemid01.class); sink.addTestSuite(elementgetattributens02.class); sink.addTestSuite(elementgetattributenodens01.class); sink.addTestSuite(elementgetattributenodens02.class); sink.addTestSuite(elementgetattributenodens03.class); sink.addTestSuite(elementgetelementsbytagnamens02.class); sink.addTestSuite(elementgetelementsbytagnamens04.class); sink.addTestSuite(elementgetelementsbytagnamens05.class); sink.addTestSuite(elementhasattribute01.class); sink.addTestSuite(elementhasattribute02.class); sink.addTestSuite(elementhasattribute03.class); sink.addTestSuite(elementhasattribute04.class); sink.addTestSuite(elementhasattributens01.class); sink.addTestSuite(elementhasattributens02.class); sink.addTestSuite(elementhasattributens03.class); sink.addTestSuite(elementremoveattributens01.class); sink.addTestSuite(elementsetattributens01.class); sink.addTestSuite(elementsetattributens02.class); sink.addTestSuite(elementsetattributens03.class); sink.addTestSuite(elementsetattributens04.class); sink.addTestSuite(elementsetattributens05.class); sink.addTestSuite(elementsetattributens08.class); sink.addTestSuite(elementsetattributenodens01.class); sink.addTestSuite(elementsetattributenodens02.class); sink.addTestSuite(elementsetattributenodens03.class); sink.addTestSuite(elementsetattributenodens04.class); sink.addTestSuite(elementsetattributenodens05.class); sink.addTestSuite(elementsetattributenodens06.class); sink.addTestSuite(namednodemapgetnameditemns01.class); sink.addTestSuite(namednodemapgetnameditemns02.class); sink.addTestSuite(namednodemapgetnameditemns03.class); sink.addTestSuite(namednodemapgetnameditemns04.class); sink.addTestSuite(namednodemapgetnameditemns05.class); sink.addTestSuite(namednodemapgetnameditemns06.class); sink.addTestSuite(namednodemapsetnameditemns01.class); sink.addTestSuite(namednodemapsetnameditemns02.class); sink.addTestSuite(namednodemapsetnameditemns03.class); sink.addTestSuite(namednodemapsetnameditemns04.class); sink.addTestSuite(namednodemapsetnameditemns05.class); sink.addTestSuite(namednodemapsetnameditemns06.class); sink.addTestSuite(namednodemapsetnameditemns07.class); sink.addTestSuite(namednodemapsetnameditemns08.class); sink.addTestSuite(namednodemapsetnameditemns09.class); sink.addTestSuite(namednodemapsetnameditemns10.class); sink.addTestSuite(namednodemapremovenameditemns01.class); sink.addTestSuite(namednodemapremovenameditemns02.class); sink.addTestSuite(namednodemapremovenameditemns03.class); sink.addTestSuite(namednodemapremovenameditemns04.class); sink.addTestSuite(namednodemapremovenameditemns05.class); sink.addTestSuite(namednodemapremovenameditemns06.class); sink.addTestSuite(namednodemapremovenameditemns07.class); sink.addTestSuite(namednodemapremovenameditemns08.class); sink.addTestSuite(namednodemapremovenameditemns09.class); sink.addTestSuite(nodegetlocalname03.class); sink.addTestSuite(nodegetnamespaceuri03.class); sink.addTestSuite(nodegetownerdocument01.class); sink.addTestSuite(nodegetownerdocument02.class); sink.addTestSuite(nodegetprefix03.class); sink.addTestSuite(nodesetprefix01.class); sink.addTestSuite(nodesetprefix02.class); sink.addTestSuite(nodesetprefix03.class); sink.addTestSuite(nodesetprefix04.class); sink.addTestSuite(nodesetprefix05.class); sink.addTestSuite(nodesetprefix06.class); sink.addTestSuite(nodesetprefix07.class); sink.addTestSuite(nodesetprefix08.class); sink.addTestSuite(nodesetprefix09.class); sink.addTestSuite(nodehasattributes01.class); sink.addTestSuite(nodehasattributes02.class); sink.addTestSuite(nodehasattributes03.class); sink.addTestSuite(nodehasattributes04.class); sink.addTestSuite(nodeissupported01.class); sink.addTestSuite(nodeissupported02.class); sink.addTestSuite(nodeissupported03.class); sink.addTestSuite(nodeissupported04.class); sink.addTestSuite(nodeissupported05.class); return sink; }
|
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/854ef5fea27ea8024096ec221835d8f83deb7308/ibmtests.java/buggy/v2/test/src/dom/detailed/w3c/ibmtests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
4202,
7766,
13587,
9049,
33,
394,
7766,
13587,
5621,
377,
368,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
1611,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
3103,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
4630,
18,
1106,
1769,
377,
368,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
3028,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
6260,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
1611,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
3103,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
4630,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
3028,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
6260,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
7677,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
8642,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
2956,
3156,
1611,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
2956,
3156,
3103,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
2956,
3156,
6260,
18,
1106,
1769,
1377,
9049,
18,
1289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
4202,
7766,
13587,
9049,
33,
394,
7766,
13587,
5621,
377,
368,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
1611,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
3103,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
4630,
18,
1106,
1769,
377,
368,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
3028,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
1747,
588,
8443,
2956,
6260,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
1611,
18,
1106,
1769,
1377,
9049,
18,
1289,
4709,
13587,
12,
5457,
2640,
4589,
3156,
2
] |
|
logger.finer(sessionEvent.toString());
|
Log.debug(sessionEvent.toString());
|
public void chatMessageReceived(SessionChatEvent sessionEvent) { logger.finer(sessionEvent.toString()); try { Message message = new Message(); message.setTo(gatewaySession.getSessionJID()); message.setBody(sessionEvent.getMessage()); message.setFrom(this.gatewaySession.getGateway().whois(sessionEvent.getFrom())); gatewaySession.getJabberEndpoint().sendPacket(message); } catch (Exception e) { logger.severe("unable to send message: "+ e.getLocalizedMessage()); } }
|
51636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51636/9965e1e02a95a3353ab10a1b613fc995ce3f666c/YahooSessionListener.java/clean/src/plugins/gateway/src/java/org/jivesoftware/wildfire/gateway/protocols/yahoo/YahooSessionListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7916,
1079,
8872,
12,
2157,
14163,
1133,
1339,
1133,
13,
288,
3639,
1827,
18,
4148,
12,
3184,
1133,
18,
10492,
10663,
3639,
775,
288,
5411,
2350,
883,
273,
394,
2350,
5621,
5411,
883,
18,
542,
774,
12,
11127,
2157,
18,
588,
2157,
46,
734,
10663,
5411,
883,
18,
542,
2250,
12,
3184,
1133,
18,
24906,
10663,
5411,
883,
18,
542,
1265,
12,
2211,
18,
11127,
2157,
18,
588,
5197,
7675,
3350,
19606,
12,
3184,
1133,
18,
588,
1265,
1435,
10019,
5411,
6878,
2157,
18,
588,
46,
378,
744,
3293,
7675,
4661,
6667,
12,
2150,
1769,
3639,
289,
3639,
1044,
261,
503,
425,
13,
288,
5411,
1194,
18,
307,
502,
73,
2932,
18828,
358,
1366,
883,
30,
13773,
425,
18,
588,
2042,
1235,
1079,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7916,
1079,
8872,
12,
2157,
14163,
1133,
1339,
1133,
13,
288,
3639,
1827,
18,
4148,
12,
3184,
1133,
18,
10492,
10663,
3639,
775,
288,
5411,
2350,
883,
273,
394,
2350,
5621,
5411,
883,
18,
542,
774,
12,
11127,
2157,
18,
588,
2157,
46,
734,
10663,
5411,
883,
18,
542,
2250,
12,
3184,
1133,
18,
24906,
10663,
5411,
883,
18,
542,
1265,
12,
2211,
18,
11127,
2157,
18,
588,
5197,
7675,
3350,
19606,
12,
3184,
1133,
18,
588,
1265,
1435,
10019,
5411,
6878,
2157,
18,
588,
46,
378,
744,
3293,
7675,
4661,
6667,
12,
2150,
1769,
3639,
289,
3639,
1044,
261,
503,
425,
13,
288,
5411,
1194,
18,
307,
502,
73,
2932,
18828,
358,
1366,
883,
30,
2
] |
public void deregisterWebWindow( final WebWindow webWindow ) { Assert.notNull("webWindow", webWindow); webWindows_.remove(webWindow); if( currentWindow_ == webWindow ) { if( webWindows_.size() == 0 ) { // Create a new one - we always have to have at least one window. currentWindow_ = new TopLevelWindow("", this); } else { currentWindow_ = (WebWindow)webWindows_.get(0); } } fireWindowClosed(new WebWindowEvent(webWindow, WebWindowEvent.CLOSE, webWindow.getEnclosedPage(), null)); }
|
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/bdaea4b93aa2ca0057c7896bcb492d723586caf6/WebClient.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24310,
4079,
3829,
12,
727,
2999,
3829,
3311,
3829,
262,
288,
3639,
5452,
18,
902,
2041,
2932,
4875,
3829,
3113,
3311,
3829,
1769,
3639,
3311,
10399,
27799,
4479,
12,
4875,
3829,
1769,
7734,
309,
12,
783,
3829,
67,
422,
3311,
3829,
262,
288,
5411,
309,
12,
3311,
10399,
27799,
1467,
1435,
422,
374,
262,
288,
7734,
368,
1788,
279,
394,
1245,
300,
732,
3712,
1240,
358,
1240,
622,
4520,
1245,
2742,
18,
7734,
783,
3829,
67,
273,
394,
7202,
2355,
3829,
2932,
3113,
333,
1769,
5411,
289,
5411,
469,
288,
7734,
783,
3829,
67,
273,
261,
4079,
3829,
13,
4875,
10399,
27799,
588,
12,
20,
1769,
5411,
289,
3639,
289,
3639,
4452,
3829,
7395,
12,
2704,
2999,
3829,
1133,
12,
4875,
3829,
16,
2999,
3829,
1133,
18,
13384,
16,
3311,
3829,
18,
588,
4280,
13783,
1964,
9334,
446,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24310,
4079,
3829,
12,
727,
2999,
3829,
3311,
3829,
262,
288,
3639,
5452,
18,
902,
2041,
2932,
4875,
3829,
3113,
3311,
3829,
1769,
3639,
3311,
10399,
27799,
4479,
12,
4875,
3829,
1769,
7734,
309,
12,
783,
3829,
67,
422,
3311,
3829,
262,
288,
5411,
309,
12,
3311,
10399,
27799,
1467,
1435,
422,
374,
262,
288,
7734,
368,
1788,
279,
394,
1245,
300,
732,
3712,
1240,
358,
1240,
622,
4520,
1245,
2742,
18,
7734,
783,
3829,
67,
273,
394,
7202,
2355,
3829,
2932,
3113,
333,
1769,
5411,
289,
5411,
469,
288,
7734,
783,
3829,
67,
273,
261,
4079,
3829,
13,
4875,
10399,
27799,
588,
12,
20,
1769,
5411,
289,
3639,
289,
3639,
4452,
3829,
7395,
12,
2704,
2
] |
||
stringBuffer.append(",activeWorkbenchWindow="); stringBuffer.append(activeWorkbenchWindow);
|
public String toString() { if (string == null) { final StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append("[activeWorkbenchSite="); //$NON-NLS-1$ stringBuffer.append(activeWorkbenchSite); stringBuffer.append(",activeWorkbenchWindow="); //$NON-NLS-1$ stringBuffer.append(activeWorkbenchWindow); stringBuffer.append(",contextId="); //$NON-NLS-1$ stringBuffer.append(contextId); stringBuffer.append(']'); string = stringBuffer.toString(); } return string; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/EnabledSubmission.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/contexts/EnabledSubmission.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
309,
261,
1080,
422,
446,
13,
288,
5411,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
5411,
533,
1892,
18,
6923,
2932,
63,
3535,
2421,
22144,
4956,
1546,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
533,
1892,
18,
6923,
12,
3535,
2421,
22144,
4956,
1769,
5411,
533,
1892,
18,
6923,
2932,
16,
3535,
2421,
22144,
3829,
1546,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
533,
1892,
18,
6923,
12,
3535,
2421,
22144,
3829,
1769,
5411,
533,
1892,
18,
6923,
2932,
16,
2472,
548,
1546,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
533,
1892,
18,
6923,
12,
2472,
548,
1769,
5411,
533,
1892,
18,
6923,
2668,
3864,
1769,
5411,
533,
273,
533,
1892,
18,
10492,
5621,
3639,
289,
3639,
327,
533,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
309,
261,
1080,
422,
446,
13,
288,
5411,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
5411,
533,
1892,
18,
6923,
2932,
63,
3535,
2421,
22144,
4956,
1546,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
533,
1892,
18,
6923,
12,
3535,
2421,
22144,
4956,
1769,
5411,
533,
1892,
18,
6923,
2932,
16,
3535,
2421,
22144,
3829,
1546,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
533,
1892,
18,
6923,
12,
3535,
2421,
22144,
3829,
1769,
5411,
533,
1892,
18,
6923,
2932,
16,
2472,
548,
1546,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
533,
1892,
18,
6923,
12,
2472,
548,
1769,
5411,
533,
1892,
18,
6923,
2668,
3864,
2
] |
|
if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1;
|
if (name != null) { if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; }
|
public int registerLocal(String name) { if (localNames == null) { localNames = new ArrayList(); localNames.add("_"); localNames.add("~"); if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; } } localNames.add(name); return localNames.size() - 1; }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/580f3017bb64fb7c2bf269b73a8f918801c19963/LocalNamesElement.java/buggy/src/org/jruby/parser/LocalNamesElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1744,
2042,
12,
780,
508,
13,
288,
3639,
309,
261,
3729,
1557,
422,
446,
13,
288,
5411,
1191,
1557,
273,
394,
2407,
5621,
5411,
1191,
1557,
18,
1289,
2932,
67,
8863,
5411,
1191,
1557,
18,
1289,
2932,
98,
8863,
5411,
309,
261,
529,
18,
14963,
2932,
9548,
3719,
288,
7734,
327,
374,
31,
5411,
289,
469,
309,
261,
529,
18,
14963,
2932,
98,
6,
3719,
288,
7734,
327,
404,
31,
5411,
289,
3639,
289,
3639,
1191,
1557,
18,
1289,
12,
529,
1769,
3639,
327,
1191,
1557,
18,
1467,
1435,
300,
404,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1744,
2042,
12,
780,
508,
13,
288,
3639,
309,
261,
3729,
1557,
422,
446,
13,
288,
5411,
1191,
1557,
273,
394,
2407,
5621,
5411,
1191,
1557,
18,
1289,
2932,
67,
8863,
5411,
1191,
1557,
18,
1289,
2932,
98,
8863,
5411,
309,
261,
529,
18,
14963,
2932,
9548,
3719,
288,
7734,
327,
374,
31,
5411,
289,
469,
309,
261,
529,
18,
14963,
2932,
98,
6,
3719,
288,
7734,
327,
404,
31,
5411,
289,
3639,
289,
3639,
1191,
1557,
18,
1289,
12,
529,
1769,
3639,
327,
1191,
1557,
18,
1467,
1435,
300,
404,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_288()) { jj_scanpos = xsp; break; }
|
} } } } } } } } } }
|
final private boolean jj_3R_225() { if (jj_3R_248()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_288()) { jj_scanpos = xsp; break; } } return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/30dbed0065b5a20aa4e60ae16f7a8e47197c4cee/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,
54,
67,
22,
2947,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3247,
28,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
22,
5482,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
2947,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3247,
28,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
22,
5482,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private String subPrompt() throws EOFException, UnsupportedEncodingException, IOException { return Readline.readline("% ", historyOn); }
|
private String subPrompt() throws EOFException, UnsupportedEncodingException, IOException { return Readline.readline("% ", historyOn); }
|
private String subPrompt() throws EOFException, UnsupportedEncodingException, IOException { return Readline.readline("% ", historyOn); }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/1bb374fdc19d6902ec83ac710293297de1e6cb6a/MartShell.java/buggy/src/java/org/ensembl/mart/shell/MartShell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
720,
15967,
1435,
1216,
30051,
16,
15367,
16,
1860,
288,
202,
202,
2463,
2720,
1369,
18,
896,
1369,
27188,
3104,
4927,
1398,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
720,
15967,
1435,
1216,
30051,
16,
15367,
16,
1860,
288,
202,
202,
2463,
2720,
1369,
18,
896,
1369,
27188,
3104,
4927,
1398,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return RubyString.newString(input.getRuntime(), input.unmarshalString());
|
RubyString result = RubyString.newString(input.getRuntime(), input.unmarshalString()); input.register(result); return result;
|
public static RubyString unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubyString.newString(input.getRuntime(), input.unmarshalString()); }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/9db4d278a734c4fdfd9a83ed95575a45577f1e1b/RubyString.java/clean/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
19817,
780,
11401,
1265,
12,
9593,
1228,
810,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
202,
202,
2463,
19817,
780,
18,
2704,
780,
12,
2630,
18,
588,
5576,
9334,
810,
18,
318,
3108,
780,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
19817,
780,
11401,
1265,
12,
9593,
1228,
810,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
202,
202,
2463,
19817,
780,
18,
2704,
780,
12,
2630,
18,
588,
5576,
9334,
810,
18,
318,
3108,
780,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static void prepareWebArchive(String webAppsDir, String warFile) throws Exception, IOException { String webModule = warFile; if (webModule.indexOf("/") != -1) webModule = webModule.substring(webModule.lastIndexOf("/") + 1); if (webModule.indexOf(dirDelim) != -1) webModule = webModule.substring(webModule.lastIndexOf(dirDelim) + 1); if (webModule.endsWith(".war")) webModule = webModule.substring(0, webModule.lastIndexOf(".")); System.out.println("prepare web archive '" + webModule + "' ..."); Mapping mappingPortletXml = null; Mapping mappingWebXml = null; // get portlet xml mapping file String _portlet_mapping = webAppsDir + portalImplWebDir + "WEB-INF" + dirDelim + "data" + dirDelim + "xml" +dirDelim + "portletdefinitionmapping.xml"; mappingPortletXml = new Mapping(); try { mappingPortletXml.loadMapping(_portlet_mapping); } catch (Exception e) { System.out.println("CASTOR-Exception: " + e); throw new IOException( "Failed to load mapping file " + _web_mapping + ". Cause of mapping error: " + e.getMessage()); } File portletXml = new File(webAppsDir + webModule + webInfDir + "portlet.xml"); // get web xml mapping file String _web_mapping = webAppsDir + portalImplWebDir + "WEB-INF" + dirDelim + "data" + dirDelim + "xml" + dirDelim + "servletdefinitionmapping.xml"; mappingWebXml = new Mapping(); try { mappingWebXml.loadMapping(_web_mapping); } catch (Exception e) { throw new IOException( "Failed to load mapping file " + _web_mapping + ". Cause of mapping error: " + e.getMessage()); } File webXml = new File(webAppsDir + webModule + webInfDir + "web.xml"); try { org.w3c.dom.Document portletDocument = XmlParser.parsePortletXml(new FileInputStream(portletXml)); Unmarshaller unmarshaller = new Unmarshaller(mappingPortletXml); // modified by YCLI: START :: to ignore extra elements and attributes unmarshaller.setIgnoreExtraElements(true); unmarshaller.setIgnoreExtraAttributes(true); // modified by YCLI: END PortletApplicationDefinitionImpl portletApp = (PortletApplicationDefinitionImpl) unmarshaller.unmarshal( portletDocument); // refill structure with necessary information Vector structure = new Vector(); structure.add(webModule); structure.add(null); structure.add(null); portletApp.preBuild(structure); if (debug) { System.out.println(portletApp); } // now generate web part WebApplicationDefinitionImpl webApp = null; if (webXml.exists()) { org.w3c.dom.Document webDocument = XmlParser.parseWebXml(new FileInputStream(webXml)); Unmarshaller unmarshallerWeb = new Unmarshaller(mappingWebXml); // modified by YCLI: START :: to ignore extra elements and attributes unmarshallerWeb.setIgnoreExtraElements(true); unmarshallerWeb.setIgnoreExtraAttributes(true); // modified by YCLI: END webApp = (WebApplicationDefinitionImpl) unmarshallerWeb.unmarshal( webDocument); } else { webApp = new WebApplicationDefinitionImpl(); DisplayNameImpl dispName = new DisplayNameImpl(); dispName.setDisplayName(webModule); dispName.setLocale(Locale.ENGLISH); DisplayNameSetImpl dispSet = new DisplayNameSetImpl(); dispSet.add(dispName); webApp.setDisplayNames(dispSet); DescriptionImpl desc = new DescriptionImpl(); desc.setDescription("Automated generated Application Wrapper"); desc.setLocale(Locale.ENGLISH); DescriptionSetImpl descSet = new DescriptionSetImpl(); descSet.add(desc); webApp.setDescriptions(descSet); } org.apache.pluto.om.ControllerFactory controllerFactory = new org.apache.pluto.portalImpl.om.ControllerFactoryImpl(); ServletDefinitionListCtrl servletDefinitionSetCtrl = (ServletDefinitionListCtrl) controllerFactory.get( webApp.getServletDefinitionList()); Collection servletMappings = webApp.getServletMappings(); Iterator portlets = portletApp.getPortletDefinitionList().iterator(); while (portlets.hasNext()) { PortletDefinition portlet = (PortletDefinition) portlets.next(); // check if already exists ServletDefinition servlet = webApp.getServletDefinitionList().get(portlet.getName()); if (servlet != null) { if (!servlet .getServletClass() .equals("org.apache.pluto.core.PortletServlet")) { System.out.println( "Note: Replaced already existing the servlet with the name '" + portlet.getName() + "' with the wrapper servlet."); } ServletDefinitionCtrl _servletCtrl = (ServletDefinitionCtrl) controllerFactory.get(servlet); _servletCtrl.setServletClass( "org.apache.pluto.core.PortletServlet"); } else { servlet = servletDefinitionSetCtrl.add( portlet.getName(), "org.apache.pluto.core.PortletServlet"); } ServletDefinitionCtrl servletCtrl = (ServletDefinitionCtrl) controllerFactory.get(servlet); DisplayNameImpl dispName = new DisplayNameImpl(); dispName.setDisplayName(portlet.getName() + " Wrapper"); dispName.setLocale(Locale.ENGLISH); DisplayNameSetImpl dispSet = new DisplayNameSetImpl(); dispSet.add(dispName); servletCtrl.setDisplayNames(dispSet); DescriptionImpl desc = new DescriptionImpl(); desc.setDescription("Automated generated Portlet Wrapper"); desc.setLocale(Locale.ENGLISH); DescriptionSetImpl descSet = new DescriptionSetImpl(); descSet.add(desc); servletCtrl.setDescriptions(descSet); ParameterSet parameters = servlet.getInitParameterSet(); ParameterSetCtrl parameterSetCtrl = (ParameterSetCtrl) controllerFactory.get(parameters); Parameter parameter1 = parameters.get("portlet-class"); if (parameter1 == null) { parameterSetCtrl.add( "portlet-class", portlet.getClassName()); } else { ParameterCtrl parameterCtrl = (ParameterCtrl) controllerFactory.get(parameter1); parameterCtrl.setValue(portlet.getClassName()); } Parameter parameter2 = parameters.get("portlet-guid"); if (parameter2 == null) { parameterSetCtrl.add( "portlet-guid", portlet.getId().toString()); } else { ParameterCtrl parameterCtrl = (ParameterCtrl) controllerFactory.get(parameter2); parameterCtrl.setValue(portlet.getId().toString()); } boolean found = false; Iterator mappings = servletMappings.iterator(); while (mappings.hasNext()) { ServletMappingImpl servletMapping = (ServletMappingImpl) mappings.next(); if (servletMapping .getServletName() .equals(portlet.getName())) { found = true; servletMapping.setUrlPattern( "/" + portlet.getName().replace(' ', '_') + "/*"); } } if (!found) { ServletMappingImpl servletMapping = new ServletMappingImpl(); servletMapping.setServletName(portlet.getName()); servletMapping.setUrlPattern( "/" + portlet.getName().replace(' ', '_') + "/*"); servletMappings.add(servletMapping); } SecurityRoleRefSet servletSecurityRoleRefs = ((ServletDefinitionImpl)servlet).getInitSecurityRoleRefSet(); SecurityRoleRefSetCtrl servletSecurityRoleRefSetCtrl = (SecurityRoleRefSetCtrl) controllerFactory.get( servletSecurityRoleRefs); SecurityRoleSet webAppSecurityRoles = webApp.getSecurityRoles(); SecurityRoleRefSet portletSecurityRoleRefs = portlet.getInitSecurityRoleRefSet(); Iterator p = portletSecurityRoleRefs.iterator(); while (p.hasNext()) { SecurityRoleRef portletSecurityRoleRef = (SecurityRoleRef) p.next(); if ( portletSecurityRoleRef.getRoleLink()== null && webAppSecurityRoles.get(portletSecurityRoleRef.getRoleName())==null ){ System.out.println( "Note: The web application has no security role defined which matches the role name \"" + portletSecurityRoleRef.getRoleName() + "\" of the security-role-ref element defined for the wrapper-servlet with the name '" + portlet.getName() + "'."); break; } SecurityRoleRef servletSecurityRoleRef = servletSecurityRoleRefs.get( portletSecurityRoleRef.getRoleName()); if (null != servletSecurityRoleRef) { System.out.println( "Note: Replaced already existing element of type <security-role-ref> with value \"" + portletSecurityRoleRef.getRoleName() + "\" for subelement of type <role-name> for the wrapper-servlet with the name '" + portlet.getName() + "'."); servletSecurityRoleRefSetCtrl.remove( servletSecurityRoleRef); } servletSecurityRoleRefSetCtrl.add(portletSecurityRoleRef); } } if (debug) { System.out.println(webApp); } OutputFormat of = new OutputFormat(); of.setIndenting(true); of.setIndent(4); // 2-space indention of.setLineWidth(16384); // As large as needed to prevent linebreaks in text nodes of.setDoctype( Constants.WEB_PORTLET_PUBLIC_ID, Constants.WEB_PORTLET_DTD); FileWriter writer = new FileWriter(webAppsDir + webModule + System.getProperty("file.separator") + "WEB-INF"+ System.getProperty("file.separator") + "web.xml"); XMLSerializer serializer = new XMLSerializer(writer, of); try { Marshaller marshaller = new Marshaller(serializer.asDocumentHandler()); marshaller.setMapping(mappingWebXml); marshaller.marshal(webApp); } catch (Exception e) { writer.close(); e.printStackTrace(System.out); throw new PlutoAdminException("Error found in Deploy.prepareWebArchive()", e); } // REMOVED copy of tld b/c it's now included in the container distribution. //String strTo = dirDelim + "WEB-INF" + dirDelim + "tld" + dirDelim + "portlet.tld"; //String strFrom = plutoHome + "portal" + dirDelim + "src" + // dirDelim + "webapp" + strTo; //copy(strFrom, webAppsDir + webModule + strTo); } catch (Exception e) { e.printStackTrace(System.out); throw new PlutoAdminException("Error found in Deploy.prepareWebArchive()", e); } System.out.println("finished!"); }
|
51810 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51810/00086a1ad6a1efd1fb392a944b4ca282a135942c/Deploy.java/buggy/portal/src/java/org/apache/pluto/portalImpl/Deploy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2911,
4079,
7465,
12,
780,
3311,
16339,
1621,
16,
514,
21983,
812,
13,
3639,
1216,
1185,
16,
1860,
288,
3639,
514,
3311,
3120,
273,
21983,
812,
31,
3639,
309,
261,
4875,
3120,
18,
31806,
2932,
4898,
13,
480,
300,
21,
13,
5411,
3311,
3120,
273,
3311,
3120,
18,
28023,
12,
4875,
3120,
18,
2722,
31985,
2932,
4898,
13,
397,
404,
1769,
3639,
309,
261,
4875,
3120,
18,
31806,
12,
1214,
21445,
13,
480,
300,
21,
13,
5411,
3311,
3120,
273,
7734,
3311,
3120,
18,
28023,
12,
4875,
3120,
18,
2722,
31985,
12,
1214,
21445,
13,
397,
404,
1769,
3639,
309,
261,
4875,
3120,
18,
5839,
1190,
2932,
18,
905,
6,
3719,
5411,
3311,
3120,
273,
3311,
3120,
18,
28023,
12,
20,
16,
3311,
3120,
18,
2722,
31985,
2932,
1199,
10019,
3639,
2332,
18,
659,
18,
8222,
2932,
9366,
3311,
5052,
2119,
397,
3311,
3120,
397,
2491,
1372,
8863,
3639,
9408,
2874,
18566,
4432,
273,
446,
31,
3639,
9408,
2874,
4079,
4432,
273,
446,
31,
3639,
368,
336,
13114,
2025,
2874,
585,
3639,
514,
389,
655,
1810,
67,
6770,
273,
5411,
3311,
16339,
1621,
397,
11899,
2828,
4079,
1621,
397,
315,
14778,
17,
19212,
6,
397,
1577,
21445,
397,
315,
892,
6,
397,
1577,
21445,
397,
315,
2902,
6,
397,
1214,
21445,
397,
315,
655,
1810,
6907,
6770,
18,
2902,
14432,
3639,
2874,
18566,
4432,
273,
394,
9408,
5621,
3639,
775,
288,
5411,
2874,
18566,
4432,
18,
945,
3233,
24899,
655,
1810,
67,
6770,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2911,
4079,
7465,
12,
780,
3311,
16339,
1621,
16,
514,
21983,
812,
13,
3639,
1216,
1185,
16,
1860,
288,
3639,
514,
3311,
3120,
273,
21983,
812,
31,
3639,
309,
261,
4875,
3120,
18,
31806,
2932,
4898,
13,
480,
300,
21,
13,
5411,
3311,
3120,
273,
3311,
3120,
18,
28023,
12,
4875,
3120,
18,
2722,
31985,
2932,
4898,
13,
397,
404,
1769,
3639,
309,
261,
4875,
3120,
18,
31806,
12,
1214,
21445,
13,
480,
300,
21,
13,
5411,
3311,
3120,
273,
7734,
3311,
3120,
18,
28023,
12,
4875,
3120,
18,
2722,
31985,
12,
1214,
21445,
13,
397,
404,
1769,
3639,
309,
261,
4875,
3120,
18,
5839,
1190,
2932,
18,
905,
6,
3719,
5411,
3311,
3120,
273,
2
] |
||
public Object invokeMethod(final Method method, final Object[] args, final Object[] implementations)
|
public Object invokeMethod(final JavaMethod method, final Object[] args, final Object[] implementations)
|
public Object invokeMethod(final Method method, final Object[] args, final Object[] implementations) throws IllegalAccessException, InvocationTargetException { for (final Object implementation : implementations) { if (!((Boolean)method.invoke(implementation, args))) { return Boolean.FALSE; } } return Boolean.TRUE; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/54db96a7e7eb53da6fe993c656f312cdf31aaaa7/ModelMergerImpl.java/buggy/dom/impl/src/com/intellij/util/xml/ModelMergerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
1033,
27632,
12,
6385,
5110,
1305,
707,
16,
727,
1033,
8526,
833,
16,
727,
1033,
8526,
16164,
13,
3639,
1216,
11900,
16,
15342,
288,
3639,
364,
261,
6385,
1033,
4471,
294,
16164,
13,
288,
1850,
309,
16051,
12443,
5507,
13,
2039,
18,
14407,
12,
30810,
16,
833,
20349,
288,
5411,
327,
3411,
18,
21053,
31,
1850,
289,
3639,
289,
3639,
327,
3411,
18,
18724,
31,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
1033,
27632,
12,
6385,
5110,
1305,
707,
16,
727,
1033,
8526,
833,
16,
727,
1033,
8526,
16164,
13,
3639,
1216,
11900,
16,
15342,
288,
3639,
364,
261,
6385,
1033,
4471,
294,
16164,
13,
288,
1850,
309,
16051,
12443,
5507,
13,
2039,
18,
14407,
12,
30810,
16,
833,
20349,
288,
5411,
327,
3411,
18,
21053,
31,
1850,
289,
3639,
289,
3639,
327,
3411,
18,
18724,
31,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return get(agentConfig, oids)[0];
|
return get(snmpAgentConfig, oids)[0];
|
public SnmpValue get(SnmpAgentConfig agentConfig, SnmpObjId oid) { SnmpObjId[] oids = { oid }; return get(agentConfig, oids)[0]; }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/c7fb1c0267a7b284c70383a68c91521d57e9172c/JoeSnmpStrategy.java/clean/src/services/org/opennms/netmgt/snmp/joesnmp/JoeSnmpStrategy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
18961,
1291,
620,
336,
12,
10461,
1291,
3630,
809,
4040,
809,
16,
18961,
1291,
2675,
548,
7764,
13,
288,
3639,
18961,
1291,
2675,
548,
8526,
26629,
273,
288,
7764,
289,
31,
3639,
327,
336,
12,
26527,
3630,
809,
16,
26629,
25146,
20,
15533,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
18961,
1291,
620,
336,
12,
10461,
1291,
3630,
809,
4040,
809,
16,
18961,
1291,
2675,
548,
7764,
13,
288,
3639,
18961,
1291,
2675,
548,
8526,
26629,
273,
288,
7764,
289,
31,
3639,
327,
336,
12,
26527,
3630,
809,
16,
26629,
25146,
20,
15533,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (undoContext == null)
|
if (undoContext == null) {
|
boolean shouldBeEnabled() { // make sure a context is set. If a part doesn't provide // a context, then we should not enable. if (undoContext == null) return false; return getHistory().canRedo(undoContext); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/RedoActionHandler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/RedoActionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
1410,
1919,
1526,
1435,
288,
202,
202,
759,
1221,
3071,
279,
819,
353,
444,
18,
971,
279,
1087,
3302,
1404,
5615,
202,
202,
759,
279,
819,
16,
1508,
732,
1410,
486,
4237,
18,
202,
202,
430,
261,
31226,
1042,
422,
446,
13,
1082,
202,
2463,
629,
31,
202,
202,
2463,
336,
5623,
7675,
4169,
3715,
83,
12,
31226,
1042,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
1410,
1919,
1526,
1435,
288,
202,
202,
759,
1221,
3071,
279,
819,
353,
444,
18,
971,
279,
1087,
3302,
1404,
5615,
202,
202,
759,
279,
819,
16,
1508,
732,
1410,
486,
4237,
18,
202,
202,
430,
261,
31226,
1042,
422,
446,
13,
1082,
202,
2463,
629,
31,
202,
202,
2463,
336,
5623,
7675,
4169,
3715,
83,
12,
31226,
1042,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
StringBuffer buf = new StringBuffer(20 * list.size()); buf.append(((InternetHeader) list.get(0)).getValue()); for (int i = 1; i < list.size(); i++) { buf.append(delimiter); buf.append(((InternetHeader) list.get(i)).getValue());
|
String[] result = new String[headers.size()]; for (int i = 0; i < headers.size(); i++) { InternetHeader header = (InternetHeader) headers.get(i); result[i] = header.getValue();
|
public String getHeader(String name, String delimiter) { List list = getHeaderList(name); if (list == null) { return null; } else if (list.isEmpty()) { return ""; } else if (list.size() == 1) { return ((InternetHeader) list.get(0)).getValue(); } else { StringBuffer buf = new StringBuffer(20 * list.size()); buf.append(((InternetHeader) list.get(0)).getValue()); for (int i = 1; i < list.size(); i++) { buf.append(delimiter); buf.append(((InternetHeader) list.get(i)).getValue()); } return buf.toString(); } }
|
8608 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8608/0db1885ee852e3f39071d525c709c04b4278c38d/InternetHeaders.java/buggy/geronimo-spec-javamail/src/main/java/javax/mail/internet/InternetHeaders.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7911,
12,
780,
508,
16,
514,
5654,
13,
288,
3639,
987,
666,
273,
7911,
682,
12,
529,
1769,
3639,
309,
261,
1098,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
469,
309,
261,
1098,
18,
291,
1921,
10756,
288,
5411,
327,
1408,
31,
3639,
289,
469,
309,
261,
1098,
18,
1467,
1435,
422,
404,
13,
288,
5411,
327,
14015,
26562,
1864,
13,
666,
18,
588,
12,
20,
13,
2934,
24805,
5621,
3639,
289,
469,
288,
5411,
6674,
1681,
273,
394,
6674,
12,
3462,
380,
666,
18,
1467,
10663,
5411,
1681,
18,
6923,
12443,
12,
26562,
1864,
13,
666,
18,
588,
12,
20,
13,
2934,
24805,
10663,
5411,
364,
261,
474,
277,
273,
404,
31,
277,
411,
666,
18,
1467,
5621,
277,
27245,
288,
7734,
1681,
18,
6923,
12,
15751,
1769,
7734,
1681,
18,
6923,
12443,
12,
26562,
1864,
13,
666,
18,
588,
12,
77,
13,
2934,
24805,
10663,
5411,
289,
5411,
327,
1681,
18,
10492,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7911,
12,
780,
508,
16,
514,
5654,
13,
288,
3639,
987,
666,
273,
7911,
682,
12,
529,
1769,
3639,
309,
261,
1098,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
469,
309,
261,
1098,
18,
291,
1921,
10756,
288,
5411,
327,
1408,
31,
3639,
289,
469,
309,
261,
1098,
18,
1467,
1435,
422,
404,
13,
288,
5411,
327,
14015,
26562,
1864,
13,
666,
18,
588,
12,
20,
13,
2934,
24805,
5621,
3639,
289,
469,
288,
5411,
6674,
1681,
273,
394,
6674,
12,
3462,
380,
666,
18,
1467,
10663,
5411,
1681,
18,
6923,
12443,
12,
26562,
1864,
13,
666,
18,
588,
12,
20,
13,
2934,
24805,
10663,
5411,
364,
261,
474,
277,
273,
404,
31,
2
] |
case 407 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); }
|
case 408 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); }
|
protected void consumeRule(int act) { switch ( act ) { case 27 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 41 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 45 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 46 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 47 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 48 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 49 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 50 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 52 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 57 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 58 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 59 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 60 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 66 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 67 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 68 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 83 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 85 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 87 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 88 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 89 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 90 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 95 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 96 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 97 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 98 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 101 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 105 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 117 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 118 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 119 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 120 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 122 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 123 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 124 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 126 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 127 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 130 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 134 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 135 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 136 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 143 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 146 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 148 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 151 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 152 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 153 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 154 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 155 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 160 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 161 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 162 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 163 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(); break; case 164 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(); break; case 165 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 166 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 167 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 168 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 169 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 170 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 172 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 173 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 174 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 176 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 177 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 178 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 179 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 180 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 181 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 182 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 183 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 184 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 185 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 186 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 191 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 192 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 193 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 194 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 195 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 196 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 197 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 198 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 200 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 202 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 205 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 206 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 209 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 210 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 211 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 218 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 219 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 220 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 221 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 223 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 224 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 225 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 227 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 231 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 232 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 233 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 234 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 235 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 236 : if (DEBUG) { System.out.println("PushModifiersForHeader ::="); } //$NON-NLS-1$ consumePushModifiersForHeader(); break; case 237 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 263 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 264 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 265 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 266 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 275 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 276 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 277 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 278 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 279 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 282 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 284 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 285 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 287 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 288 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 289 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 290 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 291 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 292 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 293 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 294 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 295 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 299 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 300 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 301 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 302 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 303 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 304 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 305 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 306 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 307 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 308 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 309 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 310 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 311 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 313 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 315 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 316 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 318 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 319 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 324 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 325 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 326 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 329 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 330 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 331 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 332 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 333 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 334 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 337 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 338 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 339 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 340 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 341 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 342 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 343 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 344 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 345 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 347 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 349 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 350 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 352 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 353 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 354 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 355 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 356 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 357 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 358 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 360 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 362 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 363 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 366 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 367 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 368 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 369 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 370 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 371 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 372 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 373 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 374 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 375 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 376 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 377 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 379 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 382 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 383 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 384 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 387 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 388 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 390 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 391 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 393 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 394 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 396 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 397 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 398 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 399 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 400 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 401 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 402 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 403 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 404 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 406 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 407 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 408 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 410 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 411 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 413 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 414 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 415 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 417 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 418 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 419 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 420 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 422 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 424 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 425 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 427 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 429 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 431 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 433 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 435 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 437 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 440 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 442 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 443 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 444 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 449 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 450 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 451 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 452 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 453 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 454 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 458 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 463 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 464 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 465 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 466 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 467 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 469 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 471 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 475 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 479 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 480 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 481 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 482 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 484 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 488 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 490 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader EnumBody"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 491 : if (DEBUG) { System.out.println("EnumHeader ::= EnumHeaderName ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 492 : if (DEBUG) { System.out.println("EnumHeaderName ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeaderName(); break; case 493 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 494 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 495 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 496 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 498 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 499 : if (DEBUG) { System.out.println("EnumConstantHeaderName ::= Modifiersopt Identifier"); } //$NON-NLS-1$ consumeEnumConstantHeaderName(); break; case 500 : if (DEBUG) { System.out.println("EnumConstantHeader ::= EnumConstantHeaderName..."); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 501 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ForceNoDiet..."); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 502 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 503 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 504 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 506 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 507 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 509 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 510 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 511 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 512 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 513 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 514 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 515 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 516 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 517 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 518 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 520 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 522 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 523 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 527 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 528 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 530 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 533 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 534 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 536 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 539 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 540 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 541 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 542 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 543 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 544 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 545 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 548 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 549 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 550 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 551 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 552 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 553 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 554 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 555 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 556 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 557 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 559 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 561 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 562 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 564 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 565 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 567 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 568 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 569 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 570 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 572 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 573 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 579 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 580 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 583 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 584 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 587 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 588 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 589 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 590 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 591 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 592 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 594 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 595 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 596 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 597 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 599 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 600 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 601 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 602 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 603 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 604 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 606 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 607 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 608 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 609 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 610 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 611 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 612 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 613 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 615 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 616 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 618 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 619 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 620 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 621 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 623 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 624 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 626 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 627 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 629 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 630 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 632 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 633 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 635 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 636 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 638 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 639 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 643 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 644 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 645 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 647 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 650 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 651 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationHeader ::= Modifiersopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationHeader() ; break; case 652 : if (DEBUG) { System.out.println("AnnotationTypeMemberHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberHeaderExtendedDims() ; break; case 653 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 656 : if (DEBUG) { System.out.println("DefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyDefaultValue() ; break; case 662 : if (DEBUG) { System.out.println("NormalAnnotation ::= AT Name LPAREN MemberValuePairsopt"); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 663 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 666 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 667 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 669 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 672 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 673 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 674 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 675 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 677 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 678 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AT Name"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 679 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AT Name LPAREN MemberValue..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; }}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/836fef68856b7e7f6b208deb388901eeda69de4b/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12732,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
20170,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
12292,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
24730,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17077,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
7928,
559,
15772,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
1358,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17495,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
30982,
493,
33,
1659,
1162,
1358,
1412,
4628,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
30982,
5621,
565,
1082,
202,
8820,
31,
377,
648,
9934,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
27182,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12732,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
20170,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
12292,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
2
] |
{ int codePoint; String strVal;
|
{ int codePoint; String strVal;
|
private void parseEXCSAT() throws DRDAProtocolException { int codePoint; String strVal; // There are three kinds of EXCSAT's we might get. // 1) Initial Exchange attributes. // For this we need to initialize the apprequester. // Session state is set to ATTEXC and then the AR must // follow up with ACCSEC and SECCHK to get the connection. // 2) Send of EXCSAT as ping or mangager level adjustment. // (see parseEXCSAT2()) // For this we just ignore the EXCSAT objects that // are already set. // 3) Send of EXCSAT for connection reset. (see parseEXCSAT2()) // This is treated just like ping and will be followed up // by an ACCSEC request if in fact it is a connection reset. // If we have already exchanged attributes once just // process any new manager levels and return (case 2 and 3 above) if (appRequester != null) { parseEXCSAT2(); return; } // set up a new Application Requester to store information about the // application requester for this session appRequester = new AppRequester(); reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { // optional case CodePoint.EXTNAM: appRequester.extnam = reader.readString(); if (SanityManager.DEBUG) trace("extName = " + appRequester.extnam); if (appRequester.extnam.length() > CodePoint.MAX_NAME) tooBig(CodePoint.EXTNAM); break; // optional case CodePoint.MGRLVLLS: parseMGRLVLLS(1); break; // optional case CodePoint.SPVNAM: appRequester.spvnam = reader.readString(); // This is specified as a null parameter so length should // be zero if (appRequester.spvnam != null) badObjectLength(CodePoint.SPVNAM); break; // optional case CodePoint.SRVNAM: appRequester.srvnam = reader.readString(); if (SanityManager.DEBUG) trace("serverName = " + appRequester.srvnam); if (appRequester.srvnam.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVNAM); break; // optional case CodePoint.SRVRLSLV: appRequester.srvrlslv = reader.readString(); if (SanityManager.DEBUG) trace("serverlslv = " + appRequester.srvrlslv); if (appRequester.srvrlslv.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVRLSLV); break; // optional case CodePoint.SRVCLSNM: appRequester.srvclsnm = reader.readString(); if (SanityManager.DEBUG) trace("serverClassName = " + appRequester.srvclsnm); if (appRequester.srvclsnm.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVCLSNM); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1109,
2294,
4596,
789,
1435,
1216,
16801,
9793,
5752,
503,
202,
95,
202,
202,
474,
18614,
31,
202,
202,
780,
609,
3053,
31,
202,
202,
759,
6149,
854,
8925,
21961,
434,
5675,
4596,
789,
1807,
732,
4825,
336,
18,
202,
202,
759,
404,
13,
10188,
18903,
1677,
18,
202,
202,
759,
565,
2457,
333,
732,
1608,
358,
4046,
326,
595,
26192,
18,
202,
202,
759,
565,
3877,
919,
353,
444,
358,
14464,
13439,
39,
471,
1508,
326,
6052,
1297,
3196,
202,
759,
565,
2805,
731,
598,
18816,
11944,
471,
31418,
1792,
47,
358,
336,
326,
1459,
18,
202,
202,
759,
225,
576,
13,
2479,
434,
5675,
4596,
789,
487,
10087,
578,
29674,
6817,
1801,
18335,
18,
3196,
202,
759,
377,
261,
5946,
1109,
2294,
4596,
789,
22,
10756,
202,
202,
759,
377,
2457,
333,
732,
2537,
2305,
326,
5675,
4596,
789,
2184,
716,
202,
202,
759,
377,
854,
1818,
444,
18,
202,
202,
759,
225,
890,
13,
2479,
434,
5675,
4596,
789,
364,
1459,
2715,
18,
261,
5946,
1109,
2294,
4596,
789,
22,
10756,
202,
202,
759,
377,
1220,
353,
13974,
2537,
3007,
10087,
471,
903,
506,
10860,
731,
3196,
202,
759,
377,
635,
392,
18816,
11944,
590,
309,
316,
5410,
518,
353,
279,
1459,
2715,
18,
202,
202,
759,
971,
732,
1240,
1818,
431,
6703,
1677,
3647,
2537,
3196,
202,
759,
1207,
1281,
394,
3301,
7575,
471,
327,
261,
3593,
576,
471,
890,
5721,
13,
202,
202,
430,
261,
2910,
30260,
480,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1109,
2294,
4596,
789,
1435,
1216,
16801,
9793,
5752,
503,
202,
95,
202,
202,
474,
18614,
31,
202,
202,
780,
609,
3053,
31,
202,
202,
759,
6149,
854,
8925,
21961,
434,
5675,
4596,
789,
1807,
732,
4825,
336,
18,
202,
202,
759,
404,
13,
10188,
18903,
1677,
18,
202,
202,
759,
565,
2457,
333,
732,
1608,
358,
4046,
326,
595,
26192,
18,
202,
202,
759,
565,
3877,
919,
353,
444,
358,
14464,
13439,
39,
471,
1508,
326,
6052,
1297,
3196,
202,
759,
565,
2805,
731,
598,
18816,
11944,
471,
31418,
1792,
47,
358,
336,
326,
1459,
18,
202,
202,
759,
225,
576,
13,
2479,
434,
5675,
4596,
789,
487,
10087,
578,
29674,
6817,
1801,
18335,
2
] |
return this.realInputStream.read (data, offset, length);
|
return this.realInputStream.read ();
|
public int read (byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { if (this.blockDataPosition + length > this.blockDataBytes) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain != 0) { System.arraycopy (this.blockData, this.blockDataPosition, data, offset, remain); offset += remain; length -= remain; } readNextBlock (); } System.arraycopy (this.blockData, this.blockDataPosition, data, offset, length); this.blockDataPosition += length; return length; } else return this.realInputStream.read (data, offset, length); }
|
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/07fea4789bd395e94460b94cceac2e1f925dd607/ObjectInputStream.java/buggy/libjava/java/io/ObjectInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
855,
261,
7229,
8526,
501,
16,
509,
1384,
16,
509,
769,
13,
1216,
1860,
225,
288,
565,
309,
261,
2211,
18,
896,
751,
1265,
1768,
13,
1377,
288,
202,
430,
261,
2211,
18,
2629,
751,
2555,
397,
769,
405,
333,
18,
2629,
751,
2160,
13,
202,
225,
288,
202,
565,
509,
7232,
273,
333,
18,
2629,
751,
2160,
300,
333,
18,
2629,
751,
2555,
31,
202,
565,
309,
261,
2764,
530,
480,
374,
13,
202,
1377,
288,
202,
202,
3163,
18,
1126,
3530,
261,
2211,
18,
2629,
751,
16,
333,
18,
2629,
751,
2555,
16,
6862,
225,
501,
16,
1384,
16,
7232,
1769,
202,
202,
3348,
1011,
7232,
31,
202,
202,
2469,
3947,
7232,
31,
202,
1377,
289,
202,
565,
855,
2134,
1768,
261,
1769,
202,
225,
289,
202,
3163,
18,
1126,
3530,
261,
2211,
18,
2629,
751,
16,
333,
18,
2629,
751,
2555,
16,
9506,
225,
501,
16,
1384,
16,
769,
1769,
202,
2211,
18,
2629,
751,
2555,
1011,
769,
31,
202,
2463,
769,
31,
1377,
289,
565,
469,
1377,
327,
333,
18,
7688,
4348,
18,
896,
261,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
855,
261,
7229,
8526,
501,
16,
509,
1384,
16,
509,
769,
13,
1216,
1860,
225,
288,
565,
309,
261,
2211,
18,
896,
751,
1265,
1768,
13,
1377,
288,
202,
430,
261,
2211,
18,
2629,
751,
2555,
397,
769,
405,
333,
18,
2629,
751,
2160,
13,
202,
225,
288,
202,
565,
509,
7232,
273,
333,
18,
2629,
751,
2160,
300,
333,
18,
2629,
751,
2555,
31,
202,
565,
309,
261,
2764,
530,
480,
374,
13,
202,
1377,
288,
202,
202,
3163,
18,
1126,
3530,
261,
2211,
18,
2629,
751,
16,
333,
18,
2629,
751,
2555,
16,
6862,
225,
501,
16,
1384,
16,
7232,
1769,
202,
202,
3348,
1011,
7232,
31,
202,
202,
2469,
3947,
7232,
31,
202,
2
] |
cssDictionary.put( Style.FONT_SIZE_PROP,
|
cssDictionary.put( IStyleModel.FONT_SIZE_PROP,
|
private static void populateCSSDictionary( ) { cssDictionary.put( Style.BACKGROUND_ATTACHMENT_PROP, DesignSchemaConstants.BACKGROUND_ATTACHMENT_ATTRIB ); cssDictionary.put( Style.BACKGROUND_COLOR_PROP, DesignSchemaConstants.BACKGROUND_COLOR_ATTRIB ); cssDictionary.put( Style.BACKGROUND_IMAGE_PROP, DesignSchemaConstants.BACKGROUND_IMAGE_ATTRIB ); cssDictionary.put( Style.BACKGROUND_POSITION_X_PROP, DesignSchemaConstants.BACKGROUND_POSITION_X_ATTRIB ); cssDictionary.put( Style.BACKGROUND_POSITION_Y_PROP, DesignSchemaConstants.BACKGROUND_POSITION_Y_ATTRIB ); cssDictionary.put( Style.BACKGROUND_REPEAT_PROP, DesignSchemaConstants.BACKGROUND_REPEAT_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_COLOR_PROP, DesignSchemaConstants.BORDER_BOTTOM_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_STYLE_PROP, DesignSchemaConstants.BORDER_BOTTOM_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_COLOR_PROP, DesignSchemaConstants.BORDER_LEFT_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_STYLE_PROP, DesignSchemaConstants.BORDER_LEFT_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_COLOR_PROP, DesignSchemaConstants.BORDER_RIGHT_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_STYLE_PROP, DesignSchemaConstants.BORDER_BOTTOM_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_COLOR_PROP, DesignSchemaConstants.BORDER_TOP_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_STYLE_PROP, DesignSchemaConstants.BORDER_TOP_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_WIDTH_PROP, DesignSchemaConstants.BORDER_TOP_WIDTH_ATTRIB ); cssDictionary.put( Style.CAN_SHRINK_PROP, DesignSchemaConstants.CAN_SHRINK_ATTRIB ); cssDictionary .put( Style.COLOR_PROP, DesignSchemaConstants.COLOR_ATTRIB ); cssDictionary.put( Style.DISPLAY_PROP, DesignSchemaConstants.SECTION_DISPLAY_ATTRIB ); cssDictionary.put( Style.FONT_FAMILY_PROP, DesignSchemaConstants.FONT_FAMILY_ATTRIB ); cssDictionary.put( Style.FONT_SIZE_PROP, DesignSchemaConstants.FONT_SIZE_ATTRIB ); cssDictionary.put( Style.FONT_STYLE_PROP, DesignSchemaConstants.FONT_STYLE_ATTRIB ); cssDictionary.put( Style.FONT_VARIANT_PROP, DesignSchemaConstants.FONT_VARIANT_ATTRIB ); cssDictionary.put( Style.FONT_WEIGHT_PROP, DesignSchemaConstants.FONT_WEIGHT_ATTRIB ); cssDictionary.put( Style.LETTER_SPACING_PROP, DesignSchemaConstants.TEXT_LETTER_SPACING_ATTRIB ); cssDictionary.put( Style.LINE_HEIGHT_PROP, DesignSchemaConstants.TEXT_LINE_HEIGHT_ATTRIB ); cssDictionary.put( Style.MARGIN_BOTTOM_PROP, DesignSchemaConstants.MARGIN_BOTTOM_ATTRIB ); cssDictionary.put( Style.MARGIN_LEFT_PROP, DesignSchemaConstants.MARGIN_LEFT_ATTRIB ); cssDictionary.put( Style.MARGIN_RIGHT_PROP, DesignSchemaConstants.MARGIN_RIGHT_ATTRIB ); cssDictionary.put( Style.MARGIN_TOP_PROP, DesignSchemaConstants.MARGIN_TOP_ATTRIB ); cssDictionary.put( Style.ORPHANS_PROP, DesignSchemaConstants.TEXT_ORPHANS_ATTRIB ); cssDictionary.put( Style.PADDING_BOTTOM_PROP, DesignSchemaConstants.PADDING_BOTTOM_ATTRIB ); cssDictionary.put( Style.PADDING_LEFT_PROP, DesignSchemaConstants.PADDING_LEFT_ATTRIB ); cssDictionary.put( Style.PADDING_RIGHT_PROP, DesignSchemaConstants.PADDING_RIGHT_ATTRIB ); cssDictionary.put( Style.PADDING_TOP_PROP, DesignSchemaConstants.PADDING_TOP_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_AFTER_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_AFTER_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_BEFORE_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_BEFORE_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_INSIDE_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_INSIDE_ATTRIB ); cssDictionary.put( Style.SHOW_IF_BLANK_PROP, DesignSchemaConstants.SECTION_SHOW_LF_BLANK_ATTRIB ); cssDictionary.put( Style.TEXT_ALIGN_PROP, DesignSchemaConstants.TEXT_ALIGN_ATTRIB ); cssDictionary.put( Style.TEXT_INDENT_PROP, DesignSchemaConstants.TEXT_INDENT_ATTRIB ); cssDictionary.put( Style.TEXT_LINE_THROUGH_PROP, DesignSchemaConstants.TEXT_LINE_THROUGH_ATTRIB ); cssDictionary.put( Style.TEXT_OVERLINE_PROP, DesignSchemaConstants.TEXT_OVERLINE_ATTRIB ); cssDictionary.put( Style.TEXT_TRANSFORM_PROP, DesignSchemaConstants.TEXT_TRANSFORM_ATTRIB ); cssDictionary.put( Style.TEXT_UNDERLINE_PROP, DesignSchemaConstants.TEXT_UNDERLINE_ATTRIB ); cssDictionary.put( Style.VERTICAL_ALIGN_PROP, DesignSchemaConstants.TEXT_VERTICAL_ALIGN_ATTRIB ); cssDictionary.put( Style.WHITE_SPACE_PROP, DesignSchemaConstants.TEXT_WHITE_SPACE_ATTRIB ); cssDictionary.put( Style.WIDOWS_PROP, DesignSchemaConstants.TEXT_WIDOWS_ATTRIB ); cssDictionary.put( Style.WORD_SPACING_PROP, DesignSchemaConstants.TEXT_WORD_SPACING_ATTRIB ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/Style.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/Style.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
6490,
10276,
10905,
12,
262,
202,
95,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
10989,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
10989,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
13603,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
13603,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
15258,
67,
60,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
15258,
67,
60,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
15258,
67,
61,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
15258,
67,
61,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
862,
31804,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
862,
31804,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
38,
7954,
67,
28891,
67,
10989,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
38,
7954,
67,
28891,
67,
10989,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
38,
7954,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
6490,
10276,
10905,
12,
262,
202,
95,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
10989,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
10989,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
13603,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
13603,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
15258,
67,
2
] |
IEntryResult[] methodrefresults = ind.queryEntries(IIndexConstants.METHOD_REF);
|
IEntryResult[] methodrefresults = ind.queryEntries(IndexerOutput.METHOD_REF);
|
public void testRefs() throws Exception{ //Add a new file to the project importFile("reftest.cpp","resources/indexer/reftest.cpp"); //$NON-NLS-1$ //$NON-NLS-2$ //Make sure project got added to index IPath testProjectPath = testProject.getFullPath(); IIndex ind = sourceIndexer.getIndex(testProjectPath,true,true); assertTrue("Index exists for project",ind != null); //$NON-NLS-1$ String [] typeRefEntryResultModel ={"EntryResult: word=typeRef/C/C/B/A, refs={ 1 }, offsets={ [ 2142] }", "EntryResult: word=typeRef/E/e1/B/A, refs={ 1 }, offsets={ [ 2104] }", "EntryResult: word=typeRef/G/ForwardA/A, refs={ 1 }, offsets={ [ 225] }", "EntryResult: word=typeRef/V/x/B/A, refs={ 1 }, offsets={ [ 2128] }"}; IEntryResult[] typerefresults = ind.queryEntries(IIndexConstants.TYPE_REF); assertTrue("Entry exists",typerefresults != null); //$NON-NLS-1$ if (typerefresults.length != typeRefEntryResultModel.length) fail("Entry Result length different from model for typeRef"); //$NON-NLS-1$ for (int i=0;i<typerefresults.length; i++) { assertEquals(typeRefEntryResultModel[i],typerefresults[i].toString()); } String [] funRefEntryResultModel ={"EntryResult: word=functionRef/something/A, refs={ 1 }, offsets={ [ 259] }"};//$NON-NLS-1$ IEntryResult[] funRefresults = ind.queryEntries(IIndexConstants.FUNCTION_REF); assertTrue("Entry exists",funRefresults != null); //$NON-NLS-1$ if (funRefresults.length != funRefEntryResultModel.length) fail("Entry Result length different from model for funcRef"); //$NON-NLS-1$ for (int i=0;i<funRefresults.length; i++) { assertEquals(funRefEntryResultModel[i],funRefresults[i].toString()); } String [] namespaceRefResultModel = {"EntryResult: word=namespaceRef/A, refs={ 1 }, offsets={ [ 210] }", "EntryResult: word=namespaceRef/B/A, refs={ 1 }, offsets={ [ 288] }"}; //$NON-NLS-1$ //$NON-NLS-2$ IEntryResult[] namespacerefresults = ind.queryEntries(IIndexConstants.NAMESPACE_REF); assertTrue("Entry exists",namespacerefresults!=null); //$NON-NLS-1$ if (namespacerefresults.length != namespaceRefResultModel.length) fail("Entry Result length different from model for namespaceRef"); //$NON-NLS-1$ for (int i=0;i<namespacerefresults.length; i++) { assertEquals(namespaceRefResultModel[i],namespacerefresults[i].toString()); } String [] fieldRefResultModel = {"EntryResult: word=fieldRef/y/C/B/A, refs={ 1 }, offsets={ [ 2161] }"}; //$NON-NLS-1$ IEntryResult[] fieldrefresults = ind.queryEntries(IIndexConstants.FIELD_REF); assertTrue("Entry exists",fieldrefresults!=null); //$NON-NLS-1$ if (fieldrefresults.length != fieldRefResultModel.length) fail("Entry Result length different from model for fieldRef"); //$NON-NLS-1$ for (int i=0;i<fieldrefresults.length; i++) { assertEquals(fieldRefResultModel[i],fieldrefresults[i].toString()); } String [] methodRefResultModel = {"EntryResult: word=methodRef/bar/C/B/A, refs={ 1 }, offsets={ [ 2184] }"}; //$NON-NLS-1$ IEntryResult[] methodrefresults = ind.queryEntries(IIndexConstants.METHOD_REF); assertTrue("Entry exists", methodrefresults != null); //$NON-NLS-1$ if (methodrefresults.length != methodRefResultModel.length) fail("Entry Result length different from model for methodRef");//$NON-NLS-1$ for (int i=0;i<methodrefresults.length; i++) { assertEquals(methodRefResultModel[i],methodrefresults[i].toString()); } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/cf1d5bf0d12520585deffeb5e217fc8ff5159112/SourceIndexerTests.java/buggy/core/org.eclipse.cdt.core.tests/indexer/org/eclipse/cdt/core/indexer/tests/SourceIndexerTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
9837,
1435,
1216,
1185,
95,
1082,
225,
368,
986,
279,
394,
585,
358,
326,
1984,
1082,
225,
1930,
812,
2932,
266,
1222,
395,
18,
4057,
84,
15937,
4683,
19,
24541,
19,
266,
1222,
395,
18,
4057,
84,
8863,
225,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
1875,
26924,
225,
368,
6464,
3071,
1984,
2363,
3096,
358,
770,
1082,
225,
467,
743,
1842,
4109,
743,
273,
1842,
4109,
18,
588,
24173,
5621,
1082,
225,
467,
1016,
1547,
273,
1084,
20877,
18,
588,
1016,
12,
3813,
4109,
743,
16,
3767,
16,
3767,
1769,
1082,
225,
1815,
5510,
2932,
1016,
1704,
364,
1984,
3113,
728,
480,
446,
1769,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1875,
26924,
225,
514,
5378,
618,
1957,
1622,
1253,
1488,
273,
16711,
1622,
1253,
30,
2076,
33,
723,
1957,
19,
39,
19,
39,
19,
38,
19,
37,
16,
9047,
5899,
404,
19879,
8738,
5899,
306,
576,
29126,
65,
289,
3113,
4405,
225,
315,
1622,
1253,
30,
2076,
33,
723,
1957,
19,
41,
19,
73,
21,
19,
38,
19,
37,
16,
9047,
5899,
404,
19879,
8738,
5899,
306,
576,
21869,
65,
289,
3113,
4405,
225,
315,
1622,
1253,
30,
2076,
33,
723,
1957,
19,
43,
19,
8514,
37,
19,
37,
16,
9047,
5899,
404,
19879,
8738,
5899,
306,
28298,
65,
289,
3113,
4405,
225,
315,
1622,
1253,
30,
2076,
33,
723,
1957,
19,
58,
19,
92,
19,
38,
19,
37,
16,
9047,
5899,
404,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
9837,
1435,
1216,
1185,
95,
1082,
225,
368,
986,
279,
394,
585,
358,
326,
1984,
1082,
225,
1930,
812,
2932,
266,
1222,
395,
18,
4057,
84,
15937,
4683,
19,
24541,
19,
266,
1222,
395,
18,
4057,
84,
8863,
225,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
1875,
26924,
225,
368,
6464,
3071,
1984,
2363,
3096,
358,
770,
1082,
225,
467,
743,
1842,
4109,
743,
273,
1842,
4109,
18,
588,
24173,
5621,
1082,
225,
467,
1016,
1547,
273,
1084,
20877,
18,
588,
1016,
12,
3813,
4109,
743,
16,
3767,
16,
3767,
1769,
1082,
225,
1815,
5510,
2932,
1016,
1704,
364,
1984,
3113,
728,
480,
446,
1769,
225,
4329,
3993,
2
] |
if (GlobalInputStream.isMoreRecentThan(f))
|
if (GlobalInputStream.isMoreRecentThan(file))
|
public void print(PrintWriter _ps) { try { // only generate class files for explicitly // defined sequence types, i.e. for typedef'd ones if ((!written) && typedefd) { // write holder file String fullName = full_name(); String className; if (fullName.indexOf('.') > 0) { pack_name = fullName.substring(0, fullName.lastIndexOf('.')); className = fullName.substring(fullName.lastIndexOf('.') + 1); } else { pack_name = ""; className = fullName; } String path = parser.out_dir + fileSeparator + pack_name.replace('.', fileSeparator); File dir = new File(path); if (!dir.exists()) { if (!dir.mkdirs()) { org.jacorb.idl.parser.fatal_error("Unable to create " + path, null); } } String fname = className + "Holder.java"; File f = new File(dir, fname); if (GlobalInputStream.isMoreRecentThan(f)) { // print the mapped java class PrintWriter ps = new PrintWriter(new java.io.FileWriter(f)); printHolderClass(className, ps); ps.close(); } fname = className + "Helper.java"; f = new File(dir, fname); if (GlobalInputStream.isMoreRecentThan(f)) { // print the mapped java class PrintWriter ps = new PrintWriter(new java.io.FileWriter(f)); printHelperClass(className, ps); ps.close(); } written = true; } } catch (java.io.IOException i) { throw new RuntimeException("File IO error" + i); } }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/1fa4fca3642e870636f7373973e37568c93c654b/SequenceType.java/clean/src/org/jacorb/idl/SequenceType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1172,
12,
5108,
2289,
389,
1121,
13,
565,
288,
3639,
775,
3639,
288,
5411,
368,
1338,
2103,
667,
1390,
364,
8122,
5411,
368,
2553,
3102,
1953,
16,
277,
18,
73,
18,
364,
618,
536,
14271,
5945,
5411,
309,
14015,
5,
9748,
13,
597,
618,
536,
72,
13,
5411,
288,
7734,
368,
1045,
10438,
585,
7734,
514,
12424,
273,
1983,
67,
529,
5621,
7734,
514,
2658,
31,
7734,
309,
261,
2854,
461,
18,
31806,
2668,
1093,
13,
405,
374,
13,
7734,
288,
10792,
2298,
67,
529,
273,
12424,
18,
28023,
12,
20,
16,
12424,
18,
2722,
31985,
2668,
1093,
10019,
10792,
2658,
273,
12424,
18,
28023,
12,
2854,
461,
18,
2722,
31985,
2668,
1093,
13,
397,
404,
1769,
7734,
289,
7734,
469,
7734,
288,
10792,
2298,
67,
529,
273,
1408,
31,
10792,
2658,
273,
12424,
31,
7734,
289,
7734,
514,
589,
273,
2082,
18,
659,
67,
1214,
397,
585,
6581,
397,
10792,
2298,
67,
529,
18,
2079,
2668,
1093,
16,
585,
6581,
1769,
7734,
1387,
1577,
273,
394,
1387,
12,
803,
1769,
7734,
309,
16051,
1214,
18,
1808,
10756,
7734,
288,
10792,
309,
16051,
1214,
18,
24816,
8291,
10756,
10792,
288,
13491,
2358,
18,
31390,
16640,
18,
350,
80,
18,
4288,
18,
30709,
67,
1636,
2932,
3370,
358,
752,
315,
397,
4766,
12900,
589,
16,
446,
1769,
10792,
289,
7734,
289,
7734,
514,
5299,
273,
2658,
397,
315,
6064,
18,
6290,
14432,
7734,
1387,
284,
273,
394,
1387,
12,
1214,
16,
5299,
1769,
7734,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1172,
12,
5108,
2289,
389,
1121,
13,
565,
288,
3639,
775,
3639,
288,
5411,
368,
1338,
2103,
667,
1390,
364,
8122,
5411,
368,
2553,
3102,
1953,
16,
277,
18,
73,
18,
364,
618,
536,
14271,
5945,
5411,
309,
14015,
5,
9748,
13,
597,
618,
536,
72,
13,
5411,
288,
7734,
368,
1045,
10438,
585,
7734,
514,
12424,
273,
1983,
67,
529,
5621,
7734,
514,
2658,
31,
7734,
309,
261,
2854,
461,
18,
31806,
2668,
1093,
13,
405,
374,
13,
7734,
288,
10792,
2298,
67,
529,
273,
12424,
18,
28023,
12,
20,
16,
12424,
18,
2722,
31985,
2668,
1093,
10019,
10792,
2658,
273,
12424,
18,
28023,
12,
2854,
461,
18,
2722,
31985,
2668,
1093,
13,
397,
404,
2
] |
{
|
{
|
private void sendReadinessParameters(PlanServiceContext psc, PrintStream out) { Iterator itSet, itDOs; int ii, jj, kk; // Get the readiness assessment HashMap sendData = getAssetAV3s (psc); if (sendData == null) { sendData = getRollUpData(psc); if (sendData == null) { out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.NUMMAINTAINED + " VALUE='0'>"); return; } } Set maintainedItems = sendData.keySet(); out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.NUMMAINTAINED + " VALUE='" + maintainedItems.size() + "'>"); for (itSet = maintainedItems.iterator(), ii=1; itSet.hasNext(); ii ++ ) {// MaintainedItem maint = (MaintainedItem) itSet.next(); String maint = (String) itSet.next();// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getItemIdentification() + "'>");// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getTypeIdentification() + "'>");// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getNomenclature() + "'>"); out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint + "'>"); HashMap itemBuckets = (HashMap) sendData.get(maint); Set directObjects = itemBuckets.keySet(); out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.NUMDIRECTOBJS + ii + " VALUE='" + directObjects.size() + "'>"); for (itDOs = directObjects.iterator(), jj=1; itDOs.hasNext(); jj ++) {// Asset ast = (Asset) itDOs.next(); String ast = (String) itDOs.next(); out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.ASSETNAMEPARAM + ii + "_" + jj + " VALUE='" + ast + "'>"); ArrayList arList = (ArrayList) itemBuckets.get(ast); out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.NUMASPECTITEMS + ii + "_" + jj + " VALUE='" + arList.size() + "'>"); for (kk = 0; kk < arList.size(); kk ++) { AspectValue[] avs = (AspectValue[]) arList.get(kk); // right now we just pass the readiness value and the end time out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.READINESSPARAM + ii + "_" + jj + "_" + (kk + 1) + " VALUE='" + avs[2].getValue() + "'>" ); out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.ATDATEPARAM + ii + "_" + jj + "_" + (kk + 1) + " VALUE='" + toYYYYMMDD (avs[1].longValue()) + "'>" );// out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.ATDATEPARAM + ii + "_" + jj + "_" + (kk + 1) + " VALUE='" + (avs[1].longValue() / 1000) + "'>" ); } } } // Create the parameter for the number of book titles in the inventory// out.println("<PARAM NAME=columns VALUE='" + overviewList.size() + "'>"); }
|
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/66cbbfcc24b4b0ed473ee80cfd37d73e7e78f870/PSP_ReadinessAssessor.java/clean/glm/src/org/cougaar/domain/mlm/ui/readiness/PSP_ReadinessAssessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1366,
1994,
6336,
2402,
12,
5365,
1179,
1042,
293,
1017,
16,
21677,
596,
13,
202,
95,
565,
4498,
518,
694,
16,
518,
3191,
87,
31,
565,
509,
6072,
16,
10684,
16,
17654,
31,
202,
202,
759,
968,
326,
855,
6336,
14158,
565,
4317,
1366,
751,
273,
24689,
5856,
23,
87,
261,
84,
1017,
1769,
565,
309,
261,
4661,
751,
422,
446,
13,
565,
288,
3639,
1366,
751,
273,
4170,
22382,
1211,
751,
12,
84,
1017,
1769,
3639,
309,
261,
4661,
751,
422,
446,
13,
3639,
288,
1850,
596,
18,
8222,
7566,
32,
8388,
6048,
1546,
397,
2720,
6336,
2610,
403,
280,
52,
1752,
1304,
18,
6069,
5535,
3217,
6964,
2056,
397,
315,
5848,
2218,
20,
28533,
1769,
1850,
327,
31,
3639,
289,
565,
289,
1377,
1000,
11566,
8707,
3126,
273,
1366,
751,
18,
856,
694,
5621,
1377,
596,
18,
8222,
7566,
32,
8388,
6048,
1546,
397,
2720,
6336,
2610,
403,
280,
52,
1752,
1304,
18,
6069,
5535,
3217,
6964,
2056,
397,
315,
5848,
13396,
397,
11566,
8707,
3126,
18,
1467,
1435,
397,
2491,
2984,
1769,
1377,
364,
261,
305,
694,
273,
11566,
8707,
3126,
18,
9838,
9334,
6072,
33,
21,
31,
518,
694,
18,
5332,
2134,
5621,
6072,
965,
262,
1377,
288,
759,
3639,
490,
1598,
8707,
1180,
11566,
273,
261,
49,
1598,
8707,
1180,
13,
518,
694,
18,
4285,
5621,
3639,
514,
11566,
273,
261,
780,
13,
518,
694,
18,
4285,
5621,
759,
3639,
2332,
18,
659,
18,
8222,
7566,
32,
8388,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1366,
1994,
6336,
2402,
12,
5365,
1179,
1042,
293,
1017,
16,
21677,
596,
13,
202,
95,
565,
4498,
518,
694,
16,
518,
3191,
87,
31,
565,
509,
6072,
16,
10684,
16,
17654,
31,
202,
202,
759,
968,
326,
855,
6336,
14158,
565,
4317,
1366,
751,
273,
24689,
5856,
23,
87,
261,
84,
1017,
1769,
565,
309,
261,
4661,
751,
422,
446,
13,
565,
288,
3639,
1366,
751,
273,
4170,
22382,
1211,
751,
12,
84,
1017,
1769,
3639,
309,
261,
4661,
751,
422,
446,
13,
3639,
288,
1850,
596,
18,
8222,
7566,
32,
8388,
6048,
1546,
397,
2720,
6336,
2610,
403,
280,
52,
1752,
1304,
18,
6069,
5535,
3217,
6964,
2056,
397,
315,
5848,
2218,
20,
2
] |
diskFile.close(); incomingData.close(); } catch (Exception e) { System.out .println("Error receiving file in BINARY format for STOR"); System.out.println(e); return; }
|
diskFile.close(); incomingData.close();
|
public void storI(File saveFile, String fileName, boolean append) { BufferedInputStream incomingData = null; BufferedOutputStream diskFile = null; int byt = -1; Socket dataSocket = getDataConnection(); output("150 Opening BINARY mode data connection to receive " + fileName); try { incomingData = new BufferedInputStream(dataSocket.getInputStream()); diskFile = new BufferedOutputStream(new FileOutputStream(saveFile, append)); byt = incomingData.read(); while (byt >= 0) { if (byt >= 0) { diskFile.write(byt); } byt = incomingData.read(); } diskFile.flush(); diskFile.close(); incomingData.close(); } catch (Exception e) { System.out .println("Error receiving file in BINARY format for STOR"); System.out.println(e); return; } }
|
46419 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46419/a457f8cb2a16bdeabc16fbe1278f38ef45783f6e/FtpConnection.java/buggy/src/org/carion/s3ftp/FtpConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19705,
45,
12,
812,
1923,
812,
16,
514,
3968,
16,
1250,
714,
13,
288,
3639,
24742,
6935,
751,
273,
446,
31,
3639,
28649,
4234,
812,
273,
446,
31,
3639,
509,
635,
88,
273,
300,
21,
31,
3639,
8758,
501,
4534,
273,
4303,
1952,
5621,
3639,
876,
2932,
23014,
3502,
310,
22468,
1965,
501,
1459,
358,
6798,
315,
397,
3968,
1769,
3639,
775,
288,
5411,
6935,
751,
273,
394,
24742,
12,
892,
4534,
18,
588,
4348,
10663,
5411,
4234,
812,
273,
394,
28649,
12,
2704,
12942,
12,
5688,
812,
16,
10792,
714,
10019,
5411,
635,
88,
273,
6935,
751,
18,
896,
5621,
5411,
1323,
261,
1637,
88,
1545,
374,
13,
288,
7734,
309,
261,
1637,
88,
1545,
374,
13,
288,
10792,
4234,
812,
18,
2626,
12,
1637,
88,
1769,
7734,
289,
7734,
635,
88,
273,
6935,
751,
18,
896,
5621,
5411,
289,
5411,
4234,
812,
18,
11330,
5621,
5411,
4234,
812,
18,
4412,
5621,
5411,
6935,
751,
18,
4412,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
659,
10792,
263,
8222,
2932,
668,
15847,
585,
316,
22468,
740,
364,
2347,
916,
8863,
5411,
2332,
18,
659,
18,
8222,
12,
73,
1769,
5411,
327,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19705,
45,
12,
812,
1923,
812,
16,
514,
3968,
16,
1250,
714,
13,
288,
3639,
24742,
6935,
751,
273,
446,
31,
3639,
28649,
4234,
812,
273,
446,
31,
3639,
509,
635,
88,
273,
300,
21,
31,
3639,
8758,
501,
4534,
273,
4303,
1952,
5621,
3639,
876,
2932,
23014,
3502,
310,
22468,
1965,
501,
1459,
358,
6798,
315,
397,
3968,
1769,
3639,
775,
288,
5411,
6935,
751,
273,
394,
24742,
12,
892,
4534,
18,
588,
4348,
10663,
5411,
4234,
812,
273,
394,
28649,
12,
2704,
12942,
12,
5688,
812,
16,
10792,
714,
10019,
5411,
635,
88,
273,
6935,
751,
18,
896,
5621,
5411,
1323,
261,
1637,
88,
1545,
374,
13,
288,
7734,
309,
261,
1637,
88,
1545,
2
] |
if (fNormalizeData) { if (fUnionType) { if (augs != null) fDocumentHandler.characters(fEmptyXMLStr, augs); } else { fDocumentHandler.characters(fNormalizedStr, augs); } } else {
|
if (fNormalizeData && fUnionType) { if (augs != null) fDocumentHandler.characters(fEmptyXMLStr, augs); } else {
|
public void characters(XMLString text, Augmentations augs) throws XNIException { handleCharacters(text); // call handlers if (fDocumentHandler != null) { if (fNormalizeData) { if (fUnionType) { // for union types we can't normalize data // thus we only need to send augs information if any; // the normalized data for union will be send // after normalization is performed (at the endElement()) if (augs != null) fDocumentHandler.characters(fEmptyXMLStr, augs); } else { // otherwise pass the normalized string as the text fDocumentHandler.characters(fNormalizedStr, augs); } } else { fDocumentHandler.characters(text, augs); } } } // characters(XMLString)
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/b23bcf2a5319b4bb0551e9f81757dd617a044fb0/XMLSchemaValidator.java/clean/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3949,
12,
4201,
780,
977,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
1640,
11600,
12,
955,
1769,
3639,
368,
745,
4919,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
309,
261,
74,
14380,
751,
13,
288,
9079,
309,
261,
74,
14325,
559,
13,
288,
10402,
368,
364,
7812,
1953,
732,
848,
1404,
3883,
501,
10402,
368,
12493,
732,
1338,
1608,
358,
1366,
279,
9024,
1779,
309,
1281,
31,
10402,
368,
326,
5640,
501,
364,
7812,
903,
506,
1366,
10402,
368,
1839,
13728,
353,
9591,
261,
270,
326,
14840,
10756,
10402,
309,
261,
8377,
564,
480,
446,
13,
15604,
284,
2519,
1503,
18,
20558,
12,
74,
1921,
4201,
1585,
16,
279,
9024,
1769,
7734,
289,
7734,
469,
288,
10792,
368,
3541,
1342,
326,
5640,
533,
487,
326,
977,
10792,
284,
2519,
1503,
18,
20558,
12,
74,
15577,
1585,
16,
279,
9024,
1769,
7734,
289,
5411,
289,
469,
288,
7734,
284,
2519,
1503,
18,
20558,
12,
955,
16,
279,
9024,
1769,
5411,
289,
3639,
289,
565,
289,
368,
3949,
12,
4201,
780,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3949,
12,
4201,
780,
977,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
1640,
11600,
12,
955,
1769,
3639,
368,
745,
4919,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
309,
261,
74,
14380,
751,
13,
288,
9079,
309,
261,
74,
14325,
559,
13,
288,
10402,
368,
364,
7812,
1953,
732,
848,
1404,
3883,
501,
10402,
368,
12493,
732,
1338,
1608,
358,
1366,
279,
9024,
1779,
309,
1281,
31,
10402,
368,
326,
5640,
501,
364,
7812,
903,
506,
1366,
10402,
368,
1839,
13728,
353,
9591,
261,
270,
326,
14840,
10756,
10402,
309,
261,
8377,
564,
480,
446,
13,
15604,
284,
2519,
1503,
18,
20558,
12,
74,
1921,
2
] |
RepositoryIndexSearcher repoSearcher = factory.createPomRepositoryIndexSearcher( indexer ); Query qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_ID, PomRepositoryIndex.POM_TYPE + pom.getId() );
|
RepositoryIndexSearcher repoSearcher = factory.createDefaultRepositoryIndexSearcher( indexer ); Query qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_ID, PomRepositoryIndex.POM + pom.getId() );
|
public void testDeletePomDocument() throws Exception { createTestIndex(); RepositoryIndexingFactory factory = (RepositoryIndexingFactory) lookup( RepositoryIndexingFactory.ROLE ); PomRepositoryIndex indexer = factory.createPomRepositoryIndex( indexPath, repository ); Model pom = getPom( "org.apache.maven", "maven-artifact", "2.0.1" ); indexer.deleteDocument( PomRepositoryIndex.FLD_ID, PomRepositoryIndex.POM_TYPE + pom.getId() ); RepositoryIndexSearcher repoSearcher = factory.createPomRepositoryIndexSearcher( indexer ); Query qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_ID, PomRepositoryIndex.POM_TYPE + pom.getId() ); List artifactList = repoSearcher.search( qry ); assertEquals( artifactList.size(), 0 ); }
|
28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/b06ee5cab37ea8091419fd4d369457271ce9c12f/PomRepositoryIndexingTest.java/buggy/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2613,
52,
362,
2519,
1435,
3639,
1216,
1185,
565,
288,
3639,
752,
4709,
1016,
5621,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
453,
362,
3305,
1016,
12635,
273,
3272,
18,
2640,
52,
362,
3305,
1016,
12,
770,
743,
16,
3352,
11272,
3639,
3164,
21400,
273,
1689,
362,
12,
315,
3341,
18,
19211,
18,
81,
7638,
3113,
315,
81,
7638,
17,
17706,
3113,
315,
22,
18,
20,
18,
21,
6,
11272,
3639,
12635,
18,
3733,
2519,
12,
453,
362,
3305,
1016,
18,
42,
12069,
67,
734,
16,
453,
362,
3305,
1016,
18,
52,
1872,
67,
2399,
397,
21400,
18,
26321,
1435,
11272,
3639,
6281,
1016,
2979,
264,
3538,
2979,
264,
273,
3272,
18,
2640,
52,
362,
3305,
1016,
2979,
264,
12,
12635,
11272,
3639,
2770,
16788,
273,
394,
10326,
12812,
1138,
12,
453,
362,
3305,
1016,
18,
42,
12069,
67,
734,
16,
453,
362,
3305,
1016,
18,
52,
1872,
67,
2399,
397,
21400,
18,
26321,
1435,
11272,
3639,
987,
6462,
682,
273,
3538,
2979,
264,
18,
3072,
12,
16788,
11272,
3639,
1815,
8867,
12,
6462,
682,
18,
1467,
9334,
374,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2613,
52,
362,
2519,
1435,
3639,
1216,
1185,
565,
288,
3639,
752,
4709,
1016,
5621,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
453,
362,
3305,
1016,
12635,
273,
3272,
18,
2640,
52,
362,
3305,
1016,
12,
770,
743,
16,
3352,
11272,
3639,
3164,
21400,
273,
1689,
362,
12,
315,
3341,
18,
19211,
18,
81,
7638,
3113,
315,
81,
7638,
17,
17706,
3113,
315,
22,
18,
20,
18,
21,
6,
11272,
3639,
12635,
18,
3733,
2519,
12,
453,
362,
3305,
1016,
18,
42,
12069,
67,
734,
16,
453,
362,
3305,
1016,
18,
52,
1872,
67,
2399,
397,
21400,
18,
26321,
1435,
11272,
3639,
2
] |
} else if ( dpct == DataPointComponentType.PERCENTILE_ORTHOGONAL_VALUE_LITERAL ) {
|
public final ISeriesRenderingHints getSeriesRenderingHints( SeriesDefinition sdOrthogonal, Series seOrthogonal ) throws ChartException, IllegalArgumentException { if ( seOrthogonal == null || seOrthogonal.getClass( ) == SeriesImpl.class ) { // EMPTY PLOT RENDERING TECHNIQUE return null; } OneAxis oaxOrthogonal = findOrthogonalAxis( seOrthogonal ); if ( oaxOrthogonal == null ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.NOT_FOUND, "exception.axis.series.link.broken", //$NON-NLS-1$ new Object[]{ seOrthogonal }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } final OneAxis oaxBase = aax.getPrimaryBase( ); final SeriesDefinition sdBase = (SeriesDefinition) oaxBase.getModelAxis( ) .getSeriesDefinitions( ) .get( 0 ); final AutoScale scBase = oaxBase.getScale( ); final AutoScale scOrthogonal = oaxOrthogonal.getScale( ); final int iTickCount = scBase.getTickCount( ); int iUnitCount = iTickCount; final int iDirection = scBase.getDirection( ); // convert to signed unit size. final double dUnitSize = ( iDirection == BACKWARD || ( iDirection == AUTO && aax.areAxesSwapped( ) ) ) ? -scBase.getUnitSize( ) : scBase.getUnitSize( ); if ( scBase.getType( ) == IConstants.DATE_TIME ) { // TBD: HANDLE DATETIME VALUE VS TEXT AXIS } double[] daTickCoordinates = scBase.getTickCordinates( ); Object oDataBase = null; DataSetIterator dsiDataBase = scBase.getData( ); Object oDataOrthogonal; DataSetIterator dsiDataOrthogonal = getTypedDataSet( seOrthogonal, oaxOrthogonal.getScale( ).getType( ) ); double dOrthogonalZero = 0; if ( ( scOrthogonal.getType( ) & NUMERICAL ) == NUMERICAL ) { dOrthogonalZero = getLocation( scOrthogonal, 0 ); } else { dOrthogonalZero = scOrthogonal.getStart( ); } double dBaseZero = ( ( scBase.getType( ) & NUMERICAL ) == IConstants.NUMERICAL && !oaxBase.isCategoryScale( ) ) ? getLocation( scBase, 0 ) : scBase.getStart( ); if ( scBase.getType( ) == TEXT || oaxBase.isCategoryScale( ) ) { iUnitCount--; } double dX = 0, dY = 0, dLength = 0; Location lo; final int iBaseCount = dsiDataBase.size( ); final int iOrthogonalCount = dsiDataOrthogonal.size( ); DataPointHints[] dpa = null; // DO NOT COMPUTE DATA POINT HINTS FOR OUT-OF-SYNC DATA if ( iBaseCount != iOrthogonalCount ) { logger.log( ILogger.INFORMATION, Messages.getString( "exception.base.orthogonal.inconsistent.count", //$NON-NLS-1$ new Object[]{ new Integer( iBaseCount ), new Integer( iOrthogonalCount ) }, rtc.getULocale( ) ) ); } else { dpa = new DataPointHints[iBaseCount]; final boolean bScatter = ( oaxBase.getScale( ).getType( ) != IConstants.TEXT && !oaxBase.isCategoryScale( ) ); // OPTIMIZED PRE-FETCH FORMAT SPECIFIERS FOR ALL DATA POINTS final DataPoint dp = seOrthogonal.getDataPoint( ); final EList el = dp.getComponents( ); DataPointComponent dpc; DataPointComponentType dpct; FormatSpecifier fsBase = null, fsOrthogonal = null, fsSeries = null, fsPercentile = null; for ( int i = 0; i < el.size( ); i++ ) { dpc = (DataPointComponent) el.get( i ); dpct = dpc.getType( ); if ( dpct == DataPointComponentType.BASE_VALUE_LITERAL ) { fsBase = dpc.getFormatSpecifier( ); if ( fsBase == null ) // BACKUP { fsBase = sdBase.getFormatSpecifier( ); } } else if ( dpct == DataPointComponentType.ORTHOGONAL_VALUE_LITERAL ) { fsOrthogonal = dpc.getFormatSpecifier( ); if ( fsOrthogonal == null && seOrthogonal.eContainer( ) instanceof SeriesDefinition ) { fsOrthogonal = ( (SeriesDefinition) seOrthogonal.eContainer( ) ).getFormatSpecifier( ); } } else if ( dpct == DataPointComponentType.SERIES_VALUE_LITERAL ) { fsSeries = dpc.getFormatSpecifier( ); } else if ( dpct == DataPointComponentType.PERCENTILE_ORTHOGONAL_VALUE_LITERAL ) { fsPercentile = dpc.getFormatSpecifier( ); } } dsiDataBase.reset( ); dsiDataOrthogonal.reset( ); UserDataSetHints udsh = new UserDataSetHints( seOrthogonal.getDataSets( ) ); udsh.reset( ); double total = 0; boolean isZeroValue = true; // get total orthogonal value. for ( int i = 0; i < iOrthogonalCount; i++ ) { Object v = dsiDataOrthogonal.next( ); if ( v instanceof Number ) { if ( ( (Number) v ).doubleValue( ) != 0.0 ) { isZeroValue = false; } total += ( (Number) v ).doubleValue( ); } else if ( v instanceof NumberDataElement ) { if ( ( (NumberDataElement) v ).getValue( ) != 0.0 ) { isZeroValue = false; } total += ( (NumberDataElement) v ).getValue( ); } } dsiDataOrthogonal.reset( ); for ( int i = 0; i < iBaseCount; i++ ) { oDataBase = dsiDataBase.next( ); oDataOrthogonal = dsiDataOrthogonal.next( ); if ( !bScatter ) { if ( aax.areAxesSwapped( ) ) { dY = daTickCoordinates[0] + dUnitSize * i; try { dX = getLocation( scOrthogonal, oDataOrthogonal ); } catch ( IllegalArgumentException nvex ) { // dX = dOrthogonalZero; dX = Double.NaN; } catch ( ChartException dfex ) { dX = dOrthogonalZero; // FOR CUSTOM DATA ELEMENTS } } else { dX = daTickCoordinates[0] + dUnitSize * i; try { dY = getLocation( scOrthogonal, oDataOrthogonal ); } catch ( IllegalArgumentException nvex ) { // dY = dOrthogonalZero; dY = Double.NaN; } catch ( ChartException dfex ) { dY = dOrthogonalZero; // FOR CUSTOM DATA ELEMENTS } } } else { // SCATTER CHARTS (BASE AXIS != CATEGORY AXIS) try { dX = getLocation( scBase, oDataBase ); } catch ( IllegalArgumentException nvex ) { dX = dBaseZero; } catch ( ChartException dfex ) { dX = dBaseZero; // FOR CUSTOM DATA ELEMENTS } try { dY = getLocation( scOrthogonal, oDataOrthogonal ); } catch ( IllegalArgumentException nvex ) { // dY = dOrthogonalZero; // MAP TO ZERO dX = Double.NaN; } catch ( ChartException dfex ) { dY = dOrthogonalZero; // FOR CUSTOM DATA ELEMENTS } if ( aax.areAxesSwapped( ) ) { final double dTemp = dX; dX = dY; dY = dTemp; } } lo = LocationImpl.create( dX, dY ); dLength = ( i < iTickCount - 1 ) ? daTickCoordinates[i + 1] - daTickCoordinates[i] : 0; Object percentileValue = null; if ( total != 0 ) { if ( oDataOrthogonal instanceof Number ) { percentileValue = new Double( ( (Number) oDataOrthogonal ).doubleValue( ) / total ); } else if ( oDataOrthogonal instanceof NumberDataElement ) { percentileValue = new Double( ( (NumberDataElement) oDataOrthogonal ).getValue( ) / total ); } } else if ( isZeroValue == true ) { percentileValue = new Double( 1.0 / iOrthogonalCount ); } dpa[i] = new DataPointHints( oDataBase, oDataOrthogonal, seOrthogonal.getSeriesIdentifier( ), percentileValue, seOrthogonal.getDataPoint( ), fsBase, fsOrthogonal, fsSeries, fsPercentile, i, lo, dLength, rtc ); udsh.next( dpa[i] ); } } return new SeriesRenderingHints( this, oaxBase.getAxisCoordinate( ), scOrthogonal.getStart( ), dOrthogonalZero, dSeriesThickness, daTickCoordinates, dpa, scBase, scOrthogonal, ssl, dsiDataBase, dsiDataOrthogonal ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/65c7a4aef75a07b56d9cec83d077f59629977738/PlotWith2DAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith2DAxes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
467,
6485,
14261,
13368,
336,
6485,
14261,
13368,
12,
1082,
202,
6485,
1852,
8349,
1162,
451,
28396,
16,
9225,
695,
1162,
451,
28396,
262,
1082,
202,
15069,
14804,
503,
16,
2754,
202,
95,
202,
202,
430,
261,
695,
1162,
451,
28396,
422,
446,
9506,
202,
20081,
695,
1162,
451,
28396,
18,
588,
797,
12,
262,
422,
9225,
2828,
18,
1106,
262,
202,
202,
95,
1082,
202,
759,
8984,
453,
1502,
56,
28332,
1360,
25156,
1792,
50,
45,
4067,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
3335,
6558,
320,
651,
1162,
451,
28396,
273,
1104,
1162,
451,
28396,
6558,
12,
695,
1162,
451,
28396,
11272,
202,
202,
430,
261,
320,
651,
1162,
451,
28396,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
4400,
67,
9294,
16,
6862,
202,
6,
4064,
18,
4890,
18,
10222,
18,
1232,
18,
70,
19906,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
1033,
63,
7073,
25083,
202,
307,
1162,
451,
28396,
6862,
202,
5779,
6862,
202,
5058,
18,
588,
18731,
12,
436,
5111,
18,
588,
57,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
6385,
6942,
6558,
320,
651,
2171,
273,
279,
651,
18,
588,
6793,
2171,
12,
11272,
202,
202,
6385,
9225,
1852,
8349,
2171,
273,
261,
6485,
1852,
13,
320,
651,
2171,
18,
588,
1488,
6558,
12,
262,
9506,
202,
18,
588,
6485,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
467,
6485,
14261,
13368,
336,
6485,
14261,
13368,
12,
1082,
202,
6485,
1852,
8349,
1162,
451,
28396,
16,
9225,
695,
1162,
451,
28396,
262,
1082,
202,
15069,
14804,
503,
16,
2754,
202,
95,
202,
202,
430,
261,
695,
1162,
451,
28396,
422,
446,
9506,
202,
20081,
695,
1162,
451,
28396,
18,
588,
797,
12,
262,
422,
9225,
2828,
18,
1106,
262,
202,
202,
95,
1082,
202,
759,
8984,
453,
1502,
56,
28332,
1360,
25156,
1792,
50,
45,
4067,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
3335,
6558,
320,
651,
1162,
451,
28396,
273,
1104,
1162,
451,
28396,
6558,
12,
695,
1162,
451,
28396,
11272,
202,
202,
430,
261,
320,
651,
1162,
451,
2
] |
|
public org.quickfix.field.SolicitedFlag getSolicitedFlag() throws FieldNotFound { org.quickfix.field.SolicitedFlag value = new org.quickfix.field.SolicitedFlag();
|
public quickfix.field.SolicitedFlag getSolicitedFlag() throws FieldNotFound { quickfix.field.SolicitedFlag value = new quickfix.field.SolicitedFlag();
|
public org.quickfix.field.SolicitedFlag getSolicitedFlag() throws FieldNotFound { org.quickfix.field.SolicitedFlag value = new org.quickfix.field.SolicitedFlag(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix43/OrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
55,
1415,
16261,
4678,
1322,
1415,
16261,
4678,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
55,
1415,
16261,
4678,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
55,
1415,
16261,
4678,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
55,
1415,
16261,
4678,
1322,
1415,
16261,
4678,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
55,
1415,
16261,
4678,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
55,
1415,
16261,
4678,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String dest = constant ? "constant" : "class variable";
|
String dest = constant ? "constant" : "class variable";
|
protected void setAv(RubyId id, RubyObject value, boolean constant) { String dest = constant ? "constant" : "class variable"; if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException(getRuby(), "Insecure: can't set " + dest); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } if (constant && (getInstanceVariables().get(id) != null)) { //getRuby().warn("already initialized " + dest + " " + name); } if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(id, value); }
|
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
444,
3769,
12,
54,
10340,
548,
612,
16,
19817,
921,
460,
16,
1250,
5381,
13,
288,
202,
202,
780,
1570,
273,
5381,
692,
315,
14384,
6,
294,
315,
1106,
2190,
14432,
202,
202,
430,
16051,
291,
29048,
1435,
597,
4170,
10340,
7675,
588,
4368,
2355,
1435,
1545,
1059,
13,
288,
1082,
202,
12849,
394,
19817,
24918,
12,
588,
54,
10340,
9334,
315,
382,
8869,
30,
848,
1404,
444,
315,
397,
1570,
1769,
202,
202,
97,
202,
202,
430,
261,
291,
42,
9808,
10756,
288,
1082,
202,
12849,
394,
19817,
42,
9808,
503,
12,
588,
54,
10340,
9334,
315,
1106,
19,
2978,
8863,
202,
202,
97,
202,
202,
430,
261,
14384,
597,
261,
588,
1442,
6158,
7675,
588,
12,
350,
13,
480,
446,
3719,
288,
1082,
202,
759,
588,
54,
10340,
7675,
8935,
2932,
17583,
6454,
315,
397,
1570,
397,
315,
315,
397,
508,
1769,
202,
202,
97,
202,
202,
430,
261,
588,
1442,
6158,
1435,
422,
446,
13,
288,
1082,
202,
542,
1442,
6158,
12,
2704,
19817,
8658,
10663,
202,
202,
97,
202,
202,
588,
1442,
6158,
7675,
458,
12,
350,
16,
460,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
444,
3769,
12,
54,
10340,
548,
612,
16,
19817,
921,
460,
16,
1250,
5381,
13,
288,
202,
202,
780,
1570,
273,
5381,
692,
315,
14384,
6,
294,
315,
1106,
2190,
14432,
202,
202,
430,
16051,
291,
29048,
1435,
597,
4170,
10340,
7675,
588,
4368,
2355,
1435,
1545,
1059,
13,
288,
1082,
202,
12849,
394,
19817,
24918,
12,
588,
54,
10340,
9334,
315,
382,
8869,
30,
848,
1404,
444,
315,
397,
1570,
1769,
202,
202,
97,
202,
202,
430,
261,
291,
42,
9808,
10756,
288,
1082,
202,
12849,
394,
19817,
42,
9808,
503,
12,
588,
54,
10340,
9334,
315,
1106,
19,
2978,
8863,
202,
202,
97,
202,
202,
430,
261,
14384,
597,
261,
588,
1442,
6158,
2
] |
else if( windowName.equals("_parent") ) { window = opener.getParentWindow(); windowName = "";
|
else if( windowToOpen.equals("_parent") ) { webWindow = opener.getParentWindow(); windowToOpen = "";
|
private WebWindow openTargetWindow( final WebWindow opener, String windowName, String defaultName ) { Assert.notNull("opener", opener); Assert.notNull("defaultName", defaultName); if( windowName == null || windowName.length() == 0 ) { windowName = defaultName; } WebWindow window = null; if( windowName.equals("_self") ) { window = opener; windowName = ""; } else if( windowName.equals("_parent") ) { window = opener.getParentWindow(); windowName = ""; } else if( windowName.equals("_top") ) { window = opener.getTopWindow(); windowName = ""; } else if( windowName.equals("_blank") ) { // Leave window null to create a new window. windowName = ""; } else if( windowName.length() != 0 ) { try { window = getWebWindowByName(windowName); } catch( final WebWindowNotFoundException e ) { // Fall through - a new window will be created below } } if( window == null ) { window = new TopLevelWindow(windowName, this); fireWindowOpened( new WebWindowEvent(window, WebWindowEvent.OPEN, null, null) ); } if( window instanceof TopLevelWindow && window != opener.getTopWindow() ) { ((TopLevelWindow)window).setOpener(opener); } return window; }
|
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/bfbb9e2a2e54bf7040308f5f0b4fd744c80370c8/WebClient.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2999,
3829,
1696,
2326,
3829,
12,
727,
2999,
3829,
20532,
16,
3639,
514,
2742,
461,
16,
514,
805,
461,
262,
288,
3639,
5452,
18,
902,
2041,
2932,
25098,
3113,
20532,
1769,
3639,
5452,
18,
902,
2041,
2932,
1886,
461,
3113,
805,
461,
1769,
3639,
309,
12,
2742,
461,
422,
446,
747,
2742,
461,
18,
2469,
1435,
422,
374,
262,
288,
5411,
2742,
461,
273,
805,
461,
31,
3639,
289,
3639,
2999,
3829,
2742,
273,
446,
31,
3639,
309,
12,
2742,
461,
18,
14963,
2932,
67,
2890,
7923,
262,
288,
5411,
2742,
273,
20532,
31,
5411,
2742,
461,
273,
1408,
31,
3639,
289,
3639,
469,
309,
12,
2742,
461,
18,
14963,
2932,
67,
2938,
7923,
262,
288,
5411,
2742,
273,
20532,
18,
588,
3054,
3829,
5621,
5411,
2742,
461,
273,
1408,
31,
3639,
289,
3639,
469,
309,
12,
2742,
461,
18,
14963,
2932,
67,
3669,
7923,
262,
288,
5411,
2742,
273,
20532,
18,
588,
3401,
3829,
5621,
5411,
2742,
461,
273,
1408,
31,
3639,
289,
3639,
469,
309,
12,
2742,
461,
18,
14963,
2932,
67,
12111,
7923,
262,
288,
5411,
368,
21131,
2742,
446,
358,
752,
279,
394,
2742,
18,
5411,
2742,
461,
273,
1408,
31,
3639,
289,
3639,
469,
309,
12,
2742,
461,
18,
2469,
1435,
480,
374,
262,
288,
5411,
775,
288,
7734,
2742,
273,
20312,
3829,
5911,
12,
5668,
461,
1769,
5411,
289,
5411,
1044,
12,
727,
2999,
3829,
3990,
425,
262,
288,
7734,
368,
23647,
3059,
300,
279,
394,
2742,
903,
506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2999,
3829,
1696,
2326,
3829,
12,
727,
2999,
3829,
20532,
16,
3639,
514,
2742,
461,
16,
514,
805,
461,
262,
288,
3639,
5452,
18,
902,
2041,
2932,
25098,
3113,
20532,
1769,
3639,
5452,
18,
902,
2041,
2932,
1886,
461,
3113,
805,
461,
1769,
3639,
309,
12,
2742,
461,
422,
446,
747,
2742,
461,
18,
2469,
1435,
422,
374,
262,
288,
5411,
2742,
461,
273,
805,
461,
31,
3639,
289,
3639,
2999,
3829,
2742,
273,
446,
31,
3639,
309,
12,
2742,
461,
18,
14963,
2932,
67,
2890,
7923,
262,
288,
5411,
2742,
273,
20532,
31,
5411,
2742,
461,
273,
1408,
31,
3639,
289,
3639,
469,
309,
12,
2742,
461,
18,
14963,
2932,
67,
2938,
7923,
262,
288,
5411,
2
] |
updateRunnableQueue.resumeExecution();
|
resume();
|
public void manageUpdates(final ImageRenderer r) { updateRunnableQueue.preemptLater(new Runnable() { public void run() { synchronized (UpdateManager.this) { running = true; updateTracker = new UpdateTracker(); RootGraphicsNode root = graphicsNode.getRoot(); if (root != null){ root.addTreeGraphicsNodeChangeListener (updateTracker); } repaintManager = new RepaintManager(r); fireEvent(startedDispatcher, new UpdateManagerEvent(this, null, null)); started = true; } } }); updateRunnableQueue.resumeExecution(); }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/6cc5a61ef36c52d789980a155601bb84dd6c06d5/UpdateManager.java/clean/sources/org/apache/batik/bridge/UpdateManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10680,
5121,
12,
6385,
3421,
6747,
436,
13,
288,
3639,
1089,
20013,
3183,
18,
1484,
5744,
20607,
12,
2704,
10254,
1435,
288,
7734,
1071,
918,
1086,
1435,
288,
10792,
3852,
261,
1891,
1318,
18,
2211,
13,
288,
13491,
3549,
273,
638,
31,
27573,
1089,
8135,
273,
394,
2315,
8135,
5621,
13491,
7450,
17558,
907,
1365,
273,
17313,
907,
18,
588,
2375,
5621,
13491,
309,
261,
3085,
480,
446,
15329,
18701,
1365,
18,
1289,
2471,
17558,
907,
15744,
27573,
261,
2725,
8135,
1769,
13491,
289,
13491,
24962,
1318,
273,
18701,
394,
868,
84,
1598,
1318,
12,
86,
1769,
13491,
15659,
12,
14561,
6681,
16,
21394,
394,
2315,
1318,
1133,
12,
2211,
16,
446,
16,
446,
10019,
13491,
5746,
273,
638,
31,
10792,
289,
7734,
289,
5411,
15549,
3639,
10774,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10680,
5121,
12,
6385,
3421,
6747,
436,
13,
288,
3639,
1089,
20013,
3183,
18,
1484,
5744,
20607,
12,
2704,
10254,
1435,
288,
7734,
1071,
918,
1086,
1435,
288,
10792,
3852,
261,
1891,
1318,
18,
2211,
13,
288,
13491,
3549,
273,
638,
31,
27573,
1089,
8135,
273,
394,
2315,
8135,
5621,
13491,
7450,
17558,
907,
1365,
273,
17313,
907,
18,
588,
2375,
5621,
13491,
309,
261,
3085,
480,
446,
15329,
18701,
1365,
18,
1289,
2471,
17558,
907,
15744,
27573,
261,
2725,
8135,
1769,
13491,
289,
13491,
24962,
1318,
273,
18701,
394,
868,
84,
1598,
1318,
12,
86,
1769,
13491,
15659,
12,
14561,
6681,
16,
21394,
394,
2315,
1318,
1133,
12,
2211,
16,
446,
16,
446,
10019,
13491,
2
] |
Channel channel = getChannel(); if (channel != null && channel instanceof SelectableChannel) { try { ((SelectableChannel)channel).configureBlocking(block); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } }
|
if(!(handler instanceof IOHandlerNio)) { throw getRuntime().newNotImplementedError("FCNTL only works with Nio based handlers"); } try { ((IOHandlerNio) handler).setBlocking(block); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); }
|
public IRubyObject fcntl(IRubyObject cmd, IRubyObject arg) throws IOException { long realCmd = cmd.convertToInteger().getLongValue(); // Fixme: Arg may also be true, false, and nil and still be valid. Strangely enough, // protocol conversion is not happening in Ruby on this arg? if (!(arg instanceof RubyNumeric)) { return getRuntime().newFixnum(0); } long realArg = ((RubyNumeric)arg).getLongValue(); // Fixme: Only F_SETFL is current supported if (realCmd == 1L) { // cmd is F_SETFL boolean block = false; if((realArg & IOModes.NONBLOCK) == IOModes.NONBLOCK) { block = true; } Channel channel = getChannel(); if (channel != null && channel instanceof SelectableChannel) { try { ((SelectableChannel)channel).configureBlocking(block); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } } } return getRuntime().newFixnum(0); }
|
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/404fdac0a79f1b57c3fb97914fbafb91618ca119/RubyIO.java/clean/src/org/jruby/RubyIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
30894,
12,
7937,
10340,
921,
1797,
16,
15908,
10340,
921,
1501,
13,
1216,
1860,
288,
3639,
1525,
2863,
5931,
273,
1797,
18,
6283,
774,
4522,
7675,
588,
3708,
620,
5621,
7734,
368,
12139,
3501,
30,
14448,
2026,
2546,
506,
638,
16,
629,
16,
471,
515,
471,
4859,
506,
923,
18,
225,
3978,
539,
2357,
7304,
16,
540,
368,
1771,
4105,
353,
486,
5865,
310,
316,
19817,
603,
333,
1501,
35,
3639,
309,
16051,
12,
3175,
1276,
19817,
9902,
3719,
288,
5411,
327,
18814,
7675,
2704,
8585,
2107,
12,
20,
1769,
3639,
289,
7734,
1525,
2863,
4117,
273,
14015,
54,
10340,
9902,
13,
3175,
2934,
588,
3708,
620,
5621,
3639,
368,
12139,
3501,
30,
5098,
478,
67,
4043,
19054,
353,
783,
3260,
3639,
309,
261,
7688,
5931,
422,
404,
48,
13,
288,
225,
368,
1797,
353,
478,
67,
4043,
19054,
5411,
1250,
1203,
273,
629,
31,
13491,
309,
12443,
7688,
4117,
473,
1665,
18868,
18,
3993,
11403,
13,
422,
1665,
18868,
18,
3993,
11403,
13,
288,
7734,
1203,
273,
638,
31,
5411,
289,
13491,
5307,
1904,
273,
16454,
5621,
5411,
309,
261,
4327,
480,
446,
597,
1904,
1276,
6766,
429,
2909,
13,
288,
7734,
775,
288,
10792,
14015,
31544,
2909,
13,
4327,
2934,
14895,
8728,
12,
2629,
1769,
7734,
289,
1044,
261,
14106,
425,
13,
288,
10792,
604,
18814,
7675,
2704,
4294,
668,
12,
73,
18,
24906,
10663,
7734,
289,
5411,
289,
1171,
289,
7734,
327,
18814,
7675,
2704,
8585,
2107,
12,
20,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
30894,
12,
7937,
10340,
921,
1797,
16,
15908,
10340,
921,
1501,
13,
1216,
1860,
288,
3639,
1525,
2863,
5931,
273,
1797,
18,
6283,
774,
4522,
7675,
588,
3708,
620,
5621,
7734,
368,
12139,
3501,
30,
14448,
2026,
2546,
506,
638,
16,
629,
16,
471,
515,
471,
4859,
506,
923,
18,
225,
3978,
539,
2357,
7304,
16,
540,
368,
1771,
4105,
353,
486,
5865,
310,
316,
19817,
603,
333,
1501,
35,
3639,
309,
16051,
12,
3175,
1276,
19817,
9902,
3719,
288,
5411,
327,
18814,
7675,
2704,
8585,
2107,
12,
20,
1769,
3639,
289,
7734,
1525,
2863,
4117,
273,
14015,
54,
10340,
9902,
13,
3175,
2934,
588,
3708,
620,
5621,
3639,
368,
12139,
3501,
30,
5098,
2
] |
protected Integer getProfessorShipId(HttpServletRequest request, DynaActionForm actionForm, IUserView userView, Integer executionCourseId) throws FenixServiceException { Integer professorShipId = null; if (request.getParameter("byTeacher") != null && request.getParameter("byTeacher").length() > 0) { professorShipId = new Integer(request.getParameter("byTeacher")); } else { Object[] args = { userView.getUtilizador(), executionCourseId }; InfoProfessorship infoProfessorship = (InfoProfessorship) ServiceUtils.executeService( userView, "ReadProfessorshipByTeacherNumberAndExecutionCourseID", args); professorShipId = infoProfessorship.getIdInternal(); actionForm.set("byTeacher", professorShipId.toString()); } return professorShipId; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/532b9d5d6ec03e6058efc4199415a3e0a33d6bd2/SummaryManagerAction.java/clean/src/ServidorApresentacao/Action/teacher/SummaryManagerAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
4522,
588,
27012,
403,
280,
26358,
548,
12,
2940,
18572,
2293,
16,
10419,
69,
1803,
1204,
1128,
1204,
16,
45,
1299,
1767,
1355,
1767,
16,
4522,
16414,
39,
3117,
548,
13,
15069,
42,
275,
697,
15133,
95,
4522,
16121,
403,
280,
26358,
548,
33,
2011,
31,
430,
12,
2293,
18,
588,
1662,
2932,
1637,
56,
13798,
264,
7923,
5,
33,
2011,
10,
10,
2293,
18,
588,
1662,
2932,
1637,
56,
13798,
264,
20387,
2469,
1435,
34,
20,
15329,
16121,
403,
280,
26358,
548,
33,
2704,
4522,
12,
2293,
18,
588,
1662,
2932,
1637,
56,
13798,
264,
7923,
1769,
97,
12107,
95,
921,
8526,
1968,
5899,
1355,
1767,
18,
588,
1304,
452,
23671,
9334,
16414,
39,
3117,
548,
20451,
966,
27012,
403,
280,
3261,
1376,
27012,
403,
280,
3261,
28657,
966,
27012,
403,
280,
3261,
13,
1179,
1989,
18,
8837,
1179,
12,
1355,
1767,
10837,
1994,
27012,
403,
280,
3261,
858,
56,
13798,
264,
1854,
1876,
3210,
39,
3117,
734,
3113,
1968,
1769,
16121,
403,
280,
26358,
548,
33,
1376,
27012,
403,
280,
3261,
18,
26321,
3061,
5621,
1128,
1204,
18,
542,
2932,
1637,
56,
13798,
264,
3113,
16121,
403,
280,
26358,
548,
18,
10492,
10663,
97,
2463,
16121,
403,
280,
26358,
548,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
4522,
588,
27012,
403,
280,
26358,
548,
12,
2940,
18572,
2293,
16,
10419,
69,
1803,
1204,
1128,
1204,
16,
45,
1299,
1767,
1355,
1767,
16,
4522,
16414,
39,
3117,
548,
13,
15069,
42,
275,
697,
15133,
95,
4522,
16121,
403,
280,
26358,
548,
33,
2011,
31,
430,
12,
2293,
18,
588,
1662,
2932,
1637,
56,
13798,
264,
7923,
5,
33,
2011,
10,
10,
2293,
18,
588,
1662,
2932,
1637,
56,
13798,
264,
20387,
2469,
1435,
34,
20,
15329,
16121,
403,
280,
26358,
548,
33,
2704,
4522,
12,
2293,
18,
588,
1662,
2932,
1637,
56,
13798,
264,
7923,
1769,
97,
12107,
95,
921,
8526,
1968,
5899,
1355,
1767,
18,
588,
1304,
452,
23671,
9334,
16414,
39,
3117,
548,
20451,
2
] |
||
}
|
}
|
protected void readHeader() { String id = ""; for (int i = 0; i < 6; i++) { id += (char) read(); } if (!id.startsWith("GIF")) { status = STATUS_FORMAT_ERROR; return; } readLSD(); if (gctFlag && !err()) { gct = readColorTable(gctSize); bgColor = gct[bgIndex]; } }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/38deb5a3770dd936982e996839c13f192aaf5f29/GifDecoder.java/buggy/Ajax/src/com/zimbra/ajax/imagemerge/GifDecoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
855,
1864,
1435,
288,
3639,
514,
612,
273,
1408,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1666,
31,
277,
27245,
288,
5411,
612,
1011,
261,
3001,
13,
855,
5621,
3639,
289,
3639,
309,
16051,
350,
18,
17514,
1190,
2932,
43,
5501,
6,
3719,
288,
5411,
1267,
273,
7136,
67,
7254,
67,
3589,
31,
5411,
327,
31,
3639,
289,
3639,
855,
3045,
40,
5621,
3639,
309,
261,
75,
299,
4678,
597,
401,
370,
10756,
288,
5411,
314,
299,
273,
855,
2957,
1388,
12,
75,
299,
1225,
1769,
5411,
7611,
2957,
273,
314,
299,
63,
12370,
1016,
15533,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
855,
1864,
1435,
288,
3639,
514,
612,
273,
1408,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1666,
31,
277,
27245,
288,
5411,
612,
1011,
261,
3001,
13,
855,
5621,
3639,
289,
3639,
309,
16051,
350,
18,
17514,
1190,
2932,
43,
5501,
6,
3719,
288,
5411,
1267,
273,
7136,
67,
7254,
67,
3589,
31,
5411,
327,
31,
3639,
289,
3639,
855,
3045,
40,
5621,
3639,
309,
261,
75,
299,
4678,
597,
401,
370,
10756,
288,
5411,
314,
299,
273,
855,
2957,
1388,
12,
75,
299,
1225,
1769,
5411,
7611,
2957,
273,
314,
299,
63,
12370,
1016,
15533,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
in = parent.getResource("TargetPanel.dir.unix");
|
in = parentFrame.getResource("TargetPanel.dir.unix");
|
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
|
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/TargetPanel.java/clean/src/lib/com/izforge/izpack/panels/TargetPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1262,
1868,
1621,
1435,
225,
288,
565,
10633,
5186,
273,
446,
31,
565,
775,
565,
288,
1377,
514,
1140,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
1377,
5037,
316,
273,
446,
31,
1377,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
13226,
3113,
374,
16,
2371,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
13226,
8863,
1377,
469,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
5821,
1140,
619,
3113,
374,
16,
1725,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
5821,
538,
92,
8863,
1377,
469,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
5821,
3113,
374,
16,
890,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
5821,
8863,
1377,
469,
1377,
288,
3639,
368,
1122,
775,
358,
2324,
731,
635,
2923,
1140,
508,
3639,
1140,
273,
1140,
18,
2079,
2668,
2265,
4427,
1769,
368,
4543,
7292,
316,
585,
1257,
3639,
1140,
273,
1140,
18,
869,
5630,
5621,
368,
364,
14297,
17200,
5916,
5537,
400,
1390,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
1199,
18,
16426,
12,
538,
10019,
3639,
368,
309,
486,
2923,
1140,
16,
775,
8742,
5210,
296,
21136,
11,
1058,
585,
3639,
309,
261,
267,
422,
446,
13,
1850,
316,
273,
982,
3219,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1262,
1868,
1621,
1435,
225,
288,
565,
10633,
5186,
273,
446,
31,
565,
775,
565,
288,
1377,
514,
1140,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
1377,
5037,
316,
273,
446,
31,
1377,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
13226,
3113,
374,
16,
2371,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
13226,
8863,
1377,
469,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
5821,
1140,
619,
3113,
374,
16,
1725,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
5821,
538,
92,
8863,
1377,
469,
309,
261,
538,
18,
6858,
6869,
2
] |
if (c2 == 'e') curToken = OP_LEQ; else if (c2 == 't') curToken = OP_LSS;
|
if (c2 == 'e') curToken = OP_LE; else if (c2 == 't') curToken = OP_LT;
|
int peekOperator() throws java.io.IOException, SyntaxException { while (curToken == EOL_TOKEN) { if (nesting == 0) return EOL_TOKEN; getRawToken(); } if (curToken == NCNAME_TOKEN) { int len = tokenBufferLength; char c1, c2, c3; switch (len) { case 2: c1 = tokenBuffer[0]; c2 = tokenBuffer[1]; if (c1 == 'o' && c2 == 'r') curToken = OP_OR; else if (c1 == 't' && c2 == 'o') curToken = OP_RANGE_TO; else if (c1 == 'i' && c2 == 's') curToken = OP_IS; // The ValueComp operators 'eq' ... are mapped to the // corresponding GeneralComp operators '=' ... // So we fail to catch certain errors. FIXME. else if (c1 == 'e' && c2 == 'q') curToken = OP_EQU; else if (c1 == 'n' && c2 == 'e') curToken = OP_NEQ; else if (c1 == 'g') { if (c2 == 'e') curToken = OP_GEQ; else if (c2 == 't') curToken = OP_GRT; } else if (c1 == 'l') { if (c2 == 'e') curToken = OP_LEQ; else if (c2 == 't') curToken = OP_LSS; } break; case 3: c1 = tokenBuffer[0]; c2 = tokenBuffer[1]; c3 = tokenBuffer[2]; if (c1 == 'a') { if (c2 == 'n' && c3 == 'd') curToken = OP_AND; } else if (c1 == 'm') { if (c2 == 'u' && c3 == 'l') curToken = OP_MUL; if (c2 == 'o' && c3 == 'd') curToken = OP_MOD; } else if (c1 == 'd') { if (c2 == 'i' && c3 == 'v') curToken = OP_DIV; } break; case 4: if (match("idiv")) curToken = OP_IDIV; else if (match("cast", "as", true)) curToken = OP_CAST_AS; break; case 5: if (match("where")) curToken = OP_WHERE; else if (match("isnot")) curToken = OP_ISNOT; else if (match("union")) curToken = OP_UNION; else if (match("treat", "as", true)) curToken = OP_TREAT_AS; break; case 6: if (match("except")) curToken = OP_EXCEPT; break; case 8: if (match("instance", "of", true)) curToken = OP_INSTANCEOF; else if (match("castable", "as", true)) curToken = OP_CASTABLE_AS; break; case 9: if (match("intersect")) curToken = OP_INTERSECT; break; case 10: if (match("instanceof")) // obsolete { if (warnOldVersion) error('w', "use 'instanceof of' (two words) instead of 'instanceof'"); curToken = OP_INSTANCEOF; } break; default: break; } } return curToken; }
|
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/a49073f28e6abf096614ea5875106f6c12604ca5/XQParser.java/buggy/gnu/xquery/lang/XQParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
8032,
5592,
1435,
1377,
1216,
2252,
18,
1594,
18,
14106,
16,
11517,
503,
225,
288,
565,
1323,
261,
1397,
1345,
422,
19995,
67,
8412,
13,
1377,
288,
202,
430,
261,
82,
10100,
422,
374,
13,
202,
225,
327,
19995,
67,
8412,
31,
202,
588,
4809,
1345,
5621,
1377,
289,
565,
309,
261,
1397,
1345,
422,
423,
39,
1985,
67,
8412,
13,
1377,
288,
202,
474,
562,
273,
1147,
1892,
1782,
31,
3639,
1149,
276,
21,
16,
276,
22,
16,
276,
23,
31,
3639,
1620,
261,
1897,
13,
1850,
288,
1850,
648,
576,
30,
5411,
276,
21,
273,
1147,
1892,
63,
20,
15533,
5411,
276,
22,
273,
1147,
1892,
63,
21,
15533,
5411,
309,
261,
71,
21,
422,
296,
83,
11,
597,
276,
22,
422,
296,
86,
6134,
2868,
662,
1345,
273,
7247,
67,
916,
31,
5411,
469,
309,
261,
71,
21,
422,
296,
88,
11,
597,
276,
22,
422,
296,
83,
6134,
2868,
662,
1345,
273,
7247,
67,
15928,
67,
4296,
31,
5411,
469,
309,
261,
71,
21,
422,
296,
77,
11,
597,
276,
22,
422,
296,
87,
6134,
2868,
662,
1345,
273,
7247,
67,
5127,
31,
5411,
368,
1021,
1445,
2945,
12213,
296,
11253,
11,
1372,
854,
5525,
358,
326,
5411,
368,
4656,
9544,
2945,
12213,
5214,
1372,
5411,
368,
6155,
732,
2321,
358,
1044,
8626,
1334,
18,
225,
9852,
18,
5411,
469,
309,
261,
71,
21,
422,
296,
73,
11,
597,
276,
22,
422,
296,
85,
6134,
2868,
662,
1345,
273,
7247,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
8032,
5592,
1435,
1377,
1216,
2252,
18,
1594,
18,
14106,
16,
11517,
503,
225,
288,
565,
1323,
261,
1397,
1345,
422,
19995,
67,
8412,
13,
1377,
288,
202,
430,
261,
82,
10100,
422,
374,
13,
202,
225,
327,
19995,
67,
8412,
31,
202,
588,
4809,
1345,
5621,
1377,
289,
565,
309,
261,
1397,
1345,
422,
423,
39,
1985,
67,
8412,
13,
1377,
288,
202,
474,
562,
273,
1147,
1892,
1782,
31,
3639,
1149,
276,
21,
16,
276,
22,
16,
276,
23,
31,
3639,
1620,
261,
1897,
13,
1850,
288,
1850,
648,
576,
30,
5411,
276,
21,
273,
1147,
1892,
63,
20,
15533,
5411,
276,
22,
273,
1147,
1892,
63,
21,
15533,
5411,
309,
261,
71,
21,
422,
2
] |
if(args.length != 2 + firstArg) { System.err.println( "Usage: java MetaGenerator [-debug] [-test] " + "<XML model file> <output directory>"); System.exit(2); }
|
if(args.length != 2 + firstArg) { System.err.println( "Usage: java MetaGenerator [-debug] [-test] " + "<XML model file> <output directory>"); System.exit(2); }
|
public static void main(String[] args) { int firstArg = 0; boolean testMode = false; if (firstArg < args.length && args[firstArg].equals("-debug")) { System.err.println("MetaGenerator pausing for debugging. " + "Attach your debugger " + "and press return."); try { System.in.read(); firstArg++; } catch(IOException ex) { // Do nothing } } if (firstArg < args.length && args[firstArg].equals("-test")) { System.err.println("Ignoring package name."); testMode = true; firstArg++; } if(args.length != 2 + firstArg) { System.err.println( "Usage: java MetaGenerator [-debug] [-test] " + "<XML model file> <output directory>"); System.exit(2); } try { MetaGenerator generator = new MetaGenerator( args[0+firstArg], testMode); generator.writeFiles(args[1+firstArg], null); generator.writeOutputs(); } catch(XOMException ex) { System.err.println("Generation of model failed:"); System.err.println(ex.toString()); ex.printStackTrace(); System.exit(1); } catch(IOException ex) { System.err.println("Generation of model failed:"); System.err.println(ex.toString()); ex.printStackTrace(); System.exit(1); } }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/MetaGenerator.java/clean/src/main/mondrian/xom/MetaGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
474,
1122,
4117,
273,
374,
31,
202,
202,
6494,
1842,
2309,
273,
629,
31,
202,
202,
430,
261,
3645,
4117,
411,
833,
18,
2469,
597,
833,
63,
3645,
4117,
8009,
14963,
2932,
17,
4148,
6,
3719,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
2781,
3908,
6790,
9940,
364,
10450,
18,
225,
315,
6862,
9506,
282,
397,
315,
4761,
3433,
19977,
315,
6862,
9506,
282,
397,
315,
464,
11779,
327,
1199,
1769,
1082,
202,
698,
288,
9506,
202,
3163,
18,
267,
18,
896,
5621,
9506,
202,
3645,
4117,
9904,
31,
1082,
202,
97,
1082,
202,
14683,
12,
14106,
431,
13,
288,
9506,
202,
759,
2256,
5083,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
3645,
4117,
411,
833,
18,
2469,
597,
833,
63,
3645,
4117,
8009,
14963,
2932,
17,
3813,
6,
3719,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
21702,
2181,
508,
1199,
1769,
1082,
202,
3813,
2309,
273,
638,
31,
1082,
202,
3645,
4117,
9904,
31,
202,
202,
97,
202,
202,
430,
12,
1968,
18,
2469,
480,
576,
397,
1122,
4117,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
12,
9506,
202,
6,
5357,
30,
2252,
6565,
3908,
23059,
4148,
65,
23059,
3813,
65,
315,
397,
9506,
202,
6,
32,
4201,
938,
585,
34,
411,
2844,
1867,
2984,
1769,
1082,
202,
3163,
18,
8593,
12,
22,
1769,
202,
202,
97,
202,
202,
698,
288,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
474,
1122,
4117,
273,
374,
31,
202,
202,
6494,
1842,
2309,
273,
629,
31,
202,
202,
430,
261,
3645,
4117,
411,
833,
18,
2469,
597,
833,
63,
3645,
4117,
8009,
14963,
2932,
17,
4148,
6,
3719,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
2781,
3908,
6790,
9940,
364,
10450,
18,
225,
315,
6862,
9506,
282,
397,
315,
4761,
3433,
19977,
315,
6862,
9506,
282,
397,
315,
464,
11779,
327,
1199,
1769,
1082,
202,
698,
288,
9506,
202,
3163,
18,
267,
18,
896,
5621,
9506,
202,
3645,
4117,
9904,
31,
1082,
202,
97,
1082,
202,
14683,
12,
14106,
431,
13,
288,
9506,
202,
2
] |
} catch ( IOException e ) { log.log( Level.WARNING, "Error copying resources {0} to platform.", e );
|
catch ( IOException e ) { log.log( Level.WARNING, "Error copying resources {0} to platform.", e ); }
|
private void copyResources( String resourcePath, String platform ) { Set paths = context.getResourcePaths( resourcePath ); for ( Iterator it = paths.iterator( ); it.hasNext( ); ) { String path = (String) it.next( ); File newFile = new File( platform, path.substring( RESOURCE_BASE .length( ) ) ); if ( path.endsWith( "/" ) ) { //$NON-NLS-1$ newFile.mkdir( ); copyResources( path, platform ); } else { try { if ( newFile.createNewFile( ) ) { InputStream is = context.getResourceAsStream( path ); OutputStream os = new FileOutputStream( newFile ); byte[] buffer = new byte[8192]; int bytesRead = is.read( buffer ); while ( bytesRead != -1 ) { os.write( buffer, 0, bytesRead ); bytesRead = is.read( buffer ); } is.close( ); os.close( ); } } catch ( IOException e ) { log.log( Level.WARNING, "Error copying resources {0} to platform.", e ); //$NON-NLS-1$ } } } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b954e94d3e77241981eabba93277c656d140c5e0/PlatformServletContext.java/buggy/core/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/PlatformServletContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1610,
3805,
12,
514,
15467,
16,
514,
4072,
262,
202,
95,
202,
202,
694,
2953,
273,
819,
18,
588,
1420,
4466,
12,
15467,
11272,
202,
202,
1884,
261,
4498,
518,
273,
2953,
18,
9838,
12,
11272,
518,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
780,
589,
273,
261,
780,
13,
518,
18,
4285,
12,
11272,
1082,
202,
812,
20592,
273,
394,
1387,
12,
4072,
16,
589,
18,
28023,
12,
12653,
67,
8369,
6862,
202,
18,
2469,
12,
262,
262,
11272,
1082,
202,
430,
261,
589,
18,
5839,
1190,
12,
4016,
262,
262,
288,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2704,
812,
18,
26686,
12,
11272,
9506,
202,
3530,
3805,
12,
589,
16,
4072,
11272,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
430,
261,
20592,
18,
2640,
1908,
812,
12,
262,
262,
6862,
202,
95,
25083,
202,
4348,
353,
273,
819,
18,
588,
1420,
17052,
12,
589,
11272,
25083,
202,
4632,
1140,
273,
394,
12942,
12,
20592,
11272,
25083,
202,
7229,
8526,
1613,
273,
394,
1160,
63,
28,
15561,
15533,
25083,
202,
474,
17244,
273,
353,
18,
896,
12,
1613,
11272,
25083,
202,
17523,
261,
17244,
480,
300,
21,
262,
25083,
202,
95,
6862,
1082,
202,
538,
18,
2626,
12,
1613,
16,
374,
16,
17244,
11272,
6862,
1082,
202,
3890,
1994,
273,
353,
18,
896,
12,
1613,
11272,
25083,
202,
97,
25083,
202,
291,
18,
4412,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1610,
3805,
12,
514,
15467,
16,
514,
4072,
262,
202,
95,
202,
202,
694,
2953,
273,
819,
18,
588,
1420,
4466,
12,
15467,
11272,
202,
202,
1884,
261,
4498,
518,
273,
2953,
18,
9838,
12,
11272,
518,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
780,
589,
273,
261,
780,
13,
518,
18,
4285,
12,
11272,
1082,
202,
812,
20592,
273,
394,
1387,
12,
4072,
16,
589,
18,
28023,
12,
12653,
67,
8369,
6862,
202,
18,
2469,
12,
262,
262,
11272,
1082,
202,
430,
261,
589,
18,
5839,
1190,
12,
4016,
262,
262,
288,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2704,
812,
18,
26686,
12,
11272,
9506,
202,
3530,
2
] |
private AnAction processActionElement(Element element, final ClassLoader loader, PluginId pluginId) { final Application app = ApplicationManager.getApplication(); final IdeaPluginDescriptor plugin = app.getPlugin(pluginId); @NonNls final String resBundleName = plugin != null ? plugin.getResourceBundleBaseName() : ACTIONS_BUNDLE; ResourceBundle bundle = null; if (resBundleName != null) { bundle = ResourceBundle.getBundle(resBundleName, Locale.getDefault(), loader); } if (LOG.isDebugEnabled()) { LOG.debug("enter: processActionElement(" + element.getName() + ")"); } if (!ACTION_ELEMENT_NAME.equals(element.getName())) { LOG.error("unexpected name of element \"" + element.getName() + "\""); return null; } String className = element.getAttributeValue(CLASS_ATTR_NAME); if (className == null || className.length() == 0) { LOG.error("action element should have specified \"class\" attribute"); return null; } // read ID and register loaded action String id = element.getAttributeValue(ID_ATTR_NAME); if (id == null || id.length() == 0) { LOG.error("ID of the action cannot be an empty string"); return null; } if (Boolean.valueOf(element.getAttributeValue(INTERNAL_ATTR_NAME)).booleanValue() && !ApplicationManagerEx.getApplicationEx().isInternal()) { myNotRegisteredInternalActionIds.add(id); return null; } String text = loadTextForElement(element, bundle, id, ACTION_ELEMENT_NAME); if (text == null) { @NonNls String message = "'text' attribute is mandatory (action ID=" + id + ";" + (plugin == null ? "" : " plugin path: "+plugin.getPath()) + ")"; LOG.error(message); return null; } ActionStub stub = new ActionStub(className, id, text, loader); Presentation presentation = stub.getTemplatePresentation(); presentation.setText(text); // description presentation.setDescription(loadDescriptionForElement(element, bundle, id, ACTION_ELEMENT_NAME)); // icon setIcon(element.getAttributeValue(ICON_ATTR_NAME), className, loader, presentation); // process all links and key bindings if any for (final Object o : element.getChildren()) { Element e = (Element)o; if (ADD_TO_GROUP_ELEMENT_NAME.equals(e.getName())) { processAddToGroupNode(stub, e); } else if (SHORTCUT_ELEMENT_NAME.equals(e.getName())) { processKeyboardShortcutNode(e, id); } else if (MOUSE_SHORTCUT_ELEMENT_NAME.equals(e.getName())) { processMouseShortcutNode(e, id); } else { LOG.error("unexpected name of element \"" + e.getName() + "\""); return null; } } if (element.getAttributeValue(USE_SHORTCUT_OF_ATTR_NAME) != null) { ((KeymapManagerEx)myKeymapManager).bindShortcuts(element.getAttributeValue(USE_SHORTCUT_OF_ATTR_NAME), id); } // register action registerAction(id, stub, pluginId); return stub; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
1922,
1803,
1207,
1803,
1046,
12,
1046,
930,
16,
727,
9403,
4088,
16,
6258,
548,
1909,
548,
13,
288,
6385,
4257,
595,
273,
4257,
1318,
18,
588,
3208,
5621,
6385,
23062,
69,
3773,
3187,
1909,
273,
595,
18,
588,
3773,
12,
4094,
548,
1769,
36,
3989,
50,
3251,
727,
514,
400,
3405,
461,
273,
1909,
480,
446,
692,
1909,
18,
588,
18731,
29907,
1435,
294,
11385,
55,
67,
30245,
31,
18731,
3440,
273,
446,
31,
430,
261,
455,
3405,
461,
480,
446,
13,
288,
9991,
273,
19198,
18,
588,
3405,
12,
455,
3405,
461,
16,
6458,
18,
588,
1868,
9334,
4088,
1769,
97,
430,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
4842,
18,
4148,
2932,
2328,
30,
1207,
1803,
1046,
2932,
397,
930,
18,
17994,
1435,
397,
7310,
1769,
97,
430,
16051,
12249,
67,
10976,
67,
1985,
18,
14963,
12,
2956,
18,
17994,
1435,
3719,
288,
4842,
18,
1636,
2932,
21248,
508,
434,
930,
11843,
397,
930,
18,
17994,
1435,
397,
11143,
1769,
2463,
446,
31,
97,
780,
2658,
273,
930,
18,
588,
14942,
12,
5237,
67,
12043,
67,
1985,
1769,
430,
261,
12434,
422,
446,
747,
2658,
18,
2469,
1435,
422,
374,
13,
288,
4842,
18,
1636,
2932,
1128,
930,
1410,
1240,
1269,
1239,
1106,
2412,
1566,
8863,
2463,
446,
31,
97,
759,
855,
1599,
471,
1744,
4203,
1301,
780,
612,
273,
930,
18,
588,
14942,
12,
734,
67,
12043,
67,
1985,
1769,
430,
261,
350,
422,
446,
747,
612,
18,
2469,
1435,
422,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
1922,
1803,
1207,
1803,
1046,
12,
1046,
930,
16,
727,
9403,
4088,
16,
6258,
548,
1909,
548,
13,
288,
6385,
4257,
595,
273,
4257,
1318,
18,
588,
3208,
5621,
6385,
23062,
69,
3773,
3187,
1909,
273,
595,
18,
588,
3773,
12,
4094,
548,
1769,
36,
3989,
50,
3251,
727,
514,
400,
3405,
461,
273,
1909,
480,
446,
692,
1909,
18,
588,
18731,
29907,
1435,
294,
11385,
55,
67,
30245,
31,
18731,
3440,
273,
446,
31,
430,
261,
455,
3405,
461,
480,
446,
13,
288,
9991,
273,
19198,
18,
588,
3405,
12,
455,
3405,
461,
16,
6458,
18,
588,
1868,
9334,
4088,
1769,
97,
430,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
4842,
18,
4148,
2932,
2328,
30,
2
] |
||
private static Color getColor(String s)
|
private static Color getColor(String colorName)
|
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/CharacterAttributeTranslator.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/CharacterAttributeTranslator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
5563,
15672,
12,
780,
2036,
461,
13,
225,
288,
565,
514,
272,
22,
273,
261,
780,
13,
3266,
863,
18,
588,
12,
87,
18,
869,
5630,
10663,
565,
309,
12,
272,
22,
422,
446,
262,
1377,
272,
22,
273,
272,
31,
565,
775,
1377,
288,
202,
2463,
5563,
18,
3922,
12,
87,
22,
1769,
1377,
289,
565,
1044,
12,
1854,
9291,
25386,
13,
1377,
288,
202,
2463,
446,
31,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
5563,
15672,
12,
780,
2036,
461,
13,
225,
288,
565,
514,
272,
22,
273,
261,
780,
13,
3266,
863,
18,
588,
12,
87,
18,
869,
5630,
10663,
565,
309,
12,
272,
22,
422,
446,
262,
1377,
272,
22,
273,
272,
31,
565,
775,
1377,
288,
202,
2463,
5563,
18,
3922,
12,
87,
22,
1769,
1377,
289,
565,
1044,
12,
1854,
9291,
25386,
13,
1377,
288,
202,
2463,
446,
31,
1377,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; case '@' : token.append(c); c = support.read(); if (c == '@') { token.append(c); c = support.read(); } for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); if (token.getToken().startsWith("@@")) { list.add(new ClassVarNode(token.getPosition(), token.getToken())); } else { list.add(new InstVarNode(token.getPosition(), token.getToken())); } token.newToken(support.getPosition()); return true; case '{' : if (c == '{') { brace = '}'; } nest = 0; do { loop_again : while (true) { c = support.read(); switch (c) { case '\0' : if (nest > 0) { errorHandler.handleError(IErrors.SYNTAX_ERROR, token.getPosition(), Messages.getString("bad_substitution")); token.newToken(support.getPosition()); return true; } throw new EOFException(); case '}' : if (c == brace) { if (nest == 0) { break; } nest--; } token.append(c); continue loop_again; case '\\' : c = support.read(); if (c == '\0') { throw new EOFException(); } else if (c == closeQuote) { token.append(c); } else { token.append('\\'); token.append(c); } continue loop_again; case '{' : if (brace != -1) { nest++; } case '\"' : case '/' : case '`' : if (c == closeQuote) { pushback(c); list.add(new StrNode(token.getPosition(), "#")); errorHandler.handleError(IErrors.WARNING, support.getPosition(), Messages.getString("bad_substitution")); list.add(new StrNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; } default : token.append(c); break; } break loop_again; } } while (c != brace); } break; }
|
for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; case '@' : token.append(c); c = support.read(); if (c == '@') { token.append(c); c = support.read(); } for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); if (token.getToken().startsWith("@@")) { list.add(new ClassVarNode(token.getPosition(), token.getToken())); } else { list.add(new InstVarNode(token.getPosition(), token.getToken())); } token.newToken(support.getPosition()); return true; case '{' : if (c == '{') { brace = '}'; } nest = 0; do { loop_again : while (true) { c = support.read(); switch (c) { case '\0' : if (nest > 0) { errorHandler.handleError(IErrors.SYNTAX_ERROR, token.getPosition(), Messages.getString("bad_substitution")); token.newToken(support.getPosition()); return true; } throw new EOFException(); case '}' : if (c == brace) { if (nest == 0) { break; } nest--; } token.append(c); continue loop_again; case '\\' : c = support.read(); if (c == '\0') { throw new EOFException(); } else if (c == closeQuote) { token.append(c); } else { token.append('\\'); token.append(c); } continue loop_again; case '{' : if (brace != -1) { nest++; } case '\"' : case '/' : case '`' : if (c == closeQuote) { pushback(c); list.add(new StrNode(token.getPosition(), "#")); errorHandler.handleError(IErrors.WARNING, support.getPosition(), Messages.getString("bad_substitution")); list.add(new StrNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; } default : token.append(c); break; } break loop_again; } } while (c != brace); } break; }
|
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { list.add(new StrNode(token.getPosition(), token.getToken())); } token.newToken(support.getPosition()); int brace = -1; int nest;fetch_id : for (;;) { switch (c) { case '$' : token.append('$'); c = support.read(); if (c == '\0') { throw new EOFException(); } switch (c) { case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : for (; Character.isDigit(c); c = support.read()) { token.append(c); } pushback(c); list.add(new NthRefNode(token.getPosition(), Integer.parseInt(token.getToken().substring(1)))); token.newToken(support.getPosition()); return true; case '&' : case '+' : list.add(new BackRefNode(token.getPosition(), c)); token.newToken(support.getPosition()); return true; case '_' : case '~' : case '*' : case '$' : case '?' : case '!' : case '@' : case ',' : case '.' : case '=' : case ':' : case '<' : case '>' : case '\\' : //refetch: token.append(c); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; default : if (c == closeQuote) { list.add(new StrNode(token.getPosition(), "#$")); //$NON-NLS-1$ support.unread(); token.newToken(support.getPosition()); return true; } switch (c) { case '\"' : case '/' : token.append(c); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; case '\'' : case '`' : list.add(new BackRefNode(token.getPosition(), c)); token.newToken(support.getPosition()); return true; } if (!isIdentifierChar(c)) { errorHandler.handleError(IErrors.SYNTAX_ERROR, token.getPosition(), Messages.getString("bad_global_variable")); //$NON-NLS-1$ token.newToken(support.getPosition()); return true; } } for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; case '@' : token.append(c); c = support.read(); if (c == '@') { token.append(c); c = support.read(); } for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); if (token.getToken().startsWith("@@")) { //$NON-NLS-1$ list.add(new ClassVarNode(token.getPosition(), token.getToken())); } else { list.add(new InstVarNode(token.getPosition(), token.getToken())); } token.newToken(support.getPosition()); return true; case '{' : if (c == '{') { brace = '}'; } nest = 0; do {loop_again : while (true) { c = support.read(); switch (c) { case '\0' : if (nest > 0) { errorHandler.handleError(IErrors.SYNTAX_ERROR, token.getPosition(), Messages.getString("bad_substitution")); //$NON-NLS-1$ token.newToken(support.getPosition()); return true; } throw new EOFException(); case '}' : if (c == brace) { if (nest == 0) { break; } nest--; } token.append(c); continue loop_again; case '\\' : c = support.read(); if (c == '\0') { throw new EOFException(); } else if (c == closeQuote) { token.append(c); } else { token.append('\\'); token.append(c); } continue loop_again; case '{' : if (brace != -1) { nest++; } case '\"' : case '/' : case '`' : if (c == closeQuote) { pushback(c); list.add(new StrNode(token.getPosition(), "#")); //$NON-NLS-1$ errorHandler.handleError(IErrors.WARNING, support.getPosition(), Messages.getString("bad_substitution")); //$NON-NLS-1$ list.add(new StrNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; } default : token.append(c); break; } break loop_again; } } while (c != brace); } break; } // FIX list.add(new EvStrNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
1250,
30838,
780,
12,
45,
682,
907,
666,
16,
1149,
1746,
10257,
16,
514,
1345,
1147,
13,
1216,
30051,
288,
1082,
202,
3001,
276,
273,
2865,
18,
896,
5621,
1082,
202,
9610,
261,
71,
13,
288,
9506,
202,
3593,
11874,
294,
9506,
202,
3593,
9175,
294,
9506,
202,
3593,
9790,
294,
6862,
202,
8820,
31,
9506,
202,
1886,
294,
6862,
202,
2316,
18,
6923,
2668,
7,
8284,
6862,
202,
13261,
18,
318,
896,
5621,
6862,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
430,
261,
2316,
18,
588,
1782,
1435,
405,
374,
13,
288,
9506,
202,
1098,
18,
1289,
12,
2704,
3978,
907,
12,
2316,
18,
588,
2555,
9334,
1147,
18,
588,
1345,
1435,
10019,
1082,
202,
97,
1082,
202,
2316,
18,
2704,
1345,
12,
13261,
18,
588,
2555,
10663,
1082,
202,
474,
22500,
273,
300,
21,
31,
1082,
202,
474,
15095,
31,
5754,
67,
350,
294,
364,
261,
25708,
13,
288,
9506,
282,
1620,
261,
71,
13,
288,
6862,
282,
648,
11874,
294,
25083,
282,
1147,
18,
6923,
2668,
8,
8284,
25083,
282,
276,
273,
2865,
18,
896,
5621,
25083,
282,
309,
261,
71,
422,
2337,
20,
6134,
288,
6862,
1082,
282,
604,
394,
30051,
5621,
25083,
282,
289,
25083,
282,
1620,
261,
71,
13,
288,
6862,
1082,
282,
648,
296,
21,
11,
294,
6862,
1082,
282,
648,
296,
22,
11,
294,
6862,
1082,
282,
648,
296,
23,
11,
294,
6862,
1082,
282,
648,
296,
24,
11,
294,
6862,
1082,
282,
648,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
1250,
30838,
780,
12,
45,
682,
907,
666,
16,
1149,
1746,
10257,
16,
514,
1345,
1147,
13,
1216,
30051,
288,
1082,
202,
3001,
276,
273,
2865,
18,
896,
5621,
1082,
202,
9610,
261,
71,
13,
288,
9506,
202,
3593,
11874,
294,
9506,
202,
3593,
9175,
294,
9506,
202,
3593,
9790,
294,
6862,
202,
8820,
31,
9506,
202,
1886,
294,
6862,
202,
2316,
18,
6923,
2668,
7,
8284,
6862,
202,
13261,
18,
318,
896,
5621,
6862,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
430,
261,
2316,
18,
588,
1782,
1435,
405,
374,
13,
288,
9506,
202,
1098,
18,
1289,
12,
2704,
3978,
907,
12,
2316,
18,
588,
2555,
9334,
1147,
18,
588,
1345,
1435,
10019,
2
] |
DirectoryMojo mojo = (DirectoryMojo) lookupMojo( "directory", resource.getPath() );
|
DirectoryMojo mojo = (DirectoryMojo) lookupMojo( "directory", pluginConfigFile.getAbsolutePath() );
|
private void testDependencyMapping( String pluginConfig, List requiredDependencies ) throws Exception { ClassLoader cloader = Thread.currentThread().getContextClassLoader(); String pluginConfigResource = "basicAbstractAssemblyMojoFeaturesTest/" + pluginConfig; URL resource = cloader.getResource( pluginConfigResource ); assertNotNull( "Cannot find plugin-configuration: \'" + pluginConfigResource + "\' in context-classloader\'s classpath.", resource ); // TODO: Need to replace this with test-only mojos... DirectoryMojo mojo = (DirectoryMojo) lookupMojo( "directory", resource.getPath() ); FileLoggingArchiverManagerStub archiverManager = (FileLoggingArchiverManagerStub) getVariableValueFromObject( mojo, "archiverManager" ); archiverManager.clearArchiver(); mojo.execute(); FileLoggingArchiverStub archiver = (FileLoggingArchiverStub) archiverManager.getArchiver( null ); Set addedFiles = archiver.getAddedFiles(); System.out.println( "The following files were added to the test assembly:\n" + addedFiles.toString().replace(',', '\n' ) ); for ( Iterator it = requiredDependencies.iterator(); it.hasNext(); ) { String targetPath = (String) it.next(); assertTrue( "Required dependency path missing: \'" + targetPath + "\'", addedFiles.contains( targetPath ) ); } }
|
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/9bbf4a5e4ef6893d3bcab1dd542c87f5327b02dc/BasicAbstractAssemblyMojoFeaturesTest.java/clean/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/BasicAbstractAssemblyMojoFeaturesTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
7787,
3233,
12,
514,
1909,
809,
16,
987,
1931,
8053,
262,
1216,
1185,
565,
288,
3639,
9403,
276,
6714,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
7734,
514,
1909,
809,
1420,
273,
315,
13240,
7469,
24368,
49,
10007,
8696,
4709,
4898,
397,
1909,
809,
31,
7734,
1976,
1058,
273,
276,
6714,
18,
588,
1420,
12,
1909,
809,
1420,
11272,
7734,
25395,
12,
315,
4515,
1104,
1909,
17,
7025,
30,
521,
4970,
397,
1909,
809,
1420,
397,
1548,
11,
316,
819,
17,
1106,
6714,
3730,
87,
10006,
1199,
16,
1058,
11272,
7734,
368,
2660,
30,
12324,
358,
1453,
333,
598,
1842,
17,
3700,
312,
6311,
538,
2777,
3639,
8930,
49,
10007,
312,
10007,
273,
261,
2853,
49,
10007,
13,
3689,
49,
10007,
12,
315,
5149,
3113,
1909,
13705,
18,
588,
10368,
743,
1435,
11272,
3639,
1387,
7735,
12269,
1667,
1318,
11974,
6637,
1667,
1318,
273,
261,
812,
7735,
12269,
1667,
1318,
11974,
13,
13522,
620,
29484,
12,
312,
10007,
16,
315,
991,
1667,
1318,
6,
11272,
3639,
6637,
1667,
1318,
18,
8507,
12269,
1667,
5621,
7734,
312,
10007,
18,
8837,
5621,
3639,
1387,
7735,
12269,
1667,
11974,
6637,
1667,
273,
261,
812,
7735,
12269,
1667,
11974,
13,
6637,
1667,
1318,
18,
588,
12269,
1667,
12,
446,
11272,
7734,
1000,
3096,
2697,
273,
6637,
1667,
18,
588,
8602,
2697,
5621,
7734,
2332,
18,
659,
18,
8222,
12,
315,
1986,
3751,
1390,
4591,
3096,
358,
326,
1842,
19931,
5581,
82,
6,
397,
3096,
2697,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
7787,
3233,
12,
514,
1909,
809,
16,
987,
1931,
8053,
262,
1216,
1185,
565,
288,
3639,
9403,
276,
6714,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
7734,
514,
1909,
809,
1420,
273,
315,
13240,
7469,
24368,
49,
10007,
8696,
4709,
4898,
397,
1909,
809,
31,
7734,
1976,
1058,
273,
276,
6714,
18,
588,
1420,
12,
1909,
809,
1420,
11272,
7734,
25395,
12,
315,
4515,
1104,
1909,
17,
7025,
30,
521,
4970,
397,
1909,
809,
1420,
397,
1548,
11,
316,
819,
17,
1106,
6714,
3730,
87,
10006,
1199,
16,
1058,
11272,
7734,
368,
2660,
30,
12324,
358,
1453,
333,
598,
1842,
17,
3700,
312,
6311,
538,
2777,
3639,
8930,
49,
10007,
312,
10007,
273,
2
] |
Blockette1000 b1000 = (Blockette1000)allBs[0];
|
Blockette1000 b1000 = (Blockette1000)allBs[0];
|
protected DataRecord readDataRecord(DataHeader header) throws IOException, SeedFormatException { Assert.isTrue(header.getDataBlocketteOffset()>= header.getSize(), "Offset to first blockette must be larger than the header size"); byte[] garbage = new byte[header.getDataBlocketteOffset()- header.getSize()]; DataRecord dataRec = new DataRecord(header); if (garbage.length != 0) { inStream.readFully(garbage); } byte[] blocketteBytes; int currOffset = header.getDataBlocketteOffset(); int type, nextOffset; for (int i=0; i< header.getNumBlockettes() ; i++) { //get blockette type (first 2 bytes) byte hibyte = inStream.readByte(); byte lowbyte = inStream.readByte(); type = Utility.uBytesToInt(hibyte, lowbyte, false); // System.out.println("Blockette type "+type); hibyte = inStream.readByte(); lowbyte = inStream.readByte(); nextOffset = Utility.uBytesToInt(hibyte, lowbyte, false); // account for the 4 bytes above currOffset += 4; if (nextOffset != 0) { blocketteBytes = new byte[nextOffset - currOffset]; } else if (header.getDataOffset() > currOffset) { blocketteBytes = new byte[header.getDataOffset()- currOffset]; } else { blocketteBytes = new byte[0]; } inStream.readFully(blocketteBytes); if (nextOffset != 0) { currOffset = nextOffset; } else { currOffset += blocketteBytes.length; } Blockette b = Blockette.parseBlockette(type, blocketteBytes); dataRec.addBlockette(b); if (nextOffset == 0) { break; } } Blockette[] allBs = dataRec.getBlockettes(1000); if (allBs.length == 0) { // no data throw new SeedFormatException("no blockette 1000"); } else if (allBs.length > 1) { throw new SeedFormatException( "Multiple blockette 1000s in the volume. "+ allBs.length); } // System.out.println("allBs.length="+allBs.length); Blockette1000 b1000 = (Blockette1000)allBs[0]; // System.out.println(b1000); byte[] timeseries; if (header.getDataOffset() == 0) { // data record with no data, so gobble up the rest of the record timeseries = new byte[b1000.getDataRecordLength() - currOffset]; } else { timeseries = new byte[ b1000.getDataRecordLength() - header.getDataOffset() ]; } // System.out.println("getDataRecordLength() = "+ b1000.getDataRecordLength()); inStream.readFully(timeseries); dataRec.setData(timeseries); return dataRec; }
|
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/77c8cda668e90df6b4ea1146b770db148d0a4a7a/MiniSeedRead.java/buggy/src/edu/sc/seis/fissuresUtil/mseed/MiniSeedRead.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1910,
2115,
20913,
2115,
12,
751,
1864,
1446,
13,
565,
1216,
1860,
16,
28065,
9291,
288,
565,
5452,
18,
291,
5510,
12,
3374,
18,
588,
751,
1768,
7637,
2335,
1435,
34,
33,
1446,
18,
588,
1225,
9334,
2868,
315,
2335,
358,
1122,
1203,
7637,
1297,
506,
10974,
2353,
326,
1446,
963,
8863,
565,
1160,
8526,
15340,
273,
394,
1160,
63,
3374,
18,
588,
751,
1768,
7637,
2335,
1435,
17,
1171,
1446,
18,
588,
1225,
1435,
15533,
565,
1910,
2115,
501,
5650,
273,
394,
1910,
2115,
12,
3374,
1769,
3639,
309,
261,
75,
12332,
18,
2469,
480,
374,
13,
288,
5411,
28987,
18,
896,
16999,
12,
75,
12332,
1769,
3639,
289,
565,
1160,
8526,
1203,
7637,
2160,
31,
565,
509,
4306,
2335,
273,
1446,
18,
588,
751,
1768,
7637,
2335,
5621,
565,
509,
618,
16,
1024,
2335,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1446,
18,
588,
2578,
1768,
278,
1078,
1435,
274,
277,
27245,
288,
3639,
368,
588,
1203,
7637,
618,
261,
3645,
576,
1731,
13,
3639,
1160,
366,
495,
28354,
273,
28987,
18,
896,
3216,
5621,
3639,
1160,
4587,
7229,
273,
28987,
18,
896,
3216,
5621,
3639,
618,
273,
13134,
18,
89,
2160,
17864,
12,
15769,
28354,
16,
4587,
7229,
16,
629,
1769,
5411,
368,
2332,
18,
659,
18,
8222,
2932,
1768,
7637,
618,
13773,
723,
1769,
3639,
366,
495,
28354,
273,
28987,
18,
896,
3216,
5621,
3639,
4587,
7229,
273,
28987,
18,
896,
3216,
5621,
3639,
1024,
2335,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1910,
2115,
20913,
2115,
12,
751,
1864,
1446,
13,
565,
1216,
1860,
16,
28065,
9291,
288,
565,
5452,
18,
291,
5510,
12,
3374,
18,
588,
751,
1768,
7637,
2335,
1435,
34,
33,
1446,
18,
588,
1225,
9334,
2868,
315,
2335,
358,
1122,
1203,
7637,
1297,
506,
10974,
2353,
326,
1446,
963,
8863,
565,
1160,
8526,
15340,
273,
394,
1160,
63,
3374,
18,
588,
751,
1768,
7637,
2335,
1435,
17,
1171,
1446,
18,
588,
1225,
1435,
15533,
565,
1910,
2115,
501,
5650,
273,
394,
1910,
2115,
12,
3374,
1769,
3639,
309,
261,
75,
12332,
18,
2469,
480,
374,
13,
288,
5411,
28987,
18,
896,
16999,
12,
75,
12332,
1769,
3639,
289,
565,
1160,
8526,
1203,
7637,
2160,
31,
2
] |
((RubyString)args[1]).cat(buf); ret = args[1];
|
ret = args[1].convertToString(); ((RubyString)ret).setValue(buf);
|
public IRubyObject read(IRubyObject[] args) { String buf = null; if (!(pos >= internal.length() || eof)) { if (args.length > 0 && !args[0].isNil()) { int end = ((int)pos) + RubyNumeric.fix2int(args[0]); if (end > internal.length()) { buf = internal.substring((int)pos); } else { buf = internal.substring((int)pos,end); } } else { buf = internal.substring((int)pos); } pos+= buf.length(); } IRubyObject ret = null; if (buf == null) { if (args.length > 0) { return getRuntime().getNil(); } return getRuntime().newString(""); } else { if (args.length>1) { ((RubyString)args[1]).cat(buf); ret = args[1]; } else { ret = getRuntime().newString(buf); } } return ret; }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/ea4e25f1262c817873877b14c2a82825f1420dd0/RubyStringIO.java/clean/src/org/jruby/RubyStringIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
855,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
514,
1681,
273,
446,
31,
3639,
309,
16051,
12,
917,
1545,
2713,
18,
2469,
1435,
747,
14813,
3719,
288,
5411,
309,
261,
1968,
18,
2469,
405,
374,
597,
401,
1968,
63,
20,
8009,
291,
12616,
10756,
288,
7734,
509,
679,
273,
14015,
474,
13,
917,
13,
397,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
7734,
309,
261,
409,
405,
2713,
18,
2469,
10756,
288,
10792,
1681,
273,
2713,
18,
28023,
12443,
474,
13,
917,
1769,
7734,
289,
469,
288,
10792,
1681,
273,
2713,
18,
28023,
12443,
474,
13,
917,
16,
409,
1769,
7734,
289,
5411,
289,
469,
288,
7734,
1681,
273,
2713,
18,
28023,
12443,
474,
13,
917,
1769,
5411,
289,
5411,
949,
15,
33,
1681,
18,
2469,
5621,
3639,
289,
3639,
15908,
10340,
921,
325,
273,
446,
31,
3639,
309,
261,
4385,
422,
446,
13,
288,
5411,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
7734,
327,
18814,
7675,
588,
12616,
5621,
5411,
289,
5411,
327,
18814,
7675,
2704,
780,
2932,
8863,
3639,
289,
469,
288,
5411,
309,
261,
1968,
18,
2469,
34,
21,
13,
288,
7734,
14015,
54,
10340,
780,
13,
1968,
63,
21,
65,
2934,
2574,
12,
4385,
1769,
7734,
325,
273,
833,
63,
21,
15533,
5411,
289,
469,
288,
7734,
325,
273,
18814,
7675,
2704,
780,
12,
4385,
1769,
5411,
289,
3639,
289,
3639,
327,
325,
31,
565,
289,
2,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
855,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
514,
1681,
273,
446,
31,
3639,
309,
16051,
12,
917,
1545,
2713,
18,
2469,
1435,
747,
14813,
3719,
288,
5411,
309,
261,
1968,
18,
2469,
405,
374,
597,
401,
1968,
63,
20,
8009,
291,
12616,
10756,
288,
7734,
509,
679,
273,
14015,
474,
13,
917,
13,
397,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
7734,
309,
261,
409,
405,
2713,
18,
2469,
10756,
288,
10792,
1681,
273,
2713,
18,
28023,
12443,
474,
13,
917,
1769,
7734,
289,
469,
288,
10792,
1681,
273,
2713,
18,
28023,
12443,
474,
13,
917,
16,
409,
1769,
7734,
289,
5411,
289,
469,
288,
7734,
1681,
2
] |
public Object fastpath(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException { // added Oct 7 1998 to give us thread safety synchronized (stream) { // send the function call try { // 70 is 'F' in ASCII. Note: don't use SendChar() here as it adds padding // that confuses the backend. The 0 terminates the command line. stream.SendInteger(70, 1); stream.SendInteger(0, 1); stream.SendInteger(fnid, 4); stream.SendInteger(args.length, 4); for (int i = 0;i < args.length;i++) args[i].send(stream); // This is needed, otherwise data can be lost stream.flush(); } catch (IOException ioe) { throw new PSQLException("postgresql.fp.send", new Integer(fnid), ioe); } // Now handle the result // We should get 'V' on sucess or 'E' on error. Anything else is treated // as an error. //int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); //if (in!='V') { //if (in=='E') //throw new SQLException(stream.ReceiveString(conn.getEncoding())); //throw new SQLException("Fastpath: expected 'V' from backend, got "+((char)in)); //} // Now loop, reading the results Object result = null; // our result StringBuffer errorMessage = null; boolean loop = true; while (loop) { int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); switch (in) { case 'V': break; //------------------------------ // Function returned properly // case 'G': int sz = stream.ReceiveIntegerR(4); //DriverManager.println("G: size="+sz); //debug // Return an Integer if if (resulttype) result = new Integer(stream.ReceiveIntegerR(sz)); else { byte buf[] = new byte[sz]; stream.Receive(buf, 0, sz); result = buf; } break; //------------------------------ // Error message returned case 'E': if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // Notice from backend case 'N': conn.addWarning(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // End of results // // Here we simply return res, which would contain the result // processed earlier. If no result, this already contains null case '0': //DriverManager.println("returning "+result); // return result; break; case 'Z': // cause the loop to exit loop = false; break; default: throw new PSQLException("postgresql.fp.protocol", new Character((char)in)); } } if ( errorMessage != null ) throw new PSQLException("postgresql.fp.error", errorMessage.toString()); return result; } }
|
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/ef7d7910745cf2812007668138eaaf0a8e1d8d99/Fastpath.java/buggy/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
14469,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650,
24179,
202,
202,
22043,
261,
3256,
13,
202,
202,
95,
1082,
202,
759,
1366,
326,
445,
745,
1082,
202,
698,
1082,
202,
95,
9506,
202,
759,
16647,
353,
296,
42,
11,
316,
11768,
18,
3609,
30,
2727,
1404,
999,
2479,
2156,
1435,
2674,
487,
518,
4831,
4992,
9506,
202,
759,
716,
2195,
6117,
326,
4221,
18,
1021,
374,
30559,
326,
1296,
980,
18,
9506,
202,
3256,
18,
3826,
4522,
12,
7301,
16,
404,
1769,
9506,
202,
3256,
18,
3826,
4522,
12,
20,
16,
404,
1769,
9506,
202,
3256,
18,
3826,
4522,
12,
4293,
350,
16,
1059,
1769,
9506,
202,
3256,
18,
3826,
4522,
12,
1968,
18,
2469,
16,
1059,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
77,
411,
833,
18,
2469,
31,
77,
27245,
6862,
202,
1968,
63,
77,
8009,
4661,
12,
3256,
1769,
9506,
202,
759,
1220,
353,
3577,
16,
3541,
501,
848,
506,
13557,
9506,
202,
3256,
18,
11330,
5621,
1082,
202,
97,
1082,
202,
14683,
261,
14106,
10847,
13,
1082,
202,
95,
9506,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
7944,
18,
4661,
3113,
394,
2144,
12,
4293,
350,
3631,
10847,
1769,
1082,
202,
97,
1082,
202,
759,
4494,
1640,
326,
563,
1082,
202,
759,
1660,
1410,
336,
296,
58,
11,
603,
1597,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
14469,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650,
24179,
202,
202,
22043,
261,
3256,
13,
202,
202,
95,
1082,
202,
759,
1366,
326,
445,
745,
1082,
202,
698,
1082,
202,
95,
9506,
202,
759,
16647,
353,
296,
42,
11,
316,
11768,
18,
3609,
30,
2727,
1404,
999,
2479,
2156,
1435,
2674,
487,
518,
4831,
4992,
9506,
202,
759,
716,
2195,
6117,
326,
4221,
18,
1021,
374,
30559,
326,
1296,
980,
18,
9506,
202,
3256,
18,
3826,
4522,
12,
7301,
16,
404,
1769,
9506,
202,
3256,
18,
3826,
4522,
12,
20,
16,
2
] |
||
public ClientPutDir(SimpleFieldSet fs, FCPClient client) throws PersistenceParseException, IOException { super(fs, client); SimpleFieldSet files = fs.subset("Files"); defaultName = fs.get("DefaultName"); int fileCount = 0; long size = 0; Vector v = new Vector(); for(int i=0;;i++) { String num = Integer.toString(i); SimpleFieldSet subset = files.subset(num); if(subset == null) break; String name = subset.get("Name"); if(name == null) throw new PersistenceParseException("No Name on "+i); String contentTypeOverride = subset.get("Metadata.ContentType"); String uploadFrom = subset.get("UploadFrom"); Bucket data = null; Logger.minor(this, "Parsing "+i); Logger.minor(this, "UploadFrom="+uploadFrom); ManifestElement me; if((uploadFrom == null) || uploadFrom.equalsIgnoreCase("direct")) { long sz = Long.parseLong(subset.get("DataLength")); if(!finished) { byte[] key = HexUtil.hexToBytes(subset.get("TempBucket.DecryptKey")); String fnam = subset.get("TempBucket.Filename"); data = client.server.node.persistentTempBucketFactory.registerEncryptedBucket(fnam, key, sz); if(data.size() != sz) throw new PersistenceParseException("Size of bucket is wrong: "+data.size()+" should be "+sz); } else { data = null; } me = new ManifestElement(name, data, contentTypeOverride, sz); fileCount++; } else if(uploadFrom.equalsIgnoreCase("disk")) { long sz = Long.parseLong(subset.get("DataLength")); String f = subset.get("Filename"); if(f == null) throw new PersistenceParseException("UploadFrom=disk but no name on "+i); File ff = new File(f); if(!(ff.exists() && ff.canRead())) { Logger.error(this, "File no longer exists, cancelling upload: "+ff); throw new IOException("File no longer exists, cancelling upload: "+ff); } data = new FileBucket(ff, true, false, false, false); me = new ManifestElement(name, data, contentTypeOverride, sz); fileCount++; } else if(uploadFrom.equalsIgnoreCase("redirect")) { FreenetURI targetURI = new FreenetURI(subset.get("TargetURI")); me = new ManifestElement(name, targetURI, contentTypeOverride); } else throw new PersistenceParseException("Don't know UploadFrom="+uploadFrom); v.add(me); if((data != null) && (data.size() > 0)) size += data.size(); } manifestElements = SimpleManifestPutter.unflatten(v); SimpleManifestPutter p = null;
|
public ClientPutDir(FCPConnectionHandler handler, ClientPutDirMessage message, HashMap manifestElements) throws IdentifierCollisionException { super(message.uri, message.identifier, message.verbosity, handler, message.priorityClass, message.persistenceType, message.clientToken, message.global, message.getCHKOnly, message.dontCompress, message.maxRetries); this.manifestElements = manifestElements; this.defaultName = message.defaultName; SimpleManifestPutter p;
|
public ClientPutDir(SimpleFieldSet fs, FCPClient client) throws PersistenceParseException, IOException { super(fs, client); SimpleFieldSet files = fs.subset("Files"); defaultName = fs.get("DefaultName"); // Flattened for disk, sort out afterwards int fileCount = 0; long size = 0; Vector v = new Vector(); for(int i=0;;i++) { String num = Integer.toString(i); SimpleFieldSet subset = files.subset(num); if(subset == null) break; // Otherwise serialize String name = subset.get("Name"); if(name == null) throw new PersistenceParseException("No Name on "+i); String contentTypeOverride = subset.get("Metadata.ContentType"); String uploadFrom = subset.get("UploadFrom"); Bucket data = null; Logger.minor(this, "Parsing "+i); Logger.minor(this, "UploadFrom="+uploadFrom); ManifestElement me; if((uploadFrom == null) || uploadFrom.equalsIgnoreCase("direct")) { long sz = Long.parseLong(subset.get("DataLength")); if(!finished) { // Direct (persistent temp bucket) byte[] key = HexUtil.hexToBytes(subset.get("TempBucket.DecryptKey")); String fnam = subset.get("TempBucket.Filename"); data = client.server.node.persistentTempBucketFactory.registerEncryptedBucket(fnam, key, sz); if(data.size() != sz) throw new PersistenceParseException("Size of bucket is wrong: "+data.size()+" should be "+sz); } else { data = null; } me = new ManifestElement(name, data, contentTypeOverride, sz); fileCount++; } else if(uploadFrom.equalsIgnoreCase("disk")) { long sz = Long.parseLong(subset.get("DataLength")); // Disk String f = subset.get("Filename"); if(f == null) throw new PersistenceParseException("UploadFrom=disk but no name on "+i); File ff = new File(f); if(!(ff.exists() && ff.canRead())) { Logger.error(this, "File no longer exists, cancelling upload: "+ff); throw new IOException("File no longer exists, cancelling upload: "+ff); } data = new FileBucket(ff, true, false, false, false); me = new ManifestElement(name, data, contentTypeOverride, sz); fileCount++; } else if(uploadFrom.equalsIgnoreCase("redirect")) { FreenetURI targetURI = new FreenetURI(subset.get("TargetURI")); me = new ManifestElement(name, targetURI, contentTypeOverride); } else throw new PersistenceParseException("Don't know UploadFrom="+uploadFrom); v.add(me); if((data != null) && (data.size() > 0)) size += data.size(); } manifestElements = SimpleManifestPutter.unflatten(v); SimpleManifestPutter p = null; try { if(!finished) p = new SimpleManifestPutter(this, client.node.chkPutScheduler, client.node.sskPutScheduler, manifestElements, priorityClass, uri, defaultName, ctx, getCHKOnly, client); } catch (InserterException e) { onFailure(e, null); p = null; } putter = p; numberOfFiles = fileCount; totalSize = size; if(!finished) start(); }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/022b3b641f81edc10e6026a8efd1ca7217d42d0c/ClientPutDir.java/buggy/src/freenet/node/fcp/ClientPutDir.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
1621,
12,
5784,
974,
694,
2662,
16,
478,
4258,
1227,
1004,
13,
1216,
13381,
13047,
16,
1860,
288,
202,
202,
9565,
12,
2556,
16,
1004,
1769,
202,
202,
5784,
974,
694,
1390,
273,
2662,
18,
15657,
2932,
2697,
8863,
202,
202,
1886,
461,
273,
2662,
18,
588,
2932,
1868,
461,
8863,
202,
202,
759,
24226,
329,
364,
4234,
16,
1524,
596,
23838,
202,
202,
474,
585,
1380,
273,
374,
31,
202,
202,
5748,
963,
273,
374,
31,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
1884,
12,
474,
277,
33,
20,
25708,
77,
27245,
288,
1082,
202,
780,
818,
273,
2144,
18,
10492,
12,
77,
1769,
1082,
202,
5784,
974,
694,
7931,
273,
1390,
18,
15657,
12,
2107,
1769,
1082,
202,
430,
12,
15657,
422,
446,
13,
898,
31,
1082,
202,
759,
5272,
4472,
1082,
202,
780,
508,
273,
7931,
18,
588,
2932,
461,
8863,
1082,
202,
430,
12,
529,
422,
446,
13,
9506,
202,
12849,
394,
13381,
13047,
2932,
2279,
1770,
603,
13773,
77,
1769,
1082,
202,
780,
5064,
6618,
273,
7931,
18,
588,
2932,
2277,
18,
8046,
8863,
1082,
202,
780,
3617,
1265,
273,
7931,
18,
588,
2932,
4777,
1265,
8863,
1082,
202,
4103,
501,
273,
446,
31,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
13963,
13773,
77,
1769,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
4777,
1265,
1546,
15,
6327,
1265,
1769,
1082,
202,
9121,
1046,
1791,
31,
1082,
202,
430,
12443,
6327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
1621,
12,
5784,
974,
694,
2662,
16,
478,
4258,
1227,
1004,
13,
1216,
13381,
13047,
16,
1860,
288,
202,
202,
9565,
12,
2556,
16,
1004,
1769,
202,
202,
5784,
974,
694,
1390,
273,
2662,
18,
15657,
2932,
2697,
8863,
202,
202,
1886,
461,
273,
2662,
18,
588,
2932,
1868,
461,
8863,
202,
202,
759,
24226,
329,
364,
4234,
16,
1524,
596,
23838,
202,
202,
474,
585,
1380,
273,
374,
31,
202,
202,
5748,
963,
273,
374,
31,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
1884,
12,
474,
277,
33,
20,
25708,
77,
27245,
288,
1082,
202,
780,
818,
273,
2144,
18,
10492,
12,
77,
1769,
1082,
202,
5784,
974,
694,
7931,
2
] |
if (selectionService == null || originalSelection == null)
|
if (selectionService == null || originalSelection == null) {
|
private IStructuredSelection convertToResources( IStructuredSelection originalSelection) { Object selectionService = PlatformUI.getWorkbench().getService( ISelectionConversionService.class); if (selectionService == null || originalSelection == null) return StructuredSelection.EMPTY; return ((ISelectionConversionService) selectionService) .convertToResources(originalSelection); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchWizardElement.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchWizardElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
30733,
6233,
8137,
3805,
12,
1082,
202,
45,
30733,
6233,
2282,
6233,
13,
288,
202,
202,
921,
4421,
1179,
273,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
1179,
12,
9506,
202,
45,
6233,
6814,
1179,
18,
1106,
1769,
202,
202,
430,
261,
10705,
1179,
422,
446,
747,
2282,
6233,
422,
446,
13,
1082,
202,
2463,
7362,
2862,
6233,
18,
13625,
31,
202,
202,
2463,
14015,
45,
6233,
6814,
1179,
13,
4421,
1179,
13,
9506,
202,
18,
6283,
774,
3805,
12,
8830,
6233,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
30733,
6233,
8137,
3805,
12,
1082,
202,
45,
30733,
6233,
2282,
6233,
13,
288,
202,
202,
921,
4421,
1179,
273,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
1179,
12,
9506,
202,
45,
6233,
6814,
1179,
18,
1106,
1769,
202,
202,
430,
261,
10705,
1179,
422,
446,
747,
2282,
6233,
422,
446,
13,
1082,
202,
2463,
7362,
2862,
6233,
18,
13625,
31,
202,
202,
2463,
14015,
45,
6233,
6814,
1179,
13,
4421,
1179,
13,
9506,
202,
18,
6283,
774,
3805,
12,
8830,
6233,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
BufferedInputStream bin = (BufferedInputStream) in; if (bin.pos > 0) bin.pos--;
|
next_c = read(); next_ch = (char) (next_c & 0xFF); if ((next_ch != '\n') && (next_c >= 0)) { BufferedInputStream bin = (BufferedInputStream) in; if (bin.pos > 0) bin.pos--; }
|
public final String readLine() throws IOException { StringBuffer strb = new StringBuffer(); while (true) { int c = read(); if (c < 0) // got an EOF return strb.length() > 0 ? strb.toString() : null; char ch = (char) c; if ((ch &= 0xFF) == '\n') break; if (ch == '\r') { // FIXME: The following code tries to adjust the stream back one // character if the next char read is '\n'. As a last resort, // it tries to mark the position before reading but the bottom // line is that it is possible that this method will not properly // deal with a '\r' '\n' combination thus not fulfilling the // DataInput contract for readLine. It's not a particularly // safe approach threadwise since it is unsynchronized and // since it might mark an input stream behind the users back. // Along the same vein it could try the same thing for // ByteArrayInputStream and PushbackInputStream, but that is // probably overkill since this is deprecated & BufferedInputStream // is the most likely type of input stream. // // The alternative is to somehow push back the next byte if it // isn't a '\n' or to have the reading methods of this class // keep track of whether the last byte read was '\r' by readLine // and then skip the very next byte if it is '\n'. Either way, // this would increase the complexity of the non-deprecated methods // and since it is undesirable to make non-deprecated methods // less efficient, the following seems like the most reasonable // approach. if (in instanceof BufferedInputStream && (read() & 0xFF) != '\n') { BufferedInputStream bin = (BufferedInputStream) in; if (bin.pos > 0) bin.pos--; } else if (markSupported()) { mark(1); if ((read() & 0xFF) != '\n') reset(); } break; } strb.append(ch); } return strb.length() > 0 ? strb.toString() : ""; }
|
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/b05ff674e18d58060e4a787690c02125d76d015b/DataInputStream.java/buggy/libjava/java/io/DataInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
514,
12273,
1435,
1216,
1860,
225,
288,
565,
6674,
609,
70,
273,
394,
6674,
5621,
565,
1323,
261,
3767,
13,
1377,
288,
202,
474,
276,
273,
855,
5621,
202,
430,
261,
71,
411,
374,
13,
202,
759,
2363,
392,
6431,
202,
225,
327,
609,
70,
18,
2469,
1435,
405,
374,
692,
609,
70,
18,
10492,
1435,
294,
446,
31,
202,
3001,
462,
273,
261,
3001,
13,
276,
31,
202,
430,
14015,
343,
12058,
374,
6356,
13,
422,
2337,
82,
6134,
202,
225,
898,
31,
202,
430,
261,
343,
422,
2337,
86,
6134,
202,
225,
288,
202,
565,
368,
9852,
30,
1021,
3751,
981,
9327,
358,
5765,
326,
1407,
1473,
1245,
202,
565,
368,
3351,
309,
326,
1024,
1149,
855,
353,
2337,
82,
10332,
225,
2970,
279,
1142,
400,
499,
16,
202,
565,
368,
518,
9327,
358,
2267,
326,
1754,
1865,
6453,
1496,
326,
5469,
202,
565,
368,
980,
353,
716,
518,
353,
3323,
716,
333,
707,
903,
486,
8214,
202,
565,
368,
10490,
598,
279,
2337,
86,
11,
2337,
82,
11,
10702,
12493,
486,
16136,
74,
5789,
326,
202,
565,
368,
1910,
1210,
6835,
364,
12273,
18,
225,
2597,
1807,
486,
279,
6826,
715,
202,
565,
368,
4183,
17504,
2650,
2460,
3241,
518,
353,
16804,
15666,
471,
202,
565,
368,
3241,
518,
4825,
2267,
392,
810,
1407,
21478,
326,
3677,
1473,
18,
202,
565,
368,
2262,
932,
326,
1967,
10489,
267,
518,
3377,
775,
326,
1967,
7757,
364,
202,
565,
368,
16180,
471,
8547,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
514,
12273,
1435,
1216,
1860,
225,
288,
565,
6674,
609,
70,
273,
394,
6674,
5621,
565,
1323,
261,
3767,
13,
1377,
288,
202,
474,
276,
273,
855,
5621,
202,
430,
261,
71,
411,
374,
13,
202,
759,
2363,
392,
6431,
202,
225,
327,
609,
70,
18,
2469,
1435,
405,
374,
692,
609,
70,
18,
10492,
1435,
294,
446,
31,
202,
3001,
462,
273,
261,
3001,
13,
276,
31,
202,
430,
14015,
343,
12058,
374,
6356,
13,
422,
2337,
82,
6134,
202,
225,
898,
31,
202,
430,
261,
343,
422,
2337,
86,
6134,
202,
225,
288,
202,
565,
368,
9852,
30,
1021,
3751,
981,
9327,
358,
5765,
326,
1407,
1473,
1245,
202,
565,
368,
3351,
309,
326,
2
] |
tuple[9] = "2".getBytes();
|
tuple[9] = encoding.encode("2");
|
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, getMaxNameLength()); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, getMaxNameLength()); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, getMaxNameLength()); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, getMaxNameLength()); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, getMaxNameLength()); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, getMaxNameLength()); String sql; if (connection.haveMinimumServerVersion("7.3")) { sql = "SELECT n.nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,def.adsrc,dsc.description "+ " FROM pg_catalog.pg_namespace n "+ " JOIN pg_catalog.pg_class c ON (c.relnamespace = n.oid) "+ " JOIN pg_catalog.pg_attribute a ON (a.attrelid=c.oid) "+ " LEFT JOIN pg_catalog.pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) "+ " LEFT JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) "+ " LEFT JOIN pg_catalog.pg_class dc ON (dc.oid=dsc.classoid AND dc.relname='pg_class') "+ " LEFT JOIN pg_catalog.pg_namespace dn ON (dc.relnamespace=dn.oid AND dn.nspname='pg_catalog') "+ " WHERE a.attnum > 0 AND NOT a.attisdropped "; if (schemaPattern != null && !"".equals(schemaPattern)) { sql += " AND n.nspname LIKE '"+escapeQuotes(schemaPattern)+"' "; } } else if (connection.haveMinimumServerVersion("7.2")) { sql = "SELECT NULL::text AS nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,def.adsrc,dsc.description "+ " FROM pg_class c "+ " JOIN pg_attribute a ON (a.attrelid=c.oid) "+ " LEFT JOIN pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) "+ " LEFT JOIN pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) "+ " LEFT JOIN pg_class dc ON (dc.oid=dsc.classoid AND dc.relname='pg_class') "+ " WHERE a.attnum > 0 "; } else if (connection.haveMinimumServerVersion("7.1")) { sql = "SELECT NULL::text AS nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,def.adsrc,dsc.description "+ " FROM pg_class c "+ " JOIN pg_attribute a ON (a.attrelid=c.oid) "+ " LEFT JOIN pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) "+ " LEFT JOIN pg_description dsc ON (a.oid=dsc.objoid) "+ " WHERE a.attnum > 0 "; } else { // if < 7.1 then don't get defaults or descriptions. sql = "SELECT NULL::text AS nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,NULL AS adsrc,NULL AS description "+ " FROM pg_class c, pg_attribute a "+ " WHERE a.attrelid=c.oid AND a.attnum > 0 "; } if (tableNamePattern != null && !"".equals(tableNamePattern)) { sql += " AND c.relname LIKE '"+escapeQuotes(tableNamePattern)+"' "; } if (columnNamePattern != null && !"".equals(columnNamePattern)) { sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern)+"' "; } sql += " ORDER BY nspname,relname,attnum "; ResultSet rs = connection.createStatement().executeQuery(sql); while (rs.next()) { byte[][] tuple = new byte[18][]; int typeOid = rs.getInt("atttypid"); tuple[0] = null; // Catalog name, not supported tuple[1] = rs.getBytes("nspname"); // Schema tuple[2] = rs.getBytes("relname"); // Table name tuple[3] = rs.getBytes("attname"); // Column name tuple[4] = Integer.toString(connection.getSQLType(typeOid)).getBytes(); String pgType = connection.getPGType(typeOid); tuple[5] = pgType.getBytes(); // Type name // by default no decimal_digits // if the type is numeric or decimal we will // overwrite later. tuple[8] = "0".getBytes(); if (pgType.equals("bpchar") || pgType.equals("varchar")) { int atttypmod = rs.getInt("atttypmod"); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else if (pgType.equals("numeric") || pgType.equals("decimal")) { int attypmod = rs.getInt("atttypmod") - VARHDRSZ; tuple[6] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = "10".getBytes(); } else if (pgType.equals("bit") || pgType.equals("varbit")) { tuple[6] = rs.getBytes("atttypmod"); tuple[9] = "2".getBytes(); } else { tuple[6] = rs.getBytes("attlen"); tuple[9] = "10".getBytes(); } tuple[7] = null; // Buffer length tuple[10] = Integer.toString(rs.getBoolean("attnotnull") ? java.sql.DatabaseMetaData.columnNoNulls : java.sql.DatabaseMetaData.columnNullable).getBytes(); // Nullable tuple[11] = rs.getBytes("description"); // Description (if any) tuple[12] = rs.getBytes("adsrc"); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = rs.getBytes("attnum"); // ordinal position tuple[17] = (rs.getBoolean("attnotnull") ? "NO" : "YES").getBytes(); // Is nullable v.addElement(tuple); } rs.close(); return (ResultSet) ((BaseStatement)connection.createStatement()).createResultSet(f, v, "OK", 1, 0, false); }
|
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/f9d3ed65c43e04c595b097a59d4d1c4542d82794/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
4574,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.