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 |
|---|---|---|---|---|---|---|
Integer editingMenuIndex = parserParameters.getEditingMenuIndex(); boolean editingThisMenu = null != editingMenuIndex && editingMenuIndex.intValue() == menuIndex && menuMode;
|
boolean editingThisMenu = editingMenu( menuIndex );
|
private Substitution getMenuItemSubstitution( MenuDomainObject menu, MenuItemDomainObject menuItem, Properties parameters, int menuItemIndex, int menuIndex ) { DocumentDomainObject document = menuItem.getDocument(); String imageUrl = document.getMenuImage(); String imageTag = ( imageUrl != null && imageUrl.length() > 0 ) ? ( "<img src=\"" + imageUrl + "\" border=\"0\">" ) : ""; String headline = document.getHeadline(); if ( headline.length() == 0 ) { headline = " "; } else { if ( !document.isPublished() ) { headline = "<em><i>" + headline; headline += "</i></em>"; } if ( document.isArchived() ) { headline = "<strike>" + headline; headline += "</strike>"; } } SimpleDateFormat dateFormat = new SimpleDateFormat( "yyyy-MM-dd" ); String createdDate = dateFormat.format( document.getCreatedDatetime() ); String modifiedDate = dateFormat.format( document.getModifiedDatetime() ); Properties tags = new Properties(); tags.setProperty( "#childMetaId#", "" + document.getId() ); tags.setProperty( "#childMetaHeadline#", headline ); tags.setProperty( "#childMetaText#", document.getMenuText() ); tags.setProperty( "#childMetaImage#", imageTag ); tags.setProperty( "#childCreatedDate#", createdDate ); tags.setProperty( "#childModifiedDate#", modifiedDate ); tags.setProperty( "#menuitemindex#", "" + menuItemIndex ); tags.setProperty( "#menuitemtreesortkey#", menuItem.getTreeSortKey().toString() ); tags.setProperty( "#menuitemmetaid#", "" + document.getId() ); tags.setProperty( "#menuitemheadline#", headline ); tags.setProperty( "#menuitemtext#", document.getMenuText() ); tags.setProperty( "#menuitemimage#", imageTag ); tags.setProperty( "#menuitemimageurl#", imageUrl ); tags.setProperty( "#menuitemtarget#", document.getTarget() ); tags.setProperty( "#menuitemdatecreated#", createdDate ); tags.setProperty( "#menuitemdatemodified#", modifiedDate ); String template = parameters.getProperty( "template" ); String href = "GetDoc?meta_id=" + document.getId() + ( template != null ? "&template=" + URLEncoder.encode( template ) : "" ); List menuItemAHref = new ArrayList( 4 ); menuItemAHref.add( "#href#" ); menuItemAHref.add( href ); menuItemAHref.add( "#target#" ); menuItemAHref.add( document.getTarget() ); UserDomainObject user = parserParameters.getDocumentRequest().getUser(); String a_href = parserParameters.getDocumentRequest().getServerObject().getAdminTemplate( "textdoc/menuitem_a_href.frag", user, menuItemAHref ); tags.setProperty( "#menuitemlinkonly#", a_href ); tags.setProperty( "#/menuitemlinkonly#", "</a>" ); Integer editingMenuIndex = parserParameters.getEditingMenuIndex(); boolean editingThisMenu = null != editingMenuIndex && editingMenuIndex.intValue() == menuIndex && menuMode; DocumentMapper documentMapper = parserParameters.getDocumentRequest().getServerObject().getDocumentMapper() ; if ( editingThisMenu ) { final int sortOrder = menu.getSortOrder(); if ( MenuDomainObject.MENU_SORT_ORDER__BY_MANUAL_ORDER == sortOrder || MenuDomainObject.MENU_SORT_ORDER__BY_MANUAL_TREE_ORDER == sortOrder ) { String sortKey = ""; String sortKeyTemplate = null; if ( MenuDomainObject.MENU_SORT_ORDER__BY_MANUAL_ORDER == sortOrder ) { sortKey = "" + menuItem.getSortKey(); sortKeyTemplate = "textdoc/admin_menuitem_manual_sortkey.frag"; } else if ( MenuDomainObject.MENU_SORT_ORDER__BY_MANUAL_TREE_ORDER == sortOrder ) { String key = menuItem.getTreeSortKey().toString(); sortKey = key == null ? "" : key; sortKeyTemplate = "textdoc/admin_menuitem_treesortkey.frag"; } List menuItemSortKeyTags = new ArrayList( 4 ); menuItemSortKeyTags.add( "#meta_id#" ); menuItemSortKeyTags.add( "" + document.getId() ); menuItemSortKeyTags.add( "#sortkey#" ); menuItemSortKeyTags.add( sortKey ); a_href = parserParameters.getDocumentRequest().getServerObject().getAdminTemplate( sortKeyTemplate, user, menuItemSortKeyTags ) + a_href; } List menuItemCheckboxTags = new ArrayList( 2 ); menuItemCheckboxTags.add( "#meta_id#" ); menuItemCheckboxTags.add( "" + document.getId() ); a_href = parserParameters.getDocumentRequest().getServerObject().getAdminTemplate( "textdoc/admin_menuitem_checkbox.frag", user, menuItemCheckboxTags ) + a_href; ; a_href = Utility.getLinkedStatusIconTemplate( menuItem.getDocument(), user ) + a_href; } tags.setProperty( "#menuitemlink#", a_href ); tags.setProperty( "#/menuitemlink#", editingThisMenu && documentMapper.userHasMoreThanReadPermissionOnDocument( user, document ) ? "</a>" + parserParameters.getDocumentRequest().getServerObject().getAdminTemplate( "textdoc/admin_menuitem.frag", user, Arrays.asList( new String[]{ "#meta_id#", "" + document.getId() } ) ) : "</a>" ); return new MapSubstitution( tags, true ); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/58f85b95772e879241e46d3e7acf12e064b0a8d0/MenuParserSubstitution.java/buggy/server/src/imcode/server/parser/MenuParserSubstitution.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2592,
14278,
25877,
1180,
23798,
12,
9809,
3748,
921,
3824,
16,
25085,
3748,
921,
19711,
16,
4766,
5375,
6183,
1472,
16,
509,
19711,
1016,
16,
509,
3824,
1016,
262,
288,
3639,
4319,
3748,
921,
1668,
273,
19711,
18,
588,
2519,
5621,
3639,
514,
27544,
273,
1668,
18,
588,
4599,
2040,
5621,
3639,
514,
1316,
1805,
273,
261,
27544,
480,
446,
597,
27544,
18,
2469,
1435,
405,
374,
262,
12900,
692,
261,
3532,
6081,
1705,
13186,
397,
27544,
397,
7023,
5795,
5189,
20,
21121,
262,
294,
1408,
31,
3639,
514,
910,
1369,
273,
1668,
18,
588,
1414,
1369,
5621,
3639,
309,
261,
910,
1369,
18,
2469,
1435,
422,
374,
262,
288,
5411,
910,
1369,
273,
7830,
10600,
4868,
31,
3639,
289,
469,
288,
5411,
309,
261,
401,
5457,
18,
291,
16451,
1435,
262,
288,
7734,
910,
1369,
273,
3532,
351,
4438,
77,
2984,
397,
910,
1369,
31,
7734,
910,
1369,
1011,
6823,
77,
4695,
351,
2984,
31,
5411,
289,
5411,
309,
261,
1668,
18,
291,
12269,
2950,
1435,
262,
288,
7734,
910,
1369,
273,
3532,
701,
2547,
2984,
397,
910,
1369,
31,
7734,
910,
1369,
1011,
6823,
701,
2547,
2984,
31,
5411,
289,
3639,
289,
3639,
17005,
16996,
273,
394,
17005,
12,
315,
17722,
17,
8206,
17,
449,
6,
11272,
3639,
514,
2522,
1626,
273,
16996,
18,
2139,
12,
1668,
18,
588,
6119,
16103,
1435,
11272,
3639,
514,
4358,
1626,
273,
16996,
18,
2139,
12,
1668,
18,
588,
4575,
16103,
1435,
11272,
3639,
6183,
2342,
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,
3238,
2592,
14278,
25877,
1180,
23798,
12,
9809,
3748,
921,
3824,
16,
25085,
3748,
921,
19711,
16,
4766,
5375,
6183,
1472,
16,
509,
19711,
1016,
16,
509,
3824,
1016,
262,
288,
3639,
4319,
3748,
921,
1668,
273,
19711,
18,
588,
2519,
5621,
3639,
514,
27544,
273,
1668,
18,
588,
4599,
2040,
5621,
3639,
514,
1316,
1805,
273,
261,
27544,
480,
446,
597,
27544,
18,
2469,
1435,
405,
374,
262,
12900,
692,
261,
3532,
6081,
1705,
13186,
397,
27544,
397,
7023,
5795,
5189,
20,
21121,
262,
294,
1408,
31,
3639,
514,
910,
1369,
273,
1668,
18,
588,
1414,
1369,
5621,
3639,
309,
261,
910,
1369,
18,
2469,
1435,
422,
374,
262,
288,
5411,
910,
1369,
273,
7830,
10600,
4868,
2
] |
messageContext.getConfigurationContext().getServiceContextPath());
|
configurationContext.getServiceContextPath());
|
public AxisService findService(MessageContext messageContext) throws AxisFault { EndpointReference toEPR = messageContext.getTo(); if (toEPR != null) { if(isDebugEnabled){ log.debug("Checking for Service using target endpoint address : " + toEPR.getAddress()); } String filePart = toEPR.getAddress(); //REVIEW: (nagy) Parsing the RequestURI will also give us the operationName if present, so we could conceivably store it in the MessageContext, but doing so and retrieving it is probably no faster than simply reparsing the URI String[] values = Utils.parseRequestURLForServiceAndOperation(filePart, messageContext.getConfigurationContext().getServiceContextPath()); if ((values.length >= 1) && (values[0] != null)) { AxisConfiguration registry = messageContext.getConfigurationContext().getAxisConfiguration(); return registry.getService(values[0]); } else { if(isDebugEnabled){ log.debug("Attempted to check for Service using target endpoint URI, but the service fragment was missing"); } return null; } } else { if(isDebugEnabled){ log.debug("Attempted to check for Service using null target endpoint URI"); } return null; } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/532c88bdce1b4e29505bdb6e6c2df6fda0626622/RequestURIBasedDispatcher.java/clean/modules/kernel/src/org/apache/axis2/engine/RequestURIBasedDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15509,
1179,
1104,
1179,
12,
1079,
1042,
883,
1042,
13,
1216,
15509,
7083,
288,
3639,
6961,
2404,
358,
41,
8025,
273,
883,
1042,
18,
588,
774,
5621,
3639,
309,
261,
869,
41,
8025,
480,
446,
13,
288,
5411,
309,
12,
291,
2829,
1526,
15329,
5411,
613,
18,
4148,
2932,
14294,
364,
1956,
1450,
1018,
2494,
1758,
294,
315,
397,
358,
41,
8025,
18,
588,
1887,
10663,
5411,
289,
5411,
514,
585,
1988,
273,
358,
41,
8025,
18,
588,
1887,
5621,
5411,
368,
862,
12145,
30,
261,
27132,
93,
13,
19761,
326,
1567,
3098,
903,
2546,
8492,
584,
326,
22697,
309,
3430,
16,
1427,
732,
3377,
356,
311,
427,
6906,
1707,
518,
316,
326,
2350,
1042,
16,
1496,
9957,
1427,
471,
17146,
518,
353,
8656,
1158,
12063,
2353,
8616,
283,
24979,
326,
3699,
5411,
514,
8526,
924,
273,
6091,
18,
2670,
691,
1785,
1290,
1179,
1876,
2988,
12,
768,
1988,
16,
10792,
1664,
1042,
18,
588,
1179,
1042,
743,
10663,
5411,
309,
14015,
2372,
18,
2469,
1545,
404,
13,
597,
261,
2372,
63,
20,
65,
480,
446,
3719,
288,
7734,
15509,
1750,
4023,
273,
13491,
883,
1042,
18,
588,
1750,
1042,
7675,
588,
6558,
1750,
5621,
7734,
327,
4023,
18,
588,
1179,
12,
2372,
63,
20,
19226,
5411,
289,
469,
288,
7734,
309,
12,
291,
2829,
1526,
15329,
7734,
613,
18,
4148,
2932,
28788,
358,
866,
364,
1956,
1450,
1018,
2494,
3699,
16,
1496,
326,
1156,
5481,
1703,
3315,
8863,
7734,
289,
7734,
327,
446,
31,
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,
15509,
1179,
1104,
1179,
12,
1079,
1042,
883,
1042,
13,
1216,
15509,
7083,
288,
3639,
6961,
2404,
358,
41,
8025,
273,
883,
1042,
18,
588,
774,
5621,
3639,
309,
261,
869,
41,
8025,
480,
446,
13,
288,
5411,
309,
12,
291,
2829,
1526,
15329,
5411,
613,
18,
4148,
2932,
14294,
364,
1956,
1450,
1018,
2494,
1758,
294,
315,
397,
358,
41,
8025,
18,
588,
1887,
10663,
5411,
289,
5411,
514,
585,
1988,
273,
358,
41,
8025,
18,
588,
1887,
5621,
5411,
368,
862,
12145,
30,
261,
27132,
93,
13,
19761,
326,
1567,
3098,
903,
2546,
8492,
584,
326,
22697,
309,
3430,
16,
1427,
732,
3377,
356,
311,
427,
6906,
1707,
518,
316,
326,
2350,
1042,
16,
1496,
2
] |
Token xsp; xsp = jj_scanpos; if (jj_3_9()) { jj_scanpos = xsp; if (jj_3_10()) { jj_scanpos = xsp; if (jj_3R_121()) return true;
|
if (jj_scan_token(NAME)) return true;
|
final private boolean jj_3R_107() { Token xsp; xsp = jj_scanpos; if (jj_3_9()) { jj_scanpos = xsp; if (jj_3_10()) { jj_scanpos = xsp; if (jj_3R_121()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/2b47cff319e0a469e540c356f904a833b9b33cd7/PythonGrammar.java/clean/org/python/parser/PythonGrammar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23054,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
29,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
67,
2163,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
26009,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23054,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
29,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
67,
2163,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
26009,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
2
] |
public static boolean isNotInFlow(Object target) { return target instanceof AbsolutelyPositionedContent || target instanceof FloatedBlockContent;
|
public static boolean isNotInFlow(Object current) { if (current instanceof AnonymousBlockContent) { AnonymousBlockContent anon = (AnonymousBlockContent)current; for (Iterator i = anon.getChildContent(null).iterator(); i.hasNext(); ) { Object content = (Object)i.next(); if ( ! (content instanceof FloatedBlockContent || content instanceof AbsolutelyPositionedContent)) { return false; } } return true; } else { return false; }
|
public static boolean isNotInFlow(Object target) { return target instanceof AbsolutelyPositionedContent || target instanceof FloatedBlockContent; }
|
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/2aa2be70fd65b9008f7db1dc1250cb01f13cf049/ContentUtil.java/clean/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
8827,
382,
5249,
12,
921,
1018,
13,
288,
3639,
327,
1018,
1276,
15084,
355,
322,
2357,
2555,
329,
1350,
747,
1018,
1276,
478,
383,
690,
1768,
1350,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
8827,
382,
5249,
12,
921,
1018,
13,
288,
3639,
327,
1018,
1276,
15084,
355,
322,
2357,
2555,
329,
1350,
747,
1018,
1276,
478,
383,
690,
1768,
1350,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST tmp1690_AST_in = (AST)_t;
|
AST tmp1689_AST_in = (AST)_t;
|
public final void sqlexpression(AST _t) throws RecognitionException { AST sqlexpression_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OR: { AST __t2463 = _t; AST tmp1667_AST_in = (AST)_t; match(_t,OR); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; sqlexpression(_t); _t = _retTree; _t = __t2463; _t = _t.getNextSibling(); break; } case AND: { AST __t2464 = _t; AST tmp1668_AST_in = (AST)_t; match(_t,AND); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; sqlexpression(_t); _t = _retTree; _t = __t2464; _t = _t.getNextSibling(); break; } case NOT: { AST __t2465 = _t; AST tmp1669_AST_in = (AST)_t; match(_t,NOT); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; _t = __t2465; _t = _t.getNextSibling(); break; } case MATCHES: { AST __t2466 = _t; AST tmp1670_AST_in = (AST)_t; match(_t,MATCHES); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2466; _t = _t.getNextSibling(); break; } case BEGINS: { AST __t2468 = _t; AST tmp1671_AST_in = (AST)_t; match(_t,BEGINS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2468; _t = _t.getNextSibling(); break; } case CONTAINS: { AST __t2470 = _t; AST tmp1672_AST_in = (AST)_t; match(_t,CONTAINS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2470; _t = _t.getNextSibling(); break; } case EQ: { AST __t2472 = _t; AST tmp1673_AST_in = (AST)_t; match(_t,EQ); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2472; _t = _t.getNextSibling(); break; } case NE: { AST __t2474 = _t; AST tmp1674_AST_in = (AST)_t; match(_t,NE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2474; _t = _t.getNextSibling(); break; } case GTHAN: { AST __t2476 = _t; AST tmp1675_AST_in = (AST)_t; match(_t,GTHAN); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2476; _t = _t.getNextSibling(); break; } case GE: { AST __t2478 = _t; AST tmp1676_AST_in = (AST)_t; match(_t,GE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2478; _t = _t.getNextSibling(); break; } case LTHAN: { AST __t2480 = _t; AST tmp1677_AST_in = (AST)_t; match(_t,LTHAN); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2480; _t = _t.getNextSibling(); break; } case LE: { AST __t2482 = _t; AST tmp1678_AST_in = (AST)_t; match(_t,LE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2482; _t = _t.getNextSibling(); break; } case EXISTS: { AST __t2484 = _t; AST tmp1679_AST_in = (AST)_t; match(_t,EXISTS); _t = _t.getFirstChild(); AST tmp1680_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; AST tmp1681_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2484; _t = _t.getNextSibling(); break; } case Sql_begins: { AST __t2485 = _t; AST tmp1682_AST_in = (AST)_t; match(_t,Sql_begins); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1683_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case BEGINS: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1684_AST_in = (AST)_t; match(_t,BEGINS); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2485; _t = _t.getNextSibling(); break; } case Sql_between: { AST __t2487 = _t; AST tmp1685_AST_in = (AST)_t; match(_t,Sql_between); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1686_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case BETWEEN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1687_AST_in = (AST)_t; match(_t,BETWEEN); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; AST tmp1688_AST_in = (AST)_t; match(_t,AND); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2487; _t = _t.getNextSibling(); break; } case Sql_in: { AST __t2489 = _t; AST tmp1689_AST_in = (AST)_t; match(_t,Sql_in); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1690_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1691_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp1692_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SELECT: { selectstatea(_t); _t = _retTree; break; } case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LITTLEENDIAN: case NO: case NOLOCK: case NOWAIT: case NULL_KW: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TRUE_KW: case USERID: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case Field_ref: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { sql_in_val(_t); _t = _retTree; { _loop2493: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1693_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sql_in_val(_t); _t = _retTree; } else { break _loop2493; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } AST tmp1694_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2489; _t = _t.getNextSibling(); break; } case Sql_like: { AST __t2494 = _t; AST tmp1695_AST_in = (AST)_t; match(_t,Sql_like); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1696_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case LIKE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1697_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ESCAPE: { AST tmp1698_AST_in = (AST)_t; match(_t,ESCAPE); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2494; _t = _t.getNextSibling(); break; } case Sql_null_test: { AST __t2497 = _t; AST tmp1699_AST_in = (AST)_t; match(_t,Sql_null_test); _t = _t.getFirstChild(); AST tmp1700_AST_in = (AST)_t; match(_t,IS); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1701_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case NULL_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1702_AST_in = (AST)_t; match(_t,NULL_KW); _t = _t.getNextSibling(); _t = __t2497; _t = _t.getNextSibling(); break; } default: if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4744,
4149,
1337,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4744,
4149,
1337,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
4869,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
4449,
273,
389,
88,
31,
1082,
202,
9053,
1853,
2313,
9599,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
916,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
11410,
4149,
1337,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
11410,
4149,
1337,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3247,
4449,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
4116,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
1105,
273,
389,
88,
31,
1082,
202,
9053,
1853,
2313,
9470,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4307,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
11410,
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,
4744,
4149,
1337,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4744,
4149,
1337,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
4869,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
4449,
273,
389,
88,
31,
1082,
202,
9053,
1853,
2313,
9599,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
916,
1769,
1082,
202,
67,
88,
273,
389,
2
] |
public void putObjectWithoutSuper(Object obj, ObjectOutputStream out, ObjectOutputStreamImpl impl) throws IOException { // Put the data in our superclasses first (if they're serializable) if (superstream != null) { superstream.putObjectWithoutSuper(obj, out, impl); } if ((method & ObjectStreamConstants.SC_EXTERNALIZABLE) != 0) {//System.out.println("...writeExternal"); ((Externalizable)obj).writeExternal(out); } else if ((method & ObjectStreamConstants.SC_WRITE_METHOD) != 0) {//System.out.println("...invokeObjectWriter"); boolean restore = impl.enableBuffering(true); invokeObjectWriter0(obj, out); impl.enableBuffering(restore); impl.writeByte(ObjectStreamConstants.TC_ENDBLOCKDATA); } else if ((method & ObjectStreamConstants.SC_SERIALIZABLE) != 0) {//System.out.println("...defaultWriteObject"); defaultWriteObject(obj, out); } else { throw new StreamCorruptedException("unknown method type"); }}
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/85447bec0d10078a27984e4a16099a14db17e531/ObjectStreamClassImpl.java/buggy/libraries/javalib/kaffe/io/ObjectStreamClassImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
458,
921,
8073,
8051,
12,
921,
2603,
16,
921,
4632,
659,
16,
921,
4632,
2828,
11299,
13,
15069,
14106,
95,
202,
759,
6426,
451,
329,
396,
267,
477,
9565,
4701,
3645,
12,
430,
451,
402,
4565,
8818,
6934,
13,
202,
430,
12,
9565,
3256,
5,
33,
2011,
15329,
202,
202,
9565,
3256,
18,
458,
921,
8073,
8051,
12,
2603,
16,
659,
16,
11299,
1769,
202,
97,
202,
430,
12443,
2039,
10,
921,
1228,
2918,
18,
2312,
67,
2294,
11702,
6867,
2782,
13,
5,
33,
20,
15329,
759,
3163,
18,
659,
18,
8222,
2932,
2777,
2626,
6841,
8863,
202,
202,
12443,
6841,
6934,
13,
2603,
2934,
2626,
6841,
12,
659,
1769,
202,
97,
202,
12107,
430,
12443,
2039,
10,
921,
1228,
2918,
18,
2312,
67,
11677,
67,
5327,
13,
5,
33,
20,
15329,
759,
3163,
18,
659,
18,
8222,
2932,
2777,
14407,
921,
2289,
8863,
202,
202,
6494,
13991,
33,
11299,
18,
7589,
1892,
310,
12,
3767,
1769,
202,
202,
14407,
921,
2289,
20,
12,
2603,
16,
659,
1769,
202,
202,
11299,
18,
7589,
1892,
310,
12,
13991,
1769,
202,
202,
11299,
18,
2626,
3216,
12,
921,
1228,
2918,
18,
15988,
67,
1157,
2290,
6589,
4883,
1769,
202,
97,
202,
12107,
430,
12443,
2039,
10,
921,
1228,
2918,
18,
2312,
67,
2123,
15154,
2782,
13,
5,
33,
20,
15329,
759,
3163,
18,
659,
18,
8222,
2932,
2777,
1886,
3067,
921,
8863,
202,
202,
1886,
3067,
921,
12,
2603,
16,
659,
1769,
202,
97,
202,
12107,
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,
1071,
6459,
458,
921,
8073,
8051,
12,
921,
2603,
16,
921,
4632,
659,
16,
921,
4632,
2828,
11299,
13,
15069,
14106,
95,
202,
759,
6426,
451,
329,
396,
267,
477,
9565,
4701,
3645,
12,
430,
451,
402,
4565,
8818,
6934,
13,
202,
430,
12,
9565,
3256,
5,
33,
2011,
15329,
202,
202,
9565,
3256,
18,
458,
921,
8073,
8051,
12,
2603,
16,
659,
16,
11299,
1769,
202,
97,
202,
430,
12443,
2039,
10,
921,
1228,
2918,
18,
2312,
67,
2294,
11702,
6867,
2782,
13,
5,
33,
20,
15329,
759,
3163,
18,
659,
18,
8222,
2932,
2777,
2626,
6841,
8863,
202,
202,
12443,
6841,
6934,
13,
2603,
2934,
2626,
6841,
12,
659,
1769,
202,
97,
202,
12107,
430,
12443,
2039,
2
] |
||
if (deleteFirst) { int no = DB.executeUpdate("DELETE Fact_Acct_Balance WHERE C_AcctSchema_ID=?", C_AcctSchema_ID, null); s_log.fine("Deleted=" + no); }
|
int no = DB.executeUpdate("DELETE FROM Fact_Acct_Balance WHERE C_AcctSchema_ID=?", C_AcctSchema_ID, null); s_log.fine("Deleted=" + no);
|
public static String updateBalance (int C_AcctSchema_ID, boolean deleteFirst) { s_log.info("C_AcctSchema_ID=" + C_AcctSchema_ID + " - DeleteFirst=" + deleteFirst); long start = System.currentTimeMillis(); if (deleteFirst) { int no = DB.executeUpdate("DELETE Fact_Acct_Balance WHERE C_AcctSchema_ID=?", C_AcctSchema_ID, null); s_log.fine("Deleted=" + no); } // Update existing String sql = "UPDATE Fact_Acct_Balance ab " + "SET (AmtAcctDr, AmtAcctCr, Qty)= " + "(SELECT COALESCE(SUM(AmtAcctDr),0), COALESCE(SUM(AmtAcctCr),0), COALESCE(SUM(Qty),0) " + "FROM Fact_Acct a " + "WHERE a.AD_Client_ID=ab.AD_Client_ID AND a.AD_Org_ID=ab.AD_Org_ID" + " AND a.C_AcctSchema_ID=ab.C_AcctSchema_ID AND TRUNC(a.DateAcct)=TRUNC(ab.DateAcct)" + " AND a.Account_ID=ab.Account_ID AND a.PostingType=ab.PostingType" + " AND COALESCE(a.M_Product_ID,0)=COALESCE(ab.M_Product_ID,0) AND COALESCE(a.C_BPartner_ID,0)=COALESCE(ab.C_BPartner_ID,0)" + " AND COALESCE(a.C_Project_ID,0)=COALESCE(ab.C_Project_ID,0) AND COALESCE(a.AD_OrgTrx_ID,0)=COALESCE(ab.AD_OrgTrx_ID,0)" + " AND COALESCE(a.C_SalesRegion_ID,0)=COALESCE(ab.C_SalesRegion_ID,0) AND COALESCE(a.C_Activity_ID,0)=COALESCE(ab.C_Activity_ID,0)" + " AND COALESCE(a.C_Campaign_ID,0)=COALESCE(ab.C_Campaign_ID,0) AND COALESCE(a.C_LocTo_ID,0)=COALESCE(ab.C_LocTo_ID,0) AND COALESCE(a.C_LocFrom_ID,0)=COALESCE(ab.C_LocFrom_ID,0)" + " AND COALESCE(a.User1_ID,0)=COALESCE(ab.User1_ID,0) AND COALESCE(a.User2_ID,0)=COALESCE(ab.User2_ID,0) AND COALESCE(a.GL_Budget_ID,0)=COALESCE(ab.GL_Budget_ID,0) " + "GROUP BY AD_Client_ID,AD_Org_ID, C_AcctSchema_ID, TRUNC(DateAcct)," + " Account_ID, PostingType, M_Product_ID, C_BPartner_ID," + " C_Project_ID, AD_OrgTrx_ID, C_SalesRegion_ID, C_Activity_ID," + " C_Campaign_ID, C_LocTo_ID, C_LocFrom_ID, User1_ID, User2_ID, GL_Budget_ID) " + "WHERE C_AcctSchema_ID=" + C_AcctSchema_ID + " AND EXISTS (SELECT 1 FROM Fact_Acct a " + "WHERE a.AD_Client_ID=ab.AD_Client_ID AND a.AD_Org_ID=ab.AD_Org_ID" + " AND a.C_AcctSchema_ID=ab.C_AcctSchema_ID AND TRUNC(a.DateAcct)=TRUNC(ab.DateAcct)" + " AND a.Account_ID=ab.Account_ID AND a.PostingType=ab.PostingType" + " AND COALESCE(a.M_Product_ID,0)=COALESCE(ab.M_Product_ID,0) AND COALESCE(a.C_BPartner_ID,0)=COALESCE(ab.C_BPartner_ID,0)" + " AND COALESCE(a.C_Project_ID,0)=COALESCE(ab.C_Project_ID,0) AND COALESCE(a.AD_OrgTrx_ID,0)=COALESCE(ab.AD_OrgTrx_ID,0)" + " AND COALESCE(a.C_SalesRegion_ID,0)=COALESCE(ab.C_SalesRegion_ID,0) AND COALESCE(a.C_Activity_ID,0)=COALESCE(ab.C_Activity_ID,0)" + " AND COALESCE(a.C_Campaign_ID,0)=COALESCE(ab.C_Campaign_ID,0) AND COALESCE(a.C_LocTo_ID,0)=COALESCE(ab.C_LocTo_ID,0) AND COALESCE(a.C_LocFrom_ID,0)=COALESCE(ab.C_LocFrom_ID,0)" + " AND COALESCE(a.User1_ID,0)=COALESCE(ab.User1_ID,0) AND COALESCE(a.User2_ID,0)=COALESCE(ab.User2_ID,0) AND COALESCE(a.GL_Budget_ID,0)=COALESCE(ab.GL_Budget_ID,0) " + "GROUP BY AD_Client_ID,AD_Org_ID," + " C_AcctSchema_ID, TRUNC(DateAcct)," + " Account_ID, PostingType," + " M_Product_ID, C_BPartner_ID," + " C_Project_ID, AD_OrgTrx_ID," + " C_SalesRegion_ID, C_Activity_ID," + " C_Campaign_ID, C_LocTo_ID, C_LocFrom_ID," + " User1_ID, User2_ID, GL_Budget_ID)"; if (!deleteFirst) { int no = DB.executeUpdate(sql, null); s_log.fine("Updates=" + no); } /** Insert **/ sql = "INSERT INTO Fact_Acct_Balance " + "(AD_Client_ID, AD_Org_ID, C_AcctSchema_ID, DateAcct," + " Account_ID, PostingType, M_Product_ID, C_BPartner_ID," + " C_Project_ID, AD_OrgTrx_ID, C_SalesRegion_ID,C_Activity_ID," + " C_Campaign_ID, C_LocTo_ID, C_LocFrom_ID, User1_ID, User2_ID, GL_Budget_ID," + " AmtAcctDr, AmtAcctCr, Qty) " // + "SELECT AD_Client_ID, AD_Org_ID, C_AcctSchema_ID, TRUNC(DateAcct)," + " Account_ID, PostingType, M_Product_ID, C_BPartner_ID," + " C_Project_ID, AD_OrgTrx_ID, C_SalesRegion_ID,C_Activity_ID," + " C_Campaign_ID, C_LocTo_ID, C_LocFrom_ID, User1_ID, User2_ID, GL_Budget_ID," + " COALESCE(SUM(AmtAcctDr),0), COALESCE(SUM(AmtAcctCr),0), COALESCE(SUM(Qty),0) " + "FROM Fact_Acct a " + "WHERE C_AcctSchema_ID=" + C_AcctSchema_ID; if (!deleteFirst) sql += " AND NOT EXISTS (SELECT 1 " + "FROM Fact_Acct_Balance x " + "WHERE a.AD_Client_ID=x.AD_Client_ID AND a.AD_Org_ID=x.AD_Org_ID" + " AND a.C_AcctSchema_ID=x.C_AcctSchema_ID AND TRUNC(a.DateAcct)=TRUNC(x.DateAcct)" + " AND a.Account_ID=x.Account_ID AND a.PostingType=x.PostingType" + " AND COALESCE(a.M_Product_ID,0)=COALESCE(x.M_Product_ID,0) AND COALESCE(a.C_BPartner_ID,0)=COALESCE(x.C_BPartner_ID,0)" + " AND COALESCE(a.C_Project_ID,0)=COALESCE(x.C_Project_ID,0) AND COALESCE(a.AD_OrgTrx_ID,0)=COALESCE(x.AD_OrgTrx_ID,0)" + " AND COALESCE(a.C_SalesRegion_ID,0)=COALESCE(x.C_SalesRegion_ID,0) AND COALESCE(a.C_Activity_ID,0)=COALESCE(x.C_Activity_ID,0)" + " AND COALESCE(a.C_Campaign_ID,0)=COALESCE(x.C_Campaign_ID,0) AND COALESCE(a.C_LocTo_ID,0)=COALESCE(x.C_LocTo_ID,0) AND COALESCE(a.C_LocFrom_ID,0)=COALESCE(x.C_LocFrom_ID,0)" + " AND COALESCE(a.User1_ID,0)=COALESCE(x.User1_ID,0) AND COALESCE(a.User2_ID,0)=COALESCE(x.User2_ID,0) AND COALESCE(a.GL_Budget_ID,0)=COALESCE(x.GL_Budget_ID,0) )"; sql += " GROUP BY AD_Client_ID,AD_Org_ID, C_AcctSchema_ID, TRUNC(DateAcct)," + " Account_ID, PostingType, M_Product_ID, C_BPartner_ID," + " C_Project_ID, AD_OrgTrx_ID, C_SalesRegion_ID, C_Activity_ID," + " C_Campaign_ID, C_LocTo_ID, C_LocFrom_ID, User1_ID, User2_ID, GL_Budget_ID"; int no = DB.executeUpdate(sql, null); s_log.fine("Inserts=" + no); start = System.currentTimeMillis() - start; s_log.info((start/1000) + " sec"); return ""; } // updateBalance
|
25591 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25591/204116f15efa2160509d7ce478d5653a34e05302/FinBalance.java/buggy/base/src/org/compiere/report/FinBalance.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
1089,
13937,
261,
474,
385,
67,
9988,
299,
3078,
67,
734,
16,
1250,
1430,
3759,
13,
202,
95,
202,
202,
87,
67,
1330,
18,
1376,
2932,
39,
67,
9988,
299,
3078,
67,
734,
1546,
397,
385,
67,
9988,
299,
3078,
67,
734,
397,
315,
300,
2504,
3759,
1546,
397,
1430,
3759,
1769,
202,
202,
5748,
787,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
430,
261,
3733,
3759,
13,
202,
202,
95,
1082,
202,
474,
1158,
273,
2383,
18,
8837,
1891,
2932,
6460,
29057,
67,
9988,
299,
67,
13937,
4852,
385,
67,
9988,
299,
3078,
67,
734,
17282,
3113,
4697,
202,
39,
67,
9988,
299,
3078,
67,
734,
16,
446,
1769,
1082,
202,
87,
67,
1330,
18,
74,
558,
2932,
7977,
1546,
397,
1158,
1769,
202,
202,
97,
202,
202,
759,
202,
1891,
2062,
202,
202,
780,
1847,
273,
315,
8217,
29057,
67,
9988,
299,
67,
13937,
1223,
315,
1082,
202,
15,
315,
4043,
261,
31787,
9988,
299,
8956,
16,
432,
1010,
9988,
299,
12893,
16,
2238,
4098,
13,
33,
315,
1082,
202,
15,
7751,
4803,
7910,
37,
11386,
1441,
12,
14020,
12,
31787,
9988,
299,
8956,
3631,
20,
3631,
7910,
37,
11386,
1441,
12,
14020,
12,
31787,
9988,
299,
12893,
3631,
20,
3631,
7910,
37,
11386,
1441,
12,
14020,
12,
53,
4098,
3631,
20,
13,
315,
1082,
202,
15,
315,
11249,
29057,
67,
9988,
299,
279,
315,
1082,
202,
15,
315,
12299,
279,
18,
1880,
67,
1227,
67,
734,
33,
378,
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,
514,
1089,
13937,
261,
474,
385,
67,
9988,
299,
3078,
67,
734,
16,
1250,
1430,
3759,
13,
202,
95,
202,
202,
87,
67,
1330,
18,
1376,
2932,
39,
67,
9988,
299,
3078,
67,
734,
1546,
397,
385,
67,
9988,
299,
3078,
67,
734,
397,
315,
300,
2504,
3759,
1546,
397,
1430,
3759,
1769,
202,
202,
5748,
787,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
430,
261,
3733,
3759,
13,
202,
202,
95,
1082,
202,
474,
1158,
273,
2383,
18,
8837,
1891,
2932,
6460,
29057,
67,
9988,
299,
67,
13937,
4852,
385,
67,
9988,
299,
3078,
67,
734,
17282,
3113,
4697,
202,
39,
67,
9988,
299,
3078,
67,
734,
16,
446,
1769,
1082,
202,
87,
2
] |
if (inFunction && vars.get(name) != null && !inWithStatement()) {
|
if (inFunction && vars.getVariable(name) != null && !inWithStatement()) {
|
protected void visitCall(Node node, Node tree) { /* * For * Call(GetProp(a, b), c, d) // or GetElem... * we wish to evaluate as * Call(GetProp(tmp=a, b), tmp, c, d) * * for * Call(Name("a"), b, c) * we wish to evaluate as * Call(GetProp(tmp=GetBase("a"), "a"), tmp, b, c) * * and for * Call(a, b, c); * we wish to evaluate as * Call(tmp=a, Parent(tmp), c, d) */ Node left = node.getFirstChild(); // count the arguments int argCount = 0; Node arg = left.getNextSibling(); while (arg != null) { arg = arg.getNextSibling(); argCount++; } boolean addGetThis = false; if (left.getType() == TokenStream.NAME) { VariableTable vars = getVariableTable(tree); String name = left.getString(); if (inFunction && vars.get(name) != null && !inWithStatement()) { // call to a var. Transform to Call(GetVar("a"), b, c) left.setType(TokenStream.GETVAR); // fall through to code to add GetParent } else { // transform to Call(GetProp(GetBase("a"), "a"), b, c) node.removeChild(left); left.setType(TokenStream.GETBASE); Node str = left.cloneNode(); str.setType(TokenStream.STRING); Node getProp = new Node(TokenStream.GETPROP, left, str); node.addChildToFront(getProp); left = getProp; // Conditionally set a flag to add a GETTHIS node. // The getThis entry in the runtime will take a // Scriptable object intended to be used as a 'this' // and make sure that it is neither a With object or // an activation object. // Executing getThis requires at least two instanceof // tests, so we only include it if we are currently // inside a 'with' statement, or if we are executing // a script (to protect against an eval inside a with). addGetThis = inWithStatement() || !inFunction; // fall through to GETPROP code } } if (left.getType() != TokenStream.GETPROP && left.getType() != TokenStream.GETELEM) { node.removeChild(left); Node tmp = irFactory.createNewTemp(left); Node use = irFactory.createUseTemp(tmp); use.putProp(Node.TEMP_PROP, tmp); Node parent = new Node(TokenStream.PARENT, use); node.addChildToFront(parent); node.addChildToFront(tmp); return; } Node leftLeft = left.getFirstChild(); left.removeChild(leftLeft); Node tmp = irFactory.createNewTemp(leftLeft); left.addChildToFront(tmp); Node use = irFactory.createUseTemp(tmp); use.putProp(Node.TEMP_PROP, tmp); if (addGetThis) use = new Node(TokenStream.GETTHIS, use); node.addChildAfter(use, left); }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/0470e048abb345f567d5fda1e9564715a9f4d5d7/NodeTransformer.java/buggy/js/rhino/org/mozilla/javascript/NodeTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3757,
1477,
12,
907,
756,
16,
2029,
2151,
13,
288,
3639,
1748,
540,
380,
2457,
540,
380,
1377,
3049,
12,
967,
4658,
12,
69,
16,
324,
3631,
276,
16,
302,
13,
282,
368,
578,
968,
7498,
2777,
540,
380,
732,
14302,
358,
5956,
487,
540,
380,
1377,
3049,
12,
967,
4658,
12,
5645,
33,
69,
16,
324,
3631,
1853,
16,
276,
16,
302,
13,
540,
380,
540,
380,
364,
540,
380,
1377,
3049,
12,
461,
2932,
69,
6,
3631,
324,
16,
276,
13,
540,
380,
732,
14302,
358,
5956,
487,
540,
380,
1377,
3049,
12,
967,
4658,
12,
5645,
33,
967,
2171,
2932,
69,
6,
3631,
315,
69,
6,
3631,
1853,
16,
324,
16,
276,
13,
540,
380,
540,
380,
471,
364,
540,
380,
1377,
3049,
12,
69,
16,
324,
16,
276,
1769,
540,
380,
732,
14302,
358,
5956,
487,
540,
380,
1377,
3049,
12,
5645,
33,
69,
16,
9520,
12,
5645,
3631,
276,
16,
302,
13,
540,
1195,
3639,
2029,
2002,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
368,
1056,
326,
1775,
3639,
509,
1501,
1380,
273,
374,
31,
3639,
2029,
1501,
273,
2002,
18,
588,
2134,
10291,
5621,
3639,
1323,
261,
3175,
480,
446,
13,
288,
5411,
1501,
273,
1501,
18,
588,
2134,
10291,
5621,
5411,
1501,
1380,
9904,
31,
3639,
289,
3639,
1250,
527,
967,
2503,
273,
629,
31,
3639,
309,
261,
4482,
18,
588,
559,
1435,
422,
3155,
1228,
18,
1985,
13,
288,
5411,
7110,
1388,
4153,
273,
13522,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3757,
1477,
12,
907,
756,
16,
2029,
2151,
13,
288,
3639,
1748,
540,
380,
2457,
540,
380,
1377,
3049,
12,
967,
4658,
12,
69,
16,
324,
3631,
276,
16,
302,
13,
282,
368,
578,
968,
7498,
2777,
540,
380,
732,
14302,
358,
5956,
487,
540,
380,
1377,
3049,
12,
967,
4658,
12,
5645,
33,
69,
16,
324,
3631,
1853,
16,
276,
16,
302,
13,
540,
380,
540,
380,
364,
540,
380,
1377,
3049,
12,
461,
2932,
69,
6,
3631,
324,
16,
276,
13,
540,
380,
732,
14302,
358,
5956,
487,
540,
380,
1377,
3049,
12,
967,
4658,
12,
5645,
33,
967,
2171,
2932,
69,
6,
3631,
315,
69,
6,
3631,
1853,
16,
324,
16,
276,
13,
2
] |
new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 2, input);
|
new NoViableAltException("956:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 2, input);
|
public List constraints() throws RecognitionException { List constraints = null; constraints = new ArrayList(); try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:4: ( ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) int alt31=2; int LA31_0 = input.LA(1); if ( (LA31_0==ID) ) { int LA31_1 = input.LA(2); if ( (LA31_1==39) ) { int LA31_2 = input.LA(3); if ( (LA31_2==ID) ) { int LA31_4 = input.LA(4); if ( (LA31_4==67) ) { alt31=2; } else if ( (LA31_4==EOF||LA31_4==RIGHT_PAREN||LA31_4==33||(LA31_4>=57 && LA31_4<=65)) ) { alt31=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 4, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 2, input); throw nvae; } } else if ( (LA31_1==EOF||LA31_1==RIGHT_PAREN||LA31_1==33||(LA31_1>=57 && LA31_1<=65)) ) { alt31=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 1, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 0, input); throw nvae; } switch (alt31) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:5: ( constraint[constraints] )=> constraint[constraints] { pushFollow(FOLLOW_constraint_in_constraints1964); constraint(constraints); _fsp--; if (failed) return constraints; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:29: predicate[constraints] { pushFollow(FOLLOW_predicate_in_constraints1967); predicate(constraints); _fsp--; if (failed) return constraints; } break; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:3: ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* loop33: do { int alt33=2; int LA33_0 = input.LA(1); if ( (LA33_0==33) ) { alt33=1; } switch (alt33) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:5: ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) { match(input,33,FOLLOW_33_in_constraints1975); if (failed) return constraints; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) int alt32=2; int LA32_0 = input.LA(1); if ( (LA32_0==ID) ) { int LA32_1 = input.LA(2); if ( (LA32_1==39) ) { int LA32_2 = input.LA(3); if ( (LA32_2==ID) ) { int LA32_4 = input.LA(4); if ( (LA32_4==67) ) { alt32=2; } else if ( (LA32_4==EOF||LA32_4==RIGHT_PAREN||LA32_4==33||(LA32_4>=57 && LA32_4<=65)) ) { alt32=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 4, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 2, input); throw nvae; } } else if ( (LA32_1==EOF||LA32_1==RIGHT_PAREN||LA32_1==33||(LA32_1>=57 && LA32_1<=65)) ) { alt32=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 1, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 0, input); throw nvae; } switch (alt32) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:10: ( constraint[constraints] )=> constraint[constraints] { pushFollow(FOLLOW_constraint_in_constraints1978); constraint(constraints); _fsp--; if (failed) return constraints; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:34: predicate[constraints] { pushFollow(FOLLOW_predicate_in_constraints1981); predicate(constraints); _fsp--; if (failed) return constraints; } break; } } break; default : break loop33; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/b99d41f54ef70aa0e75d0c3121bc025256c35f4f/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
273,
446,
31,
1171,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
29,
7301,
30,
24,
30,
261,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
261,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
13216,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
8618,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
29,
7301,
30,
24,
30,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
261,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
13216,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
8618,
5411,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
273,
446,
31,
1171,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
29,
7301,
30,
24,
30,
261,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
261,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
13216,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
2
] |
maxDisplaySchemaEditor.setStringValue( String.valueOf( DEFAULT_MAX_NUM_OF_SCHEMA )); maxDisplayTableEditor.setStringValue( String.valueOf( DEFAULT_MAX_NUM_OF_TABLE_EACH_SCHEMA));
|
protected void performDefaults( ) { maxRowEditor.setStringValue( String.valueOf( DEFAULT_MAX_ROW ) ); maxDisplaySchemaEditor.setStringValue( String.valueOf( DEFAULT_MAX_NUM_OF_SCHEMA )); maxDisplayTableEditor.setStringValue( String.valueOf( DEFAULT_MAX_NUM_OF_TABLE_EACH_SCHEMA)); super.performDefaults( ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7e93c9983efa0baf71b86991c025daa3c6e97284/DateSetPreferencePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/preferences/DateSetPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3073,
7019,
12,
262,
202,
95,
202,
202,
1896,
1999,
6946,
18,
542,
19733,
12,
514,
18,
1132,
951,
12,
3331,
67,
6694,
67,
11226,
262,
11272,
202,
202,
1896,
4236,
3078,
6946,
18,
542,
19733,
12,
514,
18,
1132,
951,
12,
3331,
67,
6694,
67,
6069,
67,
3932,
67,
14233,
262,
1769,
202,
202,
1896,
4236,
1388,
6946,
18,
542,
19733,
12,
514,
18,
1132,
951,
12,
3331,
67,
6694,
67,
6069,
67,
3932,
67,
7775,
67,
41,
18133,
67,
14233,
10019,
202,
202,
9565,
18,
16092,
7019,
12,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1117,
918,
3073,
7019,
12,
262,
202,
95,
202,
202,
1896,
1999,
6946,
18,
542,
19733,
12,
514,
18,
1132,
951,
12,
3331,
67,
6694,
67,
11226,
262,
11272,
202,
202,
1896,
4236,
3078,
6946,
18,
542,
19733,
12,
514,
18,
1132,
951,
12,
3331,
67,
6694,
67,
6069,
67,
3932,
67,
14233,
262,
1769,
202,
202,
1896,
4236,
1388,
6946,
18,
542,
19733,
12,
514,
18,
1132,
951,
12,
3331,
67,
6694,
67,
6069,
67,
3932,
67,
7775,
67,
41,
18133,
67,
14233,
10019,
202,
202,
9565,
18,
16092,
7019,
12,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
{ return new String("Schema"); }
|
{ return new String("Schema"); }
|
public String getSchemaTerm() throws SQLException { return new String("Schema"); }
|
11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
11088,
4065,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
394,
514,
2932,
3078,
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,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
11088,
4065,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
394,
514,
2932,
3078,
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,
-100
] |
tmpDataSetName = tmpDynamicQuery.getDataSetDesign( ).getName( );
|
tmpDataSet = tmpDynamicQuery.getDataSetDesign( );
|
boolean isUpdatedReportParameter( ScalarParameterHandle reportParam, ParameterDefinition odaParam, String newDataType ) { if ( reportParam == null || odaParam == null ) return true; DataElementAttributes dataAttrs = odaParam.getAttributes( ); boolean allowNull = reportParam.allowNull( ); Boolean odaAllowNull = getROMNullability( dataAttrs.getNullability( ) ); if ( odaAllowNull != null && allowNull != odaAllowNull.booleanValue( ) ) return false; if ( !DesignChoiceConstants.PARAM_TYPE_ANY .equalsIgnoreCase( newDataType ) ) { if ( !isEquals( newDataType, reportParam.getDataType( ) ) ) return false; } DataElementUIHints dataUiHints = dataAttrs.getUiHints( ); if ( dataUiHints != null ) { String newPromptText = dataUiHints.getDisplayName( ); String newHelpText = dataUiHints.getDescription( ); if ( !isEquals( newPromptText, reportParam.getPromptText( ) ) ) return false; if ( !isEquals( newHelpText, reportParam.getHelpText( ) ) ) return false; } InputParameterAttributes paramAttrs = odaParam.getInputAttributes( ); InputParameterAttributes tmpParamDefn = null; String tmpDataSetName = null; if ( paramAttrs != null ) { tmpParamDefn = (InputParameterAttributes) EcoreUtil .copy( paramAttrs ); DynamicValuesQuery tmpDynamicQuery = tmpParamDefn .getElementAttributes( ).getDynamicValueChoices( ); if ( tmpDynamicQuery != null ) { tmpDataSetName = tmpDynamicQuery.getDataSetDesign( ).getName( ); tmpDynamicQuery.setDataSetDesign( null ); } if ( tmpParamDefn.getUiHints( ) != null ) { tmpParamDefn.setUiHints( null ); } } else tmpParamDefn = DesignFactory.eINSTANCE .createInputParameterAttributes( ); InputParameterAttributes tmpParamDefn1 = DesignFactory.eINSTANCE .createInputParameterAttributes( ); updateInputElementAttrs( tmpParamDefn1, reportParam, null ); if ( tmpParamDefn1.getUiHints( ) != null ) { tmpParamDefn1.setUiHints( null ); } DynamicValuesQuery tmpDynamicQuery1 = tmpParamDefn1 .getElementAttributes( ).getDynamicValueChoices( ); String tmpDataSetName1 = null; if ( tmpDynamicQuery1 != null ) { tmpDataSetName1 = tmpDynamicQuery1.getDataSetDesign( ).getName( ); tmpDynamicQuery1.setDataSetDesign( null ); } if ( !isEquals( tmpDataSetName, tmpDataSetName1 ) ) return false; return EcoreUtil.equals( tmpParamDefn, tmpParamDefn1 ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ad565a6fb083b0cb4f39f81200f9f34cc2de99fe/ReportParameterAdapter.java/buggy/model/org.eclipse.birt.report.model.adapter.oda/src/org/eclipse/birt/report/model/adapter/oda/ReportParameterAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
353,
7381,
4820,
1662,
12,
15791,
1662,
3259,
2605,
786,
16,
1082,
202,
1662,
1852,
320,
2414,
786,
16,
514,
394,
6273,
262,
202,
95,
202,
202,
430,
261,
2605,
786,
422,
446,
747,
320,
2414,
786,
422,
446,
262,
1082,
202,
2463,
638,
31,
202,
202,
751,
1046,
2498,
501,
8262,
273,
320,
2414,
786,
18,
588,
2498,
12,
11272,
202,
202,
6494,
1699,
2041,
273,
2605,
786,
18,
5965,
2041,
12,
11272,
202,
202,
5507,
320,
2414,
7009,
2041,
273,
336,
3942,
2041,
2967,
12,
501,
8262,
18,
588,
2041,
2967,
12,
262,
11272,
202,
202,
430,
261,
320,
2414,
7009,
2041,
480,
446,
597,
1699,
2041,
480,
320,
2414,
7009,
2041,
18,
6494,
620,
12,
262,
262,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
401,
15478,
10538,
2918,
18,
8388,
67,
2399,
67,
15409,
9506,
202,
18,
14963,
5556,
12,
394,
6273,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
291,
8867,
12,
394,
6273,
16,
2605,
786,
18,
588,
6273,
12,
262,
262,
262,
9506,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
751,
1046,
5370,
13368,
501,
13943,
13368,
273,
501,
8262,
18,
588,
13943,
13368,
12,
11272,
202,
202,
430,
261,
501,
13943,
13368,
480,
446,
262,
202,
202,
95,
1082,
202,
780,
394,
15967,
1528,
273,
501,
13943,
13368,
18,
588,
20524,
12,
11272,
1082,
202,
780,
394,
6696,
1528,
273,
501,
13943,
13368,
18,
588,
3291,
12,
11272,
1082,
202,
430,
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,
6494,
353,
7381,
4820,
1662,
12,
15791,
1662,
3259,
2605,
786,
16,
1082,
202,
1662,
1852,
320,
2414,
786,
16,
514,
394,
6273,
262,
202,
95,
202,
202,
430,
261,
2605,
786,
422,
446,
747,
320,
2414,
786,
422,
446,
262,
1082,
202,
2463,
638,
31,
202,
202,
751,
1046,
2498,
501,
8262,
273,
320,
2414,
786,
18,
588,
2498,
12,
11272,
202,
202,
6494,
1699,
2041,
273,
2605,
786,
18,
5965,
2041,
12,
11272,
202,
202,
5507,
320,
2414,
7009,
2041,
273,
336,
3942,
2041,
2967,
12,
501,
8262,
18,
588,
2041,
2967,
12,
262,
11272,
202,
202,
430,
261,
320,
2414,
7009,
2041,
480,
446,
597,
1699,
2041,
480,
320,
2414,
7009,
2041,
18,
6494,
2
] |
for(int i=0;i<k;i++) dataPackets[i] = new Buffer(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<n-k;i++) checkPackets[i] = new Buffer(realBuffer, (i+k)*STRIPE_SIZE, STRIPE_SIZE);
|
try {
|
private void realEncode(SplitfileBlock[] dataBlockStatus, SplitfileBlock[] checkBlockStatus, int blockLength, BucketFactory bf) throws IOException { System.err.println("************* Encoding "+dataBlockStatus.length+" -> "+checkBlockStatus.length+" *************"); Logger.minor(this, "Doing encode: "+dataBlockStatus.length+" data blocks, "+checkBlockStatus.length+" check blocks, block length "+blockLength+" with "+this); if(dataBlockStatus.length + checkBlockStatus.length != n) throw new IllegalArgumentException(); if(dataBlockStatus.length != k) throw new IllegalArgumentException(); Buffer[] dataPackets = new Buffer[k]; Buffer[] checkPackets = new Buffer[n-k]; Bucket[] buckets = new Bucket[n]; DataInputStream[] readers = new DataInputStream[k]; OutputStream[] writers = new OutputStream[n-k]; int[] toEncode = new int[n-k]; int numberToEncode = 0; // can be less than n-k byte[] realBuffer = new byte[n * STRIPE_SIZE]; for(int i=0;i<k;i++) dataPackets[i] = new Buffer(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<n-k;i++) checkPackets[i] = new Buffer(realBuffer, (i+k)*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<dataBlockStatus.length;i++) { buckets[i] = dataBlockStatus[i].getData(); long sz = buckets[i].size(); if(sz < blockLength) { if(i != dataBlockStatus.length-1) throw new IllegalArgumentException("All buckets except the last must be the full size"); if(sz < blockLength) buckets[i] = pad(buckets[i], blockLength, bf, (int) sz); else throw new IllegalArgumentException("Too big: "+sz+" bigger than "+blockLength); } readers[i] = new DataInputStream(buckets[i].getInputStream()); } for(int i=0;i<checkBlockStatus.length;i++) { buckets[i+k] = checkBlockStatus[i].getData(); if(buckets[i+k] == null) { buckets[i+k] = bf.makeBucket(blockLength); writers[i] = buckets[i+k].getOutputStream(); toEncode[numberToEncode++] = i+k; } else { writers[i] = null; } } if(numberToEncode > 0) { // Do the (striped) decode for(int offset=0;offset<blockLength;offset+=STRIPE_SIZE) { // Read the data in first for(int i=0;i<k;i++) { readers[i].readFully(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } // Do the encode // Not shuffled long startTime = System.currentTimeMillis(); code.encode(dataPackets, checkPackets, toEncode); long endTime = System.currentTimeMillis(); Logger.minor(this, "Stripe encode took "+(endTime-startTime)+" ms for k="+k+", n="+n+", stripeSize="+STRIPE_SIZE); // packets now contains an array of decoded blocks, in order // Write the data out for(int i=k;i<n;i++) { if(writers[i-k] != null) writers[i-k].write(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } } } for(int i=0;i<k;i++) if(readers[i] != null) readers[i].close(); for(int i=0;i<n-k;i++) if(writers[i] != null) writers[i].close(); // Set new buckets only after have a successful decode. for(int i=0;i<checkBlockStatus.length;i++) { Bucket data = buckets[i+k]; if(data == null) throw new NullPointerException(); checkBlockStatus[i].setData(data); } System.err.println("************* Encoded "+dataBlockStatus.length+" -> "+checkBlockStatus.length+" *************"); }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/fbdde7654afdefd24ae4365520a38c1c680248a7/StandardOnionFECCodec.java/buggy/src/freenet/client/StandardOnionFECCodec.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2863,
5509,
12,
5521,
768,
1768,
8526,
501,
1768,
1482,
16,
5385,
768,
1768,
8526,
866,
1768,
1482,
16,
509,
25367,
16,
7408,
1733,
16222,
13,
1216,
1860,
288,
202,
202,
3163,
18,
370,
18,
8222,
2932,
1644,
23490,
13400,
13773,
892,
1768,
1482,
18,
2469,
9078,
317,
13773,
1893,
1768,
1482,
18,
2469,
9078,
380,
1644,
1007,
8863,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
3244,
310,
2017,
30,
13773,
892,
1768,
1482,
18,
2469,
9078,
501,
4398,
16,
13773,
1893,
1768,
1482,
18,
2469,
9078,
866,
4398,
16,
1203,
769,
13773,
2629,
1782,
9078,
598,
13773,
2211,
1769,
202,
202,
430,
12,
892,
1768,
1482,
18,
2469,
397,
866,
1768,
1482,
18,
2469,
480,
290,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
430,
12,
892,
1768,
1482,
18,
2469,
480,
417,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
1892,
8526,
501,
27328,
273,
394,
3525,
63,
79,
15533,
202,
202,
1892,
8526,
866,
27328,
273,
394,
3525,
63,
82,
17,
79,
15533,
202,
202,
4103,
8526,
9169,
273,
394,
7408,
63,
82,
15533,
202,
202,
751,
4348,
8526,
16527,
273,
394,
29382,
63,
79,
15533,
202,
202,
4632,
8526,
18656,
273,
394,
8962,
63,
82,
17,
79,
15533,
202,
202,
474,
8526,
358,
5509,
273,
394,
509,
63,
82,
17,
79,
15533,
202,
202,
474,
1300,
774,
5509,
273,
374,
31,
368,
848,
506,
5242,
2353,
290,
17,
79,
9506,
202,
7229,
8526,
2863,
1892,
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,
2863,
5509,
12,
5521,
768,
1768,
8526,
501,
1768,
1482,
16,
5385,
768,
1768,
8526,
866,
1768,
1482,
16,
509,
25367,
16,
7408,
1733,
16222,
13,
1216,
1860,
288,
202,
202,
3163,
18,
370,
18,
8222,
2932,
1644,
23490,
13400,
13773,
892,
1768,
1482,
18,
2469,
9078,
317,
13773,
1893,
1768,
1482,
18,
2469,
9078,
380,
1644,
1007,
8863,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
3244,
310,
2017,
30,
13773,
892,
1768,
1482,
18,
2469,
9078,
501,
4398,
16,
13773,
1893,
1768,
1482,
18,
2469,
9078,
866,
4398,
16,
1203,
769,
13773,
2629,
1782,
9078,
598,
13773,
2211,
1769,
202,
202,
430,
12,
892,
1768,
1482,
18,
2469,
397,
866,
1768,
1482,
2
] |
if (jj_scan_token(DOT)) return true;
|
final private boolean jj_3_30() { if (jj_scan_token(DOT)) return true; if (jj_3R_80()) return true; 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,
67,
5082,
1435,
288,
4202,
309,
261,
78,
78,
67,
23,
54,
67,
3672,
10756,
327,
638,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
727,
3238,
1250,
10684,
67,
23,
67,
5082,
1435,
288,
4202,
309,
261,
78,
78,
67,
23,
54,
67,
3672,
10756,
327,
638,
31,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
refArray[i] = new Editor();
|
refArray[i] = new InnerEditor(ref, inputArray[i], descArray[i]);
|
private IEditorReference[] openMultiEditor(final IEditorReference ref, final MultiEditor part, final EditorDescriptor desc, final MultiEditorInput input, final boolean setVisible) throws PartInitException { String[] editorArray = input.getEditors(); IEditorInput[] inputArray = input.getInput(); //find all descriptors EditorDescriptor[] descArray = new EditorDescriptor[editorArray.length]; IEditorReference refArray[] = new IEditorReference[editorArray.length]; IEditorPart partArray[] = new IEditorPart[editorArray.length]; IEditorRegistry reg = getEditorRegistry(); for (int i = 0; i < editorArray.length; i++) { EditorDescriptor innerDesc = (EditorDescriptor) reg .findEditor(editorArray[i]); if (innerDesc == null) throw new PartInitException( NLS.bind(WorkbenchMessages.EditorManager_unknownEditorIDMessage, editorArray[i] )); descArray[i] = innerDesc; partArray[i] = createPart(descArray[i]); refArray[i] = new Editor(); createSite(ref, partArray[i], descArray[i], inputArray[i]); ((Editor) refArray[i]).setPart(partArray[i]); } part.setChildren(partArray); return refArray; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e63fb57c60e1285097cb8d21d56f8acdff80e7de/EditorManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
6946,
2404,
8526,
1696,
5002,
6946,
12,
6385,
467,
6946,
2404,
1278,
16,
5411,
727,
5991,
6946,
1087,
16,
727,
18451,
3187,
3044,
16,
5411,
727,
5991,
6946,
1210,
810,
16,
727,
1250,
16697,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
514,
8526,
4858,
1076,
273,
810,
18,
588,
4666,
1383,
5621,
3639,
467,
6946,
1210,
8526,
810,
1076,
273,
810,
18,
588,
1210,
5621,
3639,
368,
4720,
777,
14215,
3639,
18451,
3187,
8526,
3044,
1076,
273,
394,
18451,
3187,
63,
9177,
1076,
18,
2469,
15533,
3639,
467,
6946,
2404,
1278,
1076,
8526,
273,
394,
467,
6946,
2404,
63,
9177,
1076,
18,
2469,
15533,
3639,
467,
6946,
1988,
1087,
1076,
8526,
273,
394,
467,
6946,
1988,
63,
9177,
1076,
18,
2469,
15533,
3639,
467,
6946,
4243,
960,
273,
336,
6946,
4243,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4858,
1076,
18,
2469,
31,
277,
27245,
288,
5411,
18451,
3187,
3443,
4217,
273,
261,
6946,
3187,
13,
960,
10792,
263,
4720,
6946,
12,
9177,
1076,
63,
77,
19226,
5411,
309,
261,
7872,
4217,
422,
446,
13,
7734,
604,
394,
6393,
2570,
503,
12,
13491,
29117,
18,
4376,
12,
2421,
22144,
5058,
18,
6946,
1318,
67,
8172,
6946,
734,
1079,
16,
4858,
1076,
63,
77,
65,
262,
1769,
2398,
3044,
1076,
63,
77,
65,
273,
3443,
4217,
31,
5411,
1087,
1076,
63,
77,
65,
273,
752,
1988,
12,
5569,
1076,
63,
77,
19226,
5411,
1278,
1076,
63,
77,
65,
273,
394,
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,
467,
6946,
2404,
8526,
1696,
5002,
6946,
12,
6385,
467,
6946,
2404,
1278,
16,
5411,
727,
5991,
6946,
1087,
16,
727,
18451,
3187,
3044,
16,
5411,
727,
5991,
6946,
1210,
810,
16,
727,
1250,
16697,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
514,
8526,
4858,
1076,
273,
810,
18,
588,
4666,
1383,
5621,
3639,
467,
6946,
1210,
8526,
810,
1076,
273,
810,
18,
588,
1210,
5621,
3639,
368,
4720,
777,
14215,
3639,
18451,
3187,
8526,
3044,
1076,
273,
394,
18451,
3187,
63,
9177,
1076,
18,
2469,
15533,
3639,
467,
6946,
2404,
1278,
1076,
8526,
273,
394,
467,
6946,
2404,
63,
9177,
1076,
18,
2469,
15533,
3639,
467,
6946,
1988,
1087,
1076,
8526,
273,
394,
467,
6946,
2
] |
if (theRequest instanceof DirectEditRequestWrapper) { char c = ((DirectEditRequestWrapper) theRequest).getInitialCharacter(); performDirectEdit(c);
|
if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) { Character initialChar = (Character) theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR); performDirectEdit(initialChar.charValue());
|
protected void performDirectEditRequest(Request request) { final Request theRequest = request; try { getEditingDomain().runExclusive(new Runnable() { public void run() { if (isActive() && isEditable()) { if (theRequest instanceof DirectEditRequestWrapper) { char c = ((DirectEditRequestWrapper) theRequest).getInitialCharacter(); performDirectEdit(c); } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) { DirectEditRequest editRequest = (DirectEditRequest) theRequest; performDirectEdit(editRequest.getLocation()); } else { performDirectEdit(); } } } }); } catch (InterruptedException e) { e.printStackTrace(); } }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/f7f6fa367001c5800a5b6799c314d6da5740be07/EStringToStringMapEntryEditPart.java/clean/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/edit/parts/EStringToStringMapEntryEditPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3073,
5368,
4666,
691,
12,
691,
590,
13,
288,
202,
202,
6385,
1567,
326,
691,
273,
590,
31,
202,
202,
698,
288,
1082,
202,
588,
28029,
3748,
7675,
2681,
17075,
12,
2704,
10254,
1435,
288,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
430,
261,
291,
3896,
1435,
597,
353,
15470,
10756,
288,
25083,
202,
430,
261,
5787,
691,
1276,
9908,
4666,
691,
3611,
13,
288,
6862,
1082,
202,
3001,
276,
273,
14015,
5368,
4666,
691,
3611,
13,
326,
691,
2934,
588,
4435,
7069,
5621,
6862,
1082,
202,
16092,
5368,
4666,
12,
71,
1769,
25083,
202,
97,
469,
309,
14015,
5787,
691,
1276,
9908,
4666,
691,
13,
597,
261,
588,
4666,
1528,
7675,
14963,
12,
588,
2224,
1528,
1435,
20349,
288,
6862,
1082,
202,
5368,
4666,
691,
3874,
691,
273,
261,
5368,
4666,
691,
13,
326,
691,
31,
6862,
1082,
202,
16092,
5368,
4666,
12,
4619,
691,
18,
588,
2735,
10663,
25083,
202,
97,
469,
288,
6862,
1082,
202,
16092,
5368,
4666,
5621,
25083,
202,
97,
6862,
202,
97,
9506,
202,
97,
1082,
202,
22938,
202,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
1082,
202,
73,
18,
1188,
6332,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1117,
918,
3073,
5368,
4666,
691,
12,
691,
590,
13,
288,
202,
202,
6385,
1567,
326,
691,
273,
590,
31,
202,
202,
698,
288,
1082,
202,
588,
28029,
3748,
7675,
2681,
17075,
12,
2704,
10254,
1435,
288,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
430,
261,
291,
3896,
1435,
597,
353,
15470,
10756,
288,
25083,
202,
430,
261,
5787,
691,
1276,
9908,
4666,
691,
3611,
13,
288,
6862,
1082,
202,
3001,
276,
273,
14015,
5368,
4666,
691,
3611,
13,
326,
691,
2934,
588,
4435,
7069,
5621,
6862,
1082,
202,
16092,
5368,
4666,
12,
71,
1769,
25083,
202,
97,
469,
309,
14015,
5787,
691,
1276,
9908,
4666,
691,
13,
597,
261,
588,
4666,
1528,
7675,
14963,
2
] |
if(resolved == null) {
|
if(resolved == null){
|
public static boolean isCollectionClassOrInterface(@Nullable PsiType type){ if(!(type instanceof PsiClassType)) { return false; } final PsiClassType classType = (PsiClassType) type; final PsiClass resolved = classType.resolve(); if(resolved == null) { return false; } final String className = resolved.getQualifiedName(); return s_allCollectionClassesAndInterfaces.contains(className); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/b38fc3306f3e89c0f06e6c584ed1b7d3e946cc50/CollectionUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/CollectionUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
26506,
797,
1162,
1358,
26964,
13349,
453,
7722,
559,
618,
15329,
3639,
309,
12,
5,
12,
723,
1276,
453,
7722,
18328,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
18328,
24959,
273,
261,
52,
7722,
18328,
13,
618,
31,
3639,
727,
453,
7722,
797,
4640,
273,
24959,
18,
10828,
5621,
3639,
309,
12,
11792,
422,
446,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
727,
514,
2658,
273,
4640,
18,
588,
12345,
5621,
3639,
327,
272,
67,
454,
2532,
4818,
1876,
10273,
18,
12298,
12,
12434,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1250,
26506,
797,
1162,
1358,
26964,
13349,
453,
7722,
559,
618,
15329,
3639,
309,
12,
5,
12,
723,
1276,
453,
7722,
18328,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
18328,
24959,
273,
261,
52,
7722,
18328,
13,
618,
31,
3639,
727,
453,
7722,
797,
4640,
273,
24959,
18,
10828,
5621,
3639,
309,
12,
11792,
422,
446,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
727,
514,
2658,
273,
4640,
18,
588,
12345,
5621,
3639,
327,
272,
67,
454,
2532,
4818,
1876,
10273,
18,
12298,
12,
12434,
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
] |
cfw.add(ByteCode.IFEQ, 9);
|
cfw.add(ByteCode.IFEQ, 11);
|
private static void generateReturnResult(ClassFileWriter cfw, Class retType) { // wrap boolean values with java.lang.Boolean, convert all other // primitive values to java.lang.Double. if (retType.equals(Boolean.TYPE)) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toBoolean", "(Ljava/lang/Object;)", "Z"); cfw.add(ByteCode.IRETURN); } else if (retType.equals(Character.TYPE)) { // characters are represented as strings in JavaScript. // return the first character. // first convert the value to a string if possible. cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ICONST_0); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/String", "charAt", "(I)", "C"); cfw.add(ByteCode.IRETURN); } else if (retType.isPrimitive()) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toNumber", "(Ljava/lang/Object;)", "D"); String typeName = retType.getName(); switch (typeName.charAt(0)) { case 'b': case 's': case 'i': cfw.add(ByteCode.D2I); cfw.add(ByteCode.IRETURN); break; case 'l': cfw.add(ByteCode.D2L); cfw.add(ByteCode.LRETURN); break; case 'f': cfw.add(ByteCode.D2F); cfw.add(ByteCode.FRETURN); break; case 'd': cfw.add(ByteCode.DRETURN); break; default: throw new RuntimeException("Unexpected return type " + retType.toString()); } } else if (retType.equals(String.class)) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ARETURN); } else if (retType.equals(Scriptable.class)) { cfw.add(ByteCode.ALOAD_0); // load 'this' to find scope from cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toObject", "(Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ARETURN); } else { // If it is a wrapped type, cast to Wrapper and call unwrap() cfw.add(ByteCode.DUP); cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Wrapper"); // skip 3 for IFEQ, 3 for CHECKCAST, and 3 for INVOKEVIRTUAL cfw.add(ByteCode.IFEQ, 9); cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Wrapper"); cfw.add(ByteCode.INVOKEVIRTUAL, "org/mozilla/javascript/Wrapper", "unwrap", "()", "Ljava/lang/Object;"); // Now cast to return type String retTypeStr = retType.getName().replace('.', '/'); cfw.add(ByteCode.CHECKCAST, retTypeStr); cfw.add(ByteCode.ARETURN); } }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/1057414fef7dea2519e65ecdda7e454a93a53478/JavaAdapter.java/clean/js/rhino/src/org/mozilla/javascript/JavaAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
990,
1253,
12,
797,
812,
2289,
6080,
91,
16,
4766,
2868,
1659,
325,
559,
13,
377,
288,
3639,
368,
2193,
1250,
924,
598,
2252,
18,
4936,
18,
5507,
16,
1765,
777,
1308,
540,
368,
8225,
924,
358,
2252,
18,
4936,
18,
5265,
18,
3639,
309,
261,
1349,
559,
18,
14963,
12,
5507,
18,
2399,
3719,
288,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
11027,
11781,
16,
5397,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
3113,
5397,
315,
869,
5507,
3113,
7751,
21159,
19,
4936,
19,
921,
31,
2225,
16,
5397,
315,
62,
8863,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
45,
14033,
1769,
3639,
289,
469,
309,
261,
1349,
559,
18,
14963,
12,
7069,
18,
2399,
3719,
288,
7734,
368,
3949,
854,
10584,
487,
2064,
316,
11905,
18,
1171,
368,
327,
326,
1122,
3351,
18,
7734,
368,
1122,
1765,
326,
460,
358,
279,
533,
309,
3323,
18,
7734,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
11027,
11781,
16,
7682,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
3113,
7682,
315,
10492,
3113,
7751,
21159,
19,
4936,
19,
921,
31,
2225,
16,
7682,
315,
21159,
19,
4936,
19,
780,
4868,
1769,
7734,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
21745,
882,
67,
20,
1769,
7734,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
41,
26854,
16,
315,
6290,
19,
4936,
19,
780,
3113,
315,
3001,
861,
3113,
7682,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
990,
1253,
12,
797,
812,
2289,
6080,
91,
16,
4766,
2868,
1659,
325,
559,
13,
377,
288,
3639,
368,
2193,
1250,
924,
598,
2252,
18,
4936,
18,
5507,
16,
1765,
777,
1308,
540,
368,
8225,
924,
358,
2252,
18,
4936,
18,
5265,
18,
3639,
309,
261,
1349,
559,
18,
14963,
12,
5507,
18,
2399,
3719,
288,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
11027,
11781,
16,
5397,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
3113,
5397,
315,
869,
5507,
3113,
7751,
21159,
19,
4936,
19,
921,
31,
2225,
16,
5397,
315,
62,
8863,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
45,
14033,
1769,
3639,
289,
469,
2
] |
String sproc_GetUserPassword( int user_id ) {
|
public String sproc_GetUserPassword( int user_id ) {
|
String sproc_GetUserPassword( int user_id ) { String sql = "SELECT login_password FROM USERS WHERE user_id = ? "; Object[] paramValues = new Object[]{new Integer( user_id )}; ArrayList queryResult = sqlProcessor.executeQuery( sql, paramValues, new ResultProcessor() { public Object mapOneRow( ResultSet rs ) throws SQLException { return rs.getString( "login_password" ); } } ); if( queryResult.isEmpty() ) { return "";// todo: borde det inte vara null istllet? } else { return (String)queryResult.get( 0 ); } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/907682463dda6719b69cb62bcf11e1c0a21731d0/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
272,
9381,
67,
967,
1299,
3913,
12,
509,
729,
67,
350,
262,
288,
3639,
514,
1847,
273,
315,
4803,
3925,
67,
3664,
4571,
7443,
55,
4852,
729,
67,
350,
273,
692,
13636,
3639,
1033,
8526,
579,
1972,
273,
394,
1033,
63,
7073,
2704,
2144,
12,
729,
67,
350,
262,
20451,
3639,
2407,
26992,
273,
1847,
5164,
18,
8837,
1138,
12,
1847,
16,
579,
1972,
16,
394,
3438,
5164,
1435,
288,
5411,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
3597,
18,
588,
780,
12,
315,
5819,
67,
3664,
6,
11272,
5411,
289,
3639,
289,
11272,
3639,
309,
12,
26992,
18,
291,
1921,
1435,
262,
288,
5411,
327,
1408,
31,
759,
10621,
30,
324,
280,
323,
3023,
509,
73,
569,
69,
446,
19165,
80,
1810,
35,
3639,
289,
469,
288,
5411,
327,
261,
780,
13,
2271,
1253,
18,
588,
12,
374,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
272,
9381,
67,
967,
1299,
3913,
12,
509,
729,
67,
350,
262,
288,
3639,
514,
1847,
273,
315,
4803,
3925,
67,
3664,
4571,
7443,
55,
4852,
729,
67,
350,
273,
692,
13636,
3639,
1033,
8526,
579,
1972,
273,
394,
1033,
63,
7073,
2704,
2144,
12,
729,
67,
350,
262,
20451,
3639,
2407,
26992,
273,
1847,
5164,
18,
8837,
1138,
12,
1847,
16,
579,
1972,
16,
394,
3438,
5164,
1435,
288,
5411,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
3597,
18,
588,
780,
12,
315,
5819,
67,
3664,
6,
11272,
5411,
289,
3639,
289,
11272,
3639,
309,
12,
26992,
18,
291,
1921,
1435,
262,
288,
5411,
327,
1408,
31,
759,
2
] |
}
|
} else if (c == '(') { openParens.push(new Integer(i)); prevLineParenWeight++; } else if (c == ')') { if(openParens.size() > 0) openParens.pop(); prevLineParenWeight--; }
|
public int getIdealIndentForLine(int lineIndex) { final String EXPLICIT_START = "{{{"; final String EXPLICIT_END = "}}}"; if(lineIndex == 0) return -1; //{{{ Get properties String openBrackets = getStringProperty("indentOpenBrackets"); if(openBrackets == null) openBrackets = ""; String closeBrackets = getStringProperty("indentCloseBrackets"); if(closeBrackets == null) closeBrackets = ""; RE indentNextLineRE; try { indentNextLineRE = getRegexpProperty("indentNextLine", RE.REG_ICASE,RESearchMatcher.RE_SYNTAX_JEDIT); } catch(REException re) { indentNextLineRE = null; Log.log(Log.ERROR,this,"Invalid indentNextLine regexp"); Log.log(Log.ERROR,this,re); } RE indentNextLinesRE; try { indentNextLinesRE = getRegexpProperty("indentNextLines", RE.REG_ICASE,RESearchMatcher.RE_SYNTAX_JEDIT); } catch(REException re) { indentNextLinesRE = null; Log.log(Log.ERROR,this,"Invalid indentNextLines regexp"); Log.log(Log.ERROR,this,re); } boolean doubleBracketIndent = getBooleanProperty("doubleBracketIndent"); boolean lineUpClosingBracket = getBooleanProperty("lineUpClosingBracket"); int tabSize = getTabSize(); int indentSize = getIndentSize(); //}}} //{{{ Get indent attributes of previous line int prevLineIndex = getPriorNonEmptyLine(lineIndex); if(prevLineIndex == -1) return -1; String prevLine = getLineText(prevLineIndex); /* * On the previous line, * if(bob) { --> +1 * if(bob) { } --> 0 * } else if(bob) { --> +1 */ boolean prevLineStart = true; // False after initial indent int indent = 0; // Indent width (tab expanded) int prevLineBrackets = 0; // Additional bracket indent int prevLineCloseBracketIndex = -1; // For finding whether we're in // this kind of construct: // if (cond1) // while (cond2) // if (cond3){ // // } // So we know to indent the next line under the 1st if. int prevLineUnclosedParenIndex = -1; // Index of the last unclosed parenthesis int prevLineParenWeight = 0; // (openParens - closeParens) Stack openParens = new Stack(); for(int i = 0; i < prevLine.length(); i++) { char c = prevLine.charAt(i); switch(c) { case ' ': if(prevLineStart) indent++; break; case '\t': if(prevLineStart) { indent += (tabSize - (indent % tabSize)); } break; case '(': openParens.push(new Integer(i)); prevLineParenWeight++; break; case ')': if(openParens.size() > 0) openParens.pop(); prevLineParenWeight--; break; default: prevLineStart = false; if(closeBrackets.indexOf(c) != -1) { if(prevLine.regionMatches(false, i,EXPLICIT_END,0,3)) i += 2; else { prevLineBrackets--; if(prevLineBrackets < 0) { if(lineUpClosingBracket) prevLineBrackets = 0; prevLineCloseBracketIndex = i; } } } else if(openBrackets.indexOf(c) != -1) { if(prevLine.regionMatches(false, i,EXPLICIT_START,0,3)) i += 2; else prevLineBrackets++; } break; } } if(openParens.size() > 0) { prevLineUnclosedParenIndex = ((Integer) openParens.pop()).intValue(); } //}}} if(Debug.INDENT_DEBUG) { Log.log(Log.DEBUG,this,"Determined previous line"); Log.log(Log.DEBUG,this,"indent=" + indent + ",prevLineBrackets=" + prevLineBrackets + ",prevLineCloseBracketIndex=" + prevLineCloseBracketIndex); } //{{{ Get indent attributes for current line String line = getLineText(lineIndex); /* * On the current line, * } --> -1 * } else if(bob) { --> -1 * if(bob) { } --> 0 */ int lineBrackets = 0; // Additional bracket indent int closeBracketIndex = -1; // For lining up closing // and opening brackets for(int i = 0; i < line.length(); i++) { char c = line.charAt(i); if(closeBrackets.indexOf(c) != -1) { if(line.regionMatches(false, i,EXPLICIT_END,0,3)) i += 2; else { closeBracketIndex = i; lineBrackets--; } } else if(openBrackets.indexOf(c) != -1) { if(line.regionMatches(false, i,EXPLICIT_START,0,3)) i += 2; else if(lineBrackets >= 0) lineBrackets++; } } //}}} if(Debug.INDENT_DEBUG) { Log.log(Log.DEBUG,this,"Determined current line"); Log.log(Log.DEBUG,this,"lineBrackets=" + lineBrackets + ",closeBracketIndex=" + closeBracketIndex); } //{{{ Deep indenting if(getBooleanProperty("deepIndent")) { if(prevLineParenWeight > 0) { indent = prevLineUnclosedParenIndex+1; for (int i = 0; i < prevLine.length(); i++) { if (prevLine.charAt(i) == '\t') indent += tabSize-1; } return indent; } else if(prevLineParenWeight < 0) { int openParenOffset = TextUtilities.findMatchingBracket(this,prevLineIndex,prevLine.lastIndexOf(")")); if(openParenOffset >= 0) { int startLine = getLineOfOffset(openParenOffset); int startLineParenWeight = getLineParenWeight(startLine); if(startLineParenWeight == 1) indent = getCurrentIndentForLine(startLine,null); else indent = getOpenParenIndent(startLine,lineIndex); } } // no parenthesis on previous line (prevLineParenWeight == 0) so the normal indenting rules are used } //}}} //{{{ Handle brackets if(prevLineBrackets > 0) indent += (indentSize * prevLineBrackets); if(lineUpClosingBracket) { if(lineBrackets < 0) { int openBracketIndex = TextUtilities.findMatchingBracket( this,lineIndex,closeBracketIndex); if(openBracketIndex != -1) { int openLineIndex = getLineOfOffset(openBracketIndex); String openLine = getLineText(openLineIndex); if (getLineParenWeight(openLineIndex) < 0) { openBracketIndex = TextUtilities.findMatchingBracket(this,openLineIndex,openLine.indexOf(")")); } openLine = getLineText(getLineOfOffset(openBracketIndex)); indent = MiscUtilities.getLeadingWhiteSpaceWidth( openLine,tabSize); } else return -1; } } else { if(prevLineBrackets < 0) { int offset = TextUtilities.findMatchingBracket( this,prevLineIndex,prevLineCloseBracketIndex); if(offset != -1) { String closeLine = getLineText(getLineOfOffset(offset)); indent = MiscUtilities.getLeadingWhiteSpaceWidth( closeLine,tabSize); } else return -1; } }//}}} //{{{ Handle regexps if(lineBrackets >= 0) { // If the previous line matches indentNextLine or indentNextLines, // add a level of indent if((lineBrackets == 0 || doubleBracketIndent) && indentNextLinesRE != null && indentNextLinesRE.isMatch(prevLine)) { if(Debug.INDENT_DEBUG) { Log.log(Log.DEBUG,this,"Matches indentNextLines"); } indent += indentSize; } else if(indentNextLineRE != null) { if((lineBrackets == 0 || doubleBracketIndent) && indentNextLineRE.isMatch(prevLine)) indent += indentSize; // we don't want // if(foo) // { // <--- decreased indent else if(prevLineBrackets == 0) { // While prior lines match indentNextLine, remove a level of indent // this correctly handles constructs like: // if(foo) // if(bar) // if(baz) // <--- put indent here int prevPrevLineIndex; /* if(prevLineCloseBracketIndex != -1) { int offset = TextUtilities.findMatchingBracket( this,prevLineIndex,prevLineCloseBracketIndex); if(offset == -1) return -1; prevPrevLineIndex = getLineOfOffset(offset); } else */ prevPrevLineIndex = getPriorNonEmptyLine(prevLineIndex); while(prevPrevLineIndex != -1) { if(indentNextLineRE.isMatch(getLineText(prevPrevLineIndex))) indent = getCurrentIndentForLine(prevPrevLineIndex,null); else break; if(Debug.INDENT_DEBUG) { Log.log(Log.DEBUG,this, prevPrevLineIndex + " matches " + "indentNextLine"); } prevPrevLineIndex = getPriorNonEmptyLine(prevPrevLineIndex); } } } } //}}} return indent; } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/89d171c8e2ba9c68149c002c3d8c1af4f68090a3/Buffer.java/clean/org/gjt/sp/jedit/Buffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8974,
323,
287,
7790,
1290,
1670,
12,
474,
980,
1016,
13,
202,
95,
202,
202,
6385,
514,
22615,
28165,
67,
7570,
273,
4144,
12187,
14432,
202,
202,
6385,
514,
22615,
28165,
67,
4415,
273,
315,
9090,
1532,
31,
202,
202,
430,
12,
1369,
1016,
422,
374,
13,
1082,
202,
2463,
300,
21,
31,
202,
202,
759,
12187,
95,
968,
1790,
202,
202,
780,
1696,
23029,
273,
4997,
1396,
2932,
9355,
3678,
23029,
8863,
202,
202,
430,
12,
3190,
23029,
422,
446,
13,
1082,
202,
3190,
23029,
273,
1408,
31,
202,
202,
780,
1746,
23029,
273,
4997,
1396,
2932,
9355,
4605,
23029,
8863,
202,
202,
430,
12,
4412,
23029,
422,
446,
13,
1082,
202,
4412,
23029,
273,
1408,
31,
202,
202,
862,
3504,
2134,
1670,
862,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
9355,
2134,
1670,
862,
273,
336,
14621,
1396,
2932,
9355,
2134,
1670,
3113,
9506,
202,
862,
18,
5937,
67,
2871,
4429,
16,
862,
2979,
6286,
18,
862,
67,
7474,
28614,
67,
46,
10776,
1769,
202,
202,
97,
202,
202,
14683,
12,
862,
503,
283,
13,
202,
202,
95,
1082,
202,
9355,
2134,
1670,
862,
273,
446,
31,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
10837,
1941,
3504,
2134,
1670,
7195,
8863,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
266,
1769,
202,
202,
97,
202,
202,
862,
3504,
2134,
5763,
862,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
9355,
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,
509,
8974,
323,
287,
7790,
1290,
1670,
12,
474,
980,
1016,
13,
202,
95,
202,
202,
6385,
514,
22615,
28165,
67,
7570,
273,
4144,
12187,
14432,
202,
202,
6385,
514,
22615,
28165,
67,
4415,
273,
315,
9090,
1532,
31,
202,
202,
430,
12,
1369,
1016,
422,
374,
13,
1082,
202,
2463,
300,
21,
31,
202,
202,
759,
12187,
95,
968,
1790,
202,
202,
780,
1696,
23029,
273,
4997,
1396,
2932,
9355,
3678,
23029,
8863,
202,
202,
430,
12,
3190,
23029,
422,
446,
13,
1082,
202,
3190,
23029,
273,
1408,
31,
202,
202,
780,
1746,
23029,
273,
4997,
1396,
2932,
9355,
4605,
23029,
8863,
202,
202,
430,
12,
4412,
23029,
422,
446,
13,
1082,
202,
4412,
23029,
2
] |
protected int getInterfaceCount() { return interfaces.size();
|
protected final int getInterfaceCount() { return _interfaces.size();
|
protected int getInterfaceCount() { return interfaces.size(); }
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JStructure.java/buggy/castor/trunk/src/main/java/org/exolab/javasource/JStructure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
336,
1358,
1380,
1435,
288,
3639,
327,
7349,
18,
1467,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
336,
1358,
1380,
1435,
288,
3639,
327,
7349,
18,
1467,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
calls++;
|
void runAsync (String method, Vector params, AsyncCallback callback) { Object res = null; long start = System.currentTimeMillis (); try { res = execute (method, params); // notify callback object if (callback != null) callback.handleResult (res, url, method); } catch (Exception x) { if (callback != null) callback.handleError (x, url, method); } calls++; long end = System.currentTimeMillis (); roundtrip = (int) ((roundtrip*4)+(end-start))/5; }
|
3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/4552af0cda4f2c92f1dbe5a0cc75d6e8cef398c7/XmlRpcClient.java/buggy/src/helma/xmlrpc/XmlRpcClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1086,
2771,
261,
780,
707,
16,
5589,
859,
16,
9672,
2428,
1348,
13,
288,
202,
921,
400,
273,
446,
31,
202,
5748,
787,
273,
2332,
18,
2972,
28512,
261,
1769,
202,
698,
288,
202,
565,
400,
273,
1836,
261,
2039,
16,
859,
1769,
202,
565,
368,
5066,
1348,
733,
202,
565,
309,
261,
3394,
480,
446,
13,
202,
3639,
1348,
18,
4110,
1253,
261,
455,
16,
880,
16,
707,
1769,
202,
97,
1044,
261,
503,
619,
13,
288,
1171,
309,
261,
3394,
480,
446,
13,
202,
3639,
1348,
18,
4110,
668,
261,
92,
16,
880,
16,
707,
1769,
202,
97,
202,
12550,
9904,
31,
202,
5748,
679,
273,
2332,
18,
2972,
28512,
261,
1769,
202,
2260,
25125,
273,
261,
474,
13,
14015,
2260,
25125,
14,
24,
27921,
12,
409,
17,
1937,
3719,
19,
25,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
918,
1086,
2771,
261,
780,
707,
16,
5589,
859,
16,
9672,
2428,
1348,
13,
288,
202,
921,
400,
273,
446,
31,
202,
5748,
787,
273,
2332,
18,
2972,
28512,
261,
1769,
202,
698,
288,
202,
565,
400,
273,
1836,
261,
2039,
16,
859,
1769,
202,
565,
368,
5066,
1348,
733,
202,
565,
309,
261,
3394,
480,
446,
13,
202,
3639,
1348,
18,
4110,
1253,
261,
455,
16,
880,
16,
707,
1769,
202,
97,
1044,
261,
503,
619,
13,
288,
1171,
309,
261,
3394,
480,
446,
13,
202,
3639,
1348,
18,
4110,
668,
261,
92,
16,
880,
16,
707,
1769,
202,
97,
202,
12550,
9904,
31,
202,
5748,
679,
273,
2332,
18,
2972,
28512,
261,
1769,
202,
2260,
25125,
2
] |
|
return new Integer( rs.getInt( "role_id" ) );
|
return new JoinedTables_meta_childs( rs );
|
public Object mapOneRow( ResultSet rs ) throws SQLException { return new Integer( rs.getInt( "role_id" ) ); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/92985c71b38c159d3e33b0a6189f7037c00bd8c7/DatabaseService.java/buggy/server/src/imcode/server/db/DatabaseService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
4214,
329,
6905,
67,
3901,
67,
3624,
87,
12,
3597,
11272,
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,
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,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
4214,
329,
6905,
67,
3901,
67,
3624,
87,
12,
3597,
11272,
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,
-100,
-100
] |
"select s from #t0016 where i=? and s=?");
|
"select s from #t0016 where i=? and s=?");
|
public void testMissingParameter0016() throws Exception { Connection cx = getConnection(); dropTable("#t0016"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0016 " + " (i integer not null, " + " s char(10) not null) "); stmt = cx.createStatement(); final int rowsToAdd = 20; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { String sql = "insert into #t0016 values (" + i + ", 'row" + i + "')"; count += stmt.executeUpdate(sql); } assertTrue(count == rowsToAdd); PreparedStatement pStmt = cx.prepareStatement( "select s from #t0016 where i=? and s=?"); // see what happens if neither is set try { ResultSet rs = pStmt.executeQuery(); assertTrue("Failed to throw exception", false); } catch (SQLException e) { assertTrue( (e.getMessage().equals("parameter #1 has not been set") || e.getMessage().equals("parameter #2 has not been set"))); } pStmt.clearParameters(); try { pStmt.setInt(1, 7); pStmt.setString(2, "row7"); pStmt.clearParameters(); ResultSet rs = pStmt.executeQuery(); assertTrue("Failed to throw exception", false); } catch (SQLException e) { assertTrue( (e.getMessage().equals("parameter #1 has not been set") || e.getMessage().equals("parameter #2 has not been set"))); } pStmt.clearParameters(); try { pStmt.setInt(1, 7); ResultSet rs = pStmt.executeQuery(); assertTrue("Failed to throw exception", false); } catch (SQLException e) { assertTrue(e.getMessage().equals("parameter #2 has not been set")); } pStmt.clearParameters(); try { pStmt.setString(2, "row7"); ResultSet rs = pStmt.executeQuery(); assertTrue("Failed to throw exception", false); } catch (SQLException e) { assertTrue(e.getMessage().equals("parameter #1 has not been set")); } }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/3536f07067bcf3c572aa820c500e64c50499f6c5/TimestampTest.java/buggy/src/test/net/sourceforge/jtds/test/TimestampTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4841,
1662,
713,
2313,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
3640,
1388,
2932,
7,
88,
713,
2313,
8863,
3639,
8056,
3480,
273,
9494,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
1891,
2932,
2640,
1014,
468,
88,
713,
2313,
315,
21821,
397,
315,
225,
261,
77,
225,
3571,
225,
486,
446,
16,
1377,
315,
21821,
397,
315,
282,
272,
225,
1149,
12,
2163,
13,
486,
446,
13,
1377,
315,
1769,
3639,
3480,
273,
9494,
18,
2640,
3406,
5621,
3639,
727,
509,
2595,
13786,
273,
4200,
31,
3639,
509,
1056,
273,
374,
31,
3639,
364,
261,
474,
277,
273,
404,
31,
277,
1648,
2595,
13786,
31,
277,
27245,
288,
5411,
514,
1847,
273,
315,
6387,
1368,
468,
88,
713,
2313,
924,
7566,
397,
277,
397,
3104,
296,
492,
6,
397,
277,
397,
2491,
2225,
31,
5411,
1056,
1011,
3480,
18,
8837,
1891,
12,
4669,
1769,
3639,
289,
3639,
1815,
5510,
12,
1883,
422,
2595,
13786,
1769,
3639,
16913,
282,
293,
8952,
273,
9494,
18,
9366,
3406,
12,
4766,
15604,
315,
4025,
272,
628,
468,
88,
713,
2313,
1625,
277,
17282,
471,
272,
25501,
1769,
3639,
368,
2621,
4121,
10555,
309,
15826,
353,
444,
3639,
775,
288,
5411,
10842,
3597,
273,
293,
8952,
18,
8837,
1138,
5621,
5411,
1815,
5510,
2932,
2925,
358,
604,
1520,
3113,
629,
1769,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
1815,
5510,
12,
8227,
261,
73,
18,
24906,
7675,
14963,
2932,
6775,
468,
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,
4841,
1662,
713,
2313,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
3640,
1388,
2932,
7,
88,
713,
2313,
8863,
3639,
8056,
3480,
273,
9494,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
1891,
2932,
2640,
1014,
468,
88,
713,
2313,
315,
21821,
397,
315,
225,
261,
77,
225,
3571,
225,
486,
446,
16,
1377,
315,
21821,
397,
315,
282,
272,
225,
1149,
12,
2163,
13,
486,
446,
13,
1377,
315,
1769,
3639,
3480,
273,
9494,
18,
2640,
3406,
5621,
3639,
727,
509,
2595,
13786,
273,
4200,
31,
3639,
509,
1056,
273,
374,
31,
3639,
364,
261,
474,
277,
273,
404,
31,
277,
1648,
2595,
13786,
31,
277,
27245,
288,
5411,
514,
2
] |
serviceClass,
|
className,
|
private Map createServiceMap() { if (LOG.isDebugEnabled()) LOG.debug("Creating service map."); ISpecificationSource source = getSpecificationSource(); // Build the initial version of the result map, // where each value is the *name* of a class. Map result = new HashMap(); // Do the framework first. addServices(source.getFrameworkNamespace(), result); // And allow the application to override the framework. addServices(source.getApplicationNamespace(), result); IResourceResolver resolver = getResourceResolver(); Iterator i = result.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry) i.next(); String name = (String) entry.getKey(); String className = (String) entry.getValue(); if (LOG.isDebugEnabled()) LOG.debug("Creating service " + name + " as instance of " + className); Class serviceClass = resolver.findClass(className); try { IEngineService service = (IEngineService) serviceClass.newInstance(); String serviceName = service.getName(); if (!service.getName().equals(name)) throw new ApplicationRuntimeException( Tapestry.getString( "AbstractEngine.service-name-mismatch", name, serviceClass, serviceName)); // Replace the class name with an instance // of the named class. entry.setValue(service); } catch (InstantiationException ex) { String message = Tapestry.getString( "AbstractEngine.unable-to-instantiate-service", name, className); LOG.error(message, ex); throw new ApplicationRuntimeException(message, ex); } catch (IllegalAccessException ex) { String message = Tapestry.getString( "AbstractEngine.unable-to-instantiate-service", name, className); LOG.error(message, ex); throw new ApplicationRuntimeException(message, ex); } } // Result should not be modified after this point, for threadsafety issues. // We could wrap it in an unmodifiable, but for efficiency we don't. return result; }
|
4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/1bbbb92942c8a4dd4d3cf2a8056cc06bf2a3c6c4/AbstractEngine.java/clean/framework/src/org/apache/tapestry/engine/AbstractEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1635,
21073,
863,
1435,
565,
288,
3639,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
5411,
2018,
18,
4148,
2932,
11092,
1156,
852,
1199,
1769,
3639,
467,
8615,
1830,
1084,
273,
20189,
1480,
1830,
5621,
3639,
368,
3998,
326,
2172,
1177,
434,
326,
563,
852,
16,
3639,
368,
1625,
1517,
460,
353,
326,
380,
529,
14,
434,
279,
667,
18,
3639,
1635,
563,
273,
394,
4317,
5621,
3639,
368,
2256,
326,
8257,
1122,
18,
3639,
527,
5676,
12,
3168,
18,
588,
13701,
3402,
9334,
563,
1769,
3639,
368,
7835,
1699,
326,
2521,
358,
3849,
326,
8257,
18,
3639,
527,
5676,
12,
3168,
18,
588,
3208,
3402,
9334,
563,
1769,
3639,
467,
1420,
4301,
5039,
273,
5070,
4301,
5621,
3639,
4498,
277,
273,
563,
18,
4099,
694,
7675,
9838,
5621,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
3639,
288,
5411,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
277,
18,
4285,
5621,
5411,
514,
508,
273,
261,
780,
13,
1241,
18,
588,
653,
5621,
5411,
514,
2658,
273,
261,
780,
13,
1241,
18,
24805,
5621,
5411,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
7734,
2018,
18,
4148,
2932,
11092,
1156,
315,
397,
508,
397,
315,
487,
791,
434,
315,
397,
2658,
1769,
5411,
1659,
1156,
797,
273,
5039,
18,
4720,
797,
12,
12434,
1769,
5411,
775,
5411,
288,
7734,
467,
4410,
1179,
1156,
273,
261,
45,
4410,
1179,
13,
1156,
797,
18,
2704,
1442,
5621,
7734,
514,
6773,
273,
1156,
18,
17994,
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,
1635,
21073,
863,
1435,
565,
288,
3639,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
5411,
2018,
18,
4148,
2932,
11092,
1156,
852,
1199,
1769,
3639,
467,
8615,
1830,
1084,
273,
20189,
1480,
1830,
5621,
3639,
368,
3998,
326,
2172,
1177,
434,
326,
563,
852,
16,
3639,
368,
1625,
1517,
460,
353,
326,
380,
529,
14,
434,
279,
667,
18,
3639,
1635,
563,
273,
394,
4317,
5621,
3639,
368,
2256,
326,
8257,
1122,
18,
3639,
527,
5676,
12,
3168,
18,
588,
13701,
3402,
9334,
563,
1769,
3639,
368,
7835,
1699,
326,
2521,
358,
3849,
326,
8257,
18,
3639,
527,
5676,
12,
3168,
18,
588,
3208,
3402,
9334,
563,
1769,
3639,
467,
1420,
4301,
5039,
273,
5070,
4301,
2
] |
if (parkingRequestFactory.getSecondCarOwnerIdFileName() != null) {
|
if (parkingRequestFactory.getSecondCarOwnerIdInputStream() != null) {
|
private boolean areFileNamesValid(ParkingRequestFactory parkingRequestFactory, HttpServletRequest request) { ActionMessages actionMessages = getActionMessages(request); boolean result = true; if (parkingRequestFactory.getDriverLicenseFileName() != null) { if (!validateFileName(parkingRequestFactory.getDriverLicenseFileName())) { actionMessages.add("driverLicenseMessage", new ActionMessage("error.file.extension")); result = false; } if(parkingRequestFactory.getDriverLicenseFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("driverLicenseMessage", new ActionMessage( "error.file.size")); result = false; } } if (parkingRequestFactory.getFirstCarOwnerIdFileName() != null) { if (!validateFileName(parkingRequestFactory.getFirstCarOwnerIdFileName())) { actionMessages.add("firstCarOwnerIdMessage", new ActionMessage( "error.file.extension")); result = false; } if(parkingRequestFactory.getFirstCarOwnerIdFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("firstCarOwnerIdMessage", new ActionMessage( "error.file.size")); result = false; } } if (parkingRequestFactory.getFirstCarPropertyRegistryFileName() != null) { if (!validateFileName(parkingRequestFactory.getFirstCarPropertyRegistryFileName())) { actionMessages.add("firstCarPropertyRegistryMessage", new ActionMessage( "error.file.extension")); result = false; } if(parkingRequestFactory.getFirstCarPropertyRegistryFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("firstCarPropertyRegistryMessage", new ActionMessage( "error.file.size")); result = false; } } if (parkingRequestFactory.getFirstDeclarationAuthorizationFileName() != null) { if (!validateFileName(parkingRequestFactory.getFirstDeclarationAuthorizationFileName())) { actionMessages.add("firstDeclarationAuthorizationMessage", new ActionMessage( "error.file.extension")); result = false; } if(parkingRequestFactory.getFirstDeclarationAuthorizationFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("firstDeclarationAuthorizationMessage", new ActionMessage( "error.file.size")); result = false; } } if (parkingRequestFactory.getFirstInsuranceFileName() != null) { if (!validateFileName(parkingRequestFactory.getFirstInsuranceFileName())) { actionMessages.add("firstInsuranceMessage", new ActionMessage( "error.file.extension")); result = false; } if(parkingRequestFactory.getFirstInsuranceFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("firstInsuranceMessage", new ActionMessage( "error.file.size")); result = false; } } if (parkingRequestFactory.getSecondCarOwnerIdFileName() != null) { if (!validateFileName(parkingRequestFactory.getSecondCarOwnerIdFileName())) { actionMessages.add("secondCarOwnerIdMessage", new ActionMessage( "error.file.extension")); result = false; } if(parkingRequestFactory.getSecondCarOwnerIdFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("secondCarOwnerIdMessage", new ActionMessage( "error.file.size")); result = false; } } if (parkingRequestFactory.getSecondCarPropertyRegistryFileName() != null) { if (!validateFileName(parkingRequestFactory.getSecondCarPropertyRegistryFileName())) { actionMessages.add("secondCarPropertyRegistryMessage", new ActionMessage( "error.file.extension")); result = false; } if(parkingRequestFactory.getSecondCarPropertyRegistryFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("secondCarPropertyRegistryMessage", new ActionMessage( "error.file.size")); result = false; } } if (parkingRequestFactory.getSecondDeclarationAuthorizationFileName() != null) { if (!validateFileName(parkingRequestFactory.getSecondDeclarationAuthorizationFileName())) { actionMessages.add("secondDeclarationAuthorizationMessage", new ActionMessage( "error.file.extension")); result = false; } if(parkingRequestFactory.getSecondDeclarationAuthorizationFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("secondDeclarationAuthorizationMessage", new ActionMessage( "error.file.size")); result = false; } } if (parkingRequestFactory.getSecondInsuranceFileName() != null) { if (!validateFileName(parkingRequestFactory.getSecondInsuranceFileName())) { actionMessages.add("secondInsuranceMessage", new ActionMessage( "error.file.extension")); result = false; } if(parkingRequestFactory.getSecondInsuranceFileSize() > ParkingFile.MAX_FILE_SIZE){ actionMessages.add("secondInsuranceMessage", new ActionMessage( "error.file.size")); result = false; } } return result; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/56a400816a86dacc4ba6505d6b6533d30e8c85da/ParkingDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/person/ParkingDispatchAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
854,
812,
1557,
1556,
12,
52,
1313,
310,
691,
1733,
779,
79,
310,
691,
1733,
16,
5411,
9984,
590,
13,
288,
3639,
4382,
5058,
1301,
5058,
273,
12473,
5058,
12,
2293,
1769,
3639,
1250,
563,
273,
638,
31,
3639,
309,
261,
9468,
310,
691,
1733,
18,
588,
4668,
13211,
4771,
1435,
480,
446,
13,
288,
5411,
309,
16051,
5662,
4771,
12,
9468,
310,
691,
1733,
18,
588,
4668,
13211,
4771,
1435,
3719,
288,
7734,
1301,
5058,
18,
1289,
2932,
7407,
13211,
1079,
3113,
13491,
394,
4382,
1079,
2932,
1636,
18,
768,
18,
6447,
7923,
1769,
7734,
563,
273,
629,
31,
5411,
289,
5411,
309,
12,
9468,
310,
691,
1733,
18,
588,
4668,
13211,
15100,
1435,
405,
453,
1313,
310,
812,
18,
6694,
67,
3776,
67,
4574,
15329,
7734,
1301,
5058,
18,
1289,
2932,
7407,
13211,
1079,
3113,
394,
4382,
1079,
12,
7734,
315,
1636,
18,
768,
18,
1467,
7923,
1769,
7734,
563,
273,
629,
31,
5411,
289,
3639,
289,
3639,
309,
261,
9468,
310,
691,
1733,
18,
588,
3759,
16321,
5541,
548,
4771,
1435,
480,
446,
13,
288,
5411,
309,
16051,
5662,
4771,
12,
9468,
310,
691,
1733,
18,
588,
3759,
16321,
5541,
548,
4771,
1435,
3719,
288,
7734,
1301,
5058,
18,
1289,
2932,
3645,
16321,
5541,
548,
1079,
3113,
394,
4382,
1079,
12,
13491,
315,
1636,
18,
768,
18,
6447,
7923,
1769,
7734,
563,
273,
629,
31,
5411,
289,
5411,
309,
12,
9468,
310,
691,
1733,
18,
588,
3759,
16321,
5541,
548,
15100,
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,
1250,
854,
812,
1557,
1556,
12,
52,
1313,
310,
691,
1733,
779,
79,
310,
691,
1733,
16,
5411,
9984,
590,
13,
288,
3639,
4382,
5058,
1301,
5058,
273,
12473,
5058,
12,
2293,
1769,
3639,
1250,
563,
273,
638,
31,
3639,
309,
261,
9468,
310,
691,
1733,
18,
588,
4668,
13211,
4771,
1435,
480,
446,
13,
288,
5411,
309,
16051,
5662,
4771,
12,
9468,
310,
691,
1733,
18,
588,
4668,
13211,
4771,
1435,
3719,
288,
7734,
1301,
5058,
18,
1289,
2932,
7407,
13211,
1079,
3113,
13491,
394,
4382,
1079,
2932,
1636,
18,
768,
18,
6447,
7923,
1769,
7734,
563,
273,
629,
31,
5411,
289,
5411,
309,
12,
9468,
310,
691,
1733,
18,
588,
4668,
13211,
15100,
1435,
405,
2
] |
String[] args = { path }; VFSManager.error(comp,"badurl",args);
|
String[] args = { mu.getMessage() }; VFSManager.error(comp,path,"badurl",args);
|
public OutputStream _createOutputStream(Object session, String path, Component comp) throws IOException { try { return new URL(path).openConnection() .getOutputStream(); } catch(MalformedURLException mu) { Log.log(Log.ERROR,this,mu); String[] args = { path }; VFSManager.error(comp,"badurl",args); return null; } }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/3cf31efe2b1f42c624b923f1fdcd1aaaaf431719/UrlVFS.java/buggy/org/gjt/sp/jedit/io/UrlVFS.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8962,
389,
2640,
4632,
12,
921,
1339,
16,
514,
589,
16,
202,
202,
1841,
1161,
13,
1216,
1860,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
2463,
394,
1976,
12,
803,
2934,
3190,
1952,
1435,
9506,
202,
18,
588,
4632,
5621,
202,
202,
97,
202,
202,
14683,
12,
18695,
20160,
4129,
13,
202,
202,
95,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
13297,
1769,
1082,
202,
780,
8526,
833,
273,
288,
589,
289,
31,
1082,
202,
58,
4931,
1318,
18,
1636,
12,
2919,
10837,
8759,
718,
3113,
1968,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8962,
389,
2640,
4632,
12,
921,
1339,
16,
514,
589,
16,
202,
202,
1841,
1161,
13,
1216,
1860,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
2463,
394,
1976,
12,
803,
2934,
3190,
1952,
1435,
9506,
202,
18,
588,
4632,
5621,
202,
202,
97,
202,
202,
14683,
12,
18695,
20160,
4129,
13,
202,
202,
95,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
13297,
1769,
1082,
202,
780,
8526,
833,
273,
288,
589,
289,
31,
1082,
202,
58,
4931,
1318,
18,
1636,
12,
2919,
10837,
8759,
718,
3113,
1968,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int size = 0; for (int i = 0; i < bufferedRecords.size(); i++) { size += ((byte[])bufferedRecords.get(i)).length; } byte tmp[] = new byte[size]; size = 0; for (int i = 0; i < bufferedRecords.size(); i++) { byte x[] = (byte[])bufferedRecords.get(i); System.arraycopy(x, 0, tmp, size, x.length); size += x.length; } putTdsPacket(tmp, tmp.length); bufferedRecords.clear();
|
flushBufferedRecords();
|
public void write(byte[] b, int off, int len) throws IOException { if (len < Ssl.TLS_HEADER_SIZE || off > 0) { // Too short for a TLS packet just write it out.write(b, off, len); return; } // // Extract relevant TLS header fields // int contentType = b[0] & 0xFF; int length = ((b[3] & 0xFF) << 8) | (b[4] & 0xFF); // // Check to see if probably a SSL client hello // if (contentType < Ssl.TYPE_CHANGECIPHERSPEC || contentType > Ssl.TYPE_APPLICATIONDATA || length != len - Ssl.TLS_HEADER_SIZE) { // Assume SSLV2 Client Hello putTdsPacket(b, len); return; } // // Process TLS records // switch (contentType) { case Ssl.TYPE_APPLICATIONDATA: // Application data, just copy to output out.write(b, off, len); break; case Ssl.TYPE_CHANGECIPHERSPEC: // Cipher spec change has to be buffered deferRecord(b, len); break; case Ssl.TYPE_ALERT: // Alert record ignore! break; case Ssl.TYPE_HANDSHAKE: // TLS Handshake records if (len >= (Ssl.TLS_HEADER_SIZE + Ssl.HS_HEADER_SIZE)) { // Long enough for a handshake subheader int hsType = b[5]; int hsLen = (b[6] & 0xFF) << 16 | (b[7] & 0xFF) << 8 | (b[8] & 0xFF); if (hsLen == len - (Ssl.TLS_HEADER_SIZE + Ssl.HS_HEADER_SIZE) && // Client hello has to go in its own TDS packet hsType == Ssl.TYPE_CLIENTHELLO) { putTdsPacket(b, len); break; } // All others have to be deferred and sent as a block deferRecord(b, len); // // Now see if we have a finish record which will flush the // buffered records. // if (hsLen != len - (Ssl.TLS_HEADER_SIZE + Ssl.HS_HEADER_SIZE) || hsType != Ssl.TYPE_CLIENTKEYEXCHANGE) { // This is probably a finish record int size = 0; for (int i = 0; i < bufferedRecords.size(); i++) { size += ((byte[])bufferedRecords.get(i)).length; } byte tmp[] = new byte[size]; size = 0; for (int i = 0; i < bufferedRecords.size(); i++) { byte x[] = (byte[])bufferedRecords.get(i); System.arraycopy(x, 0, tmp, size, x.length); size += x.length; } putTdsPacket(tmp, tmp.length); bufferedRecords.clear(); } break; } default: // Short or unknown record output it anyway out.write(b, off, len); break; } }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/2932e2537aa7228252e97aba83fd06c45ad6066f/TdsTlsOutputStream.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/ssl/TdsTlsOutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
12,
7229,
8526,
324,
16,
509,
3397,
16,
509,
562,
13,
1216,
1860,
288,
3639,
309,
261,
1897,
411,
23929,
18,
9905,
67,
7557,
67,
4574,
747,
3397,
405,
374,
13,
288,
5411,
368,
15869,
3025,
364,
279,
8098,
4414,
2537,
1045,
518,
5411,
596,
18,
2626,
12,
70,
16,
3397,
16,
562,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
3639,
368,
8152,
9368,
8098,
1446,
1466,
3639,
368,
3639,
509,
5064,
273,
324,
63,
20,
65,
473,
374,
6356,
31,
3639,
509,
769,
225,
273,
14015,
70,
63,
23,
65,
473,
374,
6356,
13,
2296,
1725,
13,
571,
261,
70,
63,
24,
65,
473,
374,
6356,
1769,
3639,
368,
3639,
368,
2073,
358,
2621,
309,
8656,
279,
7419,
1004,
19439,
3639,
368,
3639,
309,
261,
22194,
411,
23929,
18,
2399,
67,
1792,
3388,
7228,
2579,
3891,
13847,
747,
5411,
5064,
405,
23929,
18,
2399,
67,
25039,
4883,
747,
5411,
769,
480,
562,
300,
23929,
18,
9905,
67,
7557,
67,
4574,
13,
288,
5411,
368,
15983,
7419,
58,
22,
2445,
20889,
5411,
1378,
56,
2377,
6667,
12,
70,
16,
562,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
3639,
368,
4389,
8098,
3853,
3639,
368,
3639,
1620,
261,
22194,
13,
288,
5411,
648,
23929,
18,
2399,
67,
25039,
4883,
30,
7734,
368,
4257,
501,
16,
2537,
1610,
358,
876,
7734,
596,
18,
2626,
12,
70,
16,
3397,
16,
562,
1769,
7734,
898,
31,
5411,
648,
23929,
18,
2399,
67,
1792,
3388,
7228,
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,
1045,
12,
7229,
8526,
324,
16,
509,
3397,
16,
509,
562,
13,
1216,
1860,
288,
3639,
309,
261,
1897,
411,
23929,
18,
9905,
67,
7557,
67,
4574,
747,
3397,
405,
374,
13,
288,
5411,
368,
15869,
3025,
364,
279,
8098,
4414,
2537,
1045,
518,
5411,
596,
18,
2626,
12,
70,
16,
3397,
16,
562,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
3639,
368,
8152,
9368,
8098,
1446,
1466,
3639,
368,
3639,
509,
5064,
273,
324,
63,
20,
65,
473,
374,
6356,
31,
3639,
509,
769,
225,
273,
14015,
70,
63,
23,
65,
473,
374,
6356,
13,
2296,
1725,
13,
571,
261,
70,
63,
24,
65,
473,
374,
6356,
1769,
3639,
368,
3639,
368,
2073,
358,
2
] |
jj_la1[30] = jj_gen;
|
jj_la1[31] = jj_gen;
|
final public void IfStatement() throws ParseException { /*@bgen(jjtree) IfStatement */ ASTIfStatement jjtn000 = new ASTIfStatement(this, JJTIFSTATEMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(IF_DIRECTIVE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WHITESPACE: jj_consume_token(WHITESPACE); break; default: jj_la1[30] = jj_gen; ; } jj_consume_token(LPAREN); Expression(); jj_consume_token(RPAREN); ASTBlock jjtn001 = new ASTBlock(this, JJTBLOCK); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { label_10: while (true) { Statement(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: case RPAREN: case ESCAPE_DIRECTIVE: case SET_DIRECTIVE: case DOUBLE_ESCAPE: case ESCAPE: case TEXT: case SINGLE_LINE_COMMENT: case FORMAL_COMMENT: case MULTI_LINE_COMMENT: case STRING_LITERAL: case IF_DIRECTIVE: case STOP_DIRECTIVE: case NUMBER_LITERAL: case WORD: case IDENTIFIER: case DOT: case LCURLY: case RCURLY: ; break; default: jj_la1[31] = jj_gen; break label_10; } } } catch (Throwable jjte001) { if (jjtc001) { jjtree.clearNodeScope(jjtn001); jjtc001 = false; } else { jjtree.popNode(); } if (jjte001 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte001;} } if (jjte001 instanceof ParseException) { {if (true) throw (ParseException)jjte001;} } {if (true) throw (Error)jjte001;} } finally { if (jjtc001) { jjtree.closeNodeScope(jjtn001, true); } } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ELSEIF_DIRECTIVE: label_11: while (true) { ElseIfStatement(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ELSEIF_DIRECTIVE: ; break; default: jj_la1[32] = jj_gen; break label_11; } } break; default: jj_la1[33] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ELSE_DIRECTIVE: ElseStatement(); break; default: jj_la1[34] = jj_gen; ; } jj_consume_token(END); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
|
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/8e9e155e88430402b0d51d6b344267b73292ca2c/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
971,
3406,
1435,
1216,
10616,
288,
8227,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
971,
3406,
1195,
225,
9183,
2047,
3406,
10684,
5088,
3784,
273,
394,
9183,
2047,
3406,
12,
2211,
16,
804,
46,
56,
5501,
28411,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
10684,
67,
21224,
67,
2316,
12,
5501,
67,
17541,
5354,
1769,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1377,
648,
24353,
6616,
30,
3639,
10684,
67,
21224,
67,
2316,
12,
20767,
1769,
3639,
898,
31,
1377,
805,
30,
3639,
10684,
67,
11821,
21,
63,
6938,
65,
273,
10684,
67,
4507,
31,
3639,
274,
1377,
289,
1377,
10684,
67,
21224,
67,
2316,
12,
48,
15111,
1769,
1377,
5371,
5621,
1377,
10684,
67,
21224,
67,
2316,
12,
54,
15111,
1769,
1377,
9183,
1768,
10684,
5088,
11664,
273,
394,
9183,
1768,
12,
2211,
16,
804,
46,
56,
11403,
1769,
1377,
1250,
10684,
5111,
11664,
273,
638,
31,
1377,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
11664,
1769,
1377,
775,
288,
3639,
1433,
67,
2163,
30,
3639,
1323,
261,
3767,
13,
288,
1850,
8056,
5621,
1850,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1850,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
971,
3406,
1435,
1216,
10616,
288,
8227,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
971,
3406,
1195,
225,
9183,
2047,
3406,
10684,
5088,
3784,
273,
394,
9183,
2047,
3406,
12,
2211,
16,
804,
46,
56,
5501,
28411,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
10684,
67,
21224,
67,
2316,
12,
5501,
67,
17541,
5354,
1769,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1377,
648,
24353,
6616,
30,
3639,
10684,
67,
21224,
67,
2316,
12,
20767,
1769,
2
] |
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } textComponent.addPropertyChangeListener(updateHandler); modelChanged(); installDefaults(); installListeners(); installKeyboardActions(); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8f1176391e1d000d946793693906d6dc8af29e19/BasicTextUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
5425,
5370,
12,
6385,
46,
1841,
71,
15329,
9565,
18,
5425,
5370,
12,
71,
1769,
71,
18,
542,
3817,
14886,
12,
3767,
1769,
955,
1841,
28657,
46,
1528,
1841,
13,
71,
31,
2519,
2434,
33,
955,
1841,
18,
588,
2519,
5621,
430,
12,
2434,
631,
2011,
15329,
202,
2434,
33,
588,
6946,
14102,
12,
955,
1841,
2934,
2640,
1868,
2519,
5621,
202,
955,
1841,
18,
542,
2519,
12,
2434,
1769,
97,
955,
1841,
18,
1289,
1396,
15744,
12,
2725,
1503,
1769,
2284,
5033,
5621,
5425,
7019,
5621,
5425,
5583,
5621,
5425,
17872,
6100,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
6459,
5425,
5370,
12,
6385,
46,
1841,
71,
15329,
9565,
18,
5425,
5370,
12,
71,
1769,
71,
18,
542,
3817,
14886,
12,
3767,
1769,
955,
1841,
28657,
46,
1528,
1841,
13,
71,
31,
2519,
2434,
33,
955,
1841,
18,
588,
2519,
5621,
430,
12,
2434,
631,
2011,
15329,
202,
2434,
33,
588,
6946,
14102,
12,
955,
1841,
2934,
2640,
1868,
2519,
5621,
202,
955,
1841,
18,
542,
2519,
12,
2434,
1769,
97,
955,
1841,
18,
1289,
1396,
15744,
12,
2725,
1503,
1769,
2284,
5033,
5621,
5425,
7019,
5621,
5425,
5583,
5621,
5425,
17872,
6100,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
return this.version; }
|
return this.version; }
|
public GrailsDomainClassProperty getVersion() { return this.version; }
|
51826 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51826/58974951e3276884850340e13cf2bb066cb110b9/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10812,
14573,
3748,
797,
1396,
8343,
1435,
288,
202,
202,
2463,
333,
18,
1589,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10812,
14573,
3748,
797,
1396,
8343,
1435,
288,
202,
202,
2463,
333,
18,
1589,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int sep = whichBox.lastIndexOf(YAMM.sep);
|
int sep = whichBox.lastIndexOf(File.separator);
|
private static void setIndexStatus(String whichBox, int whichmail, String status) { int sep = whichBox.lastIndexOf(YAMM.sep); String box = whichBox.substring(0, sep + 1) + "." + whichBox.substring(sep + 1, whichBox.length()) + ".index"; boolean add = false; File source = new File(box); File target = new File(box + ".tmp"); BufferedReader in = null; PrintWriter out = null; int[] unread = getUnread(whichBox); unread[1]--; try { in = new BufferedReader(new InputStreamReader( new FileInputStream(source))); out = new PrintWriter(new BufferedOutputStream( new FileOutputStream(target))); in.readLine(); // skip unread, total msg header out.println(unread[0] + ", " + unread[1]); StreamTokenizer tok = new StreamTokenizer(in); for (int i = 0; i < whichmail; i++) { out.println(in.readLine()); } tok.nextToken(); out.print((int) tok.nval + " "); tok.nextToken(); out.print("\"" + removeQuote(tok.sval) + "\" "); tok.nextToken(); out.print("\"" + removeQuote(tok.sval) + "\" "); tok.nextToken(); out.print("\"" + tok.sval + "\" "); tok.nextToken(); out.print("\"" + status + "\" "); if (tok.sval.equals("Unread")) { add = true; } tok.nextToken(); out.println((long) tok.nval + ""); String tmp = null; if (!add) { while ((tmp = in.readLine()) != null) { out.println(tmp); } } else { while ((tmp = in.readLine()) != null) { if (tmp.equals("")) continue; long skip = Long.parseLong( tmp.substring( tmp.lastIndexOf(" ") + 1, tmp.length())); skip += status.length() + 13 + System.getProperty ("line.separator").length(); tmp = tmp.substring(0, tmp.lastIndexOf(" ") + 1); out.print(tmp); out.println(skip + ""); } } in.close(); out.close(); source.delete(); target.renameTo(source); } catch (IOException ioe) { new ExceptionDialog(YAMM.getString("msg.error"), ioe, YAMM.exceptionNames); } finally { try { if (in != null) in.close(); if (out != null) out.close(); } catch (IOException ioe) {} } }
|
3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/d34f0b921d886e2ea79ca1692b8cb4efbc3811c5/Mailbox.java/clean/mail/Mailbox.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
24860,
1482,
12,
780,
1492,
3514,
16,
509,
1492,
4408,
16,
6862,
9506,
202,
780,
1267,
13,
288,
202,
202,
474,
5478,
273,
1492,
3514,
18,
2722,
31985,
12,
61,
2192,
49,
18,
10814,
1769,
202,
202,
780,
3919,
273,
1492,
3514,
18,
28023,
12,
20,
16,
5478,
397,
404,
13,
397,
9506,
202,
6,
1199,
397,
4697,
202,
12784,
3514,
18,
28023,
12,
10814,
397,
404,
16,
1492,
3514,
18,
2469,
10756,
397,
9506,
202,
9654,
1615,
14432,
202,
202,
6494,
527,
273,
629,
31,
202,
202,
812,
1084,
273,
394,
1387,
12,
2147,
1769,
202,
202,
812,
1018,
273,
394,
1387,
12,
2147,
397,
3552,
5645,
8863,
202,
202,
17947,
2514,
316,
273,
446,
31,
202,
202,
5108,
2289,
596,
273,
446,
31,
202,
202,
474,
8526,
19541,
273,
10833,
896,
12,
12784,
3514,
1769,
202,
202,
318,
896,
63,
21,
65,
413,
31,
9506,
202,
698,
288,
1082,
202,
267,
273,
394,
10633,
12,
2704,
15322,
12,
25083,
202,
2704,
11907,
12,
3168,
3719,
1769,
1082,
202,
659,
282,
273,
394,
14071,
12,
2704,
28649,
12,
25083,
202,
2704,
12942,
12,
3299,
3719,
1769,
1082,
202,
267,
18,
896,
1670,
5621,
368,
2488,
19541,
16,
2078,
1234,
1446,
1082,
202,
659,
18,
8222,
12,
318,
896,
63,
20,
65,
397,
3104,
315,
397,
19541,
63,
21,
19226,
1082,
202,
1228,
10524,
946,
273,
394,
3961,
10524,
12,
267,
1769,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
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,
225,
202,
1152,
760,
918,
24860,
1482,
12,
780,
1492,
3514,
16,
509,
1492,
4408,
16,
6862,
9506,
202,
780,
1267,
13,
288,
202,
202,
474,
5478,
273,
1492,
3514,
18,
2722,
31985,
12,
61,
2192,
49,
18,
10814,
1769,
202,
202,
780,
3919,
273,
1492,
3514,
18,
28023,
12,
20,
16,
5478,
397,
404,
13,
397,
9506,
202,
6,
1199,
397,
4697,
202,
12784,
3514,
18,
28023,
12,
10814,
397,
404,
16,
1492,
3514,
18,
2469,
10756,
397,
9506,
202,
9654,
1615,
14432,
202,
202,
6494,
527,
273,
629,
31,
202,
202,
812,
1084,
273,
394,
1387,
12,
2147,
1769,
202,
202,
812,
1018,
273,
394,
1387,
12,
2147,
397,
3552,
5645,
8863,
202,
202,
17947,
2514,
316,
2
] |
EnhancedDebugger debugger = (EnhancedDebugger)it.next();
|
EnhancedDebugger debugger = (EnhancedDebugger) it.next();
|
public void rootWindowClosing(WindowEvent evt) { // Notify to all the debuggers to stop debugging for (Iterator it = debuggers.iterator(); it.hasNext();) { EnhancedDebugger debugger = (EnhancedDebugger)it.next(); debugger.cancel(); } // Release any reference to the debuggers debuggers.removeAll(debuggers); // Release the default instance instance = null; }
|
45655 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45655/78becc3d7305388cff280b2bc0e2842644b0cd9b/EnhancedDebuggerWindow.java/clean/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1365,
3829,
15745,
12,
3829,
1133,
6324,
13,
288,
3639,
368,
10918,
358,
777,
326,
1198,
6215,
358,
2132,
10450,
3639,
364,
261,
3198,
518,
273,
1198,
6215,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
5411,
1374,
17221,
24113,
19977,
273,
261,
664,
17221,
24113,
13,
518,
18,
4285,
5621,
5411,
19977,
18,
10996,
5621,
3639,
289,
3639,
368,
10819,
1281,
2114,
358,
326,
1198,
6215,
3639,
1198,
6215,
18,
4479,
1595,
12,
4148,
6215,
1769,
3639,
368,
10819,
326,
805,
791,
3639,
791,
273,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1365,
3829,
15745,
12,
3829,
1133,
6324,
13,
288,
3639,
368,
10918,
358,
777,
326,
1198,
6215,
358,
2132,
10450,
3639,
364,
261,
3198,
518,
273,
1198,
6215,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
5411,
1374,
17221,
24113,
19977,
273,
261,
664,
17221,
24113,
13,
518,
18,
4285,
5621,
5411,
19977,
18,
10996,
5621,
3639,
289,
3639,
368,
10819,
1281,
2114,
358,
326,
1198,
6215,
3639,
1198,
6215,
18,
4479,
1595,
12,
4148,
6215,
1769,
3639,
368,
10819,
326,
805,
791,
3639,
791,
273,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException {
|
public static RubyHash unmarshalFrom(UnmarshalStream input) throws IOException {
|
public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException { RubyHash result = newHash(input.getRuntime()); input.registerLinkTarget(result); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { IRubyObject key = input.unmarshalObject(); IRubyObject value = input.unmarshalObject(); result.aset(key, value); } return result; }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/d70012034b8795a6917f9e3b903281a59f12d372/RubyHash.java/buggy/src/org/jruby/RubyHash.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
2310,
11401,
1265,
12,
9593,
1228,
810,
13,
1216,
1860,
288,
3639,
19817,
2310,
563,
273,
394,
2310,
12,
2630,
18,
588,
5576,
10663,
3639,
810,
18,
4861,
2098,
2326,
12,
2088,
1769,
3639,
509,
963,
273,
810,
18,
318,
3108,
1702,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
5411,
15908,
10340,
921,
498,
273,
810,
18,
318,
3108,
921,
5621,
5411,
15908,
10340,
921,
460,
273,
810,
18,
318,
3108,
921,
5621,
5411,
563,
18,
2759,
12,
856,
16,
460,
1769,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
19817,
2310,
11401,
1265,
12,
9593,
1228,
810,
13,
1216,
1860,
288,
3639,
19817,
2310,
563,
273,
394,
2310,
12,
2630,
18,
588,
5576,
10663,
3639,
810,
18,
4861,
2098,
2326,
12,
2088,
1769,
3639,
509,
963,
273,
810,
18,
318,
3108,
1702,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
5411,
15908,
10340,
921,
498,
273,
810,
18,
318,
3108,
921,
5621,
5411,
15908,
10340,
921,
460,
273,
810,
18,
318,
3108,
921,
5621,
5411,
563,
18,
2759,
12,
856,
16,
460,
1769,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!right.containsKey(key)) leftOnly.add(key); else if (!Util.equals(left.get(key), right.get(key))) different.add(key);
|
if (!right.containsKey(key)) { leftOnly.add(key); } else if (!Util.equals(left.get(key), right.get(key))) { different.add(key); }
|
public static void diff(Map left, Map right, Set leftOnly, Set different, Set rightOnly) { if (left == null || right == null || leftOnly == null || different == null || rightOnly == null) throw new NullPointerException(); Iterator iterator = left.keySet().iterator(); while (iterator.hasNext()) { Object key = iterator.next(); if (!right.containsKey(key)) leftOnly.add(key); else if (!Util.equals(left.get(key), right.get(key))) different.add(key); } iterator = right.keySet().iterator(); while (iterator.hasNext()) { Object key = iterator.next(); if (!left.containsKey(key)) rightOnly.add(key); } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/Util.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/util/Util.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3122,
12,
863,
2002,
16,
1635,
2145,
16,
1000,
2002,
3386,
16,
1000,
3775,
16,
5411,
1000,
2145,
3386,
13,
288,
3639,
309,
261,
4482,
422,
446,
747,
2145,
422,
446,
747,
2002,
3386,
422,
446,
7734,
747,
3775,
422,
446,
747,
2145,
3386,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
4498,
2775,
273,
2002,
18,
856,
694,
7675,
9838,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
5411,
1033,
498,
273,
2775,
18,
4285,
5621,
5411,
309,
16051,
4083,
18,
12298,
653,
12,
856,
3719,
7734,
2002,
3386,
18,
1289,
12,
856,
1769,
5411,
469,
309,
16051,
1304,
18,
14963,
12,
4482,
18,
588,
12,
856,
3631,
2145,
18,
588,
12,
856,
20349,
7734,
3775,
18,
1289,
12,
856,
1769,
3639,
289,
3639,
2775,
273,
2145,
18,
856,
694,
7675,
9838,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
5411,
1033,
498,
273,
2775,
18,
4285,
5621,
5411,
309,
16051,
4482,
18,
12298,
653,
12,
856,
3719,
7734,
2145,
3386,
18,
1289,
12,
856,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3122,
12,
863,
2002,
16,
1635,
2145,
16,
1000,
2002,
3386,
16,
1000,
3775,
16,
5411,
1000,
2145,
3386,
13,
288,
3639,
309,
261,
4482,
422,
446,
747,
2145,
422,
446,
747,
2002,
3386,
422,
446,
7734,
747,
3775,
422,
446,
747,
2145,
3386,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
4498,
2775,
273,
2002,
18,
856,
694,
7675,
9838,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
5411,
1033,
498,
273,
2775,
18,
4285,
5621,
5411,
309,
16051,
4083,
18,
12298,
653,
12,
856,
3719,
7734,
2002,
3386,
18,
1289,
12,
856,
1769,
5411,
469,
309,
16051,
1304,
18,
14963,
12,
4482,
18,
588,
12,
856,
3631,
2145,
18,
588,
2
] |
monitor.beginTask(Util.bind("engine.searching"), 100);
|
monitor.beginTask(Messages.engine_searching, 100);
|
public void findMatches(SearchPattern pattern, SearchParticipant[] participants, IJavaSearchScope scope, SearchRequestor requestor, IProgressMonitor monitor) throws CoreException { if (monitor != null && monitor.isCanceled()) throw new OperationCanceledException(); /* initialize progress monitor */ if (monitor != null) monitor.beginTask(Util.bind("engine.searching"), 100); //$NON-NLS-1$ if (BasicSearchEngine.VERBOSE) { System.out.println("Searching for pattern: " + pattern.toString()); //$NON-NLS-1$ System.out.println(scope); //$NON-NLS-1$ } IndexManager indexManager = JavaModelManager.getJavaModelManager().getIndexManager(); try { requestor.beginReporting(); for (int i = 0, l = participants == null ? 0 : participants.length; i < l; i++) { if (monitor != null && monitor.isCanceled()) throw new OperationCanceledException(); SearchParticipant participant = participants[i]; SubProgressMonitor subMonitor= monitor==null ? null : new SubProgressMonitor(monitor, 1000); if (subMonitor != null) subMonitor.beginTask("", 1000); //$NON-NLS-1$ try { if (subMonitor != null) subMonitor.subTask(Util.bind("engine.searching.indexing", participant.getDescription())); //$NON-NLS-1$ participant.beginSearching(); requestor.enterParticipant(participant); PathCollector pathCollector = new PathCollector(); indexManager.performConcurrentJob( new PatternSearchJob(pattern, participant, scope, pathCollector), IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, subMonitor); if (monitor != null && monitor.isCanceled()) throw new OperationCanceledException(); // locate index matches if any (note that all search matches could have been issued during index querying) if (subMonitor != null) subMonitor.subTask(Util.bind("engine.searching.matching", participant.getDescription())); //$NON-NLS-1$ String[] indexMatchPaths = pathCollector.getPaths(); pathCollector = null; // release int indexMatchLength = indexMatchPaths == null ? 0 : indexMatchPaths.length; SearchDocument[] indexMatches = new SearchDocument[indexMatchLength]; for (int j = 0; j < indexMatchLength; j++) indexMatches[j] = participant.getDocument(indexMatchPaths[j]); SearchDocument[] matches = MatchLocator.addWorkingCopies(pattern, indexMatches, getWorkingCopies(), participant); participant.locateMatches(matches, pattern, scope, requestor, subMonitor); } finally { requestor.exitParticipant(participant); participant.doneSearching(); } } } finally { requestor.endReporting(); if (monitor != null) monitor.done(); } }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7ed8fb3f335f5407b01a590a0c668733ebc19aa6/BasicSearchEngine.java/clean/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/BasicSearchEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1104,
6869,
12,
2979,
3234,
1936,
16,
5167,
22540,
8526,
22346,
16,
467,
5852,
2979,
3876,
2146,
16,
5167,
691,
280,
590,
280,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
430,
261,
10259,
480,
446,
597,
6438,
18,
291,
23163,
10756,
604,
394,
4189,
23163,
503,
5621,
1082,
202,
20308,
4046,
4007,
6438,
1195,
202,
202,
430,
261,
10259,
480,
446,
13,
1082,
202,
10259,
18,
10086,
2174,
12,
5058,
18,
8944,
67,
3072,
310,
16,
2130,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
8252,
2979,
4410,
18,
21900,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2979,
310,
364,
1936,
30,
315,
397,
1936,
18,
10492,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
3163,
18,
659,
18,
8222,
12,
4887,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
1082,
202,
1016,
1318,
770,
1318,
273,
5110,
1488,
1318,
18,
588,
5852,
1488,
1318,
7675,
588,
1016,
1318,
5621,
202,
202,
698,
288,
1082,
202,
2293,
280,
18,
10086,
29285,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
16,
328,
273,
22346,
422,
446,
692,
374,
294,
22346,
18,
2469,
31,
277,
411,
328,
31,
277,
27245,
288,
9506,
202,
430,
261,
10259,
480,
446,
597,
6438,
18,
291,
23163,
10756,
604,
394,
4189,
23163,
503,
5621,
6862,
202,
2979,
22540,
14188,
273,
22346,
63,
77,
15533,
9506,
202,
1676,
5491,
7187,
720,
7187,
33,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1104,
6869,
12,
2979,
3234,
1936,
16,
5167,
22540,
8526,
22346,
16,
467,
5852,
2979,
3876,
2146,
16,
5167,
691,
280,
590,
280,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
430,
261,
10259,
480,
446,
597,
6438,
18,
291,
23163,
10756,
604,
394,
4189,
23163,
503,
5621,
1082,
202,
20308,
4046,
4007,
6438,
1195,
202,
202,
430,
261,
10259,
480,
446,
13,
1082,
202,
10259,
18,
10086,
2174,
12,
5058,
18,
8944,
67,
3072,
310,
16,
2130,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
8252,
2979,
4410,
18,
21900,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2979,
310,
364,
1936,
30,
315,
397,
2
] |
public Border getBorder(Context c, Box box) { if(box.isElement()) { if(box.border == null) { box.border = c.css.getBorderWidth(box.getElement()); } } return box.border; }
|
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/07ab625b03cad242caa27ac48e830592130b24a1/BoxLayout.java/clean/src/java/org/joshy/html/BoxLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
8107,
588,
8107,
12,
1042,
71,
16,
3514,
2147,
15329,
430,
12,
2147,
18,
291,
1046,
10756,
95,
430,
12,
2147,
18,
8815,
631,
2011,
15329,
2147,
18,
8815,
33,
71,
18,
5212,
18,
588,
8107,
2384,
12,
2147,
18,
21336,
10663,
9090,
2463,
2147,
18,
8815,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
8107,
588,
8107,
12,
1042,
71,
16,
3514,
2147,
15329,
430,
12,
2147,
18,
291,
1046,
10756,
95,
430,
12,
2147,
18,
8815,
631,
2011,
15329,
2147,
18,
8815,
33,
71,
18,
5212,
18,
588,
8107,
2384,
12,
2147,
18,
21336,
10663,
9090,
2463,
2147,
18,
8815,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
break;
|
continue Loop;
|
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/369d8e109106915195bef3af1282543ab09e3869/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
612,
396,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
888,
18,
1991,
1190,
3748,
12,
350,
396,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
29159,
2146,
16,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
2
] |
public void testDirectoryName2() throws MojoExecutionException
|
public void testDirectoryName2() throws MojoExecutionException
|
public void testDirectoryName2() throws MojoExecutionException { File folder = new File("target/a"); File name = DependencyUtil.getFormattedOutputDirectory(false,false,folder,(Artifact)artifacts.get(1)); //object is the same. assertEquals(folder,name); name = DependencyUtil.getFormattedOutputDirectory(true,false,folder,(Artifact)artifacts.get(1)); String expectedResult = folder.getAbsolutePath()+ File.separatorChar+"wars"; assertTrue(expectedResult.equalsIgnoreCase(name.getAbsolutePath())); name = DependencyUtil.getFormattedOutputDirectory(false,true,folder,(Artifact)artifacts.get(1)); expectedResult = folder.getAbsolutePath()+ File.separatorChar+"test-2-war-sources-1.1-SNAPSHOT"; assertTrue(expectedResult.equalsIgnoreCase(name.getAbsolutePath())); name = DependencyUtil.getFormattedOutputDirectory(true,true,folder,(Artifact)artifacts.get(1)); expectedResult = folder.getAbsolutePath()+ File.separatorChar+"wars"+File.separatorChar+"test-2-war-sources-1.1-SNAPSHOT"; assertTrue(expectedResult.equalsIgnoreCase(name.getAbsolutePath())); }
|
57869 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57869/1b93eff87014f080f647d88423cf198b2fb89c5d/TestDependencyUtil.java/buggy/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2853,
461,
22,
1435,
1216,
18780,
565,
288,
1377,
1387,
3009,
273,
394,
1387,
2932,
3299,
19,
69,
8863,
1377,
1387,
508,
273,
11993,
1304,
18,
588,
18298,
1447,
2853,
12,
5743,
16,
5743,
16,
5609,
16,
12,
7581,
13,
30347,
18,
588,
12,
21,
10019,
1377,
368,
1612,
353,
326,
1967,
18,
1377,
1815,
8867,
12,
5609,
16,
529,
1769,
5411,
508,
273,
11993,
1304,
18,
588,
18298,
1447,
2853,
12,
3767,
16,
5743,
16,
5609,
16,
12,
7581,
13,
30347,
18,
588,
12,
21,
10019,
1377,
514,
2665,
1253,
273,
3009,
18,
588,
10368,
743,
1435,
15,
1387,
18,
11287,
2156,
9078,
905,
87,
14432,
1377,
1815,
5510,
12,
3825,
1253,
18,
14963,
5556,
12,
529,
18,
588,
10368,
743,
1435,
10019,
5411,
508,
273,
11993,
1304,
18,
588,
18298,
1447,
2853,
12,
5743,
16,
3767,
16,
5609,
16,
12,
7581,
13,
30347,
18,
588,
12,
21,
10019,
1377,
2665,
1253,
273,
3009,
18,
588,
10368,
743,
1435,
15,
1387,
18,
11287,
2156,
9078,
3813,
17,
22,
17,
905,
17,
10141,
17,
21,
18,
21,
17,
13653,
31667,
14432,
1377,
1815,
5510,
12,
3825,
1253,
18,
14963,
5556,
12,
529,
18,
588,
10368,
743,
1435,
10019,
5411,
508,
273,
11993,
1304,
18,
588,
18298,
1447,
2853,
12,
3767,
16,
3767,
16,
5609,
16,
12,
7581,
13,
30347,
18,
588,
12,
21,
10019,
1377,
2665,
1253,
273,
3009,
18,
588,
10368,
743,
1435,
15,
1387,
18,
11287,
2156,
9078,
905,
87,
6,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2853,
461,
22,
1435,
1216,
18780,
565,
288,
1377,
1387,
3009,
273,
394,
1387,
2932,
3299,
19,
69,
8863,
1377,
1387,
508,
273,
11993,
1304,
18,
588,
18298,
1447,
2853,
12,
5743,
16,
5743,
16,
5609,
16,
12,
7581,
13,
30347,
18,
588,
12,
21,
10019,
1377,
368,
1612,
353,
326,
1967,
18,
1377,
1815,
8867,
12,
5609,
16,
529,
1769,
5411,
508,
273,
11993,
1304,
18,
588,
18298,
1447,
2853,
12,
3767,
16,
5743,
16,
5609,
16,
12,
7581,
13,
30347,
18,
588,
12,
21,
10019,
1377,
514,
2665,
1253,
273,
3009,
18,
588,
10368,
743,
1435,
15,
1387,
18,
11287,
2156,
9078,
905,
87,
14432,
1377,
1815,
5510,
12,
3825,
1253,
18,
14963,
2
] |
public void mT65() throws RecognitionException { try { ruleNestingLevel++; int _type = T65; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: ( 'matches' ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: 'matches' { match("matches"); if (failed) return ; } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
9222,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
399,
9222,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,
509,
389,
1369,
273,
9851,
5621,
5411,
509,
389,
3001,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
389,
4327,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
6334,
30,
27,
30,
261,
296,
8436,
11,
262,
5411,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
6334,
30,
27,
30,
296,
8436,
11,
5411,
288,
5411,
845,
2932,
8436,
8863,
309,
261,
7307,
13,
327,
274,
5411,
289,
5411,
309,
261,
6888,
631,
20,
262,
288,
8227,
309,
261,
1147,
631,
2011,
597,
1720,
50,
10100,
2355,
631,
21,
262,
288,
12900,
3626,
24899,
723,
16,
67,
1369,
16,
67,
3001,
2555,
16,
67,
4327,
16,
67,
1937,
16,
588,
2156,
1016,
1435,
17,
21,
1769,
8227,
289,
21394,
289,
565,
289,
3639,
3095,
288,
5411,
1720,
50,
10100,
2355,
413,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
9222,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
399,
9222,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,
509,
389,
1369,
273,
9851,
5621,
5411,
509,
389,
3001,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
389,
4327,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
6334,
30,
27,
30,
261,
296,
8436,
11,
262,
5411,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
2
] |
||
} if (fnCurrent != null && fnCurrent.fnode.getCheckThis()) { cfw.addALoad(thisObjLocal); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); cfw.addAStore(thisObjLocal);
|
private void generatePrologue() { if (inDirectCallFunction) { int directParameterCount = scriptOrFn.getParamCount(); // 0 is reserved for function Object 'this' // 1 is reserved for context // 2 is reserved for parentScope // 3 is reserved for script 'this' if (firstFreeLocal != 4) Kit.codeBug(); for (int i = 0; i != directParameterCount; ++i) { OptLocalVariable lVar = fnCurrent.getVar(i); lVar.assignJRegister(firstFreeLocal); // 3 is 1 for Object parm and 2 for double parm firstFreeLocal += 3; } if (!fnCurrent.getParameterNumberContext()) { // make sure that all parameters are objects itsForcedObjectParameters = true; for (int i = 0; i != directParameterCount; ++i) { OptLocalVariable lVar = fnCurrent.getVar(i); short reg = lVar.getJRegister(); cfw.addALoad(reg); cfw.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isObjectLabel = cfw.acquireLabel(); cfw.add(ByteCode.IF_ACMPNE, isObjectLabel); cfw.addDLoad(reg + 1); addDoubleWrap(); cfw.addAStore(reg); cfw.markLabel(isObjectLabel); } } } if (fnCurrent != null && !inDirectCallFunction && (!compilerEnv.isUseDynamicScope() || fnCurrent.fnode.getIgnoreDynamicScope())) { // Unless we're either in a direct call or using dynamic scope, // use the enclosing scope of the function as our variable object. cfw.addALoad(funObjLocal); cfw.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()Lorg/mozilla/javascript/Scriptable;"); cfw.addAStore(variableObjectLocal); } // reserve 'args[]' argsLocal = firstFreeLocal++; localsMax = firstFreeLocal; if (fnCurrent == null) { // See comments in visitRegexp if (scriptOrFn.getRegexpCount() != 0) { scriptRegexpLocal = getNewWordLocal(); codegen.pushRegExpArray(cfw, scriptOrFn, contextLocal, variableObjectLocal); cfw.addAStore(scriptRegexpLocal); } } if (fnCurrent != null && fnCurrent.fnode.getCheckThis()) { // Nested functions must check their 'this' value to // insure it is not an activation object: // see 10.1.6 Activation Object cfw.addALoad(thisObjLocal); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); cfw.addAStore(thisObjLocal); } if (hasVarsInRegs) { // No need to create activation. Pad arguments if need be. int parmCount = scriptOrFn.getParamCount(); if (parmCount > 0 && !inDirectCallFunction) { // Set up args array // check length of arguments, pad if need be cfw.addALoad(argsLocal); cfw.add(ByteCode.ARRAYLENGTH); cfw.addPush(parmCount); int label = cfw.acquireLabel(); cfw.add(ByteCode.IF_ICMPGE, label); cfw.addALoad(argsLocal); cfw.addPush(parmCount); addScriptRuntimeInvoke("padArguments", "([Ljava/lang/Object;I" +")[Ljava/lang/Object;"); cfw.addAStore(argsLocal); cfw.markLabel(label); } int paramCount = fnCurrent.fnode.getParamCount(); int varCount = fnCurrent.fnode.getParamAndVarCount(); // REMIND - only need to initialize the vars that don't get a value // before the next call and are used in the function short firstUndefVar = -1; for (int i = 0; i != varCount; ++i) { OptLocalVariable lVar = fnCurrent.getVar(i); short reg = -1; if (i < paramCount) { if (!inDirectCallFunction) { reg = getNewWordLocal(); cfw.addALoad(argsLocal); cfw.addPush(i); cfw.add(ByteCode.AALOAD); cfw.addAStore(reg); } } else if (lVar.isNumber()) { reg = getNewWordPairLocal(); cfw.addPush(0.0); cfw.addDStore(reg); } else { reg = getNewWordLocal(); if (firstUndefVar == -1) { Codegen.pushUndefined(cfw); firstUndefVar = reg; } else { cfw.addALoad(firstUndefVar); } cfw.addAStore(reg); } if (reg >= 0) { lVar.assignJRegister(reg); } // Add debug table enry if we're generating debug info if (compilerEnv.isGenerateDebugInfo()) { String name = fnCurrent.fnode.getParamOrVarName(i); String type = lVar.isNumber() ? "D" : "Ljava/lang/Object;"; int startPC = cfw.getCurrentCodeOffset(); if (reg < 0) { reg = lVar.getJRegister(); } cfw.addVariableDescriptor(name, type, startPC, reg); } } // Skip creating activation object. return; } String debugVariableName; if (fnCurrent != null) { debugVariableName = "activation"; cfw.addALoad(contextLocal); cfw.addALoad(variableObjectLocal); cfw.addALoad(funObjLocal); cfw.addALoad(thisObjLocal); cfw.addALoad(argsLocal); addScriptRuntimeInvoke("enterActivationFunction", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); cfw.addAStore(variableObjectLocal); } else { debugVariableName = "global"; cfw.addALoad(funObjLocal); cfw.addALoad(thisObjLocal); cfw.addALoad(contextLocal); cfw.addALoad(variableObjectLocal); cfw.addPush(0); // false to indicate it is not eval script addScriptRuntimeInvoke("initScript", "(Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Z" +")V"); } enterAreaStartLabel = cfw.acquireLabel(); epilogueLabel = cfw.acquireLabel(); cfw.markLabel(enterAreaStartLabel); int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; i++) { OptFunctionNode ofn = OptFunctionNode.get(scriptOrFn, i); if (ofn.fnode.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(ofn, FunctionNode.FUNCTION_STATEMENT); } } // default is to generate debug info if (compilerEnv.isGenerateDebugInfo()) { cfw.addVariableDescriptor(debugVariableName, "Lorg/mozilla/javascript/Scriptable;", cfw.getCurrentCodeOffset(), variableObjectLocal); } if (fnCurrent == null) { // OPT: use dataflow to prove that this assignment is dead popvLocal = getNewWordLocal(); Codegen.pushUndefined(cfw); cfw.addAStore(popvLocal); int linenum = scriptOrFn.getEndLineno(); if (linenum != -1) cfw.addLineNumberEntry((short)linenum); } else { if (fnCurrent.itsContainsCalls0) { itsZeroArgArray = getNewWordLocal(); cfw.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); cfw.addAStore(itsZeroArgArray); } if (fnCurrent.itsContainsCalls1) { itsOneArgArray = getNewWordLocal(); cfw.addPush(1); cfw.add(ByteCode.ANEWARRAY, "java/lang/Object"); cfw.addAStore(itsOneArgArray); } } }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5f2437939f6f896226a7747c4614681db9d43aea/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
1435,
565,
288,
3639,
309,
261,
267,
5368,
1477,
2083,
13,
288,
5411,
509,
2657,
1662,
1380,
273,
2728,
1162,
5372,
18,
588,
786,
1380,
5621,
5411,
368,
374,
353,
8735,
364,
445,
1033,
296,
2211,
11,
5411,
368,
404,
353,
8735,
364,
819,
5411,
368,
576,
353,
8735,
364,
982,
3876,
5411,
368,
890,
353,
8735,
364,
2728,
296,
2211,
11,
5411,
309,
261,
3645,
9194,
2042,
480,
1059,
13,
1475,
305,
18,
710,
19865,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
480,
2657,
1662,
1380,
31,
965,
77,
13,
288,
7734,
12056,
2042,
3092,
328,
1537,
273,
2295,
3935,
18,
588,
1537,
12,
77,
1769,
7734,
328,
1537,
18,
6145,
46,
3996,
12,
3645,
9194,
2042,
1769,
7734,
368,
890,
353,
404,
364,
1033,
19924,
471,
576,
364,
1645,
19924,
7734,
1122,
9194,
2042,
1011,
890,
31,
5411,
289,
5411,
309,
16051,
4293,
3935,
18,
588,
1662,
1854,
1042,
10756,
288,
7734,
368,
1221,
3071,
716,
777,
1472,
854,
2184,
7734,
2097,
1290,
3263,
921,
2402,
273,
638,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
480,
2657,
1662,
1380,
31,
965,
77,
13,
288,
10792,
12056,
2042,
3092,
328,
1537,
273,
2295,
3935,
18,
588,
1537,
12,
77,
1769,
10792,
3025,
960,
273,
328,
1537,
18,
588,
46,
3996,
5621,
10792,
6080,
91,
18,
1289,
1013,
6189,
12,
1574,
1769,
10792,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
3264,
22741,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
1435,
565,
288,
3639,
309,
261,
267,
5368,
1477,
2083,
13,
288,
5411,
509,
2657,
1662,
1380,
273,
2728,
1162,
5372,
18,
588,
786,
1380,
5621,
5411,
368,
374,
353,
8735,
364,
445,
1033,
296,
2211,
11,
5411,
368,
404,
353,
8735,
364,
819,
5411,
368,
576,
353,
8735,
364,
982,
3876,
5411,
368,
890,
353,
8735,
364,
2728,
296,
2211,
11,
5411,
309,
261,
3645,
9194,
2042,
480,
1059,
13,
1475,
305,
18,
710,
19865,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
480,
2657,
1662,
1380,
31,
965,
77,
13,
288,
7734,
12056,
2042,
3092,
328,
1537,
273,
2295,
3935,
18,
588,
1537,
12,
77,
1769,
7734,
328,
2
] |
|
VM_Method meth) { if (VM.VerifyAssertions) VM._assert(ir.options.FIXED_JTOC);
|
VM_Method meth) {
|
private static void expandUnconditionalYieldpoint(OPT_Instruction s, OPT_IR ir, VM_Method meth) { if (VM.VerifyAssertions) VM._assert(ir.options.FIXED_JTOC); // split the basic block after the yieldpoint, create a new // block at the end of the IR to hold the yieldpoint, // remove the yieldpoint (to prepare to out it in the new block at the end) OPT_BasicBlock thisBlock = s.getBasicBlock(); OPT_BasicBlock nextBlock = thisBlock.splitNodeWithLinksAt(s,ir); OPT_BasicBlock yieldpoint = thisBlock.createSubBlock(s.bcIndex, ir); thisBlock.insertOut(yieldpoint); yieldpoint.insertOut(nextBlock); ir.cfg.addLastInCodeOrder(yieldpoint); s.remove(); // change thread switch instruction into call to thread switch routine // NOTE: must make s the call instruction: it is the GC point! // must also inform the GCMap that s has been moved!!! Offset offset = meth.getOffset(); OPT_LocationOperand loc = new OPT_LocationOperand(offset); OPT_Operand guard = TG(); OPT_Operand target = OPT_MemoryOperand.D(VM_Magic.getTocPointer().add(offset), (byte)4, loc, guard); MIR_Call.mutate0(s, CALL_SAVE_VOLATILE, null, null, target, OPT_MethodOperand.STATIC(meth)); yieldpoint.appendInstruction(s); ir.MIRInfo.gcIRMap.moveToEnd(s); yieldpoint.appendInstruction(MIR_Branch.create(IA32_JMP, nextBlock.makeJumpTarget())); // make a jump to yield block thisBlock.appendInstruction(MIR_Branch.create(IA32_JMP, yieldpoint.makeJumpTarget())); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/a30ff16103b9be2a48923f69bb6aa53c82715665/OPT_FinalMIRExpansion.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/ir/conversions/mir2mc/OPT_FinalMIRExpansion.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
4542,
984,
22019,
16348,
1153,
12,
15620,
67,
11983,
272,
16,
4766,
10792,
16456,
67,
7937,
9482,
16,
4766,
10792,
8251,
67,
1305,
7917,
13,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
481,
18,
2116,
18,
30406,
67,
46,
4296,
39,
1769,
565,
368,
1416,
326,
5337,
1203,
1839,
326,
2824,
1153,
16,
752,
279,
394,
565,
368,
1203,
622,
326,
679,
434,
326,
15908,
358,
6887,
326,
2824,
1153,
16,
565,
368,
1206,
326,
2824,
1153,
261,
869,
2911,
358,
596,
518,
316,
326,
394,
1203,
622,
326,
679,
13,
565,
16456,
67,
8252,
1768,
333,
1768,
273,
272,
18,
588,
8252,
1768,
5621,
565,
16456,
67,
8252,
1768,
1024,
1768,
273,
333,
1768,
18,
4939,
907,
1190,
7100,
861,
12,
87,
16,
481,
1769,
565,
16456,
67,
8252,
1768,
2824,
1153,
273,
333,
1768,
18,
2640,
1676,
1768,
12,
87,
18,
13459,
1016,
16,
9482,
1769,
565,
333,
1768,
18,
6387,
1182,
12,
23604,
1153,
1769,
565,
2824,
1153,
18,
6387,
1182,
12,
4285,
1768,
1769,
565,
9482,
18,
7066,
18,
1289,
3024,
382,
1085,
2448,
12,
23604,
1153,
1769,
565,
272,
18,
4479,
5621,
3639,
368,
2549,
2650,
1620,
7592,
1368,
745,
358,
2650,
1620,
12245,
565,
368,
5219,
30,
1297,
1221,
272,
326,
745,
7592,
30,
518,
353,
326,
15085,
1634,
5,
565,
368,
4202,
1297,
2546,
13235,
326,
15085,
863,
716,
272,
711,
2118,
10456,
25885,
565,
9874,
1384,
273,
7917,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
4542,
984,
22019,
16348,
1153,
12,
15620,
67,
11983,
272,
16,
4766,
10792,
16456,
67,
7937,
9482,
16,
4766,
10792,
8251,
67,
1305,
7917,
13,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
481,
18,
2116,
18,
30406,
67,
46,
4296,
39,
1769,
565,
368,
1416,
326,
5337,
1203,
1839,
326,
2824,
1153,
16,
752,
279,
394,
565,
368,
1203,
622,
326,
679,
434,
326,
15908,
358,
6887,
326,
2824,
1153,
16,
565,
368,
1206,
326,
2824,
1153,
261,
869,
2911,
358,
596,
518,
316,
326,
394,
1203,
622,
326,
679,
13,
565,
16456,
67,
8252,
1768,
333,
1768,
273,
272,
18,
588,
8252,
1768,
5621,
565,
16456,
67,
2
] |
public LazyItemIterator(ItemManager itemMgr, Collection ids) {
|
public LazyItemIterator(ItemManager itemMgr, Collection stateList) {
|
public LazyItemIterator(ItemManager itemMgr, Collection ids) { this.itemMgr = itemMgr; this.idList = new ArrayList(ids); // prefetch first item pos = 0; prefetchNext(); }
|
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/206660c09d3bf7815a84c9debbaa760eb284ce3d/LazyItemIterator.java/buggy/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/LazyItemIterator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12805,
1180,
3198,
12,
1180,
1318,
761,
9455,
16,
2200,
919,
682,
13,
288,
3639,
333,
18,
1726,
9455,
273,
761,
9455,
31,
3639,
333,
18,
350,
682,
273,
394,
2407,
12,
2232,
1769,
3639,
368,
17607,
1122,
761,
3639,
949,
273,
374,
31,
3639,
17607,
2134,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12805,
1180,
3198,
12,
1180,
1318,
761,
9455,
16,
2200,
919,
682,
13,
288,
3639,
333,
18,
1726,
9455,
273,
761,
9455,
31,
3639,
333,
18,
350,
682,
273,
394,
2407,
12,
2232,
1769,
3639,
368,
17607,
1122,
761,
3639,
949,
273,
374,
31,
3639,
17607,
2134,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
delayPanel.add(jDelay, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0
|
progressionPanel.add(jDelay, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0
|
private void jbInit() { Vector locationItems = new Vector(); locationItems.add(new LocationItem(0)); locationItems.add(new LocationItem(10 + SwingConstants.LEFT)); locationItems.add(new LocationItem(10 + SwingConstants.CENTER)); locationItems.add(new LocationItem(10 + SwingConstants.RIGHT)); locationItems.add(new LocationItem(20 + SwingConstants.LEFT)); locationItems.add(new LocationItem(20 + SwingConstants.CENTER)); locationItems.add(new LocationItem(20 + SwingConstants.RIGHT)); locationItems.add(new LocationItem(30 + SwingConstants.LEFT)); locationItems.add(new LocationItem(30 + SwingConstants.CENTER)); locationItems.add(new LocationItem(30 + SwingConstants.RIGHT)); jProgress = new JComboBox(locationItems); jCaption = new JComboBox(locationItems); jExtra = new JComboBox(locationItems); jUrl = new JComboBox(locationItems); setLayout(new GridBagLayout()); delayPanel.setLayout(new GridBagLayout()); delayPanel.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Delay for automatic slideshow")); locationPanel.setLayout(new GridBagLayout()); locationPanel.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Location of text info")); performancePanel.setLayout(new GridBagLayout()); performancePanel.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Performance")); delay.setText(GRI18n.getString(MODULE, "delay")); delay.setLabelFor(jDelay); delay.setToolTipText(GRI18n.getString(MODULE, "delayHelp")); delayHelp.setText(GRI18n.getString(MODULE, "delayDesc")); progress.setText(GRI18n.getString(MODULE, "progress")); progress.setLabelFor(jProgress); progress.setToolTipText(GRI18n.getString(MODULE, "progressHelp")); caption.setText(GRI18n.getString(MODULE, "caption")); caption.setLabelFor(jCaption); caption.setToolTipText(GRI18n.getString(MODULE, "captionHelp")); extra.setText(GRI18n.getString(MODULE, "extra")); extra.setLabelFor(jExtra); extra.setToolTipText(GRI18n.getString(MODULE, "extraHelp")); url.setText(GRI18n.getString(MODULE, "url")); url.setLabelFor(jUrl); url.setToolTipText(GRI18n.getString(MODULE, "urlHelp")); jLowRez.setText(GRI18n.getString(MODULE, "lowRez")); jLowRez.setToolTipText(GRI18n.getString(MODULE, "lowRezHelp")); this.add(delayPanel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0)); this.add(locationPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0)); this.add(performancePanel, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0)); this.add(spacerPanel, new GridBagConstraints(0, 3, 1, 1, 1.0, 1.0 ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); delayPanel.add(delay, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0)); delayPanel.add(jDelay, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); delayPanel.add(delayHelp, new GridBagConstraints(0, 1, 2, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); performancePanel.add(jLowRez, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); performancePanel.add(spacerPanel1, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); locationPanel.add(progress, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0)); locationPanel.add(jProgress, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); locationPanel.add(caption, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0)); locationPanel.add(jCaption, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); locationPanel.add(extra, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0)); locationPanel.add(url, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0)); locationPanel.add(jExtra, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); locationPanel.add(jUrl, new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); }
|
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/988d2a6fdf9df61ec792a6e6c9fd75204983058d/SlideshowPanel.java/buggy/gallery_remote/com/gallery/GalleryRemote/prefs/SlideshowPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
20515,
2570,
1435,
288,
202,
202,
5018,
2117,
3126,
273,
394,
5589,
5621,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
20,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
2163,
397,
26145,
2918,
18,
10066,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
2163,
397,
26145,
2918,
18,
19835,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
2163,
397,
26145,
2918,
18,
11847,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
3462,
397,
26145,
2918,
18,
10066,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
3462,
397,
26145,
2918,
18,
19835,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
3462,
397,
26145,
2918,
18,
11847,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
5082,
397,
26145,
2918,
18,
10066,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
5082,
397,
26145,
2918,
18,
19835,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
5082,
397,
26145,
2918,
18,
11847,
10019,
202,
202,
78,
5491,
273,
394,
804,
22199,
12,
3562,
3126,
1769,
202,
202,
78,
21158,
273,
394,
804,
22199,
12,
3562,
3126,
1769,
202,
202,
78,
7800,
273,
394,
804,
22199,
12,
3562,
3126,
1769,
202,
202,
78,
1489,
273,
394,
804,
22199,
12,
3562,
3126,
1769,
202,
202,
542,
3744,
12,
2704,
7145,
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,
20515,
2570,
1435,
288,
202,
202,
5018,
2117,
3126,
273,
394,
5589,
5621,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
20,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
2163,
397,
26145,
2918,
18,
10066,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
2163,
397,
26145,
2918,
18,
19835,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
2163,
397,
26145,
2918,
18,
11847,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
3462,
397,
26145,
2918,
18,
10066,
10019,
202,
202,
3562,
3126,
18,
1289,
12,
2704,
7050,
1180,
12,
3462,
397,
26145,
2918,
18,
19835,
2
] |
_t = __t190;
|
_t = __t192;
|
public final Expression constructor(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST constructor_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST qn = null; org.exist.xquery.parser.XQueryAST prefix = null; org.exist.xquery.parser.XQueryAST uri = null; org.exist.xquery.parser.XQueryAST attr = null; org.exist.xquery.parser.XQueryAST pid = null; org.exist.xquery.parser.XQueryAST e = null; org.exist.xquery.parser.XQueryAST attrName = null; org.exist.xquery.parser.XQueryAST attrVal = null; org.exist.xquery.parser.XQueryAST pcdata = null; org.exist.xquery.parser.XQueryAST t = null; org.exist.xquery.parser.XQueryAST tc = null; org.exist.xquery.parser.XQueryAST d = null; org.exist.xquery.parser.XQueryAST cdata = null; org.exist.xquery.parser.XQueryAST p = null; org.exist.xquery.parser.XQueryAST cdataSect = null; org.exist.xquery.parser.XQueryAST l = null; step= null; PathExpr elementContent= null; Expression contentExpr= null; Expression qnameExpr = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMP_ELEM_CONSTRUCTOR: { AST __t182 = _t; qn = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_ELEM_CONSTRUCTOR); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context); c.setASTNode(qn); step= c; SequenceConstructor construct = new SequenceConstructor(context); EnclosedExpr enclosed = new EnclosedExpr(context); enclosed.addPath(construct); c.setContent(enclosed); PathExpr qnamePathExpr = new PathExpr(context); c.setNameExpr(qnamePathExpr); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; { _loop185: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMP_NS_CONSTRUCTOR: { AST __t184 = _t; prefix = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_NS_CONSTRUCTOR); _t = _t.getFirstChild(); uri = (org.exist.xquery.parser.XQueryAST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); _t = __t184; _t = _t.getNextSibling(); c.addNamespaceDecl(prefix.getText(), uri.getText()); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { elementContent = new PathExpr(context); contentExpr=expr(_t,elementContent); _t = _retTree; construct.addPath(elementContent); break; } default: { break _loop185; } } } while (true); } _t = __t182; _t = _t.getNextSibling(); break; } case COMP_ATTR_CONSTRUCTOR: { AST __t186 = _t; attr = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_ATTR_CONSTRUCTOR); _t = _t.getFirstChild(); DynamicAttributeConstructor a= new DynamicAttributeConstructor(context); a.setASTNode(attr); step = a; PathExpr qnamePathExpr = new PathExpr(context); a.setNameExpr(qnamePathExpr); elementContent = new PathExpr(context); a.setContentExpr(elementContent); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t186; _t = _t.getNextSibling(); break; } case COMP_PI_CONSTRUCTOR: { AST __t187 = _t; pid = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_PI_CONSTRUCTOR); _t = _t.getFirstChild(); DynamicPIConstructor pd= new DynamicPIConstructor(context); pd.setASTNode(pid); step = pd; PathExpr qnamePathExpr = new PathExpr(context); pd.setNameExpr(qnamePathExpr); elementContent = new PathExpr(context); pd.setContentExpr(elementContent); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t187; _t = _t.getNextSibling(); break; } case ELEMENT: { AST __t188 = _t; e = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,ELEMENT); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context, e.getText()); c.setASTNode(e); step= c; { _loop194: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ATTRIBUTE)) { AST __t190 = _t; attrName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE); _t = _t.getFirstChild(); AttributeConstructor attrib= new AttributeConstructor(context, attrName.getText()); attrib.setASTNode(attrName); { int _cnt193=0; _loop193: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRIBUTE_CONTENT: { attrVal = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE_CONTENT); _t = _t.getNextSibling(); attrib.addValue(attrVal.getText()); break; } case LCURLY: { AST __t192 = _t; org.exist.xquery.parser.XQueryAST tmp80_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); PathExpr enclosed= new PathExpr(context); expr(_t,enclosed); _t = _retTree; attrib.addEnclosedExpr(enclosed); _t = __t192; _t = _t.getNextSibling(); break; } default: { if ( _cnt193>=1 ) { break _loop193; } else {throw new NoViableAltException(_t);} } } _cnt193++; } while (true); } c.addAttribute(attrib); _t = __t190; _t = _t.getNextSibling(); } else { break _loop194; } } while (true); } { _loop196: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_1.member(_t.getType()))) { if (elementContent == null) { elementContent= new PathExpr(context); c.setContent(elementContent); } contentExpr=constructor(_t,elementContent); _t = _retTree; elementContent.add(contentExpr); } else { break _loop196; } } while (true); } _t = __t188; _t = _t.getNextSibling(); break; } case TEXT: { AST __t197 = _t; pcdata = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,TEXT); _t = _t.getFirstChild(); TextConstructor text= new TextConstructor(context, pcdata.getText()); text.setASTNode(pcdata); step= text; _t = __t197; _t = _t.getNextSibling(); break; } case COMP_TEXT_CONSTRUCTOR: { AST __t198 = _t; t = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_TEXT_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DynamicTextConstructor text = new DynamicTextConstructor(context, elementContent); text.setASTNode(t); step= text; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t198; _t = _t.getNextSibling(); break; } case COMP_COMMENT_CONSTRUCTOR: { AST __t199 = _t; tc = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_COMMENT_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DynamicCommentConstructor comment = new DynamicCommentConstructor(context, elementContent); comment.setASTNode(t); step= comment; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t199; _t = _t.getNextSibling(); break; } case COMP_DOC_CONSTRUCTOR: { AST __t200 = _t; d = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_DOC_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DocumentConstructor doc = new DocumentConstructor(context, elementContent); doc.setASTNode(d); step= doc; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t200; _t = _t.getNextSibling(); break; } case XML_COMMENT: { AST __t201 = _t; cdata = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_COMMENT); _t = _t.getFirstChild(); CommentConstructor comment= new CommentConstructor(context, cdata.getText()); comment.setASTNode(cdata); step= comment; _t = __t201; _t = _t.getNextSibling(); break; } case XML_PI: { AST __t202 = _t; p = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_PI); _t = _t.getFirstChild(); PIConstructor pi= new PIConstructor(context, p.getText()); pi.setASTNode(p); step= pi; _t = __t202; _t = _t.getNextSibling(); break; } case XML_CDATA: { AST __t203 = _t; cdataSect = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_CDATA); _t = _t.getFirstChild(); CDATAConstructor cd = new CDATAConstructor(context, cdataSect.getText()); cd.setASTNode(cdataSect); step= cd; _t = __t203; _t = _t.getNextSibling(); break; } case LCURLY: { AST __t204 = _t; l = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); EnclosedExpr subexpr= new EnclosedExpr(context); subexpr.setASTNode(l); step=expr(_t,subexpr); _t = _retTree; step= subexpr; _t = __t204; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3885,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
3885,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
67,
88,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1633,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
2003,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1604,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
4231,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
425,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
11583,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1604,
3053,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
6125,
892,
273,
446,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3885,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
3885,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
67,
88,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1633,
273,
446,
2
] |
result = checkForFirstLevelDirective( className, lines, line, trimmedLine );
|
result = processSingleLine( className, lines, line, trimmedLine );
|
private boolean processIfVariations(boolean conditionFulfilled, StringList lines, String className ) throws PreprocessException { this.ifDirectiveCount++; int currentIfDirectiveCount = this.ifDirectiveCount; boolean endifFound = false; boolean elseFound = false; int commandStartLine = lines.getCurrentIndex(); boolean processed = false; while (lines.next()) { String line = lines.getCurrent(); String trimmedLine = line.trim(); int result = NOT_CHANGED; if (conditionFulfilled) { result = checkForFirstLevelDirective( className, lines, line, trimmedLine ); } if (result == CHANGED ) { processed = true; } else if ( result == DIRECTIVE_FOUND ) { // another directive was found and processed, but no changes were made } else if ( trimmedLine.startsWith("//#ifdef ") ) { // we are currently in a branch which is not true (conditionFulfilled == false) this.ifDirectiveCount++; } else if ( trimmedLine.startsWith("//#if ") ) { // we are currently in a branch which is not true (conditionFulfilled == false) this.ifDirectiveCount++; } else if (trimmedLine.startsWith("//#else") && (this.ifDirectiveCount == currentIfDirectiveCount)) { conditionFulfilled = !conditionFulfilled; elseFound = true; } else if ( trimmedLine.startsWith("//#elifdef") && (this.ifDirectiveCount == currentIfDirectiveCount)) { if (elseFound) { throw new PreprocessException( className + " line " + (lines.getCurrentIndex() +1) + ": found directive #elifdef after #else branch."); } String symbol = line.substring( 10 ).trim(); conditionFulfilled = (this.symbols.get( symbol ) != null); } else if (trimmedLine.startsWith("//#elifndef") && (this.ifDirectiveCount == currentIfDirectiveCount)) { if (elseFound) { throw new PreprocessException( className + " line " + (lines.getCurrentIndex() +1) + ": found directive #elifndef after #else branch."); } String symbol = line.substring( 11 ).trim(); conditionFulfilled = (this.symbols.get( symbol ) == null); } else if (trimmedLine.startsWith("//#elif") && (this.ifDirectiveCount == currentIfDirectiveCount)) { if (elseFound) { throw new PreprocessException( className + " line " + (lines.getCurrentIndex() +1) + ": found directive #elifndef after #else branch."); } String argument = line.substring( 8 ).trim(); conditionFulfilled = checkIfCondition( argument, className, lines ); } else if (trimmedLine.startsWith("//#endif")) { if (this.ifDirectiveCount == currentIfDirectiveCount ) { endifFound = true; break; } else { this.ifDirectiveCount--; } } else { // this line has to be either commented out or to be uncommented: boolean changed = false; if (conditionFulfilled) { changed = uncommentLine( line, lines ); } else { changed = commentLine( line, trimmedLine, lines ); } if (changed) { processed = true; } } } // loop until endif is found if (!endifFound) { throw new PreprocessException(className + " line " + (commandStartLine +1) +": #ifdef is not terminated with #endif!" ); } this.ifDirectiveCount--; return processed; }
|
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/b98582133d39715f73c21e895c11c91b947002f0/Preprocessor.java/buggy/build/source/src/de/enough/polish/preprocess/Preprocessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1207,
2047,
4205,
1012,
12,
6494,
2269,
23747,
13968,
16,
514,
682,
2362,
16,
514,
2658,
262,
202,
15069,
2962,
2567,
503,
202,
95,
202,
202,
2211,
18,
430,
13307,
1380,
9904,
31,
202,
202,
474,
783,
2047,
13307,
1380,
273,
333,
18,
430,
13307,
1380,
31,
202,
202,
6494,
28334,
2043,
273,
629,
31,
202,
202,
6494,
469,
2043,
273,
629,
31,
202,
202,
474,
1296,
1685,
1670,
273,
2362,
18,
588,
3935,
1016,
5621,
202,
202,
6494,
5204,
273,
629,
31,
202,
202,
17523,
261,
3548,
18,
4285,
10756,
288,
1082,
202,
780,
980,
273,
2362,
18,
588,
3935,
5621,
1082,
202,
780,
12350,
1670,
273,
980,
18,
5290,
5621,
1082,
202,
474,
563,
273,
4269,
67,
24435,
31,
1875,
202,
430,
261,
4175,
23747,
13968,
13,
288,
9506,
202,
2088,
273,
13855,
3759,
2355,
13307,
12,
2658,
16,
2362,
16,
980,
16,
12350,
1670,
11272,
1082,
202,
97,
1082,
202,
430,
261,
2088,
422,
6469,
21095,
262,
288,
9506,
202,
11005,
273,
638,
31,
1082,
202,
97,
469,
309,
261,
563,
422,
29100,
5354,
67,
9294,
262,
288,
9506,
202,
759,
4042,
8655,
1703,
1392,
471,
5204,
16,
1496,
1158,
3478,
4591,
7165,
1082,
202,
97,
469,
309,
261,
12350,
1670,
18,
17514,
1190,
2932,
759,
7,
430,
536,
9369,
262,
288,
9506,
202,
759,
732,
854,
4551,
316,
279,
3803,
1492,
353,
486,
638,
261,
4175,
23747,
13968,
422,
629,
13,
9506,
202,
2211,
18,
430,
13307,
1380,
9904,
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,
1250,
1207,
2047,
4205,
1012,
12,
6494,
2269,
23747,
13968,
16,
514,
682,
2362,
16,
514,
2658,
262,
202,
15069,
2962,
2567,
503,
202,
95,
202,
202,
2211,
18,
430,
13307,
1380,
9904,
31,
202,
202,
474,
783,
2047,
13307,
1380,
273,
333,
18,
430,
13307,
1380,
31,
202,
202,
6494,
28334,
2043,
273,
629,
31,
202,
202,
6494,
469,
2043,
273,
629,
31,
202,
202,
474,
1296,
1685,
1670,
273,
2362,
18,
588,
3935,
1016,
5621,
202,
202,
6494,
5204,
273,
629,
31,
202,
202,
17523,
261,
3548,
18,
4285,
10756,
288,
1082,
202,
780,
980,
273,
2362,
18,
588,
3935,
5621,
1082,
202,
780,
12350,
1670,
273,
980,
18,
5290,
5621,
1082,
202,
474,
2
] |
public static Object exec(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return execSub(cx, thisObj, args, funObj, MATCH, funObj);
|
private Object exec(Context cx, Scriptable scopeObj, Object[] args) { return execSub(cx, scopeObj, args, MATCH);
|
public static Object exec(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return execSub(cx, thisObj, args, funObj, MATCH, funObj); }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/8b34980fb3adc3beae5bcea5913d426dc2e366c8/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1196,
12,
1042,
9494,
16,
22780,
15261,
16,
17311,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
288,
3639,
327,
1196,
1676,
12,
71,
92,
16,
15261,
16,
833,
16,
9831,
2675,
16,
16585,
16,
9831,
2675,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1196,
12,
1042,
9494,
16,
22780,
15261,
16,
17311,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
288,
3639,
327,
1196,
1676,
12,
71,
92,
16,
15261,
16,
833,
16,
9831,
2675,
16,
16585,
16,
9831,
2675,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case (int) (UnhandledWarningToken >>> 32) : return "warningToken";
|
public static String warningTokenFromIrritant(long irritant) { int irritantInt = (int) irritant; if (irritantInt == irritant) { switch (irritantInt) { case (int) MethodWithConstructorName : return "constructorName"; //$NON-NLS-1$ case (int) OverriddenPackageDefaultMethod : return "pkgDefaultMethod"; //$NON-NLS-1$ case (int) UsingDeprecatedAPI : return "deprecation"; //$NON-NLS-1$ case (int) MaskedCatchBlock : return "maskedCatchBlock"; //$NON-NLS-1$ case (int) UnusedLocalVariable : return "unusedLocal"; //$NON-NLS-1$ case (int) UnusedArgument : return "unusedArgument"; //$NON-NLS-1$ case (int) NoImplicitStringConversion : return "charConcat"; //$NON-NLS-1$ case (int) AccessEmulation : return "syntheticAccess"; //$NON-NLS-1$ case (int) NonExternalizedString : return "nls"; //$NON-NLS-1$ case (int) UnusedImport : return "unusedImport"; //$NON-NLS-1$ case (int) NonStaticAccessToStatic : return "staticReceiver"; //$NON-NLS-1$ case (int) NoEffectAssignment : return "noEffectAssign"; //$NON-NLS-1$ case (int) IncompatibleNonInheritedInterfaceMethod : return "intfNonInherited"; //$NON-NLS-1$ case (int) UnusedPrivateMember : return "unusedPrivate"; //$NON-NLS-1$ case (int) LocalVariableHiding : return "localHiding"; //$NON-NLS-1$ case (int) FieldHiding : return "fieldHiding"; //$NON-NLS-1$ case (int) AccidentalBooleanAssign : return "conditionAssign"; //$NON-NLS-1$ case (int) EmptyStatement : return "semicolon"; //$NON-NLS-1$ case (int) MissingJavadocComments : case (int) MissingJavadocTags : case (int) InvalidJavadoc : case (int) (MissingJavadocComments | MissingJavadocTags | InvalidJavadoc): return "javadoc"; //$NON-NLS-1$ case (int) UnqualifiedFieldAccess : return "unqualifiedField"; //$NON-NLS-1$ case (int) UnusedDeclaredThrownException : return "unusedThrown"; //$NON-NLS-1$ case (int) FinallyBlockNotCompleting : return "finally"; //$NON-NLS-1$ case (int) UnnecessaryTypeCheck : return "uselessTypeCheck"; //$NON-NLS-1$ case (int) UndocumentedEmptyBlock : return "emptyBlock"; //$NON-NLS-1$ case (int) IndirectStaticAccess : return "indirectStatic"; //$NON-NLS-1$ case (int) UnnecessaryElse : return "unnecessaryElse"; //$NON-NLS-1$ case (int) UncheckedTypeOperation : return "unchecked"; //$NON-NLS-1$ } } else { irritantInt = (int)(irritant >>> 32); switch (irritantInt) { case (int) (FinalParameterBound >>> 32) : return "finalBound"; //$NON-NLS-1$ case (int) (MissingSerialVersion >>> 32) : return "serial"; //$NON-NLS-1$ case (int) (EnumUsedAsAnIdentifier >>> 32) : return "enumIdentifier"; //$NON-NLS-1$ case (int) (ForbiddenReference >>> 32) : case (int) (DiscouragedReference >>> 32) : case (int) ((ForbiddenReference | DiscouragedReference) >>> 32) : return "restricted"; //$NON-NLS-1$ case (int) (VarargsArgumentNeedCast >>> 32) : return "varargs"; //$NON-NLS-1$ case (int) (NullReference >>> 32) : return "null"; //$NON-NLS-1$ case (int) (Autoboxing >>> 32) : return "boxing"; //$NON-NLS-1$ case (int) (AnnotationSuperInterface >>> 32) : return "intfAnnotation"; //$NON-NLS-1$ case (int) (TypeParameterHiding >>> 32) : return "typeHiding"; //$NON-NLS-1$ case (int) (MissingOverrideAnnotation >>> 32) : return "over-ann"; //$NON-NLS-1$ case (int) (IncompleteEnumSwitch >>> 32) : return "enumSwitch"; //$NON-NLS-1$ case (int) (MissingDeprecatedAnnotation >>> 32) : return "dep-ann"; //$NON-NLS-1$ case (int) (UnhandledWarningToken >>> 32) : return "warningToken"; //$NON-NLS-1$ } } return null; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/11f5a7cc7c9c65b20b52b279ac1ac913311b9b45/CompilerOptions.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
3436,
1345,
1265,
45,
523,
305,
970,
12,
5748,
277,
523,
305,
970,
13,
288,
202,
202,
474,
277,
523,
305,
970,
1702,
273,
261,
474,
13,
277,
523,
305,
970,
31,
202,
202,
430,
261,
481,
583,
970,
1702,
422,
277,
523,
305,
970,
13,
288,
1082,
202,
9610,
261,
481,
583,
970,
1702,
13,
288,
9506,
202,
3593,
261,
474,
13,
2985,
1190,
6293,
461,
294,
6862,
202,
2463,
315,
12316,
461,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
474,
13,
531,
1107,
2794,
2261,
1868,
1305,
294,
6862,
202,
2463,
315,
10657,
1868,
1305,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
474,
13,
11637,
13534,
2557,
294,
6862,
202,
2463,
315,
29263,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
474,
13,
16698,
329,
14842,
1768,
294,
6862,
202,
2463,
315,
23455,
14842,
1768,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
474,
13,
1351,
3668,
2042,
3092,
294,
6862,
202,
2463,
315,
14375,
2042,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
474,
13,
1351,
3668,
1379,
294,
6862,
202,
2463,
315,
14375,
1379,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
474,
13,
2631,
15787,
780,
6814,
294,
6862,
202,
2463,
315,
3001,
15113,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
474,
13,
5016,
1514,
6234,
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,
514,
3436,
1345,
1265,
45,
523,
305,
970,
12,
5748,
277,
523,
305,
970,
13,
288,
202,
202,
474,
277,
523,
305,
970,
1702,
273,
261,
474,
13,
277,
523,
305,
970,
31,
202,
202,
430,
261,
481,
583,
970,
1702,
422,
277,
523,
305,
970,
13,
288,
1082,
202,
9610,
261,
481,
583,
970,
1702,
13,
288,
9506,
202,
3593,
261,
474,
13,
2985,
1190,
6293,
461,
294,
6862,
202,
2463,
315,
12316,
461,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
474,
13,
531,
1107,
2794,
2261,
1868,
1305,
294,
6862,
202,
2463,
315,
10657,
1868,
1305,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3593,
261,
2
] |
|
view = PackageExplorerPart.getFromActivePerspective();
|
view = PackageExplorerPart.openInActivePerspective();
|
protected void setUp() throws Exception { super.setUp(); page = Workbench.getInstance().getActiveWorkbenchWindow().getActivePage(); assertNotNull(page); view = PackageExplorerPart.getFromActivePerspective(); assertNotNull(view); MylarUiPlugin.getDefault().getEditorManager().setAsyncExecMode(false); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/87f81c5d77af7eab4ec872f31899c7cdf4e9d23c/EditorManagementTest.java/clean/org.eclipse.mylyn.java.tests/src/org/eclipse/mylyn/java/tests/EditorManagementTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
1082,
202,
2433,
273,
4147,
22144,
18,
588,
1442,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
5621,
202,
202,
11231,
5962,
12,
2433,
1769,
202,
202,
1945,
273,
7508,
20938,
1988,
18,
588,
1265,
3896,
14781,
16772,
5621,
202,
202,
11231,
5962,
12,
1945,
1769,
202,
202,
12062,
7901,
13943,
3773,
18,
588,
1868,
7675,
588,
6946,
1318,
7675,
542,
2771,
1905,
2309,
12,
5743,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
1082,
202,
2433,
273,
4147,
22144,
18,
588,
1442,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
5621,
202,
202,
11231,
5962,
12,
2433,
1769,
202,
202,
1945,
273,
7508,
20938,
1988,
18,
588,
1265,
3896,
14781,
16772,
5621,
202,
202,
11231,
5962,
12,
1945,
1769,
202,
202,
12062,
7901,
13943,
3773,
18,
588,
1868,
7675,
588,
6946,
1318,
7675,
542,
2771,
1905,
2309,
12,
5743,
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
] |
for (int i=0; i<names.length; i++) {
|
for (int i = 0; i < names.length; i++) {
|
protected void buildMap(File fromDir, File toDir, String[] names, FileNameMapper mapper, Hashtable map) { String[] toCopy = null; if (forceOverwrite) { Vector v = new Vector(); for (int i=0; i<names.length; i++) { if (mapper.mapFileName(names[i]) != null) { v.addElement(names[i]); } } toCopy = new String[v.size()]; v.copyInto(toCopy); } else { SourceFileScanner ds = new SourceFileScanner(this); toCopy = ds.restrict(names, fromDir, toDir, mapper); } for (int i = 0; i < toCopy.length; i++) { File src = new File(fromDir, toCopy[i]); File dest = new File(toDir, mapper.mapFileName(toCopy[i])[0]); map.put( src.getAbsolutePath(), dest.getAbsolutePath() ); } }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/0e1127c22ce00b23a65cbf90b3abf1cee81133ab/Copy.java/clean/src/main/org/apache/tools/ant/taskdefs/Copy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1361,
863,
12,
812,
628,
1621,
16,
1387,
358,
1621,
16,
514,
8526,
1257,
16,
18701,
25075,
4597,
5815,
16,
18559,
852,
13,
288,
3639,
514,
8526,
358,
2951,
273,
446,
31,
3639,
309,
261,
5734,
20832,
13,
288,
5411,
5589,
331,
273,
394,
5589,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1257,
18,
2469,
31,
277,
27245,
288,
7734,
309,
261,
13919,
18,
1458,
4771,
12,
1973,
63,
77,
5717,
480,
446,
13,
288,
10792,
331,
18,
1289,
1046,
12,
1973,
63,
77,
19226,
7734,
289,
5411,
289,
5411,
358,
2951,
273,
394,
514,
63,
90,
18,
1467,
1435,
15533,
5411,
331,
18,
3530,
5952,
12,
869,
2951,
1769,
3639,
289,
469,
288,
5411,
4998,
812,
11338,
3780,
273,
394,
4998,
812,
11338,
12,
2211,
1769,
5411,
358,
2951,
273,
3780,
18,
30604,
12,
1973,
16,
628,
1621,
16,
358,
1621,
16,
5815,
1769,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
358,
2951,
18,
2469,
31,
277,
27245,
288,
5411,
1387,
1705,
273,
394,
1387,
12,
2080,
1621,
16,
358,
2951,
63,
77,
19226,
5411,
1387,
1570,
273,
394,
1387,
12,
869,
1621,
16,
5815,
18,
1458,
4771,
12,
869,
2951,
63,
77,
5717,
63,
20,
19226,
5411,
852,
18,
458,
12,
1705,
18,
588,
10368,
743,
9334,
1570,
18,
588,
10368,
743,
1435,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1361,
863,
12,
812,
628,
1621,
16,
1387,
358,
1621,
16,
514,
8526,
1257,
16,
18701,
25075,
4597,
5815,
16,
18559,
852,
13,
288,
3639,
514,
8526,
358,
2951,
273,
446,
31,
3639,
309,
261,
5734,
20832,
13,
288,
5411,
5589,
331,
273,
394,
5589,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1257,
18,
2469,
31,
277,
27245,
288,
7734,
309,
261,
13919,
18,
1458,
4771,
12,
1973,
63,
77,
5717,
480,
446,
13,
288,
10792,
331,
18,
1289,
1046,
12,
1973,
63,
77,
19226,
7734,
289,
5411,
289,
5411,
358,
2951,
273,
394,
514,
63,
90,
18,
1467,
1435,
15533,
5411,
331,
18,
3530,
5952,
12,
869,
2951,
1769,
3639,
289,
2
] |
fEditor=editor; fSite=editor.getSite();
|
public SelectionParseAction( CEditor editor ) { super(); fEditor=editor; fSite=editor.getSite(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/55f4eca137780a666f5cfbdc8a1a4f86f2c19224/SelectionParseAction.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/SelectionParseAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12977,
3201,
1803,
12,
385,
6946,
4858,
262,
288,
202,
202,
9565,
5621,
202,
202,
74,
6946,
33,
9177,
31,
202,
202,
74,
4956,
33,
9177,
18,
588,
4956,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
12977,
3201,
1803,
12,
385,
6946,
4858,
262,
288,
202,
202,
9565,
5621,
202,
202,
74,
6946,
33,
9177,
31,
202,
202,
74,
4956,
33,
9177,
18,
588,
4956,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
imgStream.addDefaultFilters(); String dictEntries = imgStream.applyFilters(); String p = this.number + " " + this.generation + " obj\n"; p = p + "<</Type /XObject\n"; p = p + "/Subtype /Image\n"; p = p + "/Name /Im" + Xnum + "\n"; p = p + "/Length " + imgStream.getDataLength() + "\n"; p = p + "/Width " + fopimage.getWidth() + "\n"; p = p + "/Height " + fopimage.getHeight() + "\n"; p = p + "/BitsPerComponent " + fopimage.getBitsPerPixel() + "\n"; ColorSpace cs = fopimage.getColorSpace(); p = p + "/ColorSpace /" + cs.getColorSpacePDFString() + "\n"; if (fopimage.isTransparent()) { PDFColor transp = fopimage.getTransparentColor(); p = p + "/Mask [" + transp.red255() + " " + transp.red255() + " " + transp.green255() + " " + transp.green255() + " " + transp.blue255() + " " + transp.blue255() + "]\n"; } p = p + dictEntries; p = p + ">>\n"; fopimage.close(); byte[] pdfBytes = p.getBytes(); stream.write(pdfBytes); length += pdfBytes.length; length += imgStream.outputStreamData(stream); pdfBytes = ("endobj\n").getBytes(); stream.write(pdfBytes); length += pdfBytes.length;
|
protected int output(OutputStream stream) throws IOException { int length = 0; int i = 0; int x, y; try { // delegate the stream work to PDFStream PDFStream imgStream = new PDFStream(0); imgStream.setData(fopimage.getBitmaps()); /* * Added by Eric Dalquist * If the DCT filter hasn't been added to the object we add it here */ if (fopimage.getPDFFilter() != null) { imgStream.addFilter(fopimage.getPDFFilter()); } imgStream.addDefaultFilters(); String dictEntries = imgStream.applyFilters(); String p = this.number + " " + this.generation + " obj\n"; p = p + "<</Type /XObject\n"; p = p + "/Subtype /Image\n"; p = p + "/Name /Im" + Xnum + "\n"; p = p + "/Length " + imgStream.getDataLength() + "\n"; p = p + "/Width " + fopimage.getWidth() + "\n"; p = p + "/Height " + fopimage.getHeight() + "\n"; p = p + "/BitsPerComponent " + fopimage.getBitsPerPixel() + "\n"; ColorSpace cs = fopimage.getColorSpace(); p = p + "/ColorSpace /" + cs.getColorSpacePDFString() + "\n"; if (fopimage.isTransparent()) { PDFColor transp = fopimage.getTransparentColor(); p = p + "/Mask [" + transp.red255() + " " + transp.red255() + " " + transp.green255() + " " + transp.green255() + " " + transp.blue255() + " " + transp.blue255() + "]\n"; } p = p + dictEntries; p = p + ">>\n"; // don't know if it's the good place (other objects can have references to it) fopimage.close(); // push the pdf dictionary on the writer byte[] pdfBytes = p.getBytes(); stream.write(pdfBytes); length += pdfBytes.length; // push all the image data on the writer and takes care of length for trailer length += imgStream.outputStreamData(stream); pdfBytes = ("endobj\n").getBytes(); stream.write(pdfBytes); length += pdfBytes.length; } catch (FopImageException imgex) { MessageHandler.errorln("Error in XObject : " + imgex.getMessage()); } return length; }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/c48aabf37fb1c6cfc85fb1e747b89c440b2381c9/PDFXObject.java/clean/src/org/apache/fop/pdf/PDFXObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
876,
12,
4632,
1407,
13,
1216,
1860,
288,
3639,
509,
769,
273,
374,
31,
3639,
509,
277,
273,
374,
31,
3639,
509,
619,
16,
677,
31,
3639,
775,
288,
5411,
368,
7152,
326,
1407,
1440,
358,
12667,
1228,
5411,
12667,
1228,
3774,
1228,
273,
394,
12667,
1228,
12,
20,
1769,
5411,
3774,
1228,
18,
542,
751,
12,
74,
556,
2730,
18,
588,
5775,
10711,
10663,
5411,
1748,
2398,
380,
25808,
635,
512,
1512,
463,
287,
372,
376,
2398,
380,
971,
326,
463,
1268,
1034,
13342,
1404,
2118,
3096,
358,
326,
733,
732,
527,
518,
2674,
2398,
1195,
5411,
309,
261,
74,
556,
2730,
18,
588,
17508,
1586,
1435,
480,
446,
13,
288,
7734,
3774,
1228,
18,
1289,
1586,
12,
74,
556,
2730,
18,
588,
17508,
1586,
10663,
5411,
289,
5411,
3774,
1228,
18,
1289,
1868,
5422,
5621,
5411,
514,
2065,
5400,
273,
3774,
1228,
18,
9010,
5422,
5621,
5411,
514,
293,
273,
333,
18,
2696,
397,
315,
315,
397,
333,
18,
25514,
397,
315,
1081,
64,
82,
14432,
5411,
293,
273,
293,
397,
3532,
1757,
559,
342,
60,
921,
64,
82,
14432,
5411,
293,
273,
293,
397,
2206,
1676,
723,
342,
2040,
64,
82,
14432,
5411,
293,
273,
293,
397,
2206,
461,
342,
1170,
6,
397,
1139,
2107,
397,
1548,
82,
14432,
5411,
293,
273,
293,
397,
2206,
1782,
315,
397,
3774,
1228,
18,
588,
751,
1782,
1435,
397,
1548,
82,
14432,
5411,
293,
273,
293,
397,
2206,
2384,
315,
397,
284,
556,
2730,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
876,
12,
4632,
1407,
13,
1216,
1860,
288,
3639,
509,
769,
273,
374,
31,
3639,
509,
277,
273,
374,
31,
3639,
509,
619,
16,
677,
31,
3639,
775,
288,
5411,
368,
7152,
326,
1407,
1440,
358,
12667,
1228,
5411,
12667,
1228,
3774,
1228,
273,
394,
12667,
1228,
12,
20,
1769,
5411,
3774,
1228,
18,
542,
751,
12,
74,
556,
2730,
18,
588,
5775,
10711,
10663,
5411,
1748,
2398,
380,
25808,
635,
512,
1512,
463,
287,
372,
376,
2398,
380,
971,
326,
463,
1268,
1034,
13342,
1404,
2118,
3096,
358,
326,
733,
732,
527,
518,
2674,
2398,
1195,
5411,
309,
261,
74,
556,
2730,
18,
588,
17508,
1586,
1435,
480,
446,
13,
288,
7734,
3774,
1228,
18,
2
] |
|
String treamedPath = path.replaceAll( "\\Q[\\E\\d+\\Q]\\E", "" ).trim();
|
String treamedPath = path.replaceAll( "\\Q[\\E\\d+\\Q]\\E", "" ).trim( );
|
public void manipulateData( String path, String value ) { String treamedPath = path.replaceAll( "\\Q[\\E\\d+\\Q]\\E", "" ).trim(); this.insertNode( treamedPath ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/145a679d5a271527073531183c90d5bb2a955ab0/SchemaPopulationUtil.java/clean/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
28286,
751,
12,
514,
589,
16,
514,
460,
262,
202,
95,
202,
202,
780,
268,
793,
329,
743,
273,
589,
18,
2079,
1595,
12,
8422,
53,
63,
1695,
41,
1695,
72,
15,
1695,
53,
65,
1695,
41,
3113,
1408,
262,
18,
5290,
5621,
202,
202,
2211,
18,
6387,
907,
12,
268,
793,
329,
743,
11272,
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,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
28286,
751,
12,
514,
589,
16,
514,
460,
262,
202,
95,
202,
202,
780,
268,
793,
329,
743,
273,
589,
18,
2079,
1595,
12,
8422,
53,
63,
1695,
41,
1695,
72,
15,
1695,
53,
65,
1695,
41,
3113,
1408,
262,
18,
5290,
5621,
202,
202,
2211,
18,
6387,
907,
12,
268,
793,
329,
743,
11272,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
public void done(IJobChangeEvent event) { JobInfo info = getJobInfo(event.getJob()); if (event.getResult().getSeverity() == IStatus.ERROR) { info.setError(event.getResult()); UIJob job = new UIJob(ProgressMessages.getString("JobProgressManager.OpenProgressJob")) {//$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { IWorkbench workbench = PlatformUI.getWorkbench(); //Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) return Status.CANCEL_STATUS; IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); if (window == null) return Status.CANCEL_STATUS; ProgressManagerUtil.openProgressView(window); return Status.OK_STATUS; } }; job.schedule(); refresh(info); } else { jobs.remove(event.getJob()); //Only refresh if we are showing it remove(info); //If there are no more left then refresh all on the last displayed one if (hasNoRegularJobInfos() && !isNonDisplayableJob(event.getJob(),false)) refreshAll(); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/04515d9d58c4c5f95a233997534fadc66a378488/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
2731,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
2278,
966,
1123,
273,
13024,
966,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
430,
261,
2575,
18,
588,
1253,
7675,
588,
21630,
1435,
422,
467,
1482,
18,
3589,
13,
288,
6862,
202,
1376,
18,
542,
668,
12,
2575,
18,
588,
1253,
10663,
25083,
202,
5370,
2278,
1719,
273,
394,
6484,
2278,
12,
5491,
5058,
18,
588,
780,
2932,
2278,
5491,
1318,
18,
3678,
5491,
2278,
6,
3719,
288,
759,
8,
3993,
17,
5106,
17,
21,
8,
25083,
202,
20308,
6862,
1082,
380,
261,
5836,
17,
24060,
13,
6862,
1082,
380,
15106,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
18,
5370,
2278,
7,
2681,
382,
57,
1285,
76,
896,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
13,
6862,
1082,
1195,
25083,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
1082,
202,
45,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
5621,
6862,
1082,
202,
759,
13572,
603,
5731,
6862,
1082,
202,
430,
261,
1252,
22144,
1276,
4147,
22144,
597,
14015,
2421,
22144,
13,
1440,
22144,
2934,
291,
15745,
10756,
6862,
9506,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
1082,
202,
45,
2421,
22144,
3829,
2742,
273,
1440,
22144,
18,
588,
3896,
2421,
22144,
3829,
5621,
6862,
1082,
202,
430,
261,
5668,
422,
446,
13,
6862,
9506,
202,
2463,
2685,
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,
1875,
202,
482,
918,
2731,
12,
45,
2278,
20930,
871,
13,
288,
9506,
202,
2278,
966,
1123,
273,
13024,
966,
12,
2575,
18,
588,
2278,
10663,
9506,
202,
430,
261,
2575,
18,
588,
1253,
7675,
588,
21630,
1435,
422,
467,
1482,
18,
3589,
13,
288,
6862,
202,
1376,
18,
542,
668,
12,
2575,
18,
588,
1253,
10663,
25083,
202,
5370,
2278,
1719,
273,
394,
6484,
2278,
12,
5491,
5058,
18,
588,
780,
2932,
2278,
5491,
1318,
18,
3678,
5491,
2278,
6,
3719,
288,
759,
8,
3993,
17,
5106,
17,
21,
8,
25083,
202,
20308,
6862,
1082,
380,
261,
5836,
17,
24060,
13,
6862,
1082,
380,
15106,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
18,
5370,
2278,
2
] |
|
return buildLoc(locList);
|
return buildLoc(locList);
|
public static Location intersection(Location locA, Location locB) { if(isDecorated(locA) || isDecorated(locB)) { handleDecorations(locA, locB); if(BetweenLocationTools.isBetween(locA) || (BetweenLocationTools.isBetween(locB))) { return BetweenLocationTools.intersection(locA, locB); } if (CircularLocationTools.isCircular(locA) || CircularLocationTools.isCircular(locB)) { return CircularLocationTools.intersection(locA, locB); } } if(locA.isContiguous() && locB.isContiguous()) { // handle easy case of solid locations // Ought to make this bit more efficient --THOMASD if (LocationTools.contains(locA, locB)) { return locB; } else if (LocationTools.contains(locB, locA)) { return locA; } if(LocationTools.overlaps(locA, locB)) { int min = Math.max(locA.getMin(), locB.getMin()); int max = Math.min(locA.getMax(), locB.getMax()); return makeLocation(min, max); } else { return Location.empty; } } else { // One or other of the locations is compound. Build a list of all // locations created by finding intersection of all pairwise combinations // of blocks in locA and locB. Ignore all Location.empty. Create the // appropriate Location instance. List locList = new ArrayList(); List blA = getBlockList(locA); { int minBlock = blockContainingOrFollowingPoint(blA, locB.getMin()); int maxBlock = blockContainingOrPreceedingPoint(blA, locB.getMax()); if (minBlock == -1 || maxBlock == -1) { return Location.empty; } blA = blA.subList(minBlock, maxBlock + 1); } List blB = getBlockList(locB); { int minBlock = blockContainingOrFollowingPoint(blB, locA.getMin()); int maxBlock = blockContainingOrPreceedingPoint(blB, locA.getMax()); if (minBlock == -1 || maxBlock == -1) { return Location.empty; } blB = blB.subList(minBlock, maxBlock + 1); } if (blA.size() > blB.size()) { List temp = blA; blA = blB; blB = temp; } for (Iterator i = blA.iterator(); i.hasNext(); ) { Location blocA = (Location) i.next(); int minHitIndex = blockContainingOrFollowingPoint(blB, blocA.getMin()); int maxHitIndex = blockContainingOrPreceedingPoint(blB, blocA.getMax()); for (int hitIndex = minHitIndex; hitIndex <= maxHitIndex; ++hitIndex) { Location blocB = (Location) blB.get(hitIndex); locList.add(LocationTools.intersection(blocA, blocB)); } } return buildLoc(locList); } }
|
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/37cfce48605fa33564373571c4370a5853515efa/LocationTools.java/clean/src/org/biojava/bio/symbol/LocationTools.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
7050,
7619,
12,
2735,
1515,
37,
16,
7050,
1515,
38,
13,
288,
565,
309,
12,
291,
7859,
690,
12,
1829,
37,
13,
747,
353,
7859,
690,
12,
1829,
38,
3719,
565,
288,
202,
4110,
7859,
1012,
12,
1829,
37,
16,
1515,
38,
1769,
202,
430,
12,
11831,
2735,
10348,
18,
291,
11831,
12,
1829,
37,
13,
747,
261,
11831,
2735,
10348,
18,
291,
11831,
12,
1829,
38,
20349,
202,
565,
288,
202,
202,
2463,
605,
8458,
2735,
10348,
18,
30231,
12,
1829,
37,
16,
1515,
38,
1769,
202,
565,
289,
202,
430,
261,
25858,
2735,
10348,
18,
291,
25858,
12,
1829,
37,
13,
747,
13246,
9559,
2735,
10348,
18,
291,
25858,
12,
1829,
38,
3719,
288,
202,
565,
327,
13246,
9559,
2735,
10348,
18,
30231,
12,
1829,
37,
16,
1515,
38,
1769,
202,
97,
565,
289,
565,
309,
12,
1829,
37,
18,
291,
660,
10623,
1435,
597,
1515,
38,
18,
291,
660,
10623,
10756,
288,
202,
759,
1640,
12779,
648,
434,
18035,
7838,
202,
759,
531,
9540,
358,
1221,
333,
2831,
1898,
14382,
1493,
2455,
1872,
3033,
40,
202,
430,
261,
2735,
10348,
18,
12298,
12,
1829,
37,
16,
1515,
38,
3719,
288,
202,
565,
327,
1515,
38,
31,
202,
97,
469,
309,
261,
2735,
10348,
18,
12298,
12,
1829,
38,
16,
1515,
37,
3719,
288,
202,
565,
327,
1515,
37,
31,
202,
97,
309,
12,
2735,
10348,
18,
17946,
87,
12,
1829,
37,
16,
1515,
38,
3719,
288,
202,
565,
509,
1131,
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,
282,
1071,
760,
7050,
7619,
12,
2735,
1515,
37,
16,
7050,
1515,
38,
13,
288,
565,
309,
12,
291,
7859,
690,
12,
1829,
37,
13,
747,
353,
7859,
690,
12,
1829,
38,
3719,
565,
288,
202,
4110,
7859,
1012,
12,
1829,
37,
16,
1515,
38,
1769,
202,
430,
12,
11831,
2735,
10348,
18,
291,
11831,
12,
1829,
37,
13,
747,
261,
11831,
2735,
10348,
18,
291,
11831,
12,
1829,
38,
20349,
202,
565,
288,
202,
202,
2463,
605,
8458,
2735,
10348,
18,
30231,
12,
1829,
37,
16,
1515,
38,
1769,
202,
565,
289,
202,
430,
261,
25858,
2735,
10348,
18,
291,
25858,
12,
1829,
37,
13,
747,
13246,
9559,
2735,
10348,
18,
291,
25858,
12,
1829,
38,
3719,
288,
2
] |
list.add( new LastSeat( new Integer( st.nextToken( ) ).intValue( ) ) );
|
list.add( new LastSeat( new Integer( st.nextToken() ).intValue() ) );
|
private List getInputObjects(InputStream inputStream) throws IOException { List list = new ArrayList( ); BufferedReader br = new BufferedReader( new InputStreamReader( inputStream ) ); String line; while ( (line = br.readLine( )) != null ) { if ( line.trim( ).length( ) == 0 || line.trim( ).startsWith( ";" ) ) { continue; } StringTokenizer st = new StringTokenizer( line, "() " ); String type = st.nextToken( ); if ( "guest".equals( type ) ) { if ( !"name".equals( st.nextToken( ) ) ) { throw new IOException( "expected 'name' in: " + line ); } String name = st.nextToken( ); if ( !"sex".equals( st.nextToken( ) ) ) { throw new IOException( "expected 'sex' in: " + line ); } String sex = st.nextToken( ); if ( !"hobby".equals( st.nextToken( ) ) ) { throw new IOException( "expected 'hobby' in: " + line ); } String hobby = st.nextToken( ); Guest guest = new Guest( name, Sex.resolve(sex), Hobby.resolve(hobby)); list.add( guest ); } if ( "last_seat".equals( type ) ) { if ( !"seat".equals( st.nextToken( ) ) ) { throw new IOException( "expected 'seat' in: " + line ); } list.add( new LastSeat( new Integer( st.nextToken( ) ).intValue( ) ) ); } if ( "context".equals( type ) ) { if ( !"state".equals( st.nextToken( ) ) ) { throw new IOException( "expected 'state' in: " + line ); } list.add( new Context( st.nextToken( ) ) ); } } inputStream.close( ); return list; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/afb42145aeb0d228a638628582631975db4bb473/MannersTest.java/clean/drools-core/src/test/java/org/drools/examples/manners/MannersTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
12353,
4710,
12,
4348,
10010,
13,
1216,
1860,
565,
288,
3639,
987,
666,
273,
394,
2407,
12,
11272,
3639,
10633,
5186,
273,
394,
10633,
12,
394,
15322,
12,
10010,
262,
11272,
3639,
514,
980,
31,
3639,
1323,
261,
261,
1369,
273,
5186,
18,
896,
1670,
12,
8623,
480,
446,
262,
3639,
288,
5411,
309,
261,
980,
18,
5290,
12,
262,
18,
2469,
12,
262,
422,
374,
747,
980,
18,
5290,
12,
262,
18,
17514,
1190,
12,
11430,
262,
262,
5411,
288,
7734,
1324,
31,
5411,
289,
5411,
16370,
384,
273,
394,
16370,
12,
980,
16,
4766,
8227,
25605,
315,
11272,
5411,
514,
618,
273,
384,
18,
4285,
1345,
12,
11272,
5411,
309,
261,
315,
18908,
9654,
14963,
12,
618,
262,
262,
5411,
288,
7734,
309,
261,
29054,
529,
9654,
14963,
12,
384,
18,
4285,
1345,
12,
262,
262,
262,
7734,
288,
10792,
604,
394,
1860,
12,
315,
3825,
296,
529,
11,
316,
30,
315,
397,
980,
11272,
7734,
289,
7734,
514,
508,
273,
384,
18,
4285,
1345,
12,
11272,
7734,
309,
261,
29054,
20909,
9654,
14963,
12,
384,
18,
4285,
1345,
12,
262,
262,
262,
7734,
288,
10792,
604,
394,
1860,
12,
315,
3825,
296,
20909,
11,
316,
30,
315,
397,
980,
11272,
7734,
289,
7734,
514,
19631,
273,
384,
18,
4285,
1345,
12,
11272,
7734,
309,
261,
29054,
76,
947,
1637,
9654,
14963,
12,
384,
18,
4285,
1345,
12,
262,
262,
262,
7734,
288,
10792,
604,
394,
1860,
12,
315,
3825,
296,
76,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
12353,
4710,
12,
4348,
10010,
13,
1216,
1860,
565,
288,
3639,
987,
666,
273,
394,
2407,
12,
11272,
3639,
10633,
5186,
273,
394,
10633,
12,
394,
15322,
12,
10010,
262,
11272,
3639,
514,
980,
31,
3639,
1323,
261,
261,
1369,
273,
5186,
18,
896,
1670,
12,
8623,
480,
446,
262,
3639,
288,
5411,
309,
261,
980,
18,
5290,
12,
262,
18,
2469,
12,
262,
422,
374,
747,
980,
18,
5290,
12,
262,
18,
17514,
1190,
12,
11430,
262,
262,
5411,
288,
7734,
1324,
31,
5411,
289,
5411,
16370,
384,
273,
394,
16370,
12,
980,
16,
4766,
8227,
25605,
315,
11272,
5411,
514,
618,
273,
384,
18,
4285,
1345,
12,
11272,
5411,
309,
261,
315,
18908,
9654,
2
] |
assertTrue(ringSet.size() == 5);
|
assertEquals(5, ringSet.size());
|
public void testProblem3() { Molecule molecule = null; Ring ring = null; try { String filename = "data/mdl/figueras-test-inring.mol"; InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename); MDLReader reader = new MDLReader(new InputStreamReader(ins)); molecule = (Molecule) reader.read((ChemObject) new Molecule()); if (standAlone) System.out.println("Testing " + filename); SSSRFinder sssrf = new SSSRFinder(molecule); RingSet ringSet = sssrf.findSSSR(); if (standAlone) System.out.println("Found ring set of size: " + ringSet.size()); assertTrue(ringSet.size() == 5); for (int f = 0; f < ringSet.size(); f++) { ring = (Ring) ringSet.elementAt(f); if (standAlone) System.out.println("ring: " + ring.toString(molecule)); } } catch (Exception exc) { exc.printStackTrace(); fail(); } }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/f04e4953dbf91a77eeed2a674250bb80a598a22e/RingSearchTest.java/clean/src/org/openscience/cdk/test/ringsearch/RingSearchTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
13719,
23,
1435,
202,
95,
202,
202,
29669,
13661,
273,
446,
31,
202,
202,
10369,
9221,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
1544,
273,
315,
892,
19,
1264,
80,
19,
470,
6211,
345,
17,
3813,
17,
267,
8022,
18,
21260,
14432,
1082,
202,
4348,
2763,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
1769,
1082,
202,
6188,
48,
2514,
2949,
273,
394,
490,
8914,
2514,
12,
2704,
15322,
12,
2679,
10019,
1082,
202,
81,
10545,
273,
261,
29669,
13,
2949,
18,
896,
12443,
20200,
921,
13,
394,
490,
10545,
10663,
1082,
202,
430,
261,
10145,
1067,
476,
13,
2332,
18,
659,
18,
8222,
2932,
22218,
315,
397,
1544,
1769,
25083,
202,
1260,
10090,
8441,
272,
1049,
5809,
273,
394,
348,
1260,
54,
8441,
12,
81,
10545,
1769,
1082,
202,
10369,
694,
9221,
694,
273,
272,
1049,
5809,
18,
4720,
1260,
10090,
5621,
1082,
202,
430,
261,
10145,
1067,
476,
13,
2332,
18,
659,
18,
8222,
2932,
2043,
9221,
444,
434,
963,
30,
315,
397,
9221,
694,
18,
1467,
10663,
1082,
202,
11231,
5510,
12,
8022,
694,
18,
1467,
1435,
422,
1381,
1769,
1082,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
9221,
694,
18,
1467,
5621,
284,
27245,
1082,
202,
95,
9506,
202,
8022,
273,
261,
10369,
13,
9221,
694,
18,
2956,
861,
12,
74,
1769,
9506,
202,
430,
261,
10145,
1067,
476,
13,
2332,
18,
659,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
13719,
23,
1435,
202,
95,
202,
202,
29669,
13661,
273,
446,
31,
202,
202,
10369,
9221,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
1544,
273,
315,
892,
19,
1264,
80,
19,
470,
6211,
345,
17,
3813,
17,
267,
8022,
18,
21260,
14432,
1082,
202,
4348,
2763,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
1769,
1082,
202,
6188,
48,
2514,
2949,
273,
394,
490,
8914,
2514,
12,
2704,
15322,
12,
2679,
10019,
1082,
202,
81,
10545,
273,
261,
29669,
13,
2949,
18,
896,
12443,
20200,
921,
13,
394,
490,
10545,
10663,
1082,
202,
430,
261,
10145,
1067,
476,
13,
2332,
18,
659,
18,
2
] |
if (!project.isOpen()) return;
|
if (!project.isOpen()) { return; }
|
protected void processProject(IProject project, IWorkbenchActivitySupport workbenchActivitySupport) throws CoreException { if (!project.isOpen()) return; String[] ids = project.getDescription().getNatureIds(); if (ids.length == 0) return; for (int j = 0; j < ids.length; j++) { IPluginContribution contribution = (IPluginContribution) natureMap .get(ids[j]); if (contribution == null) continue; //bad nature ID. ITriggerPoint triggerPoint = workbenchActivitySupport .getTriggerPointManager().getTriggerPoint(NATURE_POINT); //consult the advisor - if the activities need enabling, they will be WorkbenchActivityHelper.allowUseOf(triggerPoint, contribution); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/IDEWorkbenchActivityHelper.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchActivityHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
4109,
12,
45,
4109,
1984,
16,
5411,
467,
2421,
22144,
6193,
6289,
1440,
22144,
6193,
6289,
13,
5411,
1216,
30015,
288,
3639,
309,
16051,
4406,
18,
291,
3678,
10756,
5411,
327,
31,
3639,
514,
8526,
3258,
273,
1984,
18,
588,
3291,
7675,
588,
50,
1231,
2673,
5621,
3639,
309,
261,
2232,
18,
2469,
422,
374,
13,
5411,
327,
31,
7734,
364,
261,
474,
525,
273,
374,
31,
525,
411,
3258,
18,
2469,
31,
525,
27245,
288,
5411,
467,
3773,
442,
4027,
24880,
273,
261,
45,
3773,
442,
4027,
13,
28700,
863,
10792,
263,
588,
12,
2232,
63,
78,
19226,
5411,
309,
261,
591,
4027,
422,
446,
13,
7734,
1324,
31,
368,
8759,
28700,
1599,
18,
5411,
467,
6518,
2148,
3080,
2148,
273,
1440,
22144,
6193,
6289,
10792,
263,
588,
6518,
2148,
1318,
7675,
588,
6518,
2148,
12,
50,
10511,
67,
8941,
1769,
2398,
368,
8559,
406,
326,
1261,
10227,
300,
309,
326,
17259,
1608,
570,
17912,
16,
2898,
903,
506,
5411,
4147,
22144,
6193,
2276,
18,
5965,
3727,
951,
12,
10668,
2148,
16,
24880,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
4109,
12,
45,
4109,
1984,
16,
5411,
467,
2421,
22144,
6193,
6289,
1440,
22144,
6193,
6289,
13,
5411,
1216,
30015,
288,
3639,
309,
16051,
4406,
18,
291,
3678,
10756,
5411,
327,
31,
3639,
514,
8526,
3258,
273,
1984,
18,
588,
3291,
7675,
588,
50,
1231,
2673,
5621,
3639,
309,
261,
2232,
18,
2469,
422,
374,
13,
5411,
327,
31,
7734,
364,
261,
474,
525,
273,
374,
31,
525,
411,
3258,
18,
2469,
31,
525,
27245,
288,
5411,
467,
3773,
442,
4027,
24880,
273,
261,
45,
3773,
442,
4027,
13,
28700,
863,
10792,
263,
588,
12,
2232,
63,
78,
19226,
5411,
309,
261,
591,
4027,
422,
446,
13,
7734,
1324,
31,
368,
8759,
28700,
1599,
18,
2
] |
public org.quickfix.field.Symbol getSymbol() throws FieldNotFound { org.quickfix.field.Symbol value = new org.quickfix.field.Symbol();
|
public quickfix.field.Symbol getSymbol() throws FieldNotFound { quickfix.field.Symbol value = new quickfix.field.Symbol();
|
public org.quickfix.field.Symbol getSymbol() throws FieldNotFound { org.quickfix.field.Symbol value = new org.quickfix.field.Symbol(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/clean/src/java/src/quickfix/fix44/SecurityStatus.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
18712,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5335,
18712,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (rtx == null || rtx == ResolvedType.MISSING) { world.showMessage(Message.ERROR, WeaverMessages.format(WeaverMessages.CANT_FIND_PARENT_TYPE,rtx.getSignature()), null,null); } else { addAndRecurse(knowninterfaces,collector,superType,includeITDs);
|
if (superType != null && !superType.isMissing()) { addAndRecurse(knowninterfaces,collector,superType,includeITDs,allowMissing);
|
private void addAndRecurse(Set knowninterfaces,List collector, ResolvedType rtx, boolean includeITDs) { collector.addAll(Arrays.asList(rtx.getDeclaredMethods())); // Add the methods declared on this type // now add all the inter-typed members too if (includeITDs && rtx.interTypeMungers != null) { for (Iterator i = interTypeMungers.iterator(); i.hasNext();) { ConcreteTypeMunger tm = (ConcreteTypeMunger) i.next(); ResolvedMember rm = tm.getSignature(); if (rm != null) { // new parent type munger can have null signature... collector.add(tm.getSignature()); } } } if (!rtx.equals(ResolvedType.OBJECT)) { ResolvedType superType = rtx.getSuperclass(); if (rtx == null || rtx == ResolvedType.MISSING) { // can't find type message - with context! world.showMessage(Message.ERROR, WeaverMessages.format(WeaverMessages.CANT_FIND_PARENT_TYPE,rtx.getSignature()), null,null); } else { addAndRecurse(knowninterfaces,collector,superType,includeITDs); // Recurse if we aren't at the top } } ResolvedType[] interfaces = rtx.getDeclaredInterfaces(); // Go through the interfaces on the way back down for (int i = 0; i < interfaces.length; i++) { ResolvedType iface = interfaces[i]; if (!knowninterfaces.contains(iface)) { // Dont do interfaces more than once knowninterfaces.add(iface); addAndRecurse(knowninterfaces,collector,iface,includeITDs); } } }
|
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/a4a9090d88bd1a79d87f0bc08aff7fa627e81f99/ResolvedType.java/clean/weaver/src/org/aspectj/weaver/ResolvedType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
1876,
426,
17682,
12,
694,
4846,
15898,
16,
682,
8543,
16,
22776,
559,
436,
978,
16,
1250,
2341,
1285,
22831,
13,
288,
1377,
8543,
18,
1289,
1595,
12,
12726,
18,
345,
682,
12,
86,
978,
18,
588,
18888,
4712,
1435,
10019,
368,
1436,
326,
2590,
7886,
603,
333,
618,
1377,
368,
2037,
527,
777,
326,
1554,
17,
11585,
4833,
4885,
1377,
309,
261,
6702,
1285,
22831,
597,
436,
978,
18,
2761,
559,
49,
318,
6215,
480,
446,
13,
288,
377,
202,
225,
364,
261,
3198,
277,
273,
1554,
559,
49,
318,
6215,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
25845,
559,
49,
318,
693,
6118,
273,
261,
25845,
559,
49,
318,
693,
13,
277,
18,
4285,
5621,
6862,
202,
12793,
4419,
6692,
273,
6118,
18,
588,
5374,
5621,
9506,
202,
430,
261,
8864,
480,
446,
13,
288,
225,
368,
394,
982,
618,
312,
318,
693,
848,
1240,
446,
3372,
2777,
6862,
202,
21356,
18,
1289,
12,
16925,
18,
588,
5374,
10663,
9506,
202,
97,
1875,
202,
97,
1377,
289,
1377,
309,
16051,
86,
978,
18,
14963,
12,
12793,
559,
18,
9422,
3719,
288,
377,
202,
225,
22776,
559,
26701,
273,
436,
978,
18,
588,
28471,
5621,
377,
202,
225,
309,
261,
86,
978,
422,
446,
747,
436,
978,
422,
22776,
559,
18,
19466,
13,
288,
377,
1082,
225,
368,
848,
1404,
1104,
618,
883,
300,
598,
819,
5,
377,
1082,
225,
9117,
18,
4500,
1079,
12,
1079,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
1876,
426,
17682,
12,
694,
4846,
15898,
16,
682,
8543,
16,
22776,
559,
436,
978,
16,
1250,
2341,
1285,
22831,
13,
288,
1377,
8543,
18,
1289,
1595,
12,
12726,
18,
345,
682,
12,
86,
978,
18,
588,
18888,
4712,
1435,
10019,
368,
1436,
326,
2590,
7886,
603,
333,
618,
1377,
368,
2037,
527,
777,
326,
1554,
17,
11585,
4833,
4885,
1377,
309,
261,
6702,
1285,
22831,
597,
436,
978,
18,
2761,
559,
49,
318,
6215,
480,
446,
13,
288,
377,
202,
225,
364,
261,
3198,
277,
273,
1554,
559,
49,
318,
6215,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
25845,
559,
49,
318,
693,
6118,
273,
261,
25845,
559,
49,
2
] |
fAttrChecker.returnAttrArray(contentAttrs);
|
fAttrChecker.returnAttrArray(contentAttrs, schemaDoc.fNamespaceSupport);
|
private int traverseSimpleTypeDecl(Element simpleTypeDecl, Object[] attrValues) { String nameProperty = (String)attrValues[XSAttributeChecker.ATTIDX_NAME]; String qualifiedName = nameProperty; //--------------------------------------------------- // set qualified name //--------------------------------------------------- if (nameProperty == null) { // anonymous simpleType qualifiedName = fSchemaDoc.fTargetNamespace+","+"#S#"+(fSimpleTypeAnonCount++); //REVISIT: // add to symbol table? } else { // this behaviour has been changed so that we neither // process unqualified names as if they came from the schemaforschema namespace nor // fail to pick up unqualified names from schemas with no // targetnamespace. - NG //if (fTargetNSURIString.length () != 0) { qualifiedName = fSchemaDoc.fTargetNamespace+","+qualifiedName; //} //REVISIT: // add to symbol table? } //---------------------------------------------------------------------- //check if we have already traversed the same simpleType decl //---------------------------------------------------------------------- /*if (fSchemaHandler.getSimpleTypeValidator(qualifiedName)!=null) { return resetSimpleTypeNameStack(qualifiedName); } else { if (fSimpleTypeNameStack.search(qualifiedName) != -1) { // cos-no-circular-unions && no circular definitions reportGenericSchemaError("cos-no-circular-unions: no circular definitions are allowed for an element '"+ nameProperty+"'"); return resetSimpleTypeNameStack(fSchemaHandler.EMPTY_STRING); } }*/ //---------------------------------------------------------- // REVISIT! // update _final_ registry //---------------------------------------------------------- Integer finalAttr = (Integer)attrValues[XSAttributeChecker.ATTIDX_FINAL]; int finalProperty = finalAttr == null ? 0 : finalAttr.intValue(); //---------------------------------------------------------------------- //annotation?,(list|restriction|union) //---------------------------------------------------------------------- Element content = DOMUtil.getFirstChildElement(simpleTypeDecl); content = checkContent(simpleTypeDecl, content, false); if (content == null) { reportGenericSchemaError("no child element found for simpleType '"+ nameProperty+"'"); return -1; } // General Attribute Checking Object[] contentAttrs = fAttrChecker.checkAttributes(content, false); // REVISIT: when to return the array fAttrChecker.returnAttrArray(contentAttrs); //---------------------------------------------------------------------- //use content.getLocalName for the cases there "xsd:" is a prefix, ei. "xsd:list" //---------------------------------------------------------------------- String varietyProperty = DOMUtil.getLocalName(content); //content.getLocalName(); QName baseTypeQNameProperty = null; Vector memberTypes = null; Vector dTValidators = null; int size = 0; boolean list = false; boolean union = false; boolean restriction = false; int numOfTypes = 0; //list/restriction = 1, union = "+" if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { //traverse List baseTypeQNameProperty = (QName)contentAttrs[XSAttributeChecker.ATTIDX_ITEMTYPE]; list = true; if (fListName.length() != 0) { // parent is <list> datatype reportCosListOfAtomic(); return -1; } else { fListName = qualifiedName; } } else if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { //traverse Restriction baseTypeQNameProperty = (QName)contentAttrs[XSAttributeChecker.ATTIDX_BASE]; //content.getAttribute( SchemaSymbols.ATT_BASE ); restriction= true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { //traverse union union = true; memberTypes = (Vector)contentAttrs[XSAttributeChecker.ATTIDX_MEMBERTYPES]; //content.getAttribute( SchemaSymbols.ATT_MEMBERTYPES); if (memberTypes != null) { size = memberTypes.size(); } else { size = 1; //at least one must be seen as <simpleType> decl } dTValidators = new Vector (size, 2); } else { Object[] args = { varietyProperty}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "FeatureUnsupported", args, XMLErrorReporter.SEVERITY_ERROR); } if (DOMUtil.getNextSiblingElement(content) != null) { // REVISIT: Localize reportGenericSchemaError("error in content of simpleType"); } DatatypeValidator baseValidator = null; int simpleTypeIndex = -1; if (baseTypeQNameProperty == null && memberTypes == null) { //--------------------------- //must 'see' <simpleType> //--------------------------- //content = {annotation?,simpleType?...} content = DOMUtil.getFirstChildElement(content); //check content (annotation?, ...) content = checkContent(simpleTypeDecl, content, false); if (content == null) { reportGenericSchemaError("no child element found for simpleType '"+ nameProperty+"'"); return -1; } if (DOMUtil.getLocalName(content).equals( SchemaSymbols.ELT_SIMPLETYPE )) { simpleTypeIndex = traverse(content, fSchemaDoc, fGrammar); if (simpleTypeIndex != -1) { baseValidator = (DatatypeValidator)fGrammar.getTypeDecl(simpleTypeIndex); if (baseValidator != null && union) { dTValidators.addElement((DatatypeValidator)baseValidator); } } if (baseValidator == null) { Object[] args = {content.getAttribute( SchemaSymbols.ATT_BASE )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "UnknownBaseDatatype", args, XMLErrorReporter.SEVERITY_ERROR); return -1; } } else { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); return -1; } } //end - must see simpleType? else { //----------------------------- //base was provided - get proper validator. //----------------------------- numOfTypes = 1; if (union) { numOfTypes= size; } //-------------------------------------------------------------------- // this loop is also where we need to find out whether the type being used as // a base (or itemType or whatever) allows such things. //-------------------------------------------------------------------- int baseRefContext = (restriction? SchemaSymbols.RESTRICTION:0); baseRefContext = baseRefContext | (union? SchemaSymbols.UNION:0); baseRefContext = baseRefContext | (list ? SchemaSymbols.LIST:0); for (int i=0; i<numOfTypes; i++) { //find all validators if (union) { baseTypeQNameProperty = (QName)memberTypes.elementAt(i); } baseValidator = findDTValidator ( simpleTypeDecl, baseTypeQNameProperty, baseRefContext); if (baseValidator == null) { return -1; } // ------------------------------ // (variety is list)cos-list-of-atomic // ------------------------------ if (fListName.length() != 0) { if (baseValidator instanceof ListDatatypeValidator) { reportCosListOfAtomic(); return -1; } //----------------------------------------------------- // if baseValidator is of type (union) need to look // at Union validators to make sure that List is not one of them //----------------------------------------------------- if (isListDatatype(baseValidator)) { reportCosListOfAtomic(); return -1; } } if (union) { dTValidators.addElement((DatatypeValidator)baseValidator); //add validator to structure } } } //end - base is available // ------------------------------------------ // move to next child // <base==empty)->[simpleType]->[facets] OR // <base!=empty)->[facets] // ------------------------------------------ if (baseTypeQNameProperty == null) { content = DOMUtil.getNextSiblingElement( content ); } else { content = DOMUtil.getFirstChildElement(content); } // ------------------------------------------ //get more types for union if any // ------------------------------------------ if (union) { int index=size; if (memberTypes != null) { content = checkContent(simpleTypeDecl, content, true); } while (content!=null) { simpleTypeIndex = traverse(content, fSchemaDoc, fGrammar); baseValidator = null; if (simpleTypeIndex != -1) { baseValidator= (DatatypeValidator)fGrammar.getTypeDecl(simpleTypeIndex); if (baseValidator != null) { if (fListName.length() != 0 && baseValidator instanceof ListDatatypeValidator) { reportCosListOfAtomic(); return -1; } dTValidators.addElement((DatatypeValidator)baseValidator); } } if (baseValidator == null) { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ), simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "UnknownBaseDatatype", args, XMLErrorReporter.SEVERITY_ERROR); return -1; } content = DOMUtil.getNextSiblingElement( content ); } } // end - traverse Union if (fListName.length() != 0) { // reset fListName, meaning that we are done with // traversing <list> and its itemType resolves to atomic value if (fListName.equals(qualifiedName)) { fListName = ""; } } int numFacets=0; fFacetData.clear(); if (restriction && content != null) { short flags = 0; // flag facets that have fixed="true" int numEnumerationLiterals = 0; Vector enumData = new Vector(); content = checkContent(simpleTypeDecl, content , true); String facet; while (content != null) { if (content.getNodeType() == Node.ELEMENT_NODE) { // General Attribute Checking Object[] attrs = fAttrChecker.checkAttributes(content, false); // REVISIT: when to return the array fAttrChecker.returnAttrArray(attrs); numFacets++; facet = DOMUtil.getLocalName(content); if (facet.equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; String enumVal = DOMUtil.getAttrValue(content, SchemaSymbols.ATT_VALUE); String localName; if (baseValidator instanceof NOTATIONDatatypeValidator) { String prefix = ""; String localpart = enumVal; int colonptr = enumVal.indexOf(":"); if (colonptr > 0) { prefix = enumVal.substring(0,colonptr); localpart = enumVal.substring(colonptr+1); } String uriStr = (prefix.length() != 0)?fSchemaHandler.resolvePrefixToURI(prefix):fSchemaDoc.fTargetNamespace; nameProperty=uriStr + ":" + localpart; localName = (String)fSchemaHandler.fNotationRegistry.get(nameProperty); if (localName == null) { //REVISIT: when implementing notation! //localName = traverseNotationFromAnotherSchema( localpart, uriStr); if (localName == null) { reportGenericSchemaError("Notation '" + localpart + "' not found in the grammar "+ uriStr); } } enumVal=nameProperty; } enumData.addElement(enumVal); checkContent(simpleTypeDecl, DOMUtil.getFirstChildElement( content ), true); } else if (facet.equals(SchemaSymbols.ELT_ANNOTATION) || facet.equals(SchemaSymbols.ELT_SIMPLETYPE)) { //REVISIT: Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } else if (facet.equals(SchemaSymbols.ELT_PATTERN)) { if (fPattern == null) { //REVISIT: size of buffer fPattern = new StringBuffer (DOMUtil.getAttrValue( content, SchemaSymbols.ATT_VALUE )); } else { // --------------------------------------------- //datatypes: 5.2.4 pattern: src-multiple-pattern // --------------------------------------------- fPattern.append("|"); fPattern.append(DOMUtil.getAttrValue(content, SchemaSymbols.ATT_VALUE )); checkContent(simpleTypeDecl, DOMUtil.getFirstChildElement( content ), true); } } else { if (fFacetData.containsKey(facet)) fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "DatatypeError", new Object[]{"The facet '" + facet + "' is defined more than once."}, XMLErrorReporter.SEVERITY_ERROR); fFacetData.put(facet,content.getAttribute( SchemaSymbols.ATT_VALUE )); if (content.getAttribute( SchemaSymbols.ATT_FIXED).equals(SchemaSymbols.ATTVAL_TRUE) || content.getAttribute( SchemaSymbols.ATT_FIXED).equals(SchemaSymbols.ATTVAL_TRUE_1)) { // -------------------------------------------- // set fixed facet flags // length - must remain const through derivation // thus we don't care if it fixed // -------------------------------------------- if (facet.equals(SchemaSymbols.ELT_MINLENGTH)) { flags |= DatatypeValidator.FACET_MINLENGTH; } else if (facet.equals(SchemaSymbols.ELT_MAXLENGTH)) { flags |= DatatypeValidator.FACET_MAXLENGTH; } else if (facet.equals(SchemaSymbols.ELT_MAXEXCLUSIVE)) { flags |= DatatypeValidator.FACET_MAXEXCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MAXINCLUSIVE)) { flags |= DatatypeValidator.FACET_MAXINCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MINEXCLUSIVE)) { flags |= DatatypeValidator.FACET_MINEXCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MININCLUSIVE)) { flags |= DatatypeValidator.FACET_MININCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_TOTALDIGITS)) { flags |= DatatypeValidator.FACET_TOTALDIGITS; } else if (facet.equals(SchemaSymbols.ELT_FRACTIONDIGITS)) { flags |= DatatypeValidator.FACET_FRACTIONDIGITS; } else if (facet.equals(SchemaSymbols.ELT_WHITESPACE) && baseValidator instanceof StringDatatypeValidator) { flags |= DatatypeValidator.FACET_WHITESPACE; } } checkContent(simpleTypeDecl, DOMUtil.getFirstChildElement( content ), true); } } content = DOMUtil.getNextSiblingElement(content); } if (numEnumerationLiterals > 0) { fFacetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } if (fPattern !=null) { fFacetData.put(SchemaSymbols.ELT_PATTERN, fPattern.toString()); } if (flags != 0) { fFacetData.put(DatatypeValidator.FACET_FIXED, new Short(flags)); } fPattern = null; } else if (list && content!=null) { // report error - must not have any children! if (baseTypeQNameProperty != null) { content = checkContent(simpleTypeDecl, content, true); if (content!=null) { //REVISIT: Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } } else { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } } else if (union && content!=null) { //report error - must not have any children! if (memberTypes != null) { content = checkContent(simpleTypeDecl, content, true); if (content!=null) { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } } else { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } } DatatypeValidator newDV = null; if (list) { try { newDV = new ListDatatypeValidator(baseValidator, fFacetData, true); } catch (InvalidDatatypeFacetException e) { reportGenericSchemaError(e.getMessage()); } } else if (restriction) { Class validatorDef = baseValidator.getClass(); Class [] validatorArgsClass = new Class[] { org.apache.xerces.impl.v2.datatypes.DatatypeValidator.class, java.util.Hashtable.class, boolean.class}; Object [] validatorArgs = new Object[] {baseValidator, fFacetData, Boolean.FALSE}; try { Constructor validatorConstructor = validatorDef.getConstructor( validatorArgsClass ); newDV = (DatatypeValidator) validatorConstructor.newInstance(validatorArgs); } catch (NoSuchMethodException e) { } catch ( InstantiationException e ) { } catch ( IllegalAccessException e ) { } catch ( IllegalArgumentException e ) { } catch ( InvocationTargetException e ) { reportGenericSchemaError(e.getMessage()); } } else { //union newDV = new UnionDatatypeValidator(dTValidators); } newDV.setFinalSet(finalProperty); //REVISIT: add type name into type //int newDVIdx = fGrammar.addTypeDecl(nameProperty, newDV); int newDVIdx = fGrammar.addTypeDecl(newDV); return newDVIdx; }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/0f2aae2c22c5dc0957f0413b6320b4c5497482e8/XSDSimpleTypeTraverser.java/buggy/src/org/apache/xerces/impl/v2/XSDSimpleTypeTraverser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10080,
5784,
559,
3456,
12,
1046,
4143,
559,
3456,
16,
1033,
8526,
1604,
1972,
13,
288,
3639,
514,
508,
1396,
225,
273,
261,
780,
13,
1747,
1972,
63,
60,
55,
1499,
8847,
18,
789,
56,
25647,
67,
1985,
15533,
3639,
514,
24133,
273,
508,
1396,
31,
3639,
368,
9634,
6062,
3639,
368,
444,
9348,
508,
3639,
368,
9634,
6062,
3639,
309,
261,
529,
1396,
422,
446,
13,
288,
368,
13236,
4143,
559,
5411,
24133,
273,
225,
284,
3078,
1759,
18,
74,
2326,
3402,
15,
15937,
9078,
7,
55,
17133,
15,
12,
74,
5784,
559,
979,
265,
1380,
9904,
1769,
5411,
368,
862,
26780,
1285,
30,
5411,
368,
527,
358,
3273,
1014,
35,
3639,
289,
3639,
469,
288,
5411,
368,
333,
14273,
711,
2118,
3550,
1427,
716,
732,
15826,
5411,
368,
1207,
640,
19724,
1257,
487,
309,
2898,
22497,
628,
326,
1963,
74,
1383,
1243,
1981,
12517,
5411,
368,
2321,
358,
6002,
731,
640,
19724,
1257,
628,
12783,
598,
1158,
5411,
368,
1018,
4937,
18,
225,
300,
423,
43,
5411,
368,
430,
261,
74,
2326,
3156,
3098,
780,
18,
2469,
1832,
480,
374,
13,
288,
5411,
24133,
273,
284,
3078,
1759,
18,
74,
2326,
3402,
15,
15937,
15,
19724,
461,
31,
5411,
19363,
5411,
368,
862,
26780,
1285,
30,
5411,
368,
527,
358,
3273,
1014,
35,
3639,
289,
3639,
368,
5802,
13093,
3639,
368,
1893,
309,
732,
1240,
1818,
29062,
326,
1967,
4143,
559,
3496,
3639,
368,
5802,
13093,
3639,
1748,
430,
261,
74,
3078,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10080,
5784,
559,
3456,
12,
1046,
4143,
559,
3456,
16,
1033,
8526,
1604,
1972,
13,
288,
3639,
514,
508,
1396,
225,
273,
261,
780,
13,
1747,
1972,
63,
60,
55,
1499,
8847,
18,
789,
56,
25647,
67,
1985,
15533,
3639,
514,
24133,
273,
508,
1396,
31,
3639,
368,
9634,
6062,
3639,
368,
444,
9348,
508,
3639,
368,
9634,
6062,
3639,
309,
261,
529,
1396,
422,
446,
13,
288,
368,
13236,
4143,
559,
5411,
24133,
273,
225,
284,
3078,
1759,
18,
74,
2326,
3402,
15,
15937,
9078,
7,
55,
17133,
15,
12,
74,
5784,
559,
979,
265,
1380,
9904,
1769,
5411,
368,
862,
26780,
1285,
30,
5411,
368,
527,
358,
3273,
1014,
35,
3639,
289,
3639,
469,
2
] |
int tmp1 = wordAt(T, c); int tmp2 = 0;
|
int tC = wordAt(T, c); int aI = 0;
|
private void stepAlongPath() throws MemoryBoundFunctionException { // update indices into A and wrap them i += 4; // i is a word index into a byte array i &= 0x3fc; j += wordAt(A, i); j &= 0x3fc; // logger.info("Step at " + c + " indices [" + i + "," + j + "]"); // feed bits from T into A[i] and rotate them int tmp1 = wordAt(T, c); int tmp2 = 0; switch (T.length) { case 16*1024*1024: tmp2 = cyclicRightShift11(wordAt(A, i) + tmp1); break; case 1024*1024: tmp2 = cyclicRightShift15(wordAt(A, i) + tmp1); break; } setWordAt(A, i, tmp2); // swap A[i] and A[j] tmp2 = wordAt(A, i); int tmp3 = wordAt(A, j); setWordAt(A, i, tmp3); setWordAt(A, j, tmp2); // update c switch (T.length) { case 16*1024*1024: c = (tmp1 ^ wordAt(A, (tmp2 + tmp3) & 0x3fc)) & 0x00fffffc; break; case 1024*1024: c = (tmp1 ^ wordAt(A, (tmp2 + tmp3) & 0x3fc)) & 0x000ffffc; break; } if (c < 0 || c > (T.length-4) || ( c & 0x3 ) != 0) throw new MemoryBoundFunctionException("bad c " + c + " T[" + T.length + "]"); pathIndex++; }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/6c240c5104bc8aea4f8c949afaefb548db954942/MBF1.java/buggy/src/org/lockss/mbf/MBF1.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2235,
1067,
932,
743,
1435,
1216,
9251,
3499,
2083,
503,
288,
565,
368,
1089,
4295,
1368,
432,
471,
2193,
2182,
565,
277,
1011,
1059,
31,
368,
277,
353,
279,
2076,
770,
1368,
279,
1160,
526,
565,
277,
12058,
374,
92,
23,
7142,
31,
565,
525,
1011,
2076,
861,
12,
37,
16,
277,
1769,
565,
525,
12058,
374,
92,
23,
7142,
31,
565,
368,
1194,
18,
1376,
2932,
4160,
622,
315,
397,
276,
397,
315,
4295,
8247,
397,
277,
397,
5753,
397,
525,
397,
9870,
1769,
565,
368,
4746,
4125,
628,
399,
1368,
432,
63,
77,
65,
471,
8534,
2182,
565,
509,
1853,
21,
273,
2076,
861,
12,
56,
16,
276,
1769,
565,
509,
1853,
22,
273,
374,
31,
565,
1620,
261,
56,
18,
2469,
13,
288,
565,
648,
2872,
14,
2163,
3247,
14,
2163,
3247,
30,
1377,
1853,
22,
273,
30383,
4726,
10544,
2499,
12,
1095,
861,
12,
37,
16,
277,
13,
397,
1853,
21,
1769,
1377,
898,
31,
565,
648,
6250,
14,
2163,
3247,
30,
1377,
1853,
22,
273,
30383,
4726,
10544,
3600,
12,
1095,
861,
12,
37,
16,
277,
13,
397,
1853,
21,
1769,
1377,
898,
31,
565,
289,
1850,
444,
3944,
861,
12,
37,
16,
277,
16,
1853,
22,
1769,
565,
368,
7720,
432,
63,
77,
65,
471,
432,
63,
78,
65,
565,
1853,
22,
273,
2076,
861,
12,
37,
16,
277,
1769,
565,
509,
1853,
23,
273,
2076,
861,
12,
37,
16,
525,
1769,
565,
444,
3944,
861,
12,
37,
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,
2235,
1067,
932,
743,
1435,
1216,
9251,
3499,
2083,
503,
288,
565,
368,
1089,
4295,
1368,
432,
471,
2193,
2182,
565,
277,
1011,
1059,
31,
368,
277,
353,
279,
2076,
770,
1368,
279,
1160,
526,
565,
277,
12058,
374,
92,
23,
7142,
31,
565,
525,
1011,
2076,
861,
12,
37,
16,
277,
1769,
565,
525,
12058,
374,
92,
23,
7142,
31,
565,
368,
1194,
18,
1376,
2932,
4160,
622,
315,
397,
276,
397,
315,
4295,
8247,
397,
277,
397,
5753,
397,
525,
397,
9870,
1769,
565,
368,
4746,
4125,
628,
399,
1368,
432,
63,
77,
65,
471,
8534,
2182,
565,
509,
1853,
21,
273,
2076,
861,
12,
56,
16,
276,
1769,
565,
509,
1853,
22,
273,
2
] |
try {
|
try {
|
public void testN() { Vector v = new Vector(); v.add("one"); v.add("two"); Iterator iter = new EnumerationIterator(v.elements()); assertTrue(iter.hasNext()); assertEquals("one", iter.next()); assertTrue(iter.hasNext()); assertEquals("two", iter.next()); assertTrue( ! iter.hasNext()); try { iter.next(); fail("Should raise java.util.NoSuchElementException"); } catch (java.util.NoSuchElementException e) { } }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/6938da50dd007d67baeee98f7e142cbfc07cb1bb/TestEnumerationIterator.java/buggy/test/src/org/lockss/util/TestEnumerationIterator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
50,
1435,
288,
565,
5589,
331,
273,
394,
5589,
5621,
565,
331,
18,
1289,
2932,
476,
8863,
565,
331,
18,
1289,
2932,
15415,
8863,
565,
4498,
1400,
273,
394,
13864,
3198,
12,
90,
18,
6274,
10663,
565,
1815,
5510,
12,
2165,
18,
5332,
2134,
10663,
565,
1815,
8867,
2932,
476,
3113,
1400,
18,
4285,
10663,
565,
1815,
5510,
12,
2165,
18,
5332,
2134,
10663,
565,
1815,
8867,
2932,
15415,
3113,
1400,
18,
4285,
10663,
565,
1815,
5510,
12,
401,
1400,
18,
5332,
2134,
10663,
565,
775,
288,
4202,
1400,
18,
4285,
5621,
1377,
2321,
2932,
14309,
1002,
2252,
18,
1367,
18,
28341,
20826,
8863,
377,
289,
1044,
261,
6290,
18,
1367,
18,
28341,
20826,
425,
13,
288,
377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
50,
1435,
288,
565,
5589,
331,
273,
394,
5589,
5621,
565,
331,
18,
1289,
2932,
476,
8863,
565,
331,
18,
1289,
2932,
15415,
8863,
565,
4498,
1400,
273,
394,
13864,
3198,
12,
90,
18,
6274,
10663,
565,
1815,
5510,
12,
2165,
18,
5332,
2134,
10663,
565,
1815,
8867,
2932,
476,
3113,
1400,
18,
4285,
10663,
565,
1815,
5510,
12,
2165,
18,
5332,
2134,
10663,
565,
1815,
8867,
2932,
15415,
3113,
1400,
18,
4285,
10663,
565,
1815,
5510,
12,
401,
1400,
18,
5332,
2134,
10663,
565,
775,
288,
4202,
1400,
18,
4285,
5621,
1377,
2321,
2932,
14309,
1002,
2252,
18,
1367,
18,
28341,
20826,
8863,
377,
289,
1044,
261,
6290,
18,
1367,
18,
28341,
20826,
425,
2
] |
fSchemaDefault = null;
|
public void reset() { fNormalizedValue = null; fDeclaration = null; fSchemaDefault = null; fTypeDecl = null; fSpecified = false; fMemberType = null; fValidationAttempted = AttributePSVI.VALIDATION_NONE; fValidity = AttributePSVI.VALIDITY_NOTKNOWN; fErrorCodes = null; fValidationContext = null; }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/7392bd92a4fbb068fb68a41a3d0b1412cdedfbf3/AttributePSVImpl.java/buggy/src/org/apache/xerces/impl/xs/AttributePSVImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
1435,
288,
3639,
284,
15577,
620,
273,
446,
31,
3639,
284,
6094,
273,
446,
31,
9079,
284,
559,
3456,
273,
446,
31,
3639,
284,
17068,
273,
629,
31,
3639,
284,
4419,
559,
273,
446,
31,
3639,
284,
4354,
28788,
273,
3601,
5857,
4136,
18,
5063,
2689,
67,
9826,
31,
3639,
284,
19678,
273,
3601,
5857,
4136,
18,
5063,
4107,
67,
4400,
9308,
31,
3639,
284,
668,
6295,
273,
446,
31,
3639,
284,
4354,
1042,
273,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
1435,
288,
3639,
284,
15577,
620,
273,
446,
31,
3639,
284,
6094,
273,
446,
31,
9079,
284,
559,
3456,
273,
446,
31,
3639,
284,
17068,
273,
629,
31,
3639,
284,
4419,
559,
273,
446,
31,
3639,
284,
4354,
28788,
273,
3601,
5857,
4136,
18,
5063,
2689,
67,
9826,
31,
3639,
284,
19678,
273,
3601,
5857,
4136,
18,
5063,
4107,
67,
4400,
9308,
31,
3639,
284,
668,
6295,
273,
446,
31,
3639,
284,
4354,
1042,
273,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
public void handlePreprocessorDirective(IScannerData scannerData, String directive, String restOfLine) {
|
public void handlePreprocessorDirective(IScannerData iscanner, String directive, String restOfLine) {
|
public void handlePreprocessorDirective(IScannerData scannerData, String directive, String restOfLine) { if( directive.equals(POUND_INCLUDE_NEXT) ) { TraceUtil.outputTrace(scannerData.getLogService(), "GCCScannerExtension handling #include_next directive", null, null, null, null); //$NON-NLS-1$ // figure out the name of the current file and its path IScannerContext context = scannerData.getContextStack().getCurrentContext(); if( context == null || context.getKind() != IScannerContext.ContextKind.INCLUSION ) return; String fullInclusionPath = context.getContextName(); IASTInclusion inclusion = ((ScannerContextInclusion)context).getExtension(); Iterator iter = scannerData.getIncludePathNames().iterator(); while (iter.hasNext()) { String path = (String)iter.next(); String completePath = ScannerUtility.createReconciledPath(path, inclusion.getName() ); if( completePath.equals( fullInclusionPath ) ) break; } ScannerUtility.InclusionDirective parsedDirective = null; try { parsedDirective = ScannerUtility.parseInclusionDirective( scannerData, this, restOfLine, scannerData.getContextStack().getCurrentContext().getOffset() ); } catch (InclusionParseException e) { return; } CodeReader duple = null; // search through include paths while (iter.hasNext()) { String path = (String)iter.next(); duple = ScannerUtility.createReaderDuple( path, parsedDirective.getFilename(), scannerData.getClientRequestor(), scannerData.getWorkingCopies() ); if( duple != null ) break; } if( duple != null ) { try { scannerData.getContextStack().updateInclusionContext(duple.getUnderlyingReader(), duple.getFilename(), inclusion, scannerData.getClientRequestor() ); TraceUtil.outputTrace( scannerData.getLogService(), "GCCScannerExtension handling #include_next directive successfully pushed on new include file" ); //$NON-NLS-1$ } catch (ContextException e1) { return; } } } else if( directive.equals( POUND_WARNING) || directive.equals(POUND_IDENT)) return; // good enough -- the rest of the line has been consumed }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f8ede5731ba7089e380f1d53f05402d0923c9235/GCCScannerExtension.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
1386,
8700,
13307,
12,
45,
11338,
751,
7683,
751,
16,
514,
8655,
16,
514,
3127,
951,
1670,
13,
288,
202,
202,
430,
12,
8655,
18,
14963,
12,
2419,
5240,
67,
26003,
67,
25539,
13,
262,
3196,
202,
95,
1082,
202,
3448,
1304,
18,
2844,
3448,
12,
26842,
751,
18,
588,
1343,
1179,
9334,
315,
43,
6743,
11338,
3625,
5057,
468,
6702,
67,
4285,
8655,
3113,
446,
16,
446,
16,
446,
16,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
759,
7837,
596,
326,
508,
434,
326,
783,
585,
471,
2097,
589,
1082,
202,
45,
11338,
1042,
819,
273,
7683,
751,
18,
29120,
2624,
7675,
588,
3935,
1042,
5621,
1082,
202,
430,
12,
819,
422,
446,
747,
819,
18,
588,
5677,
1435,
480,
467,
11338,
1042,
18,
1042,
5677,
18,
706,
5017,
3378,
1146,
262,
4697,
202,
2463,
31,
25083,
202,
780,
1983,
382,
15335,
743,
273,
819,
18,
29120,
461,
5621,
1082,
202,
45,
9053,
382,
15335,
26485,
273,
14015,
11338,
1042,
382,
15335,
13,
2472,
2934,
588,
3625,
5621,
25083,
202,
3198,
1400,
273,
7683,
751,
18,
588,
8752,
743,
1557,
7675,
9838,
5621,
25083,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
9506,
202,
780,
589,
273,
261,
780,
13,
2165,
18,
4285,
5621,
9506,
202,
780,
3912,
743,
273,
19074,
6497,
18,
2640,
426,
11504,
1411,
743,
12,
803,
16,
26485,
18,
17994,
1435,
11272,
9506,
202,
430,
12,
3912,
743,
18,
14963,
12,
1983,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
1386,
8700,
13307,
12,
45,
11338,
751,
7683,
751,
16,
514,
8655,
16,
514,
3127,
951,
1670,
13,
288,
202,
202,
430,
12,
8655,
18,
14963,
12,
2419,
5240,
67,
26003,
67,
25539,
13,
262,
3196,
202,
95,
1082,
202,
3448,
1304,
18,
2844,
3448,
12,
26842,
751,
18,
588,
1343,
1179,
9334,
315,
43,
6743,
11338,
3625,
5057,
468,
6702,
67,
4285,
8655,
3113,
446,
16,
446,
16,
446,
16,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
759,
7837,
596,
326,
508,
434,
326,
783,
585,
471,
2097,
589,
1082,
202,
45,
11338,
1042,
819,
273,
7683,
751,
18,
29120,
2624,
7675,
588,
3935,
1042,
5621,
1082,
202,
430,
2
] |
public IRubyObject evalSimple(ThreadContext context, IRubyObject src, String file) { // this is ensured by the callers assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); // no binding, just eval in "current" frame (caller's frame) Iter iter = threadContext.getFrameIter(); IRubyObject result = getRuntime().getNil(); try { // hack to avoid using previous frame if we're the first frame, since this eval is used to start execution too if (threadContext.getPreviousFrame() != null) { threadContext.setFrameIter(threadContext.getPreviousFrameIter()); } result = EvaluationState.eval(threadContext, getRuntime().parse(src.toString(), file, threadContext.getCurrentScope()), this); } finally { // FIXME: this is broken for Proc, see above threadContext.setFrameIter(iter); // restore position threadContext.setPosition(savedPosition); } return result; }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/clean/src/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
5302,
5784,
12,
3830,
1042,
819,
16,
15908,
10340,
921,
1705,
16,
514,
585,
13,
288,
3639,
368,
333,
353,
3387,
72,
635,
326,
19932,
3639,
1815,
585,
480,
446,
31,
7734,
4884,
1042,
2650,
1042,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
467,
1830,
2555,
5198,
2555,
273,
2650,
1042,
18,
588,
2555,
5621,
3639,
368,
1158,
5085,
16,
2537,
5302,
316,
315,
2972,
6,
2623,
261,
16140,
1807,
2623,
13,
3639,
3016,
1400,
273,
2650,
1042,
18,
588,
3219,
2360,
5621,
3639,
15908,
10340,
921,
563,
273,
18814,
7675,
588,
12616,
5621,
7734,
775,
288,
5411,
368,
11769,
358,
4543,
1450,
2416,
2623,
309,
732,
4565,
326,
1122,
2623,
16,
3241,
333,
5302,
353,
1399,
358,
787,
4588,
4885,
5411,
309,
261,
5930,
1042,
18,
588,
8351,
3219,
1435,
480,
446,
13,
288,
7734,
2650,
1042,
18,
542,
3219,
2360,
12,
5930,
1042,
18,
588,
8351,
3219,
2360,
10663,
5411,
289,
13491,
563,
273,
17340,
1119,
18,
8622,
12,
5930,
1042,
16,
18814,
7675,
2670,
12,
4816,
18,
10492,
9334,
585,
16,
2650,
1042,
18,
588,
3935,
3876,
1435,
3631,
333,
1769,
3639,
289,
3095,
288,
5411,
368,
9852,
30,
333,
353,
12933,
364,
18470,
16,
2621,
5721,
5411,
2650,
1042,
18,
542,
3219,
2360,
12,
2165,
1769,
13491,
368,
5217,
1754,
5411,
2650,
1042,
18,
542,
2555,
12,
14077,
2555,
1769,
3639,
289,
7734,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
5302,
5784,
12,
3830,
1042,
819,
16,
15908,
10340,
921,
1705,
16,
514,
585,
13,
288,
3639,
368,
333,
353,
3387,
72,
635,
326,
19932,
3639,
1815,
585,
480,
446,
31,
7734,
4884,
1042,
2650,
1042,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
467,
1830,
2555,
5198,
2555,
273,
2650,
1042,
18,
588,
2555,
5621,
3639,
368,
1158,
5085,
16,
2537,
5302,
316,
315,
2972,
6,
2623,
261,
16140,
1807,
2623,
13,
3639,
3016,
1400,
273,
2650,
1042,
18,
588,
3219,
2360,
5621,
3639,
15908,
10340,
921,
563,
273,
18814,
7675,
588,
12616,
5621,
7734,
775,
288,
5411,
368,
11769,
358,
4543,
1450,
2416,
2623,
309,
732,
4565,
326,
1122,
2623,
16,
3241,
2
] |
||
wme = null;
|
private void DestroyWME(WMElement wme) { assert wme != null; m_Agent.DestroyWME(wme); wme = null; }
|
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/8c96877f6ac6e434535d5ee2775ff3d8cffb604e/InputLinkManager.java/buggy/SoarSuite/Environments/JavaTankSoar/source/tanksoar/InputLinkManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
15701,
59,
958,
12,
59,
12310,
341,
3501,
13,
288,
202,
202,
11231,
341,
3501,
480,
446,
31,
202,
202,
81,
67,
3630,
18,
10740,
59,
958,
12,
91,
3501,
1769,
202,
202,
91,
3501,
273,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
15701,
59,
958,
12,
59,
12310,
341,
3501,
13,
288,
202,
202,
11231,
341,
3501,
480,
446,
31,
202,
202,
81,
67,
3630,
18,
10740,
59,
958,
12,
91,
3501,
1769,
202,
202,
91,
3501,
273,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
mocker.verifyExpectations(); }
|
mocker.verifyExpectations(); }
|
public void testMethodMethodWithConstraintAddsMethodNameMatcherButDoesNotAddSelfToIdentityTable() { Constraint nameConstraint = (Constraint)newDummy(Constraint.class, "nameConstraint"); mocker.addedMatcherType.setExpected(MethodNameMatcher.class); assertNotNull("Should be Stub Builder", builder.method(nameConstraint)); mocker.verifyExpectations(); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/InvocationMockerBuilderTest.java/clean/jmock/core/src/test/jmock/builder/InvocationMockerBuilderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1305,
1305,
1190,
5806,
3655,
11666,
6286,
31167,
10154,
1248,
986,
10084,
774,
4334,
1388,
1435,
288,
202,
202,
5806,
508,
5806,
273,
261,
5806,
13,
2704,
20094,
12,
5806,
18,
1106,
16,
315,
529,
5806,
8863,
202,
202,
81,
6203,
18,
9665,
6286,
559,
18,
542,
6861,
12,
11666,
6286,
18,
1106,
1769,
202,
202,
11231,
5962,
2932,
14309,
506,
26483,
5008,
3113,
2089,
18,
2039,
12,
529,
5806,
10019,
202,
202,
81,
6203,
18,
8705,
11988,
1012,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1305,
1305,
1190,
5806,
3655,
11666,
6286,
31167,
10154,
1248,
986,
10084,
774,
4334,
1388,
1435,
288,
202,
202,
5806,
508,
5806,
273,
261,
5806,
13,
2704,
20094,
12,
5806,
18,
1106,
16,
315,
529,
5806,
8863,
202,
202,
81,
6203,
18,
9665,
6286,
559,
18,
542,
6861,
12,
11666,
6286,
18,
1106,
1769,
202,
202,
11231,
5962,
2932,
14309,
506,
26483,
5008,
3113,
2089,
18,
2039,
12,
529,
5806,
10019,
202,
202,
81,
6203,
18,
8705,
11988,
1012,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!cmdLineStr.equals(newestLine)) history.addCommand(cmdLineStr); }
|
if (!cmdLineStr.equals(newestLine)) history.addCommand(cmdLineStr); }
|
public void addCommandToHistory(String cmdLineStr) { // Add this command to the history. if (!cmdLineStr.equals(newestLine)) history.addCommand(cmdLineStr); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c2a519140737c4d249f6c5d568256db2030112e9/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20008,
774,
5623,
12,
780,
1797,
1670,
1585,
13,
288,
3639,
368,
225,
1436,
333,
1296,
358,
326,
4927,
18,
3639,
309,
16051,
4172,
1670,
1585,
18,
14963,
12,
2704,
395,
1670,
3719,
5411,
4927,
18,
1289,
2189,
12,
4172,
1670,
1585,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20008,
774,
5623,
12,
780,
1797,
1670,
1585,
13,
288,
3639,
368,
225,
1436,
333,
1296,
358,
326,
4927,
18,
3639,
309,
16051,
4172,
1670,
1585,
18,
14963,
12,
2704,
395,
1670,
3719,
5411,
4927,
18,
1289,
2189,
12,
4172,
1670,
1585,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertSame("The binding should be active", binding.getCommandId(), bindingManager.getPerfectMatch(TestBinding.TRIGGER_SEQUENCE));
|
assertSame("The binding should be active", binding, bindingManager .getPerfectMatch(TestBinding.TRIGGER_SEQUENCE));
|
public final void testAddBinding() throws NotDefinedException { // Set up a state in which a binding may become active. final Context context = contextManager.getContext("na"); context.define("name", "description", null); final Scheme scheme = bindingManager.getScheme("na"); scheme.define("name", "description", null); bindingManager.setActiveScheme(scheme); final Set activeContextIds = new HashSet(); activeContextIds.add("na"); contextManager.setActiveContextIds(activeContextIds); // Try to add a null binding. try { bindingManager.addBinding(null); fail("It should not be possible to add a null binding"); } catch (final NullPointerException e) { // Success. } // Try to add a binding that should become active. final Binding binding = new TestBinding("conflict1", "na", "na", null, null, Binding.SYSTEM); bindingManager.addBinding(binding); assertSame("The binding should be active", binding.getCommandId(), bindingManager.getPerfectMatch(TestBinding.TRIGGER_SEQUENCE)); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/BindingManagerTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingManagerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1842,
986,
5250,
1435,
1216,
2288,
8116,
503,
288,
202,
202,
759,
1000,
731,
279,
919,
316,
1492,
279,
5085,
2026,
12561,
2695,
18,
202,
202,
6385,
1772,
819,
273,
819,
1318,
18,
29120,
2932,
6582,
8863,
202,
202,
2472,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
6385,
10714,
4355,
273,
5085,
1318,
18,
588,
9321,
2932,
6582,
8863,
202,
202,
9068,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
7374,
1318,
18,
542,
3896,
9321,
12,
9068,
1769,
202,
202,
6385,
1000,
2695,
1042,
2673,
273,
394,
6847,
5621,
202,
202,
3535,
1042,
2673,
18,
1289,
2932,
6582,
8863,
202,
202,
2472,
1318,
18,
542,
3896,
1042,
2673,
12,
3535,
1042,
2673,
1769,
202,
202,
759,
6161,
358,
527,
279,
446,
5085,
18,
202,
202,
698,
288,
1082,
202,
7374,
1318,
18,
1289,
5250,
12,
2011,
1769,
1082,
202,
6870,
2932,
7193,
1410,
486,
506,
3323,
358,
527,
279,
446,
5085,
8863,
202,
202,
97,
1044,
261,
6385,
10108,
425,
13,
288,
1082,
202,
759,
11958,
18,
202,
202,
97,
202,
202,
759,
6161,
358,
527,
279,
5085,
716,
1410,
12561,
2695,
18,
202,
202,
6385,
15689,
5085,
273,
394,
7766,
5250,
2932,
20340,
21,
3113,
315,
6582,
3113,
315,
6582,
3113,
446,
16,
9506,
202,
2011,
16,
15689,
18,
14318,
1769,
202,
202,
7374,
1318,
18,
1289,
5250,
12,
7374,
1769,
202,
202,
11231,
8650,
2932,
1986,
5085,
1410,
506,
2695,
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,
1842,
986,
5250,
1435,
1216,
2288,
8116,
503,
288,
202,
202,
759,
1000,
731,
279,
919,
316,
1492,
279,
5085,
2026,
12561,
2695,
18,
202,
202,
6385,
1772,
819,
273,
819,
1318,
18,
29120,
2932,
6582,
8863,
202,
202,
2472,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
6385,
10714,
4355,
273,
5085,
1318,
18,
588,
9321,
2932,
6582,
8863,
202,
202,
9068,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
7374,
1318,
18,
542,
3896,
9321,
12,
9068,
1769,
202,
202,
6385,
1000,
2695,
1042,
2673,
273,
394,
6847,
5621,
202,
202,
3535,
1042,
2673,
18,
1289,
2932,
6582,
8863,
202,
202,
2472,
1318,
18,
2
] |
yc = getFitYPosition( xArray,
|
ys = getFitYPosition( xArray,
|
protected final void renderFittingCurve( IPrimitiveRenderer ipr, Location[] points, CurveFitting curve, boolean bShowAsTape, boolean bDeferred ) throws ChartException { if ( !curve.getLineAttributes( ).isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.curve.line.visibility.not.defined", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getULocale( ).toLocale( ) ) ); } boolean isTransposed = ( (ChartWithAxes) getModel( ) ).isTransposed( ); if ( curve.getLineAttributes( ).isVisible( ) ) { ScriptHandler.callFunction( getRunTimeContext( ).getScriptHandler( ), ScriptHandler.BEFORE_DRAW_FITTING_CURVE, curve, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_FITTING_CURVE, curve ); // Render curve. double[] xArray = new double[points.length]; double[] yArray = new double[points.length]; for ( int i = 0; i < xArray.length; i++ ) { xArray[i] = points[i].getX( ); yArray[i] = points[i].getY( ); } sort( xArray, yArray, !isTransposed ); double[] baseArray = xArray, orthogonalArray = yArray; if ( isTransposed ) { baseArray = yArray; orthogonalArray = xArray; } FittingCalculator fc = new FittingCalculator( baseArray, orthogonalArray, 0.33 ); double[] fitYarray = fc.getFittedValue( ); orthogonalArray = fitYarray; if ( isTransposed ) { baseArray = fitYarray; orthogonalArray = yArray; sort( baseArray, orthogonalArray, false ); } if ( curve.getLineAttributes( ).getColor( ) != null ) { CurveRenderer crdr = new CurveRenderer( (ChartWithAxes) getModel( ), this, curve.getLineAttributes( ), LocationImpl.create( baseArray, orthogonalArray ), bShowAsTape, -1, bDeferred, false, null, false, true ); crdr.draw( ipr ); } // Render curve label. if ( curve.getLabel( ).isSetVisible( ) && curve.getLabel( ).isVisible( ) ) { Label lb = LabelImpl.copyInstance( curve.getLabel( ) ); // handle external resource string final String sPreviousValue = lb.getCaption( ).getValue( ); lb.getCaption( ) .setValue( getRunTimeContext( ).externalizedMessage( sPreviousValue ) ); if ( isTransposed ) { // transpose text angel. double rot = lb.getCaption( ).getFont( ).getRotation( ); if ( rot >= 0 && rot <= 90 ) { rot = -( 90 - rot ); } else if ( rot < 0 && rot >= -90 ) { rot = ( rot + 90 ); } lb.getCaption( ).getFont( ).setRotation( rot ); } BoundingBox bb = Methods.computeBox( getXServer( ), IConstants.LEFT/* DONT-CARE */, lb, 0, 0 ); Anchor lbAnchor = curve.getLabelAnchor( ); if ( lbAnchor == null ) { lbAnchor = Anchor.NORTH_LITERAL; } int horizontal = IConstants.CENTER; int vertical = IConstants.ABOVE; // convert anchor to position. switch ( lbAnchor.getValue( ) ) { case Anchor.WEST : case Anchor.NORTH_WEST : case Anchor.SOUTH_WEST : horizontal = IConstants.LEFT; break; case Anchor.NORTH : case Anchor.SOUTH : horizontal = IConstants.CENTER; break; case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : horizontal = IConstants.RIGHT; break; } switch ( lbAnchor.getValue( ) ) { case Anchor.NORTH : case Anchor.NORTH_WEST : case Anchor.NORTH_EAST : case Anchor.WEST : case Anchor.EAST : vertical = IConstants.ABOVE; break; case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : vertical = IConstants.BELOW; break; } double xc, yc; if ( isTransposed ) { if ( horizontal == IConstants.LEFT ) { yc = orthogonalArray[orthogonalArray.length - 1] - bb.getHeight( ); } else if ( horizontal == IConstants.RIGHT ) { yc = orthogonalArray[0] + bb.getHeight( ) / 2d; } else { yc = orthogonalArray[0] + ( orthogonalArray[orthogonalArray.length - 1] - orthogonalArray[0] ) / 2d; } xc = getFitYPosition( orthogonalArray, baseArray, yc, bb.getHeight( ), bb.getWidth( ), vertical == IConstants.BELOW ); } else { if ( horizontal == IConstants.LEFT ) { xc = xArray[0]; } else if ( horizontal == IConstants.RIGHT ) { xc = xArray[xArray.length - 1] - bb.getWidth( ); } else { xc = xArray[0] + ( xArray[xArray.length - 1] - xArray[0] ) / 2d; } yc = getFitYPosition( xArray, fitYarray, xc, bb.getWidth( ), bb.getHeight( ), vertical == IConstants.ABOVE ); } bb.setLeft( xc ); bb.setTop( yc ); if ( ChartUtil.isShadowDefined( lb ) ) { renderLabel( StructureSource.createSeries( getSeries( ) ), TextRenderEvent.RENDER_SHADOW_AT_LOCATION, lb, Position.RIGHT_LITERAL, LocationImpl.create( bb.getLeft( ), bb.getTop( ) ), BoundsImpl.create( bb.getLeft( ), bb.getTop( ), bb.getWidth( ), bb.getHeight( ) ) ); } renderLabel( StructureSource.createSeries( getSeries( ) ), TextRenderEvent.RENDER_TEXT_IN_BLOCK, lb, Position.RIGHT_LITERAL, LocationImpl.create( bb.getLeft( ), bb.getTop( ) ), BoundsImpl.create( bb.getLeft( ), bb.getTop( ), bb.getWidth( ), bb.getHeight( ) ) ); } ScriptHandler.callFunction( getRunTimeContext( ).getScriptHandler( ), ScriptHandler.AFTER_DRAW_FITTING_CURVE, curve, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_FITTING_CURVE, curve ); } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/184ae303bb54cdc60a659343e9d077077e13f8fc/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
1743,
14219,
1787,
9423,
12,
467,
9840,
6747,
277,
683,
16,
1082,
202,
2735,
8526,
3143,
16,
22901,
14219,
1787,
8882,
16,
1250,
324,
5706,
1463,
30421,
16,
1082,
202,
6494,
324,
16886,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
16683,
18,
588,
1670,
2498,
12,
262,
18,
291,
694,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
25230,
1360,
16,
6862,
202,
6,
4064,
18,
16683,
18,
1369,
18,
14422,
18,
902,
18,
2178,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
6862,
1082,
202,
588,
1997,
950,
1042,
12,
262,
18,
588,
57,
3916,
12,
262,
18,
869,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
6494,
353,
1429,
7423,
273,
261,
261,
7984,
1190,
26494,
13,
7454,
12,
262,
262,
18,
291,
1429,
7423,
12,
11272,
202,
202,
430,
261,
8882,
18,
588,
1670,
2498,
12,
262,
18,
291,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
3651,
1503,
18,
1991,
2083,
12,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
262,
16,
6862,
202,
3651,
1503,
18,
19152,
67,
40,
10821,
67,
42,
30972,
1360,
67,
7509,
3412,
16,
6862,
202,
16683,
16,
6862,
202,
588,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1042,
12,
262,
11272,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
1743,
14219,
1787,
9423,
12,
467,
9840,
6747,
277,
683,
16,
1082,
202,
2735,
8526,
3143,
16,
22901,
14219,
1787,
8882,
16,
1250,
324,
5706,
1463,
30421,
16,
1082,
202,
6494,
324,
16886,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
16683,
18,
588,
1670,
2498,
12,
262,
18,
291,
694,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
25230,
1360,
16,
6862,
202,
6,
4064,
18,
16683,
18,
1369,
18,
14422,
18,
902,
18,
2178,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
2
] |
} else if(cmd.equals("Open")) {
|
} else if (cmd.equals("Open")) {
|
void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); int returnValue = -1; if(cmd.equals("Cut") || cmd.equals("Copy") || cmd.equals("Paste")) { JInternalFrame f = getSelectedFrame(); if(f != null && f instanceof ActionListener) { ((ActionListener)f).actionPerformed(e); } } else if(cmd.equals("Step Over")) { returnValue = STEP_OVER; } else if(cmd.equals("Step Into")) { returnValue = STEP_INTO; } else if(cmd.equals("Step Out")) { returnValue = STEP_OUT; } else if(cmd.equals("Go")) { returnValue = GO; } else if(cmd.equals("Break")) { doBreak(); } else if(cmd.equals("Run to Cursor")) { returnValue = RUN_TO_CURSOR; } else if(cmd.equals("Exit")) { Exit(); } else if(cmd.equals("Open")) { Scriptable scope = getScope(); if(scope == null) { MessageDialogWrapper.showMessageDialog(this, "Can't compile scripts: no scope available", "Open", JOptionPane.ERROR_MESSAGE); } else { String fileName = chooseFile("Select a file to compile"); if(fileName != null) { new Thread(new OpenFile(this, scope, fileName)).start(); } } } else if(cmd.equals("Load")) { Scriptable scope = getScope(); if(scope == null) { MessageDialogWrapper.showMessageDialog(this, "Can't run scripts: no scope available", "Run", JOptionPane.ERROR_MESSAGE); } else { String fileName = chooseFile("Select a file to execute"); if(fileName != null) { new Thread(new LoadFile(this, scope, fileName)).start(); } } } else if(cmd.equals("More Windows...")) { MoreWindows dlg = new MoreWindows(this, fileWindows, "Window", "Files"); dlg.showDialog(this); } else if(cmd.equals("Console")) { if(console.isIcon()) { desk.getDesktopManager().deiconifyFrame(console); } console.show(); desk.getDesktopManager().activateFrame(console); console.consoleTextArea.requestFocus(); } else if(cmd.equals("Cut")) { } else if(cmd.equals("Copy")) { } else if(cmd.equals("Paste")) { } else if(cmd.equals("Go to function...")) { FindFunction dlg = new FindFunction(this, functionMap, "Go to function", "Function"); dlg.showDialog(this); } else if(cmd.equals("Tile")) { JInternalFrame[] frames = desk.getAllFrames(); int count = frames.length; int rows, cols; rows = cols = (int)Math.sqrt(count); if(rows*cols < count) { cols++; if(rows * cols < count) { rows++; } } Dimension size = desk.getSize(); int w = size.width/cols; int h = size.height/rows; int x = 0; int y = 0; for(int i = 0; i < rows; i++) { for(int j = 0; j < cols; j++) { int index = (i*cols) + j; if(index >= frames.length) { break; } JInternalFrame f = frames[index]; try { f.setIcon(false); f.setMaximum(false); } catch (Exception exc) { } desk.getDesktopManager().setBoundsForFrame(f, x, y, w, h); x += w; } y += h; x = 0; } } else if(cmd.equals("Cascade")) { JInternalFrame[] frames = desk.getAllFrames(); int count = frames.length; int x, y, w, h; x = y = 0; h = desk.getHeight(); int d = h / count; if(d > 30) d = 30; for(int i = count -1; i >= 0; i--, x += d, y += d) { JInternalFrame f = frames[i]; try { f.setIcon(false); f.setMaximum(false); } catch (Exception exc) { } Dimension dimen = f.getPreferredSize(); w = dimen.width; h = dimen.height; desk.getDesktopManager().setBoundsForFrame(f, x, y, w, h); } } else { Object obj = getFileWindow(cmd); if(obj != null) { FileWindow w = (FileWindow)obj; try { if(w.isIcon()) { w.setIcon(false); } w.setVisible(true); w.moveToFront(); w.setSelected(true); } catch(Exception exc) { } } } if(returnValue != -1) { if(currentWindow != null) currentWindow.setPosition(-1); synchronized(monitor) { this.returnValue = returnValue; monitor.notify(); } } }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
509,
7750,
273,
300,
21,
31,
3639,
309,
12,
4172,
18,
14963,
2932,
15812,
7923,
747,
1797,
18,
14963,
2932,
2951,
7923,
747,
1797,
18,
14963,
2932,
52,
14725,
6,
3719,
288,
5411,
804,
3061,
3219,
284,
273,
16625,
3219,
5621,
5411,
309,
12,
74,
480,
446,
597,
284,
1276,
25962,
13,
288,
7734,
14015,
1803,
2223,
13,
74,
2934,
1128,
13889,
12,
73,
1769,
5411,
289,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
10752,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
12959,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
657,
869,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
3217,
51,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
2976,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
5069,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
5741,
6,
3719,
288,
5411,
7750,
273,
12389,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
7634,
6,
3719,
288,
5411,
741,
7634,
5621,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
1997,
358,
13949,
6,
3719,
288,
5411,
7750,
273,
15484,
67,
4296,
67,
7509,
55,
916,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
6767,
6,
3719,
288,
5411,
9500,
5621,
3639,
289,
469,
309,
261,
4172,
18,
14963,
2932,
3678,
6,
3719,
288,
5411,
22780,
2146,
273,
19203,
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,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
509,
7750,
273,
300,
21,
31,
3639,
309,
12,
4172,
18,
14963,
2932,
15812,
7923,
747,
1797,
18,
14963,
2932,
2951,
7923,
747,
1797,
18,
14963,
2932,
52,
14725,
6,
3719,
288,
5411,
804,
3061,
3219,
284,
273,
16625,
3219,
5621,
5411,
309,
12,
74,
480,
446,
597,
284,
1276,
25962,
13,
288,
7734,
14015,
1803,
2223,
13,
74,
2934,
1128,
13889,
12,
73,
1769,
5411,
289,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
10752,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
12959,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
657,
2
] |
sourceName = (String)this.stack.pop();
|
fileName = (String)this.stack.pop();
|
public void endTransformingElement(String uri, String name, String raw) throws SAXException, IOException, ProcessingException { if (this.getLogger().isDebugEnabled() == true) { this.getLogger().debug("BEGIN endTransformingElement uri=" + uri + ", name=" + name + ", raw=" + raw); } if ((name.equals(INSERT_ELEMENT) && this.state == STATE_INSERT) || (name.equals(WRITE_ELEMENT) && this.state == STATE_WRITE)) { // get the information from the stack DocumentFragment fragment = null; String tag; String sourceName = null; String path = (this.state == STATE_INSERT ? null : "/"); // source:write's path can be empty String replacePath = null; String reinsert = null; do { tag = (String)this.stack.pop(); if (tag.equals("PATH") == true) { path = (String)this.stack.pop(); } else if (tag.equals("FILE") == true) { sourceName = (String)this.stack.pop(); } else if (tag.equals("FRAGMENT") == true) { fragment = (DocumentFragment)this.stack.pop(); } else if (tag.equals("REPLACE") == true) { replacePath = (String)this.stack.pop(); } else if (tag.equals("REINSERT") == true) { reinsert = (String)this.stack.pop(); } } while ( !tag.equals("END") ); final String localSerializer = (String)this.stack.pop(); final boolean overwrite = this.stack.pop().equals("true"); final boolean create = this.stack.pop().equals("true"); this.insertFragment(sourceName, path, fragment, replacePath, create, overwrite, reinsert, localSerializer, name); this.state = STATE_OUTSIDE; // Element: file } else if (name.equals(SOURCE_ELEMENT) == true && this.state == STATE_FILE) { this.state = this.parent_state; this.stack.push(this.endTextRecording()); this.stack.push("FILE"); // Element: path } else if (name.equals(PATH_ELEMENT) == true && this.state == STATE_PATH) { this.state = this.parent_state; this.stack.push(this.endTextRecording()); this.stack.push("PATH"); // Element: replace } else if (name.equals(REPLACE_ELEMENT) == true && this.state == STATE_REPLACE) { this.state = this.parent_state; this.stack.push(this.endTextRecording()); this.stack.push("REPLACE"); // Element: fragment } else if (name.equals(FRAGMENT_ELEMENT) == true && this.state == STATE_FRAGMENT) { this.state = this.parent_state; this.stack.push(this.endRecording()); this.stack.push("FRAGMENT"); // Element: reinsert } else if (name.equals(REINSERT_ELEMENT) == true && this.state == STATE_REINSERT) { this.state = this.parent_state; this.stack.push(this.endTextRecording()); this.stack.push("REINSERT"); // default } else { super.endTransformingElement(uri, name, raw); } if (this.getLogger().isDebugEnabled() == true) { this.getLogger().debug("END endTransformingElement"); } }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/85f15fcea1e36b96dd965f9e6230ecfbfa1f44f2/SourceWritingTransformer.java/buggy/src/java/org/apache/cocoon/transformation/SourceWritingTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
4059,
310,
1046,
12,
780,
2003,
16,
514,
508,
16,
514,
1831,
13,
565,
1216,
14366,
16,
1860,
16,
19652,
503,
288,
3639,
309,
261,
2211,
18,
588,
3328,
7675,
291,
2829,
1526,
1435,
422,
638,
13,
288,
5411,
333,
18,
588,
3328,
7675,
4148,
2932,
16061,
679,
4059,
310,
1046,
2003,
1546,
397,
2003,
397,
17311,
3104,
508,
1546,
397,
508,
397,
17311,
3104,
1831,
1546,
397,
1831,
1769,
3639,
289,
3639,
309,
14015,
529,
18,
14963,
12,
11356,
67,
10976,
13,
597,
333,
18,
2019,
422,
7442,
67,
11356,
13,
5411,
747,
261,
529,
18,
14963,
12,
11677,
67,
10976,
13,
597,
333,
18,
2019,
422,
7442,
67,
11677,
3719,
288,
5411,
368,
336,
326,
1779,
628,
326,
2110,
5411,
4319,
7456,
5481,
225,
273,
446,
31,
5411,
514,
1047,
31,
5411,
514,
28337,
565,
273,
446,
31,
5411,
514,
589,
3639,
273,
261,
2211,
18,
2019,
422,
7442,
67,
11356,
692,
446,
294,
4016,
1769,
4766,
368,
1084,
30,
2626,
1807,
589,
848,
506,
1008,
5411,
514,
1453,
743,
273,
446,
31,
5411,
514,
283,
6387,
565,
273,
446,
31,
5411,
741,
288,
7734,
1047,
273,
261,
780,
13,
2211,
18,
3772,
18,
5120,
5621,
7734,
309,
261,
2692,
18,
14963,
2932,
4211,
7923,
422,
638,
13,
288,
10792,
589,
273,
261,
780,
13,
2211,
18,
3772,
18,
5120,
5621,
7734,
289,
469,
309,
261,
2692,
18,
14963,
2932,
3776,
7923,
422,
638,
13,
288,
10792,
3968,
273,
261,
780,
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,
679,
4059,
310,
1046,
12,
780,
2003,
16,
514,
508,
16,
514,
1831,
13,
565,
1216,
14366,
16,
1860,
16,
19652,
503,
288,
3639,
309,
261,
2211,
18,
588,
3328,
7675,
291,
2829,
1526,
1435,
422,
638,
13,
288,
5411,
333,
18,
588,
3328,
7675,
4148,
2932,
16061,
679,
4059,
310,
1046,
2003,
1546,
397,
2003,
397,
17311,
3104,
508,
1546,
397,
508,
397,
17311,
3104,
1831,
1546,
397,
1831,
1769,
3639,
289,
3639,
309,
14015,
529,
18,
14963,
12,
11356,
67,
10976,
13,
597,
333,
18,
2019,
422,
7442,
67,
11356,
13,
5411,
747,
261,
529,
18,
14963,
12,
11677,
67,
10976,
13,
597,
333,
18,
2019,
422,
7442,
67,
11677,
3719,
288,
5411,
368,
2
] |
switch ( TradeableItemDatabase.getConsumptionType( itemID ) )
|
switch ( TradeableItemDatabase.getConsumptionType( itemId ) )
|
public static boolean isVisibleWithFilter( Object value, boolean food, boolean booze, boolean other, boolean nosell, boolean notrade ) { boolean isVisibleWithFilter = true; String name = value instanceof AdventureResult ? ((AdventureResult)value).getName() : ((ItemCreationRequest)value).getName(); int itemID = TradeableItemDatabase.getItemID( name ); switch ( TradeableItemDatabase.getConsumptionType( itemID ) ) { case ConsumeItemRequest.CONSUME_EAT: isVisibleWithFilter = food; break; case ConsumeItemRequest.CONSUME_DRINK: isVisibleWithFilter = booze; break; default: if ( value instanceof AdventureResult ) { // Milk of magnesium is marked as food, as are // munchies pills; all others are marked as expected. isVisibleWithFilter = other; if ( name.equals( "milk of magnesium" ) || name.equals( "munchies pills" ) ) isVisibleWithFilter |= food; } else { switch ( ConcoctionsDatabase.getMixingMethod( itemID ) ) { case ItemCreationRequest.COOK: case ItemCreationRequest.COOK_REAGENT: case ItemCreationRequest.SUPER_REAGENT: isVisibleWithFilter = food || other; break; case ItemCreationRequest.COOK_PASTA: case ItemCreationRequest.WOK: isVisibleWithFilter = food; break; case ItemCreationRequest.MIX: case ItemCreationRequest.MIX_SPECIAL: case ItemCreationRequest.STILL_BOOZE: case ItemCreationRequest.MIX_SUPER: isVisibleWithFilter = booze; break; default: isVisibleWithFilter = other; break; } } } int autoSellValue = TradeableItemDatabase.getPriceByID( itemID ); boolean tradeable = TradeableItemDatabase.isTradeable( itemID ); if ( autoSellValue == 0 && !tradeable ) isVisibleWithFilter &= nosell && notrade; else if ( autoSellValue == 0 ) isVisibleWithFilter &= nosell; else if ( !tradeable ) isVisibleWithFilter &= notrade; return isVisibleWithFilter; }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/AdventureResult.java/clean/src/net/sourceforge/kolmafia/AdventureResult.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
20453,
1190,
1586,
12,
1033,
460,
16,
1250,
284,
4773,
16,
1250,
800,
83,
8489,
16,
1250,
1308,
16,
1250,
26628,
1165,
16,
1250,
1158,
20077,
262,
202,
95,
202,
202,
6494,
20453,
1190,
1586,
273,
638,
31,
202,
202,
780,
508,
273,
460,
1276,
4052,
616,
594,
1253,
692,
14015,
1871,
616,
594,
1253,
13,
1132,
2934,
17994,
1435,
294,
14015,
1180,
9906,
691,
13,
1132,
2934,
17994,
5621,
202,
202,
474,
761,
734,
273,
2197,
323,
429,
1180,
4254,
18,
588,
1180,
734,
12,
508,
11272,
202,
202,
9610,
261,
2197,
323,
429,
1180,
4254,
18,
588,
11911,
375,
559,
12,
761,
734,
262,
262,
202,
202,
95,
202,
202,
3593,
20418,
1180,
691,
18,
2248,
30590,
67,
41,
789,
30,
1082,
202,
291,
6207,
1190,
1586,
273,
284,
4773,
31,
1082,
202,
8820,
31,
202,
202,
3593,
20418,
1180,
691,
18,
2248,
30590,
67,
6331,
8476,
30,
1082,
202,
291,
6207,
1190,
1586,
273,
800,
83,
8489,
31,
1082,
202,
8820,
31,
202,
202,
1886,
30,
1082,
202,
430,
261,
460,
1276,
4052,
616,
594,
1253,
262,
1082,
202,
95,
9506,
202,
759,
490,
330,
79,
434,
4447,
23712,
5077,
353,
9350,
487,
284,
4773,
16,
487,
854,
9506,
202,
759,
312,
4384,
606,
293,
737,
87,
31,
777,
10654,
854,
9350,
487,
2665,
18,
9506,
202,
291,
6207,
1190,
1586,
273,
1308,
31,
9506,
202,
430,
261,
508,
18,
14963,
12,
315,
81,
330,
79,
434,
4447,
23712,
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,
1250,
20453,
1190,
1586,
12,
1033,
460,
16,
1250,
284,
4773,
16,
1250,
800,
83,
8489,
16,
1250,
1308,
16,
1250,
26628,
1165,
16,
1250,
1158,
20077,
262,
202,
95,
202,
202,
6494,
20453,
1190,
1586,
273,
638,
31,
202,
202,
780,
508,
273,
460,
1276,
4052,
616,
594,
1253,
692,
14015,
1871,
616,
594,
1253,
13,
1132,
2934,
17994,
1435,
294,
14015,
1180,
9906,
691,
13,
1132,
2934,
17994,
5621,
202,
202,
474,
761,
734,
273,
2197,
323,
429,
1180,
4254,
18,
588,
1180,
734,
12,
508,
11272,
202,
202,
9610,
261,
2197,
323,
429,
1180,
4254,
18,
588,
11911,
375,
559,
12,
761,
734,
262,
262,
202,
202,
95,
202,
202,
3593,
20418,
2
] |
el.setAttribute("index", new Integer(i).toString());
|
el.setAttribute("index", Integer.toString(i));
|
public void makeXMLData(AutomatedInstallData idata, XMLElement panelRoot) { // We add each pack to the panelRoot element for (int i = 0; i < idata.availablePacks.size(); i++) { Pack pack = (Pack) idata.availablePacks.get(i); XMLElement el = new XMLElement("pack"); el.setAttribute("index", new Integer(i).toString()); el.setAttribute("name", pack.name); Boolean selected = Boolean.valueOf(idata.selectedPacks.contains(pack)); el.setAttribute("selected", selected.toString()); panelRoot.addChild(el); } }
|
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/9619b3a25f43787dc92011111668210e06c00c71/PacksPanelAutomationHelper.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanelAutomationHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1221,
4201,
751,
12,
22932,
690,
6410,
751,
612,
396,
16,
1139,
11155,
6594,
2375,
13,
565,
288,
3639,
368,
1660,
527,
1517,
2298,
358,
326,
6594,
2375,
930,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
612,
396,
18,
5699,
4420,
87,
18,
1467,
5621,
277,
27245,
3639,
288,
5411,
7930,
2298,
273,
261,
4420,
13,
612,
396,
18,
5699,
4420,
87,
18,
588,
12,
77,
1769,
5411,
1139,
11155,
415,
273,
394,
1139,
11155,
2932,
2920,
8863,
5411,
415,
18,
542,
1499,
2932,
1615,
3113,
2144,
18,
10492,
12,
77,
10019,
5411,
415,
18,
542,
1499,
2932,
529,
3113,
2298,
18,
529,
1769,
5411,
3411,
3170,
273,
3411,
18,
1132,
951,
12,
350,
396,
18,
8109,
4420,
87,
18,
12298,
12,
2920,
10019,
5411,
415,
18,
542,
1499,
2932,
8109,
3113,
3170,
18,
10492,
10663,
5411,
6594,
2375,
18,
1289,
1763,
12,
292,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1221,
4201,
751,
12,
22932,
690,
6410,
751,
612,
396,
16,
1139,
11155,
6594,
2375,
13,
565,
288,
3639,
368,
1660,
527,
1517,
2298,
358,
326,
6594,
2375,
930,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
612,
396,
18,
5699,
4420,
87,
18,
1467,
5621,
277,
27245,
3639,
288,
5411,
7930,
2298,
273,
261,
4420,
13,
612,
396,
18,
5699,
4420,
87,
18,
588,
12,
77,
1769,
5411,
1139,
11155,
415,
273,
394,
1139,
11155,
2932,
2920,
8863,
5411,
415,
18,
542,
1499,
2932,
1615,
3113,
2144,
18,
10492,
12,
77,
10019,
5411,
415,
18,
542,
1499,
2932,
529,
3113,
2298,
18,
529,
1769,
5411,
3411,
3170,
273,
3411,
18,
1132,
951,
12,
2
] |
addIcode(Icode_CATCH);
|
private void generateICodeFromTree(Node tree) { generateNestedFunctions(); generateRegExpLiterals(); visitStatement(tree); fixLabelGotos(); // add RETURN_RESULT only to scripts as function always ends with RETURN if (itsData.itsFunctionType == 0) { addToken(Token.RETURN_RESULT); } // Add special CATCH to simplify Interpreter.interpret logic // and workaround lack of goto in Java addIcode(Icode_CATCH); if (itsData.itsICode.length != itsICodeTop) { // Make itsData.itsICode length exactly itsICodeTop to save memory // and catch bugs with jumps beyound icode as early as possible byte[] tmp = new byte[itsICodeTop]; System.arraycopy(itsData.itsICode, 0, tmp, 0, itsICodeTop); itsData.itsICode = tmp; } if (itsStrings.size() == 0) { itsData.itsStringTable = null; } else { itsData.itsStringTable = new String[itsStrings.size()]; ObjToIntMap.Iterator iter = itsStrings.newIterator(); for (iter.start(); !iter.done(); iter.next()) { String str = (String)iter.getKey(); int index = iter.getValue(); if (itsData.itsStringTable[index] != null) Kit.codeBug(); itsData.itsStringTable[index] = str; } } if (itsDoubleTableTop == 0) { itsData.itsDoubleTable = null; } else if (itsData.itsDoubleTable.length != itsDoubleTableTop) { double[] tmp = new double[itsDoubleTableTop]; System.arraycopy(itsData.itsDoubleTable, 0, tmp, 0, itsDoubleTableTop); itsData.itsDoubleTable = tmp; } if (itsExceptionTableTop != 0 && itsData.itsExceptionTable.length != itsExceptionTableTop) { int[] tmp = new int[itsExceptionTableTop]; System.arraycopy(itsData.itsExceptionTable, 0, tmp, 0, itsExceptionTableTop); itsData.itsExceptionTable = tmp; } itsData.itsMaxVars = scriptOrFn.getParamAndVarCount(); // itsMaxFrameArray: interpret method needs this amount for its // stack and sDbl arrays itsData.itsMaxFrameArray = itsData.itsMaxVars + itsData.itsMaxLocals + itsData.itsMaxStack; itsData.argNames = scriptOrFn.getParamAndVarNames(); itsData.argCount = scriptOrFn.getParamCount(); itsData.encodedSourceStart = scriptOrFn.getEncodedSourceStart(); itsData.encodedSourceEnd = scriptOrFn.getEncodedSourceEnd(); if (itsLiteralIds.size() != 0) { itsData.literalIds = itsLiteralIds.toArray(); } if (Token.printICode) dumpICode(itsData); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/0fe0aba4b10459870cf7b068b199df8482b16868/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
45,
1085,
1265,
2471,
12,
907,
2151,
13,
565,
288,
3639,
2103,
8649,
7503,
5621,
3639,
2103,
13673,
48,
11235,
5621,
3639,
3757,
3406,
12,
3413,
1769,
3639,
2917,
2224,
43,
12440,
5621,
3639,
368,
527,
14780,
67,
12289,
1338,
358,
8873,
487,
445,
3712,
3930,
598,
14780,
3639,
309,
261,
1282,
751,
18,
1282,
2083,
559,
422,
374,
13,
288,
5411,
527,
1345,
12,
1345,
18,
14033,
67,
12289,
1769,
3639,
289,
3639,
368,
1436,
4582,
385,
5858,
358,
16499,
5294,
11599,
18,
24713,
4058,
3639,
368,
471,
18975,
30679,
434,
2897,
316,
5110,
2398,
309,
261,
1282,
751,
18,
1282,
45,
1085,
18,
2469,
480,
2097,
45,
1085,
3401,
13,
288,
5411,
368,
4344,
2097,
751,
18,
1282,
45,
1085,
769,
8950,
2097,
45,
1085,
3401,
358,
1923,
3778,
5411,
368,
471,
1044,
22398,
598,
525,
23868,
324,
402,
772,
277,
710,
487,
11646,
487,
3323,
5411,
1160,
8526,
1853,
273,
394,
1160,
63,
1282,
45,
1085,
3401,
15533,
5411,
2332,
18,
1126,
3530,
12,
1282,
751,
18,
1282,
45,
1085,
16,
374,
16,
1853,
16,
374,
16,
2097,
45,
1085,
3401,
1769,
5411,
2097,
751,
18,
1282,
45,
1085,
273,
1853,
31,
3639,
289,
3639,
309,
261,
1282,
7957,
18,
1467,
1435,
422,
374,
13,
288,
5411,
2097,
751,
18,
1282,
780,
1388,
273,
446,
31,
3639,
289,
469,
288,
5411,
2097,
751,
18,
1282,
780,
1388,
273,
394,
514,
63,
1282,
7957,
18,
1467,
1435,
15533,
5411,
18760,
17864,
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,
2103,
45,
1085,
1265,
2471,
12,
907,
2151,
13,
565,
288,
3639,
2103,
8649,
7503,
5621,
3639,
2103,
13673,
48,
11235,
5621,
3639,
3757,
3406,
12,
3413,
1769,
3639,
2917,
2224,
43,
12440,
5621,
3639,
368,
527,
14780,
67,
12289,
1338,
358,
8873,
487,
445,
3712,
3930,
598,
14780,
3639,
309,
261,
1282,
751,
18,
1282,
2083,
559,
422,
374,
13,
288,
5411,
527,
1345,
12,
1345,
18,
14033,
67,
12289,
1769,
3639,
289,
3639,
368,
1436,
4582,
385,
5858,
358,
16499,
5294,
11599,
18,
24713,
4058,
3639,
368,
471,
18975,
30679,
434,
2897,
316,
5110,
2398,
309,
261,
1282,
751,
18,
1282,
45,
1085,
18,
2469,
480,
2097,
45,
1085,
3401,
13,
288,
5411,
368,
2
] |
|
while ((Compute.stackingViolation(game, entity, coords, null) != null) && (entity.getElevation() <= 50)) {
|
while (Compute.stackingViolation(game, entity, coords, null) != null && entity.getElevation() <= 50) {
|
private void processDeployment(Entity entity, Coords coords, int nFacing, Vector loadVector, boolean assaultDrop) { for (Enumeration i = loadVector.elements(); i.hasMoreElements();) { Entity loaded = (Entity)i.nextElement(); if ( loaded == null || loaded.getPosition() != null || loaded.getTransportId() != Entity.NONE ) { // Something is fishy in Denmark. System.err.println("error: " + entity + " can not load entity #" + loaded ); break; } else { // Have the deployed unit load the indicated unit. this.loadUnit( entity, loaded ); } } entity.setPosition(coords); entity.setFacing(nFacing); entity.setSecondaryFacing(nFacing); IHex hex = game.getBoard().getHex(coords); if(assaultDrop) { entity.setElevation(hex.ceiling() - hex.surface() + 100); //falling from the sky! entity.setAssaultDropInProgress(true); } else if (entity instanceof VTOL) { // We should let players pick, but this simplifies a lot. // Only do it for VTOLs, though; assume everything else is on the ground. entity.setElevation(hex.ceiling()-hex.surface()+1); while ((Compute.stackingViolation(game, entity, coords, null) != null) && (entity.getElevation() <= 50)) { entity.setElevation(entity.getElevation() + 1); } if (entity.getElevation() > 50) { throw new IllegalStateException("Entity #" + entity.getId() + " appears to be in an infinite loop trying to get a legal elevation."); } } else if (entity.getMovementMode() == IEntityMovementMode.SUBMARINE) { // TODO: Submarines should have a selectable height. // For now, pretend they're regular naval. entity.setElevation(0); } else if ((entity.getMovementMode() == IEntityMovementMode.HOVER) || (entity.getMovementMode() == IEntityMovementMode.NAVAL) || (entity.getMovementMode() == IEntityMovementMode.HYDROFOIL)) { // For now, assume they're on the surface. // entity elevation is relative to hex surface entity.setElevation(0); } else if (hex.containsTerrain(Terrains.ICE) || hex.containsTerrain(Terrains.BRIDGE)) { entity.setElevation(0); } else { // For anything else, assume they're on the floor. // entity elevation is relative to hex surface entity.setElevation(hex.floor()-hex.surface()); } entity.setDone(true); entity.setDeployed(true); entityUpdate(entity.getId()); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/c2a90fca192b338ebf5162499c52b535aed6382b/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
6733,
12,
1943,
1522,
16,
10320,
87,
6074,
16,
509,
290,
42,
5330,
16,
5589,
1262,
5018,
16,
1250,
1551,
3714,
7544,
13,
288,
3639,
364,
261,
21847,
277,
273,
1262,
5018,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
3887,
4203,
273,
261,
1943,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
4203,
422,
446,
747,
4203,
18,
588,
2555,
1435,
480,
446,
747,
1171,
4203,
18,
588,
6568,
548,
1435,
480,
3887,
18,
9826,
262,
288,
7734,
368,
29116,
353,
284,
1468,
93,
316,
22453,
3355,
18,
7734,
2332,
18,
370,
18,
8222,
2932,
1636,
30,
315,
397,
1522,
397,
315,
848,
486,
1262,
1522,
31526,
397,
4203,
11272,
7734,
898,
31,
5411,
289,
5411,
469,
288,
7734,
368,
21940,
326,
19357,
2836,
1262,
326,
17710,
2836,
18,
7734,
333,
18,
945,
2802,
12,
1522,
16,
4203,
11272,
5411,
289,
3639,
289,
3639,
1522,
18,
542,
2555,
12,
9076,
1769,
3639,
1522,
18,
542,
42,
5330,
12,
82,
42,
5330,
1769,
3639,
1522,
18,
542,
14893,
42,
5330,
12,
82,
42,
5330,
1769,
3639,
467,
7037,
3827,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
9076,
1769,
3639,
309,
12,
428,
3714,
7544,
13,
288,
5411,
1522,
18,
542,
17274,
7112,
12,
7118,
18,
311,
4973,
1435,
300,
3827,
18,
18266,
1435,
397,
2130,
1769,
368,
25602,
310,
628,
326,
15513,
5,
5411,
1522,
18,
542,
2610,
3714,
7544,
13434,
12,
3767,
1769,
3639,
289,
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,
1207,
6733,
12,
1943,
1522,
16,
10320,
87,
6074,
16,
509,
290,
42,
5330,
16,
5589,
1262,
5018,
16,
1250,
1551,
3714,
7544,
13,
288,
3639,
364,
261,
21847,
277,
273,
1262,
5018,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
3887,
4203,
273,
261,
1943,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
4203,
422,
446,
747,
4203,
18,
588,
2555,
1435,
480,
446,
747,
1171,
4203,
18,
588,
6568,
548,
1435,
480,
3887,
18,
9826,
262,
288,
7734,
368,
29116,
353,
284,
1468,
93,
316,
22453,
3355,
18,
7734,
2332,
18,
370,
18,
8222,
2932,
1636,
30,
315,
397,
1522,
397,
315,
848,
486,
1262,
1522,
31526,
397,
4203,
2
] |
cachedEntryFact.setValue(i, (instanceMethod && i == 0) ? IsNullValue.nonNullValue() : paramValue);
|
IsNullValue value; int paramIndex = i - paramShift; if (instanceMethod && i == 0) { value = IsNullValue.nonNullValue(); } else if (possiblyNullParamSet.get(paramIndex)) { value = IsNullValue.nullOnSimplePathValue(); } else if (nonNullParamSet.get(paramIndex)) { value = IsNullValue.nonNullValue(); } else { value = paramValue; } cachedEntryFact.setValue(i, value);
|
public void initEntryFact(IsNullValueFrame result) { if (cachedEntryFact == null) { BitSet nonNullParamSet = new BitSet(); BitSet possiblyNullParamSet = new BitSet(); if (nonNullParamDatabase != null && possiblyNullParamDatabase != null) { NonNullContractCollector nonNullContractCollector = new NonNullContractCollector(nonNullParamDatabase, possiblyNullParamDatabase); } cachedEntryFact = createFact(); cachedEntryFact.setValid(); int numLocals = methodGen.getMaxLocals(); boolean instanceMethod = !methodGen.isStatic(); for (int i = 0; i < numLocals; ++i) { cachedEntryFact.setValue(i, (instanceMethod && i == 0) ? IsNullValue.nonNullValue() : paramValue); } } copy(cachedEntryFact, result); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/fe11dc27b58737d089ff346bf98c27b20f335859/IsNullValueAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/IsNullValueAnalysis.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
1622,
9766,
12,
2520,
2041,
620,
3219,
563,
13,
288,
202,
202,
430,
261,
7097,
1622,
9766,
422,
225,
446,
13,
288,
1082,
202,
5775,
694,
31062,
786,
694,
273,
394,
21199,
5621,
1082,
202,
5775,
694,
10016,
2041,
786,
694,
273,
394,
21199,
5621,
1082,
202,
430,
261,
5836,
2041,
786,
4254,
480,
446,
597,
10016,
2041,
786,
4254,
480,
446,
13,
288,
9506,
202,
8921,
8924,
7134,
31062,
8924,
7134,
273,
6862,
202,
2704,
7869,
8924,
7134,
12,
5836,
2041,
786,
4254,
16,
10016,
2041,
786,
4254,
1769,
6862,
6862,
1082,
202,
97,
25083,
202,
7097,
1622,
9766,
273,
752,
9766,
5621,
1082,
202,
7097,
1622,
9766,
18,
542,
1556,
5621,
1082,
202,
474,
818,
1333,
1031,
273,
707,
7642,
18,
588,
2747,
1333,
1031,
5621,
1082,
202,
6494,
791,
1305,
273,
401,
2039,
7642,
18,
291,
5788,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
818,
1333,
1031,
31,
965,
77,
13,
288,
9506,
202,
7097,
1622,
9766,
18,
542,
620,
12,
77,
16,
261,
1336,
1305,
597,
277,
422,
374,
13,
692,
30230,
620,
18,
5836,
2041,
620,
1435,
294,
20250,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
3530,
12,
7097,
1622,
9766,
16,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
1622,
9766,
12,
2520,
2041,
620,
3219,
563,
13,
288,
202,
202,
430,
261,
7097,
1622,
9766,
422,
225,
446,
13,
288,
1082,
202,
5775,
694,
31062,
786,
694,
273,
394,
21199,
5621,
1082,
202,
5775,
694,
10016,
2041,
786,
694,
273,
394,
21199,
5621,
1082,
202,
430,
261,
5836,
2041,
786,
4254,
480,
446,
597,
10016,
2041,
786,
4254,
480,
446,
13,
288,
9506,
202,
8921,
8924,
7134,
31062,
8924,
7134,
273,
6862,
202,
2704,
7869,
8924,
7134,
12,
5836,
2041,
786,
4254,
16,
10016,
2041,
786,
4254,
1769,
6862,
6862,
1082,
202,
97,
25083,
202,
7097,
1622,
9766,
273,
752,
9766,
5621,
1082,
202,
7097,
1622,
9766,
18,
542,
1556,
5621,
1082,
2
] |
} catch (CloneNotSupportedException e) { e.printStackTrace(); } catch (SecurityNotAvailableException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }
|
public UniversalBody createBody(String nodeName, ConstructorCall bodyConstructorCall, boolean isLocal) throws ConstructorCallExecutionFailedException, java.lang.reflect.InvocationTargetException { // System.out.println("XXXXXX creating body on " + this.getURL()); // ProActiveConfiguration.getConfiguration().dumpAddedProperties(); Body localBody = (Body) bodyConstructorCall.execute(); PolicyServer objectPolicyServer = null; // SECURITY // try { // PolicyServer ps = (PolicyServer) policyServerMap.get(nodeName); // if (ps != null) { // objectPolicyServer = (PolicyServer) ps.clone(); // // String objectName = localBody.toString(); // // System.out.println("local Object Name " + objectName + // "On node " + nodeName); // objectPolicyServer.generateEntityCertificate(objectName); // // localBody.setPolicyServer(objectPolicyServer); // // localBody.getProActiveSecurityManager().setVNName((String) virtualNodesMap.get( // nodeName)); // } /*} catch (IOException e) { e.printStackTrace(); } catch (SecurityNotAvailableException e) { // do nothing // security not available */ // } catch (CloneNotSupportedException e) { // // should never happen // e.printStackTrace(); // } catch (SecurityNotAvailableException e) { // e.printStackTrace(); // } catch (IOException e) { // e.printStackTrace(); // } registerBody(nodeName, localBody); if (isLocal) { // if the body and proxy are on the same vm, returns the local view //System.out.println("body and proxy on the same vm"); //System.out.println(localBody.getReifiedObject().getClass().getName()); //register the body in the nodemap return (UniversalBody) localBody; } else { //otherwise return the adapter //System.out.println ("RemoteProActiveImpl.createBody "+vmInformation.getInetAddress().getHostName() +" -> new "+bodyConstructorCall.getTargetClassName()+" on node "+nodeName); //System.out.println ("RemoteProActiveRuntimeImpl.localBody created localBody="+localBody+" on node "+nodeName); return localBody.getRemoteAdapter(); } }
|
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/5a5961f66a75bfc9d40771c289dd038e118e50a7/ProActiveRuntimeImpl.java/buggy/src/org/objectweb/proactive/core/runtime/ProActiveRuntimeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27705,
2250,
752,
2250,
12,
780,
7553,
29531,
1044,
261,
10930,
25482,
425,
13,
288,
225,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
4368,
1248,
5268,
503,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
14106,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
11417,
1477,
1417,
6293,
1477,
16,
1250,
22873,
16869,
1044,
261,
10930,
25482,
425,
13,
288,
225,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
4368,
1248,
5268,
503,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
14106,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1216,
11417,
1477,
3210,
12417,
29531,
1044,
261,
10930,
25482,
425,
13,
288,
225,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
4368,
1248,
5268,
503,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
14106,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1377,
2252,
18,
4936,
18,
1734,
1582,
18,
9267,
14950,
2618,
1044,
261,
10930,
25482,
425,
13,
288,
225,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
4368,
1248,
5268,
503,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
14106,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
368,
225,
2332,
18,
659,
18,
8222,
2932,
24303,
5619,
4979,
1417,
603,
315,
397,
333,
18,
588,
1785,
10663,
97,
1044,
261,
10930,
25482,
425,
13,
288,
225,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
4368,
1248,
5268,
503,
425,
13,
288,
425,
18,
1188,
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,
27705,
2250,
752,
2250,
12,
780,
7553,
29531,
1044,
261,
10930,
25482,
425,
13,
288,
225,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
4368,
1248,
5268,
503,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
14106,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
11417,
1477,
1417,
6293,
1477,
16,
1250,
22873,
16869,
1044,
261,
10930,
25482,
425,
13,
288,
225,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
4368,
1248,
5268,
503,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1044,
261,
14106,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
1216,
11417,
1477,
3210,
12417,
29531,
1044,
261,
10930,
25482,
425,
13,
288,
225,
425,
18,
1188,
6332,
2
] |
|
return newFixnum(value ^ other.getLongValue());
|
return callCoerced("^", other);
|
public RubyInteger op_xor(RubyNumeric other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("^", this); } return newFixnum(value ^ other.getLongValue()); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
1061,
67,
31346,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
38,
724,
379,
13,
288,
5411,
327,
261,
54,
10340,
4522,
13,
1308,
18,
1991,
1305,
2932,
66,
3113,
333,
1769,
3639,
289,
540,
327,
745,
4249,
2765,
72,
2932,
66,
3113,
1308,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
1061,
67,
31346,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
38,
724,
379,
13,
288,
5411,
327,
261,
54,
10340,
4522,
13,
1308,
18,
1991,
1305,
2932,
66,
3113,
333,
1769,
3639,
289,
540,
327,
745,
4249,
2765,
72,
2932,
66,
3113,
1308,
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
] |
List accounts = catalog.getAccounts();
|
Account[] accounts = catalog.getAccounts();
|
public void testScenario03() throws BindingException { // Show that converters work for table columns List accounts = catalog.getAccounts(); TableViewerDescription tableViewerDescription = new TableViewerDescription( tableViewer); tableViewerDescription.addColumn("lastName", "lastName"); tableViewerDescription.addColumn("phone", "phone", null, new PhoneConverter()); tableViewerDescription.addColumn("state", "state", null, new StateConverter()); getDbc().bind2(tableViewerDescription, new PropertyDescription(catalog, "accounts"), null); // Verify that the data in the the table columns matches the expected // What we are looking for is that the phone numbers are converterted to // nnn-nnn-nnnn and that // the state letters are converted to state names // Verify the data in the table columns matches the accounts PhoneConverter phoneConverter = new PhoneConverter(); StateConverter stateConverter = new StateConverter(); for (int i = 0; i < accounts.size(); i++) { Account account = (Account) catalog.getAccounts().get(i); // Check the phone number String col_phone = ((ITableLabelProvider) tableViewer .getLabelProvider()).getColumnText(account, 1); assertEquals(phoneConverter .convertModelToTarget(account.getPhone()), col_phone); String col_state = ((ITableLabelProvider) tableViewer .getLabelProvider()).getColumnText(account, 2); assertEquals(stateConverter .convertModelToTarget(account.getState()), col_state); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a2d9a8e048e742c5c1d583c69c16aced8919d43c/TableScenarios.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/binding/scenarios/TableScenarios.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
21390,
4630,
1435,
1216,
15689,
503,
288,
202,
202,
759,
9674,
716,
19414,
1440,
364,
1014,
2168,
202,
202,
682,
9484,
273,
6222,
18,
588,
13971,
5621,
202,
202,
1388,
18415,
3291,
1014,
18415,
3291,
273,
394,
3555,
18415,
3291,
12,
9506,
202,
2121,
18415,
1769,
202,
202,
2121,
18415,
3291,
18,
1289,
1494,
2932,
2722,
461,
3113,
315,
2722,
461,
8863,
202,
202,
2121,
18415,
3291,
18,
1289,
1494,
2932,
10540,
3113,
315,
10540,
3113,
446,
16,
9506,
202,
2704,
12895,
5072,
10663,
202,
202,
2121,
18415,
3291,
18,
1289,
1494,
2932,
2019,
3113,
315,
2019,
3113,
446,
16,
9506,
202,
2704,
3287,
5072,
10663,
202,
202,
588,
4331,
71,
7675,
4376,
22,
12,
2121,
18415,
3291,
16,
9506,
202,
2704,
4276,
3291,
12,
7199,
16,
315,
13739,
6,
3631,
446,
1769,
202,
202,
759,
8553,
716,
326,
501,
316,
326,
326,
1014,
2168,
1885,
326,
2665,
202,
202,
759,
18734,
732,
854,
7849,
364,
353,
716,
326,
7353,
5600,
854,
6027,
2344,
358,
202,
202,
759,
7761,
82,
17,
9074,
82,
17,
9074,
9074,
471,
716,
202,
202,
759,
326,
919,
13768,
854,
5970,
358,
919,
1257,
202,
202,
759,
8553,
326,
501,
316,
326,
1014,
2168,
1885,
326,
9484,
202,
202,
9451,
5072,
7353,
5072,
273,
394,
12895,
5072,
5621,
202,
202,
1119,
5072,
919,
5072,
273,
394,
3287,
5072,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
9484,
18,
1467,
5621,
277,
27245,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
21390,
4630,
1435,
1216,
15689,
503,
288,
202,
202,
759,
9674,
716,
19414,
1440,
364,
1014,
2168,
202,
202,
682,
9484,
273,
6222,
18,
588,
13971,
5621,
202,
202,
1388,
18415,
3291,
1014,
18415,
3291,
273,
394,
3555,
18415,
3291,
12,
9506,
202,
2121,
18415,
1769,
202,
202,
2121,
18415,
3291,
18,
1289,
1494,
2932,
2722,
461,
3113,
315,
2722,
461,
8863,
202,
202,
2121,
18415,
3291,
18,
1289,
1494,
2932,
10540,
3113,
315,
10540,
3113,
446,
16,
9506,
202,
2704,
12895,
5072,
10663,
202,
202,
2121,
18415,
3291,
18,
1289,
1494,
2932,
2019,
3113,
315,
2019,
3113,
446,
16,
9506,
202,
2704,
3287,
5072,
10663,
202,
202,
588,
4331,
71,
7675,
4376,
22,
2
] |
RubyString string = new RubyString(runtime, line);
|
RubyString string = runtime.newString(line);
|
public IRubyObject backtrace() { IRubyObject rubyTrace = super.backtrace(); if (rubyTrace.isNil()) return rubyTrace; RubyArray array = (RubyArray) rubyTrace; StackTraceElement[] stackTrace = cause.getStackTrace(); for (int i=stackTrace.length-1; i>=0; i--) { StackTraceElement element = stackTrace[i]; String line = element.toString(); RubyString string = new RubyString(runtime, line); array.unshift(string); } return rubyTrace; }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/9f2efc63a858fa0507245b207025eab027840a04/NativeException.java/clean/src/org/jruby/NativeException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
13902,
1435,
288,
3639,
15908,
10340,
921,
22155,
3448,
273,
2240,
18,
18728,
5621,
3639,
309,
261,
27768,
3448,
18,
291,
12616,
10756,
5411,
327,
22155,
3448,
31,
3639,
19817,
1076,
526,
273,
261,
54,
10340,
1076,
13,
22155,
3448,
31,
3639,
25663,
8526,
22327,
273,
4620,
18,
588,
6332,
5621,
3639,
364,
261,
474,
277,
33,
3772,
3448,
18,
2469,
17,
21,
31,
277,
34,
33,
20,
31,
277,
413,
13,
288,
5411,
25663,
930,
273,
22327,
63,
77,
15533,
5411,
514,
980,
273,
930,
18,
10492,
5621,
5411,
19817,
780,
533,
273,
3099,
18,
2704,
780,
12,
1369,
1769,
5411,
526,
18,
13858,
12,
1080,
1769,
3639,
289,
3639,
327,
22155,
3448,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
13902,
1435,
288,
3639,
15908,
10340,
921,
22155,
3448,
273,
2240,
18,
18728,
5621,
3639,
309,
261,
27768,
3448,
18,
291,
12616,
10756,
5411,
327,
22155,
3448,
31,
3639,
19817,
1076,
526,
273,
261,
54,
10340,
1076,
13,
22155,
3448,
31,
3639,
25663,
8526,
22327,
273,
4620,
18,
588,
6332,
5621,
3639,
364,
261,
474,
277,
33,
3772,
3448,
18,
2469,
17,
21,
31,
277,
34,
33,
20,
31,
277,
413,
13,
288,
5411,
25663,
930,
273,
22327,
63,
77,
15533,
5411,
514,
980,
273,
930,
18,
10492,
5621,
5411,
19817,
780,
533,
273,
3099,
18,
2704,
780,
12,
1369,
1769,
5411,
526,
18,
13858,
12,
1080,
1769,
3639,
289,
3639,
327,
22155,
3448,
2
] |
fail ("TRANSIENT exception expected");
|
fail ("TRANSIENT or TIMEOUT exception expected");
|
public void test_alternate_wrong() { server.setIORProtAddr (PROTOCOL + CORRECT_HOST + ":" + WRONG_PORT); server.addAlternateAddress( WRONG_HOST, CORRECT_PORT ); server.addAlternateAddress( WRONG_HOST_2, WRONG_PORT ); server.addAlternateAddress( WRONG_HOST_2, WRONG_PORT ); Sample s = server.getObject(); try { int result = s.ping (33); fail ("TRANSIENT exception expected"); } catch (org.omg.CORBA.TRANSIENT ex) { // ok } }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/119fe8c4b39d535dd133519c272a8e292b9f307a/AlternateIIOPAddress2Test.java/clean/test/regression/src/org/jacorb/test/orb/AlternateIIOPAddress2Test.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
16025,
340,
67,
21530,
1435,
565,
288,
3639,
1438,
18,
542,
45,
916,
21189,
3178,
261,
16850,
397,
28359,
4512,
67,
8908,
397,
6153,
397,
12984,
7390,
67,
6354,
1769,
3639,
1438,
18,
1289,
25265,
1887,
12,
12984,
7390,
67,
8908,
16,
28359,
4512,
67,
6354,
11272,
3639,
1438,
18,
1289,
25265,
1887,
12,
12984,
7390,
67,
8908,
67,
22,
16,
12984,
7390,
67,
6354,
11272,
3639,
1438,
18,
1289,
25265,
1887,
12,
12984,
7390,
67,
8908,
67,
22,
16,
12984,
7390,
67,
6354,
11272,
3639,
11474,
272,
273,
1438,
18,
588,
921,
5621,
3639,
775,
3639,
288,
5411,
509,
563,
273,
272,
18,
1382,
261,
3707,
1769,
5411,
2321,
7566,
28412,
578,
24374,
225,
1520,
2665,
8863,
3639,
289,
3639,
1044,
261,
3341,
18,
362,
75,
18,
9428,
12536,
18,
28412,
431,
13,
3639,
288,
5411,
368,
1529,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
16025,
340,
67,
21530,
1435,
565,
288,
3639,
1438,
18,
542,
45,
916,
21189,
3178,
261,
16850,
397,
28359,
4512,
67,
8908,
397,
6153,
397,
12984,
7390,
67,
6354,
1769,
3639,
1438,
18,
1289,
25265,
1887,
12,
12984,
7390,
67,
8908,
16,
28359,
4512,
67,
6354,
11272,
3639,
1438,
18,
1289,
25265,
1887,
12,
12984,
7390,
67,
8908,
67,
22,
16,
12984,
7390,
67,
6354,
11272,
3639,
1438,
18,
1289,
25265,
1887,
12,
12984,
7390,
67,
8908,
67,
22,
16,
12984,
7390,
67,
6354,
11272,
3639,
11474,
272,
273,
1438,
18,
588,
921,
5621,
3639,
775,
3639,
288,
5411,
509,
563,
273,
272,
18,
1382,
261,
3707,
1769,
5411,
2321,
7566,
28412,
578,
24374,
2
] |
CPropChangeEvent event = new CPropChangeEvent(aID, key, oldval, val);
|
CPropChangeEvent event = new CPropChangeEvent(aID, key, oldval, val);
|
public void setValue(AppdefEntityID aID, int typeId, String key, String val) throws CPropKeyNotFoundException, AppdefEntityNotFoundException, PermissionException { PreparedStatement selStmt, delStmt, addStmt; CpropKeyDAO cpHome; CpropKey propKey; Connection conn = null; ResultSet rs = null; propKey = getKey(aID, typeId, key); selStmt = null; delStmt = null; addStmt = null; cpHome = DAOFactory.getDAOFactory().getCpropKeyDAO(); try { CPropKeyPK pk = propKey.getPrimaryKey(); final int keyId = pk.getId().intValue(); conn = cpHome.getSession().connection(); // Lock the rows we want to trash selStmt = conn.prepareStatement("SELECT PROPVALUE FROM " + CPROP_TABLE + " WHERE KEYID=? AND APPDEF_ID=? " + "FOR UPDATE"); selStmt.setInt(1, keyId); selStmt.setInt(2, aID.getID()); rs = selStmt.executeQuery(); String oldval = null; if (rs.next()) { // See if value has changed oldval = rs.getString(1); if (oldval.equals(val)) return; } if (oldval != null) { // Nuke the old values delStmt = conn.prepareStatement("DELETE FROM " + CPROP_TABLE + " WHERE KEYID=? AND APPDEF_ID=?"); delStmt.setInt(1, keyId); delStmt.setInt(2, aID.getID()); delStmt.executeUpdate(); } // Optionally add new values if(val != null){ String[] chunks = chunk(val, CHUNKSIZE); StringBuffer sql = new StringBuffer() .append("INSERT INTO ") .append(CPROP_TABLE); if (Util.getDialect().indexOf("Oracle") > 0) { sql.append(" (id,keyid,appdef_id,value_idx,PROPVALUE) VALUES (") .append(CPROP_SEQUENCE) .append(".NEXTVAL,") .append("?, ?, ?, ?)"); } else { // assume sequence is generated in the db layer sql.append(" (keyid,appdef_id,value_idx,PROPVALUE) VALUES ") .append("(?, ?, ?, ?)"); } addStmt = conn.prepareStatement(sql.toString()); addStmt.setInt(1, keyId); addStmt.setInt(2, aID.getID()); for(int i=0; i<chunks.length; i++){ addStmt.setInt(3, i); addStmt.setString(4, chunks[i]); // According to the javadocs, executeQuery should // never return null -- it has been for me under // pointbase. addStmt.executeUpdate(); } } if (log.isDebugEnabled()) log.debug("Entity " + aID.getAppdefKey() + " " + key + " changed from " + oldval + " to " + val); // Send cprop value changed event CPropChangeEvent event = new CPropChangeEvent(aID, key, oldval, val); // Now publish the event sender.publishMessage(EventConstants.EVENTS_TOPIC, event); if (rs != null) { rs.close(); } if (selStmt != null) { selStmt.close(); } if (delStmt != null) { delStmt.close(); } if (addStmt != null) { addStmt.close(); } } catch(SQLException exc){ this.log.error("Unable to update CPropKey values: " + exc.getMessage(), exc); throw new SystemException(exc); } finally { cpHome.getSession().disconnect(); } }
|
52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/9f9304e62e1aa15905bfb8d8cb7dd77aa3ba4236/CPropManagerEJBImpl.java/clean/src/org/hyperic/hq/appdef/server/session/CPropManagerEJBImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
12,
3371,
536,
1943,
734,
279,
734,
16,
509,
24361,
16,
514,
498,
16,
514,
1244,
13,
3639,
1216,
385,
4658,
653,
3990,
16,
4677,
536,
1943,
3990,
16,
9079,
8509,
503,
565,
288,
3639,
16913,
357,
8952,
16,
1464,
8952,
16,
527,
8952,
31,
3639,
385,
5986,
653,
18485,
3283,
8684,
31,
3639,
385,
5986,
653,
2270,
653,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
10842,
3597,
273,
446,
31,
7734,
2270,
653,
273,
3579,
12,
69,
734,
16,
24361,
16,
498,
1769,
3639,
357,
8952,
273,
446,
31,
3639,
1464,
8952,
273,
446,
31,
3639,
527,
8952,
273,
446,
31,
3639,
3283,
8684,
273,
463,
20463,
1733,
18,
588,
18485,
1733,
7675,
588,
39,
5986,
653,
18485,
5621,
3639,
775,
288,
5411,
385,
4658,
653,
8784,
2365,
273,
2270,
653,
18,
588,
11575,
5621,
5411,
727,
509,
30914,
273,
2365,
18,
26321,
7675,
474,
620,
5621,
5411,
1487,
273,
3283,
8684,
18,
588,
2157,
7675,
4071,
5621,
4766,
7734,
368,
3488,
326,
2595,
732,
2545,
358,
20703,
5411,
357,
8952,
273,
1487,
18,
9366,
3406,
2932,
4803,
16258,
4051,
4571,
315,
397,
4766,
5411,
385,
15811,
67,
7775,
397,
4766,
5411,
315,
4852,
5311,
734,
17282,
4116,
9146,
12904,
67,
734,
17282,
315,
397,
4766,
5411,
315,
7473,
11028,
8863,
5411,
357,
8952,
18,
542,
1702,
12,
21,
16,
30914,
1769,
5411,
357,
8952,
18,
542,
1702,
12,
22,
16,
279,
734,
18,
588,
734,
10663,
5411,
3597,
273,
357,
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,
5524,
12,
3371,
536,
1943,
734,
279,
734,
16,
509,
24361,
16,
514,
498,
16,
514,
1244,
13,
3639,
1216,
385,
4658,
653,
3990,
16,
4677,
536,
1943,
3990,
16,
9079,
8509,
503,
565,
288,
3639,
16913,
357,
8952,
16,
1464,
8952,
16,
527,
8952,
31,
3639,
385,
5986,
653,
18485,
3283,
8684,
31,
3639,
385,
5986,
653,
2270,
653,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
10842,
3597,
273,
446,
31,
7734,
2270,
653,
273,
3579,
12,
69,
734,
16,
24361,
16,
498,
1769,
3639,
357,
8952,
273,
446,
31,
3639,
1464,
8952,
273,
446,
31,
3639,
527,
8952,
273,
446,
31,
3639,
3283,
8684,
273,
463,
20463,
1733,
18,
588,
18485,
1733,
7675,
2
] |
String message= JavaEditorMessages.getString("OverrideIndicatorManager.open.error.message");
|
String message; if (hasLogEntry) message= JavaEditorMessages.getString("OverrideIndicatorManager.open.error.messageHasLogEntry"); else message= JavaEditorMessages.getString("OverrideIndicatorManager.open.error.message");
|
public void open() { CompilationUnit ast= JavaPlugin.getDefault().getASTProvider().getAST(fJavaElement, true, null); ASTNode node= null; if (ast != null) node= ast.findDeclaringNode(fAstNodeKey); if (node instanceof MethodDeclaration) { try { IMethodBinding methodBinding= ((MethodDeclaration)node).resolveBinding(); IType type= getType(methodBinding); if (type != null) { ITypeHierarchy th= SuperTypeHierarchyCache.getTypeHierarchy(type); IType[] superTypes= th.getAllSupertypes(type); IMethodBinding definingMethodBinding= Bindings.findMethodDefininition(methodBinding); IType definingType= null; if (definingMethodBinding != null) definingType= findType(superTypes, definingMethodBinding.getDeclaringClass().getQualifiedName()); if (definingType != null) { IMethod definingMethod= Bindings.findMethod(definingMethodBinding, definingType); if (definingMethod != null) { OpenActionUtil.open(definingMethod, true); return; } } } } catch (JavaModelException ex) { JavaPlugin.log(ex.getStatus()); } catch (PartInitException ex) { JavaPlugin.log(ex.getStatus()); } } String title= JavaEditorMessages.getString("OverrideIndicatorManager.open.error.title"); //$NON-NLS-1$ String message= JavaEditorMessages.getString("OverrideIndicatorManager.open.error.message"); //$NON-NLS-1$ MessageDialog.openError(JavaPlugin.getActiveWorkbenchShell(), title, message); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4e390aaf1bfab0636dccbfc2be1cc19aab545aa2/OverrideIndicatorManager.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1696,
1435,
288,
1082,
202,
19184,
2802,
3364,
33,
5110,
3773,
18,
588,
1868,
7675,
588,
9053,
2249,
7675,
588,
9053,
12,
74,
5852,
1046,
16,
638,
16,
446,
1769,
1082,
202,
9053,
907,
756,
33,
446,
31,
1082,
202,
430,
261,
689,
480,
446,
13,
9506,
202,
2159,
33,
3364,
18,
4720,
3456,
5968,
907,
12,
74,
21385,
907,
653,
1769,
1082,
202,
430,
261,
2159,
1276,
2985,
6094,
13,
288,
9506,
202,
698,
288,
6862,
202,
45,
1305,
5250,
707,
5250,
33,
14015,
1305,
6094,
13,
2159,
2934,
10828,
5250,
5621,
6862,
202,
45,
559,
618,
33,
3130,
12,
2039,
5250,
1769,
6862,
25083,
202,
430,
261,
723,
480,
446,
13,
288,
6862,
6862,
1082,
202,
45,
559,
12074,
286,
33,
14845,
559,
12074,
1649,
18,
588,
559,
12074,
12,
723,
1769,
25083,
202,
45,
559,
8526,
2240,
2016,
33,
286,
18,
588,
1595,
3088,
1051,
989,
12,
723,
1769,
6862,
6862,
9506,
202,
45,
1305,
5250,
9364,
1305,
5250,
33,
6936,
899,
18,
4720,
1305,
6443,
267,
608,
12,
2039,
5250,
1769,
25083,
202,
45,
559,
9364,
559,
33,
446,
31,
25083,
202,
430,
261,
5649,
310,
1305,
5250,
480,
446,
13,
6862,
1082,
202,
5649,
310,
559,
33,
1104,
559,
12,
9565,
2016,
16,
9364,
1305,
5250,
18,
588,
3456,
14682,
7675,
588,
12345,
10663,
6862,
6862,
9506,
202,
430,
261,
5649,
310,
559,
480,
446,
13,
288,
6862,
1082,
202,
45,
1305,
9364,
1305,
33,
6936,
899,
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,
3196,
202,
482,
918,
1696,
1435,
288,
1082,
202,
19184,
2802,
3364,
33,
5110,
3773,
18,
588,
1868,
7675,
588,
9053,
2249,
7675,
588,
9053,
12,
74,
5852,
1046,
16,
638,
16,
446,
1769,
1082,
202,
9053,
907,
756,
33,
446,
31,
1082,
202,
430,
261,
689,
480,
446,
13,
9506,
202,
2159,
33,
3364,
18,
4720,
3456,
5968,
907,
12,
74,
21385,
907,
653,
1769,
1082,
202,
430,
261,
2159,
1276,
2985,
6094,
13,
288,
9506,
202,
698,
288,
6862,
202,
45,
1305,
5250,
707,
5250,
33,
14015,
1305,
6094,
13,
2159,
2934,
10828,
5250,
5621,
6862,
202,
45,
559,
618,
33,
3130,
12,
2039,
5250,
1769,
6862,
25083,
202,
430,
261,
723,
480,
446,
13,
288,
6862,
2
] |
catch(NumberFormatException e)
|
catch (NumberFormatException e)
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch(NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
10063,
2495,
261,
780,
3512,
2793,
15329,
225,
309,
261,
5776,
2793,
422,
446,
13,
377,
3512,
2793,
273,
315,
6353,
17,
26549,
17,
2138,
14432,
202,
202,
780,
508,
273,
446,
31,
202,
202,
474,
2154,
273,
25564,
706,
31,
202,
202,
474,
963,
273,
2593,
31,
225,
16370,
384,
273,
394,
16370,
12,
5776,
2793,
16,
3701,
315,
1769,
225,
1323,
261,
334,
18,
5332,
7417,
5157,
10756,
565,
288,
1082,
202,
780,
1147,
273,
384,
18,
4285,
1345,
5621,
1377,
309,
261,
529,
422,
446,
13,
3639,
288,
9506,
202,
529,
273,
1147,
31,
9506,
202,
17143,
31,
1082,
202,
97,
1377,
309,
261,
2316,
18,
869,
8915,
7675,
14963,
2932,
38,
11846,
6,
3719,
3639,
288,
9506,
202,
4060,
273,
605,
11846,
31,
9506,
202,
17143,
31,
1082,
202,
97,
1377,
309,
261,
2316,
18,
869,
8915,
7675,
14963,
2932,
1285,
1013,
2871,
6,
3719,
3639,
288,
9506,
202,
4060,
273,
467,
20849,
2871,
31,
9506,
202,
17143,
31,
1082,
202,
97,
1377,
309,
261,
2316,
18,
869,
8915,
7675,
14963,
2932,
38,
11846,
1285,
1013,
2871,
6,
3719,
3639,
288,
5411,
2154,
273,
605,
11846,
571,
467,
20849,
2871,
31,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
202,
474,
1147,
1125,
273,
374,
31,
1377,
775,
3639,
288,
9506,
202,
2316,
1125,
273,
2144,
18,
2670,
1702,
12,
2316,
1769,
1082,
202,
97,
1377,
1044,
261,
1854,
9291,
425,
13,
3639,
288,
202,
225,
368,
8049,
72,
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,
760,
10063,
2495,
261,
780,
3512,
2793,
15329,
225,
309,
261,
5776,
2793,
422,
446,
13,
377,
3512,
2793,
273,
315,
6353,
17,
26549,
17,
2138,
14432,
202,
202,
780,
508,
273,
446,
31,
202,
202,
474,
2154,
273,
25564,
706,
31,
202,
202,
474,
963,
273,
2593,
31,
225,
16370,
384,
273,
394,
16370,
12,
5776,
2793,
16,
3701,
315,
1769,
225,
1323,
261,
334,
18,
5332,
7417,
5157,
10756,
565,
288,
1082,
202,
780,
1147,
273,
384,
18,
4285,
1345,
5621,
1377,
309,
261,
529,
422,
446,
13,
3639,
288,
9506,
202,
529,
273,
1147,
31,
9506,
202,
17143,
31,
1082,
202,
97,
1377,
309,
261,
2316,
18,
869,
8915,
7675,
14963,
2932,
38,
11846,
2
] |
reloadForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); HTMLNode unloadForm = tableRow.addChild("td").addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" });
|
HTMLNode unloadForm = context.addFormChild(tableRow, ".", "pluginUnloadForm");
|
private StringBuffer listPlugins(ToadletContext context) { Plugin[] plugins = pluginManager.getPlugins(); PageMaker pageMaker = context.getPageMaker(); HTMLNode pageNode = pageMaker.getPageNode("List of Plugins"); HTMLNode contentNode = pageMaker.getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox"); infobox.addChild("div", "class", "infobox-header", "Plugin list"); HTMLNode table = infobox.addChild("div", "class", "infobox-content").addChild("table", "class", "plugintable"); HTMLNode headerRow = table.addChild("tr"); headerRow.addChild("th", "Plugin Name"); headerRow.addChild("th", "Internal Name"); headerRow.addChild("th", "colspan", "3"); for (int pluginIndex = 0, pluginCount = plugins.length; pluginIndex < pluginCount; pluginIndex++) { Plugin plugin = plugins[pluginIndex]; String internalName = plugin.getClass().getName() + '@' + pluginIndex; HTMLNode tableRow = table.addChild("tr"); tableRow.addChild("td", plugin.getPluginName()); tableRow.addChild("td", internalName); if (plugin instanceof HttpPlugin) { tableRow.addChild("td").addChild("form", new String[] { "action", "method" }, new String[] { internalName, "get" }).addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Visit" }); } else { tableRow.addChild("td"); } HTMLNode reloadForm = tableRow.addChild("td").addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); reloadForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "action", "reload" }); reloadForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "pluginName", internalName }); reloadForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Reload" }); reloadForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); HTMLNode unloadForm = tableRow.addChild("td").addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); unloadForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "action", "unload" }); unloadForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "pluginName", internalName }); unloadForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Unload" }); unloadForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); } contentNode.addChild(createAddPluginBox()); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); return pageBuffer; }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/PluginToadlet.java/clean/src/freenet/clients/http/PluginToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6674,
666,
9461,
12,
774,
361,
1810,
1042,
819,
13,
288,
202,
202,
3773,
8526,
4799,
273,
1909,
1318,
18,
588,
9461,
5621,
202,
202,
1964,
12373,
1363,
12373,
273,
819,
18,
588,
1964,
12373,
5621,
202,
202,
4870,
907,
1363,
907,
273,
1363,
12373,
18,
588,
1964,
907,
2932,
682,
434,
26849,
8863,
202,
202,
4870,
907,
913,
907,
273,
1363,
12373,
18,
588,
1350,
907,
12,
2433,
907,
1769,
202,
202,
4870,
907,
1123,
2147,
273,
913,
907,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
8863,
202,
202,
1376,
2147,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
17,
3374,
3113,
315,
3773,
666,
8863,
202,
202,
4870,
907,
1014,
273,
1123,
2147,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
17,
1745,
20387,
1289,
1763,
2932,
2121,
3113,
315,
1106,
3113,
315,
22045,
474,
429,
8863,
202,
202,
4870,
907,
1446,
1999,
273,
1014,
18,
1289,
1763,
2932,
313,
8863,
202,
202,
3374,
1999,
18,
1289,
1763,
2932,
451,
3113,
315,
3773,
1770,
8863,
202,
202,
3374,
1999,
18,
1289,
1763,
2932,
451,
3113,
315,
3061,
1770,
8863,
202,
202,
3374,
1999,
18,
1289,
1763,
2932,
451,
3113,
315,
1293,
3969,
3113,
315,
23,
8863,
202,
202,
1884,
261,
474,
1909,
1016,
273,
374,
16,
1909,
1380,
273,
4799,
18,
2469,
31,
1909,
1016,
411,
1909,
1380,
31,
1909,
1016,
27245,
288,
1082,
202,
3773,
1909,
273,
4799,
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,
6674,
666,
9461,
12,
774,
361,
1810,
1042,
819,
13,
288,
202,
202,
3773,
8526,
4799,
273,
1909,
1318,
18,
588,
9461,
5621,
202,
202,
1964,
12373,
1363,
12373,
273,
819,
18,
588,
1964,
12373,
5621,
202,
202,
4870,
907,
1363,
907,
273,
1363,
12373,
18,
588,
1964,
907,
2932,
682,
434,
26849,
8863,
202,
202,
4870,
907,
913,
907,
273,
1363,
12373,
18,
588,
1350,
907,
12,
2433,
907,
1769,
202,
202,
4870,
907,
1123,
2147,
273,
913,
907,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
8863,
202,
202,
1376,
2147,
18,
1289,
1763,
2932,
2892,
3113,
315,
1106,
3113,
315,
1376,
2147,
17,
3374,
3113,
315,
3773,
666,
8863,
2
] |
throw new IllegalStateException();
|
if (option.equals("-effort")) { if (optionExtraPart.equals("min")) { settingList = FindBugs.MIN_EFFORT; } else if (optionExtraPart.equals("default")) { settingList = FindBugs.DEFAULT_EFFORT; } else if (optionExtraPart.equals("max")) { settingList = FindBugs.MAX_EFFORT; } else { throw new IllegalArgumentException("-effort:<value> must be one of min,default,max"); } } else if (option.equals("-workHard")) { if (settingList == FindBugs.DEFAULT_EFFORT) { settingList = FindBugs.DEFAULT_EFFORT; } } else if (option.equals("-conserveSpace")) { settingList = FindBugs.MIN_EFFORT; } else if (option.equals("-adjustExperimental")) { BugInstance.setAdjustExperimental(true); } else { throw new IllegalStateException(); }
|
protected void handleOption(String option, String optionExtraPart) { throw new IllegalStateException(); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/dacacc0d267197a3d21d64e41cf709eb947cd9d8/FindBugsCommandLine.java/clean/findbugs/src/java/edu/umd/cs/findbugs/FindBugsCommandLine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
1895,
12,
780,
1456,
16,
514,
1456,
7800,
1988,
13,
288,
202,
202,
12849,
394,
5477,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
1895,
12,
780,
1456,
16,
514,
1456,
7800,
1988,
13,
288,
202,
202,
12849,
394,
5477,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void forEachElement(PollableElement member) { member.createOutage(cause); }
|
public void forEachElement(PollableElement elem) { elem.processCause(cause); }
|
public void forEachElement(PollableElement member) { member.createOutage(cause); }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/fd3c35c31b11f522f98af6ae08c183106024b87e/PollableContainer.java/clean/src/services/org/opennms/netmgt/poller/PollableContainer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3795,
1046,
12,
19085,
429,
1046,
3140,
13,
288,
10792,
3140,
18,
2640,
1182,
410,
12,
2700,
1769,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3795,
1046,
12,
19085,
429,
1046,
3140,
13,
288,
10792,
3140,
18,
2640,
1182,
410,
12,
2700,
1769,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(provider instanceof ITableColorProvider)
|
} if(provider instanceof ITableColorProvider) {
|
public TableColorAndFontCollector(IBaseLabelProvider provider){ if(provider instanceof ITableFontProvider) fontProvider = (ITableFontProvider) provider; if(provider instanceof ITableColorProvider) colorProvider = (ITableColorProvider) provider; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/391f2606b4ea2c1fb5052d938ca90877ee7631f6/TableViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
3555,
2957,
1876,
5711,
7134,
12,
45,
2171,
2224,
2249,
2893,
15329,
1082,
202,
430,
12,
6778,
1276,
467,
1388,
5711,
2249,
13,
9506,
202,
5776,
2249,
273,
261,
1285,
429,
5711,
2249,
13,
2893,
31,
1082,
202,
430,
12,
6778,
1276,
467,
1388,
2957,
2249,
13,
9506,
202,
3266,
2249,
273,
261,
1285,
429,
2957,
2249,
13,
2893,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
3555,
2957,
1876,
5711,
7134,
12,
45,
2171,
2224,
2249,
2893,
15329,
1082,
202,
430,
12,
6778,
1276,
467,
1388,
5711,
2249,
13,
9506,
202,
5776,
2249,
273,
261,
1285,
429,
5711,
2249,
13,
2893,
31,
1082,
202,
430,
12,
6778,
1276,
467,
1388,
2957,
2249,
13,
9506,
202,
3266,
2249,
273,
261,
1285,
429,
2957,
2249,
13,
2893,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void genTopic(Element topic, Writer out) throws IOException { out.write("<tr class='list'>"); out.write("<td class='icon'></td>"); out.write("<td align='left' class='label' nowrap>"); out.write("<a href="); String href = topic.getAttribute("href"); if (href != null && href.length() > 0) { // external href if (href.charAt(0) == '/') href = "content/help:" + href; } else href = "javascript:void 0"; out.write("'" + href + "'>"); out.write(topic.getAttribute("label")); out.write("</a></td></tr>"); }
|
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/19aa1b4277286c9fb1098bf6a3a86d04dd01e5b4/Links.java/clean/org.eclipse.help.webapp/src/org/eclipse/help/servlet/Links.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
6657,
12,
1046,
3958,
16,
5497,
596,
13,
1216,
1860,
288,
202,
202,
659,
18,
2626,
2932,
32,
313,
667,
2218,
1098,
28533,
1769,
202,
202,
659,
18,
2626,
2932,
32,
4465,
667,
2218,
3950,
11,
4695,
4465,
2984,
1769,
202,
202,
659,
18,
2626,
2932,
32,
4465,
5689,
2218,
4482,
11,
667,
2218,
1925,
11,
2037,
1266,
2984,
1769,
202,
202,
659,
18,
2626,
2932,
32,
69,
3897,
1546,
1769,
202,
202,
780,
3897,
273,
3958,
18,
588,
1499,
2932,
7547,
8863,
202,
202,
430,
261,
7547,
480,
446,
597,
3897,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
759,
3903,
3897,
1082,
202,
430,
261,
7547,
18,
3001,
861,
12,
20,
13,
422,
2023,
13,
9506,
202,
7547,
273,
315,
1745,
19,
5201,
2773,
397,
3897,
31,
202,
202,
97,
469,
1082,
202,
7547,
273,
315,
11242,
30,
6459,
374,
14432,
202,
202,
659,
18,
2626,
2932,
4970,
397,
3897,
397,
2491,
2984,
1769,
202,
202,
659,
18,
2626,
12,
10476,
18,
588,
1499,
2932,
1925,
7923,
1769,
202,
202,
659,
18,
2626,
2932,
1757,
69,
4695,
4465,
4695,
313,
2984,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
6657,
12,
1046,
3958,
16,
5497,
596,
13,
1216,
1860,
288,
202,
202,
659,
18,
2626,
2932,
32,
313,
667,
2218,
1098,
28533,
1769,
202,
202,
659,
18,
2626,
2932,
32,
4465,
667,
2218,
3950,
11,
4695,
4465,
2984,
1769,
202,
202,
659,
18,
2626,
2932,
32,
4465,
5689,
2218,
4482,
11,
667,
2218,
1925,
11,
2037,
1266,
2984,
1769,
202,
202,
659,
18,
2626,
2932,
32,
69,
3897,
1546,
1769,
202,
202,
780,
3897,
273,
3958,
18,
588,
1499,
2932,
7547,
8863,
202,
202,
430,
261,
7547,
480,
446,
597,
3897,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
759,
3903,
3897,
1082,
202,
430,
261,
7547,
18,
3001,
861,
12,
20,
2
] |
||
Logger.log(Logger.DEBUG,"ChannelManager::processRequestChannelParameters() : channelTarget=\""+channelTarget+"\".");
|
LogService.instance().log(LogService.DEBUG,"ChannelManager::processRequestChannelParameters() : channelTarget=\""+channelTarget+"\".");
|
private void processRequestChannelParameters (HttpServletRequest req) { // clear the previous settings channelTarget = null; targetParams = new Hashtable (); String sp=req.getServletPath(); if(sp!=null) { int si1=sp.indexOf(this.channelAddressingPathElement+"/"); if(si1!=-1) { si1+=channelAddressingPathElement.length()+1; int si2=sp.indexOf("/",si1); if(si2!=-1) { channelTarget=sp.substring(si1,si2); if(channelTarget==null) { Logger.log(Logger.ERROR,"ChannelManager.processRequestChannelParameters() : malformed channel address. Null channel target Id."); return; } Logger.log(Logger.DEBUG,"ChannelManager::processRequestChannelParameters() : channelTarget=\""+channelTarget+"\"."); Enumeration en = req.getParameterNames (); if (en != null) { while (en.hasMoreElements ()) { String pName= (String) en.nextElement (); if (!pName.equals ("channelTarget")) { Object[] val= (Object[]) req.getParameterValues(pName); if (val == null) { val = ((PortalSessionManager.RequestParamWrapper)req).getObjectParameterValues(pName); } targetParams.put (pName, val); } } } // check if the channel is an IPrivilegedChannel, and if it is, // pass portal control structures and runtime data. Object chObj; if ((chObj=channelTable.get(channelTarget)) == null) { try { chObj=instantiateChannel(channelTarget); } catch (Exception e) { CError errorChannel=new CError(CError.SET_STATIC_DATA_EXCEPTION,e,channelTarget,null); channelTable.put(channelTarget,errorChannel); chObj=errorChannel; Logger.log(Logger.ERROR,"ChannelManager::processRequestChannelParameters() : unable to pass find/create an instance of a channel. Bogus Id ? ! (id=\""+channelTarget+"\")."); } } if(chObj!=null && (chObj instanceof IPrivilegedChannel)) { IPrivilegedChannel isc=(IPrivilegedChannel) chObj; try { isc.setPortalControlStructures(pcs); } catch (Exception e) { channelTable.remove(isc); CError errorChannel=new CError(CError.SET_PCS_EXCEPTION,e,channelTarget,isc); channelTable.put(channelTarget,errorChannel); isc=errorChannel; // set portal control structures try { errorChannel.setPortalControlStructures(pcs); } catch (Exception e2) { // things are looking bad for our hero StringWriter sw=new StringWriter(); e2.printStackTrace(new PrintWriter(sw)); sw.flush(); Logger.log(Logger.ERROR,"ChannelManager::outputChannels : Error channel threw ! "+sw.toString()); } } ChannelRuntimeData rd = new ChannelRuntimeData (); rd.setParameters(targetParams); rd.setBrowserInfo(binfo); /* String reqURI = req.getRequestURI (); reqURI = reqURI.substring (reqURI.lastIndexOf ("/") + 1, reqURI.length ()); rd.setBaseActionURL (reqURI + "?channelTarget=" + channelTarget + "&");*/ rd.setBaseActionURL(req.getContextPath()+"/channel/"+channelTarget+"/"+uPElement); try { isc.setRuntimeData (rd); } catch (Exception e) { channelTable.remove(isc); CError errorChannel=new CError(CError.SET_RUNTIME_DATA_EXCEPTION,e,channelTarget,isc); channelTable.put(channelTarget,errorChannel); isc=errorChannel; // demand output try { ChannelRuntimeData erd = new ChannelRuntimeData (); erd.setBrowserInfo(binfo); erd.setBaseActionURL(req.getContextPath()+"/channel/"+channelTarget+"/"+uPElement); errorChannel.setPortalControlStructures(pcs); errorChannel.setRuntimeData (erd); } catch (Exception e2) { // things are looking bad for our hero StringWriter sw=new StringWriter(); e2.printStackTrace(new PrintWriter(sw)); sw.flush(); Logger.log(Logger.ERROR,"ChannelManager::outputChannels : Error channel threw ! "+sw.toString()); } } } } } } }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/fe7ea426c24554d88fd86fa30894423eb24812be/ChannelManager.java/clean/source/org/jasig/portal/ChannelManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
691,
2909,
2402,
261,
2940,
18572,
1111,
13,
565,
288,
3639,
368,
2424,
326,
2416,
1947,
3639,
1904,
2326,
273,
446,
31,
3639,
1018,
1370,
273,
394,
18559,
261,
1769,
3639,
514,
1694,
33,
3658,
18,
588,
4745,
743,
5621,
3639,
309,
12,
1752,
5,
33,
2011,
13,
288,
5411,
509,
7533,
21,
33,
1752,
18,
31806,
12,
2211,
18,
4327,
1887,
310,
743,
1046,
9078,
4898,
1769,
5411,
309,
12,
7722,
21,
5,
29711,
21,
13,
288,
7734,
7533,
21,
15,
33,
4327,
1887,
310,
743,
1046,
18,
2469,
1435,
15,
21,
31,
7734,
509,
7533,
22,
33,
1752,
18,
31806,
2932,
19,
3113,
7722,
21,
1769,
7734,
309,
12,
7722,
22,
5,
29711,
21,
13,
288,
10792,
1904,
2326,
33,
1752,
18,
28023,
12,
7722,
21,
16,
7722,
22,
1769,
10792,
309,
12,
4327,
2326,
631,
2011,
13,
288,
13491,
4242,
18,
1330,
12,
3328,
18,
3589,
10837,
2909,
1318,
18,
2567,
691,
2909,
2402,
1435,
294,
17458,
1904,
1758,
18,
4112,
1904,
1018,
3124,
1199,
1769,
13491,
327,
31,
10792,
289,
10792,
1827,
1179,
18,
1336,
7675,
1330,
12,
1343,
1179,
18,
9394,
10837,
2909,
1318,
2866,
2567,
691,
2909,
2402,
1435,
294,
1904,
2326,
13186,
15,
4327,
2326,
9078,
2412,
1199,
1769,
10792,
13864,
570,
273,
1111,
18,
588,
1662,
1557,
261,
1769,
10792,
309,
261,
275,
480,
446,
13,
288,
13491,
1323,
261,
275,
18,
5332,
7417,
3471,
1832,
13,
288,
18701,
514,
30026,
33,
261,
780,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
691,
2909,
2402,
261,
2940,
18572,
1111,
13,
565,
288,
3639,
368,
2424,
326,
2416,
1947,
3639,
1904,
2326,
273,
446,
31,
3639,
1018,
1370,
273,
394,
18559,
261,
1769,
3639,
514,
1694,
33,
3658,
18,
588,
4745,
743,
5621,
3639,
309,
12,
1752,
5,
33,
2011,
13,
288,
5411,
509,
7533,
21,
33,
1752,
18,
31806,
12,
2211,
18,
4327,
1887,
310,
743,
1046,
9078,
4898,
1769,
5411,
309,
12,
7722,
21,
5,
29711,
21,
13,
288,
7734,
7533,
21,
15,
33,
4327,
1887,
310,
743,
1046,
18,
2469,
1435,
15,
21,
31,
7734,
509,
7533,
22,
33,
1752,
18,
31806,
2932,
19,
3113,
7722,
21,
1769,
7734,
309,
12,
7722,
22,
5,
29711,
2
] |
setRecipes(recipes); setDefaultNodeArguments();
|
setRecipeComponents(recipes); if(log.isDebugEnabled()) { log.debug("Experiment: " + name); }
|
public Experiment(String name, SocietyComponent societyComponent, RecipeComponent[] recipes) { this(name); createLogger(); setSocietyComponent(societyComponent); if(societyComponent instanceof SocietyFileComponent) { // Will use PopulateDb without CMT assembly fromFile = true; } setRecipes(recipes); setDefaultNodeArguments(); }
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/609bc500b3e2ce535f356ab539e69101ef5a4ca6/Experiment.java/buggy/csmart/src/org/cougaar/tools/csmart/experiment/Experiment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22844,
12,
780,
508,
16,
348,
1882,
14369,
1841,
272,
1882,
14369,
1841,
16,
1082,
565,
7776,
3151,
1841,
8526,
5863,
281,
13,
225,
288,
565,
333,
12,
529,
1769,
565,
752,
3328,
5621,
565,
13928,
1882,
14369,
1841,
12,
87,
1882,
14369,
1841,
1769,
565,
309,
12,
87,
1882,
14369,
1841,
1276,
348,
1882,
14369,
812,
1841,
13,
288,
1377,
368,
9980,
999,
22254,
4331,
2887,
385,
6152,
19931,
1377,
31000,
273,
638,
31,
565,
289,
565,
444,
426,
3449,
281,
12,
266,
3449,
281,
1769,
565,
9277,
907,
4628,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22844,
12,
780,
508,
16,
348,
1882,
14369,
1841,
272,
1882,
14369,
1841,
16,
1082,
565,
7776,
3151,
1841,
8526,
5863,
281,
13,
225,
288,
565,
333,
12,
529,
1769,
565,
752,
3328,
5621,
565,
13928,
1882,
14369,
1841,
12,
87,
1882,
14369,
1841,
1769,
565,
309,
12,
87,
1882,
14369,
1841,
1276,
348,
1882,
14369,
812,
1841,
13,
288,
1377,
368,
9980,
999,
22254,
4331,
2887,
385,
6152,
19931,
1377,
31000,
273,
638,
31,
565,
289,
565,
444,
426,
3449,
281,
12,
266,
3449,
281,
1769,
565,
9277,
907,
4628,
5621,
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
] |
if (entry.isGetterEntry) { return GetterSetterUtil.getGetterName(entry.field, null) + "()";
|
if (entry.fGetterEntry) { return GetterSetterUtil.getGetterName(entry.fField, null) + "()";
|
public String getText(Object element) { if (element instanceof GetterSetterEntry) { GetterSetterEntry entry= (GetterSetterEntry) element; try { if (entry.isGetterEntry) { return GetterSetterUtil.getGetterName(entry.field, null) + "()"; //$NON-NLS-1$ } else { return GetterSetterUtil.getSetterName(entry.field, null) + '(' + Signature.getSimpleName(Signature.toString(entry.field.getTypeSignature())) + ')'; } } catch (JavaModelException e) { return ""; //$NON-NLS-1$ } } return super.getText(element); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/bcf42b7a601e1ed3bd6306a88478fcf0b81995ca/AddGetterSetterAction.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
6701,
12,
921,
930,
13,
288,
1082,
202,
430,
261,
2956,
1276,
968,
387,
8465,
1622,
13,
288,
9506,
202,
8461,
8465,
1622,
1241,
33,
261,
8461,
8465,
1622,
13,
930,
31,
9506,
202,
698,
288,
6862,
202,
430,
261,
4099,
18,
291,
8461,
1622,
13,
288,
25083,
202,
2463,
968,
387,
8465,
1304,
18,
588,
8461,
461,
12,
4099,
18,
1518,
16,
446,
13,
397,
315,
10031,
31,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
97,
469,
288,
25083,
202,
2463,
968,
387,
8465,
1304,
18,
588,
8465,
461,
12,
4099,
18,
1518,
16,
446,
13,
397,
7321,
397,
9249,
18,
588,
5784,
461,
12,
5374,
18,
10492,
12,
4099,
18,
1518,
18,
588,
559,
5374,
1435,
3719,
397,
5777,
31,
6862,
202,
97,
9506,
202,
97,
1044,
261,
5852,
1488,
503,
425,
13,
288,
6862,
202,
2463,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
1082,
202,
97,
1082,
202,
2463,
2240,
18,
588,
1528,
12,
2956,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
6701,
12,
921,
930,
13,
288,
1082,
202,
430,
261,
2956,
1276,
968,
387,
8465,
1622,
13,
288,
9506,
202,
8461,
8465,
1622,
1241,
33,
261,
8461,
8465,
1622,
13,
930,
31,
9506,
202,
698,
288,
6862,
202,
430,
261,
4099,
18,
291,
8461,
1622,
13,
288,
25083,
202,
2463,
968,
387,
8465,
1304,
18,
588,
8461,
461,
12,
4099,
18,
1518,
16,
446,
13,
397,
315,
10031,
31,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
97,
469,
288,
25083,
202,
2463,
968,
387,
8465,
1304,
18,
588,
8465,
461,
12,
4099,
18,
1518,
16,
446,
13,
397,
7321,
397,
9249,
18,
588,
5784,
461,
12,
5374,
18,
10492,
12,
4099,
18,
1518,
2
] |
if (ch=='.') contains_dot = true; if (ch==',') contains_comma = true;
|
if (ch=='.') { contains_dot = true; } if (ch==',') { contains_comma = true; }
|
public void guessType() { nf = NumberFormat.getInstance(); df = (DecimalFormat)nf; dfs=new DecimalFormatSymbols(); daf = new SimpleDateFormat(); // Start with a string... type = Value.VALUE_TYPE_STRING; // If we have no samples, we assume a String... if (samples==null) return; ////////////////////////////// // DATES ////////////////////////////// // See if all samples can be transformed into a date... int datefmt_cnt = date_formats.length; boolean datefmt[] = new boolean[date_formats.length]; for (int i=0;i<date_formats.length;i++) { datefmt[i] = true; } int datenul=0; for (int i=0;i<samples.length;i++) { if (samples[i].length()>0 && samples[i].equalsIgnoreCase(nullString)) { datenul++; } else for (int x=0;x<date_formats.length;x++) { if (samples[i]==null || Const.onlySpaces(samples[i]) || samples[i].length()==0) { datefmt[x]=false; datefmt_cnt--; } if (datefmt[x]) { try { daf.applyPattern(date_formats[x]); Date date = daf.parse(samples[i]); Calendar cal = Calendar.getInstance(); cal.setTime(date); int year = cal.get(Calendar.YEAR); if (year < 1800 || year > 2200) { datefmt[x]=false; // Don't try it again in the future. datefmt_cnt--; // One less that works.. } } catch(Exception e) { datefmt[x]=false; // Don't try it again in the future. datefmt_cnt--; // One less that works.. } } } } // If it is a date, copy info over to the format etc. Then return with the info. // If all samples where NULL values, we can't really decide what the type is. // So we're certainly not going to take a date, just take a string in that case. if (datefmt_cnt>0 && datenul!=samples.length) { int first = -1; for (int i=0;i<date_formats.length && first<0;i++) { if (datefmt[i]) first=i; } type = Value.VALUE_TYPE_DATE; format = date_formats[first]; return; } ////////////////////////////// // NUMBERS ////////////////////////////// boolean isnumber = true; // Set decimal symbols to default decimalSymbol = ""+dfs.getDecimalSeparator(); groupSymbol = ""+dfs.getGroupingSeparator(); boolean numfmt[] = new boolean[number_formats.length]; int maxprecision[] = new int[number_formats.length]; for (int i=0;i<numfmt.length;i++) { numfmt[i] = true; maxprecision[i] = -1; } int numfmt_cnt=number_formats.length; int numnul=0; for (int i=0;i<samples.length && isnumber;i++) { boolean contains_dot = false; boolean contains_comma = false; String field = samples[i]; if (field.length()>0 && field.equalsIgnoreCase(nullString)) { numnul++; } else { for (int x=0;x<field.length() && isnumber;x++) { char ch=field.charAt(x); if (!Character.isDigit(ch) && ch!='.' && ch!=',' && (ch!='-' || x>0) && ch!='E' && ch!='e' // exponential ) { isnumber=false; numfmt_cnt=0; } else { if (ch=='.') contains_dot = true; if (ch==',') contains_comma = true; } } // If it's still a number, try to parse it as a double if (isnumber) { if (contains_dot && !contains_comma) // American style 174.5 { dfs.setDecimalSeparator('.'); decimalSymbol="."; dfs.setGroupingSeparator(','); groupSymbol=","; } else if (!contains_dot && contains_comma) // European style 174,5 { dfs.setDecimalSeparator(','); decimalSymbol=","; dfs.setGroupingSeparator('.'); groupSymbol="."; } else if (contains_dot && contains_comma) // Both appear! { // What's the last occurance: decimal point! int idx_dot = field.indexOf("."); int idx_com = field.indexOf(","); if (idx_dot > idx_com) { dfs.setDecimalSeparator('.'); decimalSymbol="."; dfs.setGroupingSeparator(','); groupSymbol=","; } else { dfs.setDecimalSeparator(','); decimalSymbol=","; dfs.setGroupingSeparator('.'); groupSymbol="."; } } // Try the remaining possible number formats! for (int x=0;x<number_formats.length;x++) { if (numfmt[x]) { boolean islong=true; try { int prec=-1; // Try long integers first.... if (!contains_dot && !contains_comma) { try { Long.parseLong(field); prec=0; } catch(Exception e) { islong=false; } } if (!islong) // Try the double { df.setDecimalFormatSymbols(dfs); df.applyPattern(number_formats[x]); double d = df.parse(field).doubleValue(); prec = guessPrecision(d); } if (prec>maxprecision[x]) maxprecision[x]=prec; } catch(Exception e) { numfmt[x]=false; // Don't try it again in the future. numfmt_cnt--; // One less that works.. } } } } } } // Still a number? Grab the result and return. // If all sample strings are empty or represent NULL values we can't take a number as type. if (numfmt_cnt>0 && numnul!=samples.length) { int first = -1; for (int i=0;i<number_formats.length && first<0;i++) { if (numfmt[i]) first=i; } type = Value.VALUE_TYPE_NUMBER; format = number_formats[first]; precision = maxprecision[first]; // Wait a minute!!! What about Integers? // OK, only if the precision is 0 and the length <19 (java long integer) if (length<19 && precision==0) { type=Value.VALUE_TYPE_INTEGER; decimalSymbol=""; groupSymbol=""; } return; } // // Assume it's a string... // type = Value.VALUE_TYPE_STRING; format = ""; precision = -1; decimalSymbol=""; groupSymbol=""; currencySymbol=""; }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/9d3bc5a3361b487555f4b62090b8572f72227fd9/TextFileInputField.java/clean/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7274,
559,
1435,
202,
95,
202,
202,
82,
74,
273,
29587,
18,
588,
1442,
5621,
202,
202,
2180,
273,
261,
5749,
1630,
13,
82,
74,
31,
202,
202,
12381,
33,
2704,
29665,
14821,
5621,
202,
202,
72,
1727,
273,
394,
17005,
5621,
9506,
202,
759,
3603,
598,
279,
533,
2777,
202,
202,
723,
273,
1445,
18,
4051,
67,
2399,
67,
5804,
31,
9506,
202,
759,
971,
732,
1240,
1158,
5216,
16,
732,
6750,
279,
514,
2777,
202,
202,
430,
261,
7319,
631,
2011,
13,
327,
31,
202,
202,
25494,
18235,
202,
202,
759,
11457,
55,
202,
202,
25494,
18235,
9506,
202,
759,
2164,
309,
777,
5216,
848,
506,
10220,
1368,
279,
1509,
2777,
202,
202,
474,
1509,
8666,
67,
13085,
273,
1509,
67,
11962,
18,
2469,
31,
202,
202,
6494,
1509,
8666,
8526,
273,
394,
1250,
63,
712,
67,
11962,
18,
2469,
15533,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
712,
67,
11962,
18,
2469,
31,
77,
27245,
3196,
202,
95,
1082,
202,
712,
8666,
63,
77,
65,
273,
638,
31,
202,
202,
97,
3196,
202,
474,
377,
1150,
275,
332,
33,
20,
31,
9506,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
7319,
18,
2469,
31,
77,
27245,
202,
202,
95,
1082,
202,
430,
261,
7319,
63,
77,
8009,
2469,
1435,
34,
20,
597,
5216,
63,
77,
8009,
14963,
5556,
12,
2011,
780,
3719,
1082,
202,
95,
9506,
202,
3404,
275,
332,
9904,
31,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7274,
559,
1435,
202,
95,
202,
202,
82,
74,
273,
29587,
18,
588,
1442,
5621,
202,
202,
2180,
273,
261,
5749,
1630,
13,
82,
74,
31,
202,
202,
12381,
33,
2704,
29665,
14821,
5621,
202,
202,
72,
1727,
273,
394,
17005,
5621,
9506,
202,
759,
3603,
598,
279,
533,
2777,
202,
202,
723,
273,
1445,
18,
4051,
67,
2399,
67,
5804,
31,
9506,
202,
759,
971,
732,
1240,
1158,
5216,
16,
732,
6750,
279,
514,
2777,
202,
202,
430,
261,
7319,
631,
2011,
13,
327,
31,
202,
202,
25494,
18235,
202,
202,
759,
11457,
55,
202,
202,
25494,
18235,
9506,
202,
759,
2164,
309,
777,
5216,
848,
506,
10220,
1368,
279,
1509,
2777,
202,
202,
2
] |
if(myEditor.getComponent() == null || myEditor.getComponent().getRootPane() == null) return;
|
public void treeNodesInserted(TreeModelEvent e) { resize(e.getTreePath(), tree); }
|
public void run() { if(myShowHint) { JComponent label = HintUtil.createInformationLabel(text); myCurrentHint = new LightweightHint(label); HintManager hintManager = HintManager.getInstance(); //Editor may be disposed before later invokator process this action if(myEditor.getComponent() == null || myEditor.getComponent().getRootPane() == null) return; Point p = hintManager.getHintPosition(myCurrentHint, myEditor, myEditor.xyToLogicalPosition(myPoint), HintManager.UNDER); hintManager.showEditorHint( myCurrentHint, myEditor, p, HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE | HintManager.HIDE_BY_SCROLLING, HINT_TIMEOUT, false); if(myType == MOUSE_CLICK_HINT) { label.requestFocusInWindow(); } } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/eead600b33355e646f64d618bc6ce83dbe8bcd73/ValueHint.java/clean/debugger/impl/com/intellij/debugger/ui/ValueHint.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1086,
1435,
288,
3639,
309,
12,
4811,
5706,
7002,
13,
288,
1850,
29058,
1433,
273,
670,
474,
1304,
18,
2640,
5369,
2224,
12,
955,
1769,
1850,
3399,
3935,
7002,
273,
394,
15992,
4865,
7002,
12,
1925,
1769,
1850,
670,
474,
1318,
7380,
1318,
273,
670,
474,
1318,
18,
588,
1442,
5621,
1850,
368,
6946,
2026,
506,
1015,
7423,
1865,
5137,
5770,
639,
1207,
333,
1301,
540,
1071,
918,
2151,
3205,
27329,
12,
2471,
1488,
1133,
425,
13,
288,
7041,
12,
73,
18,
588,
2471,
743,
9334,
2151,
1769,
289,
1850,
4686,
293,
273,
7380,
1318,
18,
588,
7002,
2555,
12,
4811,
3935,
7002,
16,
3399,
6946,
16,
3399,
6946,
18,
1698,
774,
17955,
2555,
12,
4811,
2148,
3631,
670,
474,
1318,
18,
31625,
1769,
1850,
7380,
1318,
18,
4500,
6946,
7002,
12,
5411,
3399,
3935,
7002,
16,
5411,
3399,
6946,
16,
5411,
293,
16,
5411,
670,
474,
1318,
18,
44,
10385,
67,
6486,
67,
15409,
67,
3297,
571,
670,
474,
1318,
18,
44,
10385,
67,
6486,
67,
5151,
67,
14473,
571,
670,
474,
1318,
18,
44,
10385,
67,
6486,
67,
2312,
14555,
1360,
16,
5411,
28110,
67,
9503,
16,
5411,
629,
1769,
1850,
309,
12,
4811,
559,
422,
16070,
8001,
67,
7697,
3507,
67,
44,
3217,
13,
288,
5411,
1433,
18,
2293,
9233,
382,
3829,
5621,
1850,
289,
3639,
289,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1086,
1435,
288,
3639,
309,
12,
4811,
5706,
7002,
13,
288,
1850,
29058,
1433,
273,
670,
474,
1304,
18,
2640,
5369,
2224,
12,
955,
1769,
1850,
3399,
3935,
7002,
273,
394,
15992,
4865,
7002,
12,
1925,
1769,
1850,
670,
474,
1318,
7380,
1318,
273,
670,
474,
1318,
18,
588,
1442,
5621,
1850,
368,
6946,
2026,
506,
1015,
7423,
1865,
5137,
5770,
639,
1207,
333,
1301,
540,
1071,
918,
2151,
3205,
27329,
12,
2471,
1488,
1133,
425,
13,
288,
7041,
12,
73,
18,
588,
2471,
743,
9334,
2151,
1769,
289,
1850,
4686,
293,
273,
7380,
1318,
18,
588,
7002,
2555,
12,
4811,
3935,
7002,
16,
3399,
6946,
16,
3399,
6946,
18,
1698,
774,
17955,
2555,
12,
4811,
2
] |
_doc.getDocLength());
|
_doc.getLength());
|
public void testCannotEditBeforePrompt() throws DocumentAdapterException { int origLength = _doc.getDocLength(); _doc.insertText(1, "typed text", InteractionsDocument.DEFAULT_STYLE); assertEquals("Document should not have changed.", origLength, _doc.getDocLength()); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9ee7f82d7f7234787f3748460b46ad8c5d1fc967/InteractionsPaneTest.java/buggy/drjava/src/edu/rice/cs/drjava/ui/InteractionsPaneTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
4515,
4666,
4649,
15967,
1435,
1216,
4319,
4216,
503,
288,
565,
509,
1647,
1782,
273,
389,
2434,
18,
588,
1759,
1782,
5621,
565,
389,
2434,
18,
6387,
1528,
12,
21,
16,
315,
11585,
977,
3113,
5294,
4905,
2519,
18,
5280,
67,
15066,
1769,
565,
1815,
8867,
2932,
2519,
1410,
486,
1240,
3550,
1199,
16,
1171,
1647,
1782,
16,
1171,
389,
2434,
18,
588,
1782,
10663,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
4515,
4666,
4649,
15967,
1435,
1216,
4319,
4216,
503,
288,
565,
509,
1647,
1782,
273,
389,
2434,
18,
588,
1759,
1782,
5621,
565,
389,
2434,
18,
6387,
1528,
12,
21,
16,
315,
11585,
977,
3113,
5294,
4905,
2519,
18,
5280,
67,
15066,
1769,
565,
1815,
8867,
2932,
2519,
1410,
486,
1240,
3550,
1199,
16,
1171,
1647,
1782,
16,
1171,
389,
2434,
18,
588,
1782,
10663,
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
] |
application.getSettings().setAutomaticLinking(true); application.getSettings().setStripWicketTags(true);
|
application.getMarkupSettings().setAutomaticLinking(true); application.getMarkupSettings().setStripWicketTags(true);
|
public void testRenderHomePage_2() throws Exception { application.getSettings().setAutomaticLinking(true); application.getSettings().setStripWicketTags(true); executeTest(AutolinkPage_2.class, "AutolinkPageExpectedResult_2.html"); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/8294ee3b065bff22b5be9701606c00af9fd02f3d/AutolinkTest.java/clean/wicket/src/test/wicket/markup/html/link/AutolinkTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3420,
8684,
1964,
67,
22,
1435,
1216,
1185,
202,
95,
3639,
2521,
18,
588,
2628,
7675,
542,
7150,
4941,
2098,
310,
12,
3767,
1769,
3639,
2521,
18,
588,
2628,
7675,
542,
16632,
59,
29378,
3453,
12,
3767,
1769,
202,
565,
1836,
4709,
12,
7150,
355,
754,
1964,
67,
22,
18,
1106,
16,
315,
7150,
355,
754,
1964,
6861,
1253,
67,
22,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3420,
8684,
1964,
67,
22,
1435,
1216,
1185,
202,
95,
3639,
2521,
18,
588,
2628,
7675,
542,
7150,
4941,
2098,
310,
12,
3767,
1769,
3639,
2521,
18,
588,
2628,
7675,
542,
16632,
59,
29378,
3453,
12,
3767,
1769,
202,
565,
1836,
4709,
12,
7150,
355,
754,
1964,
67,
22,
18,
1106,
16,
315,
7150,
355,
754,
1964,
6861,
1253,
67,
22,
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
] |
StringBuffer sb = new StringBuffer(Token.name(type)); if (this instanceof StringNode) { sb.append(' '); sb.append(getString()); } else if (this instanceof ScriptOrFnNode) { ScriptOrFnNode sof = (ScriptOrFnNode)this; if (this instanceof FunctionNode) { FunctionNode fn = (FunctionNode)this; sb.append(' '); sb.append(fn.getFunctionName()); } sb.append(" [source name: "); sb.append(sof.getSourceName()); sb.append("] [encoded source length: "); sb.append(sof.getEncodedSourceEnd() - sof.getEncodedSourceStart()); sb.append("] [base line: "); sb.append(sof.getBaseLineno()); sb.append("] [end line: "); sb.append(sof.getEndLineno()); sb.append(']'); } else if (this instanceof Jump) { Jump jump = (Jump)this; if (type == Token.BREAK || type == Token.CONTINUE) { sb.append(" [label: "); sb.append(jump.getJumpStatement()); sb.append(']'); } else if (type == Token.TRY) { Node catchNode = jump.target; Node finallyTarget = jump.getFinally(); if (catchNode != null) { sb.append(" [catch: "); sb.append(catchNode); sb.append(']'); } if (finallyTarget != null) { sb.append(" [finally: "); sb.append(finallyTarget); sb.append(']'); } } else if (type == Token.LABEL || type == Token.LOOP || type == Token.SWITCH) { sb.append(" [break: "); sb.append(jump.target); sb.append(']'); if (type == Token.LOOP) { sb.append(" [continue: "); sb.append(jump.getContinue()); sb.append(']'); } } else { sb.append(" [target: "); sb.append(jump.target); sb.append(']'); } } else if (type == Token.NUMBER) { sb.append(' '); sb.append(getDouble()); } if (lineno != -1) { sb.append(' '); sb.append(lineno); } for (PropListItem x = propListHead; x != null; x = x.next) { int type = x.type; sb.append(" ["); sb.append(propToString(type)); sb.append(": "); String value; switch (type) { case TARGETBLOCK_PROP : value = "target block property"; break; case LOCAL_BLOCK_PROP : value = "last local block"; break; case ISNUMBER_PROP: switch (x.intValue) { case BOTH: value = "both"; break; case RIGHT: value = "right"; break; case LEFT: value = "left"; break; default: throw Kit.codeBug(); } break; case SPECIALCALL_PROP: switch (x.intValue) { case SPECIALCALL_EVAL: value = "eval"; break; case SPECIALCALL_WITH: value = "with"; break; default: throw Kit.codeBug(); } break; default : Object obj = x.objectValue; if (obj != null) { value = obj.toString(); } else { value = String.valueOf(x.intValue); } break; } sb.append(value); sb.append(']'); }
|
StringBuffer sb = new StringBuffer(); toString(new ObjToIntMap(), sb);
|
public String toString() { if (Token.printTrees) { StringBuffer sb = new StringBuffer(Token.name(type)); if (this instanceof StringNode) { sb.append(' '); sb.append(getString()); } else if (this instanceof ScriptOrFnNode) { ScriptOrFnNode sof = (ScriptOrFnNode)this; if (this instanceof FunctionNode) { FunctionNode fn = (FunctionNode)this; sb.append(' '); sb.append(fn.getFunctionName()); } sb.append(" [source name: "); sb.append(sof.getSourceName()); sb.append("] [encoded source length: "); sb.append(sof.getEncodedSourceEnd() - sof.getEncodedSourceStart()); sb.append("] [base line: "); sb.append(sof.getBaseLineno()); sb.append("] [end line: "); sb.append(sof.getEndLineno()); sb.append(']'); } else if (this instanceof Jump) { Jump jump = (Jump)this; if (type == Token.BREAK || type == Token.CONTINUE) { sb.append(" [label: "); sb.append(jump.getJumpStatement()); sb.append(']'); } else if (type == Token.TRY) { Node catchNode = jump.target; Node finallyTarget = jump.getFinally(); if (catchNode != null) { sb.append(" [catch: "); sb.append(catchNode); sb.append(']'); } if (finallyTarget != null) { sb.append(" [finally: "); sb.append(finallyTarget); sb.append(']'); } } else if (type == Token.LABEL || type == Token.LOOP || type == Token.SWITCH) { sb.append(" [break: "); sb.append(jump.target); sb.append(']'); if (type == Token.LOOP) { sb.append(" [continue: "); sb.append(jump.getContinue()); sb.append(']'); } } else { sb.append(" [target: "); sb.append(jump.target); sb.append(']'); } } else if (type == Token.NUMBER) { sb.append(' '); sb.append(getDouble()); } if (lineno != -1) { sb.append(' '); sb.append(lineno); } for (PropListItem x = propListHead; x != null; x = x.next) { int type = x.type; sb.append(" ["); sb.append(propToString(type)); sb.append(": "); String value; switch (type) { case TARGETBLOCK_PROP : // can't add this as it recurses value = "target block property"; break; case LOCAL_BLOCK_PROP : // can't add this as it is dull value = "last local block"; break; case ISNUMBER_PROP: switch (x.intValue) { case BOTH: value = "both"; break; case RIGHT: value = "right"; break; case LEFT: value = "left"; break; default: throw Kit.codeBug(); } break; case SPECIALCALL_PROP: switch (x.intValue) { case SPECIALCALL_EVAL: value = "eval"; break; case SPECIALCALL_WITH: value = "with"; break; default: // NON_SPECIALCALL should not be stored throw Kit.codeBug(); } break; default : Object obj = x.objectValue; if (obj != null) { value = obj.toString(); } else { value = String.valueOf(x.intValue); } break; } sb.append(value); sb.append(']'); } return sb.toString(); } return String.valueOf(type); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/f35ab45d5d317eee5defa5692aec0e0eab39f04e/Node.java/clean/src/org/mozilla/javascript/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
309,
261,
1345,
18,
1188,
26590,
13,
288,
5411,
6674,
2393,
273,
394,
6674,
12,
1345,
18,
529,
12,
723,
10019,
5411,
309,
261,
2211,
1276,
514,
907,
13,
288,
7734,
2393,
18,
6923,
2668,
28005,
7734,
2393,
18,
6923,
12,
588,
780,
10663,
5411,
289,
469,
309,
261,
2211,
1276,
7739,
1162,
5372,
907,
13,
288,
7734,
7739,
1162,
5372,
907,
272,
792,
273,
261,
3651,
1162,
5372,
907,
13,
2211,
31,
7734,
309,
261,
2211,
1276,
4284,
907,
13,
288,
10792,
4284,
907,
2295,
273,
261,
2083,
907,
13,
2211,
31,
10792,
2393,
18,
6923,
2668,
28005,
10792,
2393,
18,
6923,
12,
4293,
18,
588,
25258,
10663,
7734,
289,
7734,
2393,
18,
6923,
2932,
306,
3168,
508,
30,
315,
1769,
7734,
2393,
18,
6923,
12,
87,
792,
18,
588,
1830,
461,
10663,
7734,
2393,
18,
6923,
2932,
65,
306,
10787,
1084,
769,
30,
315,
1769,
7734,
2393,
18,
6923,
12,
87,
792,
18,
588,
10397,
1830,
1638,
1435,
12900,
300,
272,
792,
18,
588,
10397,
1830,
1685,
10663,
7734,
2393,
18,
6923,
2932,
65,
306,
1969,
980,
30,
315,
1769,
7734,
2393,
18,
6923,
12,
87,
792,
18,
588,
2171,
48,
267,
5764,
10663,
7734,
2393,
18,
6923,
2932,
65,
306,
409,
980,
30,
315,
1769,
7734,
2393,
18,
6923,
12,
87,
792,
18,
588,
1638,
48,
267,
5764,
10663,
7734,
2393,
18,
6923,
2668,
3864,
1769,
5411,
289,
469,
309,
261,
2211,
1276,
804,
2801,
13,
288,
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,
1762,
1435,
288,
3639,
309,
261,
1345,
18,
1188,
26590,
13,
288,
5411,
6674,
2393,
273,
394,
6674,
12,
1345,
18,
529,
12,
723,
10019,
5411,
309,
261,
2211,
1276,
514,
907,
13,
288,
7734,
2393,
18,
6923,
2668,
28005,
7734,
2393,
18,
6923,
12,
588,
780,
10663,
5411,
289,
469,
309,
261,
2211,
1276,
7739,
1162,
5372,
907,
13,
288,
7734,
7739,
1162,
5372,
907,
272,
792,
273,
261,
3651,
1162,
5372,
907,
13,
2211,
31,
7734,
309,
261,
2211,
1276,
4284,
907,
13,
288,
10792,
4284,
907,
2295,
273,
261,
2083,
907,
13,
2211,
31,
10792,
2393,
18,
6923,
2668,
28005,
10792,
2393,
18,
6923,
12,
4293,
18,
588,
25258,
10663,
7734,
289,
7734,
2
] |
CategInternodeEvent curDependentEvent = (CategInternodeEvent)dependentEvents.get(dependentIndex); CategInternodeEvent curIndependentEvent = (CategInternodeEvent)independentEvents.get(independentIndex); while(true){
|
CategInternodeEvent curDependentEvent = (CategInternodeEvent)dependentEvents.elementAt(dependentIndex); CategInternodeEvent curIndependentEvent = (CategInternodeEvent)independentEvents.elementAt(independentIndex); while(true){
|
private Quadrat calculateOneBranch(Tree tree,int endNode,CategoricalHistory history1,CategoricalHistory history2,Quadrat q){ //counters Vector independentEvents = history1.getInternodeHistoryVector(endNode); Vector dependentEvents = history2.getInternodeHistoryVector(endNode); int independentCount = independentEvents.size(); int dependentCount = dependentEvents.size(); //counting process if (independentCount == 1){ // no changes, this branch just extends the quadrat quadrats[endNode]= null; // no new quadrats for this branch q.length++; // so update the current one - note that distances are proportional to branch length Debugg.println("Triggered an addition, q.length is now: " + q.length); int dependentIndex = 0; while(dependentIndex<dependentCount-1){ CategInternodeEvent curDependentEvent = (CategInternodeEvent)dependentEvents.get(dependentIndex++); if (curDependentEvent.getChangeVersusSample()){ //check that it's a real change if (CategoricalState.minimum(curDependentEvent.getState()) == 0) q.dependent10Changes++; else q.dependent01Changes++; } dependentIndex++; } return q; // and return it } // otherwise keep counting until the first shift in the independent history quadrats[endNode] = new Vector(independentCount); Quadrat currentQuad = q; int dependentIndex = 0; int independentIndex = 0; CategInternodeEvent curDependentEvent = (CategInternodeEvent)dependentEvents.get(dependentIndex); CategInternodeEvent curIndependentEvent = (CategInternodeEvent)independentEvents.get(independentIndex); while(true){ while(curDependentEvent.getPosition() < curIndependentEvent.getPosition()){ if (curDependentEvent.getChangeVersusSample()){ //check that it's a real change if (CategoricalState.minimum(curDependentEvent.getState()) == 0) currentQuad.dependent10Changes++; else currentQuad.dependent01Changes++; } if (dependentIndex == dependentCount){ // out of dependent events double lastPosition = ((CategInternodeEvent)independentEvents.lastElement()).getPosition(); for(int i=independentIndex+1;i<independentEvents.size();i++){ //zero any additional quadrats lastPosition = ((CategInternodeEvent)independentEvents.get(i-1)).getPosition(); CategInternodeEvent nextEvent = (CategInternodeEvent)independentEvents.get(i); if (nextEvent.getChangeVersusSample()) { // make sure it's real Debugg.println("New quadrat because out of dependent events: " + i ); currentQuad = new Quadrat(CategoricalState.minimum(nextEvent.getState()),nextEvent.getPosition()-lastPosition); quadrats[endNode].add(currentQuad); lastPosition = nextEvent.getPosition(); // in case we bail Debugg.println("(1)Added quadrat of length " + ((Quadrat)quadrats[endNode].lastElement()).length + " at " + (quadrats[endNode].size()-1)); } } Debugg.println("Spot check; emptyQ length is now " + currentQuad.length + " lastPosition = " + lastPosition); currentQuad.length += 1-lastPosition; Debugg.println("Out of independent events (1); emptyQ length is now " + currentQuad.length); return currentQuad; } else curDependentEvent = (CategInternodeEvent)dependentEvents.get(dependentIndex++); } independentIndex++; if (independentIndex == independentCount){ // finish up // do we need to adjust length here? currentQuad.length += 1-((CategInternodeEvent)independentEvents.lastElement()).getPosition(); Debugg.println("Out of independent events (2); currentQuad length is now " + currentQuad.length); return currentQuad; } else{ // new quadrat double lastPosition = curIndependentEvent.getPosition(); curIndependentEvent = (CategInternodeEvent)independentEvents.get(independentIndex); Debugg.println("New quadrat because independentIndex was bumped" + independentIndex); Debugg.println("current position is " +curIndependentEvent.getPosition() + "last position is " + lastPosition + " diff is " + (curIndependentEvent.getPosition()-lastPosition)); currentQuad = new Quadrat(CategoricalState.minimum(curIndependentEvent.getState()),curIndependentEvent.getPosition()-lastPosition); quadrats[endNode].add(currentQuad); Debugg.println("(2)Added quadrat of length " + ((Quadrat)quadrats[endNode].lastElement()).length + " at " + (quadrats[endNode].size()-1)); } } }
|
56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/b9db0ccf007589f7d283815c9d7225804c828109/QuadratsRealizationCounter.java/buggy/Source/mesquite/correl/QuadratsRealizationCounter/QuadratsRealizationCounter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
27258,
17048,
4604,
3335,
7108,
12,
2471,
2151,
16,
474,
679,
907,
16,
39,
14341,
5623,
4927,
21,
16,
39,
14341,
5623,
4927,
22,
16,
24483,
17048,
1043,
15329,
202,
202,
759,
23426,
202,
202,
5018,
14807,
3783,
273,
4927,
21,
18,
588,
21843,
390,
5623,
5018,
12,
409,
907,
1769,
202,
202,
5018,
10460,
3783,
273,
4927,
22,
18,
588,
21843,
390,
5623,
5018,
12,
409,
907,
1769,
202,
202,
474,
14807,
1380,
273,
14807,
3783,
18,
1467,
5621,
202,
202,
474,
10460,
1380,
273,
10460,
3783,
18,
1467,
5621,
202,
202,
759,
1883,
310,
1207,
202,
202,
430,
261,
267,
10891,
1380,
422,
404,
15329,
282,
368,
1158,
3478,
16,
333,
3803,
2537,
3231,
326,
9474,
17048,
1082,
202,
21733,
86,
2323,
63,
409,
907,
65,
33,
446,
31,
225,
368,
1158,
394,
9474,
86,
2323,
364,
333,
3803,
1082,
202,
85,
18,
2469,
9904,
31,
225,
368,
1427,
1089,
326,
783,
1245,
300,
4721,
716,
12491,
854,
23279,
287,
358,
3803,
769,
1082,
202,
2829,
75,
18,
8222,
2932,
6518,
329,
392,
2719,
16,
1043,
18,
2469,
353,
2037,
30,
315,
397,
1043,
18,
2469,
1769,
1875,
202,
474,
10460,
1016,
273,
374,
31,
1082,
202,
17523,
12,
10891,
1016,
32,
10891,
1380,
17,
21,
15329,
7734,
385,
1287,
21843,
390,
1133,
662,
18571,
1133,
273,
261,
39,
1287,
21843,
390,
1133,
13,
10891,
3783,
18,
588,
12,
10891,
1016,
9904,
1769,
7734,
309,
261,
1397,
18571,
1133,
18,
588,
3043,
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,
27258,
17048,
4604,
3335,
7108,
12,
2471,
2151,
16,
474,
679,
907,
16,
39,
14341,
5623,
4927,
21,
16,
39,
14341,
5623,
4927,
22,
16,
24483,
17048,
1043,
15329,
202,
202,
759,
23426,
202,
202,
5018,
14807,
3783,
273,
4927,
21,
18,
588,
21843,
390,
5623,
5018,
12,
409,
907,
1769,
202,
202,
5018,
10460,
3783,
273,
4927,
22,
18,
588,
21843,
390,
5623,
5018,
12,
409,
907,
1769,
202,
202,
474,
14807,
1380,
273,
14807,
3783,
18,
1467,
5621,
202,
202,
474,
10460,
1380,
273,
10460,
3783,
18,
1467,
5621,
202,
202,
759,
1883,
310,
1207,
202,
202,
430,
261,
267,
10891,
1380,
422,
404,
15329,
282,
368,
1158,
3478,
16,
333,
3803,
2537,
3231,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.